github.com/unigraph-dev/dgraph@v1.1.1-0.20200923154953-8b52b426f765/protos/pb/pb.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: pb.proto
     3  
     4  package pb
     5  
     6  import (
     7  	context "context"
     8  	encoding_binary "encoding/binary"
     9  	fmt "fmt"
    10  	pb "github.com/dgraph-io/badger/pb"
    11  	api "github.com/dgraph-io/dgo/protos/api"
    12  	proto "github.com/golang/protobuf/proto"
    13  	grpc "google.golang.org/grpc"
    14  	codes "google.golang.org/grpc/codes"
    15  	status "google.golang.org/grpc/status"
    16  	io "io"
    17  	math "math"
    18  	math_bits "math/bits"
    19  )
    20  
    21  // Reference imports to suppress errors if they are not otherwise used.
    22  var _ = proto.Marshal
    23  var _ = fmt.Errorf
    24  var _ = math.Inf
    25  
    26  // This is a compile-time assertion to ensure that this generated file
    27  // is compatible with the proto package it is being compiled against.
    28  // A compilation error at this line likely means your copy of the
    29  // proto package needs to be updated.
    30  const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
    31  
    32  type DirectedEdge_Op int32
    33  
    34  const (
    35  	DirectedEdge_SET DirectedEdge_Op = 0
    36  	DirectedEdge_DEL DirectedEdge_Op = 1
    37  )
    38  
    39  var DirectedEdge_Op_name = map[int32]string{
    40  	0: "SET",
    41  	1: "DEL",
    42  }
    43  
    44  var DirectedEdge_Op_value = map[string]int32{
    45  	"SET": 0,
    46  	"DEL": 1,
    47  }
    48  
    49  func (x DirectedEdge_Op) String() string {
    50  	return proto.EnumName(DirectedEdge_Op_name, int32(x))
    51  }
    52  
    53  func (DirectedEdge_Op) EnumDescriptor() ([]byte, []int) {
    54  	return fileDescriptor_f80abaa17e25ccc8, []int{18, 0}
    55  }
    56  
    57  type Mutations_DropOp int32
    58  
    59  const (
    60  	Mutations_NONE Mutations_DropOp = 0
    61  	Mutations_ALL  Mutations_DropOp = 1
    62  	Mutations_DATA Mutations_DropOp = 2
    63  	Mutations_TYPE Mutations_DropOp = 3
    64  )
    65  
    66  var Mutations_DropOp_name = map[int32]string{
    67  	0: "NONE",
    68  	1: "ALL",
    69  	2: "DATA",
    70  	3: "TYPE",
    71  }
    72  
    73  var Mutations_DropOp_value = map[string]int32{
    74  	"NONE": 0,
    75  	"ALL":  1,
    76  	"DATA": 2,
    77  	"TYPE": 3,
    78  }
    79  
    80  func (x Mutations_DropOp) String() string {
    81  	return proto.EnumName(Mutations_DropOp_name, int32(x))
    82  }
    83  
    84  func (Mutations_DropOp) EnumDescriptor() ([]byte, []int) {
    85  	return fileDescriptor_f80abaa17e25ccc8, []int{19, 0}
    86  }
    87  
    88  type Posting_ValType int32
    89  
    90  const (
    91  	Posting_DEFAULT  Posting_ValType = 0
    92  	Posting_BINARY   Posting_ValType = 1
    93  	Posting_INT      Posting_ValType = 2
    94  	Posting_FLOAT    Posting_ValType = 3
    95  	Posting_BOOL     Posting_ValType = 4
    96  	Posting_DATETIME Posting_ValType = 5
    97  	Posting_GEO      Posting_ValType = 6
    98  	Posting_UID      Posting_ValType = 7
    99  	Posting_PASSWORD Posting_ValType = 8
   100  	Posting_STRING   Posting_ValType = 9
   101  	Posting_OBJECT   Posting_ValType = 10
   102  )
   103  
   104  var Posting_ValType_name = map[int32]string{
   105  	0:  "DEFAULT",
   106  	1:  "BINARY",
   107  	2:  "INT",
   108  	3:  "FLOAT",
   109  	4:  "BOOL",
   110  	5:  "DATETIME",
   111  	6:  "GEO",
   112  	7:  "UID",
   113  	8:  "PASSWORD",
   114  	9:  "STRING",
   115  	10: "OBJECT",
   116  }
   117  
   118  var Posting_ValType_value = map[string]int32{
   119  	"DEFAULT":  0,
   120  	"BINARY":   1,
   121  	"INT":      2,
   122  	"FLOAT":    3,
   123  	"BOOL":     4,
   124  	"DATETIME": 5,
   125  	"GEO":      6,
   126  	"UID":      7,
   127  	"PASSWORD": 8,
   128  	"STRING":   9,
   129  	"OBJECT":   10,
   130  }
   131  
   132  func (x Posting_ValType) String() string {
   133  	return proto.EnumName(Posting_ValType_name, int32(x))
   134  }
   135  
   136  func (Posting_ValType) EnumDescriptor() ([]byte, []int) {
   137  	return fileDescriptor_f80abaa17e25ccc8, []int{23, 0}
   138  }
   139  
   140  type Posting_PostingType int32
   141  
   142  const (
   143  	Posting_REF        Posting_PostingType = 0
   144  	Posting_VALUE      Posting_PostingType = 1
   145  	Posting_VALUE_LANG Posting_PostingType = 2
   146  )
   147  
   148  var Posting_PostingType_name = map[int32]string{
   149  	0: "REF",
   150  	1: "VALUE",
   151  	2: "VALUE_LANG",
   152  }
   153  
   154  var Posting_PostingType_value = map[string]int32{
   155  	"REF":        0,
   156  	"VALUE":      1,
   157  	"VALUE_LANG": 2,
   158  }
   159  
   160  func (x Posting_PostingType) String() string {
   161  	return proto.EnumName(Posting_PostingType_name, int32(x))
   162  }
   163  
   164  func (Posting_PostingType) EnumDescriptor() ([]byte, []int) {
   165  	return fileDescriptor_f80abaa17e25ccc8, []int{23, 1}
   166  }
   167  
   168  type SchemaUpdate_Directive int32
   169  
   170  const (
   171  	SchemaUpdate_NONE    SchemaUpdate_Directive = 0
   172  	SchemaUpdate_INDEX   SchemaUpdate_Directive = 1
   173  	SchemaUpdate_REVERSE SchemaUpdate_Directive = 2
   174  	SchemaUpdate_DELETE  SchemaUpdate_Directive = 3
   175  )
   176  
   177  var SchemaUpdate_Directive_name = map[int32]string{
   178  	0: "NONE",
   179  	1: "INDEX",
   180  	2: "REVERSE",
   181  	3: "DELETE",
   182  }
   183  
   184  var SchemaUpdate_Directive_value = map[string]int32{
   185  	"NONE":    0,
   186  	"INDEX":   1,
   187  	"REVERSE": 2,
   188  	"DELETE":  3,
   189  }
   190  
   191  func (x SchemaUpdate_Directive) String() string {
   192  	return proto.EnumName(SchemaUpdate_Directive_name, int32(x))
   193  }
   194  
   195  func (SchemaUpdate_Directive) EnumDescriptor() ([]byte, []int) {
   196  	return fileDescriptor_f80abaa17e25ccc8, []int{36, 0}
   197  }
   198  
   199  type BackupKey_KeyType int32
   200  
   201  const (
   202  	BackupKey_UNKNOWN   BackupKey_KeyType = 0
   203  	BackupKey_DATA      BackupKey_KeyType = 1
   204  	BackupKey_INDEX     BackupKey_KeyType = 2
   205  	BackupKey_REVERSE   BackupKey_KeyType = 3
   206  	BackupKey_COUNT     BackupKey_KeyType = 4
   207  	BackupKey_COUNT_REV BackupKey_KeyType = 5
   208  	BackupKey_SCHEMA    BackupKey_KeyType = 6
   209  	BackupKey_TYPE      BackupKey_KeyType = 7
   210  )
   211  
   212  var BackupKey_KeyType_name = map[int32]string{
   213  	0: "UNKNOWN",
   214  	1: "DATA",
   215  	2: "INDEX",
   216  	3: "REVERSE",
   217  	4: "COUNT",
   218  	5: "COUNT_REV",
   219  	6: "SCHEMA",
   220  	7: "TYPE",
   221  }
   222  
   223  var BackupKey_KeyType_value = map[string]int32{
   224  	"UNKNOWN":   0,
   225  	"DATA":      1,
   226  	"INDEX":     2,
   227  	"REVERSE":   3,
   228  	"COUNT":     4,
   229  	"COUNT_REV": 5,
   230  	"SCHEMA":    6,
   231  	"TYPE":      7,
   232  }
   233  
   234  func (x BackupKey_KeyType) String() string {
   235  	return proto.EnumName(BackupKey_KeyType_name, int32(x))
   236  }
   237  
   238  func (BackupKey_KeyType) EnumDescriptor() ([]byte, []int) {
   239  	return fileDescriptor_f80abaa17e25ccc8, []int{51, 0}
   240  }
   241  
   242  type List struct {
   243  	Uids                 []uint64 `protobuf:"fixed64,1,rep,packed,name=uids,proto3" json:"uids,omitempty"`
   244  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   245  	XXX_unrecognized     []byte   `json:"-"`
   246  	XXX_sizecache        int32    `json:"-"`
   247  }
   248  
   249  func (m *List) Reset()         { *m = List{} }
   250  func (m *List) String() string { return proto.CompactTextString(m) }
   251  func (*List) ProtoMessage()    {}
   252  func (*List) Descriptor() ([]byte, []int) {
   253  	return fileDescriptor_f80abaa17e25ccc8, []int{0}
   254  }
   255  func (m *List) XXX_Unmarshal(b []byte) error {
   256  	return m.Unmarshal(b)
   257  }
   258  func (m *List) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   259  	if deterministic {
   260  		return xxx_messageInfo_List.Marshal(b, m, deterministic)
   261  	} else {
   262  		b = b[:cap(b)]
   263  		n, err := m.MarshalToSizedBuffer(b)
   264  		if err != nil {
   265  			return nil, err
   266  		}
   267  		return b[:n], nil
   268  	}
   269  }
   270  func (m *List) XXX_Merge(src proto.Message) {
   271  	xxx_messageInfo_List.Merge(m, src)
   272  }
   273  func (m *List) XXX_Size() int {
   274  	return m.Size()
   275  }
   276  func (m *List) XXX_DiscardUnknown() {
   277  	xxx_messageInfo_List.DiscardUnknown(m)
   278  }
   279  
   280  var xxx_messageInfo_List proto.InternalMessageInfo
   281  
   282  func (m *List) GetUids() []uint64 {
   283  	if m != nil {
   284  		return m.Uids
   285  	}
   286  	return nil
   287  }
   288  
   289  type TaskValue struct {
   290  	Val                  []byte          `protobuf:"bytes,1,opt,name=val,proto3" json:"val,omitempty"`
   291  	ValType              Posting_ValType `protobuf:"varint,2,opt,name=val_type,json=valType,proto3,enum=pb.Posting_ValType" json:"val_type,omitempty"`
   292  	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
   293  	XXX_unrecognized     []byte          `json:"-"`
   294  	XXX_sizecache        int32           `json:"-"`
   295  }
   296  
   297  func (m *TaskValue) Reset()         { *m = TaskValue{} }
   298  func (m *TaskValue) String() string { return proto.CompactTextString(m) }
   299  func (*TaskValue) ProtoMessage()    {}
   300  func (*TaskValue) Descriptor() ([]byte, []int) {
   301  	return fileDescriptor_f80abaa17e25ccc8, []int{1}
   302  }
   303  func (m *TaskValue) XXX_Unmarshal(b []byte) error {
   304  	return m.Unmarshal(b)
   305  }
   306  func (m *TaskValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   307  	if deterministic {
   308  		return xxx_messageInfo_TaskValue.Marshal(b, m, deterministic)
   309  	} else {
   310  		b = b[:cap(b)]
   311  		n, err := m.MarshalToSizedBuffer(b)
   312  		if err != nil {
   313  			return nil, err
   314  		}
   315  		return b[:n], nil
   316  	}
   317  }
   318  func (m *TaskValue) XXX_Merge(src proto.Message) {
   319  	xxx_messageInfo_TaskValue.Merge(m, src)
   320  }
   321  func (m *TaskValue) XXX_Size() int {
   322  	return m.Size()
   323  }
   324  func (m *TaskValue) XXX_DiscardUnknown() {
   325  	xxx_messageInfo_TaskValue.DiscardUnknown(m)
   326  }
   327  
   328  var xxx_messageInfo_TaskValue proto.InternalMessageInfo
   329  
   330  func (m *TaskValue) GetVal() []byte {
   331  	if m != nil {
   332  		return m.Val
   333  	}
   334  	return nil
   335  }
   336  
   337  func (m *TaskValue) GetValType() Posting_ValType {
   338  	if m != nil {
   339  		return m.ValType
   340  	}
   341  	return Posting_DEFAULT
   342  }
   343  
   344  type SrcFunction struct {
   345  	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   346  	Args                 []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
   347  	IsCount              bool     `protobuf:"varint,4,opt,name=isCount,proto3" json:"isCount,omitempty"`
   348  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   349  	XXX_unrecognized     []byte   `json:"-"`
   350  	XXX_sizecache        int32    `json:"-"`
   351  }
   352  
   353  func (m *SrcFunction) Reset()         { *m = SrcFunction{} }
   354  func (m *SrcFunction) String() string { return proto.CompactTextString(m) }
   355  func (*SrcFunction) ProtoMessage()    {}
   356  func (*SrcFunction) Descriptor() ([]byte, []int) {
   357  	return fileDescriptor_f80abaa17e25ccc8, []int{2}
   358  }
   359  func (m *SrcFunction) XXX_Unmarshal(b []byte) error {
   360  	return m.Unmarshal(b)
   361  }
   362  func (m *SrcFunction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   363  	if deterministic {
   364  		return xxx_messageInfo_SrcFunction.Marshal(b, m, deterministic)
   365  	} else {
   366  		b = b[:cap(b)]
   367  		n, err := m.MarshalToSizedBuffer(b)
   368  		if err != nil {
   369  			return nil, err
   370  		}
   371  		return b[:n], nil
   372  	}
   373  }
   374  func (m *SrcFunction) XXX_Merge(src proto.Message) {
   375  	xxx_messageInfo_SrcFunction.Merge(m, src)
   376  }
   377  func (m *SrcFunction) XXX_Size() int {
   378  	return m.Size()
   379  }
   380  func (m *SrcFunction) XXX_DiscardUnknown() {
   381  	xxx_messageInfo_SrcFunction.DiscardUnknown(m)
   382  }
   383  
   384  var xxx_messageInfo_SrcFunction proto.InternalMessageInfo
   385  
   386  func (m *SrcFunction) GetName() string {
   387  	if m != nil {
   388  		return m.Name
   389  	}
   390  	return ""
   391  }
   392  
   393  func (m *SrcFunction) GetArgs() []string {
   394  	if m != nil {
   395  		return m.Args
   396  	}
   397  	return nil
   398  }
   399  
   400  func (m *SrcFunction) GetIsCount() bool {
   401  	if m != nil {
   402  		return m.IsCount
   403  	}
   404  	return false
   405  }
   406  
   407  type Query struct {
   408  	Attr     string   `protobuf:"bytes,1,opt,name=attr,proto3" json:"attr,omitempty"`
   409  	Langs    []string `protobuf:"bytes,2,rep,name=langs,proto3" json:"langs,omitempty"`
   410  	AfterUid uint64   `protobuf:"fixed64,3,opt,name=after_uid,json=afterUid,proto3" json:"after_uid,omitempty"`
   411  	DoCount  bool     `protobuf:"varint,4,opt,name=do_count,json=doCount,proto3" json:"do_count,omitempty"`
   412  	// Exactly one of uids and terms is populated.
   413  	UidList *List `protobuf:"bytes,5,opt,name=uid_list,json=uidList,proto3" json:"uid_list,omitempty"`
   414  	// Function to generate or filter UIDs.
   415  	SrcFunc              *SrcFunction `protobuf:"bytes,6,opt,name=src_func,json=srcFunc,proto3" json:"src_func,omitempty"`
   416  	Reverse              bool         `protobuf:"varint,7,opt,name=reverse,proto3" json:"reverse,omitempty"`
   417  	FacetParam           *FacetParams `protobuf:"bytes,8,opt,name=facet_param,json=facetParam,proto3" json:"facet_param,omitempty"`
   418  	FacetsFilter         *FilterTree  `protobuf:"bytes,9,opt,name=facets_filter,json=facetsFilter,proto3" json:"facets_filter,omitempty"`
   419  	ExpandAll            bool         `protobuf:"varint,10,opt,name=expand_all,json=expandAll,proto3" json:"expand_all,omitempty"`
   420  	ReadTs               uint64       `protobuf:"varint,13,opt,name=read_ts,json=readTs,proto3" json:"read_ts,omitempty"`
   421  	Cache                int32        `protobuf:"varint,14,opt,name=cache,proto3" json:"cache,omitempty"`
   422  	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
   423  	XXX_unrecognized     []byte       `json:"-"`
   424  	XXX_sizecache        int32        `json:"-"`
   425  }
   426  
   427  func (m *Query) Reset()         { *m = Query{} }
   428  func (m *Query) String() string { return proto.CompactTextString(m) }
   429  func (*Query) ProtoMessage()    {}
   430  func (*Query) Descriptor() ([]byte, []int) {
   431  	return fileDescriptor_f80abaa17e25ccc8, []int{3}
   432  }
   433  func (m *Query) XXX_Unmarshal(b []byte) error {
   434  	return m.Unmarshal(b)
   435  }
   436  func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   437  	if deterministic {
   438  		return xxx_messageInfo_Query.Marshal(b, m, deterministic)
   439  	} else {
   440  		b = b[:cap(b)]
   441  		n, err := m.MarshalToSizedBuffer(b)
   442  		if err != nil {
   443  			return nil, err
   444  		}
   445  		return b[:n], nil
   446  	}
   447  }
   448  func (m *Query) XXX_Merge(src proto.Message) {
   449  	xxx_messageInfo_Query.Merge(m, src)
   450  }
   451  func (m *Query) XXX_Size() int {
   452  	return m.Size()
   453  }
   454  func (m *Query) XXX_DiscardUnknown() {
   455  	xxx_messageInfo_Query.DiscardUnknown(m)
   456  }
   457  
   458  var xxx_messageInfo_Query proto.InternalMessageInfo
   459  
   460  func (m *Query) GetAttr() string {
   461  	if m != nil {
   462  		return m.Attr
   463  	}
   464  	return ""
   465  }
   466  
   467  func (m *Query) GetLangs() []string {
   468  	if m != nil {
   469  		return m.Langs
   470  	}
   471  	return nil
   472  }
   473  
   474  func (m *Query) GetAfterUid() uint64 {
   475  	if m != nil {
   476  		return m.AfterUid
   477  	}
   478  	return 0
   479  }
   480  
   481  func (m *Query) GetDoCount() bool {
   482  	if m != nil {
   483  		return m.DoCount
   484  	}
   485  	return false
   486  }
   487  
   488  func (m *Query) GetUidList() *List {
   489  	if m != nil {
   490  		return m.UidList
   491  	}
   492  	return nil
   493  }
   494  
   495  func (m *Query) GetSrcFunc() *SrcFunction {
   496  	if m != nil {
   497  		return m.SrcFunc
   498  	}
   499  	return nil
   500  }
   501  
   502  func (m *Query) GetReverse() bool {
   503  	if m != nil {
   504  		return m.Reverse
   505  	}
   506  	return false
   507  }
   508  
   509  func (m *Query) GetFacetParam() *FacetParams {
   510  	if m != nil {
   511  		return m.FacetParam
   512  	}
   513  	return nil
   514  }
   515  
   516  func (m *Query) GetFacetsFilter() *FilterTree {
   517  	if m != nil {
   518  		return m.FacetsFilter
   519  	}
   520  	return nil
   521  }
   522  
   523  func (m *Query) GetExpandAll() bool {
   524  	if m != nil {
   525  		return m.ExpandAll
   526  	}
   527  	return false
   528  }
   529  
   530  func (m *Query) GetReadTs() uint64 {
   531  	if m != nil {
   532  		return m.ReadTs
   533  	}
   534  	return 0
   535  }
   536  
   537  func (m *Query) GetCache() int32 {
   538  	if m != nil {
   539  		return m.Cache
   540  	}
   541  	return 0
   542  }
   543  
   544  type ValueList struct {
   545  	Values               []*TaskValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
   546  	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
   547  	XXX_unrecognized     []byte       `json:"-"`
   548  	XXX_sizecache        int32        `json:"-"`
   549  }
   550  
   551  func (m *ValueList) Reset()         { *m = ValueList{} }
   552  func (m *ValueList) String() string { return proto.CompactTextString(m) }
   553  func (*ValueList) ProtoMessage()    {}
   554  func (*ValueList) Descriptor() ([]byte, []int) {
   555  	return fileDescriptor_f80abaa17e25ccc8, []int{4}
   556  }
   557  func (m *ValueList) XXX_Unmarshal(b []byte) error {
   558  	return m.Unmarshal(b)
   559  }
   560  func (m *ValueList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   561  	if deterministic {
   562  		return xxx_messageInfo_ValueList.Marshal(b, m, deterministic)
   563  	} else {
   564  		b = b[:cap(b)]
   565  		n, err := m.MarshalToSizedBuffer(b)
   566  		if err != nil {
   567  			return nil, err
   568  		}
   569  		return b[:n], nil
   570  	}
   571  }
   572  func (m *ValueList) XXX_Merge(src proto.Message) {
   573  	xxx_messageInfo_ValueList.Merge(m, src)
   574  }
   575  func (m *ValueList) XXX_Size() int {
   576  	return m.Size()
   577  }
   578  func (m *ValueList) XXX_DiscardUnknown() {
   579  	xxx_messageInfo_ValueList.DiscardUnknown(m)
   580  }
   581  
   582  var xxx_messageInfo_ValueList proto.InternalMessageInfo
   583  
   584  func (m *ValueList) GetValues() []*TaskValue {
   585  	if m != nil {
   586  		return m.Values
   587  	}
   588  	return nil
   589  }
   590  
   591  type LangList struct {
   592  	Lang                 []string `protobuf:"bytes,1,rep,name=lang,proto3" json:"lang,omitempty"`
   593  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   594  	XXX_unrecognized     []byte   `json:"-"`
   595  	XXX_sizecache        int32    `json:"-"`
   596  }
   597  
   598  func (m *LangList) Reset()         { *m = LangList{} }
   599  func (m *LangList) String() string { return proto.CompactTextString(m) }
   600  func (*LangList) ProtoMessage()    {}
   601  func (*LangList) Descriptor() ([]byte, []int) {
   602  	return fileDescriptor_f80abaa17e25ccc8, []int{5}
   603  }
   604  func (m *LangList) XXX_Unmarshal(b []byte) error {
   605  	return m.Unmarshal(b)
   606  }
   607  func (m *LangList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   608  	if deterministic {
   609  		return xxx_messageInfo_LangList.Marshal(b, m, deterministic)
   610  	} else {
   611  		b = b[:cap(b)]
   612  		n, err := m.MarshalToSizedBuffer(b)
   613  		if err != nil {
   614  			return nil, err
   615  		}
   616  		return b[:n], nil
   617  	}
   618  }
   619  func (m *LangList) XXX_Merge(src proto.Message) {
   620  	xxx_messageInfo_LangList.Merge(m, src)
   621  }
   622  func (m *LangList) XXX_Size() int {
   623  	return m.Size()
   624  }
   625  func (m *LangList) XXX_DiscardUnknown() {
   626  	xxx_messageInfo_LangList.DiscardUnknown(m)
   627  }
   628  
   629  var xxx_messageInfo_LangList proto.InternalMessageInfo
   630  
   631  func (m *LangList) GetLang() []string {
   632  	if m != nil {
   633  		return m.Lang
   634  	}
   635  	return nil
   636  }
   637  
   638  type Result struct {
   639  	UidMatrix            []*List       `protobuf:"bytes,1,rep,name=uid_matrix,json=uidMatrix,proto3" json:"uid_matrix,omitempty"`
   640  	ValueMatrix          []*ValueList  `protobuf:"bytes,2,rep,name=value_matrix,json=valueMatrix,proto3" json:"value_matrix,omitempty"`
   641  	Counts               []uint32      `protobuf:"varint,3,rep,packed,name=counts,proto3" json:"counts,omitempty"`
   642  	IntersectDest        bool          `protobuf:"varint,4,opt,name=intersect_dest,json=intersectDest,proto3" json:"intersect_dest,omitempty"`
   643  	FacetMatrix          []*FacetsList `protobuf:"bytes,5,rep,name=facet_matrix,json=facetMatrix,proto3" json:"facet_matrix,omitempty"`
   644  	LangMatrix           []*LangList   `protobuf:"bytes,6,rep,name=lang_matrix,json=langMatrix,proto3" json:"lang_matrix,omitempty"`
   645  	List                 bool          `protobuf:"varint,7,opt,name=list,proto3" json:"list,omitempty"`
   646  	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
   647  	XXX_unrecognized     []byte        `json:"-"`
   648  	XXX_sizecache        int32         `json:"-"`
   649  }
   650  
   651  func (m *Result) Reset()         { *m = Result{} }
   652  func (m *Result) String() string { return proto.CompactTextString(m) }
   653  func (*Result) ProtoMessage()    {}
   654  func (*Result) Descriptor() ([]byte, []int) {
   655  	return fileDescriptor_f80abaa17e25ccc8, []int{6}
   656  }
   657  func (m *Result) XXX_Unmarshal(b []byte) error {
   658  	return m.Unmarshal(b)
   659  }
   660  func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   661  	if deterministic {
   662  		return xxx_messageInfo_Result.Marshal(b, m, deterministic)
   663  	} else {
   664  		b = b[:cap(b)]
   665  		n, err := m.MarshalToSizedBuffer(b)
   666  		if err != nil {
   667  			return nil, err
   668  		}
   669  		return b[:n], nil
   670  	}
   671  }
   672  func (m *Result) XXX_Merge(src proto.Message) {
   673  	xxx_messageInfo_Result.Merge(m, src)
   674  }
   675  func (m *Result) XXX_Size() int {
   676  	return m.Size()
   677  }
   678  func (m *Result) XXX_DiscardUnknown() {
   679  	xxx_messageInfo_Result.DiscardUnknown(m)
   680  }
   681  
   682  var xxx_messageInfo_Result proto.InternalMessageInfo
   683  
   684  func (m *Result) GetUidMatrix() []*List {
   685  	if m != nil {
   686  		return m.UidMatrix
   687  	}
   688  	return nil
   689  }
   690  
   691  func (m *Result) GetValueMatrix() []*ValueList {
   692  	if m != nil {
   693  		return m.ValueMatrix
   694  	}
   695  	return nil
   696  }
   697  
   698  func (m *Result) GetCounts() []uint32 {
   699  	if m != nil {
   700  		return m.Counts
   701  	}
   702  	return nil
   703  }
   704  
   705  func (m *Result) GetIntersectDest() bool {
   706  	if m != nil {
   707  		return m.IntersectDest
   708  	}
   709  	return false
   710  }
   711  
   712  func (m *Result) GetFacetMatrix() []*FacetsList {
   713  	if m != nil {
   714  		return m.FacetMatrix
   715  	}
   716  	return nil
   717  }
   718  
   719  func (m *Result) GetLangMatrix() []*LangList {
   720  	if m != nil {
   721  		return m.LangMatrix
   722  	}
   723  	return nil
   724  }
   725  
   726  func (m *Result) GetList() bool {
   727  	if m != nil {
   728  		return m.List
   729  	}
   730  	return false
   731  }
   732  
   733  type Order struct {
   734  	Attr                 string   `protobuf:"bytes,1,opt,name=attr,proto3" json:"attr,omitempty"`
   735  	Desc                 bool     `protobuf:"varint,2,opt,name=desc,proto3" json:"desc,omitempty"`
   736  	Langs                []string `protobuf:"bytes,3,rep,name=langs,proto3" json:"langs,omitempty"`
   737  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   738  	XXX_unrecognized     []byte   `json:"-"`
   739  	XXX_sizecache        int32    `json:"-"`
   740  }
   741  
   742  func (m *Order) Reset()         { *m = Order{} }
   743  func (m *Order) String() string { return proto.CompactTextString(m) }
   744  func (*Order) ProtoMessage()    {}
   745  func (*Order) Descriptor() ([]byte, []int) {
   746  	return fileDescriptor_f80abaa17e25ccc8, []int{7}
   747  }
   748  func (m *Order) XXX_Unmarshal(b []byte) error {
   749  	return m.Unmarshal(b)
   750  }
   751  func (m *Order) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   752  	if deterministic {
   753  		return xxx_messageInfo_Order.Marshal(b, m, deterministic)
   754  	} else {
   755  		b = b[:cap(b)]
   756  		n, err := m.MarshalToSizedBuffer(b)
   757  		if err != nil {
   758  			return nil, err
   759  		}
   760  		return b[:n], nil
   761  	}
   762  }
   763  func (m *Order) XXX_Merge(src proto.Message) {
   764  	xxx_messageInfo_Order.Merge(m, src)
   765  }
   766  func (m *Order) XXX_Size() int {
   767  	return m.Size()
   768  }
   769  func (m *Order) XXX_DiscardUnknown() {
   770  	xxx_messageInfo_Order.DiscardUnknown(m)
   771  }
   772  
   773  var xxx_messageInfo_Order proto.InternalMessageInfo
   774  
   775  func (m *Order) GetAttr() string {
   776  	if m != nil {
   777  		return m.Attr
   778  	}
   779  	return ""
   780  }
   781  
   782  func (m *Order) GetDesc() bool {
   783  	if m != nil {
   784  		return m.Desc
   785  	}
   786  	return false
   787  }
   788  
   789  func (m *Order) GetLangs() []string {
   790  	if m != nil {
   791  		return m.Langs
   792  	}
   793  	return nil
   794  }
   795  
   796  type SortMessage struct {
   797  	Order                []*Order `protobuf:"bytes,1,rep,name=order,proto3" json:"order,omitempty"`
   798  	UidMatrix            []*List  `protobuf:"bytes,2,rep,name=uid_matrix,json=uidMatrix,proto3" json:"uid_matrix,omitempty"`
   799  	Count                int32    `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
   800  	Offset               int32    `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"`
   801  	ReadTs               uint64   `protobuf:"varint,13,opt,name=read_ts,json=readTs,proto3" json:"read_ts,omitempty"`
   802  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   803  	XXX_unrecognized     []byte   `json:"-"`
   804  	XXX_sizecache        int32    `json:"-"`
   805  }
   806  
   807  func (m *SortMessage) Reset()         { *m = SortMessage{} }
   808  func (m *SortMessage) String() string { return proto.CompactTextString(m) }
   809  func (*SortMessage) ProtoMessage()    {}
   810  func (*SortMessage) Descriptor() ([]byte, []int) {
   811  	return fileDescriptor_f80abaa17e25ccc8, []int{8}
   812  }
   813  func (m *SortMessage) XXX_Unmarshal(b []byte) error {
   814  	return m.Unmarshal(b)
   815  }
   816  func (m *SortMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   817  	if deterministic {
   818  		return xxx_messageInfo_SortMessage.Marshal(b, m, deterministic)
   819  	} else {
   820  		b = b[:cap(b)]
   821  		n, err := m.MarshalToSizedBuffer(b)
   822  		if err != nil {
   823  			return nil, err
   824  		}
   825  		return b[:n], nil
   826  	}
   827  }
   828  func (m *SortMessage) XXX_Merge(src proto.Message) {
   829  	xxx_messageInfo_SortMessage.Merge(m, src)
   830  }
   831  func (m *SortMessage) XXX_Size() int {
   832  	return m.Size()
   833  }
   834  func (m *SortMessage) XXX_DiscardUnknown() {
   835  	xxx_messageInfo_SortMessage.DiscardUnknown(m)
   836  }
   837  
   838  var xxx_messageInfo_SortMessage proto.InternalMessageInfo
   839  
   840  func (m *SortMessage) GetOrder() []*Order {
   841  	if m != nil {
   842  		return m.Order
   843  	}
   844  	return nil
   845  }
   846  
   847  func (m *SortMessage) GetUidMatrix() []*List {
   848  	if m != nil {
   849  		return m.UidMatrix
   850  	}
   851  	return nil
   852  }
   853  
   854  func (m *SortMessage) GetCount() int32 {
   855  	if m != nil {
   856  		return m.Count
   857  	}
   858  	return 0
   859  }
   860  
   861  func (m *SortMessage) GetOffset() int32 {
   862  	if m != nil {
   863  		return m.Offset
   864  	}
   865  	return 0
   866  }
   867  
   868  func (m *SortMessage) GetReadTs() uint64 {
   869  	if m != nil {
   870  		return m.ReadTs
   871  	}
   872  	return 0
   873  }
   874  
   875  type SortResult struct {
   876  	UidMatrix            []*List  `protobuf:"bytes,1,rep,name=uid_matrix,json=uidMatrix,proto3" json:"uid_matrix,omitempty"`
   877  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   878  	XXX_unrecognized     []byte   `json:"-"`
   879  	XXX_sizecache        int32    `json:"-"`
   880  }
   881  
   882  func (m *SortResult) Reset()         { *m = SortResult{} }
   883  func (m *SortResult) String() string { return proto.CompactTextString(m) }
   884  func (*SortResult) ProtoMessage()    {}
   885  func (*SortResult) Descriptor() ([]byte, []int) {
   886  	return fileDescriptor_f80abaa17e25ccc8, []int{9}
   887  }
   888  func (m *SortResult) XXX_Unmarshal(b []byte) error {
   889  	return m.Unmarshal(b)
   890  }
   891  func (m *SortResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   892  	if deterministic {
   893  		return xxx_messageInfo_SortResult.Marshal(b, m, deterministic)
   894  	} else {
   895  		b = b[:cap(b)]
   896  		n, err := m.MarshalToSizedBuffer(b)
   897  		if err != nil {
   898  			return nil, err
   899  		}
   900  		return b[:n], nil
   901  	}
   902  }
   903  func (m *SortResult) XXX_Merge(src proto.Message) {
   904  	xxx_messageInfo_SortResult.Merge(m, src)
   905  }
   906  func (m *SortResult) XXX_Size() int {
   907  	return m.Size()
   908  }
   909  func (m *SortResult) XXX_DiscardUnknown() {
   910  	xxx_messageInfo_SortResult.DiscardUnknown(m)
   911  }
   912  
   913  var xxx_messageInfo_SortResult proto.InternalMessageInfo
   914  
   915  func (m *SortResult) GetUidMatrix() []*List {
   916  	if m != nil {
   917  		return m.UidMatrix
   918  	}
   919  	return nil
   920  }
   921  
   922  type RaftContext struct {
   923  	Id                   uint64   `protobuf:"fixed64,1,opt,name=id,proto3" json:"id,omitempty"`
   924  	Group                uint32   `protobuf:"varint,2,opt,name=group,proto3" json:"group,omitempty"`
   925  	Addr                 string   `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"`
   926  	SnapshotTs           uint64   `protobuf:"varint,4,opt,name=snapshot_ts,json=snapshotTs,proto3" json:"snapshot_ts,omitempty"`
   927  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   928  	XXX_unrecognized     []byte   `json:"-"`
   929  	XXX_sizecache        int32    `json:"-"`
   930  }
   931  
   932  func (m *RaftContext) Reset()         { *m = RaftContext{} }
   933  func (m *RaftContext) String() string { return proto.CompactTextString(m) }
   934  func (*RaftContext) ProtoMessage()    {}
   935  func (*RaftContext) Descriptor() ([]byte, []int) {
   936  	return fileDescriptor_f80abaa17e25ccc8, []int{10}
   937  }
   938  func (m *RaftContext) XXX_Unmarshal(b []byte) error {
   939  	return m.Unmarshal(b)
   940  }
   941  func (m *RaftContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   942  	if deterministic {
   943  		return xxx_messageInfo_RaftContext.Marshal(b, m, deterministic)
   944  	} else {
   945  		b = b[:cap(b)]
   946  		n, err := m.MarshalToSizedBuffer(b)
   947  		if err != nil {
   948  			return nil, err
   949  		}
   950  		return b[:n], nil
   951  	}
   952  }
   953  func (m *RaftContext) XXX_Merge(src proto.Message) {
   954  	xxx_messageInfo_RaftContext.Merge(m, src)
   955  }
   956  func (m *RaftContext) XXX_Size() int {
   957  	return m.Size()
   958  }
   959  func (m *RaftContext) XXX_DiscardUnknown() {
   960  	xxx_messageInfo_RaftContext.DiscardUnknown(m)
   961  }
   962  
   963  var xxx_messageInfo_RaftContext proto.InternalMessageInfo
   964  
   965  func (m *RaftContext) GetId() uint64 {
   966  	if m != nil {
   967  		return m.Id
   968  	}
   969  	return 0
   970  }
   971  
   972  func (m *RaftContext) GetGroup() uint32 {
   973  	if m != nil {
   974  		return m.Group
   975  	}
   976  	return 0
   977  }
   978  
   979  func (m *RaftContext) GetAddr() string {
   980  	if m != nil {
   981  		return m.Addr
   982  	}
   983  	return ""
   984  }
   985  
   986  func (m *RaftContext) GetSnapshotTs() uint64 {
   987  	if m != nil {
   988  		return m.SnapshotTs
   989  	}
   990  	return 0
   991  }
   992  
   993  // Member stores information about RAFT group member for a single RAFT node.
   994  // Note that each server can be serving multiple RAFT groups. Each group would have
   995  // one RAFT node per server serving that group.
   996  type Member struct {
   997  	Id                   uint64   `protobuf:"fixed64,1,opt,name=id,proto3" json:"id,omitempty"`
   998  	GroupId              uint32   `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
   999  	Addr                 string   `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"`
  1000  	Leader               bool     `protobuf:"varint,4,opt,name=leader,proto3" json:"leader,omitempty"`
  1001  	AmDead               bool     `protobuf:"varint,5,opt,name=am_dead,json=amDead,proto3" json:"am_dead,omitempty"`
  1002  	LastUpdate           uint64   `protobuf:"varint,6,opt,name=last_update,json=lastUpdate,proto3" json:"last_update,omitempty"`
  1003  	ClusterInfoOnly      bool     `protobuf:"varint,13,opt,name=cluster_info_only,json=clusterInfoOnly,proto3" json:"cluster_info_only,omitempty"`
  1004  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1005  	XXX_unrecognized     []byte   `json:"-"`
  1006  	XXX_sizecache        int32    `json:"-"`
  1007  }
  1008  
  1009  func (m *Member) Reset()         { *m = Member{} }
  1010  func (m *Member) String() string { return proto.CompactTextString(m) }
  1011  func (*Member) ProtoMessage()    {}
  1012  func (*Member) Descriptor() ([]byte, []int) {
  1013  	return fileDescriptor_f80abaa17e25ccc8, []int{11}
  1014  }
  1015  func (m *Member) XXX_Unmarshal(b []byte) error {
  1016  	return m.Unmarshal(b)
  1017  }
  1018  func (m *Member) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1019  	if deterministic {
  1020  		return xxx_messageInfo_Member.Marshal(b, m, deterministic)
  1021  	} else {
  1022  		b = b[:cap(b)]
  1023  		n, err := m.MarshalToSizedBuffer(b)
  1024  		if err != nil {
  1025  			return nil, err
  1026  		}
  1027  		return b[:n], nil
  1028  	}
  1029  }
  1030  func (m *Member) XXX_Merge(src proto.Message) {
  1031  	xxx_messageInfo_Member.Merge(m, src)
  1032  }
  1033  func (m *Member) XXX_Size() int {
  1034  	return m.Size()
  1035  }
  1036  func (m *Member) XXX_DiscardUnknown() {
  1037  	xxx_messageInfo_Member.DiscardUnknown(m)
  1038  }
  1039  
  1040  var xxx_messageInfo_Member proto.InternalMessageInfo
  1041  
  1042  func (m *Member) GetId() uint64 {
  1043  	if m != nil {
  1044  		return m.Id
  1045  	}
  1046  	return 0
  1047  }
  1048  
  1049  func (m *Member) GetGroupId() uint32 {
  1050  	if m != nil {
  1051  		return m.GroupId
  1052  	}
  1053  	return 0
  1054  }
  1055  
  1056  func (m *Member) GetAddr() string {
  1057  	if m != nil {
  1058  		return m.Addr
  1059  	}
  1060  	return ""
  1061  }
  1062  
  1063  func (m *Member) GetLeader() bool {
  1064  	if m != nil {
  1065  		return m.Leader
  1066  	}
  1067  	return false
  1068  }
  1069  
  1070  func (m *Member) GetAmDead() bool {
  1071  	if m != nil {
  1072  		return m.AmDead
  1073  	}
  1074  	return false
  1075  }
  1076  
  1077  func (m *Member) GetLastUpdate() uint64 {
  1078  	if m != nil {
  1079  		return m.LastUpdate
  1080  	}
  1081  	return 0
  1082  }
  1083  
  1084  func (m *Member) GetClusterInfoOnly() bool {
  1085  	if m != nil {
  1086  		return m.ClusterInfoOnly
  1087  	}
  1088  	return false
  1089  }
  1090  
  1091  type Group struct {
  1092  	Members              map[uint64]*Member `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  1093  	Tablets              map[string]*Tablet `protobuf:"bytes,2,rep,name=tablets,proto3" json:"tablets,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  1094  	SnapshotTs           uint64             `protobuf:"varint,3,opt,name=snapshot_ts,json=snapshotTs,proto3" json:"snapshot_ts,omitempty"`
  1095  	Checksum             uint64             `protobuf:"varint,4,opt,name=checksum,proto3" json:"checksum,omitempty"`
  1096  	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
  1097  	XXX_unrecognized     []byte             `json:"-"`
  1098  	XXX_sizecache        int32              `json:"-"`
  1099  }
  1100  
  1101  func (m *Group) Reset()         { *m = Group{} }
  1102  func (m *Group) String() string { return proto.CompactTextString(m) }
  1103  func (*Group) ProtoMessage()    {}
  1104  func (*Group) Descriptor() ([]byte, []int) {
  1105  	return fileDescriptor_f80abaa17e25ccc8, []int{12}
  1106  }
  1107  func (m *Group) XXX_Unmarshal(b []byte) error {
  1108  	return m.Unmarshal(b)
  1109  }
  1110  func (m *Group) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1111  	if deterministic {
  1112  		return xxx_messageInfo_Group.Marshal(b, m, deterministic)
  1113  	} else {
  1114  		b = b[:cap(b)]
  1115  		n, err := m.MarshalToSizedBuffer(b)
  1116  		if err != nil {
  1117  			return nil, err
  1118  		}
  1119  		return b[:n], nil
  1120  	}
  1121  }
  1122  func (m *Group) XXX_Merge(src proto.Message) {
  1123  	xxx_messageInfo_Group.Merge(m, src)
  1124  }
  1125  func (m *Group) XXX_Size() int {
  1126  	return m.Size()
  1127  }
  1128  func (m *Group) XXX_DiscardUnknown() {
  1129  	xxx_messageInfo_Group.DiscardUnknown(m)
  1130  }
  1131  
  1132  var xxx_messageInfo_Group proto.InternalMessageInfo
  1133  
  1134  func (m *Group) GetMembers() map[uint64]*Member {
  1135  	if m != nil {
  1136  		return m.Members
  1137  	}
  1138  	return nil
  1139  }
  1140  
  1141  func (m *Group) GetTablets() map[string]*Tablet {
  1142  	if m != nil {
  1143  		return m.Tablets
  1144  	}
  1145  	return nil
  1146  }
  1147  
  1148  func (m *Group) GetSnapshotTs() uint64 {
  1149  	if m != nil {
  1150  		return m.SnapshotTs
  1151  	}
  1152  	return 0
  1153  }
  1154  
  1155  func (m *Group) GetChecksum() uint64 {
  1156  	if m != nil {
  1157  		return m.Checksum
  1158  	}
  1159  	return 0
  1160  }
  1161  
  1162  type License struct {
  1163  	User                 string   `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
  1164  	MaxNodes             uint64   `protobuf:"varint,2,opt,name=maxNodes,proto3" json:"maxNodes,omitempty"`
  1165  	ExpiryTs             int64    `protobuf:"varint,3,opt,name=expiryTs,proto3" json:"expiryTs,omitempty"`
  1166  	Enabled              bool     `protobuf:"varint,4,opt,name=enabled,proto3" json:"enabled,omitempty"`
  1167  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1168  	XXX_unrecognized     []byte   `json:"-"`
  1169  	XXX_sizecache        int32    `json:"-"`
  1170  }
  1171  
  1172  func (m *License) Reset()         { *m = License{} }
  1173  func (m *License) String() string { return proto.CompactTextString(m) }
  1174  func (*License) ProtoMessage()    {}
  1175  func (*License) Descriptor() ([]byte, []int) {
  1176  	return fileDescriptor_f80abaa17e25ccc8, []int{13}
  1177  }
  1178  func (m *License) XXX_Unmarshal(b []byte) error {
  1179  	return m.Unmarshal(b)
  1180  }
  1181  func (m *License) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1182  	if deterministic {
  1183  		return xxx_messageInfo_License.Marshal(b, m, deterministic)
  1184  	} else {
  1185  		b = b[:cap(b)]
  1186  		n, err := m.MarshalToSizedBuffer(b)
  1187  		if err != nil {
  1188  			return nil, err
  1189  		}
  1190  		return b[:n], nil
  1191  	}
  1192  }
  1193  func (m *License) XXX_Merge(src proto.Message) {
  1194  	xxx_messageInfo_License.Merge(m, src)
  1195  }
  1196  func (m *License) XXX_Size() int {
  1197  	return m.Size()
  1198  }
  1199  func (m *License) XXX_DiscardUnknown() {
  1200  	xxx_messageInfo_License.DiscardUnknown(m)
  1201  }
  1202  
  1203  var xxx_messageInfo_License proto.InternalMessageInfo
  1204  
  1205  func (m *License) GetUser() string {
  1206  	if m != nil {
  1207  		return m.User
  1208  	}
  1209  	return ""
  1210  }
  1211  
  1212  func (m *License) GetMaxNodes() uint64 {
  1213  	if m != nil {
  1214  		return m.MaxNodes
  1215  	}
  1216  	return 0
  1217  }
  1218  
  1219  func (m *License) GetExpiryTs() int64 {
  1220  	if m != nil {
  1221  		return m.ExpiryTs
  1222  	}
  1223  	return 0
  1224  }
  1225  
  1226  func (m *License) GetEnabled() bool {
  1227  	if m != nil {
  1228  		return m.Enabled
  1229  	}
  1230  	return false
  1231  }
  1232  
  1233  type ZeroProposal struct {
  1234  	SnapshotTs           map[uint32]uint64 `protobuf:"bytes,1,rep,name=snapshot_ts,json=snapshotTs,proto3" json:"snapshot_ts,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
  1235  	Member               *Member           `protobuf:"bytes,2,opt,name=member,proto3" json:"member,omitempty"`
  1236  	Tablet               *Tablet           `protobuf:"bytes,3,opt,name=tablet,proto3" json:"tablet,omitempty"`
  1237  	MaxLeaseId           uint64            `protobuf:"varint,4,opt,name=maxLeaseId,proto3" json:"maxLeaseId,omitempty"`
  1238  	MaxTxnTs             uint64            `protobuf:"varint,5,opt,name=maxTxnTs,proto3" json:"maxTxnTs,omitempty"`
  1239  	MaxRaftId            uint64            `protobuf:"varint,6,opt,name=maxRaftId,proto3" json:"maxRaftId,omitempty"`
  1240  	Txn                  *api.TxnContext   `protobuf:"bytes,7,opt,name=txn,proto3" json:"txn,omitempty"`
  1241  	Key                  string            `protobuf:"bytes,8,opt,name=key,proto3" json:"key,omitempty"`
  1242  	Cid                  string            `protobuf:"bytes,9,opt,name=cid,proto3" json:"cid,omitempty"`
  1243  	License              *License          `protobuf:"bytes,10,opt,name=license,proto3" json:"license,omitempty"`
  1244  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
  1245  	XXX_unrecognized     []byte            `json:"-"`
  1246  	XXX_sizecache        int32             `json:"-"`
  1247  }
  1248  
  1249  func (m *ZeroProposal) Reset()         { *m = ZeroProposal{} }
  1250  func (m *ZeroProposal) String() string { return proto.CompactTextString(m) }
  1251  func (*ZeroProposal) ProtoMessage()    {}
  1252  func (*ZeroProposal) Descriptor() ([]byte, []int) {
  1253  	return fileDescriptor_f80abaa17e25ccc8, []int{14}
  1254  }
  1255  func (m *ZeroProposal) XXX_Unmarshal(b []byte) error {
  1256  	return m.Unmarshal(b)
  1257  }
  1258  func (m *ZeroProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1259  	if deterministic {
  1260  		return xxx_messageInfo_ZeroProposal.Marshal(b, m, deterministic)
  1261  	} else {
  1262  		b = b[:cap(b)]
  1263  		n, err := m.MarshalToSizedBuffer(b)
  1264  		if err != nil {
  1265  			return nil, err
  1266  		}
  1267  		return b[:n], nil
  1268  	}
  1269  }
  1270  func (m *ZeroProposal) XXX_Merge(src proto.Message) {
  1271  	xxx_messageInfo_ZeroProposal.Merge(m, src)
  1272  }
  1273  func (m *ZeroProposal) XXX_Size() int {
  1274  	return m.Size()
  1275  }
  1276  func (m *ZeroProposal) XXX_DiscardUnknown() {
  1277  	xxx_messageInfo_ZeroProposal.DiscardUnknown(m)
  1278  }
  1279  
  1280  var xxx_messageInfo_ZeroProposal proto.InternalMessageInfo
  1281  
  1282  func (m *ZeroProposal) GetSnapshotTs() map[uint32]uint64 {
  1283  	if m != nil {
  1284  		return m.SnapshotTs
  1285  	}
  1286  	return nil
  1287  }
  1288  
  1289  func (m *ZeroProposal) GetMember() *Member {
  1290  	if m != nil {
  1291  		return m.Member
  1292  	}
  1293  	return nil
  1294  }
  1295  
  1296  func (m *ZeroProposal) GetTablet() *Tablet {
  1297  	if m != nil {
  1298  		return m.Tablet
  1299  	}
  1300  	return nil
  1301  }
  1302  
  1303  func (m *ZeroProposal) GetMaxLeaseId() uint64 {
  1304  	if m != nil {
  1305  		return m.MaxLeaseId
  1306  	}
  1307  	return 0
  1308  }
  1309  
  1310  func (m *ZeroProposal) GetMaxTxnTs() uint64 {
  1311  	if m != nil {
  1312  		return m.MaxTxnTs
  1313  	}
  1314  	return 0
  1315  }
  1316  
  1317  func (m *ZeroProposal) GetMaxRaftId() uint64 {
  1318  	if m != nil {
  1319  		return m.MaxRaftId
  1320  	}
  1321  	return 0
  1322  }
  1323  
  1324  func (m *ZeroProposal) GetTxn() *api.TxnContext {
  1325  	if m != nil {
  1326  		return m.Txn
  1327  	}
  1328  	return nil
  1329  }
  1330  
  1331  func (m *ZeroProposal) GetKey() string {
  1332  	if m != nil {
  1333  		return m.Key
  1334  	}
  1335  	return ""
  1336  }
  1337  
  1338  func (m *ZeroProposal) GetCid() string {
  1339  	if m != nil {
  1340  		return m.Cid
  1341  	}
  1342  	return ""
  1343  }
  1344  
  1345  func (m *ZeroProposal) GetLicense() *License {
  1346  	if m != nil {
  1347  		return m.License
  1348  	}
  1349  	return nil
  1350  }
  1351  
  1352  // MembershipState is used to pack together the current membership state of all the nodes
  1353  // in the caller server; and the membership updates recorded by the callee server since
  1354  // the provided lastUpdate.
  1355  type MembershipState struct {
  1356  	Counter              uint64             `protobuf:"varint,1,opt,name=counter,proto3" json:"counter,omitempty"`
  1357  	Groups               map[uint32]*Group  `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  1358  	Zeros                map[uint64]*Member `protobuf:"bytes,3,rep,name=zeros,proto3" json:"zeros,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  1359  	MaxLeaseId           uint64             `protobuf:"varint,4,opt,name=maxLeaseId,proto3" json:"maxLeaseId,omitempty"`
  1360  	MaxTxnTs             uint64             `protobuf:"varint,5,opt,name=maxTxnTs,proto3" json:"maxTxnTs,omitempty"`
  1361  	MaxRaftId            uint64             `protobuf:"varint,6,opt,name=maxRaftId,proto3" json:"maxRaftId,omitempty"`
  1362  	Removed              []*Member          `protobuf:"bytes,7,rep,name=removed,proto3" json:"removed,omitempty"`
  1363  	Cid                  string             `protobuf:"bytes,8,opt,name=cid,proto3" json:"cid,omitempty"`
  1364  	License              *License           `protobuf:"bytes,9,opt,name=license,proto3" json:"license,omitempty"`
  1365  	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
  1366  	XXX_unrecognized     []byte             `json:"-"`
  1367  	XXX_sizecache        int32              `json:"-"`
  1368  }
  1369  
  1370  func (m *MembershipState) Reset()         { *m = MembershipState{} }
  1371  func (m *MembershipState) String() string { return proto.CompactTextString(m) }
  1372  func (*MembershipState) ProtoMessage()    {}
  1373  func (*MembershipState) Descriptor() ([]byte, []int) {
  1374  	return fileDescriptor_f80abaa17e25ccc8, []int{15}
  1375  }
  1376  func (m *MembershipState) XXX_Unmarshal(b []byte) error {
  1377  	return m.Unmarshal(b)
  1378  }
  1379  func (m *MembershipState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1380  	if deterministic {
  1381  		return xxx_messageInfo_MembershipState.Marshal(b, m, deterministic)
  1382  	} else {
  1383  		b = b[:cap(b)]
  1384  		n, err := m.MarshalToSizedBuffer(b)
  1385  		if err != nil {
  1386  			return nil, err
  1387  		}
  1388  		return b[:n], nil
  1389  	}
  1390  }
  1391  func (m *MembershipState) XXX_Merge(src proto.Message) {
  1392  	xxx_messageInfo_MembershipState.Merge(m, src)
  1393  }
  1394  func (m *MembershipState) XXX_Size() int {
  1395  	return m.Size()
  1396  }
  1397  func (m *MembershipState) XXX_DiscardUnknown() {
  1398  	xxx_messageInfo_MembershipState.DiscardUnknown(m)
  1399  }
  1400  
  1401  var xxx_messageInfo_MembershipState proto.InternalMessageInfo
  1402  
  1403  func (m *MembershipState) GetCounter() uint64 {
  1404  	if m != nil {
  1405  		return m.Counter
  1406  	}
  1407  	return 0
  1408  }
  1409  
  1410  func (m *MembershipState) GetGroups() map[uint32]*Group {
  1411  	if m != nil {
  1412  		return m.Groups
  1413  	}
  1414  	return nil
  1415  }
  1416  
  1417  func (m *MembershipState) GetZeros() map[uint64]*Member {
  1418  	if m != nil {
  1419  		return m.Zeros
  1420  	}
  1421  	return nil
  1422  }
  1423  
  1424  func (m *MembershipState) GetMaxLeaseId() uint64 {
  1425  	if m != nil {
  1426  		return m.MaxLeaseId
  1427  	}
  1428  	return 0
  1429  }
  1430  
  1431  func (m *MembershipState) GetMaxTxnTs() uint64 {
  1432  	if m != nil {
  1433  		return m.MaxTxnTs
  1434  	}
  1435  	return 0
  1436  }
  1437  
  1438  func (m *MembershipState) GetMaxRaftId() uint64 {
  1439  	if m != nil {
  1440  		return m.MaxRaftId
  1441  	}
  1442  	return 0
  1443  }
  1444  
  1445  func (m *MembershipState) GetRemoved() []*Member {
  1446  	if m != nil {
  1447  		return m.Removed
  1448  	}
  1449  	return nil
  1450  }
  1451  
  1452  func (m *MembershipState) GetCid() string {
  1453  	if m != nil {
  1454  		return m.Cid
  1455  	}
  1456  	return ""
  1457  }
  1458  
  1459  func (m *MembershipState) GetLicense() *License {
  1460  	if m != nil {
  1461  		return m.License
  1462  	}
  1463  	return nil
  1464  }
  1465  
  1466  type ConnectionState struct {
  1467  	Member               *Member          `protobuf:"bytes,1,opt,name=member,proto3" json:"member,omitempty"`
  1468  	State                *MembershipState `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
  1469  	MaxPending           uint64           `protobuf:"varint,3,opt,name=max_pending,json=maxPending,proto3" json:"max_pending,omitempty"`
  1470  	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
  1471  	XXX_unrecognized     []byte           `json:"-"`
  1472  	XXX_sizecache        int32            `json:"-"`
  1473  }
  1474  
  1475  func (m *ConnectionState) Reset()         { *m = ConnectionState{} }
  1476  func (m *ConnectionState) String() string { return proto.CompactTextString(m) }
  1477  func (*ConnectionState) ProtoMessage()    {}
  1478  func (*ConnectionState) Descriptor() ([]byte, []int) {
  1479  	return fileDescriptor_f80abaa17e25ccc8, []int{16}
  1480  }
  1481  func (m *ConnectionState) XXX_Unmarshal(b []byte) error {
  1482  	return m.Unmarshal(b)
  1483  }
  1484  func (m *ConnectionState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1485  	if deterministic {
  1486  		return xxx_messageInfo_ConnectionState.Marshal(b, m, deterministic)
  1487  	} else {
  1488  		b = b[:cap(b)]
  1489  		n, err := m.MarshalToSizedBuffer(b)
  1490  		if err != nil {
  1491  			return nil, err
  1492  		}
  1493  		return b[:n], nil
  1494  	}
  1495  }
  1496  func (m *ConnectionState) XXX_Merge(src proto.Message) {
  1497  	xxx_messageInfo_ConnectionState.Merge(m, src)
  1498  }
  1499  func (m *ConnectionState) XXX_Size() int {
  1500  	return m.Size()
  1501  }
  1502  func (m *ConnectionState) XXX_DiscardUnknown() {
  1503  	xxx_messageInfo_ConnectionState.DiscardUnknown(m)
  1504  }
  1505  
  1506  var xxx_messageInfo_ConnectionState proto.InternalMessageInfo
  1507  
  1508  func (m *ConnectionState) GetMember() *Member {
  1509  	if m != nil {
  1510  		return m.Member
  1511  	}
  1512  	return nil
  1513  }
  1514  
  1515  func (m *ConnectionState) GetState() *MembershipState {
  1516  	if m != nil {
  1517  		return m.State
  1518  	}
  1519  	return nil
  1520  }
  1521  
  1522  func (m *ConnectionState) GetMaxPending() uint64 {
  1523  	if m != nil {
  1524  		return m.MaxPending
  1525  	}
  1526  	return 0
  1527  }
  1528  
  1529  type Tablet struct {
  1530  	GroupId              uint32   `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
  1531  	Predicate            string   `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"`
  1532  	Force                bool     `protobuf:"varint,3,opt,name=force,proto3" json:"force,omitempty"`
  1533  	Space                int64    `protobuf:"varint,7,opt,name=space,proto3" json:"space,omitempty"`
  1534  	Remove               bool     `protobuf:"varint,8,opt,name=remove,proto3" json:"remove,omitempty"`
  1535  	ReadOnly             bool     `protobuf:"varint,9,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"`
  1536  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1537  	XXX_unrecognized     []byte   `json:"-"`
  1538  	XXX_sizecache        int32    `json:"-"`
  1539  }
  1540  
  1541  func (m *Tablet) Reset()         { *m = Tablet{} }
  1542  func (m *Tablet) String() string { return proto.CompactTextString(m) }
  1543  func (*Tablet) ProtoMessage()    {}
  1544  func (*Tablet) Descriptor() ([]byte, []int) {
  1545  	return fileDescriptor_f80abaa17e25ccc8, []int{17}
  1546  }
  1547  func (m *Tablet) XXX_Unmarshal(b []byte) error {
  1548  	return m.Unmarshal(b)
  1549  }
  1550  func (m *Tablet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1551  	if deterministic {
  1552  		return xxx_messageInfo_Tablet.Marshal(b, m, deterministic)
  1553  	} else {
  1554  		b = b[:cap(b)]
  1555  		n, err := m.MarshalToSizedBuffer(b)
  1556  		if err != nil {
  1557  			return nil, err
  1558  		}
  1559  		return b[:n], nil
  1560  	}
  1561  }
  1562  func (m *Tablet) XXX_Merge(src proto.Message) {
  1563  	xxx_messageInfo_Tablet.Merge(m, src)
  1564  }
  1565  func (m *Tablet) XXX_Size() int {
  1566  	return m.Size()
  1567  }
  1568  func (m *Tablet) XXX_DiscardUnknown() {
  1569  	xxx_messageInfo_Tablet.DiscardUnknown(m)
  1570  }
  1571  
  1572  var xxx_messageInfo_Tablet proto.InternalMessageInfo
  1573  
  1574  func (m *Tablet) GetGroupId() uint32 {
  1575  	if m != nil {
  1576  		return m.GroupId
  1577  	}
  1578  	return 0
  1579  }
  1580  
  1581  func (m *Tablet) GetPredicate() string {
  1582  	if m != nil {
  1583  		return m.Predicate
  1584  	}
  1585  	return ""
  1586  }
  1587  
  1588  func (m *Tablet) GetForce() bool {
  1589  	if m != nil {
  1590  		return m.Force
  1591  	}
  1592  	return false
  1593  }
  1594  
  1595  func (m *Tablet) GetSpace() int64 {
  1596  	if m != nil {
  1597  		return m.Space
  1598  	}
  1599  	return 0
  1600  }
  1601  
  1602  func (m *Tablet) GetRemove() bool {
  1603  	if m != nil {
  1604  		return m.Remove
  1605  	}
  1606  	return false
  1607  }
  1608  
  1609  func (m *Tablet) GetReadOnly() bool {
  1610  	if m != nil {
  1611  		return m.ReadOnly
  1612  	}
  1613  	return false
  1614  }
  1615  
  1616  type DirectedEdge struct {
  1617  	Entity               uint64          `protobuf:"fixed64,1,opt,name=entity,proto3" json:"entity,omitempty"`
  1618  	Attr                 string          `protobuf:"bytes,2,opt,name=attr,proto3" json:"attr,omitempty"`
  1619  	Value                []byte          `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
  1620  	ValueType            Posting_ValType `protobuf:"varint,4,opt,name=value_type,json=valueType,proto3,enum=pb.Posting_ValType" json:"value_type,omitempty"`
  1621  	ValueId              uint64          `protobuf:"fixed64,5,opt,name=value_id,json=valueId,proto3" json:"value_id,omitempty"`
  1622  	Label                string          `protobuf:"bytes,6,opt,name=label,proto3" json:"label,omitempty"`
  1623  	Lang                 string          `protobuf:"bytes,7,opt,name=lang,proto3" json:"lang,omitempty"`
  1624  	Op                   DirectedEdge_Op `protobuf:"varint,8,opt,name=op,proto3,enum=pb.DirectedEdge_Op" json:"op,omitempty"`
  1625  	Facets               []*api.Facet    `protobuf:"bytes,9,rep,name=facets,proto3" json:"facets,omitempty"`
  1626  	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
  1627  	XXX_unrecognized     []byte          `json:"-"`
  1628  	XXX_sizecache        int32           `json:"-"`
  1629  }
  1630  
  1631  func (m *DirectedEdge) Reset()         { *m = DirectedEdge{} }
  1632  func (m *DirectedEdge) String() string { return proto.CompactTextString(m) }
  1633  func (*DirectedEdge) ProtoMessage()    {}
  1634  func (*DirectedEdge) Descriptor() ([]byte, []int) {
  1635  	return fileDescriptor_f80abaa17e25ccc8, []int{18}
  1636  }
  1637  func (m *DirectedEdge) XXX_Unmarshal(b []byte) error {
  1638  	return m.Unmarshal(b)
  1639  }
  1640  func (m *DirectedEdge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1641  	if deterministic {
  1642  		return xxx_messageInfo_DirectedEdge.Marshal(b, m, deterministic)
  1643  	} else {
  1644  		b = b[:cap(b)]
  1645  		n, err := m.MarshalToSizedBuffer(b)
  1646  		if err != nil {
  1647  			return nil, err
  1648  		}
  1649  		return b[:n], nil
  1650  	}
  1651  }
  1652  func (m *DirectedEdge) XXX_Merge(src proto.Message) {
  1653  	xxx_messageInfo_DirectedEdge.Merge(m, src)
  1654  }
  1655  func (m *DirectedEdge) XXX_Size() int {
  1656  	return m.Size()
  1657  }
  1658  func (m *DirectedEdge) XXX_DiscardUnknown() {
  1659  	xxx_messageInfo_DirectedEdge.DiscardUnknown(m)
  1660  }
  1661  
  1662  var xxx_messageInfo_DirectedEdge proto.InternalMessageInfo
  1663  
  1664  func (m *DirectedEdge) GetEntity() uint64 {
  1665  	if m != nil {
  1666  		return m.Entity
  1667  	}
  1668  	return 0
  1669  }
  1670  
  1671  func (m *DirectedEdge) GetAttr() string {
  1672  	if m != nil {
  1673  		return m.Attr
  1674  	}
  1675  	return ""
  1676  }
  1677  
  1678  func (m *DirectedEdge) GetValue() []byte {
  1679  	if m != nil {
  1680  		return m.Value
  1681  	}
  1682  	return nil
  1683  }
  1684  
  1685  func (m *DirectedEdge) GetValueType() Posting_ValType {
  1686  	if m != nil {
  1687  		return m.ValueType
  1688  	}
  1689  	return Posting_DEFAULT
  1690  }
  1691  
  1692  func (m *DirectedEdge) GetValueId() uint64 {
  1693  	if m != nil {
  1694  		return m.ValueId
  1695  	}
  1696  	return 0
  1697  }
  1698  
  1699  func (m *DirectedEdge) GetLabel() string {
  1700  	if m != nil {
  1701  		return m.Label
  1702  	}
  1703  	return ""
  1704  }
  1705  
  1706  func (m *DirectedEdge) GetLang() string {
  1707  	if m != nil {
  1708  		return m.Lang
  1709  	}
  1710  	return ""
  1711  }
  1712  
  1713  func (m *DirectedEdge) GetOp() DirectedEdge_Op {
  1714  	if m != nil {
  1715  		return m.Op
  1716  	}
  1717  	return DirectedEdge_SET
  1718  }
  1719  
  1720  func (m *DirectedEdge) GetFacets() []*api.Facet {
  1721  	if m != nil {
  1722  		return m.Facets
  1723  	}
  1724  	return nil
  1725  }
  1726  
  1727  type Mutations struct {
  1728  	GroupId              uint32           `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
  1729  	StartTs              uint64           `protobuf:"varint,2,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"`
  1730  	Edges                []*DirectedEdge  `protobuf:"bytes,3,rep,name=edges,proto3" json:"edges,omitempty"`
  1731  	Schema               []*SchemaUpdate  `protobuf:"bytes,4,rep,name=schema,proto3" json:"schema,omitempty"`
  1732  	Types                []*TypeUpdate    `protobuf:"bytes,6,rep,name=types,proto3" json:"types,omitempty"`
  1733  	DropOp               Mutations_DropOp `protobuf:"varint,7,opt,name=drop_op,json=dropOp,proto3,enum=pb.Mutations_DropOp" json:"drop_op,omitempty"`
  1734  	DropValue            string           `protobuf:"bytes,8,opt,name=drop_value,json=dropValue,proto3" json:"drop_value,omitempty"`
  1735  	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
  1736  	XXX_unrecognized     []byte           `json:"-"`
  1737  	XXX_sizecache        int32            `json:"-"`
  1738  }
  1739  
  1740  func (m *Mutations) Reset()         { *m = Mutations{} }
  1741  func (m *Mutations) String() string { return proto.CompactTextString(m) }
  1742  func (*Mutations) ProtoMessage()    {}
  1743  func (*Mutations) Descriptor() ([]byte, []int) {
  1744  	return fileDescriptor_f80abaa17e25ccc8, []int{19}
  1745  }
  1746  func (m *Mutations) XXX_Unmarshal(b []byte) error {
  1747  	return m.Unmarshal(b)
  1748  }
  1749  func (m *Mutations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1750  	if deterministic {
  1751  		return xxx_messageInfo_Mutations.Marshal(b, m, deterministic)
  1752  	} else {
  1753  		b = b[:cap(b)]
  1754  		n, err := m.MarshalToSizedBuffer(b)
  1755  		if err != nil {
  1756  			return nil, err
  1757  		}
  1758  		return b[:n], nil
  1759  	}
  1760  }
  1761  func (m *Mutations) XXX_Merge(src proto.Message) {
  1762  	xxx_messageInfo_Mutations.Merge(m, src)
  1763  }
  1764  func (m *Mutations) XXX_Size() int {
  1765  	return m.Size()
  1766  }
  1767  func (m *Mutations) XXX_DiscardUnknown() {
  1768  	xxx_messageInfo_Mutations.DiscardUnknown(m)
  1769  }
  1770  
  1771  var xxx_messageInfo_Mutations proto.InternalMessageInfo
  1772  
  1773  func (m *Mutations) GetGroupId() uint32 {
  1774  	if m != nil {
  1775  		return m.GroupId
  1776  	}
  1777  	return 0
  1778  }
  1779  
  1780  func (m *Mutations) GetStartTs() uint64 {
  1781  	if m != nil {
  1782  		return m.StartTs
  1783  	}
  1784  	return 0
  1785  }
  1786  
  1787  func (m *Mutations) GetEdges() []*DirectedEdge {
  1788  	if m != nil {
  1789  		return m.Edges
  1790  	}
  1791  	return nil
  1792  }
  1793  
  1794  func (m *Mutations) GetSchema() []*SchemaUpdate {
  1795  	if m != nil {
  1796  		return m.Schema
  1797  	}
  1798  	return nil
  1799  }
  1800  
  1801  func (m *Mutations) GetTypes() []*TypeUpdate {
  1802  	if m != nil {
  1803  		return m.Types
  1804  	}
  1805  	return nil
  1806  }
  1807  
  1808  func (m *Mutations) GetDropOp() Mutations_DropOp {
  1809  	if m != nil {
  1810  		return m.DropOp
  1811  	}
  1812  	return Mutations_NONE
  1813  }
  1814  
  1815  func (m *Mutations) GetDropValue() string {
  1816  	if m != nil {
  1817  		return m.DropValue
  1818  	}
  1819  	return ""
  1820  }
  1821  
  1822  type Snapshot struct {
  1823  	Context *RaftContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
  1824  	Index   uint64       `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
  1825  	ReadTs  uint64       `protobuf:"varint,3,opt,name=read_ts,json=readTs,proto3" json:"read_ts,omitempty"`
  1826  	// done is used to indicate that snapshot stream was a success.
  1827  	Done bool `protobuf:"varint,4,opt,name=done,proto3" json:"done,omitempty"`
  1828  	// since_ts stores the ts of the last snapshot to support diff snap updates.
  1829  	SinceTs              uint64   `protobuf:"varint,5,opt,name=since_ts,json=sinceTs,proto3" json:"since_ts,omitempty"`
  1830  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1831  	XXX_unrecognized     []byte   `json:"-"`
  1832  	XXX_sizecache        int32    `json:"-"`
  1833  }
  1834  
  1835  func (m *Snapshot) Reset()         { *m = Snapshot{} }
  1836  func (m *Snapshot) String() string { return proto.CompactTextString(m) }
  1837  func (*Snapshot) ProtoMessage()    {}
  1838  func (*Snapshot) Descriptor() ([]byte, []int) {
  1839  	return fileDescriptor_f80abaa17e25ccc8, []int{20}
  1840  }
  1841  func (m *Snapshot) XXX_Unmarshal(b []byte) error {
  1842  	return m.Unmarshal(b)
  1843  }
  1844  func (m *Snapshot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1845  	if deterministic {
  1846  		return xxx_messageInfo_Snapshot.Marshal(b, m, deterministic)
  1847  	} else {
  1848  		b = b[:cap(b)]
  1849  		n, err := m.MarshalToSizedBuffer(b)
  1850  		if err != nil {
  1851  			return nil, err
  1852  		}
  1853  		return b[:n], nil
  1854  	}
  1855  }
  1856  func (m *Snapshot) XXX_Merge(src proto.Message) {
  1857  	xxx_messageInfo_Snapshot.Merge(m, src)
  1858  }
  1859  func (m *Snapshot) XXX_Size() int {
  1860  	return m.Size()
  1861  }
  1862  func (m *Snapshot) XXX_DiscardUnknown() {
  1863  	xxx_messageInfo_Snapshot.DiscardUnknown(m)
  1864  }
  1865  
  1866  var xxx_messageInfo_Snapshot proto.InternalMessageInfo
  1867  
  1868  func (m *Snapshot) GetContext() *RaftContext {
  1869  	if m != nil {
  1870  		return m.Context
  1871  	}
  1872  	return nil
  1873  }
  1874  
  1875  func (m *Snapshot) GetIndex() uint64 {
  1876  	if m != nil {
  1877  		return m.Index
  1878  	}
  1879  	return 0
  1880  }
  1881  
  1882  func (m *Snapshot) GetReadTs() uint64 {
  1883  	if m != nil {
  1884  		return m.ReadTs
  1885  	}
  1886  	return 0
  1887  }
  1888  
  1889  func (m *Snapshot) GetDone() bool {
  1890  	if m != nil {
  1891  		return m.Done
  1892  	}
  1893  	return false
  1894  }
  1895  
  1896  func (m *Snapshot) GetSinceTs() uint64 {
  1897  	if m != nil {
  1898  		return m.SinceTs
  1899  	}
  1900  	return 0
  1901  }
  1902  
  1903  type Proposal struct {
  1904  	Mutations            *Mutations       `protobuf:"bytes,2,opt,name=mutations,proto3" json:"mutations,omitempty"`
  1905  	Kv                   []*pb.KV         `protobuf:"bytes,4,rep,name=kv,proto3" json:"kv,omitempty"`
  1906  	State                *MembershipState `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"`
  1907  	CleanPredicate       string           `protobuf:"bytes,6,opt,name=clean_predicate,json=cleanPredicate,proto3" json:"clean_predicate,omitempty"`
  1908  	Key                  string           `protobuf:"bytes,7,opt,name=key,proto3" json:"key,omitempty"`
  1909  	Delta                *OracleDelta     `protobuf:"bytes,8,opt,name=delta,proto3" json:"delta,omitempty"`
  1910  	Snapshot             *Snapshot        `protobuf:"bytes,9,opt,name=snapshot,proto3" json:"snapshot,omitempty"`
  1911  	Index                uint64           `protobuf:"varint,10,opt,name=index,proto3" json:"index,omitempty"`
  1912  	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
  1913  	XXX_unrecognized     []byte           `json:"-"`
  1914  	XXX_sizecache        int32            `json:"-"`
  1915  }
  1916  
  1917  func (m *Proposal) Reset()         { *m = Proposal{} }
  1918  func (m *Proposal) String() string { return proto.CompactTextString(m) }
  1919  func (*Proposal) ProtoMessage()    {}
  1920  func (*Proposal) Descriptor() ([]byte, []int) {
  1921  	return fileDescriptor_f80abaa17e25ccc8, []int{21}
  1922  }
  1923  func (m *Proposal) XXX_Unmarshal(b []byte) error {
  1924  	return m.Unmarshal(b)
  1925  }
  1926  func (m *Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1927  	if deterministic {
  1928  		return xxx_messageInfo_Proposal.Marshal(b, m, deterministic)
  1929  	} else {
  1930  		b = b[:cap(b)]
  1931  		n, err := m.MarshalToSizedBuffer(b)
  1932  		if err != nil {
  1933  			return nil, err
  1934  		}
  1935  		return b[:n], nil
  1936  	}
  1937  }
  1938  func (m *Proposal) XXX_Merge(src proto.Message) {
  1939  	xxx_messageInfo_Proposal.Merge(m, src)
  1940  }
  1941  func (m *Proposal) XXX_Size() int {
  1942  	return m.Size()
  1943  }
  1944  func (m *Proposal) XXX_DiscardUnknown() {
  1945  	xxx_messageInfo_Proposal.DiscardUnknown(m)
  1946  }
  1947  
  1948  var xxx_messageInfo_Proposal proto.InternalMessageInfo
  1949  
  1950  func (m *Proposal) GetMutations() *Mutations {
  1951  	if m != nil {
  1952  		return m.Mutations
  1953  	}
  1954  	return nil
  1955  }
  1956  
  1957  func (m *Proposal) GetKv() []*pb.KV {
  1958  	if m != nil {
  1959  		return m.Kv
  1960  	}
  1961  	return nil
  1962  }
  1963  
  1964  func (m *Proposal) GetState() *MembershipState {
  1965  	if m != nil {
  1966  		return m.State
  1967  	}
  1968  	return nil
  1969  }
  1970  
  1971  func (m *Proposal) GetCleanPredicate() string {
  1972  	if m != nil {
  1973  		return m.CleanPredicate
  1974  	}
  1975  	return ""
  1976  }
  1977  
  1978  func (m *Proposal) GetKey() string {
  1979  	if m != nil {
  1980  		return m.Key
  1981  	}
  1982  	return ""
  1983  }
  1984  
  1985  func (m *Proposal) GetDelta() *OracleDelta {
  1986  	if m != nil {
  1987  		return m.Delta
  1988  	}
  1989  	return nil
  1990  }
  1991  
  1992  func (m *Proposal) GetSnapshot() *Snapshot {
  1993  	if m != nil {
  1994  		return m.Snapshot
  1995  	}
  1996  	return nil
  1997  }
  1998  
  1999  func (m *Proposal) GetIndex() uint64 {
  2000  	if m != nil {
  2001  		return m.Index
  2002  	}
  2003  	return 0
  2004  }
  2005  
  2006  type KVS struct {
  2007  	Kv []*pb.KV `protobuf:"bytes,1,rep,name=kv,proto3" json:"kv,omitempty"`
  2008  	// done used to indicate if the stream of KVS is over.
  2009  	Done                 bool     `protobuf:"varint,2,opt,name=done,proto3" json:"done,omitempty"`
  2010  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2011  	XXX_unrecognized     []byte   `json:"-"`
  2012  	XXX_sizecache        int32    `json:"-"`
  2013  }
  2014  
  2015  func (m *KVS) Reset()         { *m = KVS{} }
  2016  func (m *KVS) String() string { return proto.CompactTextString(m) }
  2017  func (*KVS) ProtoMessage()    {}
  2018  func (*KVS) Descriptor() ([]byte, []int) {
  2019  	return fileDescriptor_f80abaa17e25ccc8, []int{22}
  2020  }
  2021  func (m *KVS) XXX_Unmarshal(b []byte) error {
  2022  	return m.Unmarshal(b)
  2023  }
  2024  func (m *KVS) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2025  	if deterministic {
  2026  		return xxx_messageInfo_KVS.Marshal(b, m, deterministic)
  2027  	} else {
  2028  		b = b[:cap(b)]
  2029  		n, err := m.MarshalToSizedBuffer(b)
  2030  		if err != nil {
  2031  			return nil, err
  2032  		}
  2033  		return b[:n], nil
  2034  	}
  2035  }
  2036  func (m *KVS) XXX_Merge(src proto.Message) {
  2037  	xxx_messageInfo_KVS.Merge(m, src)
  2038  }
  2039  func (m *KVS) XXX_Size() int {
  2040  	return m.Size()
  2041  }
  2042  func (m *KVS) XXX_DiscardUnknown() {
  2043  	xxx_messageInfo_KVS.DiscardUnknown(m)
  2044  }
  2045  
  2046  var xxx_messageInfo_KVS proto.InternalMessageInfo
  2047  
  2048  func (m *KVS) GetKv() []*pb.KV {
  2049  	if m != nil {
  2050  		return m.Kv
  2051  	}
  2052  	return nil
  2053  }
  2054  
  2055  func (m *KVS) GetDone() bool {
  2056  	if m != nil {
  2057  		return m.Done
  2058  	}
  2059  	return false
  2060  }
  2061  
  2062  // Posting messages.
  2063  type Posting struct {
  2064  	Uid         uint64              `protobuf:"fixed64,1,opt,name=uid,proto3" json:"uid,omitempty"`
  2065  	Value       []byte              `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  2066  	ValType     Posting_ValType     `protobuf:"varint,3,opt,name=val_type,json=valType,proto3,enum=pb.Posting_ValType" json:"val_type,omitempty"`
  2067  	PostingType Posting_PostingType `protobuf:"varint,4,opt,name=posting_type,json=postingType,proto3,enum=pb.Posting_PostingType" json:"posting_type,omitempty"`
  2068  	LangTag     []byte              `protobuf:"bytes,5,opt,name=lang_tag,json=langTag,proto3" json:"lang_tag,omitempty"`
  2069  	Label       string              `protobuf:"bytes,6,opt,name=label,proto3" json:"label,omitempty"`
  2070  	Facets      []*api.Facet        `protobuf:"bytes,9,rep,name=facets,proto3" json:"facets,omitempty"`
  2071  	// TODO: op is only used temporarily. See if we can remove it from here.
  2072  	Op                   uint32   `protobuf:"varint,12,opt,name=op,proto3" json:"op,omitempty"`
  2073  	StartTs              uint64   `protobuf:"varint,13,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"`
  2074  	CommitTs             uint64   `protobuf:"varint,14,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"`
  2075  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2076  	XXX_unrecognized     []byte   `json:"-"`
  2077  	XXX_sizecache        int32    `json:"-"`
  2078  }
  2079  
  2080  func (m *Posting) Reset()         { *m = Posting{} }
  2081  func (m *Posting) String() string { return proto.CompactTextString(m) }
  2082  func (*Posting) ProtoMessage()    {}
  2083  func (*Posting) Descriptor() ([]byte, []int) {
  2084  	return fileDescriptor_f80abaa17e25ccc8, []int{23}
  2085  }
  2086  func (m *Posting) XXX_Unmarshal(b []byte) error {
  2087  	return m.Unmarshal(b)
  2088  }
  2089  func (m *Posting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2090  	if deterministic {
  2091  		return xxx_messageInfo_Posting.Marshal(b, m, deterministic)
  2092  	} else {
  2093  		b = b[:cap(b)]
  2094  		n, err := m.MarshalToSizedBuffer(b)
  2095  		if err != nil {
  2096  			return nil, err
  2097  		}
  2098  		return b[:n], nil
  2099  	}
  2100  }
  2101  func (m *Posting) XXX_Merge(src proto.Message) {
  2102  	xxx_messageInfo_Posting.Merge(m, src)
  2103  }
  2104  func (m *Posting) XXX_Size() int {
  2105  	return m.Size()
  2106  }
  2107  func (m *Posting) XXX_DiscardUnknown() {
  2108  	xxx_messageInfo_Posting.DiscardUnknown(m)
  2109  }
  2110  
  2111  var xxx_messageInfo_Posting proto.InternalMessageInfo
  2112  
  2113  func (m *Posting) GetUid() uint64 {
  2114  	if m != nil {
  2115  		return m.Uid
  2116  	}
  2117  	return 0
  2118  }
  2119  
  2120  func (m *Posting) GetValue() []byte {
  2121  	if m != nil {
  2122  		return m.Value
  2123  	}
  2124  	return nil
  2125  }
  2126  
  2127  func (m *Posting) GetValType() Posting_ValType {
  2128  	if m != nil {
  2129  		return m.ValType
  2130  	}
  2131  	return Posting_DEFAULT
  2132  }
  2133  
  2134  func (m *Posting) GetPostingType() Posting_PostingType {
  2135  	if m != nil {
  2136  		return m.PostingType
  2137  	}
  2138  	return Posting_REF
  2139  }
  2140  
  2141  func (m *Posting) GetLangTag() []byte {
  2142  	if m != nil {
  2143  		return m.LangTag
  2144  	}
  2145  	return nil
  2146  }
  2147  
  2148  func (m *Posting) GetLabel() string {
  2149  	if m != nil {
  2150  		return m.Label
  2151  	}
  2152  	return ""
  2153  }
  2154  
  2155  func (m *Posting) GetFacets() []*api.Facet {
  2156  	if m != nil {
  2157  		return m.Facets
  2158  	}
  2159  	return nil
  2160  }
  2161  
  2162  func (m *Posting) GetOp() uint32 {
  2163  	if m != nil {
  2164  		return m.Op
  2165  	}
  2166  	return 0
  2167  }
  2168  
  2169  func (m *Posting) GetStartTs() uint64 {
  2170  	if m != nil {
  2171  		return m.StartTs
  2172  	}
  2173  	return 0
  2174  }
  2175  
  2176  func (m *Posting) GetCommitTs() uint64 {
  2177  	if m != nil {
  2178  		return m.CommitTs
  2179  	}
  2180  	return 0
  2181  }
  2182  
  2183  type UidBlock struct {
  2184  	Base uint64 `protobuf:"varint,1,opt,name=base,proto3" json:"base,omitempty"`
  2185  	// deltas contains the deltas encoded with Varints. We don't store deltas as a list of integers,
  2186  	// because when the PB is brought to memory, Go would always use 8-bytes per integer. Instead,
  2187  	// storing it as a byte slice is a lot cheaper in memory.
  2188  	Deltas []byte `protobuf:"bytes,2,opt,name=deltas,proto3" json:"deltas,omitempty"`
  2189  	// num_uids is the number of UIDs in the block. We are including this because we want to
  2190  	// swtich encoding to groupvarint encoding. Current avaialble open source version implements
  2191  	// encoding and decoding for uint32. We want to wrap it around our logic to use it here.
  2192  	// Default Blocksize is 256 so uint32 would be sufficient.
  2193  	NumUids              uint32   `protobuf:"varint,3,opt,name=num_uids,json=numUids,proto3" json:"num_uids,omitempty"`
  2194  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2195  	XXX_unrecognized     []byte   `json:"-"`
  2196  	XXX_sizecache        int32    `json:"-"`
  2197  }
  2198  
  2199  func (m *UidBlock) Reset()         { *m = UidBlock{} }
  2200  func (m *UidBlock) String() string { return proto.CompactTextString(m) }
  2201  func (*UidBlock) ProtoMessage()    {}
  2202  func (*UidBlock) Descriptor() ([]byte, []int) {
  2203  	return fileDescriptor_f80abaa17e25ccc8, []int{24}
  2204  }
  2205  func (m *UidBlock) XXX_Unmarshal(b []byte) error {
  2206  	return m.Unmarshal(b)
  2207  }
  2208  func (m *UidBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2209  	if deterministic {
  2210  		return xxx_messageInfo_UidBlock.Marshal(b, m, deterministic)
  2211  	} else {
  2212  		b = b[:cap(b)]
  2213  		n, err := m.MarshalToSizedBuffer(b)
  2214  		if err != nil {
  2215  			return nil, err
  2216  		}
  2217  		return b[:n], nil
  2218  	}
  2219  }
  2220  func (m *UidBlock) XXX_Merge(src proto.Message) {
  2221  	xxx_messageInfo_UidBlock.Merge(m, src)
  2222  }
  2223  func (m *UidBlock) XXX_Size() int {
  2224  	return m.Size()
  2225  }
  2226  func (m *UidBlock) XXX_DiscardUnknown() {
  2227  	xxx_messageInfo_UidBlock.DiscardUnknown(m)
  2228  }
  2229  
  2230  var xxx_messageInfo_UidBlock proto.InternalMessageInfo
  2231  
  2232  func (m *UidBlock) GetBase() uint64 {
  2233  	if m != nil {
  2234  		return m.Base
  2235  	}
  2236  	return 0
  2237  }
  2238  
  2239  func (m *UidBlock) GetDeltas() []byte {
  2240  	if m != nil {
  2241  		return m.Deltas
  2242  	}
  2243  	return nil
  2244  }
  2245  
  2246  func (m *UidBlock) GetNumUids() uint32 {
  2247  	if m != nil {
  2248  		return m.NumUids
  2249  	}
  2250  	return 0
  2251  }
  2252  
  2253  type UidPack struct {
  2254  	BlockSize            uint32      `protobuf:"varint,1,opt,name=block_size,json=blockSize,proto3" json:"block_size,omitempty"`
  2255  	Blocks               []*UidBlock `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks,omitempty"`
  2256  	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
  2257  	XXX_unrecognized     []byte      `json:"-"`
  2258  	XXX_sizecache        int32       `json:"-"`
  2259  }
  2260  
  2261  func (m *UidPack) Reset()         { *m = UidPack{} }
  2262  func (m *UidPack) String() string { return proto.CompactTextString(m) }
  2263  func (*UidPack) ProtoMessage()    {}
  2264  func (*UidPack) Descriptor() ([]byte, []int) {
  2265  	return fileDescriptor_f80abaa17e25ccc8, []int{25}
  2266  }
  2267  func (m *UidPack) XXX_Unmarshal(b []byte) error {
  2268  	return m.Unmarshal(b)
  2269  }
  2270  func (m *UidPack) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2271  	if deterministic {
  2272  		return xxx_messageInfo_UidPack.Marshal(b, m, deterministic)
  2273  	} else {
  2274  		b = b[:cap(b)]
  2275  		n, err := m.MarshalToSizedBuffer(b)
  2276  		if err != nil {
  2277  			return nil, err
  2278  		}
  2279  		return b[:n], nil
  2280  	}
  2281  }
  2282  func (m *UidPack) XXX_Merge(src proto.Message) {
  2283  	xxx_messageInfo_UidPack.Merge(m, src)
  2284  }
  2285  func (m *UidPack) XXX_Size() int {
  2286  	return m.Size()
  2287  }
  2288  func (m *UidPack) XXX_DiscardUnknown() {
  2289  	xxx_messageInfo_UidPack.DiscardUnknown(m)
  2290  }
  2291  
  2292  var xxx_messageInfo_UidPack proto.InternalMessageInfo
  2293  
  2294  func (m *UidPack) GetBlockSize() uint32 {
  2295  	if m != nil {
  2296  		return m.BlockSize
  2297  	}
  2298  	return 0
  2299  }
  2300  
  2301  func (m *UidPack) GetBlocks() []*UidBlock {
  2302  	if m != nil {
  2303  		return m.Blocks
  2304  	}
  2305  	return nil
  2306  }
  2307  
  2308  type PostingList struct {
  2309  	Pack                 *UidPack   `protobuf:"bytes,1,opt,name=pack,proto3" json:"pack,omitempty"`
  2310  	Postings             []*Posting `protobuf:"bytes,2,rep,name=postings,proto3" json:"postings,omitempty"`
  2311  	CommitTs             uint64     `protobuf:"varint,3,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"`
  2312  	Splits               []uint64   `protobuf:"varint,4,rep,packed,name=splits,proto3" json:"splits,omitempty"`
  2313  	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
  2314  	XXX_unrecognized     []byte     `json:"-"`
  2315  	XXX_sizecache        int32      `json:"-"`
  2316  }
  2317  
  2318  func (m *PostingList) Reset()         { *m = PostingList{} }
  2319  func (m *PostingList) String() string { return proto.CompactTextString(m) }
  2320  func (*PostingList) ProtoMessage()    {}
  2321  func (*PostingList) Descriptor() ([]byte, []int) {
  2322  	return fileDescriptor_f80abaa17e25ccc8, []int{26}
  2323  }
  2324  func (m *PostingList) XXX_Unmarshal(b []byte) error {
  2325  	return m.Unmarshal(b)
  2326  }
  2327  func (m *PostingList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2328  	if deterministic {
  2329  		return xxx_messageInfo_PostingList.Marshal(b, m, deterministic)
  2330  	} else {
  2331  		b = b[:cap(b)]
  2332  		n, err := m.MarshalToSizedBuffer(b)
  2333  		if err != nil {
  2334  			return nil, err
  2335  		}
  2336  		return b[:n], nil
  2337  	}
  2338  }
  2339  func (m *PostingList) XXX_Merge(src proto.Message) {
  2340  	xxx_messageInfo_PostingList.Merge(m, src)
  2341  }
  2342  func (m *PostingList) XXX_Size() int {
  2343  	return m.Size()
  2344  }
  2345  func (m *PostingList) XXX_DiscardUnknown() {
  2346  	xxx_messageInfo_PostingList.DiscardUnknown(m)
  2347  }
  2348  
  2349  var xxx_messageInfo_PostingList proto.InternalMessageInfo
  2350  
  2351  func (m *PostingList) GetPack() *UidPack {
  2352  	if m != nil {
  2353  		return m.Pack
  2354  	}
  2355  	return nil
  2356  }
  2357  
  2358  func (m *PostingList) GetPostings() []*Posting {
  2359  	if m != nil {
  2360  		return m.Postings
  2361  	}
  2362  	return nil
  2363  }
  2364  
  2365  func (m *PostingList) GetCommitTs() uint64 {
  2366  	if m != nil {
  2367  		return m.CommitTs
  2368  	}
  2369  	return 0
  2370  }
  2371  
  2372  func (m *PostingList) GetSplits() []uint64 {
  2373  	if m != nil {
  2374  		return m.Splits
  2375  	}
  2376  	return nil
  2377  }
  2378  
  2379  type FacetParam struct {
  2380  	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  2381  	Alias                string   `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty"`
  2382  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2383  	XXX_unrecognized     []byte   `json:"-"`
  2384  	XXX_sizecache        int32    `json:"-"`
  2385  }
  2386  
  2387  func (m *FacetParam) Reset()         { *m = FacetParam{} }
  2388  func (m *FacetParam) String() string { return proto.CompactTextString(m) }
  2389  func (*FacetParam) ProtoMessage()    {}
  2390  func (*FacetParam) Descriptor() ([]byte, []int) {
  2391  	return fileDescriptor_f80abaa17e25ccc8, []int{27}
  2392  }
  2393  func (m *FacetParam) XXX_Unmarshal(b []byte) error {
  2394  	return m.Unmarshal(b)
  2395  }
  2396  func (m *FacetParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2397  	if deterministic {
  2398  		return xxx_messageInfo_FacetParam.Marshal(b, m, deterministic)
  2399  	} else {
  2400  		b = b[:cap(b)]
  2401  		n, err := m.MarshalToSizedBuffer(b)
  2402  		if err != nil {
  2403  			return nil, err
  2404  		}
  2405  		return b[:n], nil
  2406  	}
  2407  }
  2408  func (m *FacetParam) XXX_Merge(src proto.Message) {
  2409  	xxx_messageInfo_FacetParam.Merge(m, src)
  2410  }
  2411  func (m *FacetParam) XXX_Size() int {
  2412  	return m.Size()
  2413  }
  2414  func (m *FacetParam) XXX_DiscardUnknown() {
  2415  	xxx_messageInfo_FacetParam.DiscardUnknown(m)
  2416  }
  2417  
  2418  var xxx_messageInfo_FacetParam proto.InternalMessageInfo
  2419  
  2420  func (m *FacetParam) GetKey() string {
  2421  	if m != nil {
  2422  		return m.Key
  2423  	}
  2424  	return ""
  2425  }
  2426  
  2427  func (m *FacetParam) GetAlias() string {
  2428  	if m != nil {
  2429  		return m.Alias
  2430  	}
  2431  	return ""
  2432  }
  2433  
  2434  type FacetParams struct {
  2435  	AllKeys              bool          `protobuf:"varint,1,opt,name=all_keys,json=allKeys,proto3" json:"all_keys,omitempty"`
  2436  	Param                []*FacetParam `protobuf:"bytes,2,rep,name=param,proto3" json:"param,omitempty"`
  2437  	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
  2438  	XXX_unrecognized     []byte        `json:"-"`
  2439  	XXX_sizecache        int32         `json:"-"`
  2440  }
  2441  
  2442  func (m *FacetParams) Reset()         { *m = FacetParams{} }
  2443  func (m *FacetParams) String() string { return proto.CompactTextString(m) }
  2444  func (*FacetParams) ProtoMessage()    {}
  2445  func (*FacetParams) Descriptor() ([]byte, []int) {
  2446  	return fileDescriptor_f80abaa17e25ccc8, []int{28}
  2447  }
  2448  func (m *FacetParams) XXX_Unmarshal(b []byte) error {
  2449  	return m.Unmarshal(b)
  2450  }
  2451  func (m *FacetParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2452  	if deterministic {
  2453  		return xxx_messageInfo_FacetParams.Marshal(b, m, deterministic)
  2454  	} else {
  2455  		b = b[:cap(b)]
  2456  		n, err := m.MarshalToSizedBuffer(b)
  2457  		if err != nil {
  2458  			return nil, err
  2459  		}
  2460  		return b[:n], nil
  2461  	}
  2462  }
  2463  func (m *FacetParams) XXX_Merge(src proto.Message) {
  2464  	xxx_messageInfo_FacetParams.Merge(m, src)
  2465  }
  2466  func (m *FacetParams) XXX_Size() int {
  2467  	return m.Size()
  2468  }
  2469  func (m *FacetParams) XXX_DiscardUnknown() {
  2470  	xxx_messageInfo_FacetParams.DiscardUnknown(m)
  2471  }
  2472  
  2473  var xxx_messageInfo_FacetParams proto.InternalMessageInfo
  2474  
  2475  func (m *FacetParams) GetAllKeys() bool {
  2476  	if m != nil {
  2477  		return m.AllKeys
  2478  	}
  2479  	return false
  2480  }
  2481  
  2482  func (m *FacetParams) GetParam() []*FacetParam {
  2483  	if m != nil {
  2484  		return m.Param
  2485  	}
  2486  	return nil
  2487  }
  2488  
  2489  type Facets struct {
  2490  	Facets               []*api.Facet `protobuf:"bytes,1,rep,name=facets,proto3" json:"facets,omitempty"`
  2491  	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
  2492  	XXX_unrecognized     []byte       `json:"-"`
  2493  	XXX_sizecache        int32        `json:"-"`
  2494  }
  2495  
  2496  func (m *Facets) Reset()         { *m = Facets{} }
  2497  func (m *Facets) String() string { return proto.CompactTextString(m) }
  2498  func (*Facets) ProtoMessage()    {}
  2499  func (*Facets) Descriptor() ([]byte, []int) {
  2500  	return fileDescriptor_f80abaa17e25ccc8, []int{29}
  2501  }
  2502  func (m *Facets) XXX_Unmarshal(b []byte) error {
  2503  	return m.Unmarshal(b)
  2504  }
  2505  func (m *Facets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2506  	if deterministic {
  2507  		return xxx_messageInfo_Facets.Marshal(b, m, deterministic)
  2508  	} else {
  2509  		b = b[:cap(b)]
  2510  		n, err := m.MarshalToSizedBuffer(b)
  2511  		if err != nil {
  2512  			return nil, err
  2513  		}
  2514  		return b[:n], nil
  2515  	}
  2516  }
  2517  func (m *Facets) XXX_Merge(src proto.Message) {
  2518  	xxx_messageInfo_Facets.Merge(m, src)
  2519  }
  2520  func (m *Facets) XXX_Size() int {
  2521  	return m.Size()
  2522  }
  2523  func (m *Facets) XXX_DiscardUnknown() {
  2524  	xxx_messageInfo_Facets.DiscardUnknown(m)
  2525  }
  2526  
  2527  var xxx_messageInfo_Facets proto.InternalMessageInfo
  2528  
  2529  func (m *Facets) GetFacets() []*api.Facet {
  2530  	if m != nil {
  2531  		return m.Facets
  2532  	}
  2533  	return nil
  2534  }
  2535  
  2536  type FacetsList struct {
  2537  	FacetsList           []*Facets `protobuf:"bytes,1,rep,name=facets_list,json=facetsList,proto3" json:"facets_list,omitempty"`
  2538  	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
  2539  	XXX_unrecognized     []byte    `json:"-"`
  2540  	XXX_sizecache        int32     `json:"-"`
  2541  }
  2542  
  2543  func (m *FacetsList) Reset()         { *m = FacetsList{} }
  2544  func (m *FacetsList) String() string { return proto.CompactTextString(m) }
  2545  func (*FacetsList) ProtoMessage()    {}
  2546  func (*FacetsList) Descriptor() ([]byte, []int) {
  2547  	return fileDescriptor_f80abaa17e25ccc8, []int{30}
  2548  }
  2549  func (m *FacetsList) XXX_Unmarshal(b []byte) error {
  2550  	return m.Unmarshal(b)
  2551  }
  2552  func (m *FacetsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2553  	if deterministic {
  2554  		return xxx_messageInfo_FacetsList.Marshal(b, m, deterministic)
  2555  	} else {
  2556  		b = b[:cap(b)]
  2557  		n, err := m.MarshalToSizedBuffer(b)
  2558  		if err != nil {
  2559  			return nil, err
  2560  		}
  2561  		return b[:n], nil
  2562  	}
  2563  }
  2564  func (m *FacetsList) XXX_Merge(src proto.Message) {
  2565  	xxx_messageInfo_FacetsList.Merge(m, src)
  2566  }
  2567  func (m *FacetsList) XXX_Size() int {
  2568  	return m.Size()
  2569  }
  2570  func (m *FacetsList) XXX_DiscardUnknown() {
  2571  	xxx_messageInfo_FacetsList.DiscardUnknown(m)
  2572  }
  2573  
  2574  var xxx_messageInfo_FacetsList proto.InternalMessageInfo
  2575  
  2576  func (m *FacetsList) GetFacetsList() []*Facets {
  2577  	if m != nil {
  2578  		return m.FacetsList
  2579  	}
  2580  	return nil
  2581  }
  2582  
  2583  type Function struct {
  2584  	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  2585  	Key                  string   `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
  2586  	Args                 []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
  2587  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2588  	XXX_unrecognized     []byte   `json:"-"`
  2589  	XXX_sizecache        int32    `json:"-"`
  2590  }
  2591  
  2592  func (m *Function) Reset()         { *m = Function{} }
  2593  func (m *Function) String() string { return proto.CompactTextString(m) }
  2594  func (*Function) ProtoMessage()    {}
  2595  func (*Function) Descriptor() ([]byte, []int) {
  2596  	return fileDescriptor_f80abaa17e25ccc8, []int{31}
  2597  }
  2598  func (m *Function) XXX_Unmarshal(b []byte) error {
  2599  	return m.Unmarshal(b)
  2600  }
  2601  func (m *Function) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2602  	if deterministic {
  2603  		return xxx_messageInfo_Function.Marshal(b, m, deterministic)
  2604  	} else {
  2605  		b = b[:cap(b)]
  2606  		n, err := m.MarshalToSizedBuffer(b)
  2607  		if err != nil {
  2608  			return nil, err
  2609  		}
  2610  		return b[:n], nil
  2611  	}
  2612  }
  2613  func (m *Function) XXX_Merge(src proto.Message) {
  2614  	xxx_messageInfo_Function.Merge(m, src)
  2615  }
  2616  func (m *Function) XXX_Size() int {
  2617  	return m.Size()
  2618  }
  2619  func (m *Function) XXX_DiscardUnknown() {
  2620  	xxx_messageInfo_Function.DiscardUnknown(m)
  2621  }
  2622  
  2623  var xxx_messageInfo_Function proto.InternalMessageInfo
  2624  
  2625  func (m *Function) GetName() string {
  2626  	if m != nil {
  2627  		return m.Name
  2628  	}
  2629  	return ""
  2630  }
  2631  
  2632  func (m *Function) GetKey() string {
  2633  	if m != nil {
  2634  		return m.Key
  2635  	}
  2636  	return ""
  2637  }
  2638  
  2639  func (m *Function) GetArgs() []string {
  2640  	if m != nil {
  2641  		return m.Args
  2642  	}
  2643  	return nil
  2644  }
  2645  
  2646  // Op and Children are internal nodes and Func on leaves.
  2647  type FilterTree struct {
  2648  	Op                   string        `protobuf:"bytes,1,opt,name=op,proto3" json:"op,omitempty"`
  2649  	Children             []*FilterTree `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"`
  2650  	Func                 *Function     `protobuf:"bytes,3,opt,name=func,proto3" json:"func,omitempty"`
  2651  	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
  2652  	XXX_unrecognized     []byte        `json:"-"`
  2653  	XXX_sizecache        int32         `json:"-"`
  2654  }
  2655  
  2656  func (m *FilterTree) Reset()         { *m = FilterTree{} }
  2657  func (m *FilterTree) String() string { return proto.CompactTextString(m) }
  2658  func (*FilterTree) ProtoMessage()    {}
  2659  func (*FilterTree) Descriptor() ([]byte, []int) {
  2660  	return fileDescriptor_f80abaa17e25ccc8, []int{32}
  2661  }
  2662  func (m *FilterTree) XXX_Unmarshal(b []byte) error {
  2663  	return m.Unmarshal(b)
  2664  }
  2665  func (m *FilterTree) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2666  	if deterministic {
  2667  		return xxx_messageInfo_FilterTree.Marshal(b, m, deterministic)
  2668  	} else {
  2669  		b = b[:cap(b)]
  2670  		n, err := m.MarshalToSizedBuffer(b)
  2671  		if err != nil {
  2672  			return nil, err
  2673  		}
  2674  		return b[:n], nil
  2675  	}
  2676  }
  2677  func (m *FilterTree) XXX_Merge(src proto.Message) {
  2678  	xxx_messageInfo_FilterTree.Merge(m, src)
  2679  }
  2680  func (m *FilterTree) XXX_Size() int {
  2681  	return m.Size()
  2682  }
  2683  func (m *FilterTree) XXX_DiscardUnknown() {
  2684  	xxx_messageInfo_FilterTree.DiscardUnknown(m)
  2685  }
  2686  
  2687  var xxx_messageInfo_FilterTree proto.InternalMessageInfo
  2688  
  2689  func (m *FilterTree) GetOp() string {
  2690  	if m != nil {
  2691  		return m.Op
  2692  	}
  2693  	return ""
  2694  }
  2695  
  2696  func (m *FilterTree) GetChildren() []*FilterTree {
  2697  	if m != nil {
  2698  		return m.Children
  2699  	}
  2700  	return nil
  2701  }
  2702  
  2703  func (m *FilterTree) GetFunc() *Function {
  2704  	if m != nil {
  2705  		return m.Func
  2706  	}
  2707  	return nil
  2708  }
  2709  
  2710  // Schema messages.
  2711  type SchemaRequest struct {
  2712  	GroupId    uint32   `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
  2713  	Predicates []string `protobuf:"bytes,2,rep,name=predicates,proto3" json:"predicates,omitempty"`
  2714  	// fields can be on of type, index, reverse or tokenizer
  2715  	Fields               []string `protobuf:"bytes,3,rep,name=fields,proto3" json:"fields,omitempty"`
  2716  	Types                []string `protobuf:"bytes,4,rep,name=types,proto3" json:"types,omitempty"`
  2717  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2718  	XXX_unrecognized     []byte   `json:"-"`
  2719  	XXX_sizecache        int32    `json:"-"`
  2720  }
  2721  
  2722  func (m *SchemaRequest) Reset()         { *m = SchemaRequest{} }
  2723  func (m *SchemaRequest) String() string { return proto.CompactTextString(m) }
  2724  func (*SchemaRequest) ProtoMessage()    {}
  2725  func (*SchemaRequest) Descriptor() ([]byte, []int) {
  2726  	return fileDescriptor_f80abaa17e25ccc8, []int{33}
  2727  }
  2728  func (m *SchemaRequest) XXX_Unmarshal(b []byte) error {
  2729  	return m.Unmarshal(b)
  2730  }
  2731  func (m *SchemaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2732  	if deterministic {
  2733  		return xxx_messageInfo_SchemaRequest.Marshal(b, m, deterministic)
  2734  	} else {
  2735  		b = b[:cap(b)]
  2736  		n, err := m.MarshalToSizedBuffer(b)
  2737  		if err != nil {
  2738  			return nil, err
  2739  		}
  2740  		return b[:n], nil
  2741  	}
  2742  }
  2743  func (m *SchemaRequest) XXX_Merge(src proto.Message) {
  2744  	xxx_messageInfo_SchemaRequest.Merge(m, src)
  2745  }
  2746  func (m *SchemaRequest) XXX_Size() int {
  2747  	return m.Size()
  2748  }
  2749  func (m *SchemaRequest) XXX_DiscardUnknown() {
  2750  	xxx_messageInfo_SchemaRequest.DiscardUnknown(m)
  2751  }
  2752  
  2753  var xxx_messageInfo_SchemaRequest proto.InternalMessageInfo
  2754  
  2755  func (m *SchemaRequest) GetGroupId() uint32 {
  2756  	if m != nil {
  2757  		return m.GroupId
  2758  	}
  2759  	return 0
  2760  }
  2761  
  2762  func (m *SchemaRequest) GetPredicates() []string {
  2763  	if m != nil {
  2764  		return m.Predicates
  2765  	}
  2766  	return nil
  2767  }
  2768  
  2769  func (m *SchemaRequest) GetFields() []string {
  2770  	if m != nil {
  2771  		return m.Fields
  2772  	}
  2773  	return nil
  2774  }
  2775  
  2776  func (m *SchemaRequest) GetTypes() []string {
  2777  	if m != nil {
  2778  		return m.Types
  2779  	}
  2780  	return nil
  2781  }
  2782  
  2783  type SchemaNode struct {
  2784  	Predicate            string   `protobuf:"bytes,1,opt,name=predicate,proto3" json:"predicate,omitempty"`
  2785  	Type                 string   `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
  2786  	Index                bool     `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
  2787  	Tokenizer            []string `protobuf:"bytes,4,rep,name=tokenizer,proto3" json:"tokenizer,omitempty"`
  2788  	Reverse              bool     `protobuf:"varint,5,opt,name=reverse,proto3" json:"reverse,omitempty"`
  2789  	Count                bool     `protobuf:"varint,6,opt,name=count,proto3" json:"count,omitempty"`
  2790  	List                 bool     `protobuf:"varint,7,opt,name=list,proto3" json:"list,omitempty"`
  2791  	Upsert               bool     `protobuf:"varint,8,opt,name=upsert,proto3" json:"upsert,omitempty"`
  2792  	Lang                 bool     `protobuf:"varint,9,opt,name=lang,proto3" json:"lang,omitempty"`
  2793  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2794  	XXX_unrecognized     []byte   `json:"-"`
  2795  	XXX_sizecache        int32    `json:"-"`
  2796  }
  2797  
  2798  func (m *SchemaNode) Reset()         { *m = SchemaNode{} }
  2799  func (m *SchemaNode) String() string { return proto.CompactTextString(m) }
  2800  func (*SchemaNode) ProtoMessage()    {}
  2801  func (*SchemaNode) Descriptor() ([]byte, []int) {
  2802  	return fileDescriptor_f80abaa17e25ccc8, []int{34}
  2803  }
  2804  func (m *SchemaNode) XXX_Unmarshal(b []byte) error {
  2805  	return m.Unmarshal(b)
  2806  }
  2807  func (m *SchemaNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2808  	if deterministic {
  2809  		return xxx_messageInfo_SchemaNode.Marshal(b, m, deterministic)
  2810  	} else {
  2811  		b = b[:cap(b)]
  2812  		n, err := m.MarshalToSizedBuffer(b)
  2813  		if err != nil {
  2814  			return nil, err
  2815  		}
  2816  		return b[:n], nil
  2817  	}
  2818  }
  2819  func (m *SchemaNode) XXX_Merge(src proto.Message) {
  2820  	xxx_messageInfo_SchemaNode.Merge(m, src)
  2821  }
  2822  func (m *SchemaNode) XXX_Size() int {
  2823  	return m.Size()
  2824  }
  2825  func (m *SchemaNode) XXX_DiscardUnknown() {
  2826  	xxx_messageInfo_SchemaNode.DiscardUnknown(m)
  2827  }
  2828  
  2829  var xxx_messageInfo_SchemaNode proto.InternalMessageInfo
  2830  
  2831  func (m *SchemaNode) GetPredicate() string {
  2832  	if m != nil {
  2833  		return m.Predicate
  2834  	}
  2835  	return ""
  2836  }
  2837  
  2838  func (m *SchemaNode) GetType() string {
  2839  	if m != nil {
  2840  		return m.Type
  2841  	}
  2842  	return ""
  2843  }
  2844  
  2845  func (m *SchemaNode) GetIndex() bool {
  2846  	if m != nil {
  2847  		return m.Index
  2848  	}
  2849  	return false
  2850  }
  2851  
  2852  func (m *SchemaNode) GetTokenizer() []string {
  2853  	if m != nil {
  2854  		return m.Tokenizer
  2855  	}
  2856  	return nil
  2857  }
  2858  
  2859  func (m *SchemaNode) GetReverse() bool {
  2860  	if m != nil {
  2861  		return m.Reverse
  2862  	}
  2863  	return false
  2864  }
  2865  
  2866  func (m *SchemaNode) GetCount() bool {
  2867  	if m != nil {
  2868  		return m.Count
  2869  	}
  2870  	return false
  2871  }
  2872  
  2873  func (m *SchemaNode) GetList() bool {
  2874  	if m != nil {
  2875  		return m.List
  2876  	}
  2877  	return false
  2878  }
  2879  
  2880  func (m *SchemaNode) GetUpsert() bool {
  2881  	if m != nil {
  2882  		return m.Upsert
  2883  	}
  2884  	return false
  2885  }
  2886  
  2887  func (m *SchemaNode) GetLang() bool {
  2888  	if m != nil {
  2889  		return m.Lang
  2890  	}
  2891  	return false
  2892  }
  2893  
  2894  type SchemaResult struct {
  2895  	Schema               []*SchemaNode `protobuf:"bytes,1,rep,name=schema,proto3" json:"schema,omitempty"` // Deprecated: Do not use.
  2896  	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
  2897  	XXX_unrecognized     []byte        `json:"-"`
  2898  	XXX_sizecache        int32         `json:"-"`
  2899  }
  2900  
  2901  func (m *SchemaResult) Reset()         { *m = SchemaResult{} }
  2902  func (m *SchemaResult) String() string { return proto.CompactTextString(m) }
  2903  func (*SchemaResult) ProtoMessage()    {}
  2904  func (*SchemaResult) Descriptor() ([]byte, []int) {
  2905  	return fileDescriptor_f80abaa17e25ccc8, []int{35}
  2906  }
  2907  func (m *SchemaResult) XXX_Unmarshal(b []byte) error {
  2908  	return m.Unmarshal(b)
  2909  }
  2910  func (m *SchemaResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2911  	if deterministic {
  2912  		return xxx_messageInfo_SchemaResult.Marshal(b, m, deterministic)
  2913  	} else {
  2914  		b = b[:cap(b)]
  2915  		n, err := m.MarshalToSizedBuffer(b)
  2916  		if err != nil {
  2917  			return nil, err
  2918  		}
  2919  		return b[:n], nil
  2920  	}
  2921  }
  2922  func (m *SchemaResult) XXX_Merge(src proto.Message) {
  2923  	xxx_messageInfo_SchemaResult.Merge(m, src)
  2924  }
  2925  func (m *SchemaResult) XXX_Size() int {
  2926  	return m.Size()
  2927  }
  2928  func (m *SchemaResult) XXX_DiscardUnknown() {
  2929  	xxx_messageInfo_SchemaResult.DiscardUnknown(m)
  2930  }
  2931  
  2932  var xxx_messageInfo_SchemaResult proto.InternalMessageInfo
  2933  
  2934  // Deprecated: Do not use.
  2935  func (m *SchemaResult) GetSchema() []*SchemaNode {
  2936  	if m != nil {
  2937  		return m.Schema
  2938  	}
  2939  	return nil
  2940  }
  2941  
  2942  type SchemaUpdate struct {
  2943  	Predicate string                 `protobuf:"bytes,1,opt,name=predicate,proto3" json:"predicate,omitempty"`
  2944  	ValueType Posting_ValType        `protobuf:"varint,2,opt,name=value_type,json=valueType,proto3,enum=pb.Posting_ValType" json:"value_type,omitempty"`
  2945  	Directive SchemaUpdate_Directive `protobuf:"varint,3,opt,name=directive,proto3,enum=pb.SchemaUpdate_Directive" json:"directive,omitempty"`
  2946  	Tokenizer []string               `protobuf:"bytes,4,rep,name=tokenizer,proto3" json:"tokenizer,omitempty"`
  2947  	Count     bool                   `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"`
  2948  	List      bool                   `protobuf:"varint,6,opt,name=list,proto3" json:"list,omitempty"`
  2949  	Upsert    bool                   `protobuf:"varint,8,opt,name=upsert,proto3" json:"upsert,omitempty"`
  2950  	Lang      bool                   `protobuf:"varint,9,opt,name=lang,proto3" json:"lang,omitempty"`
  2951  	// Fields required for type system.
  2952  	NonNullable     bool `protobuf:"varint,10,opt,name=non_nullable,json=nonNullable,proto3" json:"non_nullable,omitempty"`
  2953  	NonNullableList bool `protobuf:"varint,11,opt,name=non_nullable_list,json=nonNullableList,proto3" json:"non_nullable_list,omitempty"`
  2954  	// If value_type is OBJECT, then this represents an object type with a
  2955  	// custom name. This field stores said name.
  2956  	ObjectTypeName       string   `protobuf:"bytes,12,opt,name=object_type_name,json=objectTypeName,proto3" json:"object_type_name,omitempty"`
  2957  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2958  	XXX_unrecognized     []byte   `json:"-"`
  2959  	XXX_sizecache        int32    `json:"-"`
  2960  }
  2961  
  2962  func (m *SchemaUpdate) Reset()         { *m = SchemaUpdate{} }
  2963  func (m *SchemaUpdate) String() string { return proto.CompactTextString(m) }
  2964  func (*SchemaUpdate) ProtoMessage()    {}
  2965  func (*SchemaUpdate) Descriptor() ([]byte, []int) {
  2966  	return fileDescriptor_f80abaa17e25ccc8, []int{36}
  2967  }
  2968  func (m *SchemaUpdate) XXX_Unmarshal(b []byte) error {
  2969  	return m.Unmarshal(b)
  2970  }
  2971  func (m *SchemaUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2972  	if deterministic {
  2973  		return xxx_messageInfo_SchemaUpdate.Marshal(b, m, deterministic)
  2974  	} else {
  2975  		b = b[:cap(b)]
  2976  		n, err := m.MarshalToSizedBuffer(b)
  2977  		if err != nil {
  2978  			return nil, err
  2979  		}
  2980  		return b[:n], nil
  2981  	}
  2982  }
  2983  func (m *SchemaUpdate) XXX_Merge(src proto.Message) {
  2984  	xxx_messageInfo_SchemaUpdate.Merge(m, src)
  2985  }
  2986  func (m *SchemaUpdate) XXX_Size() int {
  2987  	return m.Size()
  2988  }
  2989  func (m *SchemaUpdate) XXX_DiscardUnknown() {
  2990  	xxx_messageInfo_SchemaUpdate.DiscardUnknown(m)
  2991  }
  2992  
  2993  var xxx_messageInfo_SchemaUpdate proto.InternalMessageInfo
  2994  
  2995  func (m *SchemaUpdate) GetPredicate() string {
  2996  	if m != nil {
  2997  		return m.Predicate
  2998  	}
  2999  	return ""
  3000  }
  3001  
  3002  func (m *SchemaUpdate) GetValueType() Posting_ValType {
  3003  	if m != nil {
  3004  		return m.ValueType
  3005  	}
  3006  	return Posting_DEFAULT
  3007  }
  3008  
  3009  func (m *SchemaUpdate) GetDirective() SchemaUpdate_Directive {
  3010  	if m != nil {
  3011  		return m.Directive
  3012  	}
  3013  	return SchemaUpdate_NONE
  3014  }
  3015  
  3016  func (m *SchemaUpdate) GetTokenizer() []string {
  3017  	if m != nil {
  3018  		return m.Tokenizer
  3019  	}
  3020  	return nil
  3021  }
  3022  
  3023  func (m *SchemaUpdate) GetCount() bool {
  3024  	if m != nil {
  3025  		return m.Count
  3026  	}
  3027  	return false
  3028  }
  3029  
  3030  func (m *SchemaUpdate) GetList() bool {
  3031  	if m != nil {
  3032  		return m.List
  3033  	}
  3034  	return false
  3035  }
  3036  
  3037  func (m *SchemaUpdate) GetUpsert() bool {
  3038  	if m != nil {
  3039  		return m.Upsert
  3040  	}
  3041  	return false
  3042  }
  3043  
  3044  func (m *SchemaUpdate) GetLang() bool {
  3045  	if m != nil {
  3046  		return m.Lang
  3047  	}
  3048  	return false
  3049  }
  3050  
  3051  func (m *SchemaUpdate) GetNonNullable() bool {
  3052  	if m != nil {
  3053  		return m.NonNullable
  3054  	}
  3055  	return false
  3056  }
  3057  
  3058  func (m *SchemaUpdate) GetNonNullableList() bool {
  3059  	if m != nil {
  3060  		return m.NonNullableList
  3061  	}
  3062  	return false
  3063  }
  3064  
  3065  func (m *SchemaUpdate) GetObjectTypeName() string {
  3066  	if m != nil {
  3067  		return m.ObjectTypeName
  3068  	}
  3069  	return ""
  3070  }
  3071  
  3072  type TypeUpdate struct {
  3073  	TypeName             string          `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"`
  3074  	Fields               []*SchemaUpdate `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"`
  3075  	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
  3076  	XXX_unrecognized     []byte          `json:"-"`
  3077  	XXX_sizecache        int32           `json:"-"`
  3078  }
  3079  
  3080  func (m *TypeUpdate) Reset()         { *m = TypeUpdate{} }
  3081  func (m *TypeUpdate) String() string { return proto.CompactTextString(m) }
  3082  func (*TypeUpdate) ProtoMessage()    {}
  3083  func (*TypeUpdate) Descriptor() ([]byte, []int) {
  3084  	return fileDescriptor_f80abaa17e25ccc8, []int{37}
  3085  }
  3086  func (m *TypeUpdate) XXX_Unmarshal(b []byte) error {
  3087  	return m.Unmarshal(b)
  3088  }
  3089  func (m *TypeUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3090  	if deterministic {
  3091  		return xxx_messageInfo_TypeUpdate.Marshal(b, m, deterministic)
  3092  	} else {
  3093  		b = b[:cap(b)]
  3094  		n, err := m.MarshalToSizedBuffer(b)
  3095  		if err != nil {
  3096  			return nil, err
  3097  		}
  3098  		return b[:n], nil
  3099  	}
  3100  }
  3101  func (m *TypeUpdate) XXX_Merge(src proto.Message) {
  3102  	xxx_messageInfo_TypeUpdate.Merge(m, src)
  3103  }
  3104  func (m *TypeUpdate) XXX_Size() int {
  3105  	return m.Size()
  3106  }
  3107  func (m *TypeUpdate) XXX_DiscardUnknown() {
  3108  	xxx_messageInfo_TypeUpdate.DiscardUnknown(m)
  3109  }
  3110  
  3111  var xxx_messageInfo_TypeUpdate proto.InternalMessageInfo
  3112  
  3113  func (m *TypeUpdate) GetTypeName() string {
  3114  	if m != nil {
  3115  		return m.TypeName
  3116  	}
  3117  	return ""
  3118  }
  3119  
  3120  func (m *TypeUpdate) GetFields() []*SchemaUpdate {
  3121  	if m != nil {
  3122  		return m.Fields
  3123  	}
  3124  	return nil
  3125  }
  3126  
  3127  // Bulk loader proto.
  3128  type MapEntry struct {
  3129  	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  3130  	// Only one should be set.
  3131  	Uid                  uint64   `protobuf:"fixed64,2,opt,name=uid,proto3" json:"uid,omitempty"`
  3132  	Posting              *Posting `protobuf:"bytes,3,opt,name=posting,proto3" json:"posting,omitempty"`
  3133  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3134  	XXX_unrecognized     []byte   `json:"-"`
  3135  	XXX_sizecache        int32    `json:"-"`
  3136  }
  3137  
  3138  func (m *MapEntry) Reset()         { *m = MapEntry{} }
  3139  func (m *MapEntry) String() string { return proto.CompactTextString(m) }
  3140  func (*MapEntry) ProtoMessage()    {}
  3141  func (*MapEntry) Descriptor() ([]byte, []int) {
  3142  	return fileDescriptor_f80abaa17e25ccc8, []int{38}
  3143  }
  3144  func (m *MapEntry) XXX_Unmarshal(b []byte) error {
  3145  	return m.Unmarshal(b)
  3146  }
  3147  func (m *MapEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3148  	if deterministic {
  3149  		return xxx_messageInfo_MapEntry.Marshal(b, m, deterministic)
  3150  	} else {
  3151  		b = b[:cap(b)]
  3152  		n, err := m.MarshalToSizedBuffer(b)
  3153  		if err != nil {
  3154  			return nil, err
  3155  		}
  3156  		return b[:n], nil
  3157  	}
  3158  }
  3159  func (m *MapEntry) XXX_Merge(src proto.Message) {
  3160  	xxx_messageInfo_MapEntry.Merge(m, src)
  3161  }
  3162  func (m *MapEntry) XXX_Size() int {
  3163  	return m.Size()
  3164  }
  3165  func (m *MapEntry) XXX_DiscardUnknown() {
  3166  	xxx_messageInfo_MapEntry.DiscardUnknown(m)
  3167  }
  3168  
  3169  var xxx_messageInfo_MapEntry proto.InternalMessageInfo
  3170  
  3171  func (m *MapEntry) GetKey() []byte {
  3172  	if m != nil {
  3173  		return m.Key
  3174  	}
  3175  	return nil
  3176  }
  3177  
  3178  func (m *MapEntry) GetUid() uint64 {
  3179  	if m != nil {
  3180  		return m.Uid
  3181  	}
  3182  	return 0
  3183  }
  3184  
  3185  func (m *MapEntry) GetPosting() *Posting {
  3186  	if m != nil {
  3187  		return m.Posting
  3188  	}
  3189  	return nil
  3190  }
  3191  
  3192  type MovePredicatePayload struct {
  3193  	Predicate            string   `protobuf:"bytes,1,opt,name=predicate,proto3" json:"predicate,omitempty"`
  3194  	SourceGid            uint32   `protobuf:"varint,2,opt,name=source_gid,json=sourceGid,proto3" json:"source_gid,omitempty"`
  3195  	DestGid              uint32   `protobuf:"varint,3,opt,name=dest_gid,json=destGid,proto3" json:"dest_gid,omitempty"`
  3196  	TxnTs                uint64   `protobuf:"varint,4,opt,name=txn_ts,json=txnTs,proto3" json:"txn_ts,omitempty"`
  3197  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3198  	XXX_unrecognized     []byte   `json:"-"`
  3199  	XXX_sizecache        int32    `json:"-"`
  3200  }
  3201  
  3202  func (m *MovePredicatePayload) Reset()         { *m = MovePredicatePayload{} }
  3203  func (m *MovePredicatePayload) String() string { return proto.CompactTextString(m) }
  3204  func (*MovePredicatePayload) ProtoMessage()    {}
  3205  func (*MovePredicatePayload) Descriptor() ([]byte, []int) {
  3206  	return fileDescriptor_f80abaa17e25ccc8, []int{39}
  3207  }
  3208  func (m *MovePredicatePayload) XXX_Unmarshal(b []byte) error {
  3209  	return m.Unmarshal(b)
  3210  }
  3211  func (m *MovePredicatePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3212  	if deterministic {
  3213  		return xxx_messageInfo_MovePredicatePayload.Marshal(b, m, deterministic)
  3214  	} else {
  3215  		b = b[:cap(b)]
  3216  		n, err := m.MarshalToSizedBuffer(b)
  3217  		if err != nil {
  3218  			return nil, err
  3219  		}
  3220  		return b[:n], nil
  3221  	}
  3222  }
  3223  func (m *MovePredicatePayload) XXX_Merge(src proto.Message) {
  3224  	xxx_messageInfo_MovePredicatePayload.Merge(m, src)
  3225  }
  3226  func (m *MovePredicatePayload) XXX_Size() int {
  3227  	return m.Size()
  3228  }
  3229  func (m *MovePredicatePayload) XXX_DiscardUnknown() {
  3230  	xxx_messageInfo_MovePredicatePayload.DiscardUnknown(m)
  3231  }
  3232  
  3233  var xxx_messageInfo_MovePredicatePayload proto.InternalMessageInfo
  3234  
  3235  func (m *MovePredicatePayload) GetPredicate() string {
  3236  	if m != nil {
  3237  		return m.Predicate
  3238  	}
  3239  	return ""
  3240  }
  3241  
  3242  func (m *MovePredicatePayload) GetSourceGid() uint32 {
  3243  	if m != nil {
  3244  		return m.SourceGid
  3245  	}
  3246  	return 0
  3247  }
  3248  
  3249  func (m *MovePredicatePayload) GetDestGid() uint32 {
  3250  	if m != nil {
  3251  		return m.DestGid
  3252  	}
  3253  	return 0
  3254  }
  3255  
  3256  func (m *MovePredicatePayload) GetTxnTs() uint64 {
  3257  	if m != nil {
  3258  		return m.TxnTs
  3259  	}
  3260  	return 0
  3261  }
  3262  
  3263  type TxnStatus struct {
  3264  	StartTs              uint64   `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"`
  3265  	CommitTs             uint64   `protobuf:"varint,2,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"`
  3266  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3267  	XXX_unrecognized     []byte   `json:"-"`
  3268  	XXX_sizecache        int32    `json:"-"`
  3269  }
  3270  
  3271  func (m *TxnStatus) Reset()         { *m = TxnStatus{} }
  3272  func (m *TxnStatus) String() string { return proto.CompactTextString(m) }
  3273  func (*TxnStatus) ProtoMessage()    {}
  3274  func (*TxnStatus) Descriptor() ([]byte, []int) {
  3275  	return fileDescriptor_f80abaa17e25ccc8, []int{40}
  3276  }
  3277  func (m *TxnStatus) XXX_Unmarshal(b []byte) error {
  3278  	return m.Unmarshal(b)
  3279  }
  3280  func (m *TxnStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3281  	if deterministic {
  3282  		return xxx_messageInfo_TxnStatus.Marshal(b, m, deterministic)
  3283  	} else {
  3284  		b = b[:cap(b)]
  3285  		n, err := m.MarshalToSizedBuffer(b)
  3286  		if err != nil {
  3287  			return nil, err
  3288  		}
  3289  		return b[:n], nil
  3290  	}
  3291  }
  3292  func (m *TxnStatus) XXX_Merge(src proto.Message) {
  3293  	xxx_messageInfo_TxnStatus.Merge(m, src)
  3294  }
  3295  func (m *TxnStatus) XXX_Size() int {
  3296  	return m.Size()
  3297  }
  3298  func (m *TxnStatus) XXX_DiscardUnknown() {
  3299  	xxx_messageInfo_TxnStatus.DiscardUnknown(m)
  3300  }
  3301  
  3302  var xxx_messageInfo_TxnStatus proto.InternalMessageInfo
  3303  
  3304  func (m *TxnStatus) GetStartTs() uint64 {
  3305  	if m != nil {
  3306  		return m.StartTs
  3307  	}
  3308  	return 0
  3309  }
  3310  
  3311  func (m *TxnStatus) GetCommitTs() uint64 {
  3312  	if m != nil {
  3313  		return m.CommitTs
  3314  	}
  3315  	return 0
  3316  }
  3317  
  3318  type OracleDelta struct {
  3319  	Txns                 []*TxnStatus      `protobuf:"bytes,1,rep,name=txns,proto3" json:"txns,omitempty"`
  3320  	MaxAssigned          uint64            `protobuf:"varint,2,opt,name=max_assigned,json=maxAssigned,proto3" json:"max_assigned,omitempty"`
  3321  	GroupChecksums       map[uint32]uint64 `protobuf:"bytes,3,rep,name=group_checksums,json=groupChecksums,proto3" json:"group_checksums,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
  3322  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
  3323  	XXX_unrecognized     []byte            `json:"-"`
  3324  	XXX_sizecache        int32             `json:"-"`
  3325  }
  3326  
  3327  func (m *OracleDelta) Reset()         { *m = OracleDelta{} }
  3328  func (m *OracleDelta) String() string { return proto.CompactTextString(m) }
  3329  func (*OracleDelta) ProtoMessage()    {}
  3330  func (*OracleDelta) Descriptor() ([]byte, []int) {
  3331  	return fileDescriptor_f80abaa17e25ccc8, []int{41}
  3332  }
  3333  func (m *OracleDelta) XXX_Unmarshal(b []byte) error {
  3334  	return m.Unmarshal(b)
  3335  }
  3336  func (m *OracleDelta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3337  	if deterministic {
  3338  		return xxx_messageInfo_OracleDelta.Marshal(b, m, deterministic)
  3339  	} else {
  3340  		b = b[:cap(b)]
  3341  		n, err := m.MarshalToSizedBuffer(b)
  3342  		if err != nil {
  3343  			return nil, err
  3344  		}
  3345  		return b[:n], nil
  3346  	}
  3347  }
  3348  func (m *OracleDelta) XXX_Merge(src proto.Message) {
  3349  	xxx_messageInfo_OracleDelta.Merge(m, src)
  3350  }
  3351  func (m *OracleDelta) XXX_Size() int {
  3352  	return m.Size()
  3353  }
  3354  func (m *OracleDelta) XXX_DiscardUnknown() {
  3355  	xxx_messageInfo_OracleDelta.DiscardUnknown(m)
  3356  }
  3357  
  3358  var xxx_messageInfo_OracleDelta proto.InternalMessageInfo
  3359  
  3360  func (m *OracleDelta) GetTxns() []*TxnStatus {
  3361  	if m != nil {
  3362  		return m.Txns
  3363  	}
  3364  	return nil
  3365  }
  3366  
  3367  func (m *OracleDelta) GetMaxAssigned() uint64 {
  3368  	if m != nil {
  3369  		return m.MaxAssigned
  3370  	}
  3371  	return 0
  3372  }
  3373  
  3374  func (m *OracleDelta) GetGroupChecksums() map[uint32]uint64 {
  3375  	if m != nil {
  3376  		return m.GroupChecksums
  3377  	}
  3378  	return nil
  3379  }
  3380  
  3381  type TxnTimestamps struct {
  3382  	Ts                   []uint64 `protobuf:"varint,1,rep,packed,name=ts,proto3" json:"ts,omitempty"`
  3383  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3384  	XXX_unrecognized     []byte   `json:"-"`
  3385  	XXX_sizecache        int32    `json:"-"`
  3386  }
  3387  
  3388  func (m *TxnTimestamps) Reset()         { *m = TxnTimestamps{} }
  3389  func (m *TxnTimestamps) String() string { return proto.CompactTextString(m) }
  3390  func (*TxnTimestamps) ProtoMessage()    {}
  3391  func (*TxnTimestamps) Descriptor() ([]byte, []int) {
  3392  	return fileDescriptor_f80abaa17e25ccc8, []int{42}
  3393  }
  3394  func (m *TxnTimestamps) XXX_Unmarshal(b []byte) error {
  3395  	return m.Unmarshal(b)
  3396  }
  3397  func (m *TxnTimestamps) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3398  	if deterministic {
  3399  		return xxx_messageInfo_TxnTimestamps.Marshal(b, m, deterministic)
  3400  	} else {
  3401  		b = b[:cap(b)]
  3402  		n, err := m.MarshalToSizedBuffer(b)
  3403  		if err != nil {
  3404  			return nil, err
  3405  		}
  3406  		return b[:n], nil
  3407  	}
  3408  }
  3409  func (m *TxnTimestamps) XXX_Merge(src proto.Message) {
  3410  	xxx_messageInfo_TxnTimestamps.Merge(m, src)
  3411  }
  3412  func (m *TxnTimestamps) XXX_Size() int {
  3413  	return m.Size()
  3414  }
  3415  func (m *TxnTimestamps) XXX_DiscardUnknown() {
  3416  	xxx_messageInfo_TxnTimestamps.DiscardUnknown(m)
  3417  }
  3418  
  3419  var xxx_messageInfo_TxnTimestamps proto.InternalMessageInfo
  3420  
  3421  func (m *TxnTimestamps) GetTs() []uint64 {
  3422  	if m != nil {
  3423  		return m.Ts
  3424  	}
  3425  	return nil
  3426  }
  3427  
  3428  type PeerResponse struct {
  3429  	Status               bool     `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
  3430  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3431  	XXX_unrecognized     []byte   `json:"-"`
  3432  	XXX_sizecache        int32    `json:"-"`
  3433  }
  3434  
  3435  func (m *PeerResponse) Reset()         { *m = PeerResponse{} }
  3436  func (m *PeerResponse) String() string { return proto.CompactTextString(m) }
  3437  func (*PeerResponse) ProtoMessage()    {}
  3438  func (*PeerResponse) Descriptor() ([]byte, []int) {
  3439  	return fileDescriptor_f80abaa17e25ccc8, []int{43}
  3440  }
  3441  func (m *PeerResponse) XXX_Unmarshal(b []byte) error {
  3442  	return m.Unmarshal(b)
  3443  }
  3444  func (m *PeerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3445  	if deterministic {
  3446  		return xxx_messageInfo_PeerResponse.Marshal(b, m, deterministic)
  3447  	} else {
  3448  		b = b[:cap(b)]
  3449  		n, err := m.MarshalToSizedBuffer(b)
  3450  		if err != nil {
  3451  			return nil, err
  3452  		}
  3453  		return b[:n], nil
  3454  	}
  3455  }
  3456  func (m *PeerResponse) XXX_Merge(src proto.Message) {
  3457  	xxx_messageInfo_PeerResponse.Merge(m, src)
  3458  }
  3459  func (m *PeerResponse) XXX_Size() int {
  3460  	return m.Size()
  3461  }
  3462  func (m *PeerResponse) XXX_DiscardUnknown() {
  3463  	xxx_messageInfo_PeerResponse.DiscardUnknown(m)
  3464  }
  3465  
  3466  var xxx_messageInfo_PeerResponse proto.InternalMessageInfo
  3467  
  3468  func (m *PeerResponse) GetStatus() bool {
  3469  	if m != nil {
  3470  		return m.Status
  3471  	}
  3472  	return false
  3473  }
  3474  
  3475  type RaftBatch struct {
  3476  	Context              *RaftContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
  3477  	Payload              *api.Payload `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
  3478  	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
  3479  	XXX_unrecognized     []byte       `json:"-"`
  3480  	XXX_sizecache        int32        `json:"-"`
  3481  }
  3482  
  3483  func (m *RaftBatch) Reset()         { *m = RaftBatch{} }
  3484  func (m *RaftBatch) String() string { return proto.CompactTextString(m) }
  3485  func (*RaftBatch) ProtoMessage()    {}
  3486  func (*RaftBatch) Descriptor() ([]byte, []int) {
  3487  	return fileDescriptor_f80abaa17e25ccc8, []int{44}
  3488  }
  3489  func (m *RaftBatch) XXX_Unmarshal(b []byte) error {
  3490  	return m.Unmarshal(b)
  3491  }
  3492  func (m *RaftBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3493  	if deterministic {
  3494  		return xxx_messageInfo_RaftBatch.Marshal(b, m, deterministic)
  3495  	} else {
  3496  		b = b[:cap(b)]
  3497  		n, err := m.MarshalToSizedBuffer(b)
  3498  		if err != nil {
  3499  			return nil, err
  3500  		}
  3501  		return b[:n], nil
  3502  	}
  3503  }
  3504  func (m *RaftBatch) XXX_Merge(src proto.Message) {
  3505  	xxx_messageInfo_RaftBatch.Merge(m, src)
  3506  }
  3507  func (m *RaftBatch) XXX_Size() int {
  3508  	return m.Size()
  3509  }
  3510  func (m *RaftBatch) XXX_DiscardUnknown() {
  3511  	xxx_messageInfo_RaftBatch.DiscardUnknown(m)
  3512  }
  3513  
  3514  var xxx_messageInfo_RaftBatch proto.InternalMessageInfo
  3515  
  3516  func (m *RaftBatch) GetContext() *RaftContext {
  3517  	if m != nil {
  3518  		return m.Context
  3519  	}
  3520  	return nil
  3521  }
  3522  
  3523  func (m *RaftBatch) GetPayload() *api.Payload {
  3524  	if m != nil {
  3525  		return m.Payload
  3526  	}
  3527  	return nil
  3528  }
  3529  
  3530  type Num struct {
  3531  	Val                  uint64   `protobuf:"varint,1,opt,name=val,proto3" json:"val,omitempty"`
  3532  	ReadOnly             bool     `protobuf:"varint,2,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"`
  3533  	Forwarded            bool     `protobuf:"varint,3,opt,name=forwarded,proto3" json:"forwarded,omitempty"`
  3534  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3535  	XXX_unrecognized     []byte   `json:"-"`
  3536  	XXX_sizecache        int32    `json:"-"`
  3537  }
  3538  
  3539  func (m *Num) Reset()         { *m = Num{} }
  3540  func (m *Num) String() string { return proto.CompactTextString(m) }
  3541  func (*Num) ProtoMessage()    {}
  3542  func (*Num) Descriptor() ([]byte, []int) {
  3543  	return fileDescriptor_f80abaa17e25ccc8, []int{45}
  3544  }
  3545  func (m *Num) XXX_Unmarshal(b []byte) error {
  3546  	return m.Unmarshal(b)
  3547  }
  3548  func (m *Num) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3549  	if deterministic {
  3550  		return xxx_messageInfo_Num.Marshal(b, m, deterministic)
  3551  	} else {
  3552  		b = b[:cap(b)]
  3553  		n, err := m.MarshalToSizedBuffer(b)
  3554  		if err != nil {
  3555  			return nil, err
  3556  		}
  3557  		return b[:n], nil
  3558  	}
  3559  }
  3560  func (m *Num) XXX_Merge(src proto.Message) {
  3561  	xxx_messageInfo_Num.Merge(m, src)
  3562  }
  3563  func (m *Num) XXX_Size() int {
  3564  	return m.Size()
  3565  }
  3566  func (m *Num) XXX_DiscardUnknown() {
  3567  	xxx_messageInfo_Num.DiscardUnknown(m)
  3568  }
  3569  
  3570  var xxx_messageInfo_Num proto.InternalMessageInfo
  3571  
  3572  func (m *Num) GetVal() uint64 {
  3573  	if m != nil {
  3574  		return m.Val
  3575  	}
  3576  	return 0
  3577  }
  3578  
  3579  func (m *Num) GetReadOnly() bool {
  3580  	if m != nil {
  3581  		return m.ReadOnly
  3582  	}
  3583  	return false
  3584  }
  3585  
  3586  func (m *Num) GetForwarded() bool {
  3587  	if m != nil {
  3588  		return m.Forwarded
  3589  	}
  3590  	return false
  3591  }
  3592  
  3593  type AssignedIds struct {
  3594  	StartId uint64 `protobuf:"varint,1,opt,name=startId,proto3" json:"startId,omitempty"`
  3595  	EndId   uint64 `protobuf:"varint,2,opt,name=endId,proto3" json:"endId,omitempty"`
  3596  	// The following is used for read only transactions.
  3597  	ReadOnly             uint64   `protobuf:"varint,5,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"`
  3598  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3599  	XXX_unrecognized     []byte   `json:"-"`
  3600  	XXX_sizecache        int32    `json:"-"`
  3601  }
  3602  
  3603  func (m *AssignedIds) Reset()         { *m = AssignedIds{} }
  3604  func (m *AssignedIds) String() string { return proto.CompactTextString(m) }
  3605  func (*AssignedIds) ProtoMessage()    {}
  3606  func (*AssignedIds) Descriptor() ([]byte, []int) {
  3607  	return fileDescriptor_f80abaa17e25ccc8, []int{46}
  3608  }
  3609  func (m *AssignedIds) XXX_Unmarshal(b []byte) error {
  3610  	return m.Unmarshal(b)
  3611  }
  3612  func (m *AssignedIds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3613  	if deterministic {
  3614  		return xxx_messageInfo_AssignedIds.Marshal(b, m, deterministic)
  3615  	} else {
  3616  		b = b[:cap(b)]
  3617  		n, err := m.MarshalToSizedBuffer(b)
  3618  		if err != nil {
  3619  			return nil, err
  3620  		}
  3621  		return b[:n], nil
  3622  	}
  3623  }
  3624  func (m *AssignedIds) XXX_Merge(src proto.Message) {
  3625  	xxx_messageInfo_AssignedIds.Merge(m, src)
  3626  }
  3627  func (m *AssignedIds) XXX_Size() int {
  3628  	return m.Size()
  3629  }
  3630  func (m *AssignedIds) XXX_DiscardUnknown() {
  3631  	xxx_messageInfo_AssignedIds.DiscardUnknown(m)
  3632  }
  3633  
  3634  var xxx_messageInfo_AssignedIds proto.InternalMessageInfo
  3635  
  3636  func (m *AssignedIds) GetStartId() uint64 {
  3637  	if m != nil {
  3638  		return m.StartId
  3639  	}
  3640  	return 0
  3641  }
  3642  
  3643  func (m *AssignedIds) GetEndId() uint64 {
  3644  	if m != nil {
  3645  		return m.EndId
  3646  	}
  3647  	return 0
  3648  }
  3649  
  3650  func (m *AssignedIds) GetReadOnly() uint64 {
  3651  	if m != nil {
  3652  		return m.ReadOnly
  3653  	}
  3654  	return 0
  3655  }
  3656  
  3657  type SnapshotMeta struct {
  3658  	ClientTs             uint64   `protobuf:"varint,1,opt,name=client_ts,json=clientTs,proto3" json:"client_ts,omitempty"`
  3659  	GroupId              uint32   `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
  3660  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3661  	XXX_unrecognized     []byte   `json:"-"`
  3662  	XXX_sizecache        int32    `json:"-"`
  3663  }
  3664  
  3665  func (m *SnapshotMeta) Reset()         { *m = SnapshotMeta{} }
  3666  func (m *SnapshotMeta) String() string { return proto.CompactTextString(m) }
  3667  func (*SnapshotMeta) ProtoMessage()    {}
  3668  func (*SnapshotMeta) Descriptor() ([]byte, []int) {
  3669  	return fileDescriptor_f80abaa17e25ccc8, []int{47}
  3670  }
  3671  func (m *SnapshotMeta) XXX_Unmarshal(b []byte) error {
  3672  	return m.Unmarshal(b)
  3673  }
  3674  func (m *SnapshotMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3675  	if deterministic {
  3676  		return xxx_messageInfo_SnapshotMeta.Marshal(b, m, deterministic)
  3677  	} else {
  3678  		b = b[:cap(b)]
  3679  		n, err := m.MarshalToSizedBuffer(b)
  3680  		if err != nil {
  3681  			return nil, err
  3682  		}
  3683  		return b[:n], nil
  3684  	}
  3685  }
  3686  func (m *SnapshotMeta) XXX_Merge(src proto.Message) {
  3687  	xxx_messageInfo_SnapshotMeta.Merge(m, src)
  3688  }
  3689  func (m *SnapshotMeta) XXX_Size() int {
  3690  	return m.Size()
  3691  }
  3692  func (m *SnapshotMeta) XXX_DiscardUnknown() {
  3693  	xxx_messageInfo_SnapshotMeta.DiscardUnknown(m)
  3694  }
  3695  
  3696  var xxx_messageInfo_SnapshotMeta proto.InternalMessageInfo
  3697  
  3698  func (m *SnapshotMeta) GetClientTs() uint64 {
  3699  	if m != nil {
  3700  		return m.ClientTs
  3701  	}
  3702  	return 0
  3703  }
  3704  
  3705  func (m *SnapshotMeta) GetGroupId() uint32 {
  3706  	if m != nil {
  3707  		return m.GroupId
  3708  	}
  3709  	return 0
  3710  }
  3711  
  3712  // Status describes a general status response.
  3713  // code: 0 = success, 0 != failure.
  3714  type Status struct {
  3715  	Code                 int32    `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  3716  	Msg                  string   `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
  3717  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3718  	XXX_unrecognized     []byte   `json:"-"`
  3719  	XXX_sizecache        int32    `json:"-"`
  3720  }
  3721  
  3722  func (m *Status) Reset()         { *m = Status{} }
  3723  func (m *Status) String() string { return proto.CompactTextString(m) }
  3724  func (*Status) ProtoMessage()    {}
  3725  func (*Status) Descriptor() ([]byte, []int) {
  3726  	return fileDescriptor_f80abaa17e25ccc8, []int{48}
  3727  }
  3728  func (m *Status) XXX_Unmarshal(b []byte) error {
  3729  	return m.Unmarshal(b)
  3730  }
  3731  func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3732  	if deterministic {
  3733  		return xxx_messageInfo_Status.Marshal(b, m, deterministic)
  3734  	} else {
  3735  		b = b[:cap(b)]
  3736  		n, err := m.MarshalToSizedBuffer(b)
  3737  		if err != nil {
  3738  			return nil, err
  3739  		}
  3740  		return b[:n], nil
  3741  	}
  3742  }
  3743  func (m *Status) XXX_Merge(src proto.Message) {
  3744  	xxx_messageInfo_Status.Merge(m, src)
  3745  }
  3746  func (m *Status) XXX_Size() int {
  3747  	return m.Size()
  3748  }
  3749  func (m *Status) XXX_DiscardUnknown() {
  3750  	xxx_messageInfo_Status.DiscardUnknown(m)
  3751  }
  3752  
  3753  var xxx_messageInfo_Status proto.InternalMessageInfo
  3754  
  3755  func (m *Status) GetCode() int32 {
  3756  	if m != nil {
  3757  		return m.Code
  3758  	}
  3759  	return 0
  3760  }
  3761  
  3762  func (m *Status) GetMsg() string {
  3763  	if m != nil {
  3764  		return m.Msg
  3765  	}
  3766  	return ""
  3767  }
  3768  
  3769  type BackupRequest struct {
  3770  	ReadTs       uint64 `protobuf:"varint,1,opt,name=read_ts,json=readTs,proto3" json:"read_ts,omitempty"`
  3771  	SinceTs      uint64 `protobuf:"varint,2,opt,name=since_ts,json=sinceTs,proto3" json:"since_ts,omitempty"`
  3772  	GroupId      uint32 `protobuf:"varint,3,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
  3773  	UnixTs       string `protobuf:"bytes,4,opt,name=unix_ts,json=unixTs,proto3" json:"unix_ts,omitempty"`
  3774  	Destination  string `protobuf:"bytes,5,opt,name=destination,proto3" json:"destination,omitempty"`
  3775  	AccessKey    string `protobuf:"bytes,6,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"`
  3776  	SecretKey    string `protobuf:"bytes,7,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"`
  3777  	SessionToken string `protobuf:"bytes,8,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"`
  3778  	// True if no credentials should be used to access the S3 or minio bucket.
  3779  	// For example, when using a bucket with a public policy.
  3780  	Anonymous bool `protobuf:"varint,9,opt,name=anonymous,proto3" json:"anonymous,omitempty"`
  3781  	// The predicates to backup. All other predicates present in the group (e.g
  3782  	// stale data from a predicate move) will be ignored.
  3783  	Predicates           []string `protobuf:"bytes,10,rep,name=predicates,proto3" json:"predicates,omitempty"`
  3784  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3785  	XXX_unrecognized     []byte   `json:"-"`
  3786  	XXX_sizecache        int32    `json:"-"`
  3787  }
  3788  
  3789  func (m *BackupRequest) Reset()         { *m = BackupRequest{} }
  3790  func (m *BackupRequest) String() string { return proto.CompactTextString(m) }
  3791  func (*BackupRequest) ProtoMessage()    {}
  3792  func (*BackupRequest) Descriptor() ([]byte, []int) {
  3793  	return fileDescriptor_f80abaa17e25ccc8, []int{49}
  3794  }
  3795  func (m *BackupRequest) XXX_Unmarshal(b []byte) error {
  3796  	return m.Unmarshal(b)
  3797  }
  3798  func (m *BackupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3799  	if deterministic {
  3800  		return xxx_messageInfo_BackupRequest.Marshal(b, m, deterministic)
  3801  	} else {
  3802  		b = b[:cap(b)]
  3803  		n, err := m.MarshalToSizedBuffer(b)
  3804  		if err != nil {
  3805  			return nil, err
  3806  		}
  3807  		return b[:n], nil
  3808  	}
  3809  }
  3810  func (m *BackupRequest) XXX_Merge(src proto.Message) {
  3811  	xxx_messageInfo_BackupRequest.Merge(m, src)
  3812  }
  3813  func (m *BackupRequest) XXX_Size() int {
  3814  	return m.Size()
  3815  }
  3816  func (m *BackupRequest) XXX_DiscardUnknown() {
  3817  	xxx_messageInfo_BackupRequest.DiscardUnknown(m)
  3818  }
  3819  
  3820  var xxx_messageInfo_BackupRequest proto.InternalMessageInfo
  3821  
  3822  func (m *BackupRequest) GetReadTs() uint64 {
  3823  	if m != nil {
  3824  		return m.ReadTs
  3825  	}
  3826  	return 0
  3827  }
  3828  
  3829  func (m *BackupRequest) GetSinceTs() uint64 {
  3830  	if m != nil {
  3831  		return m.SinceTs
  3832  	}
  3833  	return 0
  3834  }
  3835  
  3836  func (m *BackupRequest) GetGroupId() uint32 {
  3837  	if m != nil {
  3838  		return m.GroupId
  3839  	}
  3840  	return 0
  3841  }
  3842  
  3843  func (m *BackupRequest) GetUnixTs() string {
  3844  	if m != nil {
  3845  		return m.UnixTs
  3846  	}
  3847  	return ""
  3848  }
  3849  
  3850  func (m *BackupRequest) GetDestination() string {
  3851  	if m != nil {
  3852  		return m.Destination
  3853  	}
  3854  	return ""
  3855  }
  3856  
  3857  func (m *BackupRequest) GetAccessKey() string {
  3858  	if m != nil {
  3859  		return m.AccessKey
  3860  	}
  3861  	return ""
  3862  }
  3863  
  3864  func (m *BackupRequest) GetSecretKey() string {
  3865  	if m != nil {
  3866  		return m.SecretKey
  3867  	}
  3868  	return ""
  3869  }
  3870  
  3871  func (m *BackupRequest) GetSessionToken() string {
  3872  	if m != nil {
  3873  		return m.SessionToken
  3874  	}
  3875  	return ""
  3876  }
  3877  
  3878  func (m *BackupRequest) GetAnonymous() bool {
  3879  	if m != nil {
  3880  		return m.Anonymous
  3881  	}
  3882  	return false
  3883  }
  3884  
  3885  func (m *BackupRequest) GetPredicates() []string {
  3886  	if m != nil {
  3887  		return m.Predicates
  3888  	}
  3889  	return nil
  3890  }
  3891  
  3892  type ExportRequest struct {
  3893  	GroupId              uint32   `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
  3894  	ReadTs               uint64   `protobuf:"varint,2,opt,name=read_ts,json=readTs,proto3" json:"read_ts,omitempty"`
  3895  	UnixTs               int64    `protobuf:"varint,3,opt,name=unix_ts,json=unixTs,proto3" json:"unix_ts,omitempty"`
  3896  	Format               string   `protobuf:"bytes,4,opt,name=format,proto3" json:"format,omitempty"`
  3897  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3898  	XXX_unrecognized     []byte   `json:"-"`
  3899  	XXX_sizecache        int32    `json:"-"`
  3900  }
  3901  
  3902  func (m *ExportRequest) Reset()         { *m = ExportRequest{} }
  3903  func (m *ExportRequest) String() string { return proto.CompactTextString(m) }
  3904  func (*ExportRequest) ProtoMessage()    {}
  3905  func (*ExportRequest) Descriptor() ([]byte, []int) {
  3906  	return fileDescriptor_f80abaa17e25ccc8, []int{50}
  3907  }
  3908  func (m *ExportRequest) XXX_Unmarshal(b []byte) error {
  3909  	return m.Unmarshal(b)
  3910  }
  3911  func (m *ExportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3912  	if deterministic {
  3913  		return xxx_messageInfo_ExportRequest.Marshal(b, m, deterministic)
  3914  	} else {
  3915  		b = b[:cap(b)]
  3916  		n, err := m.MarshalToSizedBuffer(b)
  3917  		if err != nil {
  3918  			return nil, err
  3919  		}
  3920  		return b[:n], nil
  3921  	}
  3922  }
  3923  func (m *ExportRequest) XXX_Merge(src proto.Message) {
  3924  	xxx_messageInfo_ExportRequest.Merge(m, src)
  3925  }
  3926  func (m *ExportRequest) XXX_Size() int {
  3927  	return m.Size()
  3928  }
  3929  func (m *ExportRequest) XXX_DiscardUnknown() {
  3930  	xxx_messageInfo_ExportRequest.DiscardUnknown(m)
  3931  }
  3932  
  3933  var xxx_messageInfo_ExportRequest proto.InternalMessageInfo
  3934  
  3935  func (m *ExportRequest) GetGroupId() uint32 {
  3936  	if m != nil {
  3937  		return m.GroupId
  3938  	}
  3939  	return 0
  3940  }
  3941  
  3942  func (m *ExportRequest) GetReadTs() uint64 {
  3943  	if m != nil {
  3944  		return m.ReadTs
  3945  	}
  3946  	return 0
  3947  }
  3948  
  3949  func (m *ExportRequest) GetUnixTs() int64 {
  3950  	if m != nil {
  3951  		return m.UnixTs
  3952  	}
  3953  	return 0
  3954  }
  3955  
  3956  func (m *ExportRequest) GetFormat() string {
  3957  	if m != nil {
  3958  		return m.Format
  3959  	}
  3960  	return ""
  3961  }
  3962  
  3963  // A key stored in the format used for writing backups.
  3964  type BackupKey struct {
  3965  	Type                 BackupKey_KeyType `protobuf:"varint,1,opt,name=type,proto3,enum=pb.BackupKey_KeyType" json:"type,omitempty"`
  3966  	Attr                 string            `protobuf:"bytes,2,opt,name=attr,proto3" json:"attr,omitempty"`
  3967  	Uid                  uint64            `protobuf:"varint,3,opt,name=uid,proto3" json:"uid,omitempty"`
  3968  	StartUid             uint64            `protobuf:"varint,4,opt,name=start_uid,json=startUid,proto3" json:"start_uid,omitempty"`
  3969  	Term                 string            `protobuf:"bytes,5,opt,name=term,proto3" json:"term,omitempty"`
  3970  	Count                uint32            `protobuf:"varint,6,opt,name=count,proto3" json:"count,omitempty"`
  3971  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
  3972  	XXX_unrecognized     []byte            `json:"-"`
  3973  	XXX_sizecache        int32             `json:"-"`
  3974  }
  3975  
  3976  func (m *BackupKey) Reset()         { *m = BackupKey{} }
  3977  func (m *BackupKey) String() string { return proto.CompactTextString(m) }
  3978  func (*BackupKey) ProtoMessage()    {}
  3979  func (*BackupKey) Descriptor() ([]byte, []int) {
  3980  	return fileDescriptor_f80abaa17e25ccc8, []int{51}
  3981  }
  3982  func (m *BackupKey) XXX_Unmarshal(b []byte) error {
  3983  	return m.Unmarshal(b)
  3984  }
  3985  func (m *BackupKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3986  	if deterministic {
  3987  		return xxx_messageInfo_BackupKey.Marshal(b, m, deterministic)
  3988  	} else {
  3989  		b = b[:cap(b)]
  3990  		n, err := m.MarshalToSizedBuffer(b)
  3991  		if err != nil {
  3992  			return nil, err
  3993  		}
  3994  		return b[:n], nil
  3995  	}
  3996  }
  3997  func (m *BackupKey) XXX_Merge(src proto.Message) {
  3998  	xxx_messageInfo_BackupKey.Merge(m, src)
  3999  }
  4000  func (m *BackupKey) XXX_Size() int {
  4001  	return m.Size()
  4002  }
  4003  func (m *BackupKey) XXX_DiscardUnknown() {
  4004  	xxx_messageInfo_BackupKey.DiscardUnknown(m)
  4005  }
  4006  
  4007  var xxx_messageInfo_BackupKey proto.InternalMessageInfo
  4008  
  4009  func (m *BackupKey) GetType() BackupKey_KeyType {
  4010  	if m != nil {
  4011  		return m.Type
  4012  	}
  4013  	return BackupKey_UNKNOWN
  4014  }
  4015  
  4016  func (m *BackupKey) GetAttr() string {
  4017  	if m != nil {
  4018  		return m.Attr
  4019  	}
  4020  	return ""
  4021  }
  4022  
  4023  func (m *BackupKey) GetUid() uint64 {
  4024  	if m != nil {
  4025  		return m.Uid
  4026  	}
  4027  	return 0
  4028  }
  4029  
  4030  func (m *BackupKey) GetStartUid() uint64 {
  4031  	if m != nil {
  4032  		return m.StartUid
  4033  	}
  4034  	return 0
  4035  }
  4036  
  4037  func (m *BackupKey) GetTerm() string {
  4038  	if m != nil {
  4039  		return m.Term
  4040  	}
  4041  	return ""
  4042  }
  4043  
  4044  func (m *BackupKey) GetCount() uint32 {
  4045  	if m != nil {
  4046  		return m.Count
  4047  	}
  4048  	return 0
  4049  }
  4050  
  4051  // A posting list stored in the format used for writing backups.
  4052  type BackupPostingList struct {
  4053  	Uids                 []uint64   `protobuf:"varint,1,rep,packed,name=uids,proto3" json:"uids,omitempty"`
  4054  	Postings             []*Posting `protobuf:"bytes,2,rep,name=postings,proto3" json:"postings,omitempty"`
  4055  	CommitTs             uint64     `protobuf:"varint,3,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"`
  4056  	Splits               []uint64   `protobuf:"varint,4,rep,packed,name=splits,proto3" json:"splits,omitempty"`
  4057  	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
  4058  	XXX_unrecognized     []byte     `json:"-"`
  4059  	XXX_sizecache        int32      `json:"-"`
  4060  }
  4061  
  4062  func (m *BackupPostingList) Reset()         { *m = BackupPostingList{} }
  4063  func (m *BackupPostingList) String() string { return proto.CompactTextString(m) }
  4064  func (*BackupPostingList) ProtoMessage()    {}
  4065  func (*BackupPostingList) Descriptor() ([]byte, []int) {
  4066  	return fileDescriptor_f80abaa17e25ccc8, []int{52}
  4067  }
  4068  func (m *BackupPostingList) XXX_Unmarshal(b []byte) error {
  4069  	return m.Unmarshal(b)
  4070  }
  4071  func (m *BackupPostingList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4072  	if deterministic {
  4073  		return xxx_messageInfo_BackupPostingList.Marshal(b, m, deterministic)
  4074  	} else {
  4075  		b = b[:cap(b)]
  4076  		n, err := m.MarshalToSizedBuffer(b)
  4077  		if err != nil {
  4078  			return nil, err
  4079  		}
  4080  		return b[:n], nil
  4081  	}
  4082  }
  4083  func (m *BackupPostingList) XXX_Merge(src proto.Message) {
  4084  	xxx_messageInfo_BackupPostingList.Merge(m, src)
  4085  }
  4086  func (m *BackupPostingList) XXX_Size() int {
  4087  	return m.Size()
  4088  }
  4089  func (m *BackupPostingList) XXX_DiscardUnknown() {
  4090  	xxx_messageInfo_BackupPostingList.DiscardUnknown(m)
  4091  }
  4092  
  4093  var xxx_messageInfo_BackupPostingList proto.InternalMessageInfo
  4094  
  4095  func (m *BackupPostingList) GetUids() []uint64 {
  4096  	if m != nil {
  4097  		return m.Uids
  4098  	}
  4099  	return nil
  4100  }
  4101  
  4102  func (m *BackupPostingList) GetPostings() []*Posting {
  4103  	if m != nil {
  4104  		return m.Postings
  4105  	}
  4106  	return nil
  4107  }
  4108  
  4109  func (m *BackupPostingList) GetCommitTs() uint64 {
  4110  	if m != nil {
  4111  		return m.CommitTs
  4112  	}
  4113  	return 0
  4114  }
  4115  
  4116  func (m *BackupPostingList) GetSplits() []uint64 {
  4117  	if m != nil {
  4118  		return m.Splits
  4119  	}
  4120  	return nil
  4121  }
  4122  
  4123  func init() {
  4124  	proto.RegisterEnum("pb.DirectedEdge_Op", DirectedEdge_Op_name, DirectedEdge_Op_value)
  4125  	proto.RegisterEnum("pb.Mutations_DropOp", Mutations_DropOp_name, Mutations_DropOp_value)
  4126  	proto.RegisterEnum("pb.Posting_ValType", Posting_ValType_name, Posting_ValType_value)
  4127  	proto.RegisterEnum("pb.Posting_PostingType", Posting_PostingType_name, Posting_PostingType_value)
  4128  	proto.RegisterEnum("pb.SchemaUpdate_Directive", SchemaUpdate_Directive_name, SchemaUpdate_Directive_value)
  4129  	proto.RegisterEnum("pb.BackupKey_KeyType", BackupKey_KeyType_name, BackupKey_KeyType_value)
  4130  	proto.RegisterType((*List)(nil), "pb.List")
  4131  	proto.RegisterType((*TaskValue)(nil), "pb.TaskValue")
  4132  	proto.RegisterType((*SrcFunction)(nil), "pb.SrcFunction")
  4133  	proto.RegisterType((*Query)(nil), "pb.Query")
  4134  	proto.RegisterType((*ValueList)(nil), "pb.ValueList")
  4135  	proto.RegisterType((*LangList)(nil), "pb.LangList")
  4136  	proto.RegisterType((*Result)(nil), "pb.Result")
  4137  	proto.RegisterType((*Order)(nil), "pb.Order")
  4138  	proto.RegisterType((*SortMessage)(nil), "pb.SortMessage")
  4139  	proto.RegisterType((*SortResult)(nil), "pb.SortResult")
  4140  	proto.RegisterType((*RaftContext)(nil), "pb.RaftContext")
  4141  	proto.RegisterType((*Member)(nil), "pb.Member")
  4142  	proto.RegisterType((*Group)(nil), "pb.Group")
  4143  	proto.RegisterMapType((map[uint64]*Member)(nil), "pb.Group.MembersEntry")
  4144  	proto.RegisterMapType((map[string]*Tablet)(nil), "pb.Group.TabletsEntry")
  4145  	proto.RegisterType((*License)(nil), "pb.License")
  4146  	proto.RegisterType((*ZeroProposal)(nil), "pb.ZeroProposal")
  4147  	proto.RegisterMapType((map[uint32]uint64)(nil), "pb.ZeroProposal.SnapshotTsEntry")
  4148  	proto.RegisterType((*MembershipState)(nil), "pb.MembershipState")
  4149  	proto.RegisterMapType((map[uint32]*Group)(nil), "pb.MembershipState.GroupsEntry")
  4150  	proto.RegisterMapType((map[uint64]*Member)(nil), "pb.MembershipState.ZerosEntry")
  4151  	proto.RegisterType((*ConnectionState)(nil), "pb.ConnectionState")
  4152  	proto.RegisterType((*Tablet)(nil), "pb.Tablet")
  4153  	proto.RegisterType((*DirectedEdge)(nil), "pb.DirectedEdge")
  4154  	proto.RegisterType((*Mutations)(nil), "pb.Mutations")
  4155  	proto.RegisterType((*Snapshot)(nil), "pb.Snapshot")
  4156  	proto.RegisterType((*Proposal)(nil), "pb.Proposal")
  4157  	proto.RegisterType((*KVS)(nil), "pb.KVS")
  4158  	proto.RegisterType((*Posting)(nil), "pb.Posting")
  4159  	proto.RegisterType((*UidBlock)(nil), "pb.UidBlock")
  4160  	proto.RegisterType((*UidPack)(nil), "pb.UidPack")
  4161  	proto.RegisterType((*PostingList)(nil), "pb.PostingList")
  4162  	proto.RegisterType((*FacetParam)(nil), "pb.FacetParam")
  4163  	proto.RegisterType((*FacetParams)(nil), "pb.FacetParams")
  4164  	proto.RegisterType((*Facets)(nil), "pb.Facets")
  4165  	proto.RegisterType((*FacetsList)(nil), "pb.FacetsList")
  4166  	proto.RegisterType((*Function)(nil), "pb.Function")
  4167  	proto.RegisterType((*FilterTree)(nil), "pb.FilterTree")
  4168  	proto.RegisterType((*SchemaRequest)(nil), "pb.SchemaRequest")
  4169  	proto.RegisterType((*SchemaNode)(nil), "pb.SchemaNode")
  4170  	proto.RegisterType((*SchemaResult)(nil), "pb.SchemaResult")
  4171  	proto.RegisterType((*SchemaUpdate)(nil), "pb.SchemaUpdate")
  4172  	proto.RegisterType((*TypeUpdate)(nil), "pb.TypeUpdate")
  4173  	proto.RegisterType((*MapEntry)(nil), "pb.MapEntry")
  4174  	proto.RegisterType((*MovePredicatePayload)(nil), "pb.MovePredicatePayload")
  4175  	proto.RegisterType((*TxnStatus)(nil), "pb.TxnStatus")
  4176  	proto.RegisterType((*OracleDelta)(nil), "pb.OracleDelta")
  4177  	proto.RegisterMapType((map[uint32]uint64)(nil), "pb.OracleDelta.GroupChecksumsEntry")
  4178  	proto.RegisterType((*TxnTimestamps)(nil), "pb.TxnTimestamps")
  4179  	proto.RegisterType((*PeerResponse)(nil), "pb.PeerResponse")
  4180  	proto.RegisterType((*RaftBatch)(nil), "pb.RaftBatch")
  4181  	proto.RegisterType((*Num)(nil), "pb.Num")
  4182  	proto.RegisterType((*AssignedIds)(nil), "pb.AssignedIds")
  4183  	proto.RegisterType((*SnapshotMeta)(nil), "pb.SnapshotMeta")
  4184  	proto.RegisterType((*Status)(nil), "pb.Status")
  4185  	proto.RegisterType((*BackupRequest)(nil), "pb.BackupRequest")
  4186  	proto.RegisterType((*ExportRequest)(nil), "pb.ExportRequest")
  4187  	proto.RegisterType((*BackupKey)(nil), "pb.BackupKey")
  4188  	proto.RegisterType((*BackupPostingList)(nil), "pb.BackupPostingList")
  4189  }
  4190  
  4191  func init() { proto.RegisterFile("pb.proto", fileDescriptor_f80abaa17e25ccc8) }
  4192  
  4193  var fileDescriptor_f80abaa17e25ccc8 = []byte{
  4194  	// 3774 bytes of a gzipped FileDescriptorProto
  4195  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x3a, 0x4d, 0x6f, 0x1c, 0x47,
  4196  	0x76, 0xea, 0xf9, 0xe8, 0xe9, 0x7e, 0x33, 0x43, 0x8d, 0xcb, 0x5a, 0x79, 0x4c, 0x7b, 0x25, 0xba,
  4197  	0x6d, 0x59, 0xb4, 0xbc, 0xa2, 0x64, 0x7a, 0x83, 0xac, 0x0d, 0xe4, 0x40, 0x91, 0x23, 0x2d, 0x2d,
  4198  	0x7e, 0x6d, 0x71, 0x28, 0x67, 0x7d, 0xc8, 0xa0, 0xd9, 0x5d, 0x1c, 0xf6, 0xb2, 0xa7, 0xbb, 0xd3,
  4199  	0xd5, 0xc3, 0x0c, 0x7d, 0xcb, 0x21, 0x01, 0x02, 0x24, 0xa7, 0x5c, 0xf6, 0x10, 0x04, 0x41, 0x80,
  4200  	0x5c, 0x72, 0xc9, 0x35, 0xc8, 0x31, 0x40, 0x80, 0x1c, 0x83, 0xfc, 0x81, 0x04, 0x4a, 0x7e, 0x43,
  4201  	0xce, 0xc1, 0x7b, 0x55, 0xfd, 0x35, 0xa2, 0xa4, 0xf5, 0x02, 0x7b, 0x9a, 0x7a, 0xaf, 0x5e, 0x7d,
  4202  	0xbd, 0xef, 0xf7, 0x7a, 0xc0, 0x4a, 0x4e, 0x37, 0x92, 0x34, 0xce, 0x62, 0xd6, 0x48, 0x4e, 0x57,
  4203  	0x6d, 0x37, 0x09, 0x14, 0xb8, 0x7a, 0x7f, 0x1a, 0x64, 0xe7, 0xf3, 0xd3, 0x0d, 0x2f, 0x9e, 0x3d,
  4204  	0xf2, 0xa7, 0xa9, 0x9b, 0x9c, 0x3f, 0x0c, 0xe2, 0x47, 0xa7, 0xae, 0x3f, 0x15, 0xe9, 0xa3, 0xe4,
  4205  	0xf4, 0x51, 0xbe, 0xce, 0x59, 0x85, 0xd6, 0x5e, 0x20, 0x33, 0xc6, 0xa0, 0x35, 0x0f, 0x7c, 0x39,
  4206  	0x34, 0xd6, 0x9a, 0xeb, 0x26, 0xa7, 0xb1, 0xb3, 0x0f, 0xf6, 0xd8, 0x95, 0x17, 0x2f, 0xdc, 0x70,
  4207  	0x2e, 0xd8, 0x00, 0x9a, 0x97, 0x6e, 0x38, 0x34, 0xd6, 0x8c, 0xf5, 0x1e, 0xc7, 0x21, 0xdb, 0x00,
  4208  	0xeb, 0xd2, 0x0d, 0x27, 0xd9, 0x55, 0x22, 0x86, 0x8d, 0x35, 0x63, 0x7d, 0x65, 0xf3, 0xdd, 0x8d,
  4209  	0xe4, 0x74, 0xe3, 0x28, 0x96, 0x59, 0x10, 0x4d, 0x37, 0x5e, 0xb8, 0xe1, 0xf8, 0x2a, 0x11, 0xbc,
  4210  	0x73, 0xa9, 0x06, 0xce, 0x21, 0x74, 0x8f, 0x53, 0xef, 0xe9, 0x3c, 0xf2, 0xb2, 0x20, 0x8e, 0xf0,
  4211  	0xc4, 0xc8, 0x9d, 0x09, 0xda, 0xd1, 0xe6, 0x34, 0x46, 0x9c, 0x9b, 0x4e, 0xe5, 0xb0, 0xb9, 0xd6,
  4212  	0x44, 0x1c, 0x8e, 0xd9, 0x10, 0x3a, 0x81, 0xdc, 0x8e, 0xe7, 0x51, 0x36, 0x6c, 0xad, 0x19, 0xeb,
  4213  	0x16, 0xcf, 0x41, 0xe7, 0x2f, 0x9a, 0xd0, 0xfe, 0xc5, 0x5c, 0xa4, 0x57, 0xb4, 0x2e, 0xcb, 0xd2,
  4214  	0x7c, 0x2f, 0x1c, 0xb3, 0x5b, 0xd0, 0x0e, 0xdd, 0x68, 0x2a, 0x87, 0x0d, 0xda, 0x4c, 0x01, 0xec,
  4215  	0x03, 0xb0, 0xdd, 0xb3, 0x4c, 0xa4, 0x93, 0x79, 0xe0, 0x0f, 0x9b, 0x6b, 0xc6, 0xba, 0xc9, 0x2d,
  4216  	0x42, 0x9c, 0x04, 0x3e, 0x7b, 0x1f, 0x2c, 0x3f, 0x9e, 0x78, 0xd5, 0xb3, 0xfc, 0x98, 0xce, 0x62,
  4217  	0x1f, 0x83, 0x35, 0x0f, 0xfc, 0x49, 0x18, 0xc8, 0x6c, 0xd8, 0x5e, 0x33, 0xd6, 0xbb, 0x9b, 0x16,
  4218  	0x3e, 0x16, 0x79, 0xc7, 0x3b, 0xf3, 0xc0, 0x27, 0x26, 0x3e, 0x00, 0x4b, 0xa6, 0xde, 0xe4, 0x6c,
  4219  	0x1e, 0x79, 0x43, 0x93, 0x88, 0x6e, 0x22, 0x51, 0xe5, 0xd5, 0xbc, 0x23, 0x15, 0x80, 0xcf, 0x4a,
  4220  	0xc5, 0xa5, 0x48, 0xa5, 0x18, 0x76, 0xd4, 0x51, 0x1a, 0x64, 0x8f, 0xa1, 0x7b, 0xe6, 0x7a, 0x22,
  4221  	0x9b, 0x24, 0x6e, 0xea, 0xce, 0x86, 0x56, 0xb9, 0xd1, 0x53, 0x44, 0x1f, 0x21, 0x56, 0x72, 0x38,
  4222  	0x2b, 0x00, 0xf6, 0x25, 0xf4, 0x09, 0x92, 0x93, 0xb3, 0x20, 0xcc, 0x44, 0x3a, 0xb4, 0x69, 0xcd,
  4223  	0x0a, 0xad, 0x21, 0xcc, 0x38, 0x15, 0x82, 0xf7, 0x14, 0x91, 0xc2, 0xb0, 0x1f, 0x03, 0x88, 0x45,
  4224  	0xe2, 0x46, 0xfe, 0xc4, 0x0d, 0xc3, 0x21, 0xd0, 0x1d, 0x6c, 0x85, 0xd9, 0x0a, 0x43, 0xf6, 0x1e,
  4225  	0xde, 0xcf, 0xf5, 0x27, 0x99, 0x1c, 0xf6, 0xd7, 0x8c, 0xf5, 0x16, 0x37, 0x11, 0x1c, 0x4b, 0xe4,
  4226  	0xab, 0xe7, 0x7a, 0xe7, 0x62, 0xb8, 0xb2, 0x66, 0xac, 0xb7, 0xb9, 0x02, 0x9c, 0x4d, 0xb0, 0x49,
  4227  	0x4f, 0x88, 0x0f, 0xf7, 0xc0, 0xbc, 0x44, 0x40, 0xa9, 0x53, 0x77, 0xb3, 0x8f, 0x17, 0x29, 0x54,
  4228  	0x89, 0xeb, 0x49, 0xe7, 0x0e, 0x58, 0x7b, 0x6e, 0x34, 0xcd, 0xf5, 0x0f, 0x05, 0x44, 0x0b, 0x6c,
  4229  	0x4e, 0x63, 0xe7, 0xd7, 0x0d, 0x30, 0xb9, 0x90, 0xf3, 0x30, 0x63, 0xf7, 0x01, 0x90, 0xfd, 0x33,
  4230  	0x37, 0x4b, 0x83, 0x85, 0xde, 0xb5, 0x14, 0x80, 0x3d, 0x0f, 0xfc, 0x7d, 0x9a, 0x62, 0x8f, 0xa1,
  4231  	0x47, 0xbb, 0xe7, 0xa4, 0x8d, 0xf2, 0x02, 0xc5, 0xfd, 0x78, 0x97, 0x48, 0xf4, 0x8a, 0xdb, 0x60,
  4232  	0x92, 0xc4, 0x95, 0xd6, 0xf5, 0xb9, 0x86, 0xd8, 0x3d, 0x58, 0x09, 0xa2, 0x0c, 0x25, 0xe2, 0x65,
  4233  	0x13, 0x5f, 0xc8, 0x5c, 0x25, 0xfa, 0x05, 0x76, 0x47, 0xc8, 0x8c, 0x7d, 0x01, 0x8a, 0xad, 0xf9,
  4234  	0x81, 0x6d, 0x3a, 0x70, 0xa5, 0x10, 0x97, 0x54, 0x27, 0x12, 0x8d, 0x3e, 0xf1, 0x21, 0x74, 0xf1,
  4235  	0x7d, 0xf9, 0x0a, 0x93, 0x56, 0xf4, 0xe8, 0x35, 0x9a, 0x1d, 0x1c, 0x90, 0x40, 0x93, 0x23, 0x6b,
  4236  	0x50, 0xed, 0x94, 0x9a, 0xd0, 0xd8, 0x19, 0x41, 0xfb, 0x30, 0xf5, 0x45, 0x7a, 0xad, 0xe6, 0x33,
  4237  	0x68, 0xf9, 0x42, 0x7a, 0x64, 0x94, 0x16, 0xa7, 0x71, 0x69, 0x0d, 0xcd, 0x8a, 0x35, 0x38, 0x7f,
  4238  	0x6b, 0x40, 0xf7, 0x38, 0x4e, 0xb3, 0x7d, 0x21, 0xa5, 0x3b, 0x15, 0xec, 0x2e, 0xb4, 0x63, 0xdc,
  4239  	0x56, 0x73, 0xd8, 0xc6, 0x3b, 0xd1, 0x39, 0x5c, 0xe1, 0x97, 0xe4, 0xd0, 0x78, 0xbd, 0x1c, 0x50,
  4240  	0x4b, 0xc8, 0x8e, 0x9a, 0x5a, 0x4b, 0xc8, 0x8a, 0x6e, 0x83, 0x19, 0x9f, 0x9d, 0x49, 0xa1, 0x78,
  4241  	0xd9, 0xe6, 0x1a, 0x7a, 0xad, 0xb2, 0x39, 0xbf, 0x07, 0x80, 0xf7, 0xfb, 0x81, 0x5a, 0xe0, 0x9c,
  4242  	0x43, 0x97, 0xbb, 0x67, 0xd9, 0x76, 0x1c, 0x65, 0x62, 0x91, 0xb1, 0x15, 0x68, 0x04, 0x3e, 0xb1,
  4243  	0xc8, 0xe4, 0x8d, 0xc0, 0xc7, 0xcb, 0x4d, 0xd3, 0x78, 0x9e, 0x10, 0x87, 0xfa, 0x5c, 0x01, 0xc4,
  4244  	0x4a, 0xdf, 0x4f, 0xe9, 0xc6, 0xc8, 0x4a, 0xdf, 0x4f, 0xd9, 0x5d, 0xe8, 0xca, 0xc8, 0x4d, 0xe4,
  4245  	0x79, 0x9c, 0xe1, 0xe5, 0x5a, 0x74, 0x39, 0xc8, 0x51, 0x63, 0xe9, 0xfc, 0x9b, 0x01, 0xe6, 0xbe,
  4246  	0x98, 0x9d, 0x8a, 0xf4, 0x95, 0x53, 0xde, 0x07, 0x8b, 0x36, 0x9e, 0x04, 0xbe, 0x3e, 0xa8, 0x43,
  4247  	0xf0, 0xae, 0x7f, 0xed, 0x51, 0xb7, 0xc1, 0x0c, 0x85, 0x8b, 0xcc, 0x57, 0x7a, 0xa6, 0x21, 0xe4,
  4248  	0x8d, 0x3b, 0x9b, 0xf8, 0xc2, 0xf5, 0xc9, 0xf1, 0x58, 0xdc, 0x74, 0x67, 0x3b, 0xc2, 0xf5, 0xf1,
  4249  	0x6e, 0xa1, 0x2b, 0xb3, 0xc9, 0x3c, 0xf1, 0xdd, 0x4c, 0x90, 0xc3, 0x69, 0xa1, 0xe2, 0xc8, 0xec,
  4250  	0x84, 0x30, 0xec, 0x01, 0xbc, 0xe3, 0x85, 0x73, 0x89, 0xde, 0x2e, 0x88, 0xce, 0xe2, 0x49, 0x1c,
  4251  	0x85, 0x57, 0xc4, 0x5f, 0x8b, 0xdf, 0xd4, 0x13, 0xbb, 0xd1, 0x59, 0x7c, 0x18, 0x85, 0x57, 0xce,
  4252  	0x3f, 0x37, 0xa0, 0xfd, 0x8c, 0xd8, 0xf0, 0x18, 0x3a, 0x33, 0x7a, 0x50, 0x6e, 0xbd, 0xb7, 0x91,
  4253  	0xc3, 0x34, 0xb7, 0xa1, 0x5e, 0x2a, 0x47, 0x51, 0x96, 0x5e, 0xf1, 0x9c, 0x0c, 0x57, 0x64, 0xee,
  4254  	0x69, 0x28, 0x32, 0xa9, 0x35, 0xa2, 0xb2, 0x62, 0xac, 0x26, 0xf4, 0x0a, 0x4d, 0xb6, 0xcc, 0xd6,
  4255  	0xe6, 0x32, 0x5b, 0xd9, 0x2a, 0x58, 0xde, 0xb9, 0xf0, 0x2e, 0xe4, 0x7c, 0xa6, 0x99, 0x5e, 0xc0,
  4256  	0xab, 0x4f, 0xa1, 0x57, 0xbd, 0x07, 0x46, 0xa6, 0x0b, 0x71, 0x45, 0x8c, 0x6f, 0x71, 0x1c, 0xb2,
  4257  	0x35, 0x68, 0x93, 0x85, 0x13, 0xdb, 0xbb, 0x9b, 0x80, 0xd7, 0x51, 0x4b, 0xb8, 0x9a, 0xf8, 0xba,
  4258  	0xf1, 0x33, 0x03, 0xf7, 0xa9, 0xde, 0xae, 0xba, 0x8f, 0xfd, 0xfa, 0x7d, 0xd4, 0x92, 0xca, 0x3e,
  4259  	0x4e, 0x0c, 0x9d, 0xbd, 0xc0, 0x13, 0x91, 0xa4, 0xf8, 0x35, 0x97, 0xa2, 0xb0, 0x46, 0x1c, 0xe3,
  4260  	0x53, 0x66, 0xee, 0xe2, 0x20, 0xf6, 0x85, 0xa4, 0x7d, 0x5a, 0xbc, 0x80, 0x71, 0x4e, 0x2c, 0x92,
  4261  	0x20, 0xbd, 0x1a, 0x2b, 0x26, 0x34, 0x79, 0x01, 0x63, 0x80, 0x10, 0x11, 0x1e, 0xe6, 0xe7, 0xb1,
  4262  	0x48, 0x83, 0xce, 0xdf, 0x35, 0xa1, 0xf7, 0x9d, 0x48, 0xe3, 0xa3, 0x34, 0x4e, 0x62, 0xe9, 0x86,
  4263  	0x6c, 0xab, 0xce, 0x4e, 0x25, 0xb6, 0x35, 0xbc, 0x6d, 0x95, 0x6c, 0xe3, 0xb8, 0xe0, 0xaf, 0x12,
  4264  	0x47, 0x95, 0xe1, 0x0e, 0x98, 0x4a, 0x9c, 0xd7, 0xf0, 0x4c, 0xcf, 0x20, 0x8d, 0x12, 0x20, 0xdd,
  4265  	0xb5, 0xce, 0x0f, 0x3d, 0xc3, 0xee, 0x00, 0xcc, 0xdc, 0xc5, 0x9e, 0x70, 0xa5, 0xd8, 0xf5, 0x73,
  4266  	0x7b, 0x29, 0x31, 0x9a, 0x1b, 0xe3, 0x45, 0x34, 0x96, 0xa4, 0xce, 0x8a, 0x1b, 0x04, 0xb3, 0x0f,
  4267  	0xc1, 0x9e, 0xb9, 0x0b, 0x34, 0xdc, 0x5d, 0x5f, 0xab, 0x73, 0x89, 0x60, 0x1f, 0x41, 0x33, 0x5b,
  4268  	0x44, 0xe4, 0x05, 0x31, 0x1c, 0x62, 0xae, 0x33, 0x5e, 0x44, 0xda, 0xc4, 0x39, 0xce, 0xe5, 0x12,
  4269  	0xb4, 0x4a, 0x09, 0x0e, 0xa0, 0xe9, 0x05, 0x3e, 0xc5, 0x43, 0x9b, 0xe3, 0x90, 0xdd, 0x83, 0x4e,
  4270  	0xa8, 0xa4, 0x45, 0x31, 0xaf, 0xbb, 0xd9, 0x55, 0x0e, 0x84, 0x50, 0x3c, 0x9f, 0x5b, 0xfd, 0x03,
  4271  	0xb8, 0xb9, 0xc4, 0xae, 0xaa, 0x7e, 0xf4, 0xd5, 0xee, 0xb7, 0xaa, 0xfa, 0xd1, 0xaa, 0xea, 0xc4,
  4272  	0x7f, 0x35, 0xe1, 0xa6, 0x56, 0xd2, 0xf3, 0x20, 0x39, 0xce, 0xd0, 0x1c, 0x87, 0xd0, 0x21, 0x2f,
  4273  	0xa8, 0xf5, 0xa3, 0xc5, 0x73, 0x90, 0xfd, 0x3e, 0x98, 0xe4, 0x19, 0x72, 0xfb, 0xb9, 0x5b, 0x32,
  4274  	0xbf, 0x58, 0xae, 0xec, 0x49, 0x4b, 0x4e, 0x93, 0xb3, 0x9f, 0x42, 0xfb, 0x7b, 0x91, 0xc6, 0xca,
  4275  	0xab, 0x77, 0x37, 0xef, 0x5c, 0xb7, 0x0e, 0x55, 0x40, 0x2f, 0x53, 0xc4, 0xbf, 0x43, 0x19, 0x7d,
  4276  	0x82, 0x7e, 0x7c, 0x16, 0x5f, 0x0a, 0x7f, 0xd8, 0xa1, 0x1b, 0x55, 0xd5, 0x28, 0x9f, 0xca, 0x85,
  4277  	0x62, 0x5d, 0x2b, 0x14, 0xfb, 0x0d, 0x42, 0xd9, 0x81, 0x6e, 0x85, 0x0b, 0xd7, 0x08, 0xe4, 0x6e,
  4278  	0xdd, 0x60, 0xed, 0xc2, 0x0f, 0x55, 0xed, 0x7e, 0x07, 0xa0, 0xe4, 0xc9, 0x6f, 0xeb, 0x3d, 0x9c,
  4279  	0x3f, 0x35, 0xe0, 0xe6, 0x76, 0x1c, 0x45, 0x82, 0xf2, 0x3a, 0x25, 0xe1, 0xd2, 0x88, 0x8c, 0xd7,
  4280  	0x1a, 0xd1, 0x67, 0xd0, 0x96, 0x48, 0xac, 0x77, 0x7f, 0xf7, 0x1a, 0x91, 0x71, 0x45, 0x81, 0x5e,
  4281  	0x72, 0xe6, 0x2e, 0x26, 0x89, 0x88, 0xfc, 0x20, 0x9a, 0xe6, 0x5e, 0x72, 0xe6, 0x2e, 0x8e, 0x14,
  4282  	0xc6, 0xf9, 0x7b, 0x03, 0x4c, 0x65, 0x7f, 0xb5, 0x60, 0x63, 0xd4, 0x83, 0xcd, 0x87, 0x60, 0x27,
  4283  	0xa9, 0xf0, 0x03, 0x2f, 0x3f, 0xd5, 0xe6, 0x25, 0x02, 0x75, 0xf8, 0x2c, 0x4e, 0x3d, 0x41, 0xdb,
  4284  	0x5b, 0x5c, 0x01, 0x88, 0x95, 0x89, 0xeb, 0xa9, 0xdc, 0xb4, 0xc9, 0x15, 0x80, 0x21, 0x4a, 0xc9,
  4285  	0x90, 0x64, 0x67, 0x71, 0x0d, 0x61, 0x52, 0x4d, 0xe1, 0x9b, 0x02, 0x8c, 0x4d, 0x53, 0x16, 0x22,
  4286  	0x28, 0xb2, 0xfc, 0x63, 0x03, 0x7a, 0x3b, 0x41, 0x2a, 0xbc, 0x4c, 0xf8, 0x23, 0x7f, 0x4a, 0xbb,
  4287  	0x88, 0x28, 0x0b, 0xb2, 0x2b, 0x1d, 0x2b, 0x35, 0x54, 0xa4, 0x32, 0x8d, 0x7a, 0x12, 0xaf, 0x64,
  4288  	0xd1, 0xa4, 0xba, 0x43, 0x01, 0x6c, 0x13, 0x40, 0x25, 0x79, 0x54, 0x7b, 0xb4, 0x5e, 0x5f, 0x7b,
  4289  	0xd8, 0x44, 0x86, 0x43, 0x64, 0x90, 0x5a, 0x13, 0xa8, 0x38, 0x6a, 0x52, 0x61, 0x32, 0x47, 0x7d,
  4290  	0xa7, 0xdc, 0xe8, 0x54, 0x84, 0xa4, 0xcf, 0x94, 0x1b, 0x9d, 0x8a, 0xb0, 0xc8, 0x48, 0x3b, 0xea,
  4291  	0x3a, 0x38, 0x66, 0x1f, 0x43, 0x23, 0x4e, 0xe8, 0xf1, 0xfa, 0xc0, 0xea, 0xc3, 0x36, 0x0e, 0x13,
  4292  	0xde, 0x88, 0x13, 0xd4, 0x02, 0x95, 0x68, 0x0f, 0x6d, 0x6d, 0x03, 0xe8, 0xab, 0x28, 0x19, 0xe4,
  4293  	0x7a, 0xc6, 0xb9, 0x0d, 0x8d, 0xc3, 0x84, 0x75, 0xa0, 0x79, 0x3c, 0x1a, 0x0f, 0x6e, 0xe0, 0x60,
  4294  	0x67, 0xb4, 0x37, 0x30, 0x30, 0x0c, 0xdb, 0xfb, 0xf3, 0xcc, 0x45, 0x9d, 0x92, 0x6f, 0x12, 0xea,
  4295  	0xfb, 0x60, 0xc9, 0xcc, 0x4d, 0xc9, 0xdf, 0x2b, 0xef, 0xd3, 0x21, 0x78, 0x2c, 0xd9, 0xa7, 0xd0,
  4296  	0x16, 0xfe, 0x54, 0xe4, 0x4e, 0x61, 0xb0, 0x7c, 0x4f, 0xae, 0xa6, 0xd9, 0x3a, 0x98, 0xd2, 0x3b,
  4297  	0x17, 0x33, 0x77, 0xd8, 0x2a, 0x09, 0x8f, 0x09, 0xa3, 0x12, 0x08, 0xae, 0xe7, 0xd9, 0x27, 0xd0,
  4298  	0x46, 0x4e, 0x4b, 0x9d, 0xaa, 0x52, 0x72, 0x8b, 0x4c, 0xd5, 0x64, 0x6a, 0x92, 0x3d, 0x84, 0x8e,
  4299  	0x9f, 0xc6, 0xc9, 0x24, 0x4e, 0x88, 0x67, 0x2b, 0x9b, 0xb7, 0x48, 0xb7, 0xf3, 0xd7, 0x6c, 0xec,
  4300  	0xa4, 0x71, 0x72, 0x98, 0x70, 0xd3, 0xa7, 0x5f, 0xac, 0x3f, 0x88, 0x5c, 0xc9, 0x57, 0x39, 0x03,
  4301  	0x1b, 0x31, 0x94, 0xa7, 0x3b, 0x8f, 0xc0, 0x54, 0x0b, 0x98, 0x05, 0xad, 0x83, 0xc3, 0x83, 0x91,
  4302  	0x62, 0xd3, 0xd6, 0xde, 0xde, 0xc0, 0x40, 0xd4, 0xce, 0xd6, 0x78, 0x6b, 0xd0, 0xc0, 0xd1, 0xf8,
  4303  	0x97, 0x47, 0xa3, 0x41, 0xd3, 0xf9, 0x6b, 0x03, 0xac, 0xdc, 0x65, 0xb3, 0xcf, 0xd0, 0xd7, 0x52,
  4304  	0x64, 0xd0, 0xa6, 0x48, 0xf5, 0x53, 0x25, 0x27, 0xe4, 0xf9, 0x3c, 0x4a, 0x3f, 0x88, 0x7c, 0xb1,
  4305  	0xc8, 0x9d, 0x38, 0x01, 0xd5, 0x8c, 0xb4, 0x59, 0x2b, 0x7f, 0x30, 0xb9, 0x8e, 0x23, 0xa1, 0x63,
  4306  	0x32, 0x8d, 0x49, 0x18, 0x41, 0xe4, 0x09, 0xa4, 0x6e, 0x6b, 0x61, 0x20, 0x3c, 0x96, 0xce, 0xdf,
  4307  	0x34, 0xc0, 0x2a, 0xe2, 0xf4, 0xe7, 0x60, 0xcf, 0x72, 0x76, 0x68, 0xfb, 0xef, 0xd7, 0x78, 0xc4,
  4308  	0xcb, 0x79, 0x76, 0x1b, 0x1a, 0x17, 0x97, 0x5a, 0x34, 0x26, 0x52, 0x3d, 0x7f, 0xc1, 0x1b, 0x17,
  4309  	0x97, 0xa5, 0x03, 0x69, 0xbf, 0xd5, 0x81, 0xdc, 0x87, 0x9b, 0x5e, 0x28, 0xdc, 0x68, 0x52, 0xda,
  4310  	0xbf, 0x52, 0xf1, 0x15, 0x42, 0x1f, 0x15, 0x4e, 0x40, 0x3b, 0xc1, 0x4e, 0x19, 0x38, 0xef, 0x41,
  4311  	0xdb, 0x17, 0x61, 0xe6, 0x56, 0xcb, 0xcf, 0xc3, 0xd4, 0xf5, 0x42, 0xb1, 0x83, 0x68, 0xae, 0x66,
  4312  	0xd9, 0x3a, 0x58, 0x79, 0x12, 0xa1, 0x3d, 0x37, 0xd5, 0x31, 0xb9, 0x1c, 0x78, 0x31, 0x5b, 0xb2,
  4313  	0x19, 0x2a, 0x6c, 0x76, 0xbe, 0x80, 0xe6, 0xf3, 0x17, 0xc7, 0xfa, 0xad, 0xc6, 0x2b, 0x6f, 0xcd,
  4314  	0x99, 0xdd, 0x28, 0x99, 0xed, 0xfc, 0x5f, 0x13, 0x3a, 0xda, 0xce, 0xf1, 0xde, 0xf3, 0x22, 0xe7,
  4315  	0xc6, 0x61, 0x3d, 0x24, 0x17, 0x0e, 0xa3, 0xda, 0xaa, 0x68, 0xbe, 0xbd, 0x55, 0xc1, 0xbe, 0x86,
  4316  	0x5e, 0xa2, 0xe6, 0xaa, 0x2e, 0xe6, 0xbd, 0xea, 0x1a, 0xfd, 0x4b, 0xeb, 0xba, 0x49, 0x09, 0xa0,
  4317  	0x32, 0x50, 0x75, 0x97, 0xb9, 0x53, 0x12, 0x51, 0x8f, 0x77, 0x10, 0x1e, 0xbb, 0xd3, 0xd7, 0x38,
  4318  	0x9a, 0xdf, 0xc0, 0x5f, 0x60, 0x6d, 0x11, 0x27, 0xc3, 0x1e, 0xf9, 0x00, 0xf4, 0x31, 0x55, 0xf3,
  4319  	0xef, 0xd7, 0xcd, 0xff, 0x03, 0xb0, 0xbd, 0x78, 0x36, 0x0b, 0x68, 0x6e, 0x45, 0xe7, 0xce, 0x84,
  4320  	0x18, 0x4b, 0xe7, 0xcf, 0x0d, 0xe8, 0xe8, 0xd7, 0xb2, 0x2e, 0x74, 0x76, 0x46, 0x4f, 0xb7, 0x4e,
  4321  	0xf6, 0xd0, 0x03, 0x01, 0x98, 0x4f, 0x76, 0x0f, 0xb6, 0xf8, 0x2f, 0x07, 0x06, 0x9a, 0xd9, 0xee,
  4322  	0xc1, 0x78, 0xd0, 0x60, 0x36, 0xb4, 0x9f, 0xee, 0x1d, 0x6e, 0x8d, 0x07, 0x4d, 0xb4, 0xb3, 0x27,
  4323  	0x87, 0x87, 0x7b, 0x83, 0x16, 0xeb, 0x81, 0xb5, 0xb3, 0x35, 0x1e, 0x8d, 0x77, 0xf7, 0x47, 0x83,
  4324  	0x36, 0xd2, 0x3e, 0x1b, 0x1d, 0x0e, 0x4c, 0x1c, 0x9c, 0xec, 0xee, 0x0c, 0x3a, 0x38, 0x7f, 0xb4,
  4325  	0x75, 0x7c, 0xfc, 0xed, 0x21, 0xdf, 0x19, 0x58, 0xb8, 0xef, 0xf1, 0x98, 0xef, 0x1e, 0x3c, 0x1b,
  4326  	0xd8, 0x38, 0x3e, 0x7c, 0xf2, 0xcd, 0x68, 0x7b, 0x3c, 0x00, 0xe7, 0x0b, 0xe8, 0x56, 0x38, 0x88,
  4327  	0xab, 0xf9, 0xe8, 0xe9, 0xe0, 0x06, 0x1e, 0xf9, 0x62, 0x6b, 0xef, 0x64, 0x34, 0x30, 0xd8, 0x0a,
  4328  	0x00, 0x0d, 0x27, 0x7b, 0x5b, 0x07, 0xcf, 0x06, 0x0d, 0xe7, 0x17, 0x60, 0x9d, 0x04, 0xfe, 0x93,
  4329  	0x30, 0xf6, 0x2e, 0x50, 0x31, 0x4e, 0x5d, 0x29, 0x74, 0xd8, 0xa6, 0x31, 0xc6, 0x15, 0x52, 0x4a,
  4330  	0xa9, 0x65, 0xaf, 0x21, 0xe4, 0x55, 0x34, 0x9f, 0x4d, 0xa8, 0xbd, 0xd5, 0x54, 0x5e, 0x34, 0x9a,
  4331  	0xcf, 0x4e, 0x02, 0x5f, 0x3a, 0x07, 0xd0, 0x39, 0x09, 0xfc, 0x23, 0xd7, 0xbb, 0x40, 0x77, 0x74,
  4332  	0x8a, 0x5b, 0x4f, 0x64, 0xf0, 0xbd, 0xd0, 0xde, 0xd6, 0x26, 0xcc, 0x71, 0xf0, 0xbd, 0x60, 0x9f,
  4333  	0x80, 0x49, 0x40, 0x9e, 0xa2, 0x91, 0x9a, 0xe7, 0xd7, 0xe1, 0x7a, 0xce, 0xf9, 0x4b, 0xa3, 0x78,
  4334  	0x16, 0x75, 0x35, 0xee, 0x42, 0x2b, 0x71, 0xbd, 0x0b, 0xed, 0x83, 0xba, 0x7a, 0x0d, 0x9e, 0xc7,
  4335  	0x69, 0x82, 0xdd, 0x07, 0x4b, 0xeb, 0x4e, 0xbe, 0x71, 0xb7, 0xa2, 0x64, 0xbc, 0x98, 0xac, 0x4b,
  4336  	0xb5, 0x59, 0x97, 0x2a, 0xbe, 0x5c, 0x26, 0x61, 0x40, 0x05, 0x6a, 0x13, 0x7d, 0x95, 0x82, 0x9c,
  4337  	0x9f, 0x02, 0x94, 0x2d, 0xa3, 0x6b, 0xea, 0x9b, 0x5b, 0xd0, 0x76, 0xc3, 0x40, 0x33, 0xcc, 0xe6,
  4338  	0x0a, 0x70, 0x0e, 0xa0, 0x5b, 0x69, 0x34, 0x21, 0xfb, 0xdc, 0x30, 0x9c, 0x5c, 0x88, 0x2b, 0x49,
  4339  	0x6b, 0x2d, 0xde, 0x71, 0xc3, 0xf0, 0xb9, 0xb8, 0x92, 0x18, 0x17, 0x54, 0x8f, 0xaa, 0xb1, 0xd4,
  4340  	0xf4, 0xa0, 0xa5, 0x5c, 0x4d, 0x3a, 0x3f, 0x01, 0x53, 0x75, 0x42, 0x2a, 0x9a, 0x6e, 0xbc, 0x36,
  4341  	0x32, 0x7e, 0xa5, 0xef, 0x4c, 0x7d, 0x13, 0xf6, 0xb9, 0xee, 0x85, 0x49, 0xd5, 0x79, 0x33, 0xca,
  4342  	0xa4, 0x52, 0x11, 0xe9, 0x36, 0x18, 0x11, 0x3b, 0x3b, 0x60, 0xbd, 0xb1, 0xbb, 0xa8, 0x19, 0xd0,
  4343  	0x28, 0x19, 0x70, 0x4d, 0xbf, 0xd1, 0xf9, 0x15, 0x40, 0xd9, 0x33, 0xd3, 0x86, 0xa7, 0x76, 0x41,
  4344  	0xc3, 0x7b, 0x80, 0x85, 0x69, 0x10, 0xfa, 0xa9, 0x88, 0x6a, 0xaf, 0x2e, 0xbb, 0x6c, 0xc5, 0x3c,
  4345  	0x5b, 0x83, 0x16, 0xb5, 0x02, 0x9b, 0xa5, 0x63, 0x2c, 0xfa, 0x80, 0x34, 0xe3, 0x2c, 0xa0, 0xaf,
  4346  	0x02, 0x2e, 0x17, 0x7f, 0x3c, 0x17, 0xf2, 0x8d, 0x69, 0xdc, 0x1d, 0x80, 0xc2, 0x8d, 0xe7, 0x4d,
  4347  	0xcd, 0x0a, 0x06, 0x95, 0xe0, 0x2c, 0x10, 0xa1, 0x9f, 0xbf, 0x46, 0x43, 0x28, 0x64, 0x15, 0xbc,
  4348  	0x5b, 0xaa, 0xf3, 0x43, 0x80, 0xf3, 0xd2, 0x00, 0x50, 0x47, 0x63, 0x25, 0x5a, 0xcf, 0x11, 0x8d,
  4349  	0xe5, 0x1c, 0x91, 0x41, 0xab, 0xe8, 0xf2, 0xda, 0x9c, 0xc6, 0xa5, 0x3f, 0xd7, 0x79, 0xa3, 0x0a,
  4350  	0x9b, 0x1f, 0x82, 0x9d, 0xc5, 0x17, 0x22, 0x0a, 0xbe, 0xa7, 0x3e, 0x06, 0x1e, 0x58, 0x22, 0xaa,
  4351  	0x3d, 0xcf, 0x76, 0xbd, 0xe7, 0x59, 0xb4, 0x8b, 0x4c, 0xb5, 0x9b, 0x6a, 0x17, 0x5d, 0xd3, 0xf9,
  4352  	0xc2, 0x67, 0xce, 0x13, 0x29, 0xd2, 0x2c, 0xcf, 0x41, 0x15, 0x54, 0xa4, 0x6b, 0xb6, 0xa6, 0x75,
  4353  	0xa3, 0xa9, 0xf3, 0x35, 0xf4, 0x72, 0xf6, 0x52, 0xff, 0xe8, 0x41, 0x91, 0xf1, 0x18, 0xa5, 0xe8,
  4354  	0x4a, 0x2e, 0x3c, 0x69, 0x0c, 0x8d, 0x3c, 0xe7, 0x71, 0xfe, 0xb3, 0x99, 0x2f, 0xd6, 0xdd, 0x94,
  4355  	0x37, 0xb3, 0xa8, 0x9e, 0x92, 0x36, 0x7e, 0xa3, 0x94, 0xf4, 0x67, 0x60, 0xfb, 0x94, 0x97, 0x05,
  4356  	0x97, 0x79, 0x58, 0x5a, 0x5d, 0xce, 0xc1, 0x74, 0xe6, 0x16, 0x5c, 0x0a, 0x5e, 0x12, 0xbf, 0x85,
  4357  	0xcd, 0x05, 0x33, 0xdb, 0xd7, 0x31, 0xd3, 0xfc, 0xed, 0x98, 0xc9, 0x3e, 0x82, 0x5e, 0x14, 0x47,
  4358  	0x93, 0x68, 0x1e, 0x86, 0x58, 0x72, 0xe8, 0x8e, 0x71, 0x37, 0x8a, 0xa3, 0x03, 0x8d, 0x62, 0x0f,
  4359  	0xe0, 0x9d, 0x2a, 0x89, 0xb2, 0xd9, 0xae, 0x6a, 0x38, 0x55, 0xe8, 0xc8, 0xb2, 0xd7, 0x61, 0x10,
  4360  	0x9f, 0xfe, 0x4a, 0x78, 0x19, 0x71, 0x6c, 0x42, 0xc6, 0xda, 0x53, 0xc9, 0x89, 0xc2, 0x23, 0x8b,
  4361  	0x0e, 0xdc, 0x99, 0x70, 0xbe, 0x02, 0xbb, 0x60, 0x42, 0x25, 0x19, 0xb4, 0xa1, 0xbd, 0x7b, 0xb0,
  4362  	0x33, 0xfa, 0xc3, 0x81, 0x81, 0x91, 0x8c, 0x8f, 0x5e, 0x8c, 0xf8, 0xf1, 0x68, 0xd0, 0xc0, 0x28,
  4363  	0xb3, 0x33, 0xda, 0x1b, 0x8d, 0x47, 0x83, 0xe6, 0x37, 0x2d, 0xab, 0x33, 0xb0, 0xa8, 0xa7, 0x12,
  4364  	0x06, 0x5e, 0x90, 0x39, 0xc7, 0x00, 0x65, 0xde, 0x8a, 0x3e, 0xb5, 0x3c, 0x5b, 0x49, 0xd4, 0xca,
  4365  	0xf4, 0xa9, 0x98, 0x1d, 0x6b, 0x73, 0x6a, 0xbc, 0x2e, 0x3b, 0x56, 0xf3, 0xce, 0x09, 0x58, 0xfb,
  4366  	0x6e, 0xf2, 0x4a, 0x35, 0xd9, 0x2b, 0x3a, 0x10, 0x73, 0xdd, 0x00, 0xd4, 0x29, 0xca, 0x3d, 0xe8,
  4367  	0x68, 0xb7, 0xae, 0x3d, 0x43, 0xcd, 0xe5, 0xe7, 0x73, 0xce, 0x9f, 0x19, 0x70, 0x6b, 0x3f, 0xbe,
  4368  	0x14, 0x45, 0x96, 0x76, 0xe4, 0x5e, 0x85, 0xb1, 0xeb, 0xbf, 0x45, 0x11, 0x7f, 0x0c, 0x20, 0xe3,
  4369  	0x79, 0xea, 0x89, 0xc9, 0xb4, 0xe8, 0x3b, 0xda, 0x0a, 0xf3, 0x4c, 0x7f, 0xe2, 0x10, 0x32, 0xa3,
  4370  	0x49, 0x1d, 0x0c, 0x11, 0xc6, 0xa9, 0x1f, 0x81, 0x99, 0x2d, 0xa2, 0xb2, 0xcd, 0xd9, 0xce, 0xb0,
  4371  	0xe2, 0x77, 0xb6, 0xc1, 0x1e, 0x2f, 0xa8, 0xc0, 0x9d, 0xcb, 0x5a, 0xde, 0x61, 0xbc, 0x21, 0xef,
  4372  	0x68, 0x2c, 0xe5, 0x1d, 0xff, 0x6b, 0x40, 0xb7, 0x92, 0x3e, 0xb2, 0x8f, 0xa0, 0x95, 0x2d, 0xa2,
  4373  	0xfa, 0xf7, 0x81, 0xfc, 0x10, 0x4e, 0x53, 0xa8, 0x6f, 0x58, 0xfd, 0xba, 0x52, 0x06, 0xd3, 0x48,
  4374  	0xf8, 0x7a, 0x4b, 0xac, 0x88, 0xb7, 0x34, 0x8a, 0xed, 0xc1, 0x4d, 0xe5, 0x2d, 0xf3, 0xde, 0x60,
  4375  	0x5e, 0xf3, 0x7c, 0xbc, 0x94, 0xae, 0xaa, 0x26, 0xc0, 0x76, 0x4e, 0xa5, 0xba, 0x21, 0x2b, 0xd3,
  4376  	0x1a, 0x72, 0x75, 0x0b, 0xde, 0xbd, 0x86, 0xec, 0x07, 0xb5, 0x7d, 0xee, 0x42, 0x7f, 0xbc, 0x88,
  4377  	0xc6, 0xc1, 0x4c, 0xc8, 0xcc, 0x9d, 0x25, 0x94, 0xb7, 0xe9, 0x68, 0xd7, 0xe2, 0x8d, 0x4c, 0x3a,
  4378  	0x9f, 0x42, 0xef, 0x48, 0x88, 0x94, 0x0b, 0x99, 0xc4, 0x91, 0xca, 0x59, 0x24, 0x3d, 0x5a, 0x87,
  4379  	0x56, 0x0d, 0x39, 0x7f, 0x04, 0x36, 0x16, 0x2b, 0x4f, 0xdc, 0xcc, 0x3b, 0xff, 0x21, 0xc5, 0xcc,
  4380  	0xa7, 0xd0, 0x49, 0x94, 0x9a, 0xe8, 0xfa, 0xa2, 0x47, 0x21, 0x56, 0xab, 0x0e, 0xcf, 0x27, 0x1d,
  4381  	0x0e, 0xcd, 0x83, 0xf9, 0xac, 0xfa, 0x51, 0xaf, 0xa5, 0x3e, 0xea, 0xd5, 0x4a, 0xf9, 0x46, 0xbd,
  4382  	0x94, 0x47, 0xcd, 0x3b, 0x8b, 0xd3, 0x3f, 0x71, 0x53, 0x5f, 0xf8, 0xda, 0xef, 0x97, 0x08, 0xe7,
  4383  	0x3b, 0xe8, 0xe6, 0x92, 0xd9, 0xf5, 0xa9, 0x7f, 0x49, 0xaa, 0xb1, 0xeb, 0xd7, 0x34, 0x45, 0xd5,
  4384  	0xdb, 0x22, 0xf2, 0x77, 0x73, 0x91, 0x2a, 0xa0, 0x7e, 0xb2, 0x6e, 0x3b, 0x15, 0x4d, 0x84, 0xa7,
  4385  	0xd0, 0xcb, 0x6b, 0x8a, 0x7d, 0x91, 0xb9, 0xa4, 0x6c, 0x61, 0x20, 0xa2, 0x8a, 0x22, 0x5a, 0x0a,
  4386  	0x31, 0x96, 0x6f, 0x68, 0xbc, 0x3b, 0x1b, 0x60, 0x6a, 0x4d, 0x66, 0xd0, 0xf2, 0x62, 0x5f, 0x19,
  4387  	0x50, 0x9b, 0xd3, 0x18, 0xd9, 0x31, 0x93, 0xd3, 0x3c, 0x41, 0x98, 0xc9, 0xa9, 0xf3, 0x2f, 0x0d,
  4388  	0xe8, 0x3f, 0x71, 0xbd, 0x8b, 0x79, 0x92, 0x47, 0xe8, 0x4a, 0x61, 0x68, 0xd4, 0x0a, 0xc3, 0x6a,
  4389  	0x11, 0xd8, 0xa8, 0x15, 0x81, 0xb5, 0x0b, 0x35, 0xeb, 0x51, 0xfd, 0x3d, 0xe8, 0xcc, 0xa3, 0x60,
  4390  	0x91, 0x5b, 0x9d, 0xcd, 0x4d, 0x04, 0xc7, 0x92, 0xad, 0x41, 0x17, 0x0d, 0x33, 0x88, 0xa8, 0x1c,
  4391  	0x24, 0x86, 0xd8, 0xbc, 0x8a, 0x42, 0x4b, 0x77, 0x3d, 0x4f, 0x48, 0x89, 0xb9, 0x99, 0x2e, 0x29,
  4392  	0x6c, 0x85, 0x79, 0x2e, 0xae, 0xc8, 0x11, 0x08, 0x2f, 0x15, 0xd9, 0xa4, 0x2c, 0xed, 0x6c, 0x85,
  4393  	0xc1, 0xe9, 0x8f, 0xa1, 0x2f, 0x85, 0x94, 0x41, 0x1c, 0x4d, 0x28, 0x72, 0xe8, 0x0a, 0xbc, 0xa7,
  4394  	0x91, 0x63, 0xc4, 0xa1, 0xc0, 0xdd, 0x28, 0x8e, 0xae, 0x66, 0xf1, 0x5c, 0xea, 0x60, 0x50, 0x22,
  4395  	0x96, 0x32, 0x12, 0x58, 0xce, 0x48, 0x9c, 0x0c, 0xfa, 0xa3, 0x45, 0x42, 0x9f, 0x6f, 0xde, 0x9a,
  4396  	0xdd, 0x54, 0xd8, 0xda, 0xa8, 0xb1, 0xb5, 0xc2, 0x20, 0xd5, 0x21, 0xcf, 0x19, 0x84, 0xf9, 0x4e,
  4397  	0x9c, 0xce, 0xdc, 0x2c, 0x67, 0x9c, 0x82, 0x9c, 0xbf, 0x6a, 0x80, 0xad, 0x44, 0x86, 0xcf, 0xfc,
  4398  	0x4c, 0xa7, 0x2e, 0x06, 0x85, 0xd7, 0x1f, 0xa1, 0xe1, 0x14, 0x93, 0x1b, 0xcf, 0xc5, 0x15, 0xc5,
  4399  	0x64, 0x95, 0xd1, 0x5c, 0xd7, 0x7f, 0xd2, 0xde, 0x5b, 0x25, 0xdc, 0xe4, 0xbd, 0x3f, 0x00, 0x5b,
  4400  	0x79, 0x40, 0xc4, 0xeb, 0x4f, 0x13, 0x84, 0x38, 0x09, 0xe8, 0xbb, 0x4e, 0x26, 0xd2, 0x99, 0x96,
  4401  	0x16, 0x8d, 0xeb, 0xa9, 0x4d, 0x5f, 0x47, 0x63, 0xe7, 0x1c, 0x3a, 0xfa, 0x74, 0x8c, 0x5e, 0x27,
  4402  	0x07, 0xcf, 0x0f, 0x0e, 0xbf, 0x3d, 0x18, 0xdc, 0x28, 0x3a, 0x1b, 0x46, 0x19, 0xdf, 0x1a, 0xd5,
  4403  	0xf8, 0xd6, 0x44, 0xfc, 0xf6, 0xe1, 0xc9, 0xc1, 0x78, 0xd0, 0x62, 0x7d, 0xb0, 0x69, 0x38, 0xe1,
  4404  	0xa3, 0x17, 0x83, 0x36, 0xd5, 0x5a, 0xdb, 0x3f, 0x1f, 0xed, 0x6f, 0x0d, 0xcc, 0xa2, 0x2f, 0xd2,
  4405  	0xc1, 0x38, 0xf2, 0x8e, 0x7a, 0x72, 0xb5, 0x32, 0xa9, 0x7e, 0xef, 0x6f, 0xa9, 0xef, 0xfd, 0xbf,
  4406  	0xdb, 0x62, 0x64, 0xf3, 0x5f, 0x0d, 0x68, 0xa1, 0xcf, 0x62, 0x9f, 0x83, 0xfd, 0x73, 0xe1, 0xa6,
  4407  	0xd9, 0xa9, 0x70, 0x33, 0x56, 0xf3, 0x4f, 0xab, 0x35, 0xc8, 0xb9, 0xf1, 0xd8, 0x60, 0x1b, 0xea,
  4408  	0x4b, 0x5e, 0xfe, 0x81, 0xb2, 0x9f, 0x7b, 0x3e, 0xf2, 0x8c, 0xcb, 0xf4, 0xeb, 0x44, 0xff, 0x4d,
  4409  	0x1c, 0x44, 0xdb, 0xea, 0xf3, 0x16, 0x5b, 0xf6, 0x94, 0xcb, 0x2b, 0xd8, 0x43, 0x30, 0x77, 0x25,
  4410  	0xba, 0xe4, 0x57, 0x49, 0x29, 0xe2, 0x57, 0xbd, 0xb5, 0x73, 0x63, 0xf3, 0x9f, 0x9a, 0xd0, 0xfa,
  4411  	0x4e, 0xa4, 0x31, 0xfb, 0x09, 0x74, 0x74, 0xf7, 0x97, 0x55, 0xba, 0xbc, 0xab, 0x94, 0xf2, 0x2d,
  4412  	0xb5, 0x85, 0xe9, 0x94, 0x81, 0x4a, 0x1a, 0xca, 0x46, 0x0d, 0x2b, 0x9b, 0xd3, 0xaf, 0x5c, 0xea,
  4413  	0x2b, 0x18, 0x1c, 0x67, 0xa9, 0x70, 0x67, 0x15, 0xf2, 0x3a, 0xa3, 0xae, 0xeb, 0xfa, 0x10, 0xbf,
  4414  	0x3e, 0x07, 0x53, 0xc5, 0xbd, 0xa5, 0x05, 0xcb, 0x0d, 0x1c, 0x22, 0xbe, 0x0f, 0xdd, 0xe3, 0xf3,
  4415  	0x78, 0x1e, 0xfa, 0xc7, 0x22, 0xbd, 0x14, 0xac, 0xf2, 0x3d, 0x67, 0xb5, 0x32, 0x76, 0x6e, 0xb0,
  4416  	0x75, 0x00, 0xe5, 0xda, 0xb1, 0x6a, 0x66, 0x1d, 0x9c, 0x3b, 0x98, 0xcf, 0xd4, 0xa6, 0x15, 0x9f,
  4417  	0xaf, 0x28, 0x2b, 0xe1, 0xef, 0x4d, 0x94, 0x5f, 0x42, 0x7f, 0x9b, 0x74, 0xe6, 0x30, 0xdd, 0x3a,
  4418  	0x8d, 0xd3, 0x8c, 0x2d, 0x7f, 0xd3, 0x59, 0x5d, 0x46, 0x38, 0x37, 0xd8, 0x63, 0xb0, 0xc6, 0xe9,
  4419  	0x95, 0xa2, 0x7f, 0x47, 0x67, 0x0d, 0xe5, 0x79, 0xd7, 0xbc, 0x72, 0xf3, 0x1f, 0x9a, 0x60, 0x7e,
  4420  	0x1b, 0xa7, 0x17, 0x22, 0xc5, 0xf4, 0x9f, 0x3a, 0x6d, 0x5a, 0x8d, 0x8a, 0xae, 0xdb, 0x75, 0x07,
  4421  	0x7d, 0x02, 0x36, 0x31, 0x65, 0xec, 0xca, 0x0b, 0x25, 0x2a, 0xfa, 0xa7, 0x89, 0xe2, 0x8b, 0x2a,
  4422  	0x27, 0x48, 0xae, 0x2b, 0x4a, 0x50, 0x45, 0xe3, 0xb1, 0xd6, 0xfe, 0x5a, 0xed, 0xa8, 0x5e, 0xd6,
  4423  	0x31, 0xaa, 0xe6, 0x63, 0x03, 0x9d, 0xd1, 0xb1, 0x7a, 0x29, 0x12, 0x95, 0xdf, 0xdd, 0x57, 0x57,
  4424  	0x72, 0x44, 0xb1, 0xf3, 0x23, 0x30, 0x55, 0xb2, 0xa9, 0x9e, 0x59, 0xab, 0x12, 0x57, 0x07, 0x55,
  4425  	0x94, 0x5e, 0xf0, 0x19, 0x98, 0xca, 0xca, 0xd5, 0x82, 0x5a, 0xd0, 0x52, 0xb7, 0x56, 0x81, 0x4f,
  4426  	0x91, 0x2a, 0xbf, 0xac, 0x48, 0x6b, 0x3e, 0x7a, 0x89, 0xf4, 0x21, 0x0c, 0xb8, 0xf0, 0x44, 0x50,
  4427  	0x49, 0x43, 0x59, 0xfe, 0xa8, 0x6b, 0xac, 0xef, 0x2b, 0xe8, 0xd7, 0x52, 0x56, 0x36, 0x24, 0x46,
  4428  	0x5f, 0x93, 0xc5, 0x2e, 0x2f, 0x7e, 0x32, 0xf8, 0xf7, 0x97, 0x77, 0x8c, 0xff, 0x78, 0x79, 0xc7,
  4429  	0xf8, 0xef, 0x97, 0x77, 0x8c, 0x5f, 0xff, 0xcf, 0x9d, 0x1b, 0xa7, 0x26, 0xfd, 0x43, 0xe9, 0xcb,
  4430  	0xff, 0x0f, 0x00, 0x00, 0xff, 0xff, 0x66, 0x2a, 0xe8, 0x04, 0xe5, 0x24, 0x00, 0x00,
  4431  }
  4432  
  4433  // Reference imports to suppress errors if they are not otherwise used.
  4434  var _ context.Context
  4435  var _ grpc.ClientConn
  4436  
  4437  // This is a compile-time assertion to ensure that this generated file
  4438  // is compatible with the grpc package it is being compiled against.
  4439  const _ = grpc.SupportPackageIsVersion4
  4440  
  4441  // RaftClient is the client API for Raft service.
  4442  //
  4443  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  4444  type RaftClient interface {
  4445  	Heartbeat(ctx context.Context, in *api.Payload, opts ...grpc.CallOption) (Raft_HeartbeatClient, error)
  4446  	RaftMessage(ctx context.Context, opts ...grpc.CallOption) (Raft_RaftMessageClient, error)
  4447  	JoinCluster(ctx context.Context, in *RaftContext, opts ...grpc.CallOption) (*api.Payload, error)
  4448  	IsPeer(ctx context.Context, in *RaftContext, opts ...grpc.CallOption) (*PeerResponse, error)
  4449  }
  4450  
  4451  type raftClient struct {
  4452  	cc *grpc.ClientConn
  4453  }
  4454  
  4455  func NewRaftClient(cc *grpc.ClientConn) RaftClient {
  4456  	return &raftClient{cc}
  4457  }
  4458  
  4459  func (c *raftClient) Heartbeat(ctx context.Context, in *api.Payload, opts ...grpc.CallOption) (Raft_HeartbeatClient, error) {
  4460  	stream, err := c.cc.NewStream(ctx, &_Raft_serviceDesc.Streams[0], "/pb.Raft/Heartbeat", opts...)
  4461  	if err != nil {
  4462  		return nil, err
  4463  	}
  4464  	x := &raftHeartbeatClient{stream}
  4465  	if err := x.ClientStream.SendMsg(in); err != nil {
  4466  		return nil, err
  4467  	}
  4468  	if err := x.ClientStream.CloseSend(); err != nil {
  4469  		return nil, err
  4470  	}
  4471  	return x, nil
  4472  }
  4473  
  4474  type Raft_HeartbeatClient interface {
  4475  	Recv() (*api.Payload, error)
  4476  	grpc.ClientStream
  4477  }
  4478  
  4479  type raftHeartbeatClient struct {
  4480  	grpc.ClientStream
  4481  }
  4482  
  4483  func (x *raftHeartbeatClient) Recv() (*api.Payload, error) {
  4484  	m := new(api.Payload)
  4485  	if err := x.ClientStream.RecvMsg(m); err != nil {
  4486  		return nil, err
  4487  	}
  4488  	return m, nil
  4489  }
  4490  
  4491  func (c *raftClient) RaftMessage(ctx context.Context, opts ...grpc.CallOption) (Raft_RaftMessageClient, error) {
  4492  	stream, err := c.cc.NewStream(ctx, &_Raft_serviceDesc.Streams[1], "/pb.Raft/RaftMessage", opts...)
  4493  	if err != nil {
  4494  		return nil, err
  4495  	}
  4496  	x := &raftRaftMessageClient{stream}
  4497  	return x, nil
  4498  }
  4499  
  4500  type Raft_RaftMessageClient interface {
  4501  	Send(*RaftBatch) error
  4502  	CloseAndRecv() (*api.Payload, error)
  4503  	grpc.ClientStream
  4504  }
  4505  
  4506  type raftRaftMessageClient struct {
  4507  	grpc.ClientStream
  4508  }
  4509  
  4510  func (x *raftRaftMessageClient) Send(m *RaftBatch) error {
  4511  	return x.ClientStream.SendMsg(m)
  4512  }
  4513  
  4514  func (x *raftRaftMessageClient) CloseAndRecv() (*api.Payload, error) {
  4515  	if err := x.ClientStream.CloseSend(); err != nil {
  4516  		return nil, err
  4517  	}
  4518  	m := new(api.Payload)
  4519  	if err := x.ClientStream.RecvMsg(m); err != nil {
  4520  		return nil, err
  4521  	}
  4522  	return m, nil
  4523  }
  4524  
  4525  func (c *raftClient) JoinCluster(ctx context.Context, in *RaftContext, opts ...grpc.CallOption) (*api.Payload, error) {
  4526  	out := new(api.Payload)
  4527  	err := c.cc.Invoke(ctx, "/pb.Raft/JoinCluster", in, out, opts...)
  4528  	if err != nil {
  4529  		return nil, err
  4530  	}
  4531  	return out, nil
  4532  }
  4533  
  4534  func (c *raftClient) IsPeer(ctx context.Context, in *RaftContext, opts ...grpc.CallOption) (*PeerResponse, error) {
  4535  	out := new(PeerResponse)
  4536  	err := c.cc.Invoke(ctx, "/pb.Raft/IsPeer", in, out, opts...)
  4537  	if err != nil {
  4538  		return nil, err
  4539  	}
  4540  	return out, nil
  4541  }
  4542  
  4543  // RaftServer is the server API for Raft service.
  4544  type RaftServer interface {
  4545  	Heartbeat(*api.Payload, Raft_HeartbeatServer) error
  4546  	RaftMessage(Raft_RaftMessageServer) error
  4547  	JoinCluster(context.Context, *RaftContext) (*api.Payload, error)
  4548  	IsPeer(context.Context, *RaftContext) (*PeerResponse, error)
  4549  }
  4550  
  4551  // UnimplementedRaftServer can be embedded to have forward compatible implementations.
  4552  type UnimplementedRaftServer struct {
  4553  }
  4554  
  4555  func (*UnimplementedRaftServer) Heartbeat(req *api.Payload, srv Raft_HeartbeatServer) error {
  4556  	return status.Errorf(codes.Unimplemented, "method Heartbeat not implemented")
  4557  }
  4558  func (*UnimplementedRaftServer) RaftMessage(srv Raft_RaftMessageServer) error {
  4559  	return status.Errorf(codes.Unimplemented, "method RaftMessage not implemented")
  4560  }
  4561  func (*UnimplementedRaftServer) JoinCluster(ctx context.Context, req *RaftContext) (*api.Payload, error) {
  4562  	return nil, status.Errorf(codes.Unimplemented, "method JoinCluster not implemented")
  4563  }
  4564  func (*UnimplementedRaftServer) IsPeer(ctx context.Context, req *RaftContext) (*PeerResponse, error) {
  4565  	return nil, status.Errorf(codes.Unimplemented, "method IsPeer not implemented")
  4566  }
  4567  
  4568  func RegisterRaftServer(s *grpc.Server, srv RaftServer) {
  4569  	s.RegisterService(&_Raft_serviceDesc, srv)
  4570  }
  4571  
  4572  func _Raft_Heartbeat_Handler(srv interface{}, stream grpc.ServerStream) error {
  4573  	m := new(api.Payload)
  4574  	if err := stream.RecvMsg(m); err != nil {
  4575  		return err
  4576  	}
  4577  	return srv.(RaftServer).Heartbeat(m, &raftHeartbeatServer{stream})
  4578  }
  4579  
  4580  type Raft_HeartbeatServer interface {
  4581  	Send(*api.Payload) error
  4582  	grpc.ServerStream
  4583  }
  4584  
  4585  type raftHeartbeatServer struct {
  4586  	grpc.ServerStream
  4587  }
  4588  
  4589  func (x *raftHeartbeatServer) Send(m *api.Payload) error {
  4590  	return x.ServerStream.SendMsg(m)
  4591  }
  4592  
  4593  func _Raft_RaftMessage_Handler(srv interface{}, stream grpc.ServerStream) error {
  4594  	return srv.(RaftServer).RaftMessage(&raftRaftMessageServer{stream})
  4595  }
  4596  
  4597  type Raft_RaftMessageServer interface {
  4598  	SendAndClose(*api.Payload) error
  4599  	Recv() (*RaftBatch, error)
  4600  	grpc.ServerStream
  4601  }
  4602  
  4603  type raftRaftMessageServer struct {
  4604  	grpc.ServerStream
  4605  }
  4606  
  4607  func (x *raftRaftMessageServer) SendAndClose(m *api.Payload) error {
  4608  	return x.ServerStream.SendMsg(m)
  4609  }
  4610  
  4611  func (x *raftRaftMessageServer) Recv() (*RaftBatch, error) {
  4612  	m := new(RaftBatch)
  4613  	if err := x.ServerStream.RecvMsg(m); err != nil {
  4614  		return nil, err
  4615  	}
  4616  	return m, nil
  4617  }
  4618  
  4619  func _Raft_JoinCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4620  	in := new(RaftContext)
  4621  	if err := dec(in); err != nil {
  4622  		return nil, err
  4623  	}
  4624  	if interceptor == nil {
  4625  		return srv.(RaftServer).JoinCluster(ctx, in)
  4626  	}
  4627  	info := &grpc.UnaryServerInfo{
  4628  		Server:     srv,
  4629  		FullMethod: "/pb.Raft/JoinCluster",
  4630  	}
  4631  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4632  		return srv.(RaftServer).JoinCluster(ctx, req.(*RaftContext))
  4633  	}
  4634  	return interceptor(ctx, in, info, handler)
  4635  }
  4636  
  4637  func _Raft_IsPeer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4638  	in := new(RaftContext)
  4639  	if err := dec(in); err != nil {
  4640  		return nil, err
  4641  	}
  4642  	if interceptor == nil {
  4643  		return srv.(RaftServer).IsPeer(ctx, in)
  4644  	}
  4645  	info := &grpc.UnaryServerInfo{
  4646  		Server:     srv,
  4647  		FullMethod: "/pb.Raft/IsPeer",
  4648  	}
  4649  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4650  		return srv.(RaftServer).IsPeer(ctx, req.(*RaftContext))
  4651  	}
  4652  	return interceptor(ctx, in, info, handler)
  4653  }
  4654  
  4655  var _Raft_serviceDesc = grpc.ServiceDesc{
  4656  	ServiceName: "pb.Raft",
  4657  	HandlerType: (*RaftServer)(nil),
  4658  	Methods: []grpc.MethodDesc{
  4659  		{
  4660  			MethodName: "JoinCluster",
  4661  			Handler:    _Raft_JoinCluster_Handler,
  4662  		},
  4663  		{
  4664  			MethodName: "IsPeer",
  4665  			Handler:    _Raft_IsPeer_Handler,
  4666  		},
  4667  	},
  4668  	Streams: []grpc.StreamDesc{
  4669  		{
  4670  			StreamName:    "Heartbeat",
  4671  			Handler:       _Raft_Heartbeat_Handler,
  4672  			ServerStreams: true,
  4673  		},
  4674  		{
  4675  			StreamName:    "RaftMessage",
  4676  			Handler:       _Raft_RaftMessage_Handler,
  4677  			ClientStreams: true,
  4678  		},
  4679  	},
  4680  	Metadata: "pb.proto",
  4681  }
  4682  
  4683  // ZeroClient is the client API for Zero service.
  4684  //
  4685  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  4686  type ZeroClient interface {
  4687  	// These 3 endpoints are for handling membership.
  4688  	Connect(ctx context.Context, in *Member, opts ...grpc.CallOption) (*ConnectionState, error)
  4689  	UpdateMembership(ctx context.Context, in *Group, opts ...grpc.CallOption) (*api.Payload, error)
  4690  	StreamMembership(ctx context.Context, in *api.Payload, opts ...grpc.CallOption) (Zero_StreamMembershipClient, error)
  4691  	Oracle(ctx context.Context, in *api.Payload, opts ...grpc.CallOption) (Zero_OracleClient, error)
  4692  	ShouldServe(ctx context.Context, in *Tablet, opts ...grpc.CallOption) (*Tablet, error)
  4693  	AssignUids(ctx context.Context, in *Num, opts ...grpc.CallOption) (*AssignedIds, error)
  4694  	Timestamps(ctx context.Context, in *Num, opts ...grpc.CallOption) (*AssignedIds, error)
  4695  	CommitOrAbort(ctx context.Context, in *api.TxnContext, opts ...grpc.CallOption) (*api.TxnContext, error)
  4696  	TryAbort(ctx context.Context, in *TxnTimestamps, opts ...grpc.CallOption) (*OracleDelta, error)
  4697  }
  4698  
  4699  type zeroClient struct {
  4700  	cc *grpc.ClientConn
  4701  }
  4702  
  4703  func NewZeroClient(cc *grpc.ClientConn) ZeroClient {
  4704  	return &zeroClient{cc}
  4705  }
  4706  
  4707  func (c *zeroClient) Connect(ctx context.Context, in *Member, opts ...grpc.CallOption) (*ConnectionState, error) {
  4708  	out := new(ConnectionState)
  4709  	err := c.cc.Invoke(ctx, "/pb.Zero/Connect", in, out, opts...)
  4710  	if err != nil {
  4711  		return nil, err
  4712  	}
  4713  	return out, nil
  4714  }
  4715  
  4716  func (c *zeroClient) UpdateMembership(ctx context.Context, in *Group, opts ...grpc.CallOption) (*api.Payload, error) {
  4717  	out := new(api.Payload)
  4718  	err := c.cc.Invoke(ctx, "/pb.Zero/UpdateMembership", in, out, opts...)
  4719  	if err != nil {
  4720  		return nil, err
  4721  	}
  4722  	return out, nil
  4723  }
  4724  
  4725  func (c *zeroClient) StreamMembership(ctx context.Context, in *api.Payload, opts ...grpc.CallOption) (Zero_StreamMembershipClient, error) {
  4726  	stream, err := c.cc.NewStream(ctx, &_Zero_serviceDesc.Streams[0], "/pb.Zero/StreamMembership", opts...)
  4727  	if err != nil {
  4728  		return nil, err
  4729  	}
  4730  	x := &zeroStreamMembershipClient{stream}
  4731  	if err := x.ClientStream.SendMsg(in); err != nil {
  4732  		return nil, err
  4733  	}
  4734  	if err := x.ClientStream.CloseSend(); err != nil {
  4735  		return nil, err
  4736  	}
  4737  	return x, nil
  4738  }
  4739  
  4740  type Zero_StreamMembershipClient interface {
  4741  	Recv() (*MembershipState, error)
  4742  	grpc.ClientStream
  4743  }
  4744  
  4745  type zeroStreamMembershipClient struct {
  4746  	grpc.ClientStream
  4747  }
  4748  
  4749  func (x *zeroStreamMembershipClient) Recv() (*MembershipState, error) {
  4750  	m := new(MembershipState)
  4751  	if err := x.ClientStream.RecvMsg(m); err != nil {
  4752  		return nil, err
  4753  	}
  4754  	return m, nil
  4755  }
  4756  
  4757  func (c *zeroClient) Oracle(ctx context.Context, in *api.Payload, opts ...grpc.CallOption) (Zero_OracleClient, error) {
  4758  	stream, err := c.cc.NewStream(ctx, &_Zero_serviceDesc.Streams[1], "/pb.Zero/Oracle", opts...)
  4759  	if err != nil {
  4760  		return nil, err
  4761  	}
  4762  	x := &zeroOracleClient{stream}
  4763  	if err := x.ClientStream.SendMsg(in); err != nil {
  4764  		return nil, err
  4765  	}
  4766  	if err := x.ClientStream.CloseSend(); err != nil {
  4767  		return nil, err
  4768  	}
  4769  	return x, nil
  4770  }
  4771  
  4772  type Zero_OracleClient interface {
  4773  	Recv() (*OracleDelta, error)
  4774  	grpc.ClientStream
  4775  }
  4776  
  4777  type zeroOracleClient struct {
  4778  	grpc.ClientStream
  4779  }
  4780  
  4781  func (x *zeroOracleClient) Recv() (*OracleDelta, error) {
  4782  	m := new(OracleDelta)
  4783  	if err := x.ClientStream.RecvMsg(m); err != nil {
  4784  		return nil, err
  4785  	}
  4786  	return m, nil
  4787  }
  4788  
  4789  func (c *zeroClient) ShouldServe(ctx context.Context, in *Tablet, opts ...grpc.CallOption) (*Tablet, error) {
  4790  	out := new(Tablet)
  4791  	err := c.cc.Invoke(ctx, "/pb.Zero/ShouldServe", in, out, opts...)
  4792  	if err != nil {
  4793  		return nil, err
  4794  	}
  4795  	return out, nil
  4796  }
  4797  
  4798  func (c *zeroClient) AssignUids(ctx context.Context, in *Num, opts ...grpc.CallOption) (*AssignedIds, error) {
  4799  	out := new(AssignedIds)
  4800  	err := c.cc.Invoke(ctx, "/pb.Zero/AssignUids", in, out, opts...)
  4801  	if err != nil {
  4802  		return nil, err
  4803  	}
  4804  	return out, nil
  4805  }
  4806  
  4807  func (c *zeroClient) Timestamps(ctx context.Context, in *Num, opts ...grpc.CallOption) (*AssignedIds, error) {
  4808  	out := new(AssignedIds)
  4809  	err := c.cc.Invoke(ctx, "/pb.Zero/Timestamps", in, out, opts...)
  4810  	if err != nil {
  4811  		return nil, err
  4812  	}
  4813  	return out, nil
  4814  }
  4815  
  4816  func (c *zeroClient) CommitOrAbort(ctx context.Context, in *api.TxnContext, opts ...grpc.CallOption) (*api.TxnContext, error) {
  4817  	out := new(api.TxnContext)
  4818  	err := c.cc.Invoke(ctx, "/pb.Zero/CommitOrAbort", in, out, opts...)
  4819  	if err != nil {
  4820  		return nil, err
  4821  	}
  4822  	return out, nil
  4823  }
  4824  
  4825  func (c *zeroClient) TryAbort(ctx context.Context, in *TxnTimestamps, opts ...grpc.CallOption) (*OracleDelta, error) {
  4826  	out := new(OracleDelta)
  4827  	err := c.cc.Invoke(ctx, "/pb.Zero/TryAbort", in, out, opts...)
  4828  	if err != nil {
  4829  		return nil, err
  4830  	}
  4831  	return out, nil
  4832  }
  4833  
  4834  // ZeroServer is the server API for Zero service.
  4835  type ZeroServer interface {
  4836  	// These 3 endpoints are for handling membership.
  4837  	Connect(context.Context, *Member) (*ConnectionState, error)
  4838  	UpdateMembership(context.Context, *Group) (*api.Payload, error)
  4839  	StreamMembership(*api.Payload, Zero_StreamMembershipServer) error
  4840  	Oracle(*api.Payload, Zero_OracleServer) error
  4841  	ShouldServe(context.Context, *Tablet) (*Tablet, error)
  4842  	AssignUids(context.Context, *Num) (*AssignedIds, error)
  4843  	Timestamps(context.Context, *Num) (*AssignedIds, error)
  4844  	CommitOrAbort(context.Context, *api.TxnContext) (*api.TxnContext, error)
  4845  	TryAbort(context.Context, *TxnTimestamps) (*OracleDelta, error)
  4846  }
  4847  
  4848  // UnimplementedZeroServer can be embedded to have forward compatible implementations.
  4849  type UnimplementedZeroServer struct {
  4850  }
  4851  
  4852  func (*UnimplementedZeroServer) Connect(ctx context.Context, req *Member) (*ConnectionState, error) {
  4853  	return nil, status.Errorf(codes.Unimplemented, "method Connect not implemented")
  4854  }
  4855  func (*UnimplementedZeroServer) UpdateMembership(ctx context.Context, req *Group) (*api.Payload, error) {
  4856  	return nil, status.Errorf(codes.Unimplemented, "method UpdateMembership not implemented")
  4857  }
  4858  func (*UnimplementedZeroServer) StreamMembership(req *api.Payload, srv Zero_StreamMembershipServer) error {
  4859  	return status.Errorf(codes.Unimplemented, "method StreamMembership not implemented")
  4860  }
  4861  func (*UnimplementedZeroServer) Oracle(req *api.Payload, srv Zero_OracleServer) error {
  4862  	return status.Errorf(codes.Unimplemented, "method Oracle not implemented")
  4863  }
  4864  func (*UnimplementedZeroServer) ShouldServe(ctx context.Context, req *Tablet) (*Tablet, error) {
  4865  	return nil, status.Errorf(codes.Unimplemented, "method ShouldServe not implemented")
  4866  }
  4867  func (*UnimplementedZeroServer) AssignUids(ctx context.Context, req *Num) (*AssignedIds, error) {
  4868  	return nil, status.Errorf(codes.Unimplemented, "method AssignUids not implemented")
  4869  }
  4870  func (*UnimplementedZeroServer) Timestamps(ctx context.Context, req *Num) (*AssignedIds, error) {
  4871  	return nil, status.Errorf(codes.Unimplemented, "method Timestamps not implemented")
  4872  }
  4873  func (*UnimplementedZeroServer) CommitOrAbort(ctx context.Context, req *api.TxnContext) (*api.TxnContext, error) {
  4874  	return nil, status.Errorf(codes.Unimplemented, "method CommitOrAbort not implemented")
  4875  }
  4876  func (*UnimplementedZeroServer) TryAbort(ctx context.Context, req *TxnTimestamps) (*OracleDelta, error) {
  4877  	return nil, status.Errorf(codes.Unimplemented, "method TryAbort not implemented")
  4878  }
  4879  
  4880  func RegisterZeroServer(s *grpc.Server, srv ZeroServer) {
  4881  	s.RegisterService(&_Zero_serviceDesc, srv)
  4882  }
  4883  
  4884  func _Zero_Connect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4885  	in := new(Member)
  4886  	if err := dec(in); err != nil {
  4887  		return nil, err
  4888  	}
  4889  	if interceptor == nil {
  4890  		return srv.(ZeroServer).Connect(ctx, in)
  4891  	}
  4892  	info := &grpc.UnaryServerInfo{
  4893  		Server:     srv,
  4894  		FullMethod: "/pb.Zero/Connect",
  4895  	}
  4896  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4897  		return srv.(ZeroServer).Connect(ctx, req.(*Member))
  4898  	}
  4899  	return interceptor(ctx, in, info, handler)
  4900  }
  4901  
  4902  func _Zero_UpdateMembership_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4903  	in := new(Group)
  4904  	if err := dec(in); err != nil {
  4905  		return nil, err
  4906  	}
  4907  	if interceptor == nil {
  4908  		return srv.(ZeroServer).UpdateMembership(ctx, in)
  4909  	}
  4910  	info := &grpc.UnaryServerInfo{
  4911  		Server:     srv,
  4912  		FullMethod: "/pb.Zero/UpdateMembership",
  4913  	}
  4914  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4915  		return srv.(ZeroServer).UpdateMembership(ctx, req.(*Group))
  4916  	}
  4917  	return interceptor(ctx, in, info, handler)
  4918  }
  4919  
  4920  func _Zero_StreamMembership_Handler(srv interface{}, stream grpc.ServerStream) error {
  4921  	m := new(api.Payload)
  4922  	if err := stream.RecvMsg(m); err != nil {
  4923  		return err
  4924  	}
  4925  	return srv.(ZeroServer).StreamMembership(m, &zeroStreamMembershipServer{stream})
  4926  }
  4927  
  4928  type Zero_StreamMembershipServer interface {
  4929  	Send(*MembershipState) error
  4930  	grpc.ServerStream
  4931  }
  4932  
  4933  type zeroStreamMembershipServer struct {
  4934  	grpc.ServerStream
  4935  }
  4936  
  4937  func (x *zeroStreamMembershipServer) Send(m *MembershipState) error {
  4938  	return x.ServerStream.SendMsg(m)
  4939  }
  4940  
  4941  func _Zero_Oracle_Handler(srv interface{}, stream grpc.ServerStream) error {
  4942  	m := new(api.Payload)
  4943  	if err := stream.RecvMsg(m); err != nil {
  4944  		return err
  4945  	}
  4946  	return srv.(ZeroServer).Oracle(m, &zeroOracleServer{stream})
  4947  }
  4948  
  4949  type Zero_OracleServer interface {
  4950  	Send(*OracleDelta) error
  4951  	grpc.ServerStream
  4952  }
  4953  
  4954  type zeroOracleServer struct {
  4955  	grpc.ServerStream
  4956  }
  4957  
  4958  func (x *zeroOracleServer) Send(m *OracleDelta) error {
  4959  	return x.ServerStream.SendMsg(m)
  4960  }
  4961  
  4962  func _Zero_ShouldServe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4963  	in := new(Tablet)
  4964  	if err := dec(in); err != nil {
  4965  		return nil, err
  4966  	}
  4967  	if interceptor == nil {
  4968  		return srv.(ZeroServer).ShouldServe(ctx, in)
  4969  	}
  4970  	info := &grpc.UnaryServerInfo{
  4971  		Server:     srv,
  4972  		FullMethod: "/pb.Zero/ShouldServe",
  4973  	}
  4974  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4975  		return srv.(ZeroServer).ShouldServe(ctx, req.(*Tablet))
  4976  	}
  4977  	return interceptor(ctx, in, info, handler)
  4978  }
  4979  
  4980  func _Zero_AssignUids_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4981  	in := new(Num)
  4982  	if err := dec(in); err != nil {
  4983  		return nil, err
  4984  	}
  4985  	if interceptor == nil {
  4986  		return srv.(ZeroServer).AssignUids(ctx, in)
  4987  	}
  4988  	info := &grpc.UnaryServerInfo{
  4989  		Server:     srv,
  4990  		FullMethod: "/pb.Zero/AssignUids",
  4991  	}
  4992  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4993  		return srv.(ZeroServer).AssignUids(ctx, req.(*Num))
  4994  	}
  4995  	return interceptor(ctx, in, info, handler)
  4996  }
  4997  
  4998  func _Zero_Timestamps_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4999  	in := new(Num)
  5000  	if err := dec(in); err != nil {
  5001  		return nil, err
  5002  	}
  5003  	if interceptor == nil {
  5004  		return srv.(ZeroServer).Timestamps(ctx, in)
  5005  	}
  5006  	info := &grpc.UnaryServerInfo{
  5007  		Server:     srv,
  5008  		FullMethod: "/pb.Zero/Timestamps",
  5009  	}
  5010  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5011  		return srv.(ZeroServer).Timestamps(ctx, req.(*Num))
  5012  	}
  5013  	return interceptor(ctx, in, info, handler)
  5014  }
  5015  
  5016  func _Zero_CommitOrAbort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5017  	in := new(api.TxnContext)
  5018  	if err := dec(in); err != nil {
  5019  		return nil, err
  5020  	}
  5021  	if interceptor == nil {
  5022  		return srv.(ZeroServer).CommitOrAbort(ctx, in)
  5023  	}
  5024  	info := &grpc.UnaryServerInfo{
  5025  		Server:     srv,
  5026  		FullMethod: "/pb.Zero/CommitOrAbort",
  5027  	}
  5028  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5029  		return srv.(ZeroServer).CommitOrAbort(ctx, req.(*api.TxnContext))
  5030  	}
  5031  	return interceptor(ctx, in, info, handler)
  5032  }
  5033  
  5034  func _Zero_TryAbort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5035  	in := new(TxnTimestamps)
  5036  	if err := dec(in); err != nil {
  5037  		return nil, err
  5038  	}
  5039  	if interceptor == nil {
  5040  		return srv.(ZeroServer).TryAbort(ctx, in)
  5041  	}
  5042  	info := &grpc.UnaryServerInfo{
  5043  		Server:     srv,
  5044  		FullMethod: "/pb.Zero/TryAbort",
  5045  	}
  5046  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5047  		return srv.(ZeroServer).TryAbort(ctx, req.(*TxnTimestamps))
  5048  	}
  5049  	return interceptor(ctx, in, info, handler)
  5050  }
  5051  
  5052  var _Zero_serviceDesc = grpc.ServiceDesc{
  5053  	ServiceName: "pb.Zero",
  5054  	HandlerType: (*ZeroServer)(nil),
  5055  	Methods: []grpc.MethodDesc{
  5056  		{
  5057  			MethodName: "Connect",
  5058  			Handler:    _Zero_Connect_Handler,
  5059  		},
  5060  		{
  5061  			MethodName: "UpdateMembership",
  5062  			Handler:    _Zero_UpdateMembership_Handler,
  5063  		},
  5064  		{
  5065  			MethodName: "ShouldServe",
  5066  			Handler:    _Zero_ShouldServe_Handler,
  5067  		},
  5068  		{
  5069  			MethodName: "AssignUids",
  5070  			Handler:    _Zero_AssignUids_Handler,
  5071  		},
  5072  		{
  5073  			MethodName: "Timestamps",
  5074  			Handler:    _Zero_Timestamps_Handler,
  5075  		},
  5076  		{
  5077  			MethodName: "CommitOrAbort",
  5078  			Handler:    _Zero_CommitOrAbort_Handler,
  5079  		},
  5080  		{
  5081  			MethodName: "TryAbort",
  5082  			Handler:    _Zero_TryAbort_Handler,
  5083  		},
  5084  	},
  5085  	Streams: []grpc.StreamDesc{
  5086  		{
  5087  			StreamName:    "StreamMembership",
  5088  			Handler:       _Zero_StreamMembership_Handler,
  5089  			ServerStreams: true,
  5090  		},
  5091  		{
  5092  			StreamName:    "Oracle",
  5093  			Handler:       _Zero_Oracle_Handler,
  5094  			ServerStreams: true,
  5095  		},
  5096  	},
  5097  	Metadata: "pb.proto",
  5098  }
  5099  
  5100  // WorkerClient is the client API for Worker service.
  5101  //
  5102  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  5103  type WorkerClient interface {
  5104  	// Data serving RPCs.
  5105  	Mutate(ctx context.Context, in *Mutations, opts ...grpc.CallOption) (*api.TxnContext, error)
  5106  	ServeTask(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Result, error)
  5107  	StreamSnapshot(ctx context.Context, opts ...grpc.CallOption) (Worker_StreamSnapshotClient, error)
  5108  	Sort(ctx context.Context, in *SortMessage, opts ...grpc.CallOption) (*SortResult, error)
  5109  	Schema(ctx context.Context, in *SchemaRequest, opts ...grpc.CallOption) (*SchemaResult, error)
  5110  	Backup(ctx context.Context, in *BackupRequest, opts ...grpc.CallOption) (*Status, error)
  5111  	Export(ctx context.Context, in *ExportRequest, opts ...grpc.CallOption) (*Status, error)
  5112  	ReceivePredicate(ctx context.Context, opts ...grpc.CallOption) (Worker_ReceivePredicateClient, error)
  5113  	MovePredicate(ctx context.Context, in *MovePredicatePayload, opts ...grpc.CallOption) (*api.Payload, error)
  5114  }
  5115  
  5116  type workerClient struct {
  5117  	cc *grpc.ClientConn
  5118  }
  5119  
  5120  func NewWorkerClient(cc *grpc.ClientConn) WorkerClient {
  5121  	return &workerClient{cc}
  5122  }
  5123  
  5124  func (c *workerClient) Mutate(ctx context.Context, in *Mutations, opts ...grpc.CallOption) (*api.TxnContext, error) {
  5125  	out := new(api.TxnContext)
  5126  	err := c.cc.Invoke(ctx, "/pb.Worker/Mutate", in, out, opts...)
  5127  	if err != nil {
  5128  		return nil, err
  5129  	}
  5130  	return out, nil
  5131  }
  5132  
  5133  func (c *workerClient) ServeTask(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Result, error) {
  5134  	out := new(Result)
  5135  	err := c.cc.Invoke(ctx, "/pb.Worker/ServeTask", in, out, opts...)
  5136  	if err != nil {
  5137  		return nil, err
  5138  	}
  5139  	return out, nil
  5140  }
  5141  
  5142  func (c *workerClient) StreamSnapshot(ctx context.Context, opts ...grpc.CallOption) (Worker_StreamSnapshotClient, error) {
  5143  	stream, err := c.cc.NewStream(ctx, &_Worker_serviceDesc.Streams[0], "/pb.Worker/StreamSnapshot", opts...)
  5144  	if err != nil {
  5145  		return nil, err
  5146  	}
  5147  	x := &workerStreamSnapshotClient{stream}
  5148  	return x, nil
  5149  }
  5150  
  5151  type Worker_StreamSnapshotClient interface {
  5152  	Send(*Snapshot) error
  5153  	Recv() (*KVS, error)
  5154  	grpc.ClientStream
  5155  }
  5156  
  5157  type workerStreamSnapshotClient struct {
  5158  	grpc.ClientStream
  5159  }
  5160  
  5161  func (x *workerStreamSnapshotClient) Send(m *Snapshot) error {
  5162  	return x.ClientStream.SendMsg(m)
  5163  }
  5164  
  5165  func (x *workerStreamSnapshotClient) Recv() (*KVS, error) {
  5166  	m := new(KVS)
  5167  	if err := x.ClientStream.RecvMsg(m); err != nil {
  5168  		return nil, err
  5169  	}
  5170  	return m, nil
  5171  }
  5172  
  5173  func (c *workerClient) Sort(ctx context.Context, in *SortMessage, opts ...grpc.CallOption) (*SortResult, error) {
  5174  	out := new(SortResult)
  5175  	err := c.cc.Invoke(ctx, "/pb.Worker/Sort", in, out, opts...)
  5176  	if err != nil {
  5177  		return nil, err
  5178  	}
  5179  	return out, nil
  5180  }
  5181  
  5182  func (c *workerClient) Schema(ctx context.Context, in *SchemaRequest, opts ...grpc.CallOption) (*SchemaResult, error) {
  5183  	out := new(SchemaResult)
  5184  	err := c.cc.Invoke(ctx, "/pb.Worker/Schema", in, out, opts...)
  5185  	if err != nil {
  5186  		return nil, err
  5187  	}
  5188  	return out, nil
  5189  }
  5190  
  5191  func (c *workerClient) Backup(ctx context.Context, in *BackupRequest, opts ...grpc.CallOption) (*Status, error) {
  5192  	out := new(Status)
  5193  	err := c.cc.Invoke(ctx, "/pb.Worker/Backup", in, out, opts...)
  5194  	if err != nil {
  5195  		return nil, err
  5196  	}
  5197  	return out, nil
  5198  }
  5199  
  5200  func (c *workerClient) Export(ctx context.Context, in *ExportRequest, opts ...grpc.CallOption) (*Status, error) {
  5201  	out := new(Status)
  5202  	err := c.cc.Invoke(ctx, "/pb.Worker/Export", in, out, opts...)
  5203  	if err != nil {
  5204  		return nil, err
  5205  	}
  5206  	return out, nil
  5207  }
  5208  
  5209  func (c *workerClient) ReceivePredicate(ctx context.Context, opts ...grpc.CallOption) (Worker_ReceivePredicateClient, error) {
  5210  	stream, err := c.cc.NewStream(ctx, &_Worker_serviceDesc.Streams[1], "/pb.Worker/ReceivePredicate", opts...)
  5211  	if err != nil {
  5212  		return nil, err
  5213  	}
  5214  	x := &workerReceivePredicateClient{stream}
  5215  	return x, nil
  5216  }
  5217  
  5218  type Worker_ReceivePredicateClient interface {
  5219  	Send(*KVS) error
  5220  	CloseAndRecv() (*api.Payload, error)
  5221  	grpc.ClientStream
  5222  }
  5223  
  5224  type workerReceivePredicateClient struct {
  5225  	grpc.ClientStream
  5226  }
  5227  
  5228  func (x *workerReceivePredicateClient) Send(m *KVS) error {
  5229  	return x.ClientStream.SendMsg(m)
  5230  }
  5231  
  5232  func (x *workerReceivePredicateClient) CloseAndRecv() (*api.Payload, error) {
  5233  	if err := x.ClientStream.CloseSend(); err != nil {
  5234  		return nil, err
  5235  	}
  5236  	m := new(api.Payload)
  5237  	if err := x.ClientStream.RecvMsg(m); err != nil {
  5238  		return nil, err
  5239  	}
  5240  	return m, nil
  5241  }
  5242  
  5243  func (c *workerClient) MovePredicate(ctx context.Context, in *MovePredicatePayload, opts ...grpc.CallOption) (*api.Payload, error) {
  5244  	out := new(api.Payload)
  5245  	err := c.cc.Invoke(ctx, "/pb.Worker/MovePredicate", in, out, opts...)
  5246  	if err != nil {
  5247  		return nil, err
  5248  	}
  5249  	return out, nil
  5250  }
  5251  
  5252  // WorkerServer is the server API for Worker service.
  5253  type WorkerServer interface {
  5254  	// Data serving RPCs.
  5255  	Mutate(context.Context, *Mutations) (*api.TxnContext, error)
  5256  	ServeTask(context.Context, *Query) (*Result, error)
  5257  	StreamSnapshot(Worker_StreamSnapshotServer) error
  5258  	Sort(context.Context, *SortMessage) (*SortResult, error)
  5259  	Schema(context.Context, *SchemaRequest) (*SchemaResult, error)
  5260  	Backup(context.Context, *BackupRequest) (*Status, error)
  5261  	Export(context.Context, *ExportRequest) (*Status, error)
  5262  	ReceivePredicate(Worker_ReceivePredicateServer) error
  5263  	MovePredicate(context.Context, *MovePredicatePayload) (*api.Payload, error)
  5264  }
  5265  
  5266  // UnimplementedWorkerServer can be embedded to have forward compatible implementations.
  5267  type UnimplementedWorkerServer struct {
  5268  }
  5269  
  5270  func (*UnimplementedWorkerServer) Mutate(ctx context.Context, req *Mutations) (*api.TxnContext, error) {
  5271  	return nil, status.Errorf(codes.Unimplemented, "method Mutate not implemented")
  5272  }
  5273  func (*UnimplementedWorkerServer) ServeTask(ctx context.Context, req *Query) (*Result, error) {
  5274  	return nil, status.Errorf(codes.Unimplemented, "method ServeTask not implemented")
  5275  }
  5276  func (*UnimplementedWorkerServer) StreamSnapshot(srv Worker_StreamSnapshotServer) error {
  5277  	return status.Errorf(codes.Unimplemented, "method StreamSnapshot not implemented")
  5278  }
  5279  func (*UnimplementedWorkerServer) Sort(ctx context.Context, req *SortMessage) (*SortResult, error) {
  5280  	return nil, status.Errorf(codes.Unimplemented, "method Sort not implemented")
  5281  }
  5282  func (*UnimplementedWorkerServer) Schema(ctx context.Context, req *SchemaRequest) (*SchemaResult, error) {
  5283  	return nil, status.Errorf(codes.Unimplemented, "method Schema not implemented")
  5284  }
  5285  func (*UnimplementedWorkerServer) Backup(ctx context.Context, req *BackupRequest) (*Status, error) {
  5286  	return nil, status.Errorf(codes.Unimplemented, "method Backup not implemented")
  5287  }
  5288  func (*UnimplementedWorkerServer) Export(ctx context.Context, req *ExportRequest) (*Status, error) {
  5289  	return nil, status.Errorf(codes.Unimplemented, "method Export not implemented")
  5290  }
  5291  func (*UnimplementedWorkerServer) ReceivePredicate(srv Worker_ReceivePredicateServer) error {
  5292  	return status.Errorf(codes.Unimplemented, "method ReceivePredicate not implemented")
  5293  }
  5294  func (*UnimplementedWorkerServer) MovePredicate(ctx context.Context, req *MovePredicatePayload) (*api.Payload, error) {
  5295  	return nil, status.Errorf(codes.Unimplemented, "method MovePredicate not implemented")
  5296  }
  5297  
  5298  func RegisterWorkerServer(s *grpc.Server, srv WorkerServer) {
  5299  	s.RegisterService(&_Worker_serviceDesc, srv)
  5300  }
  5301  
  5302  func _Worker_Mutate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5303  	in := new(Mutations)
  5304  	if err := dec(in); err != nil {
  5305  		return nil, err
  5306  	}
  5307  	if interceptor == nil {
  5308  		return srv.(WorkerServer).Mutate(ctx, in)
  5309  	}
  5310  	info := &grpc.UnaryServerInfo{
  5311  		Server:     srv,
  5312  		FullMethod: "/pb.Worker/Mutate",
  5313  	}
  5314  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5315  		return srv.(WorkerServer).Mutate(ctx, req.(*Mutations))
  5316  	}
  5317  	return interceptor(ctx, in, info, handler)
  5318  }
  5319  
  5320  func _Worker_ServeTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5321  	in := new(Query)
  5322  	if err := dec(in); err != nil {
  5323  		return nil, err
  5324  	}
  5325  	if interceptor == nil {
  5326  		return srv.(WorkerServer).ServeTask(ctx, in)
  5327  	}
  5328  	info := &grpc.UnaryServerInfo{
  5329  		Server:     srv,
  5330  		FullMethod: "/pb.Worker/ServeTask",
  5331  	}
  5332  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5333  		return srv.(WorkerServer).ServeTask(ctx, req.(*Query))
  5334  	}
  5335  	return interceptor(ctx, in, info, handler)
  5336  }
  5337  
  5338  func _Worker_StreamSnapshot_Handler(srv interface{}, stream grpc.ServerStream) error {
  5339  	return srv.(WorkerServer).StreamSnapshot(&workerStreamSnapshotServer{stream})
  5340  }
  5341  
  5342  type Worker_StreamSnapshotServer interface {
  5343  	Send(*KVS) error
  5344  	Recv() (*Snapshot, error)
  5345  	grpc.ServerStream
  5346  }
  5347  
  5348  type workerStreamSnapshotServer struct {
  5349  	grpc.ServerStream
  5350  }
  5351  
  5352  func (x *workerStreamSnapshotServer) Send(m *KVS) error {
  5353  	return x.ServerStream.SendMsg(m)
  5354  }
  5355  
  5356  func (x *workerStreamSnapshotServer) Recv() (*Snapshot, error) {
  5357  	m := new(Snapshot)
  5358  	if err := x.ServerStream.RecvMsg(m); err != nil {
  5359  		return nil, err
  5360  	}
  5361  	return m, nil
  5362  }
  5363  
  5364  func _Worker_Sort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5365  	in := new(SortMessage)
  5366  	if err := dec(in); err != nil {
  5367  		return nil, err
  5368  	}
  5369  	if interceptor == nil {
  5370  		return srv.(WorkerServer).Sort(ctx, in)
  5371  	}
  5372  	info := &grpc.UnaryServerInfo{
  5373  		Server:     srv,
  5374  		FullMethod: "/pb.Worker/Sort",
  5375  	}
  5376  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5377  		return srv.(WorkerServer).Sort(ctx, req.(*SortMessage))
  5378  	}
  5379  	return interceptor(ctx, in, info, handler)
  5380  }
  5381  
  5382  func _Worker_Schema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5383  	in := new(SchemaRequest)
  5384  	if err := dec(in); err != nil {
  5385  		return nil, err
  5386  	}
  5387  	if interceptor == nil {
  5388  		return srv.(WorkerServer).Schema(ctx, in)
  5389  	}
  5390  	info := &grpc.UnaryServerInfo{
  5391  		Server:     srv,
  5392  		FullMethod: "/pb.Worker/Schema",
  5393  	}
  5394  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5395  		return srv.(WorkerServer).Schema(ctx, req.(*SchemaRequest))
  5396  	}
  5397  	return interceptor(ctx, in, info, handler)
  5398  }
  5399  
  5400  func _Worker_Backup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5401  	in := new(BackupRequest)
  5402  	if err := dec(in); err != nil {
  5403  		return nil, err
  5404  	}
  5405  	if interceptor == nil {
  5406  		return srv.(WorkerServer).Backup(ctx, in)
  5407  	}
  5408  	info := &grpc.UnaryServerInfo{
  5409  		Server:     srv,
  5410  		FullMethod: "/pb.Worker/Backup",
  5411  	}
  5412  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5413  		return srv.(WorkerServer).Backup(ctx, req.(*BackupRequest))
  5414  	}
  5415  	return interceptor(ctx, in, info, handler)
  5416  }
  5417  
  5418  func _Worker_Export_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5419  	in := new(ExportRequest)
  5420  	if err := dec(in); err != nil {
  5421  		return nil, err
  5422  	}
  5423  	if interceptor == nil {
  5424  		return srv.(WorkerServer).Export(ctx, in)
  5425  	}
  5426  	info := &grpc.UnaryServerInfo{
  5427  		Server:     srv,
  5428  		FullMethod: "/pb.Worker/Export",
  5429  	}
  5430  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5431  		return srv.(WorkerServer).Export(ctx, req.(*ExportRequest))
  5432  	}
  5433  	return interceptor(ctx, in, info, handler)
  5434  }
  5435  
  5436  func _Worker_ReceivePredicate_Handler(srv interface{}, stream grpc.ServerStream) error {
  5437  	return srv.(WorkerServer).ReceivePredicate(&workerReceivePredicateServer{stream})
  5438  }
  5439  
  5440  type Worker_ReceivePredicateServer interface {
  5441  	SendAndClose(*api.Payload) error
  5442  	Recv() (*KVS, error)
  5443  	grpc.ServerStream
  5444  }
  5445  
  5446  type workerReceivePredicateServer struct {
  5447  	grpc.ServerStream
  5448  }
  5449  
  5450  func (x *workerReceivePredicateServer) SendAndClose(m *api.Payload) error {
  5451  	return x.ServerStream.SendMsg(m)
  5452  }
  5453  
  5454  func (x *workerReceivePredicateServer) Recv() (*KVS, error) {
  5455  	m := new(KVS)
  5456  	if err := x.ServerStream.RecvMsg(m); err != nil {
  5457  		return nil, err
  5458  	}
  5459  	return m, nil
  5460  }
  5461  
  5462  func _Worker_MovePredicate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5463  	in := new(MovePredicatePayload)
  5464  	if err := dec(in); err != nil {
  5465  		return nil, err
  5466  	}
  5467  	if interceptor == nil {
  5468  		return srv.(WorkerServer).MovePredicate(ctx, in)
  5469  	}
  5470  	info := &grpc.UnaryServerInfo{
  5471  		Server:     srv,
  5472  		FullMethod: "/pb.Worker/MovePredicate",
  5473  	}
  5474  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5475  		return srv.(WorkerServer).MovePredicate(ctx, req.(*MovePredicatePayload))
  5476  	}
  5477  	return interceptor(ctx, in, info, handler)
  5478  }
  5479  
  5480  var _Worker_serviceDesc = grpc.ServiceDesc{
  5481  	ServiceName: "pb.Worker",
  5482  	HandlerType: (*WorkerServer)(nil),
  5483  	Methods: []grpc.MethodDesc{
  5484  		{
  5485  			MethodName: "Mutate",
  5486  			Handler:    _Worker_Mutate_Handler,
  5487  		},
  5488  		{
  5489  			MethodName: "ServeTask",
  5490  			Handler:    _Worker_ServeTask_Handler,
  5491  		},
  5492  		{
  5493  			MethodName: "Sort",
  5494  			Handler:    _Worker_Sort_Handler,
  5495  		},
  5496  		{
  5497  			MethodName: "Schema",
  5498  			Handler:    _Worker_Schema_Handler,
  5499  		},
  5500  		{
  5501  			MethodName: "Backup",
  5502  			Handler:    _Worker_Backup_Handler,
  5503  		},
  5504  		{
  5505  			MethodName: "Export",
  5506  			Handler:    _Worker_Export_Handler,
  5507  		},
  5508  		{
  5509  			MethodName: "MovePredicate",
  5510  			Handler:    _Worker_MovePredicate_Handler,
  5511  		},
  5512  	},
  5513  	Streams: []grpc.StreamDesc{
  5514  		{
  5515  			StreamName:    "StreamSnapshot",
  5516  			Handler:       _Worker_StreamSnapshot_Handler,
  5517  			ServerStreams: true,
  5518  			ClientStreams: true,
  5519  		},
  5520  		{
  5521  			StreamName:    "ReceivePredicate",
  5522  			Handler:       _Worker_ReceivePredicate_Handler,
  5523  			ClientStreams: true,
  5524  		},
  5525  	},
  5526  	Metadata: "pb.proto",
  5527  }
  5528  
  5529  func (m *List) Marshal() (dAtA []byte, err error) {
  5530  	size := m.Size()
  5531  	dAtA = make([]byte, size)
  5532  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5533  	if err != nil {
  5534  		return nil, err
  5535  	}
  5536  	return dAtA[:n], nil
  5537  }
  5538  
  5539  func (m *List) MarshalTo(dAtA []byte) (int, error) {
  5540  	size := m.Size()
  5541  	return m.MarshalToSizedBuffer(dAtA[:size])
  5542  }
  5543  
  5544  func (m *List) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5545  	i := len(dAtA)
  5546  	_ = i
  5547  	var l int
  5548  	_ = l
  5549  	if m.XXX_unrecognized != nil {
  5550  		i -= len(m.XXX_unrecognized)
  5551  		copy(dAtA[i:], m.XXX_unrecognized)
  5552  	}
  5553  	if len(m.Uids) > 0 {
  5554  		for iNdEx := len(m.Uids) - 1; iNdEx >= 0; iNdEx-- {
  5555  			i -= 8
  5556  			encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.Uids[iNdEx]))
  5557  		}
  5558  		i = encodeVarintPb(dAtA, i, uint64(len(m.Uids)*8))
  5559  		i--
  5560  		dAtA[i] = 0xa
  5561  	}
  5562  	return len(dAtA) - i, nil
  5563  }
  5564  
  5565  func (m *TaskValue) Marshal() (dAtA []byte, err error) {
  5566  	size := m.Size()
  5567  	dAtA = make([]byte, size)
  5568  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5569  	if err != nil {
  5570  		return nil, err
  5571  	}
  5572  	return dAtA[:n], nil
  5573  }
  5574  
  5575  func (m *TaskValue) MarshalTo(dAtA []byte) (int, error) {
  5576  	size := m.Size()
  5577  	return m.MarshalToSizedBuffer(dAtA[:size])
  5578  }
  5579  
  5580  func (m *TaskValue) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5581  	i := len(dAtA)
  5582  	_ = i
  5583  	var l int
  5584  	_ = l
  5585  	if m.XXX_unrecognized != nil {
  5586  		i -= len(m.XXX_unrecognized)
  5587  		copy(dAtA[i:], m.XXX_unrecognized)
  5588  	}
  5589  	if m.ValType != 0 {
  5590  		i = encodeVarintPb(dAtA, i, uint64(m.ValType))
  5591  		i--
  5592  		dAtA[i] = 0x10
  5593  	}
  5594  	if len(m.Val) > 0 {
  5595  		i -= len(m.Val)
  5596  		copy(dAtA[i:], m.Val)
  5597  		i = encodeVarintPb(dAtA, i, uint64(len(m.Val)))
  5598  		i--
  5599  		dAtA[i] = 0xa
  5600  	}
  5601  	return len(dAtA) - i, nil
  5602  }
  5603  
  5604  func (m *SrcFunction) Marshal() (dAtA []byte, err error) {
  5605  	size := m.Size()
  5606  	dAtA = make([]byte, size)
  5607  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5608  	if err != nil {
  5609  		return nil, err
  5610  	}
  5611  	return dAtA[:n], nil
  5612  }
  5613  
  5614  func (m *SrcFunction) MarshalTo(dAtA []byte) (int, error) {
  5615  	size := m.Size()
  5616  	return m.MarshalToSizedBuffer(dAtA[:size])
  5617  }
  5618  
  5619  func (m *SrcFunction) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5620  	i := len(dAtA)
  5621  	_ = i
  5622  	var l int
  5623  	_ = l
  5624  	if m.XXX_unrecognized != nil {
  5625  		i -= len(m.XXX_unrecognized)
  5626  		copy(dAtA[i:], m.XXX_unrecognized)
  5627  	}
  5628  	if m.IsCount {
  5629  		i--
  5630  		if m.IsCount {
  5631  			dAtA[i] = 1
  5632  		} else {
  5633  			dAtA[i] = 0
  5634  		}
  5635  		i--
  5636  		dAtA[i] = 0x20
  5637  	}
  5638  	if len(m.Args) > 0 {
  5639  		for iNdEx := len(m.Args) - 1; iNdEx >= 0; iNdEx-- {
  5640  			i -= len(m.Args[iNdEx])
  5641  			copy(dAtA[i:], m.Args[iNdEx])
  5642  			i = encodeVarintPb(dAtA, i, uint64(len(m.Args[iNdEx])))
  5643  			i--
  5644  			dAtA[i] = 0x1a
  5645  		}
  5646  	}
  5647  	if len(m.Name) > 0 {
  5648  		i -= len(m.Name)
  5649  		copy(dAtA[i:], m.Name)
  5650  		i = encodeVarintPb(dAtA, i, uint64(len(m.Name)))
  5651  		i--
  5652  		dAtA[i] = 0xa
  5653  	}
  5654  	return len(dAtA) - i, nil
  5655  }
  5656  
  5657  func (m *Query) Marshal() (dAtA []byte, err error) {
  5658  	size := m.Size()
  5659  	dAtA = make([]byte, size)
  5660  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5661  	if err != nil {
  5662  		return nil, err
  5663  	}
  5664  	return dAtA[:n], nil
  5665  }
  5666  
  5667  func (m *Query) MarshalTo(dAtA []byte) (int, error) {
  5668  	size := m.Size()
  5669  	return m.MarshalToSizedBuffer(dAtA[:size])
  5670  }
  5671  
  5672  func (m *Query) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5673  	i := len(dAtA)
  5674  	_ = i
  5675  	var l int
  5676  	_ = l
  5677  	if m.XXX_unrecognized != nil {
  5678  		i -= len(m.XXX_unrecognized)
  5679  		copy(dAtA[i:], m.XXX_unrecognized)
  5680  	}
  5681  	if m.Cache != 0 {
  5682  		i = encodeVarintPb(dAtA, i, uint64(m.Cache))
  5683  		i--
  5684  		dAtA[i] = 0x70
  5685  	}
  5686  	if m.ReadTs != 0 {
  5687  		i = encodeVarintPb(dAtA, i, uint64(m.ReadTs))
  5688  		i--
  5689  		dAtA[i] = 0x68
  5690  	}
  5691  	if m.ExpandAll {
  5692  		i--
  5693  		if m.ExpandAll {
  5694  			dAtA[i] = 1
  5695  		} else {
  5696  			dAtA[i] = 0
  5697  		}
  5698  		i--
  5699  		dAtA[i] = 0x50
  5700  	}
  5701  	if m.FacetsFilter != nil {
  5702  		{
  5703  			size, err := m.FacetsFilter.MarshalToSizedBuffer(dAtA[:i])
  5704  			if err != nil {
  5705  				return 0, err
  5706  			}
  5707  			i -= size
  5708  			i = encodeVarintPb(dAtA, i, uint64(size))
  5709  		}
  5710  		i--
  5711  		dAtA[i] = 0x4a
  5712  	}
  5713  	if m.FacetParam != nil {
  5714  		{
  5715  			size, err := m.FacetParam.MarshalToSizedBuffer(dAtA[:i])
  5716  			if err != nil {
  5717  				return 0, err
  5718  			}
  5719  			i -= size
  5720  			i = encodeVarintPb(dAtA, i, uint64(size))
  5721  		}
  5722  		i--
  5723  		dAtA[i] = 0x42
  5724  	}
  5725  	if m.Reverse {
  5726  		i--
  5727  		if m.Reverse {
  5728  			dAtA[i] = 1
  5729  		} else {
  5730  			dAtA[i] = 0
  5731  		}
  5732  		i--
  5733  		dAtA[i] = 0x38
  5734  	}
  5735  	if m.SrcFunc != nil {
  5736  		{
  5737  			size, err := m.SrcFunc.MarshalToSizedBuffer(dAtA[:i])
  5738  			if err != nil {
  5739  				return 0, err
  5740  			}
  5741  			i -= size
  5742  			i = encodeVarintPb(dAtA, i, uint64(size))
  5743  		}
  5744  		i--
  5745  		dAtA[i] = 0x32
  5746  	}
  5747  	if m.UidList != nil {
  5748  		{
  5749  			size, err := m.UidList.MarshalToSizedBuffer(dAtA[:i])
  5750  			if err != nil {
  5751  				return 0, err
  5752  			}
  5753  			i -= size
  5754  			i = encodeVarintPb(dAtA, i, uint64(size))
  5755  		}
  5756  		i--
  5757  		dAtA[i] = 0x2a
  5758  	}
  5759  	if m.DoCount {
  5760  		i--
  5761  		if m.DoCount {
  5762  			dAtA[i] = 1
  5763  		} else {
  5764  			dAtA[i] = 0
  5765  		}
  5766  		i--
  5767  		dAtA[i] = 0x20
  5768  	}
  5769  	if m.AfterUid != 0 {
  5770  		i -= 8
  5771  		encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.AfterUid))
  5772  		i--
  5773  		dAtA[i] = 0x19
  5774  	}
  5775  	if len(m.Langs) > 0 {
  5776  		for iNdEx := len(m.Langs) - 1; iNdEx >= 0; iNdEx-- {
  5777  			i -= len(m.Langs[iNdEx])
  5778  			copy(dAtA[i:], m.Langs[iNdEx])
  5779  			i = encodeVarintPb(dAtA, i, uint64(len(m.Langs[iNdEx])))
  5780  			i--
  5781  			dAtA[i] = 0x12
  5782  		}
  5783  	}
  5784  	if len(m.Attr) > 0 {
  5785  		i -= len(m.Attr)
  5786  		copy(dAtA[i:], m.Attr)
  5787  		i = encodeVarintPb(dAtA, i, uint64(len(m.Attr)))
  5788  		i--
  5789  		dAtA[i] = 0xa
  5790  	}
  5791  	return len(dAtA) - i, nil
  5792  }
  5793  
  5794  func (m *ValueList) Marshal() (dAtA []byte, err error) {
  5795  	size := m.Size()
  5796  	dAtA = make([]byte, size)
  5797  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5798  	if err != nil {
  5799  		return nil, err
  5800  	}
  5801  	return dAtA[:n], nil
  5802  }
  5803  
  5804  func (m *ValueList) MarshalTo(dAtA []byte) (int, error) {
  5805  	size := m.Size()
  5806  	return m.MarshalToSizedBuffer(dAtA[:size])
  5807  }
  5808  
  5809  func (m *ValueList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5810  	i := len(dAtA)
  5811  	_ = i
  5812  	var l int
  5813  	_ = l
  5814  	if m.XXX_unrecognized != nil {
  5815  		i -= len(m.XXX_unrecognized)
  5816  		copy(dAtA[i:], m.XXX_unrecognized)
  5817  	}
  5818  	if len(m.Values) > 0 {
  5819  		for iNdEx := len(m.Values) - 1; iNdEx >= 0; iNdEx-- {
  5820  			{
  5821  				size, err := m.Values[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  5822  				if err != nil {
  5823  					return 0, err
  5824  				}
  5825  				i -= size
  5826  				i = encodeVarintPb(dAtA, i, uint64(size))
  5827  			}
  5828  			i--
  5829  			dAtA[i] = 0xa
  5830  		}
  5831  	}
  5832  	return len(dAtA) - i, nil
  5833  }
  5834  
  5835  func (m *LangList) Marshal() (dAtA []byte, err error) {
  5836  	size := m.Size()
  5837  	dAtA = make([]byte, size)
  5838  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5839  	if err != nil {
  5840  		return nil, err
  5841  	}
  5842  	return dAtA[:n], nil
  5843  }
  5844  
  5845  func (m *LangList) MarshalTo(dAtA []byte) (int, error) {
  5846  	size := m.Size()
  5847  	return m.MarshalToSizedBuffer(dAtA[:size])
  5848  }
  5849  
  5850  func (m *LangList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5851  	i := len(dAtA)
  5852  	_ = i
  5853  	var l int
  5854  	_ = l
  5855  	if m.XXX_unrecognized != nil {
  5856  		i -= len(m.XXX_unrecognized)
  5857  		copy(dAtA[i:], m.XXX_unrecognized)
  5858  	}
  5859  	if len(m.Lang) > 0 {
  5860  		for iNdEx := len(m.Lang) - 1; iNdEx >= 0; iNdEx-- {
  5861  			i -= len(m.Lang[iNdEx])
  5862  			copy(dAtA[i:], m.Lang[iNdEx])
  5863  			i = encodeVarintPb(dAtA, i, uint64(len(m.Lang[iNdEx])))
  5864  			i--
  5865  			dAtA[i] = 0xa
  5866  		}
  5867  	}
  5868  	return len(dAtA) - i, nil
  5869  }
  5870  
  5871  func (m *Result) Marshal() (dAtA []byte, err error) {
  5872  	size := m.Size()
  5873  	dAtA = make([]byte, size)
  5874  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5875  	if err != nil {
  5876  		return nil, err
  5877  	}
  5878  	return dAtA[:n], nil
  5879  }
  5880  
  5881  func (m *Result) MarshalTo(dAtA []byte) (int, error) {
  5882  	size := m.Size()
  5883  	return m.MarshalToSizedBuffer(dAtA[:size])
  5884  }
  5885  
  5886  func (m *Result) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5887  	i := len(dAtA)
  5888  	_ = i
  5889  	var l int
  5890  	_ = l
  5891  	if m.XXX_unrecognized != nil {
  5892  		i -= len(m.XXX_unrecognized)
  5893  		copy(dAtA[i:], m.XXX_unrecognized)
  5894  	}
  5895  	if m.List {
  5896  		i--
  5897  		if m.List {
  5898  			dAtA[i] = 1
  5899  		} else {
  5900  			dAtA[i] = 0
  5901  		}
  5902  		i--
  5903  		dAtA[i] = 0x38
  5904  	}
  5905  	if len(m.LangMatrix) > 0 {
  5906  		for iNdEx := len(m.LangMatrix) - 1; iNdEx >= 0; iNdEx-- {
  5907  			{
  5908  				size, err := m.LangMatrix[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  5909  				if err != nil {
  5910  					return 0, err
  5911  				}
  5912  				i -= size
  5913  				i = encodeVarintPb(dAtA, i, uint64(size))
  5914  			}
  5915  			i--
  5916  			dAtA[i] = 0x32
  5917  		}
  5918  	}
  5919  	if len(m.FacetMatrix) > 0 {
  5920  		for iNdEx := len(m.FacetMatrix) - 1; iNdEx >= 0; iNdEx-- {
  5921  			{
  5922  				size, err := m.FacetMatrix[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  5923  				if err != nil {
  5924  					return 0, err
  5925  				}
  5926  				i -= size
  5927  				i = encodeVarintPb(dAtA, i, uint64(size))
  5928  			}
  5929  			i--
  5930  			dAtA[i] = 0x2a
  5931  		}
  5932  	}
  5933  	if m.IntersectDest {
  5934  		i--
  5935  		if m.IntersectDest {
  5936  			dAtA[i] = 1
  5937  		} else {
  5938  			dAtA[i] = 0
  5939  		}
  5940  		i--
  5941  		dAtA[i] = 0x20
  5942  	}
  5943  	if len(m.Counts) > 0 {
  5944  		dAtA6 := make([]byte, len(m.Counts)*10)
  5945  		var j5 int
  5946  		for _, num := range m.Counts {
  5947  			for num >= 1<<7 {
  5948  				dAtA6[j5] = uint8(uint64(num)&0x7f | 0x80)
  5949  				num >>= 7
  5950  				j5++
  5951  			}
  5952  			dAtA6[j5] = uint8(num)
  5953  			j5++
  5954  		}
  5955  		i -= j5
  5956  		copy(dAtA[i:], dAtA6[:j5])
  5957  		i = encodeVarintPb(dAtA, i, uint64(j5))
  5958  		i--
  5959  		dAtA[i] = 0x1a
  5960  	}
  5961  	if len(m.ValueMatrix) > 0 {
  5962  		for iNdEx := len(m.ValueMatrix) - 1; iNdEx >= 0; iNdEx-- {
  5963  			{
  5964  				size, err := m.ValueMatrix[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  5965  				if err != nil {
  5966  					return 0, err
  5967  				}
  5968  				i -= size
  5969  				i = encodeVarintPb(dAtA, i, uint64(size))
  5970  			}
  5971  			i--
  5972  			dAtA[i] = 0x12
  5973  		}
  5974  	}
  5975  	if len(m.UidMatrix) > 0 {
  5976  		for iNdEx := len(m.UidMatrix) - 1; iNdEx >= 0; iNdEx-- {
  5977  			{
  5978  				size, err := m.UidMatrix[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  5979  				if err != nil {
  5980  					return 0, err
  5981  				}
  5982  				i -= size
  5983  				i = encodeVarintPb(dAtA, i, uint64(size))
  5984  			}
  5985  			i--
  5986  			dAtA[i] = 0xa
  5987  		}
  5988  	}
  5989  	return len(dAtA) - i, nil
  5990  }
  5991  
  5992  func (m *Order) Marshal() (dAtA []byte, err error) {
  5993  	size := m.Size()
  5994  	dAtA = make([]byte, size)
  5995  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5996  	if err != nil {
  5997  		return nil, err
  5998  	}
  5999  	return dAtA[:n], nil
  6000  }
  6001  
  6002  func (m *Order) MarshalTo(dAtA []byte) (int, error) {
  6003  	size := m.Size()
  6004  	return m.MarshalToSizedBuffer(dAtA[:size])
  6005  }
  6006  
  6007  func (m *Order) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6008  	i := len(dAtA)
  6009  	_ = i
  6010  	var l int
  6011  	_ = l
  6012  	if m.XXX_unrecognized != nil {
  6013  		i -= len(m.XXX_unrecognized)
  6014  		copy(dAtA[i:], m.XXX_unrecognized)
  6015  	}
  6016  	if len(m.Langs) > 0 {
  6017  		for iNdEx := len(m.Langs) - 1; iNdEx >= 0; iNdEx-- {
  6018  			i -= len(m.Langs[iNdEx])
  6019  			copy(dAtA[i:], m.Langs[iNdEx])
  6020  			i = encodeVarintPb(dAtA, i, uint64(len(m.Langs[iNdEx])))
  6021  			i--
  6022  			dAtA[i] = 0x1a
  6023  		}
  6024  	}
  6025  	if m.Desc {
  6026  		i--
  6027  		if m.Desc {
  6028  			dAtA[i] = 1
  6029  		} else {
  6030  			dAtA[i] = 0
  6031  		}
  6032  		i--
  6033  		dAtA[i] = 0x10
  6034  	}
  6035  	if len(m.Attr) > 0 {
  6036  		i -= len(m.Attr)
  6037  		copy(dAtA[i:], m.Attr)
  6038  		i = encodeVarintPb(dAtA, i, uint64(len(m.Attr)))
  6039  		i--
  6040  		dAtA[i] = 0xa
  6041  	}
  6042  	return len(dAtA) - i, nil
  6043  }
  6044  
  6045  func (m *SortMessage) Marshal() (dAtA []byte, err error) {
  6046  	size := m.Size()
  6047  	dAtA = make([]byte, size)
  6048  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6049  	if err != nil {
  6050  		return nil, err
  6051  	}
  6052  	return dAtA[:n], nil
  6053  }
  6054  
  6055  func (m *SortMessage) MarshalTo(dAtA []byte) (int, error) {
  6056  	size := m.Size()
  6057  	return m.MarshalToSizedBuffer(dAtA[:size])
  6058  }
  6059  
  6060  func (m *SortMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6061  	i := len(dAtA)
  6062  	_ = i
  6063  	var l int
  6064  	_ = l
  6065  	if m.XXX_unrecognized != nil {
  6066  		i -= len(m.XXX_unrecognized)
  6067  		copy(dAtA[i:], m.XXX_unrecognized)
  6068  	}
  6069  	if m.ReadTs != 0 {
  6070  		i = encodeVarintPb(dAtA, i, uint64(m.ReadTs))
  6071  		i--
  6072  		dAtA[i] = 0x68
  6073  	}
  6074  	if m.Offset != 0 {
  6075  		i = encodeVarintPb(dAtA, i, uint64(m.Offset))
  6076  		i--
  6077  		dAtA[i] = 0x20
  6078  	}
  6079  	if m.Count != 0 {
  6080  		i = encodeVarintPb(dAtA, i, uint64(m.Count))
  6081  		i--
  6082  		dAtA[i] = 0x18
  6083  	}
  6084  	if len(m.UidMatrix) > 0 {
  6085  		for iNdEx := len(m.UidMatrix) - 1; iNdEx >= 0; iNdEx-- {
  6086  			{
  6087  				size, err := m.UidMatrix[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  6088  				if err != nil {
  6089  					return 0, err
  6090  				}
  6091  				i -= size
  6092  				i = encodeVarintPb(dAtA, i, uint64(size))
  6093  			}
  6094  			i--
  6095  			dAtA[i] = 0x12
  6096  		}
  6097  	}
  6098  	if len(m.Order) > 0 {
  6099  		for iNdEx := len(m.Order) - 1; iNdEx >= 0; iNdEx-- {
  6100  			{
  6101  				size, err := m.Order[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  6102  				if err != nil {
  6103  					return 0, err
  6104  				}
  6105  				i -= size
  6106  				i = encodeVarintPb(dAtA, i, uint64(size))
  6107  			}
  6108  			i--
  6109  			dAtA[i] = 0xa
  6110  		}
  6111  	}
  6112  	return len(dAtA) - i, nil
  6113  }
  6114  
  6115  func (m *SortResult) Marshal() (dAtA []byte, err error) {
  6116  	size := m.Size()
  6117  	dAtA = make([]byte, size)
  6118  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6119  	if err != nil {
  6120  		return nil, err
  6121  	}
  6122  	return dAtA[:n], nil
  6123  }
  6124  
  6125  func (m *SortResult) MarshalTo(dAtA []byte) (int, error) {
  6126  	size := m.Size()
  6127  	return m.MarshalToSizedBuffer(dAtA[:size])
  6128  }
  6129  
  6130  func (m *SortResult) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6131  	i := len(dAtA)
  6132  	_ = i
  6133  	var l int
  6134  	_ = l
  6135  	if m.XXX_unrecognized != nil {
  6136  		i -= len(m.XXX_unrecognized)
  6137  		copy(dAtA[i:], m.XXX_unrecognized)
  6138  	}
  6139  	if len(m.UidMatrix) > 0 {
  6140  		for iNdEx := len(m.UidMatrix) - 1; iNdEx >= 0; iNdEx-- {
  6141  			{
  6142  				size, err := m.UidMatrix[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  6143  				if err != nil {
  6144  					return 0, err
  6145  				}
  6146  				i -= size
  6147  				i = encodeVarintPb(dAtA, i, uint64(size))
  6148  			}
  6149  			i--
  6150  			dAtA[i] = 0xa
  6151  		}
  6152  	}
  6153  	return len(dAtA) - i, nil
  6154  }
  6155  
  6156  func (m *RaftContext) Marshal() (dAtA []byte, err error) {
  6157  	size := m.Size()
  6158  	dAtA = make([]byte, size)
  6159  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6160  	if err != nil {
  6161  		return nil, err
  6162  	}
  6163  	return dAtA[:n], nil
  6164  }
  6165  
  6166  func (m *RaftContext) MarshalTo(dAtA []byte) (int, error) {
  6167  	size := m.Size()
  6168  	return m.MarshalToSizedBuffer(dAtA[:size])
  6169  }
  6170  
  6171  func (m *RaftContext) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6172  	i := len(dAtA)
  6173  	_ = i
  6174  	var l int
  6175  	_ = l
  6176  	if m.XXX_unrecognized != nil {
  6177  		i -= len(m.XXX_unrecognized)
  6178  		copy(dAtA[i:], m.XXX_unrecognized)
  6179  	}
  6180  	if m.SnapshotTs != 0 {
  6181  		i = encodeVarintPb(dAtA, i, uint64(m.SnapshotTs))
  6182  		i--
  6183  		dAtA[i] = 0x20
  6184  	}
  6185  	if len(m.Addr) > 0 {
  6186  		i -= len(m.Addr)
  6187  		copy(dAtA[i:], m.Addr)
  6188  		i = encodeVarintPb(dAtA, i, uint64(len(m.Addr)))
  6189  		i--
  6190  		dAtA[i] = 0x1a
  6191  	}
  6192  	if m.Group != 0 {
  6193  		i = encodeVarintPb(dAtA, i, uint64(m.Group))
  6194  		i--
  6195  		dAtA[i] = 0x10
  6196  	}
  6197  	if m.Id != 0 {
  6198  		i -= 8
  6199  		encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.Id))
  6200  		i--
  6201  		dAtA[i] = 0x9
  6202  	}
  6203  	return len(dAtA) - i, nil
  6204  }
  6205  
  6206  func (m *Member) Marshal() (dAtA []byte, err error) {
  6207  	size := m.Size()
  6208  	dAtA = make([]byte, size)
  6209  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6210  	if err != nil {
  6211  		return nil, err
  6212  	}
  6213  	return dAtA[:n], nil
  6214  }
  6215  
  6216  func (m *Member) MarshalTo(dAtA []byte) (int, error) {
  6217  	size := m.Size()
  6218  	return m.MarshalToSizedBuffer(dAtA[:size])
  6219  }
  6220  
  6221  func (m *Member) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6222  	i := len(dAtA)
  6223  	_ = i
  6224  	var l int
  6225  	_ = l
  6226  	if m.XXX_unrecognized != nil {
  6227  		i -= len(m.XXX_unrecognized)
  6228  		copy(dAtA[i:], m.XXX_unrecognized)
  6229  	}
  6230  	if m.ClusterInfoOnly {
  6231  		i--
  6232  		if m.ClusterInfoOnly {
  6233  			dAtA[i] = 1
  6234  		} else {
  6235  			dAtA[i] = 0
  6236  		}
  6237  		i--
  6238  		dAtA[i] = 0x68
  6239  	}
  6240  	if m.LastUpdate != 0 {
  6241  		i = encodeVarintPb(dAtA, i, uint64(m.LastUpdate))
  6242  		i--
  6243  		dAtA[i] = 0x30
  6244  	}
  6245  	if m.AmDead {
  6246  		i--
  6247  		if m.AmDead {
  6248  			dAtA[i] = 1
  6249  		} else {
  6250  			dAtA[i] = 0
  6251  		}
  6252  		i--
  6253  		dAtA[i] = 0x28
  6254  	}
  6255  	if m.Leader {
  6256  		i--
  6257  		if m.Leader {
  6258  			dAtA[i] = 1
  6259  		} else {
  6260  			dAtA[i] = 0
  6261  		}
  6262  		i--
  6263  		dAtA[i] = 0x20
  6264  	}
  6265  	if len(m.Addr) > 0 {
  6266  		i -= len(m.Addr)
  6267  		copy(dAtA[i:], m.Addr)
  6268  		i = encodeVarintPb(dAtA, i, uint64(len(m.Addr)))
  6269  		i--
  6270  		dAtA[i] = 0x1a
  6271  	}
  6272  	if m.GroupId != 0 {
  6273  		i = encodeVarintPb(dAtA, i, uint64(m.GroupId))
  6274  		i--
  6275  		dAtA[i] = 0x10
  6276  	}
  6277  	if m.Id != 0 {
  6278  		i -= 8
  6279  		encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.Id))
  6280  		i--
  6281  		dAtA[i] = 0x9
  6282  	}
  6283  	return len(dAtA) - i, nil
  6284  }
  6285  
  6286  func (m *Group) Marshal() (dAtA []byte, err error) {
  6287  	size := m.Size()
  6288  	dAtA = make([]byte, size)
  6289  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6290  	if err != nil {
  6291  		return nil, err
  6292  	}
  6293  	return dAtA[:n], nil
  6294  }
  6295  
  6296  func (m *Group) MarshalTo(dAtA []byte) (int, error) {
  6297  	size := m.Size()
  6298  	return m.MarshalToSizedBuffer(dAtA[:size])
  6299  }
  6300  
  6301  func (m *Group) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6302  	i := len(dAtA)
  6303  	_ = i
  6304  	var l int
  6305  	_ = l
  6306  	if m.XXX_unrecognized != nil {
  6307  		i -= len(m.XXX_unrecognized)
  6308  		copy(dAtA[i:], m.XXX_unrecognized)
  6309  	}
  6310  	if m.Checksum != 0 {
  6311  		i = encodeVarintPb(dAtA, i, uint64(m.Checksum))
  6312  		i--
  6313  		dAtA[i] = 0x20
  6314  	}
  6315  	if m.SnapshotTs != 0 {
  6316  		i = encodeVarintPb(dAtA, i, uint64(m.SnapshotTs))
  6317  		i--
  6318  		dAtA[i] = 0x18
  6319  	}
  6320  	if len(m.Tablets) > 0 {
  6321  		for k := range m.Tablets {
  6322  			v := m.Tablets[k]
  6323  			baseI := i
  6324  			if v != nil {
  6325  				{
  6326  					size, err := v.MarshalToSizedBuffer(dAtA[:i])
  6327  					if err != nil {
  6328  						return 0, err
  6329  					}
  6330  					i -= size
  6331  					i = encodeVarintPb(dAtA, i, uint64(size))
  6332  				}
  6333  				i--
  6334  				dAtA[i] = 0x12
  6335  			}
  6336  			i -= len(k)
  6337  			copy(dAtA[i:], k)
  6338  			i = encodeVarintPb(dAtA, i, uint64(len(k)))
  6339  			i--
  6340  			dAtA[i] = 0xa
  6341  			i = encodeVarintPb(dAtA, i, uint64(baseI-i))
  6342  			i--
  6343  			dAtA[i] = 0x12
  6344  		}
  6345  	}
  6346  	if len(m.Members) > 0 {
  6347  		for k := range m.Members {
  6348  			v := m.Members[k]
  6349  			baseI := i
  6350  			if v != nil {
  6351  				{
  6352  					size, err := v.MarshalToSizedBuffer(dAtA[:i])
  6353  					if err != nil {
  6354  						return 0, err
  6355  					}
  6356  					i -= size
  6357  					i = encodeVarintPb(dAtA, i, uint64(size))
  6358  				}
  6359  				i--
  6360  				dAtA[i] = 0x12
  6361  			}
  6362  			i = encodeVarintPb(dAtA, i, uint64(k))
  6363  			i--
  6364  			dAtA[i] = 0x8
  6365  			i = encodeVarintPb(dAtA, i, uint64(baseI-i))
  6366  			i--
  6367  			dAtA[i] = 0xa
  6368  		}
  6369  	}
  6370  	return len(dAtA) - i, nil
  6371  }
  6372  
  6373  func (m *License) Marshal() (dAtA []byte, err error) {
  6374  	size := m.Size()
  6375  	dAtA = make([]byte, size)
  6376  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6377  	if err != nil {
  6378  		return nil, err
  6379  	}
  6380  	return dAtA[:n], nil
  6381  }
  6382  
  6383  func (m *License) MarshalTo(dAtA []byte) (int, error) {
  6384  	size := m.Size()
  6385  	return m.MarshalToSizedBuffer(dAtA[:size])
  6386  }
  6387  
  6388  func (m *License) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6389  	i := len(dAtA)
  6390  	_ = i
  6391  	var l int
  6392  	_ = l
  6393  	if m.XXX_unrecognized != nil {
  6394  		i -= len(m.XXX_unrecognized)
  6395  		copy(dAtA[i:], m.XXX_unrecognized)
  6396  	}
  6397  	if m.Enabled {
  6398  		i--
  6399  		if m.Enabled {
  6400  			dAtA[i] = 1
  6401  		} else {
  6402  			dAtA[i] = 0
  6403  		}
  6404  		i--
  6405  		dAtA[i] = 0x20
  6406  	}
  6407  	if m.ExpiryTs != 0 {
  6408  		i = encodeVarintPb(dAtA, i, uint64(m.ExpiryTs))
  6409  		i--
  6410  		dAtA[i] = 0x18
  6411  	}
  6412  	if m.MaxNodes != 0 {
  6413  		i = encodeVarintPb(dAtA, i, uint64(m.MaxNodes))
  6414  		i--
  6415  		dAtA[i] = 0x10
  6416  	}
  6417  	if len(m.User) > 0 {
  6418  		i -= len(m.User)
  6419  		copy(dAtA[i:], m.User)
  6420  		i = encodeVarintPb(dAtA, i, uint64(len(m.User)))
  6421  		i--
  6422  		dAtA[i] = 0xa
  6423  	}
  6424  	return len(dAtA) - i, nil
  6425  }
  6426  
  6427  func (m *ZeroProposal) Marshal() (dAtA []byte, err error) {
  6428  	size := m.Size()
  6429  	dAtA = make([]byte, size)
  6430  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6431  	if err != nil {
  6432  		return nil, err
  6433  	}
  6434  	return dAtA[:n], nil
  6435  }
  6436  
  6437  func (m *ZeroProposal) MarshalTo(dAtA []byte) (int, error) {
  6438  	size := m.Size()
  6439  	return m.MarshalToSizedBuffer(dAtA[:size])
  6440  }
  6441  
  6442  func (m *ZeroProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6443  	i := len(dAtA)
  6444  	_ = i
  6445  	var l int
  6446  	_ = l
  6447  	if m.XXX_unrecognized != nil {
  6448  		i -= len(m.XXX_unrecognized)
  6449  		copy(dAtA[i:], m.XXX_unrecognized)
  6450  	}
  6451  	if m.License != nil {
  6452  		{
  6453  			size, err := m.License.MarshalToSizedBuffer(dAtA[:i])
  6454  			if err != nil {
  6455  				return 0, err
  6456  			}
  6457  			i -= size
  6458  			i = encodeVarintPb(dAtA, i, uint64(size))
  6459  		}
  6460  		i--
  6461  		dAtA[i] = 0x52
  6462  	}
  6463  	if len(m.Cid) > 0 {
  6464  		i -= len(m.Cid)
  6465  		copy(dAtA[i:], m.Cid)
  6466  		i = encodeVarintPb(dAtA, i, uint64(len(m.Cid)))
  6467  		i--
  6468  		dAtA[i] = 0x4a
  6469  	}
  6470  	if len(m.Key) > 0 {
  6471  		i -= len(m.Key)
  6472  		copy(dAtA[i:], m.Key)
  6473  		i = encodeVarintPb(dAtA, i, uint64(len(m.Key)))
  6474  		i--
  6475  		dAtA[i] = 0x42
  6476  	}
  6477  	if m.Txn != nil {
  6478  		{
  6479  			size, err := m.Txn.MarshalToSizedBuffer(dAtA[:i])
  6480  			if err != nil {
  6481  				return 0, err
  6482  			}
  6483  			i -= size
  6484  			i = encodeVarintPb(dAtA, i, uint64(size))
  6485  		}
  6486  		i--
  6487  		dAtA[i] = 0x3a
  6488  	}
  6489  	if m.MaxRaftId != 0 {
  6490  		i = encodeVarintPb(dAtA, i, uint64(m.MaxRaftId))
  6491  		i--
  6492  		dAtA[i] = 0x30
  6493  	}
  6494  	if m.MaxTxnTs != 0 {
  6495  		i = encodeVarintPb(dAtA, i, uint64(m.MaxTxnTs))
  6496  		i--
  6497  		dAtA[i] = 0x28
  6498  	}
  6499  	if m.MaxLeaseId != 0 {
  6500  		i = encodeVarintPb(dAtA, i, uint64(m.MaxLeaseId))
  6501  		i--
  6502  		dAtA[i] = 0x20
  6503  	}
  6504  	if m.Tablet != nil {
  6505  		{
  6506  			size, err := m.Tablet.MarshalToSizedBuffer(dAtA[:i])
  6507  			if err != nil {
  6508  				return 0, err
  6509  			}
  6510  			i -= size
  6511  			i = encodeVarintPb(dAtA, i, uint64(size))
  6512  		}
  6513  		i--
  6514  		dAtA[i] = 0x1a
  6515  	}
  6516  	if m.Member != nil {
  6517  		{
  6518  			size, err := m.Member.MarshalToSizedBuffer(dAtA[:i])
  6519  			if err != nil {
  6520  				return 0, err
  6521  			}
  6522  			i -= size
  6523  			i = encodeVarintPb(dAtA, i, uint64(size))
  6524  		}
  6525  		i--
  6526  		dAtA[i] = 0x12
  6527  	}
  6528  	if len(m.SnapshotTs) > 0 {
  6529  		for k := range m.SnapshotTs {
  6530  			v := m.SnapshotTs[k]
  6531  			baseI := i
  6532  			i = encodeVarintPb(dAtA, i, uint64(v))
  6533  			i--
  6534  			dAtA[i] = 0x10
  6535  			i = encodeVarintPb(dAtA, i, uint64(k))
  6536  			i--
  6537  			dAtA[i] = 0x8
  6538  			i = encodeVarintPb(dAtA, i, uint64(baseI-i))
  6539  			i--
  6540  			dAtA[i] = 0xa
  6541  		}
  6542  	}
  6543  	return len(dAtA) - i, nil
  6544  }
  6545  
  6546  func (m *MembershipState) Marshal() (dAtA []byte, err error) {
  6547  	size := m.Size()
  6548  	dAtA = make([]byte, size)
  6549  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6550  	if err != nil {
  6551  		return nil, err
  6552  	}
  6553  	return dAtA[:n], nil
  6554  }
  6555  
  6556  func (m *MembershipState) MarshalTo(dAtA []byte) (int, error) {
  6557  	size := m.Size()
  6558  	return m.MarshalToSizedBuffer(dAtA[:size])
  6559  }
  6560  
  6561  func (m *MembershipState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6562  	i := len(dAtA)
  6563  	_ = i
  6564  	var l int
  6565  	_ = l
  6566  	if m.XXX_unrecognized != nil {
  6567  		i -= len(m.XXX_unrecognized)
  6568  		copy(dAtA[i:], m.XXX_unrecognized)
  6569  	}
  6570  	if m.License != nil {
  6571  		{
  6572  			size, err := m.License.MarshalToSizedBuffer(dAtA[:i])
  6573  			if err != nil {
  6574  				return 0, err
  6575  			}
  6576  			i -= size
  6577  			i = encodeVarintPb(dAtA, i, uint64(size))
  6578  		}
  6579  		i--
  6580  		dAtA[i] = 0x4a
  6581  	}
  6582  	if len(m.Cid) > 0 {
  6583  		i -= len(m.Cid)
  6584  		copy(dAtA[i:], m.Cid)
  6585  		i = encodeVarintPb(dAtA, i, uint64(len(m.Cid)))
  6586  		i--
  6587  		dAtA[i] = 0x42
  6588  	}
  6589  	if len(m.Removed) > 0 {
  6590  		for iNdEx := len(m.Removed) - 1; iNdEx >= 0; iNdEx-- {
  6591  			{
  6592  				size, err := m.Removed[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  6593  				if err != nil {
  6594  					return 0, err
  6595  				}
  6596  				i -= size
  6597  				i = encodeVarintPb(dAtA, i, uint64(size))
  6598  			}
  6599  			i--
  6600  			dAtA[i] = 0x3a
  6601  		}
  6602  	}
  6603  	if m.MaxRaftId != 0 {
  6604  		i = encodeVarintPb(dAtA, i, uint64(m.MaxRaftId))
  6605  		i--
  6606  		dAtA[i] = 0x30
  6607  	}
  6608  	if m.MaxTxnTs != 0 {
  6609  		i = encodeVarintPb(dAtA, i, uint64(m.MaxTxnTs))
  6610  		i--
  6611  		dAtA[i] = 0x28
  6612  	}
  6613  	if m.MaxLeaseId != 0 {
  6614  		i = encodeVarintPb(dAtA, i, uint64(m.MaxLeaseId))
  6615  		i--
  6616  		dAtA[i] = 0x20
  6617  	}
  6618  	if len(m.Zeros) > 0 {
  6619  		for k := range m.Zeros {
  6620  			v := m.Zeros[k]
  6621  			baseI := i
  6622  			if v != nil {
  6623  				{
  6624  					size, err := v.MarshalToSizedBuffer(dAtA[:i])
  6625  					if err != nil {
  6626  						return 0, err
  6627  					}
  6628  					i -= size
  6629  					i = encodeVarintPb(dAtA, i, uint64(size))
  6630  				}
  6631  				i--
  6632  				dAtA[i] = 0x12
  6633  			}
  6634  			i = encodeVarintPb(dAtA, i, uint64(k))
  6635  			i--
  6636  			dAtA[i] = 0x8
  6637  			i = encodeVarintPb(dAtA, i, uint64(baseI-i))
  6638  			i--
  6639  			dAtA[i] = 0x1a
  6640  		}
  6641  	}
  6642  	if len(m.Groups) > 0 {
  6643  		for k := range m.Groups {
  6644  			v := m.Groups[k]
  6645  			baseI := i
  6646  			if v != nil {
  6647  				{
  6648  					size, err := v.MarshalToSizedBuffer(dAtA[:i])
  6649  					if err != nil {
  6650  						return 0, err
  6651  					}
  6652  					i -= size
  6653  					i = encodeVarintPb(dAtA, i, uint64(size))
  6654  				}
  6655  				i--
  6656  				dAtA[i] = 0x12
  6657  			}
  6658  			i = encodeVarintPb(dAtA, i, uint64(k))
  6659  			i--
  6660  			dAtA[i] = 0x8
  6661  			i = encodeVarintPb(dAtA, i, uint64(baseI-i))
  6662  			i--
  6663  			dAtA[i] = 0x12
  6664  		}
  6665  	}
  6666  	if m.Counter != 0 {
  6667  		i = encodeVarintPb(dAtA, i, uint64(m.Counter))
  6668  		i--
  6669  		dAtA[i] = 0x8
  6670  	}
  6671  	return len(dAtA) - i, nil
  6672  }
  6673  
  6674  func (m *ConnectionState) Marshal() (dAtA []byte, err error) {
  6675  	size := m.Size()
  6676  	dAtA = make([]byte, size)
  6677  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6678  	if err != nil {
  6679  		return nil, err
  6680  	}
  6681  	return dAtA[:n], nil
  6682  }
  6683  
  6684  func (m *ConnectionState) MarshalTo(dAtA []byte) (int, error) {
  6685  	size := m.Size()
  6686  	return m.MarshalToSizedBuffer(dAtA[:size])
  6687  }
  6688  
  6689  func (m *ConnectionState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6690  	i := len(dAtA)
  6691  	_ = i
  6692  	var l int
  6693  	_ = l
  6694  	if m.XXX_unrecognized != nil {
  6695  		i -= len(m.XXX_unrecognized)
  6696  		copy(dAtA[i:], m.XXX_unrecognized)
  6697  	}
  6698  	if m.MaxPending != 0 {
  6699  		i = encodeVarintPb(dAtA, i, uint64(m.MaxPending))
  6700  		i--
  6701  		dAtA[i] = 0x18
  6702  	}
  6703  	if m.State != nil {
  6704  		{
  6705  			size, err := m.State.MarshalToSizedBuffer(dAtA[:i])
  6706  			if err != nil {
  6707  				return 0, err
  6708  			}
  6709  			i -= size
  6710  			i = encodeVarintPb(dAtA, i, uint64(size))
  6711  		}
  6712  		i--
  6713  		dAtA[i] = 0x12
  6714  	}
  6715  	if m.Member != nil {
  6716  		{
  6717  			size, err := m.Member.MarshalToSizedBuffer(dAtA[:i])
  6718  			if err != nil {
  6719  				return 0, err
  6720  			}
  6721  			i -= size
  6722  			i = encodeVarintPb(dAtA, i, uint64(size))
  6723  		}
  6724  		i--
  6725  		dAtA[i] = 0xa
  6726  	}
  6727  	return len(dAtA) - i, nil
  6728  }
  6729  
  6730  func (m *Tablet) Marshal() (dAtA []byte, err error) {
  6731  	size := m.Size()
  6732  	dAtA = make([]byte, size)
  6733  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6734  	if err != nil {
  6735  		return nil, err
  6736  	}
  6737  	return dAtA[:n], nil
  6738  }
  6739  
  6740  func (m *Tablet) MarshalTo(dAtA []byte) (int, error) {
  6741  	size := m.Size()
  6742  	return m.MarshalToSizedBuffer(dAtA[:size])
  6743  }
  6744  
  6745  func (m *Tablet) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6746  	i := len(dAtA)
  6747  	_ = i
  6748  	var l int
  6749  	_ = l
  6750  	if m.XXX_unrecognized != nil {
  6751  		i -= len(m.XXX_unrecognized)
  6752  		copy(dAtA[i:], m.XXX_unrecognized)
  6753  	}
  6754  	if m.ReadOnly {
  6755  		i--
  6756  		if m.ReadOnly {
  6757  			dAtA[i] = 1
  6758  		} else {
  6759  			dAtA[i] = 0
  6760  		}
  6761  		i--
  6762  		dAtA[i] = 0x48
  6763  	}
  6764  	if m.Remove {
  6765  		i--
  6766  		if m.Remove {
  6767  			dAtA[i] = 1
  6768  		} else {
  6769  			dAtA[i] = 0
  6770  		}
  6771  		i--
  6772  		dAtA[i] = 0x40
  6773  	}
  6774  	if m.Space != 0 {
  6775  		i = encodeVarintPb(dAtA, i, uint64(m.Space))
  6776  		i--
  6777  		dAtA[i] = 0x38
  6778  	}
  6779  	if m.Force {
  6780  		i--
  6781  		if m.Force {
  6782  			dAtA[i] = 1
  6783  		} else {
  6784  			dAtA[i] = 0
  6785  		}
  6786  		i--
  6787  		dAtA[i] = 0x18
  6788  	}
  6789  	if len(m.Predicate) > 0 {
  6790  		i -= len(m.Predicate)
  6791  		copy(dAtA[i:], m.Predicate)
  6792  		i = encodeVarintPb(dAtA, i, uint64(len(m.Predicate)))
  6793  		i--
  6794  		dAtA[i] = 0x12
  6795  	}
  6796  	if m.GroupId != 0 {
  6797  		i = encodeVarintPb(dAtA, i, uint64(m.GroupId))
  6798  		i--
  6799  		dAtA[i] = 0x8
  6800  	}
  6801  	return len(dAtA) - i, nil
  6802  }
  6803  
  6804  func (m *DirectedEdge) Marshal() (dAtA []byte, err error) {
  6805  	size := m.Size()
  6806  	dAtA = make([]byte, size)
  6807  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6808  	if err != nil {
  6809  		return nil, err
  6810  	}
  6811  	return dAtA[:n], nil
  6812  }
  6813  
  6814  func (m *DirectedEdge) MarshalTo(dAtA []byte) (int, error) {
  6815  	size := m.Size()
  6816  	return m.MarshalToSizedBuffer(dAtA[:size])
  6817  }
  6818  
  6819  func (m *DirectedEdge) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6820  	i := len(dAtA)
  6821  	_ = i
  6822  	var l int
  6823  	_ = l
  6824  	if m.XXX_unrecognized != nil {
  6825  		i -= len(m.XXX_unrecognized)
  6826  		copy(dAtA[i:], m.XXX_unrecognized)
  6827  	}
  6828  	if len(m.Facets) > 0 {
  6829  		for iNdEx := len(m.Facets) - 1; iNdEx >= 0; iNdEx-- {
  6830  			{
  6831  				size, err := m.Facets[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  6832  				if err != nil {
  6833  					return 0, err
  6834  				}
  6835  				i -= size
  6836  				i = encodeVarintPb(dAtA, i, uint64(size))
  6837  			}
  6838  			i--
  6839  			dAtA[i] = 0x4a
  6840  		}
  6841  	}
  6842  	if m.Op != 0 {
  6843  		i = encodeVarintPb(dAtA, i, uint64(m.Op))
  6844  		i--
  6845  		dAtA[i] = 0x40
  6846  	}
  6847  	if len(m.Lang) > 0 {
  6848  		i -= len(m.Lang)
  6849  		copy(dAtA[i:], m.Lang)
  6850  		i = encodeVarintPb(dAtA, i, uint64(len(m.Lang)))
  6851  		i--
  6852  		dAtA[i] = 0x3a
  6853  	}
  6854  	if len(m.Label) > 0 {
  6855  		i -= len(m.Label)
  6856  		copy(dAtA[i:], m.Label)
  6857  		i = encodeVarintPb(dAtA, i, uint64(len(m.Label)))
  6858  		i--
  6859  		dAtA[i] = 0x32
  6860  	}
  6861  	if m.ValueId != 0 {
  6862  		i -= 8
  6863  		encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.ValueId))
  6864  		i--
  6865  		dAtA[i] = 0x29
  6866  	}
  6867  	if m.ValueType != 0 {
  6868  		i = encodeVarintPb(dAtA, i, uint64(m.ValueType))
  6869  		i--
  6870  		dAtA[i] = 0x20
  6871  	}
  6872  	if len(m.Value) > 0 {
  6873  		i -= len(m.Value)
  6874  		copy(dAtA[i:], m.Value)
  6875  		i = encodeVarintPb(dAtA, i, uint64(len(m.Value)))
  6876  		i--
  6877  		dAtA[i] = 0x1a
  6878  	}
  6879  	if len(m.Attr) > 0 {
  6880  		i -= len(m.Attr)
  6881  		copy(dAtA[i:], m.Attr)
  6882  		i = encodeVarintPb(dAtA, i, uint64(len(m.Attr)))
  6883  		i--
  6884  		dAtA[i] = 0x12
  6885  	}
  6886  	if m.Entity != 0 {
  6887  		i -= 8
  6888  		encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.Entity))
  6889  		i--
  6890  		dAtA[i] = 0x9
  6891  	}
  6892  	return len(dAtA) - i, nil
  6893  }
  6894  
  6895  func (m *Mutations) Marshal() (dAtA []byte, err error) {
  6896  	size := m.Size()
  6897  	dAtA = make([]byte, size)
  6898  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6899  	if err != nil {
  6900  		return nil, err
  6901  	}
  6902  	return dAtA[:n], nil
  6903  }
  6904  
  6905  func (m *Mutations) MarshalTo(dAtA []byte) (int, error) {
  6906  	size := m.Size()
  6907  	return m.MarshalToSizedBuffer(dAtA[:size])
  6908  }
  6909  
  6910  func (m *Mutations) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6911  	i := len(dAtA)
  6912  	_ = i
  6913  	var l int
  6914  	_ = l
  6915  	if m.XXX_unrecognized != nil {
  6916  		i -= len(m.XXX_unrecognized)
  6917  		copy(dAtA[i:], m.XXX_unrecognized)
  6918  	}
  6919  	if len(m.DropValue) > 0 {
  6920  		i -= len(m.DropValue)
  6921  		copy(dAtA[i:], m.DropValue)
  6922  		i = encodeVarintPb(dAtA, i, uint64(len(m.DropValue)))
  6923  		i--
  6924  		dAtA[i] = 0x42
  6925  	}
  6926  	if m.DropOp != 0 {
  6927  		i = encodeVarintPb(dAtA, i, uint64(m.DropOp))
  6928  		i--
  6929  		dAtA[i] = 0x38
  6930  	}
  6931  	if len(m.Types) > 0 {
  6932  		for iNdEx := len(m.Types) - 1; iNdEx >= 0; iNdEx-- {
  6933  			{
  6934  				size, err := m.Types[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  6935  				if err != nil {
  6936  					return 0, err
  6937  				}
  6938  				i -= size
  6939  				i = encodeVarintPb(dAtA, i, uint64(size))
  6940  			}
  6941  			i--
  6942  			dAtA[i] = 0x32
  6943  		}
  6944  	}
  6945  	if len(m.Schema) > 0 {
  6946  		for iNdEx := len(m.Schema) - 1; iNdEx >= 0; iNdEx-- {
  6947  			{
  6948  				size, err := m.Schema[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  6949  				if err != nil {
  6950  					return 0, err
  6951  				}
  6952  				i -= size
  6953  				i = encodeVarintPb(dAtA, i, uint64(size))
  6954  			}
  6955  			i--
  6956  			dAtA[i] = 0x22
  6957  		}
  6958  	}
  6959  	if len(m.Edges) > 0 {
  6960  		for iNdEx := len(m.Edges) - 1; iNdEx >= 0; iNdEx-- {
  6961  			{
  6962  				size, err := m.Edges[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  6963  				if err != nil {
  6964  					return 0, err
  6965  				}
  6966  				i -= size
  6967  				i = encodeVarintPb(dAtA, i, uint64(size))
  6968  			}
  6969  			i--
  6970  			dAtA[i] = 0x1a
  6971  		}
  6972  	}
  6973  	if m.StartTs != 0 {
  6974  		i = encodeVarintPb(dAtA, i, uint64(m.StartTs))
  6975  		i--
  6976  		dAtA[i] = 0x10
  6977  	}
  6978  	if m.GroupId != 0 {
  6979  		i = encodeVarintPb(dAtA, i, uint64(m.GroupId))
  6980  		i--
  6981  		dAtA[i] = 0x8
  6982  	}
  6983  	return len(dAtA) - i, nil
  6984  }
  6985  
  6986  func (m *Snapshot) Marshal() (dAtA []byte, err error) {
  6987  	size := m.Size()
  6988  	dAtA = make([]byte, size)
  6989  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6990  	if err != nil {
  6991  		return nil, err
  6992  	}
  6993  	return dAtA[:n], nil
  6994  }
  6995  
  6996  func (m *Snapshot) MarshalTo(dAtA []byte) (int, error) {
  6997  	size := m.Size()
  6998  	return m.MarshalToSizedBuffer(dAtA[:size])
  6999  }
  7000  
  7001  func (m *Snapshot) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7002  	i := len(dAtA)
  7003  	_ = i
  7004  	var l int
  7005  	_ = l
  7006  	if m.XXX_unrecognized != nil {
  7007  		i -= len(m.XXX_unrecognized)
  7008  		copy(dAtA[i:], m.XXX_unrecognized)
  7009  	}
  7010  	if m.SinceTs != 0 {
  7011  		i = encodeVarintPb(dAtA, i, uint64(m.SinceTs))
  7012  		i--
  7013  		dAtA[i] = 0x28
  7014  	}
  7015  	if m.Done {
  7016  		i--
  7017  		if m.Done {
  7018  			dAtA[i] = 1
  7019  		} else {
  7020  			dAtA[i] = 0
  7021  		}
  7022  		i--
  7023  		dAtA[i] = 0x20
  7024  	}
  7025  	if m.ReadTs != 0 {
  7026  		i = encodeVarintPb(dAtA, i, uint64(m.ReadTs))
  7027  		i--
  7028  		dAtA[i] = 0x18
  7029  	}
  7030  	if m.Index != 0 {
  7031  		i = encodeVarintPb(dAtA, i, uint64(m.Index))
  7032  		i--
  7033  		dAtA[i] = 0x10
  7034  	}
  7035  	if m.Context != nil {
  7036  		{
  7037  			size, err := m.Context.MarshalToSizedBuffer(dAtA[:i])
  7038  			if err != nil {
  7039  				return 0, err
  7040  			}
  7041  			i -= size
  7042  			i = encodeVarintPb(dAtA, i, uint64(size))
  7043  		}
  7044  		i--
  7045  		dAtA[i] = 0xa
  7046  	}
  7047  	return len(dAtA) - i, nil
  7048  }
  7049  
  7050  func (m *Proposal) Marshal() (dAtA []byte, err error) {
  7051  	size := m.Size()
  7052  	dAtA = make([]byte, size)
  7053  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7054  	if err != nil {
  7055  		return nil, err
  7056  	}
  7057  	return dAtA[:n], nil
  7058  }
  7059  
  7060  func (m *Proposal) MarshalTo(dAtA []byte) (int, error) {
  7061  	size := m.Size()
  7062  	return m.MarshalToSizedBuffer(dAtA[:size])
  7063  }
  7064  
  7065  func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7066  	i := len(dAtA)
  7067  	_ = i
  7068  	var l int
  7069  	_ = l
  7070  	if m.XXX_unrecognized != nil {
  7071  		i -= len(m.XXX_unrecognized)
  7072  		copy(dAtA[i:], m.XXX_unrecognized)
  7073  	}
  7074  	if m.Index != 0 {
  7075  		i = encodeVarintPb(dAtA, i, uint64(m.Index))
  7076  		i--
  7077  		dAtA[i] = 0x50
  7078  	}
  7079  	if m.Snapshot != nil {
  7080  		{
  7081  			size, err := m.Snapshot.MarshalToSizedBuffer(dAtA[:i])
  7082  			if err != nil {
  7083  				return 0, err
  7084  			}
  7085  			i -= size
  7086  			i = encodeVarintPb(dAtA, i, uint64(size))
  7087  		}
  7088  		i--
  7089  		dAtA[i] = 0x4a
  7090  	}
  7091  	if m.Delta != nil {
  7092  		{
  7093  			size, err := m.Delta.MarshalToSizedBuffer(dAtA[:i])
  7094  			if err != nil {
  7095  				return 0, err
  7096  			}
  7097  			i -= size
  7098  			i = encodeVarintPb(dAtA, i, uint64(size))
  7099  		}
  7100  		i--
  7101  		dAtA[i] = 0x42
  7102  	}
  7103  	if len(m.Key) > 0 {
  7104  		i -= len(m.Key)
  7105  		copy(dAtA[i:], m.Key)
  7106  		i = encodeVarintPb(dAtA, i, uint64(len(m.Key)))
  7107  		i--
  7108  		dAtA[i] = 0x3a
  7109  	}
  7110  	if len(m.CleanPredicate) > 0 {
  7111  		i -= len(m.CleanPredicate)
  7112  		copy(dAtA[i:], m.CleanPredicate)
  7113  		i = encodeVarintPb(dAtA, i, uint64(len(m.CleanPredicate)))
  7114  		i--
  7115  		dAtA[i] = 0x32
  7116  	}
  7117  	if m.State != nil {
  7118  		{
  7119  			size, err := m.State.MarshalToSizedBuffer(dAtA[:i])
  7120  			if err != nil {
  7121  				return 0, err
  7122  			}
  7123  			i -= size
  7124  			i = encodeVarintPb(dAtA, i, uint64(size))
  7125  		}
  7126  		i--
  7127  		dAtA[i] = 0x2a
  7128  	}
  7129  	if len(m.Kv) > 0 {
  7130  		for iNdEx := len(m.Kv) - 1; iNdEx >= 0; iNdEx-- {
  7131  			{
  7132  				size, err := m.Kv[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  7133  				if err != nil {
  7134  					return 0, err
  7135  				}
  7136  				i -= size
  7137  				i = encodeVarintPb(dAtA, i, uint64(size))
  7138  			}
  7139  			i--
  7140  			dAtA[i] = 0x22
  7141  		}
  7142  	}
  7143  	if m.Mutations != nil {
  7144  		{
  7145  			size, err := m.Mutations.MarshalToSizedBuffer(dAtA[:i])
  7146  			if err != nil {
  7147  				return 0, err
  7148  			}
  7149  			i -= size
  7150  			i = encodeVarintPb(dAtA, i, uint64(size))
  7151  		}
  7152  		i--
  7153  		dAtA[i] = 0x12
  7154  	}
  7155  	return len(dAtA) - i, nil
  7156  }
  7157  
  7158  func (m *KVS) Marshal() (dAtA []byte, err error) {
  7159  	size := m.Size()
  7160  	dAtA = make([]byte, size)
  7161  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7162  	if err != nil {
  7163  		return nil, err
  7164  	}
  7165  	return dAtA[:n], nil
  7166  }
  7167  
  7168  func (m *KVS) MarshalTo(dAtA []byte) (int, error) {
  7169  	size := m.Size()
  7170  	return m.MarshalToSizedBuffer(dAtA[:size])
  7171  }
  7172  
  7173  func (m *KVS) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7174  	i := len(dAtA)
  7175  	_ = i
  7176  	var l int
  7177  	_ = l
  7178  	if m.XXX_unrecognized != nil {
  7179  		i -= len(m.XXX_unrecognized)
  7180  		copy(dAtA[i:], m.XXX_unrecognized)
  7181  	}
  7182  	if m.Done {
  7183  		i--
  7184  		if m.Done {
  7185  			dAtA[i] = 1
  7186  		} else {
  7187  			dAtA[i] = 0
  7188  		}
  7189  		i--
  7190  		dAtA[i] = 0x10
  7191  	}
  7192  	if len(m.Kv) > 0 {
  7193  		for iNdEx := len(m.Kv) - 1; iNdEx >= 0; iNdEx-- {
  7194  			{
  7195  				size, err := m.Kv[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  7196  				if err != nil {
  7197  					return 0, err
  7198  				}
  7199  				i -= size
  7200  				i = encodeVarintPb(dAtA, i, uint64(size))
  7201  			}
  7202  			i--
  7203  			dAtA[i] = 0xa
  7204  		}
  7205  	}
  7206  	return len(dAtA) - i, nil
  7207  }
  7208  
  7209  func (m *Posting) Marshal() (dAtA []byte, err error) {
  7210  	size := m.Size()
  7211  	dAtA = make([]byte, size)
  7212  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7213  	if err != nil {
  7214  		return nil, err
  7215  	}
  7216  	return dAtA[:n], nil
  7217  }
  7218  
  7219  func (m *Posting) MarshalTo(dAtA []byte) (int, error) {
  7220  	size := m.Size()
  7221  	return m.MarshalToSizedBuffer(dAtA[:size])
  7222  }
  7223  
  7224  func (m *Posting) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7225  	i := len(dAtA)
  7226  	_ = i
  7227  	var l int
  7228  	_ = l
  7229  	if m.XXX_unrecognized != nil {
  7230  		i -= len(m.XXX_unrecognized)
  7231  		copy(dAtA[i:], m.XXX_unrecognized)
  7232  	}
  7233  	if m.CommitTs != 0 {
  7234  		i = encodeVarintPb(dAtA, i, uint64(m.CommitTs))
  7235  		i--
  7236  		dAtA[i] = 0x70
  7237  	}
  7238  	if m.StartTs != 0 {
  7239  		i = encodeVarintPb(dAtA, i, uint64(m.StartTs))
  7240  		i--
  7241  		dAtA[i] = 0x68
  7242  	}
  7243  	if m.Op != 0 {
  7244  		i = encodeVarintPb(dAtA, i, uint64(m.Op))
  7245  		i--
  7246  		dAtA[i] = 0x60
  7247  	}
  7248  	if len(m.Facets) > 0 {
  7249  		for iNdEx := len(m.Facets) - 1; iNdEx >= 0; iNdEx-- {
  7250  			{
  7251  				size, err := m.Facets[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  7252  				if err != nil {
  7253  					return 0, err
  7254  				}
  7255  				i -= size
  7256  				i = encodeVarintPb(dAtA, i, uint64(size))
  7257  			}
  7258  			i--
  7259  			dAtA[i] = 0x4a
  7260  		}
  7261  	}
  7262  	if len(m.Label) > 0 {
  7263  		i -= len(m.Label)
  7264  		copy(dAtA[i:], m.Label)
  7265  		i = encodeVarintPb(dAtA, i, uint64(len(m.Label)))
  7266  		i--
  7267  		dAtA[i] = 0x32
  7268  	}
  7269  	if len(m.LangTag) > 0 {
  7270  		i -= len(m.LangTag)
  7271  		copy(dAtA[i:], m.LangTag)
  7272  		i = encodeVarintPb(dAtA, i, uint64(len(m.LangTag)))
  7273  		i--
  7274  		dAtA[i] = 0x2a
  7275  	}
  7276  	if m.PostingType != 0 {
  7277  		i = encodeVarintPb(dAtA, i, uint64(m.PostingType))
  7278  		i--
  7279  		dAtA[i] = 0x20
  7280  	}
  7281  	if m.ValType != 0 {
  7282  		i = encodeVarintPb(dAtA, i, uint64(m.ValType))
  7283  		i--
  7284  		dAtA[i] = 0x18
  7285  	}
  7286  	if len(m.Value) > 0 {
  7287  		i -= len(m.Value)
  7288  		copy(dAtA[i:], m.Value)
  7289  		i = encodeVarintPb(dAtA, i, uint64(len(m.Value)))
  7290  		i--
  7291  		dAtA[i] = 0x12
  7292  	}
  7293  	if m.Uid != 0 {
  7294  		i -= 8
  7295  		encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.Uid))
  7296  		i--
  7297  		dAtA[i] = 0x9
  7298  	}
  7299  	return len(dAtA) - i, nil
  7300  }
  7301  
  7302  func (m *UidBlock) Marshal() (dAtA []byte, err error) {
  7303  	size := m.Size()
  7304  	dAtA = make([]byte, size)
  7305  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7306  	if err != nil {
  7307  		return nil, err
  7308  	}
  7309  	return dAtA[:n], nil
  7310  }
  7311  
  7312  func (m *UidBlock) MarshalTo(dAtA []byte) (int, error) {
  7313  	size := m.Size()
  7314  	return m.MarshalToSizedBuffer(dAtA[:size])
  7315  }
  7316  
  7317  func (m *UidBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7318  	i := len(dAtA)
  7319  	_ = i
  7320  	var l int
  7321  	_ = l
  7322  	if m.XXX_unrecognized != nil {
  7323  		i -= len(m.XXX_unrecognized)
  7324  		copy(dAtA[i:], m.XXX_unrecognized)
  7325  	}
  7326  	if m.NumUids != 0 {
  7327  		i = encodeVarintPb(dAtA, i, uint64(m.NumUids))
  7328  		i--
  7329  		dAtA[i] = 0x18
  7330  	}
  7331  	if len(m.Deltas) > 0 {
  7332  		i -= len(m.Deltas)
  7333  		copy(dAtA[i:], m.Deltas)
  7334  		i = encodeVarintPb(dAtA, i, uint64(len(m.Deltas)))
  7335  		i--
  7336  		dAtA[i] = 0x12
  7337  	}
  7338  	if m.Base != 0 {
  7339  		i = encodeVarintPb(dAtA, i, uint64(m.Base))
  7340  		i--
  7341  		dAtA[i] = 0x8
  7342  	}
  7343  	return len(dAtA) - i, nil
  7344  }
  7345  
  7346  func (m *UidPack) Marshal() (dAtA []byte, err error) {
  7347  	size := m.Size()
  7348  	dAtA = make([]byte, size)
  7349  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7350  	if err != nil {
  7351  		return nil, err
  7352  	}
  7353  	return dAtA[:n], nil
  7354  }
  7355  
  7356  func (m *UidPack) MarshalTo(dAtA []byte) (int, error) {
  7357  	size := m.Size()
  7358  	return m.MarshalToSizedBuffer(dAtA[:size])
  7359  }
  7360  
  7361  func (m *UidPack) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7362  	i := len(dAtA)
  7363  	_ = i
  7364  	var l int
  7365  	_ = l
  7366  	if m.XXX_unrecognized != nil {
  7367  		i -= len(m.XXX_unrecognized)
  7368  		copy(dAtA[i:], m.XXX_unrecognized)
  7369  	}
  7370  	if len(m.Blocks) > 0 {
  7371  		for iNdEx := len(m.Blocks) - 1; iNdEx >= 0; iNdEx-- {
  7372  			{
  7373  				size, err := m.Blocks[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  7374  				if err != nil {
  7375  					return 0, err
  7376  				}
  7377  				i -= size
  7378  				i = encodeVarintPb(dAtA, i, uint64(size))
  7379  			}
  7380  			i--
  7381  			dAtA[i] = 0x12
  7382  		}
  7383  	}
  7384  	if m.BlockSize != 0 {
  7385  		i = encodeVarintPb(dAtA, i, uint64(m.BlockSize))
  7386  		i--
  7387  		dAtA[i] = 0x8
  7388  	}
  7389  	return len(dAtA) - i, nil
  7390  }
  7391  
  7392  func (m *PostingList) Marshal() (dAtA []byte, err error) {
  7393  	size := m.Size()
  7394  	dAtA = make([]byte, size)
  7395  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7396  	if err != nil {
  7397  		return nil, err
  7398  	}
  7399  	return dAtA[:n], nil
  7400  }
  7401  
  7402  func (m *PostingList) MarshalTo(dAtA []byte) (int, error) {
  7403  	size := m.Size()
  7404  	return m.MarshalToSizedBuffer(dAtA[:size])
  7405  }
  7406  
  7407  func (m *PostingList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7408  	i := len(dAtA)
  7409  	_ = i
  7410  	var l int
  7411  	_ = l
  7412  	if m.XXX_unrecognized != nil {
  7413  		i -= len(m.XXX_unrecognized)
  7414  		copy(dAtA[i:], m.XXX_unrecognized)
  7415  	}
  7416  	if len(m.Splits) > 0 {
  7417  		dAtA24 := make([]byte, len(m.Splits)*10)
  7418  		var j23 int
  7419  		for _, num := range m.Splits {
  7420  			for num >= 1<<7 {
  7421  				dAtA24[j23] = uint8(uint64(num)&0x7f | 0x80)
  7422  				num >>= 7
  7423  				j23++
  7424  			}
  7425  			dAtA24[j23] = uint8(num)
  7426  			j23++
  7427  		}
  7428  		i -= j23
  7429  		copy(dAtA[i:], dAtA24[:j23])
  7430  		i = encodeVarintPb(dAtA, i, uint64(j23))
  7431  		i--
  7432  		dAtA[i] = 0x22
  7433  	}
  7434  	if m.CommitTs != 0 {
  7435  		i = encodeVarintPb(dAtA, i, uint64(m.CommitTs))
  7436  		i--
  7437  		dAtA[i] = 0x18
  7438  	}
  7439  	if len(m.Postings) > 0 {
  7440  		for iNdEx := len(m.Postings) - 1; iNdEx >= 0; iNdEx-- {
  7441  			{
  7442  				size, err := m.Postings[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  7443  				if err != nil {
  7444  					return 0, err
  7445  				}
  7446  				i -= size
  7447  				i = encodeVarintPb(dAtA, i, uint64(size))
  7448  			}
  7449  			i--
  7450  			dAtA[i] = 0x12
  7451  		}
  7452  	}
  7453  	if m.Pack != nil {
  7454  		{
  7455  			size, err := m.Pack.MarshalToSizedBuffer(dAtA[:i])
  7456  			if err != nil {
  7457  				return 0, err
  7458  			}
  7459  			i -= size
  7460  			i = encodeVarintPb(dAtA, i, uint64(size))
  7461  		}
  7462  		i--
  7463  		dAtA[i] = 0xa
  7464  	}
  7465  	return len(dAtA) - i, nil
  7466  }
  7467  
  7468  func (m *FacetParam) Marshal() (dAtA []byte, err error) {
  7469  	size := m.Size()
  7470  	dAtA = make([]byte, size)
  7471  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7472  	if err != nil {
  7473  		return nil, err
  7474  	}
  7475  	return dAtA[:n], nil
  7476  }
  7477  
  7478  func (m *FacetParam) MarshalTo(dAtA []byte) (int, error) {
  7479  	size := m.Size()
  7480  	return m.MarshalToSizedBuffer(dAtA[:size])
  7481  }
  7482  
  7483  func (m *FacetParam) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7484  	i := len(dAtA)
  7485  	_ = i
  7486  	var l int
  7487  	_ = l
  7488  	if m.XXX_unrecognized != nil {
  7489  		i -= len(m.XXX_unrecognized)
  7490  		copy(dAtA[i:], m.XXX_unrecognized)
  7491  	}
  7492  	if len(m.Alias) > 0 {
  7493  		i -= len(m.Alias)
  7494  		copy(dAtA[i:], m.Alias)
  7495  		i = encodeVarintPb(dAtA, i, uint64(len(m.Alias)))
  7496  		i--
  7497  		dAtA[i] = 0x12
  7498  	}
  7499  	if len(m.Key) > 0 {
  7500  		i -= len(m.Key)
  7501  		copy(dAtA[i:], m.Key)
  7502  		i = encodeVarintPb(dAtA, i, uint64(len(m.Key)))
  7503  		i--
  7504  		dAtA[i] = 0xa
  7505  	}
  7506  	return len(dAtA) - i, nil
  7507  }
  7508  
  7509  func (m *FacetParams) Marshal() (dAtA []byte, err error) {
  7510  	size := m.Size()
  7511  	dAtA = make([]byte, size)
  7512  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7513  	if err != nil {
  7514  		return nil, err
  7515  	}
  7516  	return dAtA[:n], nil
  7517  }
  7518  
  7519  func (m *FacetParams) MarshalTo(dAtA []byte) (int, error) {
  7520  	size := m.Size()
  7521  	return m.MarshalToSizedBuffer(dAtA[:size])
  7522  }
  7523  
  7524  func (m *FacetParams) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7525  	i := len(dAtA)
  7526  	_ = i
  7527  	var l int
  7528  	_ = l
  7529  	if m.XXX_unrecognized != nil {
  7530  		i -= len(m.XXX_unrecognized)
  7531  		copy(dAtA[i:], m.XXX_unrecognized)
  7532  	}
  7533  	if len(m.Param) > 0 {
  7534  		for iNdEx := len(m.Param) - 1; iNdEx >= 0; iNdEx-- {
  7535  			{
  7536  				size, err := m.Param[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  7537  				if err != nil {
  7538  					return 0, err
  7539  				}
  7540  				i -= size
  7541  				i = encodeVarintPb(dAtA, i, uint64(size))
  7542  			}
  7543  			i--
  7544  			dAtA[i] = 0x12
  7545  		}
  7546  	}
  7547  	if m.AllKeys {
  7548  		i--
  7549  		if m.AllKeys {
  7550  			dAtA[i] = 1
  7551  		} else {
  7552  			dAtA[i] = 0
  7553  		}
  7554  		i--
  7555  		dAtA[i] = 0x8
  7556  	}
  7557  	return len(dAtA) - i, nil
  7558  }
  7559  
  7560  func (m *Facets) Marshal() (dAtA []byte, err error) {
  7561  	size := m.Size()
  7562  	dAtA = make([]byte, size)
  7563  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7564  	if err != nil {
  7565  		return nil, err
  7566  	}
  7567  	return dAtA[:n], nil
  7568  }
  7569  
  7570  func (m *Facets) MarshalTo(dAtA []byte) (int, error) {
  7571  	size := m.Size()
  7572  	return m.MarshalToSizedBuffer(dAtA[:size])
  7573  }
  7574  
  7575  func (m *Facets) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7576  	i := len(dAtA)
  7577  	_ = i
  7578  	var l int
  7579  	_ = l
  7580  	if m.XXX_unrecognized != nil {
  7581  		i -= len(m.XXX_unrecognized)
  7582  		copy(dAtA[i:], m.XXX_unrecognized)
  7583  	}
  7584  	if len(m.Facets) > 0 {
  7585  		for iNdEx := len(m.Facets) - 1; iNdEx >= 0; iNdEx-- {
  7586  			{
  7587  				size, err := m.Facets[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  7588  				if err != nil {
  7589  					return 0, err
  7590  				}
  7591  				i -= size
  7592  				i = encodeVarintPb(dAtA, i, uint64(size))
  7593  			}
  7594  			i--
  7595  			dAtA[i] = 0xa
  7596  		}
  7597  	}
  7598  	return len(dAtA) - i, nil
  7599  }
  7600  
  7601  func (m *FacetsList) Marshal() (dAtA []byte, err error) {
  7602  	size := m.Size()
  7603  	dAtA = make([]byte, size)
  7604  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7605  	if err != nil {
  7606  		return nil, err
  7607  	}
  7608  	return dAtA[:n], nil
  7609  }
  7610  
  7611  func (m *FacetsList) MarshalTo(dAtA []byte) (int, error) {
  7612  	size := m.Size()
  7613  	return m.MarshalToSizedBuffer(dAtA[:size])
  7614  }
  7615  
  7616  func (m *FacetsList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7617  	i := len(dAtA)
  7618  	_ = i
  7619  	var l int
  7620  	_ = l
  7621  	if m.XXX_unrecognized != nil {
  7622  		i -= len(m.XXX_unrecognized)
  7623  		copy(dAtA[i:], m.XXX_unrecognized)
  7624  	}
  7625  	if len(m.FacetsList) > 0 {
  7626  		for iNdEx := len(m.FacetsList) - 1; iNdEx >= 0; iNdEx-- {
  7627  			{
  7628  				size, err := m.FacetsList[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  7629  				if err != nil {
  7630  					return 0, err
  7631  				}
  7632  				i -= size
  7633  				i = encodeVarintPb(dAtA, i, uint64(size))
  7634  			}
  7635  			i--
  7636  			dAtA[i] = 0xa
  7637  		}
  7638  	}
  7639  	return len(dAtA) - i, nil
  7640  }
  7641  
  7642  func (m *Function) Marshal() (dAtA []byte, err error) {
  7643  	size := m.Size()
  7644  	dAtA = make([]byte, size)
  7645  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7646  	if err != nil {
  7647  		return nil, err
  7648  	}
  7649  	return dAtA[:n], nil
  7650  }
  7651  
  7652  func (m *Function) MarshalTo(dAtA []byte) (int, error) {
  7653  	size := m.Size()
  7654  	return m.MarshalToSizedBuffer(dAtA[:size])
  7655  }
  7656  
  7657  func (m *Function) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7658  	i := len(dAtA)
  7659  	_ = i
  7660  	var l int
  7661  	_ = l
  7662  	if m.XXX_unrecognized != nil {
  7663  		i -= len(m.XXX_unrecognized)
  7664  		copy(dAtA[i:], m.XXX_unrecognized)
  7665  	}
  7666  	if len(m.Args) > 0 {
  7667  		for iNdEx := len(m.Args) - 1; iNdEx >= 0; iNdEx-- {
  7668  			i -= len(m.Args[iNdEx])
  7669  			copy(dAtA[i:], m.Args[iNdEx])
  7670  			i = encodeVarintPb(dAtA, i, uint64(len(m.Args[iNdEx])))
  7671  			i--
  7672  			dAtA[i] = 0x1a
  7673  		}
  7674  	}
  7675  	if len(m.Key) > 0 {
  7676  		i -= len(m.Key)
  7677  		copy(dAtA[i:], m.Key)
  7678  		i = encodeVarintPb(dAtA, i, uint64(len(m.Key)))
  7679  		i--
  7680  		dAtA[i] = 0x12
  7681  	}
  7682  	if len(m.Name) > 0 {
  7683  		i -= len(m.Name)
  7684  		copy(dAtA[i:], m.Name)
  7685  		i = encodeVarintPb(dAtA, i, uint64(len(m.Name)))
  7686  		i--
  7687  		dAtA[i] = 0xa
  7688  	}
  7689  	return len(dAtA) - i, nil
  7690  }
  7691  
  7692  func (m *FilterTree) Marshal() (dAtA []byte, err error) {
  7693  	size := m.Size()
  7694  	dAtA = make([]byte, size)
  7695  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7696  	if err != nil {
  7697  		return nil, err
  7698  	}
  7699  	return dAtA[:n], nil
  7700  }
  7701  
  7702  func (m *FilterTree) MarshalTo(dAtA []byte) (int, error) {
  7703  	size := m.Size()
  7704  	return m.MarshalToSizedBuffer(dAtA[:size])
  7705  }
  7706  
  7707  func (m *FilterTree) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7708  	i := len(dAtA)
  7709  	_ = i
  7710  	var l int
  7711  	_ = l
  7712  	if m.XXX_unrecognized != nil {
  7713  		i -= len(m.XXX_unrecognized)
  7714  		copy(dAtA[i:], m.XXX_unrecognized)
  7715  	}
  7716  	if m.Func != nil {
  7717  		{
  7718  			size, err := m.Func.MarshalToSizedBuffer(dAtA[:i])
  7719  			if err != nil {
  7720  				return 0, err
  7721  			}
  7722  			i -= size
  7723  			i = encodeVarintPb(dAtA, i, uint64(size))
  7724  		}
  7725  		i--
  7726  		dAtA[i] = 0x1a
  7727  	}
  7728  	if len(m.Children) > 0 {
  7729  		for iNdEx := len(m.Children) - 1; iNdEx >= 0; iNdEx-- {
  7730  			{
  7731  				size, err := m.Children[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  7732  				if err != nil {
  7733  					return 0, err
  7734  				}
  7735  				i -= size
  7736  				i = encodeVarintPb(dAtA, i, uint64(size))
  7737  			}
  7738  			i--
  7739  			dAtA[i] = 0x12
  7740  		}
  7741  	}
  7742  	if len(m.Op) > 0 {
  7743  		i -= len(m.Op)
  7744  		copy(dAtA[i:], m.Op)
  7745  		i = encodeVarintPb(dAtA, i, uint64(len(m.Op)))
  7746  		i--
  7747  		dAtA[i] = 0xa
  7748  	}
  7749  	return len(dAtA) - i, nil
  7750  }
  7751  
  7752  func (m *SchemaRequest) Marshal() (dAtA []byte, err error) {
  7753  	size := m.Size()
  7754  	dAtA = make([]byte, size)
  7755  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7756  	if err != nil {
  7757  		return nil, err
  7758  	}
  7759  	return dAtA[:n], nil
  7760  }
  7761  
  7762  func (m *SchemaRequest) MarshalTo(dAtA []byte) (int, error) {
  7763  	size := m.Size()
  7764  	return m.MarshalToSizedBuffer(dAtA[:size])
  7765  }
  7766  
  7767  func (m *SchemaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7768  	i := len(dAtA)
  7769  	_ = i
  7770  	var l int
  7771  	_ = l
  7772  	if m.XXX_unrecognized != nil {
  7773  		i -= len(m.XXX_unrecognized)
  7774  		copy(dAtA[i:], m.XXX_unrecognized)
  7775  	}
  7776  	if len(m.Types) > 0 {
  7777  		for iNdEx := len(m.Types) - 1; iNdEx >= 0; iNdEx-- {
  7778  			i -= len(m.Types[iNdEx])
  7779  			copy(dAtA[i:], m.Types[iNdEx])
  7780  			i = encodeVarintPb(dAtA, i, uint64(len(m.Types[iNdEx])))
  7781  			i--
  7782  			dAtA[i] = 0x22
  7783  		}
  7784  	}
  7785  	if len(m.Fields) > 0 {
  7786  		for iNdEx := len(m.Fields) - 1; iNdEx >= 0; iNdEx-- {
  7787  			i -= len(m.Fields[iNdEx])
  7788  			copy(dAtA[i:], m.Fields[iNdEx])
  7789  			i = encodeVarintPb(dAtA, i, uint64(len(m.Fields[iNdEx])))
  7790  			i--
  7791  			dAtA[i] = 0x1a
  7792  		}
  7793  	}
  7794  	if len(m.Predicates) > 0 {
  7795  		for iNdEx := len(m.Predicates) - 1; iNdEx >= 0; iNdEx-- {
  7796  			i -= len(m.Predicates[iNdEx])
  7797  			copy(dAtA[i:], m.Predicates[iNdEx])
  7798  			i = encodeVarintPb(dAtA, i, uint64(len(m.Predicates[iNdEx])))
  7799  			i--
  7800  			dAtA[i] = 0x12
  7801  		}
  7802  	}
  7803  	if m.GroupId != 0 {
  7804  		i = encodeVarintPb(dAtA, i, uint64(m.GroupId))
  7805  		i--
  7806  		dAtA[i] = 0x8
  7807  	}
  7808  	return len(dAtA) - i, nil
  7809  }
  7810  
  7811  func (m *SchemaNode) Marshal() (dAtA []byte, err error) {
  7812  	size := m.Size()
  7813  	dAtA = make([]byte, size)
  7814  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7815  	if err != nil {
  7816  		return nil, err
  7817  	}
  7818  	return dAtA[:n], nil
  7819  }
  7820  
  7821  func (m *SchemaNode) MarshalTo(dAtA []byte) (int, error) {
  7822  	size := m.Size()
  7823  	return m.MarshalToSizedBuffer(dAtA[:size])
  7824  }
  7825  
  7826  func (m *SchemaNode) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7827  	i := len(dAtA)
  7828  	_ = i
  7829  	var l int
  7830  	_ = l
  7831  	if m.XXX_unrecognized != nil {
  7832  		i -= len(m.XXX_unrecognized)
  7833  		copy(dAtA[i:], m.XXX_unrecognized)
  7834  	}
  7835  	if m.Lang {
  7836  		i--
  7837  		if m.Lang {
  7838  			dAtA[i] = 1
  7839  		} else {
  7840  			dAtA[i] = 0
  7841  		}
  7842  		i--
  7843  		dAtA[i] = 0x48
  7844  	}
  7845  	if m.Upsert {
  7846  		i--
  7847  		if m.Upsert {
  7848  			dAtA[i] = 1
  7849  		} else {
  7850  			dAtA[i] = 0
  7851  		}
  7852  		i--
  7853  		dAtA[i] = 0x40
  7854  	}
  7855  	if m.List {
  7856  		i--
  7857  		if m.List {
  7858  			dAtA[i] = 1
  7859  		} else {
  7860  			dAtA[i] = 0
  7861  		}
  7862  		i--
  7863  		dAtA[i] = 0x38
  7864  	}
  7865  	if m.Count {
  7866  		i--
  7867  		if m.Count {
  7868  			dAtA[i] = 1
  7869  		} else {
  7870  			dAtA[i] = 0
  7871  		}
  7872  		i--
  7873  		dAtA[i] = 0x30
  7874  	}
  7875  	if m.Reverse {
  7876  		i--
  7877  		if m.Reverse {
  7878  			dAtA[i] = 1
  7879  		} else {
  7880  			dAtA[i] = 0
  7881  		}
  7882  		i--
  7883  		dAtA[i] = 0x28
  7884  	}
  7885  	if len(m.Tokenizer) > 0 {
  7886  		for iNdEx := len(m.Tokenizer) - 1; iNdEx >= 0; iNdEx-- {
  7887  			i -= len(m.Tokenizer[iNdEx])
  7888  			copy(dAtA[i:], m.Tokenizer[iNdEx])
  7889  			i = encodeVarintPb(dAtA, i, uint64(len(m.Tokenizer[iNdEx])))
  7890  			i--
  7891  			dAtA[i] = 0x22
  7892  		}
  7893  	}
  7894  	if m.Index {
  7895  		i--
  7896  		if m.Index {
  7897  			dAtA[i] = 1
  7898  		} else {
  7899  			dAtA[i] = 0
  7900  		}
  7901  		i--
  7902  		dAtA[i] = 0x18
  7903  	}
  7904  	if len(m.Type) > 0 {
  7905  		i -= len(m.Type)
  7906  		copy(dAtA[i:], m.Type)
  7907  		i = encodeVarintPb(dAtA, i, uint64(len(m.Type)))
  7908  		i--
  7909  		dAtA[i] = 0x12
  7910  	}
  7911  	if len(m.Predicate) > 0 {
  7912  		i -= len(m.Predicate)
  7913  		copy(dAtA[i:], m.Predicate)
  7914  		i = encodeVarintPb(dAtA, i, uint64(len(m.Predicate)))
  7915  		i--
  7916  		dAtA[i] = 0xa
  7917  	}
  7918  	return len(dAtA) - i, nil
  7919  }
  7920  
  7921  func (m *SchemaResult) Marshal() (dAtA []byte, err error) {
  7922  	size := m.Size()
  7923  	dAtA = make([]byte, size)
  7924  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7925  	if err != nil {
  7926  		return nil, err
  7927  	}
  7928  	return dAtA[:n], nil
  7929  }
  7930  
  7931  func (m *SchemaResult) MarshalTo(dAtA []byte) (int, error) {
  7932  	size := m.Size()
  7933  	return m.MarshalToSizedBuffer(dAtA[:size])
  7934  }
  7935  
  7936  func (m *SchemaResult) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7937  	i := len(dAtA)
  7938  	_ = i
  7939  	var l int
  7940  	_ = l
  7941  	if m.XXX_unrecognized != nil {
  7942  		i -= len(m.XXX_unrecognized)
  7943  		copy(dAtA[i:], m.XXX_unrecognized)
  7944  	}
  7945  	if len(m.Schema) > 0 {
  7946  		for iNdEx := len(m.Schema) - 1; iNdEx >= 0; iNdEx-- {
  7947  			{
  7948  				size, err := m.Schema[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  7949  				if err != nil {
  7950  					return 0, err
  7951  				}
  7952  				i -= size
  7953  				i = encodeVarintPb(dAtA, i, uint64(size))
  7954  			}
  7955  			i--
  7956  			dAtA[i] = 0xa
  7957  		}
  7958  	}
  7959  	return len(dAtA) - i, nil
  7960  }
  7961  
  7962  func (m *SchemaUpdate) Marshal() (dAtA []byte, err error) {
  7963  	size := m.Size()
  7964  	dAtA = make([]byte, size)
  7965  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  7966  	if err != nil {
  7967  		return nil, err
  7968  	}
  7969  	return dAtA[:n], nil
  7970  }
  7971  
  7972  func (m *SchemaUpdate) MarshalTo(dAtA []byte) (int, error) {
  7973  	size := m.Size()
  7974  	return m.MarshalToSizedBuffer(dAtA[:size])
  7975  }
  7976  
  7977  func (m *SchemaUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  7978  	i := len(dAtA)
  7979  	_ = i
  7980  	var l int
  7981  	_ = l
  7982  	if m.XXX_unrecognized != nil {
  7983  		i -= len(m.XXX_unrecognized)
  7984  		copy(dAtA[i:], m.XXX_unrecognized)
  7985  	}
  7986  	if len(m.ObjectTypeName) > 0 {
  7987  		i -= len(m.ObjectTypeName)
  7988  		copy(dAtA[i:], m.ObjectTypeName)
  7989  		i = encodeVarintPb(dAtA, i, uint64(len(m.ObjectTypeName)))
  7990  		i--
  7991  		dAtA[i] = 0x62
  7992  	}
  7993  	if m.NonNullableList {
  7994  		i--
  7995  		if m.NonNullableList {
  7996  			dAtA[i] = 1
  7997  		} else {
  7998  			dAtA[i] = 0
  7999  		}
  8000  		i--
  8001  		dAtA[i] = 0x58
  8002  	}
  8003  	if m.NonNullable {
  8004  		i--
  8005  		if m.NonNullable {
  8006  			dAtA[i] = 1
  8007  		} else {
  8008  			dAtA[i] = 0
  8009  		}
  8010  		i--
  8011  		dAtA[i] = 0x50
  8012  	}
  8013  	if m.Lang {
  8014  		i--
  8015  		if m.Lang {
  8016  			dAtA[i] = 1
  8017  		} else {
  8018  			dAtA[i] = 0
  8019  		}
  8020  		i--
  8021  		dAtA[i] = 0x48
  8022  	}
  8023  	if m.Upsert {
  8024  		i--
  8025  		if m.Upsert {
  8026  			dAtA[i] = 1
  8027  		} else {
  8028  			dAtA[i] = 0
  8029  		}
  8030  		i--
  8031  		dAtA[i] = 0x40
  8032  	}
  8033  	if m.List {
  8034  		i--
  8035  		if m.List {
  8036  			dAtA[i] = 1
  8037  		} else {
  8038  			dAtA[i] = 0
  8039  		}
  8040  		i--
  8041  		dAtA[i] = 0x30
  8042  	}
  8043  	if m.Count {
  8044  		i--
  8045  		if m.Count {
  8046  			dAtA[i] = 1
  8047  		} else {
  8048  			dAtA[i] = 0
  8049  		}
  8050  		i--
  8051  		dAtA[i] = 0x28
  8052  	}
  8053  	if len(m.Tokenizer) > 0 {
  8054  		for iNdEx := len(m.Tokenizer) - 1; iNdEx >= 0; iNdEx-- {
  8055  			i -= len(m.Tokenizer[iNdEx])
  8056  			copy(dAtA[i:], m.Tokenizer[iNdEx])
  8057  			i = encodeVarintPb(dAtA, i, uint64(len(m.Tokenizer[iNdEx])))
  8058  			i--
  8059  			dAtA[i] = 0x22
  8060  		}
  8061  	}
  8062  	if m.Directive != 0 {
  8063  		i = encodeVarintPb(dAtA, i, uint64(m.Directive))
  8064  		i--
  8065  		dAtA[i] = 0x18
  8066  	}
  8067  	if m.ValueType != 0 {
  8068  		i = encodeVarintPb(dAtA, i, uint64(m.ValueType))
  8069  		i--
  8070  		dAtA[i] = 0x10
  8071  	}
  8072  	if len(m.Predicate) > 0 {
  8073  		i -= len(m.Predicate)
  8074  		copy(dAtA[i:], m.Predicate)
  8075  		i = encodeVarintPb(dAtA, i, uint64(len(m.Predicate)))
  8076  		i--
  8077  		dAtA[i] = 0xa
  8078  	}
  8079  	return len(dAtA) - i, nil
  8080  }
  8081  
  8082  func (m *TypeUpdate) Marshal() (dAtA []byte, err error) {
  8083  	size := m.Size()
  8084  	dAtA = make([]byte, size)
  8085  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8086  	if err != nil {
  8087  		return nil, err
  8088  	}
  8089  	return dAtA[:n], nil
  8090  }
  8091  
  8092  func (m *TypeUpdate) MarshalTo(dAtA []byte) (int, error) {
  8093  	size := m.Size()
  8094  	return m.MarshalToSizedBuffer(dAtA[:size])
  8095  }
  8096  
  8097  func (m *TypeUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8098  	i := len(dAtA)
  8099  	_ = i
  8100  	var l int
  8101  	_ = l
  8102  	if m.XXX_unrecognized != nil {
  8103  		i -= len(m.XXX_unrecognized)
  8104  		copy(dAtA[i:], m.XXX_unrecognized)
  8105  	}
  8106  	if len(m.Fields) > 0 {
  8107  		for iNdEx := len(m.Fields) - 1; iNdEx >= 0; iNdEx-- {
  8108  			{
  8109  				size, err := m.Fields[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  8110  				if err != nil {
  8111  					return 0, err
  8112  				}
  8113  				i -= size
  8114  				i = encodeVarintPb(dAtA, i, uint64(size))
  8115  			}
  8116  			i--
  8117  			dAtA[i] = 0x12
  8118  		}
  8119  	}
  8120  	if len(m.TypeName) > 0 {
  8121  		i -= len(m.TypeName)
  8122  		copy(dAtA[i:], m.TypeName)
  8123  		i = encodeVarintPb(dAtA, i, uint64(len(m.TypeName)))
  8124  		i--
  8125  		dAtA[i] = 0xa
  8126  	}
  8127  	return len(dAtA) - i, nil
  8128  }
  8129  
  8130  func (m *MapEntry) Marshal() (dAtA []byte, err error) {
  8131  	size := m.Size()
  8132  	dAtA = make([]byte, size)
  8133  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8134  	if err != nil {
  8135  		return nil, err
  8136  	}
  8137  	return dAtA[:n], nil
  8138  }
  8139  
  8140  func (m *MapEntry) MarshalTo(dAtA []byte) (int, error) {
  8141  	size := m.Size()
  8142  	return m.MarshalToSizedBuffer(dAtA[:size])
  8143  }
  8144  
  8145  func (m *MapEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8146  	i := len(dAtA)
  8147  	_ = i
  8148  	var l int
  8149  	_ = l
  8150  	if m.XXX_unrecognized != nil {
  8151  		i -= len(m.XXX_unrecognized)
  8152  		copy(dAtA[i:], m.XXX_unrecognized)
  8153  	}
  8154  	if m.Posting != nil {
  8155  		{
  8156  			size, err := m.Posting.MarshalToSizedBuffer(dAtA[:i])
  8157  			if err != nil {
  8158  				return 0, err
  8159  			}
  8160  			i -= size
  8161  			i = encodeVarintPb(dAtA, i, uint64(size))
  8162  		}
  8163  		i--
  8164  		dAtA[i] = 0x1a
  8165  	}
  8166  	if m.Uid != 0 {
  8167  		i -= 8
  8168  		encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.Uid))
  8169  		i--
  8170  		dAtA[i] = 0x11
  8171  	}
  8172  	if len(m.Key) > 0 {
  8173  		i -= len(m.Key)
  8174  		copy(dAtA[i:], m.Key)
  8175  		i = encodeVarintPb(dAtA, i, uint64(len(m.Key)))
  8176  		i--
  8177  		dAtA[i] = 0xa
  8178  	}
  8179  	return len(dAtA) - i, nil
  8180  }
  8181  
  8182  func (m *MovePredicatePayload) Marshal() (dAtA []byte, err error) {
  8183  	size := m.Size()
  8184  	dAtA = make([]byte, size)
  8185  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8186  	if err != nil {
  8187  		return nil, err
  8188  	}
  8189  	return dAtA[:n], nil
  8190  }
  8191  
  8192  func (m *MovePredicatePayload) MarshalTo(dAtA []byte) (int, error) {
  8193  	size := m.Size()
  8194  	return m.MarshalToSizedBuffer(dAtA[:size])
  8195  }
  8196  
  8197  func (m *MovePredicatePayload) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8198  	i := len(dAtA)
  8199  	_ = i
  8200  	var l int
  8201  	_ = l
  8202  	if m.XXX_unrecognized != nil {
  8203  		i -= len(m.XXX_unrecognized)
  8204  		copy(dAtA[i:], m.XXX_unrecognized)
  8205  	}
  8206  	if m.TxnTs != 0 {
  8207  		i = encodeVarintPb(dAtA, i, uint64(m.TxnTs))
  8208  		i--
  8209  		dAtA[i] = 0x20
  8210  	}
  8211  	if m.DestGid != 0 {
  8212  		i = encodeVarintPb(dAtA, i, uint64(m.DestGid))
  8213  		i--
  8214  		dAtA[i] = 0x18
  8215  	}
  8216  	if m.SourceGid != 0 {
  8217  		i = encodeVarintPb(dAtA, i, uint64(m.SourceGid))
  8218  		i--
  8219  		dAtA[i] = 0x10
  8220  	}
  8221  	if len(m.Predicate) > 0 {
  8222  		i -= len(m.Predicate)
  8223  		copy(dAtA[i:], m.Predicate)
  8224  		i = encodeVarintPb(dAtA, i, uint64(len(m.Predicate)))
  8225  		i--
  8226  		dAtA[i] = 0xa
  8227  	}
  8228  	return len(dAtA) - i, nil
  8229  }
  8230  
  8231  func (m *TxnStatus) Marshal() (dAtA []byte, err error) {
  8232  	size := m.Size()
  8233  	dAtA = make([]byte, size)
  8234  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8235  	if err != nil {
  8236  		return nil, err
  8237  	}
  8238  	return dAtA[:n], nil
  8239  }
  8240  
  8241  func (m *TxnStatus) MarshalTo(dAtA []byte) (int, error) {
  8242  	size := m.Size()
  8243  	return m.MarshalToSizedBuffer(dAtA[:size])
  8244  }
  8245  
  8246  func (m *TxnStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8247  	i := len(dAtA)
  8248  	_ = i
  8249  	var l int
  8250  	_ = l
  8251  	if m.XXX_unrecognized != nil {
  8252  		i -= len(m.XXX_unrecognized)
  8253  		copy(dAtA[i:], m.XXX_unrecognized)
  8254  	}
  8255  	if m.CommitTs != 0 {
  8256  		i = encodeVarintPb(dAtA, i, uint64(m.CommitTs))
  8257  		i--
  8258  		dAtA[i] = 0x10
  8259  	}
  8260  	if m.StartTs != 0 {
  8261  		i = encodeVarintPb(dAtA, i, uint64(m.StartTs))
  8262  		i--
  8263  		dAtA[i] = 0x8
  8264  	}
  8265  	return len(dAtA) - i, nil
  8266  }
  8267  
  8268  func (m *OracleDelta) Marshal() (dAtA []byte, err error) {
  8269  	size := m.Size()
  8270  	dAtA = make([]byte, size)
  8271  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8272  	if err != nil {
  8273  		return nil, err
  8274  	}
  8275  	return dAtA[:n], nil
  8276  }
  8277  
  8278  func (m *OracleDelta) MarshalTo(dAtA []byte) (int, error) {
  8279  	size := m.Size()
  8280  	return m.MarshalToSizedBuffer(dAtA[:size])
  8281  }
  8282  
  8283  func (m *OracleDelta) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8284  	i := len(dAtA)
  8285  	_ = i
  8286  	var l int
  8287  	_ = l
  8288  	if m.XXX_unrecognized != nil {
  8289  		i -= len(m.XXX_unrecognized)
  8290  		copy(dAtA[i:], m.XXX_unrecognized)
  8291  	}
  8292  	if len(m.GroupChecksums) > 0 {
  8293  		for k := range m.GroupChecksums {
  8294  			v := m.GroupChecksums[k]
  8295  			baseI := i
  8296  			i = encodeVarintPb(dAtA, i, uint64(v))
  8297  			i--
  8298  			dAtA[i] = 0x10
  8299  			i = encodeVarintPb(dAtA, i, uint64(k))
  8300  			i--
  8301  			dAtA[i] = 0x8
  8302  			i = encodeVarintPb(dAtA, i, uint64(baseI-i))
  8303  			i--
  8304  			dAtA[i] = 0x1a
  8305  		}
  8306  	}
  8307  	if m.MaxAssigned != 0 {
  8308  		i = encodeVarintPb(dAtA, i, uint64(m.MaxAssigned))
  8309  		i--
  8310  		dAtA[i] = 0x10
  8311  	}
  8312  	if len(m.Txns) > 0 {
  8313  		for iNdEx := len(m.Txns) - 1; iNdEx >= 0; iNdEx-- {
  8314  			{
  8315  				size, err := m.Txns[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  8316  				if err != nil {
  8317  					return 0, err
  8318  				}
  8319  				i -= size
  8320  				i = encodeVarintPb(dAtA, i, uint64(size))
  8321  			}
  8322  			i--
  8323  			dAtA[i] = 0xa
  8324  		}
  8325  	}
  8326  	return len(dAtA) - i, nil
  8327  }
  8328  
  8329  func (m *TxnTimestamps) Marshal() (dAtA []byte, err error) {
  8330  	size := m.Size()
  8331  	dAtA = make([]byte, size)
  8332  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8333  	if err != nil {
  8334  		return nil, err
  8335  	}
  8336  	return dAtA[:n], nil
  8337  }
  8338  
  8339  func (m *TxnTimestamps) MarshalTo(dAtA []byte) (int, error) {
  8340  	size := m.Size()
  8341  	return m.MarshalToSizedBuffer(dAtA[:size])
  8342  }
  8343  
  8344  func (m *TxnTimestamps) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8345  	i := len(dAtA)
  8346  	_ = i
  8347  	var l int
  8348  	_ = l
  8349  	if m.XXX_unrecognized != nil {
  8350  		i -= len(m.XXX_unrecognized)
  8351  		copy(dAtA[i:], m.XXX_unrecognized)
  8352  	}
  8353  	if len(m.Ts) > 0 {
  8354  		dAtA29 := make([]byte, len(m.Ts)*10)
  8355  		var j28 int
  8356  		for _, num := range m.Ts {
  8357  			for num >= 1<<7 {
  8358  				dAtA29[j28] = uint8(uint64(num)&0x7f | 0x80)
  8359  				num >>= 7
  8360  				j28++
  8361  			}
  8362  			dAtA29[j28] = uint8(num)
  8363  			j28++
  8364  		}
  8365  		i -= j28
  8366  		copy(dAtA[i:], dAtA29[:j28])
  8367  		i = encodeVarintPb(dAtA, i, uint64(j28))
  8368  		i--
  8369  		dAtA[i] = 0xa
  8370  	}
  8371  	return len(dAtA) - i, nil
  8372  }
  8373  
  8374  func (m *PeerResponse) Marshal() (dAtA []byte, err error) {
  8375  	size := m.Size()
  8376  	dAtA = make([]byte, size)
  8377  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8378  	if err != nil {
  8379  		return nil, err
  8380  	}
  8381  	return dAtA[:n], nil
  8382  }
  8383  
  8384  func (m *PeerResponse) MarshalTo(dAtA []byte) (int, error) {
  8385  	size := m.Size()
  8386  	return m.MarshalToSizedBuffer(dAtA[:size])
  8387  }
  8388  
  8389  func (m *PeerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8390  	i := len(dAtA)
  8391  	_ = i
  8392  	var l int
  8393  	_ = l
  8394  	if m.XXX_unrecognized != nil {
  8395  		i -= len(m.XXX_unrecognized)
  8396  		copy(dAtA[i:], m.XXX_unrecognized)
  8397  	}
  8398  	if m.Status {
  8399  		i--
  8400  		if m.Status {
  8401  			dAtA[i] = 1
  8402  		} else {
  8403  			dAtA[i] = 0
  8404  		}
  8405  		i--
  8406  		dAtA[i] = 0x8
  8407  	}
  8408  	return len(dAtA) - i, nil
  8409  }
  8410  
  8411  func (m *RaftBatch) Marshal() (dAtA []byte, err error) {
  8412  	size := m.Size()
  8413  	dAtA = make([]byte, size)
  8414  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8415  	if err != nil {
  8416  		return nil, err
  8417  	}
  8418  	return dAtA[:n], nil
  8419  }
  8420  
  8421  func (m *RaftBatch) MarshalTo(dAtA []byte) (int, error) {
  8422  	size := m.Size()
  8423  	return m.MarshalToSizedBuffer(dAtA[:size])
  8424  }
  8425  
  8426  func (m *RaftBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8427  	i := len(dAtA)
  8428  	_ = i
  8429  	var l int
  8430  	_ = l
  8431  	if m.XXX_unrecognized != nil {
  8432  		i -= len(m.XXX_unrecognized)
  8433  		copy(dAtA[i:], m.XXX_unrecognized)
  8434  	}
  8435  	if m.Payload != nil {
  8436  		{
  8437  			size, err := m.Payload.MarshalToSizedBuffer(dAtA[:i])
  8438  			if err != nil {
  8439  				return 0, err
  8440  			}
  8441  			i -= size
  8442  			i = encodeVarintPb(dAtA, i, uint64(size))
  8443  		}
  8444  		i--
  8445  		dAtA[i] = 0x12
  8446  	}
  8447  	if m.Context != nil {
  8448  		{
  8449  			size, err := m.Context.MarshalToSizedBuffer(dAtA[:i])
  8450  			if err != nil {
  8451  				return 0, err
  8452  			}
  8453  			i -= size
  8454  			i = encodeVarintPb(dAtA, i, uint64(size))
  8455  		}
  8456  		i--
  8457  		dAtA[i] = 0xa
  8458  	}
  8459  	return len(dAtA) - i, nil
  8460  }
  8461  
  8462  func (m *Num) Marshal() (dAtA []byte, err error) {
  8463  	size := m.Size()
  8464  	dAtA = make([]byte, size)
  8465  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8466  	if err != nil {
  8467  		return nil, err
  8468  	}
  8469  	return dAtA[:n], nil
  8470  }
  8471  
  8472  func (m *Num) MarshalTo(dAtA []byte) (int, error) {
  8473  	size := m.Size()
  8474  	return m.MarshalToSizedBuffer(dAtA[:size])
  8475  }
  8476  
  8477  func (m *Num) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8478  	i := len(dAtA)
  8479  	_ = i
  8480  	var l int
  8481  	_ = l
  8482  	if m.XXX_unrecognized != nil {
  8483  		i -= len(m.XXX_unrecognized)
  8484  		copy(dAtA[i:], m.XXX_unrecognized)
  8485  	}
  8486  	if m.Forwarded {
  8487  		i--
  8488  		if m.Forwarded {
  8489  			dAtA[i] = 1
  8490  		} else {
  8491  			dAtA[i] = 0
  8492  		}
  8493  		i--
  8494  		dAtA[i] = 0x18
  8495  	}
  8496  	if m.ReadOnly {
  8497  		i--
  8498  		if m.ReadOnly {
  8499  			dAtA[i] = 1
  8500  		} else {
  8501  			dAtA[i] = 0
  8502  		}
  8503  		i--
  8504  		dAtA[i] = 0x10
  8505  	}
  8506  	if m.Val != 0 {
  8507  		i = encodeVarintPb(dAtA, i, uint64(m.Val))
  8508  		i--
  8509  		dAtA[i] = 0x8
  8510  	}
  8511  	return len(dAtA) - i, nil
  8512  }
  8513  
  8514  func (m *AssignedIds) Marshal() (dAtA []byte, err error) {
  8515  	size := m.Size()
  8516  	dAtA = make([]byte, size)
  8517  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8518  	if err != nil {
  8519  		return nil, err
  8520  	}
  8521  	return dAtA[:n], nil
  8522  }
  8523  
  8524  func (m *AssignedIds) MarshalTo(dAtA []byte) (int, error) {
  8525  	size := m.Size()
  8526  	return m.MarshalToSizedBuffer(dAtA[:size])
  8527  }
  8528  
  8529  func (m *AssignedIds) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8530  	i := len(dAtA)
  8531  	_ = i
  8532  	var l int
  8533  	_ = l
  8534  	if m.XXX_unrecognized != nil {
  8535  		i -= len(m.XXX_unrecognized)
  8536  		copy(dAtA[i:], m.XXX_unrecognized)
  8537  	}
  8538  	if m.ReadOnly != 0 {
  8539  		i = encodeVarintPb(dAtA, i, uint64(m.ReadOnly))
  8540  		i--
  8541  		dAtA[i] = 0x28
  8542  	}
  8543  	if m.EndId != 0 {
  8544  		i = encodeVarintPb(dAtA, i, uint64(m.EndId))
  8545  		i--
  8546  		dAtA[i] = 0x10
  8547  	}
  8548  	if m.StartId != 0 {
  8549  		i = encodeVarintPb(dAtA, i, uint64(m.StartId))
  8550  		i--
  8551  		dAtA[i] = 0x8
  8552  	}
  8553  	return len(dAtA) - i, nil
  8554  }
  8555  
  8556  func (m *SnapshotMeta) Marshal() (dAtA []byte, err error) {
  8557  	size := m.Size()
  8558  	dAtA = make([]byte, size)
  8559  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8560  	if err != nil {
  8561  		return nil, err
  8562  	}
  8563  	return dAtA[:n], nil
  8564  }
  8565  
  8566  func (m *SnapshotMeta) MarshalTo(dAtA []byte) (int, error) {
  8567  	size := m.Size()
  8568  	return m.MarshalToSizedBuffer(dAtA[:size])
  8569  }
  8570  
  8571  func (m *SnapshotMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8572  	i := len(dAtA)
  8573  	_ = i
  8574  	var l int
  8575  	_ = l
  8576  	if m.XXX_unrecognized != nil {
  8577  		i -= len(m.XXX_unrecognized)
  8578  		copy(dAtA[i:], m.XXX_unrecognized)
  8579  	}
  8580  	if m.GroupId != 0 {
  8581  		i = encodeVarintPb(dAtA, i, uint64(m.GroupId))
  8582  		i--
  8583  		dAtA[i] = 0x10
  8584  	}
  8585  	if m.ClientTs != 0 {
  8586  		i = encodeVarintPb(dAtA, i, uint64(m.ClientTs))
  8587  		i--
  8588  		dAtA[i] = 0x8
  8589  	}
  8590  	return len(dAtA) - i, nil
  8591  }
  8592  
  8593  func (m *Status) Marshal() (dAtA []byte, err error) {
  8594  	size := m.Size()
  8595  	dAtA = make([]byte, size)
  8596  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8597  	if err != nil {
  8598  		return nil, err
  8599  	}
  8600  	return dAtA[:n], nil
  8601  }
  8602  
  8603  func (m *Status) MarshalTo(dAtA []byte) (int, error) {
  8604  	size := m.Size()
  8605  	return m.MarshalToSizedBuffer(dAtA[:size])
  8606  }
  8607  
  8608  func (m *Status) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8609  	i := len(dAtA)
  8610  	_ = i
  8611  	var l int
  8612  	_ = l
  8613  	if m.XXX_unrecognized != nil {
  8614  		i -= len(m.XXX_unrecognized)
  8615  		copy(dAtA[i:], m.XXX_unrecognized)
  8616  	}
  8617  	if len(m.Msg) > 0 {
  8618  		i -= len(m.Msg)
  8619  		copy(dAtA[i:], m.Msg)
  8620  		i = encodeVarintPb(dAtA, i, uint64(len(m.Msg)))
  8621  		i--
  8622  		dAtA[i] = 0x12
  8623  	}
  8624  	if m.Code != 0 {
  8625  		i = encodeVarintPb(dAtA, i, uint64(m.Code))
  8626  		i--
  8627  		dAtA[i] = 0x8
  8628  	}
  8629  	return len(dAtA) - i, nil
  8630  }
  8631  
  8632  func (m *BackupRequest) Marshal() (dAtA []byte, err error) {
  8633  	size := m.Size()
  8634  	dAtA = make([]byte, size)
  8635  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8636  	if err != nil {
  8637  		return nil, err
  8638  	}
  8639  	return dAtA[:n], nil
  8640  }
  8641  
  8642  func (m *BackupRequest) MarshalTo(dAtA []byte) (int, error) {
  8643  	size := m.Size()
  8644  	return m.MarshalToSizedBuffer(dAtA[:size])
  8645  }
  8646  
  8647  func (m *BackupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8648  	i := len(dAtA)
  8649  	_ = i
  8650  	var l int
  8651  	_ = l
  8652  	if m.XXX_unrecognized != nil {
  8653  		i -= len(m.XXX_unrecognized)
  8654  		copy(dAtA[i:], m.XXX_unrecognized)
  8655  	}
  8656  	if len(m.Predicates) > 0 {
  8657  		for iNdEx := len(m.Predicates) - 1; iNdEx >= 0; iNdEx-- {
  8658  			i -= len(m.Predicates[iNdEx])
  8659  			copy(dAtA[i:], m.Predicates[iNdEx])
  8660  			i = encodeVarintPb(dAtA, i, uint64(len(m.Predicates[iNdEx])))
  8661  			i--
  8662  			dAtA[i] = 0x52
  8663  		}
  8664  	}
  8665  	if m.Anonymous {
  8666  		i--
  8667  		if m.Anonymous {
  8668  			dAtA[i] = 1
  8669  		} else {
  8670  			dAtA[i] = 0
  8671  		}
  8672  		i--
  8673  		dAtA[i] = 0x48
  8674  	}
  8675  	if len(m.SessionToken) > 0 {
  8676  		i -= len(m.SessionToken)
  8677  		copy(dAtA[i:], m.SessionToken)
  8678  		i = encodeVarintPb(dAtA, i, uint64(len(m.SessionToken)))
  8679  		i--
  8680  		dAtA[i] = 0x42
  8681  	}
  8682  	if len(m.SecretKey) > 0 {
  8683  		i -= len(m.SecretKey)
  8684  		copy(dAtA[i:], m.SecretKey)
  8685  		i = encodeVarintPb(dAtA, i, uint64(len(m.SecretKey)))
  8686  		i--
  8687  		dAtA[i] = 0x3a
  8688  	}
  8689  	if len(m.AccessKey) > 0 {
  8690  		i -= len(m.AccessKey)
  8691  		copy(dAtA[i:], m.AccessKey)
  8692  		i = encodeVarintPb(dAtA, i, uint64(len(m.AccessKey)))
  8693  		i--
  8694  		dAtA[i] = 0x32
  8695  	}
  8696  	if len(m.Destination) > 0 {
  8697  		i -= len(m.Destination)
  8698  		copy(dAtA[i:], m.Destination)
  8699  		i = encodeVarintPb(dAtA, i, uint64(len(m.Destination)))
  8700  		i--
  8701  		dAtA[i] = 0x2a
  8702  	}
  8703  	if len(m.UnixTs) > 0 {
  8704  		i -= len(m.UnixTs)
  8705  		copy(dAtA[i:], m.UnixTs)
  8706  		i = encodeVarintPb(dAtA, i, uint64(len(m.UnixTs)))
  8707  		i--
  8708  		dAtA[i] = 0x22
  8709  	}
  8710  	if m.GroupId != 0 {
  8711  		i = encodeVarintPb(dAtA, i, uint64(m.GroupId))
  8712  		i--
  8713  		dAtA[i] = 0x18
  8714  	}
  8715  	if m.SinceTs != 0 {
  8716  		i = encodeVarintPb(dAtA, i, uint64(m.SinceTs))
  8717  		i--
  8718  		dAtA[i] = 0x10
  8719  	}
  8720  	if m.ReadTs != 0 {
  8721  		i = encodeVarintPb(dAtA, i, uint64(m.ReadTs))
  8722  		i--
  8723  		dAtA[i] = 0x8
  8724  	}
  8725  	return len(dAtA) - i, nil
  8726  }
  8727  
  8728  func (m *ExportRequest) Marshal() (dAtA []byte, err error) {
  8729  	size := m.Size()
  8730  	dAtA = make([]byte, size)
  8731  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8732  	if err != nil {
  8733  		return nil, err
  8734  	}
  8735  	return dAtA[:n], nil
  8736  }
  8737  
  8738  func (m *ExportRequest) MarshalTo(dAtA []byte) (int, error) {
  8739  	size := m.Size()
  8740  	return m.MarshalToSizedBuffer(dAtA[:size])
  8741  }
  8742  
  8743  func (m *ExportRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8744  	i := len(dAtA)
  8745  	_ = i
  8746  	var l int
  8747  	_ = l
  8748  	if m.XXX_unrecognized != nil {
  8749  		i -= len(m.XXX_unrecognized)
  8750  		copy(dAtA[i:], m.XXX_unrecognized)
  8751  	}
  8752  	if len(m.Format) > 0 {
  8753  		i -= len(m.Format)
  8754  		copy(dAtA[i:], m.Format)
  8755  		i = encodeVarintPb(dAtA, i, uint64(len(m.Format)))
  8756  		i--
  8757  		dAtA[i] = 0x22
  8758  	}
  8759  	if m.UnixTs != 0 {
  8760  		i = encodeVarintPb(dAtA, i, uint64(m.UnixTs))
  8761  		i--
  8762  		dAtA[i] = 0x18
  8763  	}
  8764  	if m.ReadTs != 0 {
  8765  		i = encodeVarintPb(dAtA, i, uint64(m.ReadTs))
  8766  		i--
  8767  		dAtA[i] = 0x10
  8768  	}
  8769  	if m.GroupId != 0 {
  8770  		i = encodeVarintPb(dAtA, i, uint64(m.GroupId))
  8771  		i--
  8772  		dAtA[i] = 0x8
  8773  	}
  8774  	return len(dAtA) - i, nil
  8775  }
  8776  
  8777  func (m *BackupKey) Marshal() (dAtA []byte, err error) {
  8778  	size := m.Size()
  8779  	dAtA = make([]byte, size)
  8780  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8781  	if err != nil {
  8782  		return nil, err
  8783  	}
  8784  	return dAtA[:n], nil
  8785  }
  8786  
  8787  func (m *BackupKey) MarshalTo(dAtA []byte) (int, error) {
  8788  	size := m.Size()
  8789  	return m.MarshalToSizedBuffer(dAtA[:size])
  8790  }
  8791  
  8792  func (m *BackupKey) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8793  	i := len(dAtA)
  8794  	_ = i
  8795  	var l int
  8796  	_ = l
  8797  	if m.XXX_unrecognized != nil {
  8798  		i -= len(m.XXX_unrecognized)
  8799  		copy(dAtA[i:], m.XXX_unrecognized)
  8800  	}
  8801  	if m.Count != 0 {
  8802  		i = encodeVarintPb(dAtA, i, uint64(m.Count))
  8803  		i--
  8804  		dAtA[i] = 0x30
  8805  	}
  8806  	if len(m.Term) > 0 {
  8807  		i -= len(m.Term)
  8808  		copy(dAtA[i:], m.Term)
  8809  		i = encodeVarintPb(dAtA, i, uint64(len(m.Term)))
  8810  		i--
  8811  		dAtA[i] = 0x2a
  8812  	}
  8813  	if m.StartUid != 0 {
  8814  		i = encodeVarintPb(dAtA, i, uint64(m.StartUid))
  8815  		i--
  8816  		dAtA[i] = 0x20
  8817  	}
  8818  	if m.Uid != 0 {
  8819  		i = encodeVarintPb(dAtA, i, uint64(m.Uid))
  8820  		i--
  8821  		dAtA[i] = 0x18
  8822  	}
  8823  	if len(m.Attr) > 0 {
  8824  		i -= len(m.Attr)
  8825  		copy(dAtA[i:], m.Attr)
  8826  		i = encodeVarintPb(dAtA, i, uint64(len(m.Attr)))
  8827  		i--
  8828  		dAtA[i] = 0x12
  8829  	}
  8830  	if m.Type != 0 {
  8831  		i = encodeVarintPb(dAtA, i, uint64(m.Type))
  8832  		i--
  8833  		dAtA[i] = 0x8
  8834  	}
  8835  	return len(dAtA) - i, nil
  8836  }
  8837  
  8838  func (m *BackupPostingList) Marshal() (dAtA []byte, err error) {
  8839  	size := m.Size()
  8840  	dAtA = make([]byte, size)
  8841  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  8842  	if err != nil {
  8843  		return nil, err
  8844  	}
  8845  	return dAtA[:n], nil
  8846  }
  8847  
  8848  func (m *BackupPostingList) MarshalTo(dAtA []byte) (int, error) {
  8849  	size := m.Size()
  8850  	return m.MarshalToSizedBuffer(dAtA[:size])
  8851  }
  8852  
  8853  func (m *BackupPostingList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  8854  	i := len(dAtA)
  8855  	_ = i
  8856  	var l int
  8857  	_ = l
  8858  	if m.XXX_unrecognized != nil {
  8859  		i -= len(m.XXX_unrecognized)
  8860  		copy(dAtA[i:], m.XXX_unrecognized)
  8861  	}
  8862  	if len(m.Splits) > 0 {
  8863  		dAtA33 := make([]byte, len(m.Splits)*10)
  8864  		var j32 int
  8865  		for _, num := range m.Splits {
  8866  			for num >= 1<<7 {
  8867  				dAtA33[j32] = uint8(uint64(num)&0x7f | 0x80)
  8868  				num >>= 7
  8869  				j32++
  8870  			}
  8871  			dAtA33[j32] = uint8(num)
  8872  			j32++
  8873  		}
  8874  		i -= j32
  8875  		copy(dAtA[i:], dAtA33[:j32])
  8876  		i = encodeVarintPb(dAtA, i, uint64(j32))
  8877  		i--
  8878  		dAtA[i] = 0x22
  8879  	}
  8880  	if m.CommitTs != 0 {
  8881  		i = encodeVarintPb(dAtA, i, uint64(m.CommitTs))
  8882  		i--
  8883  		dAtA[i] = 0x18
  8884  	}
  8885  	if len(m.Postings) > 0 {
  8886  		for iNdEx := len(m.Postings) - 1; iNdEx >= 0; iNdEx-- {
  8887  			{
  8888  				size, err := m.Postings[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  8889  				if err != nil {
  8890  					return 0, err
  8891  				}
  8892  				i -= size
  8893  				i = encodeVarintPb(dAtA, i, uint64(size))
  8894  			}
  8895  			i--
  8896  			dAtA[i] = 0x12
  8897  		}
  8898  	}
  8899  	if len(m.Uids) > 0 {
  8900  		dAtA35 := make([]byte, len(m.Uids)*10)
  8901  		var j34 int
  8902  		for _, num := range m.Uids {
  8903  			for num >= 1<<7 {
  8904  				dAtA35[j34] = uint8(uint64(num)&0x7f | 0x80)
  8905  				num >>= 7
  8906  				j34++
  8907  			}
  8908  			dAtA35[j34] = uint8(num)
  8909  			j34++
  8910  		}
  8911  		i -= j34
  8912  		copy(dAtA[i:], dAtA35[:j34])
  8913  		i = encodeVarintPb(dAtA, i, uint64(j34))
  8914  		i--
  8915  		dAtA[i] = 0xa
  8916  	}
  8917  	return len(dAtA) - i, nil
  8918  }
  8919  
  8920  func encodeVarintPb(dAtA []byte, offset int, v uint64) int {
  8921  	offset -= sovPb(v)
  8922  	base := offset
  8923  	for v >= 1<<7 {
  8924  		dAtA[offset] = uint8(v&0x7f | 0x80)
  8925  		v >>= 7
  8926  		offset++
  8927  	}
  8928  	dAtA[offset] = uint8(v)
  8929  	return base
  8930  }
  8931  func (m *List) Size() (n int) {
  8932  	if m == nil {
  8933  		return 0
  8934  	}
  8935  	var l int
  8936  	_ = l
  8937  	if len(m.Uids) > 0 {
  8938  		n += 1 + sovPb(uint64(len(m.Uids)*8)) + len(m.Uids)*8
  8939  	}
  8940  	if m.XXX_unrecognized != nil {
  8941  		n += len(m.XXX_unrecognized)
  8942  	}
  8943  	return n
  8944  }
  8945  
  8946  func (m *TaskValue) Size() (n int) {
  8947  	if m == nil {
  8948  		return 0
  8949  	}
  8950  	var l int
  8951  	_ = l
  8952  	l = len(m.Val)
  8953  	if l > 0 {
  8954  		n += 1 + l + sovPb(uint64(l))
  8955  	}
  8956  	if m.ValType != 0 {
  8957  		n += 1 + sovPb(uint64(m.ValType))
  8958  	}
  8959  	if m.XXX_unrecognized != nil {
  8960  		n += len(m.XXX_unrecognized)
  8961  	}
  8962  	return n
  8963  }
  8964  
  8965  func (m *SrcFunction) Size() (n int) {
  8966  	if m == nil {
  8967  		return 0
  8968  	}
  8969  	var l int
  8970  	_ = l
  8971  	l = len(m.Name)
  8972  	if l > 0 {
  8973  		n += 1 + l + sovPb(uint64(l))
  8974  	}
  8975  	if len(m.Args) > 0 {
  8976  		for _, s := range m.Args {
  8977  			l = len(s)
  8978  			n += 1 + l + sovPb(uint64(l))
  8979  		}
  8980  	}
  8981  	if m.IsCount {
  8982  		n += 2
  8983  	}
  8984  	if m.XXX_unrecognized != nil {
  8985  		n += len(m.XXX_unrecognized)
  8986  	}
  8987  	return n
  8988  }
  8989  
  8990  func (m *Query) Size() (n int) {
  8991  	if m == nil {
  8992  		return 0
  8993  	}
  8994  	var l int
  8995  	_ = l
  8996  	l = len(m.Attr)
  8997  	if l > 0 {
  8998  		n += 1 + l + sovPb(uint64(l))
  8999  	}
  9000  	if len(m.Langs) > 0 {
  9001  		for _, s := range m.Langs {
  9002  			l = len(s)
  9003  			n += 1 + l + sovPb(uint64(l))
  9004  		}
  9005  	}
  9006  	if m.AfterUid != 0 {
  9007  		n += 9
  9008  	}
  9009  	if m.DoCount {
  9010  		n += 2
  9011  	}
  9012  	if m.UidList != nil {
  9013  		l = m.UidList.Size()
  9014  		n += 1 + l + sovPb(uint64(l))
  9015  	}
  9016  	if m.SrcFunc != nil {
  9017  		l = m.SrcFunc.Size()
  9018  		n += 1 + l + sovPb(uint64(l))
  9019  	}
  9020  	if m.Reverse {
  9021  		n += 2
  9022  	}
  9023  	if m.FacetParam != nil {
  9024  		l = m.FacetParam.Size()
  9025  		n += 1 + l + sovPb(uint64(l))
  9026  	}
  9027  	if m.FacetsFilter != nil {
  9028  		l = m.FacetsFilter.Size()
  9029  		n += 1 + l + sovPb(uint64(l))
  9030  	}
  9031  	if m.ExpandAll {
  9032  		n += 2
  9033  	}
  9034  	if m.ReadTs != 0 {
  9035  		n += 1 + sovPb(uint64(m.ReadTs))
  9036  	}
  9037  	if m.Cache != 0 {
  9038  		n += 1 + sovPb(uint64(m.Cache))
  9039  	}
  9040  	if m.XXX_unrecognized != nil {
  9041  		n += len(m.XXX_unrecognized)
  9042  	}
  9043  	return n
  9044  }
  9045  
  9046  func (m *ValueList) Size() (n int) {
  9047  	if m == nil {
  9048  		return 0
  9049  	}
  9050  	var l int
  9051  	_ = l
  9052  	if len(m.Values) > 0 {
  9053  		for _, e := range m.Values {
  9054  			l = e.Size()
  9055  			n += 1 + l + sovPb(uint64(l))
  9056  		}
  9057  	}
  9058  	if m.XXX_unrecognized != nil {
  9059  		n += len(m.XXX_unrecognized)
  9060  	}
  9061  	return n
  9062  }
  9063  
  9064  func (m *LangList) Size() (n int) {
  9065  	if m == nil {
  9066  		return 0
  9067  	}
  9068  	var l int
  9069  	_ = l
  9070  	if len(m.Lang) > 0 {
  9071  		for _, s := range m.Lang {
  9072  			l = len(s)
  9073  			n += 1 + l + sovPb(uint64(l))
  9074  		}
  9075  	}
  9076  	if m.XXX_unrecognized != nil {
  9077  		n += len(m.XXX_unrecognized)
  9078  	}
  9079  	return n
  9080  }
  9081  
  9082  func (m *Result) Size() (n int) {
  9083  	if m == nil {
  9084  		return 0
  9085  	}
  9086  	var l int
  9087  	_ = l
  9088  	if len(m.UidMatrix) > 0 {
  9089  		for _, e := range m.UidMatrix {
  9090  			l = e.Size()
  9091  			n += 1 + l + sovPb(uint64(l))
  9092  		}
  9093  	}
  9094  	if len(m.ValueMatrix) > 0 {
  9095  		for _, e := range m.ValueMatrix {
  9096  			l = e.Size()
  9097  			n += 1 + l + sovPb(uint64(l))
  9098  		}
  9099  	}
  9100  	if len(m.Counts) > 0 {
  9101  		l = 0
  9102  		for _, e := range m.Counts {
  9103  			l += sovPb(uint64(e))
  9104  		}
  9105  		n += 1 + sovPb(uint64(l)) + l
  9106  	}
  9107  	if m.IntersectDest {
  9108  		n += 2
  9109  	}
  9110  	if len(m.FacetMatrix) > 0 {
  9111  		for _, e := range m.FacetMatrix {
  9112  			l = e.Size()
  9113  			n += 1 + l + sovPb(uint64(l))
  9114  		}
  9115  	}
  9116  	if len(m.LangMatrix) > 0 {
  9117  		for _, e := range m.LangMatrix {
  9118  			l = e.Size()
  9119  			n += 1 + l + sovPb(uint64(l))
  9120  		}
  9121  	}
  9122  	if m.List {
  9123  		n += 2
  9124  	}
  9125  	if m.XXX_unrecognized != nil {
  9126  		n += len(m.XXX_unrecognized)
  9127  	}
  9128  	return n
  9129  }
  9130  
  9131  func (m *Order) Size() (n int) {
  9132  	if m == nil {
  9133  		return 0
  9134  	}
  9135  	var l int
  9136  	_ = l
  9137  	l = len(m.Attr)
  9138  	if l > 0 {
  9139  		n += 1 + l + sovPb(uint64(l))
  9140  	}
  9141  	if m.Desc {
  9142  		n += 2
  9143  	}
  9144  	if len(m.Langs) > 0 {
  9145  		for _, s := range m.Langs {
  9146  			l = len(s)
  9147  			n += 1 + l + sovPb(uint64(l))
  9148  		}
  9149  	}
  9150  	if m.XXX_unrecognized != nil {
  9151  		n += len(m.XXX_unrecognized)
  9152  	}
  9153  	return n
  9154  }
  9155  
  9156  func (m *SortMessage) Size() (n int) {
  9157  	if m == nil {
  9158  		return 0
  9159  	}
  9160  	var l int
  9161  	_ = l
  9162  	if len(m.Order) > 0 {
  9163  		for _, e := range m.Order {
  9164  			l = e.Size()
  9165  			n += 1 + l + sovPb(uint64(l))
  9166  		}
  9167  	}
  9168  	if len(m.UidMatrix) > 0 {
  9169  		for _, e := range m.UidMatrix {
  9170  			l = e.Size()
  9171  			n += 1 + l + sovPb(uint64(l))
  9172  		}
  9173  	}
  9174  	if m.Count != 0 {
  9175  		n += 1 + sovPb(uint64(m.Count))
  9176  	}
  9177  	if m.Offset != 0 {
  9178  		n += 1 + sovPb(uint64(m.Offset))
  9179  	}
  9180  	if m.ReadTs != 0 {
  9181  		n += 1 + sovPb(uint64(m.ReadTs))
  9182  	}
  9183  	if m.XXX_unrecognized != nil {
  9184  		n += len(m.XXX_unrecognized)
  9185  	}
  9186  	return n
  9187  }
  9188  
  9189  func (m *SortResult) Size() (n int) {
  9190  	if m == nil {
  9191  		return 0
  9192  	}
  9193  	var l int
  9194  	_ = l
  9195  	if len(m.UidMatrix) > 0 {
  9196  		for _, e := range m.UidMatrix {
  9197  			l = e.Size()
  9198  			n += 1 + l + sovPb(uint64(l))
  9199  		}
  9200  	}
  9201  	if m.XXX_unrecognized != nil {
  9202  		n += len(m.XXX_unrecognized)
  9203  	}
  9204  	return n
  9205  }
  9206  
  9207  func (m *RaftContext) Size() (n int) {
  9208  	if m == nil {
  9209  		return 0
  9210  	}
  9211  	var l int
  9212  	_ = l
  9213  	if m.Id != 0 {
  9214  		n += 9
  9215  	}
  9216  	if m.Group != 0 {
  9217  		n += 1 + sovPb(uint64(m.Group))
  9218  	}
  9219  	l = len(m.Addr)
  9220  	if l > 0 {
  9221  		n += 1 + l + sovPb(uint64(l))
  9222  	}
  9223  	if m.SnapshotTs != 0 {
  9224  		n += 1 + sovPb(uint64(m.SnapshotTs))
  9225  	}
  9226  	if m.XXX_unrecognized != nil {
  9227  		n += len(m.XXX_unrecognized)
  9228  	}
  9229  	return n
  9230  }
  9231  
  9232  func (m *Member) Size() (n int) {
  9233  	if m == nil {
  9234  		return 0
  9235  	}
  9236  	var l int
  9237  	_ = l
  9238  	if m.Id != 0 {
  9239  		n += 9
  9240  	}
  9241  	if m.GroupId != 0 {
  9242  		n += 1 + sovPb(uint64(m.GroupId))
  9243  	}
  9244  	l = len(m.Addr)
  9245  	if l > 0 {
  9246  		n += 1 + l + sovPb(uint64(l))
  9247  	}
  9248  	if m.Leader {
  9249  		n += 2
  9250  	}
  9251  	if m.AmDead {
  9252  		n += 2
  9253  	}
  9254  	if m.LastUpdate != 0 {
  9255  		n += 1 + sovPb(uint64(m.LastUpdate))
  9256  	}
  9257  	if m.ClusterInfoOnly {
  9258  		n += 2
  9259  	}
  9260  	if m.XXX_unrecognized != nil {
  9261  		n += len(m.XXX_unrecognized)
  9262  	}
  9263  	return n
  9264  }
  9265  
  9266  func (m *Group) Size() (n int) {
  9267  	if m == nil {
  9268  		return 0
  9269  	}
  9270  	var l int
  9271  	_ = l
  9272  	if len(m.Members) > 0 {
  9273  		for k, v := range m.Members {
  9274  			_ = k
  9275  			_ = v
  9276  			l = 0
  9277  			if v != nil {
  9278  				l = v.Size()
  9279  				l += 1 + sovPb(uint64(l))
  9280  			}
  9281  			mapEntrySize := 1 + sovPb(uint64(k)) + l
  9282  			n += mapEntrySize + 1 + sovPb(uint64(mapEntrySize))
  9283  		}
  9284  	}
  9285  	if len(m.Tablets) > 0 {
  9286  		for k, v := range m.Tablets {
  9287  			_ = k
  9288  			_ = v
  9289  			l = 0
  9290  			if v != nil {
  9291  				l = v.Size()
  9292  				l += 1 + sovPb(uint64(l))
  9293  			}
  9294  			mapEntrySize := 1 + len(k) + sovPb(uint64(len(k))) + l
  9295  			n += mapEntrySize + 1 + sovPb(uint64(mapEntrySize))
  9296  		}
  9297  	}
  9298  	if m.SnapshotTs != 0 {
  9299  		n += 1 + sovPb(uint64(m.SnapshotTs))
  9300  	}
  9301  	if m.Checksum != 0 {
  9302  		n += 1 + sovPb(uint64(m.Checksum))
  9303  	}
  9304  	if m.XXX_unrecognized != nil {
  9305  		n += len(m.XXX_unrecognized)
  9306  	}
  9307  	return n
  9308  }
  9309  
  9310  func (m *License) Size() (n int) {
  9311  	if m == nil {
  9312  		return 0
  9313  	}
  9314  	var l int
  9315  	_ = l
  9316  	l = len(m.User)
  9317  	if l > 0 {
  9318  		n += 1 + l + sovPb(uint64(l))
  9319  	}
  9320  	if m.MaxNodes != 0 {
  9321  		n += 1 + sovPb(uint64(m.MaxNodes))
  9322  	}
  9323  	if m.ExpiryTs != 0 {
  9324  		n += 1 + sovPb(uint64(m.ExpiryTs))
  9325  	}
  9326  	if m.Enabled {
  9327  		n += 2
  9328  	}
  9329  	if m.XXX_unrecognized != nil {
  9330  		n += len(m.XXX_unrecognized)
  9331  	}
  9332  	return n
  9333  }
  9334  
  9335  func (m *ZeroProposal) Size() (n int) {
  9336  	if m == nil {
  9337  		return 0
  9338  	}
  9339  	var l int
  9340  	_ = l
  9341  	if len(m.SnapshotTs) > 0 {
  9342  		for k, v := range m.SnapshotTs {
  9343  			_ = k
  9344  			_ = v
  9345  			mapEntrySize := 1 + sovPb(uint64(k)) + 1 + sovPb(uint64(v))
  9346  			n += mapEntrySize + 1 + sovPb(uint64(mapEntrySize))
  9347  		}
  9348  	}
  9349  	if m.Member != nil {
  9350  		l = m.Member.Size()
  9351  		n += 1 + l + sovPb(uint64(l))
  9352  	}
  9353  	if m.Tablet != nil {
  9354  		l = m.Tablet.Size()
  9355  		n += 1 + l + sovPb(uint64(l))
  9356  	}
  9357  	if m.MaxLeaseId != 0 {
  9358  		n += 1 + sovPb(uint64(m.MaxLeaseId))
  9359  	}
  9360  	if m.MaxTxnTs != 0 {
  9361  		n += 1 + sovPb(uint64(m.MaxTxnTs))
  9362  	}
  9363  	if m.MaxRaftId != 0 {
  9364  		n += 1 + sovPb(uint64(m.MaxRaftId))
  9365  	}
  9366  	if m.Txn != nil {
  9367  		l = m.Txn.Size()
  9368  		n += 1 + l + sovPb(uint64(l))
  9369  	}
  9370  	l = len(m.Key)
  9371  	if l > 0 {
  9372  		n += 1 + l + sovPb(uint64(l))
  9373  	}
  9374  	l = len(m.Cid)
  9375  	if l > 0 {
  9376  		n += 1 + l + sovPb(uint64(l))
  9377  	}
  9378  	if m.License != nil {
  9379  		l = m.License.Size()
  9380  		n += 1 + l + sovPb(uint64(l))
  9381  	}
  9382  	if m.XXX_unrecognized != nil {
  9383  		n += len(m.XXX_unrecognized)
  9384  	}
  9385  	return n
  9386  }
  9387  
  9388  func (m *MembershipState) Size() (n int) {
  9389  	if m == nil {
  9390  		return 0
  9391  	}
  9392  	var l int
  9393  	_ = l
  9394  	if m.Counter != 0 {
  9395  		n += 1 + sovPb(uint64(m.Counter))
  9396  	}
  9397  	if len(m.Groups) > 0 {
  9398  		for k, v := range m.Groups {
  9399  			_ = k
  9400  			_ = v
  9401  			l = 0
  9402  			if v != nil {
  9403  				l = v.Size()
  9404  				l += 1 + sovPb(uint64(l))
  9405  			}
  9406  			mapEntrySize := 1 + sovPb(uint64(k)) + l
  9407  			n += mapEntrySize + 1 + sovPb(uint64(mapEntrySize))
  9408  		}
  9409  	}
  9410  	if len(m.Zeros) > 0 {
  9411  		for k, v := range m.Zeros {
  9412  			_ = k
  9413  			_ = v
  9414  			l = 0
  9415  			if v != nil {
  9416  				l = v.Size()
  9417  				l += 1 + sovPb(uint64(l))
  9418  			}
  9419  			mapEntrySize := 1 + sovPb(uint64(k)) + l
  9420  			n += mapEntrySize + 1 + sovPb(uint64(mapEntrySize))
  9421  		}
  9422  	}
  9423  	if m.MaxLeaseId != 0 {
  9424  		n += 1 + sovPb(uint64(m.MaxLeaseId))
  9425  	}
  9426  	if m.MaxTxnTs != 0 {
  9427  		n += 1 + sovPb(uint64(m.MaxTxnTs))
  9428  	}
  9429  	if m.MaxRaftId != 0 {
  9430  		n += 1 + sovPb(uint64(m.MaxRaftId))
  9431  	}
  9432  	if len(m.Removed) > 0 {
  9433  		for _, e := range m.Removed {
  9434  			l = e.Size()
  9435  			n += 1 + l + sovPb(uint64(l))
  9436  		}
  9437  	}
  9438  	l = len(m.Cid)
  9439  	if l > 0 {
  9440  		n += 1 + l + sovPb(uint64(l))
  9441  	}
  9442  	if m.License != nil {
  9443  		l = m.License.Size()
  9444  		n += 1 + l + sovPb(uint64(l))
  9445  	}
  9446  	if m.XXX_unrecognized != nil {
  9447  		n += len(m.XXX_unrecognized)
  9448  	}
  9449  	return n
  9450  }
  9451  
  9452  func (m *ConnectionState) Size() (n int) {
  9453  	if m == nil {
  9454  		return 0
  9455  	}
  9456  	var l int
  9457  	_ = l
  9458  	if m.Member != nil {
  9459  		l = m.Member.Size()
  9460  		n += 1 + l + sovPb(uint64(l))
  9461  	}
  9462  	if m.State != nil {
  9463  		l = m.State.Size()
  9464  		n += 1 + l + sovPb(uint64(l))
  9465  	}
  9466  	if m.MaxPending != 0 {
  9467  		n += 1 + sovPb(uint64(m.MaxPending))
  9468  	}
  9469  	if m.XXX_unrecognized != nil {
  9470  		n += len(m.XXX_unrecognized)
  9471  	}
  9472  	return n
  9473  }
  9474  
  9475  func (m *Tablet) Size() (n int) {
  9476  	if m == nil {
  9477  		return 0
  9478  	}
  9479  	var l int
  9480  	_ = l
  9481  	if m.GroupId != 0 {
  9482  		n += 1 + sovPb(uint64(m.GroupId))
  9483  	}
  9484  	l = len(m.Predicate)
  9485  	if l > 0 {
  9486  		n += 1 + l + sovPb(uint64(l))
  9487  	}
  9488  	if m.Force {
  9489  		n += 2
  9490  	}
  9491  	if m.Space != 0 {
  9492  		n += 1 + sovPb(uint64(m.Space))
  9493  	}
  9494  	if m.Remove {
  9495  		n += 2
  9496  	}
  9497  	if m.ReadOnly {
  9498  		n += 2
  9499  	}
  9500  	if m.XXX_unrecognized != nil {
  9501  		n += len(m.XXX_unrecognized)
  9502  	}
  9503  	return n
  9504  }
  9505  
  9506  func (m *DirectedEdge) Size() (n int) {
  9507  	if m == nil {
  9508  		return 0
  9509  	}
  9510  	var l int
  9511  	_ = l
  9512  	if m.Entity != 0 {
  9513  		n += 9
  9514  	}
  9515  	l = len(m.Attr)
  9516  	if l > 0 {
  9517  		n += 1 + l + sovPb(uint64(l))
  9518  	}
  9519  	l = len(m.Value)
  9520  	if l > 0 {
  9521  		n += 1 + l + sovPb(uint64(l))
  9522  	}
  9523  	if m.ValueType != 0 {
  9524  		n += 1 + sovPb(uint64(m.ValueType))
  9525  	}
  9526  	if m.ValueId != 0 {
  9527  		n += 9
  9528  	}
  9529  	l = len(m.Label)
  9530  	if l > 0 {
  9531  		n += 1 + l + sovPb(uint64(l))
  9532  	}
  9533  	l = len(m.Lang)
  9534  	if l > 0 {
  9535  		n += 1 + l + sovPb(uint64(l))
  9536  	}
  9537  	if m.Op != 0 {
  9538  		n += 1 + sovPb(uint64(m.Op))
  9539  	}
  9540  	if len(m.Facets) > 0 {
  9541  		for _, e := range m.Facets {
  9542  			l = e.Size()
  9543  			n += 1 + l + sovPb(uint64(l))
  9544  		}
  9545  	}
  9546  	if m.XXX_unrecognized != nil {
  9547  		n += len(m.XXX_unrecognized)
  9548  	}
  9549  	return n
  9550  }
  9551  
  9552  func (m *Mutations) Size() (n int) {
  9553  	if m == nil {
  9554  		return 0
  9555  	}
  9556  	var l int
  9557  	_ = l
  9558  	if m.GroupId != 0 {
  9559  		n += 1 + sovPb(uint64(m.GroupId))
  9560  	}
  9561  	if m.StartTs != 0 {
  9562  		n += 1 + sovPb(uint64(m.StartTs))
  9563  	}
  9564  	if len(m.Edges) > 0 {
  9565  		for _, e := range m.Edges {
  9566  			l = e.Size()
  9567  			n += 1 + l + sovPb(uint64(l))
  9568  		}
  9569  	}
  9570  	if len(m.Schema) > 0 {
  9571  		for _, e := range m.Schema {
  9572  			l = e.Size()
  9573  			n += 1 + l + sovPb(uint64(l))
  9574  		}
  9575  	}
  9576  	if len(m.Types) > 0 {
  9577  		for _, e := range m.Types {
  9578  			l = e.Size()
  9579  			n += 1 + l + sovPb(uint64(l))
  9580  		}
  9581  	}
  9582  	if m.DropOp != 0 {
  9583  		n += 1 + sovPb(uint64(m.DropOp))
  9584  	}
  9585  	l = len(m.DropValue)
  9586  	if l > 0 {
  9587  		n += 1 + l + sovPb(uint64(l))
  9588  	}
  9589  	if m.XXX_unrecognized != nil {
  9590  		n += len(m.XXX_unrecognized)
  9591  	}
  9592  	return n
  9593  }
  9594  
  9595  func (m *Snapshot) Size() (n int) {
  9596  	if m == nil {
  9597  		return 0
  9598  	}
  9599  	var l int
  9600  	_ = l
  9601  	if m.Context != nil {
  9602  		l = m.Context.Size()
  9603  		n += 1 + l + sovPb(uint64(l))
  9604  	}
  9605  	if m.Index != 0 {
  9606  		n += 1 + sovPb(uint64(m.Index))
  9607  	}
  9608  	if m.ReadTs != 0 {
  9609  		n += 1 + sovPb(uint64(m.ReadTs))
  9610  	}
  9611  	if m.Done {
  9612  		n += 2
  9613  	}
  9614  	if m.SinceTs != 0 {
  9615  		n += 1 + sovPb(uint64(m.SinceTs))
  9616  	}
  9617  	if m.XXX_unrecognized != nil {
  9618  		n += len(m.XXX_unrecognized)
  9619  	}
  9620  	return n
  9621  }
  9622  
  9623  func (m *Proposal) Size() (n int) {
  9624  	if m == nil {
  9625  		return 0
  9626  	}
  9627  	var l int
  9628  	_ = l
  9629  	if m.Mutations != nil {
  9630  		l = m.Mutations.Size()
  9631  		n += 1 + l + sovPb(uint64(l))
  9632  	}
  9633  	if len(m.Kv) > 0 {
  9634  		for _, e := range m.Kv {
  9635  			l = e.Size()
  9636  			n += 1 + l + sovPb(uint64(l))
  9637  		}
  9638  	}
  9639  	if m.State != nil {
  9640  		l = m.State.Size()
  9641  		n += 1 + l + sovPb(uint64(l))
  9642  	}
  9643  	l = len(m.CleanPredicate)
  9644  	if l > 0 {
  9645  		n += 1 + l + sovPb(uint64(l))
  9646  	}
  9647  	l = len(m.Key)
  9648  	if l > 0 {
  9649  		n += 1 + l + sovPb(uint64(l))
  9650  	}
  9651  	if m.Delta != nil {
  9652  		l = m.Delta.Size()
  9653  		n += 1 + l + sovPb(uint64(l))
  9654  	}
  9655  	if m.Snapshot != nil {
  9656  		l = m.Snapshot.Size()
  9657  		n += 1 + l + sovPb(uint64(l))
  9658  	}
  9659  	if m.Index != 0 {
  9660  		n += 1 + sovPb(uint64(m.Index))
  9661  	}
  9662  	if m.XXX_unrecognized != nil {
  9663  		n += len(m.XXX_unrecognized)
  9664  	}
  9665  	return n
  9666  }
  9667  
  9668  func (m *KVS) Size() (n int) {
  9669  	if m == nil {
  9670  		return 0
  9671  	}
  9672  	var l int
  9673  	_ = l
  9674  	if len(m.Kv) > 0 {
  9675  		for _, e := range m.Kv {
  9676  			l = e.Size()
  9677  			n += 1 + l + sovPb(uint64(l))
  9678  		}
  9679  	}
  9680  	if m.Done {
  9681  		n += 2
  9682  	}
  9683  	if m.XXX_unrecognized != nil {
  9684  		n += len(m.XXX_unrecognized)
  9685  	}
  9686  	return n
  9687  }
  9688  
  9689  func (m *Posting) Size() (n int) {
  9690  	if m == nil {
  9691  		return 0
  9692  	}
  9693  	var l int
  9694  	_ = l
  9695  	if m.Uid != 0 {
  9696  		n += 9
  9697  	}
  9698  	l = len(m.Value)
  9699  	if l > 0 {
  9700  		n += 1 + l + sovPb(uint64(l))
  9701  	}
  9702  	if m.ValType != 0 {
  9703  		n += 1 + sovPb(uint64(m.ValType))
  9704  	}
  9705  	if m.PostingType != 0 {
  9706  		n += 1 + sovPb(uint64(m.PostingType))
  9707  	}
  9708  	l = len(m.LangTag)
  9709  	if l > 0 {
  9710  		n += 1 + l + sovPb(uint64(l))
  9711  	}
  9712  	l = len(m.Label)
  9713  	if l > 0 {
  9714  		n += 1 + l + sovPb(uint64(l))
  9715  	}
  9716  	if len(m.Facets) > 0 {
  9717  		for _, e := range m.Facets {
  9718  			l = e.Size()
  9719  			n += 1 + l + sovPb(uint64(l))
  9720  		}
  9721  	}
  9722  	if m.Op != 0 {
  9723  		n += 1 + sovPb(uint64(m.Op))
  9724  	}
  9725  	if m.StartTs != 0 {
  9726  		n += 1 + sovPb(uint64(m.StartTs))
  9727  	}
  9728  	if m.CommitTs != 0 {
  9729  		n += 1 + sovPb(uint64(m.CommitTs))
  9730  	}
  9731  	if m.XXX_unrecognized != nil {
  9732  		n += len(m.XXX_unrecognized)
  9733  	}
  9734  	return n
  9735  }
  9736  
  9737  func (m *UidBlock) Size() (n int) {
  9738  	if m == nil {
  9739  		return 0
  9740  	}
  9741  	var l int
  9742  	_ = l
  9743  	if m.Base != 0 {
  9744  		n += 1 + sovPb(uint64(m.Base))
  9745  	}
  9746  	l = len(m.Deltas)
  9747  	if l > 0 {
  9748  		n += 1 + l + sovPb(uint64(l))
  9749  	}
  9750  	if m.NumUids != 0 {
  9751  		n += 1 + sovPb(uint64(m.NumUids))
  9752  	}
  9753  	if m.XXX_unrecognized != nil {
  9754  		n += len(m.XXX_unrecognized)
  9755  	}
  9756  	return n
  9757  }
  9758  
  9759  func (m *UidPack) Size() (n int) {
  9760  	if m == nil {
  9761  		return 0
  9762  	}
  9763  	var l int
  9764  	_ = l
  9765  	if m.BlockSize != 0 {
  9766  		n += 1 + sovPb(uint64(m.BlockSize))
  9767  	}
  9768  	if len(m.Blocks) > 0 {
  9769  		for _, e := range m.Blocks {
  9770  			l = e.Size()
  9771  			n += 1 + l + sovPb(uint64(l))
  9772  		}
  9773  	}
  9774  	if m.XXX_unrecognized != nil {
  9775  		n += len(m.XXX_unrecognized)
  9776  	}
  9777  	return n
  9778  }
  9779  
  9780  func (m *PostingList) Size() (n int) {
  9781  	if m == nil {
  9782  		return 0
  9783  	}
  9784  	var l int
  9785  	_ = l
  9786  	if m.Pack != nil {
  9787  		l = m.Pack.Size()
  9788  		n += 1 + l + sovPb(uint64(l))
  9789  	}
  9790  	if len(m.Postings) > 0 {
  9791  		for _, e := range m.Postings {
  9792  			l = e.Size()
  9793  			n += 1 + l + sovPb(uint64(l))
  9794  		}
  9795  	}
  9796  	if m.CommitTs != 0 {
  9797  		n += 1 + sovPb(uint64(m.CommitTs))
  9798  	}
  9799  	if len(m.Splits) > 0 {
  9800  		l = 0
  9801  		for _, e := range m.Splits {
  9802  			l += sovPb(uint64(e))
  9803  		}
  9804  		n += 1 + sovPb(uint64(l)) + l
  9805  	}
  9806  	if m.XXX_unrecognized != nil {
  9807  		n += len(m.XXX_unrecognized)
  9808  	}
  9809  	return n
  9810  }
  9811  
  9812  func (m *FacetParam) Size() (n int) {
  9813  	if m == nil {
  9814  		return 0
  9815  	}
  9816  	var l int
  9817  	_ = l
  9818  	l = len(m.Key)
  9819  	if l > 0 {
  9820  		n += 1 + l + sovPb(uint64(l))
  9821  	}
  9822  	l = len(m.Alias)
  9823  	if l > 0 {
  9824  		n += 1 + l + sovPb(uint64(l))
  9825  	}
  9826  	if m.XXX_unrecognized != nil {
  9827  		n += len(m.XXX_unrecognized)
  9828  	}
  9829  	return n
  9830  }
  9831  
  9832  func (m *FacetParams) Size() (n int) {
  9833  	if m == nil {
  9834  		return 0
  9835  	}
  9836  	var l int
  9837  	_ = l
  9838  	if m.AllKeys {
  9839  		n += 2
  9840  	}
  9841  	if len(m.Param) > 0 {
  9842  		for _, e := range m.Param {
  9843  			l = e.Size()
  9844  			n += 1 + l + sovPb(uint64(l))
  9845  		}
  9846  	}
  9847  	if m.XXX_unrecognized != nil {
  9848  		n += len(m.XXX_unrecognized)
  9849  	}
  9850  	return n
  9851  }
  9852  
  9853  func (m *Facets) Size() (n int) {
  9854  	if m == nil {
  9855  		return 0
  9856  	}
  9857  	var l int
  9858  	_ = l
  9859  	if len(m.Facets) > 0 {
  9860  		for _, e := range m.Facets {
  9861  			l = e.Size()
  9862  			n += 1 + l + sovPb(uint64(l))
  9863  		}
  9864  	}
  9865  	if m.XXX_unrecognized != nil {
  9866  		n += len(m.XXX_unrecognized)
  9867  	}
  9868  	return n
  9869  }
  9870  
  9871  func (m *FacetsList) Size() (n int) {
  9872  	if m == nil {
  9873  		return 0
  9874  	}
  9875  	var l int
  9876  	_ = l
  9877  	if len(m.FacetsList) > 0 {
  9878  		for _, e := range m.FacetsList {
  9879  			l = e.Size()
  9880  			n += 1 + l + sovPb(uint64(l))
  9881  		}
  9882  	}
  9883  	if m.XXX_unrecognized != nil {
  9884  		n += len(m.XXX_unrecognized)
  9885  	}
  9886  	return n
  9887  }
  9888  
  9889  func (m *Function) Size() (n int) {
  9890  	if m == nil {
  9891  		return 0
  9892  	}
  9893  	var l int
  9894  	_ = l
  9895  	l = len(m.Name)
  9896  	if l > 0 {
  9897  		n += 1 + l + sovPb(uint64(l))
  9898  	}
  9899  	l = len(m.Key)
  9900  	if l > 0 {
  9901  		n += 1 + l + sovPb(uint64(l))
  9902  	}
  9903  	if len(m.Args) > 0 {
  9904  		for _, s := range m.Args {
  9905  			l = len(s)
  9906  			n += 1 + l + sovPb(uint64(l))
  9907  		}
  9908  	}
  9909  	if m.XXX_unrecognized != nil {
  9910  		n += len(m.XXX_unrecognized)
  9911  	}
  9912  	return n
  9913  }
  9914  
  9915  func (m *FilterTree) Size() (n int) {
  9916  	if m == nil {
  9917  		return 0
  9918  	}
  9919  	var l int
  9920  	_ = l
  9921  	l = len(m.Op)
  9922  	if l > 0 {
  9923  		n += 1 + l + sovPb(uint64(l))
  9924  	}
  9925  	if len(m.Children) > 0 {
  9926  		for _, e := range m.Children {
  9927  			l = e.Size()
  9928  			n += 1 + l + sovPb(uint64(l))
  9929  		}
  9930  	}
  9931  	if m.Func != nil {
  9932  		l = m.Func.Size()
  9933  		n += 1 + l + sovPb(uint64(l))
  9934  	}
  9935  	if m.XXX_unrecognized != nil {
  9936  		n += len(m.XXX_unrecognized)
  9937  	}
  9938  	return n
  9939  }
  9940  
  9941  func (m *SchemaRequest) Size() (n int) {
  9942  	if m == nil {
  9943  		return 0
  9944  	}
  9945  	var l int
  9946  	_ = l
  9947  	if m.GroupId != 0 {
  9948  		n += 1 + sovPb(uint64(m.GroupId))
  9949  	}
  9950  	if len(m.Predicates) > 0 {
  9951  		for _, s := range m.Predicates {
  9952  			l = len(s)
  9953  			n += 1 + l + sovPb(uint64(l))
  9954  		}
  9955  	}
  9956  	if len(m.Fields) > 0 {
  9957  		for _, s := range m.Fields {
  9958  			l = len(s)
  9959  			n += 1 + l + sovPb(uint64(l))
  9960  		}
  9961  	}
  9962  	if len(m.Types) > 0 {
  9963  		for _, s := range m.Types {
  9964  			l = len(s)
  9965  			n += 1 + l + sovPb(uint64(l))
  9966  		}
  9967  	}
  9968  	if m.XXX_unrecognized != nil {
  9969  		n += len(m.XXX_unrecognized)
  9970  	}
  9971  	return n
  9972  }
  9973  
  9974  func (m *SchemaNode) Size() (n int) {
  9975  	if m == nil {
  9976  		return 0
  9977  	}
  9978  	var l int
  9979  	_ = l
  9980  	l = len(m.Predicate)
  9981  	if l > 0 {
  9982  		n += 1 + l + sovPb(uint64(l))
  9983  	}
  9984  	l = len(m.Type)
  9985  	if l > 0 {
  9986  		n += 1 + l + sovPb(uint64(l))
  9987  	}
  9988  	if m.Index {
  9989  		n += 2
  9990  	}
  9991  	if len(m.Tokenizer) > 0 {
  9992  		for _, s := range m.Tokenizer {
  9993  			l = len(s)
  9994  			n += 1 + l + sovPb(uint64(l))
  9995  		}
  9996  	}
  9997  	if m.Reverse {
  9998  		n += 2
  9999  	}
 10000  	if m.Count {
 10001  		n += 2
 10002  	}
 10003  	if m.List {
 10004  		n += 2
 10005  	}
 10006  	if m.Upsert {
 10007  		n += 2
 10008  	}
 10009  	if m.Lang {
 10010  		n += 2
 10011  	}
 10012  	if m.XXX_unrecognized != nil {
 10013  		n += len(m.XXX_unrecognized)
 10014  	}
 10015  	return n
 10016  }
 10017  
 10018  func (m *SchemaResult) Size() (n int) {
 10019  	if m == nil {
 10020  		return 0
 10021  	}
 10022  	var l int
 10023  	_ = l
 10024  	if len(m.Schema) > 0 {
 10025  		for _, e := range m.Schema {
 10026  			l = e.Size()
 10027  			n += 1 + l + sovPb(uint64(l))
 10028  		}
 10029  	}
 10030  	if m.XXX_unrecognized != nil {
 10031  		n += len(m.XXX_unrecognized)
 10032  	}
 10033  	return n
 10034  }
 10035  
 10036  func (m *SchemaUpdate) Size() (n int) {
 10037  	if m == nil {
 10038  		return 0
 10039  	}
 10040  	var l int
 10041  	_ = l
 10042  	l = len(m.Predicate)
 10043  	if l > 0 {
 10044  		n += 1 + l + sovPb(uint64(l))
 10045  	}
 10046  	if m.ValueType != 0 {
 10047  		n += 1 + sovPb(uint64(m.ValueType))
 10048  	}
 10049  	if m.Directive != 0 {
 10050  		n += 1 + sovPb(uint64(m.Directive))
 10051  	}
 10052  	if len(m.Tokenizer) > 0 {
 10053  		for _, s := range m.Tokenizer {
 10054  			l = len(s)
 10055  			n += 1 + l + sovPb(uint64(l))
 10056  		}
 10057  	}
 10058  	if m.Count {
 10059  		n += 2
 10060  	}
 10061  	if m.List {
 10062  		n += 2
 10063  	}
 10064  	if m.Upsert {
 10065  		n += 2
 10066  	}
 10067  	if m.Lang {
 10068  		n += 2
 10069  	}
 10070  	if m.NonNullable {
 10071  		n += 2
 10072  	}
 10073  	if m.NonNullableList {
 10074  		n += 2
 10075  	}
 10076  	l = len(m.ObjectTypeName)
 10077  	if l > 0 {
 10078  		n += 1 + l + sovPb(uint64(l))
 10079  	}
 10080  	if m.XXX_unrecognized != nil {
 10081  		n += len(m.XXX_unrecognized)
 10082  	}
 10083  	return n
 10084  }
 10085  
 10086  func (m *TypeUpdate) Size() (n int) {
 10087  	if m == nil {
 10088  		return 0
 10089  	}
 10090  	var l int
 10091  	_ = l
 10092  	l = len(m.TypeName)
 10093  	if l > 0 {
 10094  		n += 1 + l + sovPb(uint64(l))
 10095  	}
 10096  	if len(m.Fields) > 0 {
 10097  		for _, e := range m.Fields {
 10098  			l = e.Size()
 10099  			n += 1 + l + sovPb(uint64(l))
 10100  		}
 10101  	}
 10102  	if m.XXX_unrecognized != nil {
 10103  		n += len(m.XXX_unrecognized)
 10104  	}
 10105  	return n
 10106  }
 10107  
 10108  func (m *MapEntry) Size() (n int) {
 10109  	if m == nil {
 10110  		return 0
 10111  	}
 10112  	var l int
 10113  	_ = l
 10114  	l = len(m.Key)
 10115  	if l > 0 {
 10116  		n += 1 + l + sovPb(uint64(l))
 10117  	}
 10118  	if m.Uid != 0 {
 10119  		n += 9
 10120  	}
 10121  	if m.Posting != nil {
 10122  		l = m.Posting.Size()
 10123  		n += 1 + l + sovPb(uint64(l))
 10124  	}
 10125  	if m.XXX_unrecognized != nil {
 10126  		n += len(m.XXX_unrecognized)
 10127  	}
 10128  	return n
 10129  }
 10130  
 10131  func (m *MovePredicatePayload) Size() (n int) {
 10132  	if m == nil {
 10133  		return 0
 10134  	}
 10135  	var l int
 10136  	_ = l
 10137  	l = len(m.Predicate)
 10138  	if l > 0 {
 10139  		n += 1 + l + sovPb(uint64(l))
 10140  	}
 10141  	if m.SourceGid != 0 {
 10142  		n += 1 + sovPb(uint64(m.SourceGid))
 10143  	}
 10144  	if m.DestGid != 0 {
 10145  		n += 1 + sovPb(uint64(m.DestGid))
 10146  	}
 10147  	if m.TxnTs != 0 {
 10148  		n += 1 + sovPb(uint64(m.TxnTs))
 10149  	}
 10150  	if m.XXX_unrecognized != nil {
 10151  		n += len(m.XXX_unrecognized)
 10152  	}
 10153  	return n
 10154  }
 10155  
 10156  func (m *TxnStatus) Size() (n int) {
 10157  	if m == nil {
 10158  		return 0
 10159  	}
 10160  	var l int
 10161  	_ = l
 10162  	if m.StartTs != 0 {
 10163  		n += 1 + sovPb(uint64(m.StartTs))
 10164  	}
 10165  	if m.CommitTs != 0 {
 10166  		n += 1 + sovPb(uint64(m.CommitTs))
 10167  	}
 10168  	if m.XXX_unrecognized != nil {
 10169  		n += len(m.XXX_unrecognized)
 10170  	}
 10171  	return n
 10172  }
 10173  
 10174  func (m *OracleDelta) Size() (n int) {
 10175  	if m == nil {
 10176  		return 0
 10177  	}
 10178  	var l int
 10179  	_ = l
 10180  	if len(m.Txns) > 0 {
 10181  		for _, e := range m.Txns {
 10182  			l = e.Size()
 10183  			n += 1 + l + sovPb(uint64(l))
 10184  		}
 10185  	}
 10186  	if m.MaxAssigned != 0 {
 10187  		n += 1 + sovPb(uint64(m.MaxAssigned))
 10188  	}
 10189  	if len(m.GroupChecksums) > 0 {
 10190  		for k, v := range m.GroupChecksums {
 10191  			_ = k
 10192  			_ = v
 10193  			mapEntrySize := 1 + sovPb(uint64(k)) + 1 + sovPb(uint64(v))
 10194  			n += mapEntrySize + 1 + sovPb(uint64(mapEntrySize))
 10195  		}
 10196  	}
 10197  	if m.XXX_unrecognized != nil {
 10198  		n += len(m.XXX_unrecognized)
 10199  	}
 10200  	return n
 10201  }
 10202  
 10203  func (m *TxnTimestamps) Size() (n int) {
 10204  	if m == nil {
 10205  		return 0
 10206  	}
 10207  	var l int
 10208  	_ = l
 10209  	if len(m.Ts) > 0 {
 10210  		l = 0
 10211  		for _, e := range m.Ts {
 10212  			l += sovPb(uint64(e))
 10213  		}
 10214  		n += 1 + sovPb(uint64(l)) + l
 10215  	}
 10216  	if m.XXX_unrecognized != nil {
 10217  		n += len(m.XXX_unrecognized)
 10218  	}
 10219  	return n
 10220  }
 10221  
 10222  func (m *PeerResponse) Size() (n int) {
 10223  	if m == nil {
 10224  		return 0
 10225  	}
 10226  	var l int
 10227  	_ = l
 10228  	if m.Status {
 10229  		n += 2
 10230  	}
 10231  	if m.XXX_unrecognized != nil {
 10232  		n += len(m.XXX_unrecognized)
 10233  	}
 10234  	return n
 10235  }
 10236  
 10237  func (m *RaftBatch) Size() (n int) {
 10238  	if m == nil {
 10239  		return 0
 10240  	}
 10241  	var l int
 10242  	_ = l
 10243  	if m.Context != nil {
 10244  		l = m.Context.Size()
 10245  		n += 1 + l + sovPb(uint64(l))
 10246  	}
 10247  	if m.Payload != nil {
 10248  		l = m.Payload.Size()
 10249  		n += 1 + l + sovPb(uint64(l))
 10250  	}
 10251  	if m.XXX_unrecognized != nil {
 10252  		n += len(m.XXX_unrecognized)
 10253  	}
 10254  	return n
 10255  }
 10256  
 10257  func (m *Num) Size() (n int) {
 10258  	if m == nil {
 10259  		return 0
 10260  	}
 10261  	var l int
 10262  	_ = l
 10263  	if m.Val != 0 {
 10264  		n += 1 + sovPb(uint64(m.Val))
 10265  	}
 10266  	if m.ReadOnly {
 10267  		n += 2
 10268  	}
 10269  	if m.Forwarded {
 10270  		n += 2
 10271  	}
 10272  	if m.XXX_unrecognized != nil {
 10273  		n += len(m.XXX_unrecognized)
 10274  	}
 10275  	return n
 10276  }
 10277  
 10278  func (m *AssignedIds) Size() (n int) {
 10279  	if m == nil {
 10280  		return 0
 10281  	}
 10282  	var l int
 10283  	_ = l
 10284  	if m.StartId != 0 {
 10285  		n += 1 + sovPb(uint64(m.StartId))
 10286  	}
 10287  	if m.EndId != 0 {
 10288  		n += 1 + sovPb(uint64(m.EndId))
 10289  	}
 10290  	if m.ReadOnly != 0 {
 10291  		n += 1 + sovPb(uint64(m.ReadOnly))
 10292  	}
 10293  	if m.XXX_unrecognized != nil {
 10294  		n += len(m.XXX_unrecognized)
 10295  	}
 10296  	return n
 10297  }
 10298  
 10299  func (m *SnapshotMeta) Size() (n int) {
 10300  	if m == nil {
 10301  		return 0
 10302  	}
 10303  	var l int
 10304  	_ = l
 10305  	if m.ClientTs != 0 {
 10306  		n += 1 + sovPb(uint64(m.ClientTs))
 10307  	}
 10308  	if m.GroupId != 0 {
 10309  		n += 1 + sovPb(uint64(m.GroupId))
 10310  	}
 10311  	if m.XXX_unrecognized != nil {
 10312  		n += len(m.XXX_unrecognized)
 10313  	}
 10314  	return n
 10315  }
 10316  
 10317  func (m *Status) Size() (n int) {
 10318  	if m == nil {
 10319  		return 0
 10320  	}
 10321  	var l int
 10322  	_ = l
 10323  	if m.Code != 0 {
 10324  		n += 1 + sovPb(uint64(m.Code))
 10325  	}
 10326  	l = len(m.Msg)
 10327  	if l > 0 {
 10328  		n += 1 + l + sovPb(uint64(l))
 10329  	}
 10330  	if m.XXX_unrecognized != nil {
 10331  		n += len(m.XXX_unrecognized)
 10332  	}
 10333  	return n
 10334  }
 10335  
 10336  func (m *BackupRequest) Size() (n int) {
 10337  	if m == nil {
 10338  		return 0
 10339  	}
 10340  	var l int
 10341  	_ = l
 10342  	if m.ReadTs != 0 {
 10343  		n += 1 + sovPb(uint64(m.ReadTs))
 10344  	}
 10345  	if m.SinceTs != 0 {
 10346  		n += 1 + sovPb(uint64(m.SinceTs))
 10347  	}
 10348  	if m.GroupId != 0 {
 10349  		n += 1 + sovPb(uint64(m.GroupId))
 10350  	}
 10351  	l = len(m.UnixTs)
 10352  	if l > 0 {
 10353  		n += 1 + l + sovPb(uint64(l))
 10354  	}
 10355  	l = len(m.Destination)
 10356  	if l > 0 {
 10357  		n += 1 + l + sovPb(uint64(l))
 10358  	}
 10359  	l = len(m.AccessKey)
 10360  	if l > 0 {
 10361  		n += 1 + l + sovPb(uint64(l))
 10362  	}
 10363  	l = len(m.SecretKey)
 10364  	if l > 0 {
 10365  		n += 1 + l + sovPb(uint64(l))
 10366  	}
 10367  	l = len(m.SessionToken)
 10368  	if l > 0 {
 10369  		n += 1 + l + sovPb(uint64(l))
 10370  	}
 10371  	if m.Anonymous {
 10372  		n += 2
 10373  	}
 10374  	if len(m.Predicates) > 0 {
 10375  		for _, s := range m.Predicates {
 10376  			l = len(s)
 10377  			n += 1 + l + sovPb(uint64(l))
 10378  		}
 10379  	}
 10380  	if m.XXX_unrecognized != nil {
 10381  		n += len(m.XXX_unrecognized)
 10382  	}
 10383  	return n
 10384  }
 10385  
 10386  func (m *ExportRequest) Size() (n int) {
 10387  	if m == nil {
 10388  		return 0
 10389  	}
 10390  	var l int
 10391  	_ = l
 10392  	if m.GroupId != 0 {
 10393  		n += 1 + sovPb(uint64(m.GroupId))
 10394  	}
 10395  	if m.ReadTs != 0 {
 10396  		n += 1 + sovPb(uint64(m.ReadTs))
 10397  	}
 10398  	if m.UnixTs != 0 {
 10399  		n += 1 + sovPb(uint64(m.UnixTs))
 10400  	}
 10401  	l = len(m.Format)
 10402  	if l > 0 {
 10403  		n += 1 + l + sovPb(uint64(l))
 10404  	}
 10405  	if m.XXX_unrecognized != nil {
 10406  		n += len(m.XXX_unrecognized)
 10407  	}
 10408  	return n
 10409  }
 10410  
 10411  func (m *BackupKey) Size() (n int) {
 10412  	if m == nil {
 10413  		return 0
 10414  	}
 10415  	var l int
 10416  	_ = l
 10417  	if m.Type != 0 {
 10418  		n += 1 + sovPb(uint64(m.Type))
 10419  	}
 10420  	l = len(m.Attr)
 10421  	if l > 0 {
 10422  		n += 1 + l + sovPb(uint64(l))
 10423  	}
 10424  	if m.Uid != 0 {
 10425  		n += 1 + sovPb(uint64(m.Uid))
 10426  	}
 10427  	if m.StartUid != 0 {
 10428  		n += 1 + sovPb(uint64(m.StartUid))
 10429  	}
 10430  	l = len(m.Term)
 10431  	if l > 0 {
 10432  		n += 1 + l + sovPb(uint64(l))
 10433  	}
 10434  	if m.Count != 0 {
 10435  		n += 1 + sovPb(uint64(m.Count))
 10436  	}
 10437  	if m.XXX_unrecognized != nil {
 10438  		n += len(m.XXX_unrecognized)
 10439  	}
 10440  	return n
 10441  }
 10442  
 10443  func (m *BackupPostingList) Size() (n int) {
 10444  	if m == nil {
 10445  		return 0
 10446  	}
 10447  	var l int
 10448  	_ = l
 10449  	if len(m.Uids) > 0 {
 10450  		l = 0
 10451  		for _, e := range m.Uids {
 10452  			l += sovPb(uint64(e))
 10453  		}
 10454  		n += 1 + sovPb(uint64(l)) + l
 10455  	}
 10456  	if len(m.Postings) > 0 {
 10457  		for _, e := range m.Postings {
 10458  			l = e.Size()
 10459  			n += 1 + l + sovPb(uint64(l))
 10460  		}
 10461  	}
 10462  	if m.CommitTs != 0 {
 10463  		n += 1 + sovPb(uint64(m.CommitTs))
 10464  	}
 10465  	if len(m.Splits) > 0 {
 10466  		l = 0
 10467  		for _, e := range m.Splits {
 10468  			l += sovPb(uint64(e))
 10469  		}
 10470  		n += 1 + sovPb(uint64(l)) + l
 10471  	}
 10472  	if m.XXX_unrecognized != nil {
 10473  		n += len(m.XXX_unrecognized)
 10474  	}
 10475  	return n
 10476  }
 10477  
 10478  func sovPb(x uint64) (n int) {
 10479  	return (math_bits.Len64(x|1) + 6) / 7
 10480  }
 10481  func sozPb(x uint64) (n int) {
 10482  	return sovPb(uint64((x << 1) ^ uint64((int64(x) >> 63))))
 10483  }
 10484  func (m *List) Unmarshal(dAtA []byte) error {
 10485  	l := len(dAtA)
 10486  	iNdEx := 0
 10487  	for iNdEx < l {
 10488  		preIndex := iNdEx
 10489  		var wire uint64
 10490  		for shift := uint(0); ; shift += 7 {
 10491  			if shift >= 64 {
 10492  				return ErrIntOverflowPb
 10493  			}
 10494  			if iNdEx >= l {
 10495  				return io.ErrUnexpectedEOF
 10496  			}
 10497  			b := dAtA[iNdEx]
 10498  			iNdEx++
 10499  			wire |= uint64(b&0x7F) << shift
 10500  			if b < 0x80 {
 10501  				break
 10502  			}
 10503  		}
 10504  		fieldNum := int32(wire >> 3)
 10505  		wireType := int(wire & 0x7)
 10506  		if wireType == 4 {
 10507  			return fmt.Errorf("proto: List: wiretype end group for non-group")
 10508  		}
 10509  		if fieldNum <= 0 {
 10510  			return fmt.Errorf("proto: List: illegal tag %d (wire type %d)", fieldNum, wire)
 10511  		}
 10512  		switch fieldNum {
 10513  		case 1:
 10514  			if wireType == 1 {
 10515  				var v uint64
 10516  				if (iNdEx + 8) > l {
 10517  					return io.ErrUnexpectedEOF
 10518  				}
 10519  				v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
 10520  				iNdEx += 8
 10521  				m.Uids = append(m.Uids, v)
 10522  			} else if wireType == 2 {
 10523  				var packedLen int
 10524  				for shift := uint(0); ; shift += 7 {
 10525  					if shift >= 64 {
 10526  						return ErrIntOverflowPb
 10527  					}
 10528  					if iNdEx >= l {
 10529  						return io.ErrUnexpectedEOF
 10530  					}
 10531  					b := dAtA[iNdEx]
 10532  					iNdEx++
 10533  					packedLen |= int(b&0x7F) << shift
 10534  					if b < 0x80 {
 10535  						break
 10536  					}
 10537  				}
 10538  				if packedLen < 0 {
 10539  					return ErrInvalidLengthPb
 10540  				}
 10541  				postIndex := iNdEx + packedLen
 10542  				if postIndex < 0 {
 10543  					return ErrInvalidLengthPb
 10544  				}
 10545  				if postIndex > l {
 10546  					return io.ErrUnexpectedEOF
 10547  				}
 10548  				var elementCount int
 10549  				elementCount = packedLen / 8
 10550  				if elementCount != 0 && len(m.Uids) == 0 {
 10551  					m.Uids = make([]uint64, 0, elementCount)
 10552  				}
 10553  				for iNdEx < postIndex {
 10554  					var v uint64
 10555  					if (iNdEx + 8) > l {
 10556  						return io.ErrUnexpectedEOF
 10557  					}
 10558  					v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
 10559  					iNdEx += 8
 10560  					m.Uids = append(m.Uids, v)
 10561  				}
 10562  			} else {
 10563  				return fmt.Errorf("proto: wrong wireType = %d for field Uids", wireType)
 10564  			}
 10565  		default:
 10566  			iNdEx = preIndex
 10567  			skippy, err := skipPb(dAtA[iNdEx:])
 10568  			if err != nil {
 10569  				return err
 10570  			}
 10571  			if skippy < 0 {
 10572  				return ErrInvalidLengthPb
 10573  			}
 10574  			if (iNdEx + skippy) < 0 {
 10575  				return ErrInvalidLengthPb
 10576  			}
 10577  			if (iNdEx + skippy) > l {
 10578  				return io.ErrUnexpectedEOF
 10579  			}
 10580  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 10581  			iNdEx += skippy
 10582  		}
 10583  	}
 10584  
 10585  	if iNdEx > l {
 10586  		return io.ErrUnexpectedEOF
 10587  	}
 10588  	return nil
 10589  }
 10590  func (m *TaskValue) Unmarshal(dAtA []byte) error {
 10591  	l := len(dAtA)
 10592  	iNdEx := 0
 10593  	for iNdEx < l {
 10594  		preIndex := iNdEx
 10595  		var wire uint64
 10596  		for shift := uint(0); ; shift += 7 {
 10597  			if shift >= 64 {
 10598  				return ErrIntOverflowPb
 10599  			}
 10600  			if iNdEx >= l {
 10601  				return io.ErrUnexpectedEOF
 10602  			}
 10603  			b := dAtA[iNdEx]
 10604  			iNdEx++
 10605  			wire |= uint64(b&0x7F) << shift
 10606  			if b < 0x80 {
 10607  				break
 10608  			}
 10609  		}
 10610  		fieldNum := int32(wire >> 3)
 10611  		wireType := int(wire & 0x7)
 10612  		if wireType == 4 {
 10613  			return fmt.Errorf("proto: TaskValue: wiretype end group for non-group")
 10614  		}
 10615  		if fieldNum <= 0 {
 10616  			return fmt.Errorf("proto: TaskValue: illegal tag %d (wire type %d)", fieldNum, wire)
 10617  		}
 10618  		switch fieldNum {
 10619  		case 1:
 10620  			if wireType != 2 {
 10621  				return fmt.Errorf("proto: wrong wireType = %d for field Val", wireType)
 10622  			}
 10623  			var byteLen int
 10624  			for shift := uint(0); ; shift += 7 {
 10625  				if shift >= 64 {
 10626  					return ErrIntOverflowPb
 10627  				}
 10628  				if iNdEx >= l {
 10629  					return io.ErrUnexpectedEOF
 10630  				}
 10631  				b := dAtA[iNdEx]
 10632  				iNdEx++
 10633  				byteLen |= int(b&0x7F) << shift
 10634  				if b < 0x80 {
 10635  					break
 10636  				}
 10637  			}
 10638  			if byteLen < 0 {
 10639  				return ErrInvalidLengthPb
 10640  			}
 10641  			postIndex := iNdEx + byteLen
 10642  			if postIndex < 0 {
 10643  				return ErrInvalidLengthPb
 10644  			}
 10645  			if postIndex > l {
 10646  				return io.ErrUnexpectedEOF
 10647  			}
 10648  			m.Val = append(m.Val[:0], dAtA[iNdEx:postIndex]...)
 10649  			if m.Val == nil {
 10650  				m.Val = []byte{}
 10651  			}
 10652  			iNdEx = postIndex
 10653  		case 2:
 10654  			if wireType != 0 {
 10655  				return fmt.Errorf("proto: wrong wireType = %d for field ValType", wireType)
 10656  			}
 10657  			m.ValType = 0
 10658  			for shift := uint(0); ; shift += 7 {
 10659  				if shift >= 64 {
 10660  					return ErrIntOverflowPb
 10661  				}
 10662  				if iNdEx >= l {
 10663  					return io.ErrUnexpectedEOF
 10664  				}
 10665  				b := dAtA[iNdEx]
 10666  				iNdEx++
 10667  				m.ValType |= Posting_ValType(b&0x7F) << shift
 10668  				if b < 0x80 {
 10669  					break
 10670  				}
 10671  			}
 10672  		default:
 10673  			iNdEx = preIndex
 10674  			skippy, err := skipPb(dAtA[iNdEx:])
 10675  			if err != nil {
 10676  				return err
 10677  			}
 10678  			if skippy < 0 {
 10679  				return ErrInvalidLengthPb
 10680  			}
 10681  			if (iNdEx + skippy) < 0 {
 10682  				return ErrInvalidLengthPb
 10683  			}
 10684  			if (iNdEx + skippy) > l {
 10685  				return io.ErrUnexpectedEOF
 10686  			}
 10687  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 10688  			iNdEx += skippy
 10689  		}
 10690  	}
 10691  
 10692  	if iNdEx > l {
 10693  		return io.ErrUnexpectedEOF
 10694  	}
 10695  	return nil
 10696  }
 10697  func (m *SrcFunction) Unmarshal(dAtA []byte) error {
 10698  	l := len(dAtA)
 10699  	iNdEx := 0
 10700  	for iNdEx < l {
 10701  		preIndex := iNdEx
 10702  		var wire uint64
 10703  		for shift := uint(0); ; shift += 7 {
 10704  			if shift >= 64 {
 10705  				return ErrIntOverflowPb
 10706  			}
 10707  			if iNdEx >= l {
 10708  				return io.ErrUnexpectedEOF
 10709  			}
 10710  			b := dAtA[iNdEx]
 10711  			iNdEx++
 10712  			wire |= uint64(b&0x7F) << shift
 10713  			if b < 0x80 {
 10714  				break
 10715  			}
 10716  		}
 10717  		fieldNum := int32(wire >> 3)
 10718  		wireType := int(wire & 0x7)
 10719  		if wireType == 4 {
 10720  			return fmt.Errorf("proto: SrcFunction: wiretype end group for non-group")
 10721  		}
 10722  		if fieldNum <= 0 {
 10723  			return fmt.Errorf("proto: SrcFunction: illegal tag %d (wire type %d)", fieldNum, wire)
 10724  		}
 10725  		switch fieldNum {
 10726  		case 1:
 10727  			if wireType != 2 {
 10728  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
 10729  			}
 10730  			var stringLen uint64
 10731  			for shift := uint(0); ; shift += 7 {
 10732  				if shift >= 64 {
 10733  					return ErrIntOverflowPb
 10734  				}
 10735  				if iNdEx >= l {
 10736  					return io.ErrUnexpectedEOF
 10737  				}
 10738  				b := dAtA[iNdEx]
 10739  				iNdEx++
 10740  				stringLen |= uint64(b&0x7F) << shift
 10741  				if b < 0x80 {
 10742  					break
 10743  				}
 10744  			}
 10745  			intStringLen := int(stringLen)
 10746  			if intStringLen < 0 {
 10747  				return ErrInvalidLengthPb
 10748  			}
 10749  			postIndex := iNdEx + intStringLen
 10750  			if postIndex < 0 {
 10751  				return ErrInvalidLengthPb
 10752  			}
 10753  			if postIndex > l {
 10754  				return io.ErrUnexpectedEOF
 10755  			}
 10756  			m.Name = string(dAtA[iNdEx:postIndex])
 10757  			iNdEx = postIndex
 10758  		case 3:
 10759  			if wireType != 2 {
 10760  				return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType)
 10761  			}
 10762  			var stringLen uint64
 10763  			for shift := uint(0); ; shift += 7 {
 10764  				if shift >= 64 {
 10765  					return ErrIntOverflowPb
 10766  				}
 10767  				if iNdEx >= l {
 10768  					return io.ErrUnexpectedEOF
 10769  				}
 10770  				b := dAtA[iNdEx]
 10771  				iNdEx++
 10772  				stringLen |= uint64(b&0x7F) << shift
 10773  				if b < 0x80 {
 10774  					break
 10775  				}
 10776  			}
 10777  			intStringLen := int(stringLen)
 10778  			if intStringLen < 0 {
 10779  				return ErrInvalidLengthPb
 10780  			}
 10781  			postIndex := iNdEx + intStringLen
 10782  			if postIndex < 0 {
 10783  				return ErrInvalidLengthPb
 10784  			}
 10785  			if postIndex > l {
 10786  				return io.ErrUnexpectedEOF
 10787  			}
 10788  			m.Args = append(m.Args, string(dAtA[iNdEx:postIndex]))
 10789  			iNdEx = postIndex
 10790  		case 4:
 10791  			if wireType != 0 {
 10792  				return fmt.Errorf("proto: wrong wireType = %d for field IsCount", wireType)
 10793  			}
 10794  			var v int
 10795  			for shift := uint(0); ; shift += 7 {
 10796  				if shift >= 64 {
 10797  					return ErrIntOverflowPb
 10798  				}
 10799  				if iNdEx >= l {
 10800  					return io.ErrUnexpectedEOF
 10801  				}
 10802  				b := dAtA[iNdEx]
 10803  				iNdEx++
 10804  				v |= int(b&0x7F) << shift
 10805  				if b < 0x80 {
 10806  					break
 10807  				}
 10808  			}
 10809  			m.IsCount = bool(v != 0)
 10810  		default:
 10811  			iNdEx = preIndex
 10812  			skippy, err := skipPb(dAtA[iNdEx:])
 10813  			if err != nil {
 10814  				return err
 10815  			}
 10816  			if skippy < 0 {
 10817  				return ErrInvalidLengthPb
 10818  			}
 10819  			if (iNdEx + skippy) < 0 {
 10820  				return ErrInvalidLengthPb
 10821  			}
 10822  			if (iNdEx + skippy) > l {
 10823  				return io.ErrUnexpectedEOF
 10824  			}
 10825  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 10826  			iNdEx += skippy
 10827  		}
 10828  	}
 10829  
 10830  	if iNdEx > l {
 10831  		return io.ErrUnexpectedEOF
 10832  	}
 10833  	return nil
 10834  }
 10835  func (m *Query) Unmarshal(dAtA []byte) error {
 10836  	l := len(dAtA)
 10837  	iNdEx := 0
 10838  	for iNdEx < l {
 10839  		preIndex := iNdEx
 10840  		var wire uint64
 10841  		for shift := uint(0); ; shift += 7 {
 10842  			if shift >= 64 {
 10843  				return ErrIntOverflowPb
 10844  			}
 10845  			if iNdEx >= l {
 10846  				return io.ErrUnexpectedEOF
 10847  			}
 10848  			b := dAtA[iNdEx]
 10849  			iNdEx++
 10850  			wire |= uint64(b&0x7F) << shift
 10851  			if b < 0x80 {
 10852  				break
 10853  			}
 10854  		}
 10855  		fieldNum := int32(wire >> 3)
 10856  		wireType := int(wire & 0x7)
 10857  		if wireType == 4 {
 10858  			return fmt.Errorf("proto: Query: wiretype end group for non-group")
 10859  		}
 10860  		if fieldNum <= 0 {
 10861  			return fmt.Errorf("proto: Query: illegal tag %d (wire type %d)", fieldNum, wire)
 10862  		}
 10863  		switch fieldNum {
 10864  		case 1:
 10865  			if wireType != 2 {
 10866  				return fmt.Errorf("proto: wrong wireType = %d for field Attr", wireType)
 10867  			}
 10868  			var stringLen uint64
 10869  			for shift := uint(0); ; shift += 7 {
 10870  				if shift >= 64 {
 10871  					return ErrIntOverflowPb
 10872  				}
 10873  				if iNdEx >= l {
 10874  					return io.ErrUnexpectedEOF
 10875  				}
 10876  				b := dAtA[iNdEx]
 10877  				iNdEx++
 10878  				stringLen |= uint64(b&0x7F) << shift
 10879  				if b < 0x80 {
 10880  					break
 10881  				}
 10882  			}
 10883  			intStringLen := int(stringLen)
 10884  			if intStringLen < 0 {
 10885  				return ErrInvalidLengthPb
 10886  			}
 10887  			postIndex := iNdEx + intStringLen
 10888  			if postIndex < 0 {
 10889  				return ErrInvalidLengthPb
 10890  			}
 10891  			if postIndex > l {
 10892  				return io.ErrUnexpectedEOF
 10893  			}
 10894  			m.Attr = string(dAtA[iNdEx:postIndex])
 10895  			iNdEx = postIndex
 10896  		case 2:
 10897  			if wireType != 2 {
 10898  				return fmt.Errorf("proto: wrong wireType = %d for field Langs", wireType)
 10899  			}
 10900  			var stringLen uint64
 10901  			for shift := uint(0); ; shift += 7 {
 10902  				if shift >= 64 {
 10903  					return ErrIntOverflowPb
 10904  				}
 10905  				if iNdEx >= l {
 10906  					return io.ErrUnexpectedEOF
 10907  				}
 10908  				b := dAtA[iNdEx]
 10909  				iNdEx++
 10910  				stringLen |= uint64(b&0x7F) << shift
 10911  				if b < 0x80 {
 10912  					break
 10913  				}
 10914  			}
 10915  			intStringLen := int(stringLen)
 10916  			if intStringLen < 0 {
 10917  				return ErrInvalidLengthPb
 10918  			}
 10919  			postIndex := iNdEx + intStringLen
 10920  			if postIndex < 0 {
 10921  				return ErrInvalidLengthPb
 10922  			}
 10923  			if postIndex > l {
 10924  				return io.ErrUnexpectedEOF
 10925  			}
 10926  			m.Langs = append(m.Langs, string(dAtA[iNdEx:postIndex]))
 10927  			iNdEx = postIndex
 10928  		case 3:
 10929  			if wireType != 1 {
 10930  				return fmt.Errorf("proto: wrong wireType = %d for field AfterUid", wireType)
 10931  			}
 10932  			m.AfterUid = 0
 10933  			if (iNdEx + 8) > l {
 10934  				return io.ErrUnexpectedEOF
 10935  			}
 10936  			m.AfterUid = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
 10937  			iNdEx += 8
 10938  		case 4:
 10939  			if wireType != 0 {
 10940  				return fmt.Errorf("proto: wrong wireType = %d for field DoCount", wireType)
 10941  			}
 10942  			var v int
 10943  			for shift := uint(0); ; shift += 7 {
 10944  				if shift >= 64 {
 10945  					return ErrIntOverflowPb
 10946  				}
 10947  				if iNdEx >= l {
 10948  					return io.ErrUnexpectedEOF
 10949  				}
 10950  				b := dAtA[iNdEx]
 10951  				iNdEx++
 10952  				v |= int(b&0x7F) << shift
 10953  				if b < 0x80 {
 10954  					break
 10955  				}
 10956  			}
 10957  			m.DoCount = bool(v != 0)
 10958  		case 5:
 10959  			if wireType != 2 {
 10960  				return fmt.Errorf("proto: wrong wireType = %d for field UidList", wireType)
 10961  			}
 10962  			var msglen int
 10963  			for shift := uint(0); ; shift += 7 {
 10964  				if shift >= 64 {
 10965  					return ErrIntOverflowPb
 10966  				}
 10967  				if iNdEx >= l {
 10968  					return io.ErrUnexpectedEOF
 10969  				}
 10970  				b := dAtA[iNdEx]
 10971  				iNdEx++
 10972  				msglen |= int(b&0x7F) << shift
 10973  				if b < 0x80 {
 10974  					break
 10975  				}
 10976  			}
 10977  			if msglen < 0 {
 10978  				return ErrInvalidLengthPb
 10979  			}
 10980  			postIndex := iNdEx + msglen
 10981  			if postIndex < 0 {
 10982  				return ErrInvalidLengthPb
 10983  			}
 10984  			if postIndex > l {
 10985  				return io.ErrUnexpectedEOF
 10986  			}
 10987  			if m.UidList == nil {
 10988  				m.UidList = &List{}
 10989  			}
 10990  			if err := m.UidList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 10991  				return err
 10992  			}
 10993  			iNdEx = postIndex
 10994  		case 6:
 10995  			if wireType != 2 {
 10996  				return fmt.Errorf("proto: wrong wireType = %d for field SrcFunc", wireType)
 10997  			}
 10998  			var msglen int
 10999  			for shift := uint(0); ; shift += 7 {
 11000  				if shift >= 64 {
 11001  					return ErrIntOverflowPb
 11002  				}
 11003  				if iNdEx >= l {
 11004  					return io.ErrUnexpectedEOF
 11005  				}
 11006  				b := dAtA[iNdEx]
 11007  				iNdEx++
 11008  				msglen |= int(b&0x7F) << shift
 11009  				if b < 0x80 {
 11010  					break
 11011  				}
 11012  			}
 11013  			if msglen < 0 {
 11014  				return ErrInvalidLengthPb
 11015  			}
 11016  			postIndex := iNdEx + msglen
 11017  			if postIndex < 0 {
 11018  				return ErrInvalidLengthPb
 11019  			}
 11020  			if postIndex > l {
 11021  				return io.ErrUnexpectedEOF
 11022  			}
 11023  			if m.SrcFunc == nil {
 11024  				m.SrcFunc = &SrcFunction{}
 11025  			}
 11026  			if err := m.SrcFunc.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 11027  				return err
 11028  			}
 11029  			iNdEx = postIndex
 11030  		case 7:
 11031  			if wireType != 0 {
 11032  				return fmt.Errorf("proto: wrong wireType = %d for field Reverse", wireType)
 11033  			}
 11034  			var v int
 11035  			for shift := uint(0); ; shift += 7 {
 11036  				if shift >= 64 {
 11037  					return ErrIntOverflowPb
 11038  				}
 11039  				if iNdEx >= l {
 11040  					return io.ErrUnexpectedEOF
 11041  				}
 11042  				b := dAtA[iNdEx]
 11043  				iNdEx++
 11044  				v |= int(b&0x7F) << shift
 11045  				if b < 0x80 {
 11046  					break
 11047  				}
 11048  			}
 11049  			m.Reverse = bool(v != 0)
 11050  		case 8:
 11051  			if wireType != 2 {
 11052  				return fmt.Errorf("proto: wrong wireType = %d for field FacetParam", wireType)
 11053  			}
 11054  			var msglen int
 11055  			for shift := uint(0); ; shift += 7 {
 11056  				if shift >= 64 {
 11057  					return ErrIntOverflowPb
 11058  				}
 11059  				if iNdEx >= l {
 11060  					return io.ErrUnexpectedEOF
 11061  				}
 11062  				b := dAtA[iNdEx]
 11063  				iNdEx++
 11064  				msglen |= int(b&0x7F) << shift
 11065  				if b < 0x80 {
 11066  					break
 11067  				}
 11068  			}
 11069  			if msglen < 0 {
 11070  				return ErrInvalidLengthPb
 11071  			}
 11072  			postIndex := iNdEx + msglen
 11073  			if postIndex < 0 {
 11074  				return ErrInvalidLengthPb
 11075  			}
 11076  			if postIndex > l {
 11077  				return io.ErrUnexpectedEOF
 11078  			}
 11079  			if m.FacetParam == nil {
 11080  				m.FacetParam = &FacetParams{}
 11081  			}
 11082  			if err := m.FacetParam.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 11083  				return err
 11084  			}
 11085  			iNdEx = postIndex
 11086  		case 9:
 11087  			if wireType != 2 {
 11088  				return fmt.Errorf("proto: wrong wireType = %d for field FacetsFilter", wireType)
 11089  			}
 11090  			var msglen int
 11091  			for shift := uint(0); ; shift += 7 {
 11092  				if shift >= 64 {
 11093  					return ErrIntOverflowPb
 11094  				}
 11095  				if iNdEx >= l {
 11096  					return io.ErrUnexpectedEOF
 11097  				}
 11098  				b := dAtA[iNdEx]
 11099  				iNdEx++
 11100  				msglen |= int(b&0x7F) << shift
 11101  				if b < 0x80 {
 11102  					break
 11103  				}
 11104  			}
 11105  			if msglen < 0 {
 11106  				return ErrInvalidLengthPb
 11107  			}
 11108  			postIndex := iNdEx + msglen
 11109  			if postIndex < 0 {
 11110  				return ErrInvalidLengthPb
 11111  			}
 11112  			if postIndex > l {
 11113  				return io.ErrUnexpectedEOF
 11114  			}
 11115  			if m.FacetsFilter == nil {
 11116  				m.FacetsFilter = &FilterTree{}
 11117  			}
 11118  			if err := m.FacetsFilter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 11119  				return err
 11120  			}
 11121  			iNdEx = postIndex
 11122  		case 10:
 11123  			if wireType != 0 {
 11124  				return fmt.Errorf("proto: wrong wireType = %d for field ExpandAll", wireType)
 11125  			}
 11126  			var v int
 11127  			for shift := uint(0); ; shift += 7 {
 11128  				if shift >= 64 {
 11129  					return ErrIntOverflowPb
 11130  				}
 11131  				if iNdEx >= l {
 11132  					return io.ErrUnexpectedEOF
 11133  				}
 11134  				b := dAtA[iNdEx]
 11135  				iNdEx++
 11136  				v |= int(b&0x7F) << shift
 11137  				if b < 0x80 {
 11138  					break
 11139  				}
 11140  			}
 11141  			m.ExpandAll = bool(v != 0)
 11142  		case 13:
 11143  			if wireType != 0 {
 11144  				return fmt.Errorf("proto: wrong wireType = %d for field ReadTs", wireType)
 11145  			}
 11146  			m.ReadTs = 0
 11147  			for shift := uint(0); ; shift += 7 {
 11148  				if shift >= 64 {
 11149  					return ErrIntOverflowPb
 11150  				}
 11151  				if iNdEx >= l {
 11152  					return io.ErrUnexpectedEOF
 11153  				}
 11154  				b := dAtA[iNdEx]
 11155  				iNdEx++
 11156  				m.ReadTs |= uint64(b&0x7F) << shift
 11157  				if b < 0x80 {
 11158  					break
 11159  				}
 11160  			}
 11161  		case 14:
 11162  			if wireType != 0 {
 11163  				return fmt.Errorf("proto: wrong wireType = %d for field Cache", wireType)
 11164  			}
 11165  			m.Cache = 0
 11166  			for shift := uint(0); ; shift += 7 {
 11167  				if shift >= 64 {
 11168  					return ErrIntOverflowPb
 11169  				}
 11170  				if iNdEx >= l {
 11171  					return io.ErrUnexpectedEOF
 11172  				}
 11173  				b := dAtA[iNdEx]
 11174  				iNdEx++
 11175  				m.Cache |= int32(b&0x7F) << shift
 11176  				if b < 0x80 {
 11177  					break
 11178  				}
 11179  			}
 11180  		default:
 11181  			iNdEx = preIndex
 11182  			skippy, err := skipPb(dAtA[iNdEx:])
 11183  			if err != nil {
 11184  				return err
 11185  			}
 11186  			if skippy < 0 {
 11187  				return ErrInvalidLengthPb
 11188  			}
 11189  			if (iNdEx + skippy) < 0 {
 11190  				return ErrInvalidLengthPb
 11191  			}
 11192  			if (iNdEx + skippy) > l {
 11193  				return io.ErrUnexpectedEOF
 11194  			}
 11195  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 11196  			iNdEx += skippy
 11197  		}
 11198  	}
 11199  
 11200  	if iNdEx > l {
 11201  		return io.ErrUnexpectedEOF
 11202  	}
 11203  	return nil
 11204  }
 11205  func (m *ValueList) Unmarshal(dAtA []byte) error {
 11206  	l := len(dAtA)
 11207  	iNdEx := 0
 11208  	for iNdEx < l {
 11209  		preIndex := iNdEx
 11210  		var wire uint64
 11211  		for shift := uint(0); ; shift += 7 {
 11212  			if shift >= 64 {
 11213  				return ErrIntOverflowPb
 11214  			}
 11215  			if iNdEx >= l {
 11216  				return io.ErrUnexpectedEOF
 11217  			}
 11218  			b := dAtA[iNdEx]
 11219  			iNdEx++
 11220  			wire |= uint64(b&0x7F) << shift
 11221  			if b < 0x80 {
 11222  				break
 11223  			}
 11224  		}
 11225  		fieldNum := int32(wire >> 3)
 11226  		wireType := int(wire & 0x7)
 11227  		if wireType == 4 {
 11228  			return fmt.Errorf("proto: ValueList: wiretype end group for non-group")
 11229  		}
 11230  		if fieldNum <= 0 {
 11231  			return fmt.Errorf("proto: ValueList: illegal tag %d (wire type %d)", fieldNum, wire)
 11232  		}
 11233  		switch fieldNum {
 11234  		case 1:
 11235  			if wireType != 2 {
 11236  				return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType)
 11237  			}
 11238  			var msglen int
 11239  			for shift := uint(0); ; shift += 7 {
 11240  				if shift >= 64 {
 11241  					return ErrIntOverflowPb
 11242  				}
 11243  				if iNdEx >= l {
 11244  					return io.ErrUnexpectedEOF
 11245  				}
 11246  				b := dAtA[iNdEx]
 11247  				iNdEx++
 11248  				msglen |= int(b&0x7F) << shift
 11249  				if b < 0x80 {
 11250  					break
 11251  				}
 11252  			}
 11253  			if msglen < 0 {
 11254  				return ErrInvalidLengthPb
 11255  			}
 11256  			postIndex := iNdEx + msglen
 11257  			if postIndex < 0 {
 11258  				return ErrInvalidLengthPb
 11259  			}
 11260  			if postIndex > l {
 11261  				return io.ErrUnexpectedEOF
 11262  			}
 11263  			m.Values = append(m.Values, &TaskValue{})
 11264  			if err := m.Values[len(m.Values)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 11265  				return err
 11266  			}
 11267  			iNdEx = postIndex
 11268  		default:
 11269  			iNdEx = preIndex
 11270  			skippy, err := skipPb(dAtA[iNdEx:])
 11271  			if err != nil {
 11272  				return err
 11273  			}
 11274  			if skippy < 0 {
 11275  				return ErrInvalidLengthPb
 11276  			}
 11277  			if (iNdEx + skippy) < 0 {
 11278  				return ErrInvalidLengthPb
 11279  			}
 11280  			if (iNdEx + skippy) > l {
 11281  				return io.ErrUnexpectedEOF
 11282  			}
 11283  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 11284  			iNdEx += skippy
 11285  		}
 11286  	}
 11287  
 11288  	if iNdEx > l {
 11289  		return io.ErrUnexpectedEOF
 11290  	}
 11291  	return nil
 11292  }
 11293  func (m *LangList) Unmarshal(dAtA []byte) error {
 11294  	l := len(dAtA)
 11295  	iNdEx := 0
 11296  	for iNdEx < l {
 11297  		preIndex := iNdEx
 11298  		var wire uint64
 11299  		for shift := uint(0); ; shift += 7 {
 11300  			if shift >= 64 {
 11301  				return ErrIntOverflowPb
 11302  			}
 11303  			if iNdEx >= l {
 11304  				return io.ErrUnexpectedEOF
 11305  			}
 11306  			b := dAtA[iNdEx]
 11307  			iNdEx++
 11308  			wire |= uint64(b&0x7F) << shift
 11309  			if b < 0x80 {
 11310  				break
 11311  			}
 11312  		}
 11313  		fieldNum := int32(wire >> 3)
 11314  		wireType := int(wire & 0x7)
 11315  		if wireType == 4 {
 11316  			return fmt.Errorf("proto: LangList: wiretype end group for non-group")
 11317  		}
 11318  		if fieldNum <= 0 {
 11319  			return fmt.Errorf("proto: LangList: illegal tag %d (wire type %d)", fieldNum, wire)
 11320  		}
 11321  		switch fieldNum {
 11322  		case 1:
 11323  			if wireType != 2 {
 11324  				return fmt.Errorf("proto: wrong wireType = %d for field Lang", wireType)
 11325  			}
 11326  			var stringLen uint64
 11327  			for shift := uint(0); ; shift += 7 {
 11328  				if shift >= 64 {
 11329  					return ErrIntOverflowPb
 11330  				}
 11331  				if iNdEx >= l {
 11332  					return io.ErrUnexpectedEOF
 11333  				}
 11334  				b := dAtA[iNdEx]
 11335  				iNdEx++
 11336  				stringLen |= uint64(b&0x7F) << shift
 11337  				if b < 0x80 {
 11338  					break
 11339  				}
 11340  			}
 11341  			intStringLen := int(stringLen)
 11342  			if intStringLen < 0 {
 11343  				return ErrInvalidLengthPb
 11344  			}
 11345  			postIndex := iNdEx + intStringLen
 11346  			if postIndex < 0 {
 11347  				return ErrInvalidLengthPb
 11348  			}
 11349  			if postIndex > l {
 11350  				return io.ErrUnexpectedEOF
 11351  			}
 11352  			m.Lang = append(m.Lang, string(dAtA[iNdEx:postIndex]))
 11353  			iNdEx = postIndex
 11354  		default:
 11355  			iNdEx = preIndex
 11356  			skippy, err := skipPb(dAtA[iNdEx:])
 11357  			if err != nil {
 11358  				return err
 11359  			}
 11360  			if skippy < 0 {
 11361  				return ErrInvalidLengthPb
 11362  			}
 11363  			if (iNdEx + skippy) < 0 {
 11364  				return ErrInvalidLengthPb
 11365  			}
 11366  			if (iNdEx + skippy) > l {
 11367  				return io.ErrUnexpectedEOF
 11368  			}
 11369  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 11370  			iNdEx += skippy
 11371  		}
 11372  	}
 11373  
 11374  	if iNdEx > l {
 11375  		return io.ErrUnexpectedEOF
 11376  	}
 11377  	return nil
 11378  }
 11379  func (m *Result) Unmarshal(dAtA []byte) error {
 11380  	l := len(dAtA)
 11381  	iNdEx := 0
 11382  	for iNdEx < l {
 11383  		preIndex := iNdEx
 11384  		var wire uint64
 11385  		for shift := uint(0); ; shift += 7 {
 11386  			if shift >= 64 {
 11387  				return ErrIntOverflowPb
 11388  			}
 11389  			if iNdEx >= l {
 11390  				return io.ErrUnexpectedEOF
 11391  			}
 11392  			b := dAtA[iNdEx]
 11393  			iNdEx++
 11394  			wire |= uint64(b&0x7F) << shift
 11395  			if b < 0x80 {
 11396  				break
 11397  			}
 11398  		}
 11399  		fieldNum := int32(wire >> 3)
 11400  		wireType := int(wire & 0x7)
 11401  		if wireType == 4 {
 11402  			return fmt.Errorf("proto: Result: wiretype end group for non-group")
 11403  		}
 11404  		if fieldNum <= 0 {
 11405  			return fmt.Errorf("proto: Result: illegal tag %d (wire type %d)", fieldNum, wire)
 11406  		}
 11407  		switch fieldNum {
 11408  		case 1:
 11409  			if wireType != 2 {
 11410  				return fmt.Errorf("proto: wrong wireType = %d for field UidMatrix", wireType)
 11411  			}
 11412  			var msglen int
 11413  			for shift := uint(0); ; shift += 7 {
 11414  				if shift >= 64 {
 11415  					return ErrIntOverflowPb
 11416  				}
 11417  				if iNdEx >= l {
 11418  					return io.ErrUnexpectedEOF
 11419  				}
 11420  				b := dAtA[iNdEx]
 11421  				iNdEx++
 11422  				msglen |= int(b&0x7F) << shift
 11423  				if b < 0x80 {
 11424  					break
 11425  				}
 11426  			}
 11427  			if msglen < 0 {
 11428  				return ErrInvalidLengthPb
 11429  			}
 11430  			postIndex := iNdEx + msglen
 11431  			if postIndex < 0 {
 11432  				return ErrInvalidLengthPb
 11433  			}
 11434  			if postIndex > l {
 11435  				return io.ErrUnexpectedEOF
 11436  			}
 11437  			m.UidMatrix = append(m.UidMatrix, &List{})
 11438  			if err := m.UidMatrix[len(m.UidMatrix)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 11439  				return err
 11440  			}
 11441  			iNdEx = postIndex
 11442  		case 2:
 11443  			if wireType != 2 {
 11444  				return fmt.Errorf("proto: wrong wireType = %d for field ValueMatrix", wireType)
 11445  			}
 11446  			var msglen int
 11447  			for shift := uint(0); ; shift += 7 {
 11448  				if shift >= 64 {
 11449  					return ErrIntOverflowPb
 11450  				}
 11451  				if iNdEx >= l {
 11452  					return io.ErrUnexpectedEOF
 11453  				}
 11454  				b := dAtA[iNdEx]
 11455  				iNdEx++
 11456  				msglen |= int(b&0x7F) << shift
 11457  				if b < 0x80 {
 11458  					break
 11459  				}
 11460  			}
 11461  			if msglen < 0 {
 11462  				return ErrInvalidLengthPb
 11463  			}
 11464  			postIndex := iNdEx + msglen
 11465  			if postIndex < 0 {
 11466  				return ErrInvalidLengthPb
 11467  			}
 11468  			if postIndex > l {
 11469  				return io.ErrUnexpectedEOF
 11470  			}
 11471  			m.ValueMatrix = append(m.ValueMatrix, &ValueList{})
 11472  			if err := m.ValueMatrix[len(m.ValueMatrix)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 11473  				return err
 11474  			}
 11475  			iNdEx = postIndex
 11476  		case 3:
 11477  			if wireType == 0 {
 11478  				var v uint32
 11479  				for shift := uint(0); ; shift += 7 {
 11480  					if shift >= 64 {
 11481  						return ErrIntOverflowPb
 11482  					}
 11483  					if iNdEx >= l {
 11484  						return io.ErrUnexpectedEOF
 11485  					}
 11486  					b := dAtA[iNdEx]
 11487  					iNdEx++
 11488  					v |= uint32(b&0x7F) << shift
 11489  					if b < 0x80 {
 11490  						break
 11491  					}
 11492  				}
 11493  				m.Counts = append(m.Counts, v)
 11494  			} else if wireType == 2 {
 11495  				var packedLen int
 11496  				for shift := uint(0); ; shift += 7 {
 11497  					if shift >= 64 {
 11498  						return ErrIntOverflowPb
 11499  					}
 11500  					if iNdEx >= l {
 11501  						return io.ErrUnexpectedEOF
 11502  					}
 11503  					b := dAtA[iNdEx]
 11504  					iNdEx++
 11505  					packedLen |= int(b&0x7F) << shift
 11506  					if b < 0x80 {
 11507  						break
 11508  					}
 11509  				}
 11510  				if packedLen < 0 {
 11511  					return ErrInvalidLengthPb
 11512  				}
 11513  				postIndex := iNdEx + packedLen
 11514  				if postIndex < 0 {
 11515  					return ErrInvalidLengthPb
 11516  				}
 11517  				if postIndex > l {
 11518  					return io.ErrUnexpectedEOF
 11519  				}
 11520  				var elementCount int
 11521  				var count int
 11522  				for _, integer := range dAtA[iNdEx:postIndex] {
 11523  					if integer < 128 {
 11524  						count++
 11525  					}
 11526  				}
 11527  				elementCount = count
 11528  				if elementCount != 0 && len(m.Counts) == 0 {
 11529  					m.Counts = make([]uint32, 0, elementCount)
 11530  				}
 11531  				for iNdEx < postIndex {
 11532  					var v uint32
 11533  					for shift := uint(0); ; shift += 7 {
 11534  						if shift >= 64 {
 11535  							return ErrIntOverflowPb
 11536  						}
 11537  						if iNdEx >= l {
 11538  							return io.ErrUnexpectedEOF
 11539  						}
 11540  						b := dAtA[iNdEx]
 11541  						iNdEx++
 11542  						v |= uint32(b&0x7F) << shift
 11543  						if b < 0x80 {
 11544  							break
 11545  						}
 11546  					}
 11547  					m.Counts = append(m.Counts, v)
 11548  				}
 11549  			} else {
 11550  				return fmt.Errorf("proto: wrong wireType = %d for field Counts", wireType)
 11551  			}
 11552  		case 4:
 11553  			if wireType != 0 {
 11554  				return fmt.Errorf("proto: wrong wireType = %d for field IntersectDest", wireType)
 11555  			}
 11556  			var v int
 11557  			for shift := uint(0); ; shift += 7 {
 11558  				if shift >= 64 {
 11559  					return ErrIntOverflowPb
 11560  				}
 11561  				if iNdEx >= l {
 11562  					return io.ErrUnexpectedEOF
 11563  				}
 11564  				b := dAtA[iNdEx]
 11565  				iNdEx++
 11566  				v |= int(b&0x7F) << shift
 11567  				if b < 0x80 {
 11568  					break
 11569  				}
 11570  			}
 11571  			m.IntersectDest = bool(v != 0)
 11572  		case 5:
 11573  			if wireType != 2 {
 11574  				return fmt.Errorf("proto: wrong wireType = %d for field FacetMatrix", wireType)
 11575  			}
 11576  			var msglen int
 11577  			for shift := uint(0); ; shift += 7 {
 11578  				if shift >= 64 {
 11579  					return ErrIntOverflowPb
 11580  				}
 11581  				if iNdEx >= l {
 11582  					return io.ErrUnexpectedEOF
 11583  				}
 11584  				b := dAtA[iNdEx]
 11585  				iNdEx++
 11586  				msglen |= int(b&0x7F) << shift
 11587  				if b < 0x80 {
 11588  					break
 11589  				}
 11590  			}
 11591  			if msglen < 0 {
 11592  				return ErrInvalidLengthPb
 11593  			}
 11594  			postIndex := iNdEx + msglen
 11595  			if postIndex < 0 {
 11596  				return ErrInvalidLengthPb
 11597  			}
 11598  			if postIndex > l {
 11599  				return io.ErrUnexpectedEOF
 11600  			}
 11601  			m.FacetMatrix = append(m.FacetMatrix, &FacetsList{})
 11602  			if err := m.FacetMatrix[len(m.FacetMatrix)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 11603  				return err
 11604  			}
 11605  			iNdEx = postIndex
 11606  		case 6:
 11607  			if wireType != 2 {
 11608  				return fmt.Errorf("proto: wrong wireType = %d for field LangMatrix", wireType)
 11609  			}
 11610  			var msglen int
 11611  			for shift := uint(0); ; shift += 7 {
 11612  				if shift >= 64 {
 11613  					return ErrIntOverflowPb
 11614  				}
 11615  				if iNdEx >= l {
 11616  					return io.ErrUnexpectedEOF
 11617  				}
 11618  				b := dAtA[iNdEx]
 11619  				iNdEx++
 11620  				msglen |= int(b&0x7F) << shift
 11621  				if b < 0x80 {
 11622  					break
 11623  				}
 11624  			}
 11625  			if msglen < 0 {
 11626  				return ErrInvalidLengthPb
 11627  			}
 11628  			postIndex := iNdEx + msglen
 11629  			if postIndex < 0 {
 11630  				return ErrInvalidLengthPb
 11631  			}
 11632  			if postIndex > l {
 11633  				return io.ErrUnexpectedEOF
 11634  			}
 11635  			m.LangMatrix = append(m.LangMatrix, &LangList{})
 11636  			if err := m.LangMatrix[len(m.LangMatrix)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 11637  				return err
 11638  			}
 11639  			iNdEx = postIndex
 11640  		case 7:
 11641  			if wireType != 0 {
 11642  				return fmt.Errorf("proto: wrong wireType = %d for field List", wireType)
 11643  			}
 11644  			var v int
 11645  			for shift := uint(0); ; shift += 7 {
 11646  				if shift >= 64 {
 11647  					return ErrIntOverflowPb
 11648  				}
 11649  				if iNdEx >= l {
 11650  					return io.ErrUnexpectedEOF
 11651  				}
 11652  				b := dAtA[iNdEx]
 11653  				iNdEx++
 11654  				v |= int(b&0x7F) << shift
 11655  				if b < 0x80 {
 11656  					break
 11657  				}
 11658  			}
 11659  			m.List = bool(v != 0)
 11660  		default:
 11661  			iNdEx = preIndex
 11662  			skippy, err := skipPb(dAtA[iNdEx:])
 11663  			if err != nil {
 11664  				return err
 11665  			}
 11666  			if skippy < 0 {
 11667  				return ErrInvalidLengthPb
 11668  			}
 11669  			if (iNdEx + skippy) < 0 {
 11670  				return ErrInvalidLengthPb
 11671  			}
 11672  			if (iNdEx + skippy) > l {
 11673  				return io.ErrUnexpectedEOF
 11674  			}
 11675  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 11676  			iNdEx += skippy
 11677  		}
 11678  	}
 11679  
 11680  	if iNdEx > l {
 11681  		return io.ErrUnexpectedEOF
 11682  	}
 11683  	return nil
 11684  }
 11685  func (m *Order) Unmarshal(dAtA []byte) error {
 11686  	l := len(dAtA)
 11687  	iNdEx := 0
 11688  	for iNdEx < l {
 11689  		preIndex := iNdEx
 11690  		var wire uint64
 11691  		for shift := uint(0); ; shift += 7 {
 11692  			if shift >= 64 {
 11693  				return ErrIntOverflowPb
 11694  			}
 11695  			if iNdEx >= l {
 11696  				return io.ErrUnexpectedEOF
 11697  			}
 11698  			b := dAtA[iNdEx]
 11699  			iNdEx++
 11700  			wire |= uint64(b&0x7F) << shift
 11701  			if b < 0x80 {
 11702  				break
 11703  			}
 11704  		}
 11705  		fieldNum := int32(wire >> 3)
 11706  		wireType := int(wire & 0x7)
 11707  		if wireType == 4 {
 11708  			return fmt.Errorf("proto: Order: wiretype end group for non-group")
 11709  		}
 11710  		if fieldNum <= 0 {
 11711  			return fmt.Errorf("proto: Order: illegal tag %d (wire type %d)", fieldNum, wire)
 11712  		}
 11713  		switch fieldNum {
 11714  		case 1:
 11715  			if wireType != 2 {
 11716  				return fmt.Errorf("proto: wrong wireType = %d for field Attr", wireType)
 11717  			}
 11718  			var stringLen uint64
 11719  			for shift := uint(0); ; shift += 7 {
 11720  				if shift >= 64 {
 11721  					return ErrIntOverflowPb
 11722  				}
 11723  				if iNdEx >= l {
 11724  					return io.ErrUnexpectedEOF
 11725  				}
 11726  				b := dAtA[iNdEx]
 11727  				iNdEx++
 11728  				stringLen |= uint64(b&0x7F) << shift
 11729  				if b < 0x80 {
 11730  					break
 11731  				}
 11732  			}
 11733  			intStringLen := int(stringLen)
 11734  			if intStringLen < 0 {
 11735  				return ErrInvalidLengthPb
 11736  			}
 11737  			postIndex := iNdEx + intStringLen
 11738  			if postIndex < 0 {
 11739  				return ErrInvalidLengthPb
 11740  			}
 11741  			if postIndex > l {
 11742  				return io.ErrUnexpectedEOF
 11743  			}
 11744  			m.Attr = string(dAtA[iNdEx:postIndex])
 11745  			iNdEx = postIndex
 11746  		case 2:
 11747  			if wireType != 0 {
 11748  				return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType)
 11749  			}
 11750  			var v int
 11751  			for shift := uint(0); ; shift += 7 {
 11752  				if shift >= 64 {
 11753  					return ErrIntOverflowPb
 11754  				}
 11755  				if iNdEx >= l {
 11756  					return io.ErrUnexpectedEOF
 11757  				}
 11758  				b := dAtA[iNdEx]
 11759  				iNdEx++
 11760  				v |= int(b&0x7F) << shift
 11761  				if b < 0x80 {
 11762  					break
 11763  				}
 11764  			}
 11765  			m.Desc = bool(v != 0)
 11766  		case 3:
 11767  			if wireType != 2 {
 11768  				return fmt.Errorf("proto: wrong wireType = %d for field Langs", wireType)
 11769  			}
 11770  			var stringLen uint64
 11771  			for shift := uint(0); ; shift += 7 {
 11772  				if shift >= 64 {
 11773  					return ErrIntOverflowPb
 11774  				}
 11775  				if iNdEx >= l {
 11776  					return io.ErrUnexpectedEOF
 11777  				}
 11778  				b := dAtA[iNdEx]
 11779  				iNdEx++
 11780  				stringLen |= uint64(b&0x7F) << shift
 11781  				if b < 0x80 {
 11782  					break
 11783  				}
 11784  			}
 11785  			intStringLen := int(stringLen)
 11786  			if intStringLen < 0 {
 11787  				return ErrInvalidLengthPb
 11788  			}
 11789  			postIndex := iNdEx + intStringLen
 11790  			if postIndex < 0 {
 11791  				return ErrInvalidLengthPb
 11792  			}
 11793  			if postIndex > l {
 11794  				return io.ErrUnexpectedEOF
 11795  			}
 11796  			m.Langs = append(m.Langs, string(dAtA[iNdEx:postIndex]))
 11797  			iNdEx = postIndex
 11798  		default:
 11799  			iNdEx = preIndex
 11800  			skippy, err := skipPb(dAtA[iNdEx:])
 11801  			if err != nil {
 11802  				return err
 11803  			}
 11804  			if skippy < 0 {
 11805  				return ErrInvalidLengthPb
 11806  			}
 11807  			if (iNdEx + skippy) < 0 {
 11808  				return ErrInvalidLengthPb
 11809  			}
 11810  			if (iNdEx + skippy) > l {
 11811  				return io.ErrUnexpectedEOF
 11812  			}
 11813  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 11814  			iNdEx += skippy
 11815  		}
 11816  	}
 11817  
 11818  	if iNdEx > l {
 11819  		return io.ErrUnexpectedEOF
 11820  	}
 11821  	return nil
 11822  }
 11823  func (m *SortMessage) Unmarshal(dAtA []byte) error {
 11824  	l := len(dAtA)
 11825  	iNdEx := 0
 11826  	for iNdEx < l {
 11827  		preIndex := iNdEx
 11828  		var wire uint64
 11829  		for shift := uint(0); ; shift += 7 {
 11830  			if shift >= 64 {
 11831  				return ErrIntOverflowPb
 11832  			}
 11833  			if iNdEx >= l {
 11834  				return io.ErrUnexpectedEOF
 11835  			}
 11836  			b := dAtA[iNdEx]
 11837  			iNdEx++
 11838  			wire |= uint64(b&0x7F) << shift
 11839  			if b < 0x80 {
 11840  				break
 11841  			}
 11842  		}
 11843  		fieldNum := int32(wire >> 3)
 11844  		wireType := int(wire & 0x7)
 11845  		if wireType == 4 {
 11846  			return fmt.Errorf("proto: SortMessage: wiretype end group for non-group")
 11847  		}
 11848  		if fieldNum <= 0 {
 11849  			return fmt.Errorf("proto: SortMessage: illegal tag %d (wire type %d)", fieldNum, wire)
 11850  		}
 11851  		switch fieldNum {
 11852  		case 1:
 11853  			if wireType != 2 {
 11854  				return fmt.Errorf("proto: wrong wireType = %d for field Order", wireType)
 11855  			}
 11856  			var msglen int
 11857  			for shift := uint(0); ; shift += 7 {
 11858  				if shift >= 64 {
 11859  					return ErrIntOverflowPb
 11860  				}
 11861  				if iNdEx >= l {
 11862  					return io.ErrUnexpectedEOF
 11863  				}
 11864  				b := dAtA[iNdEx]
 11865  				iNdEx++
 11866  				msglen |= int(b&0x7F) << shift
 11867  				if b < 0x80 {
 11868  					break
 11869  				}
 11870  			}
 11871  			if msglen < 0 {
 11872  				return ErrInvalidLengthPb
 11873  			}
 11874  			postIndex := iNdEx + msglen
 11875  			if postIndex < 0 {
 11876  				return ErrInvalidLengthPb
 11877  			}
 11878  			if postIndex > l {
 11879  				return io.ErrUnexpectedEOF
 11880  			}
 11881  			m.Order = append(m.Order, &Order{})
 11882  			if err := m.Order[len(m.Order)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 11883  				return err
 11884  			}
 11885  			iNdEx = postIndex
 11886  		case 2:
 11887  			if wireType != 2 {
 11888  				return fmt.Errorf("proto: wrong wireType = %d for field UidMatrix", wireType)
 11889  			}
 11890  			var msglen int
 11891  			for shift := uint(0); ; shift += 7 {
 11892  				if shift >= 64 {
 11893  					return ErrIntOverflowPb
 11894  				}
 11895  				if iNdEx >= l {
 11896  					return io.ErrUnexpectedEOF
 11897  				}
 11898  				b := dAtA[iNdEx]
 11899  				iNdEx++
 11900  				msglen |= int(b&0x7F) << shift
 11901  				if b < 0x80 {
 11902  					break
 11903  				}
 11904  			}
 11905  			if msglen < 0 {
 11906  				return ErrInvalidLengthPb
 11907  			}
 11908  			postIndex := iNdEx + msglen
 11909  			if postIndex < 0 {
 11910  				return ErrInvalidLengthPb
 11911  			}
 11912  			if postIndex > l {
 11913  				return io.ErrUnexpectedEOF
 11914  			}
 11915  			m.UidMatrix = append(m.UidMatrix, &List{})
 11916  			if err := m.UidMatrix[len(m.UidMatrix)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 11917  				return err
 11918  			}
 11919  			iNdEx = postIndex
 11920  		case 3:
 11921  			if wireType != 0 {
 11922  				return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType)
 11923  			}
 11924  			m.Count = 0
 11925  			for shift := uint(0); ; shift += 7 {
 11926  				if shift >= 64 {
 11927  					return ErrIntOverflowPb
 11928  				}
 11929  				if iNdEx >= l {
 11930  					return io.ErrUnexpectedEOF
 11931  				}
 11932  				b := dAtA[iNdEx]
 11933  				iNdEx++
 11934  				m.Count |= int32(b&0x7F) << shift
 11935  				if b < 0x80 {
 11936  					break
 11937  				}
 11938  			}
 11939  		case 4:
 11940  			if wireType != 0 {
 11941  				return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType)
 11942  			}
 11943  			m.Offset = 0
 11944  			for shift := uint(0); ; shift += 7 {
 11945  				if shift >= 64 {
 11946  					return ErrIntOverflowPb
 11947  				}
 11948  				if iNdEx >= l {
 11949  					return io.ErrUnexpectedEOF
 11950  				}
 11951  				b := dAtA[iNdEx]
 11952  				iNdEx++
 11953  				m.Offset |= int32(b&0x7F) << shift
 11954  				if b < 0x80 {
 11955  					break
 11956  				}
 11957  			}
 11958  		case 13:
 11959  			if wireType != 0 {
 11960  				return fmt.Errorf("proto: wrong wireType = %d for field ReadTs", wireType)
 11961  			}
 11962  			m.ReadTs = 0
 11963  			for shift := uint(0); ; shift += 7 {
 11964  				if shift >= 64 {
 11965  					return ErrIntOverflowPb
 11966  				}
 11967  				if iNdEx >= l {
 11968  					return io.ErrUnexpectedEOF
 11969  				}
 11970  				b := dAtA[iNdEx]
 11971  				iNdEx++
 11972  				m.ReadTs |= uint64(b&0x7F) << shift
 11973  				if b < 0x80 {
 11974  					break
 11975  				}
 11976  			}
 11977  		default:
 11978  			iNdEx = preIndex
 11979  			skippy, err := skipPb(dAtA[iNdEx:])
 11980  			if err != nil {
 11981  				return err
 11982  			}
 11983  			if skippy < 0 {
 11984  				return ErrInvalidLengthPb
 11985  			}
 11986  			if (iNdEx + skippy) < 0 {
 11987  				return ErrInvalidLengthPb
 11988  			}
 11989  			if (iNdEx + skippy) > l {
 11990  				return io.ErrUnexpectedEOF
 11991  			}
 11992  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 11993  			iNdEx += skippy
 11994  		}
 11995  	}
 11996  
 11997  	if iNdEx > l {
 11998  		return io.ErrUnexpectedEOF
 11999  	}
 12000  	return nil
 12001  }
 12002  func (m *SortResult) Unmarshal(dAtA []byte) error {
 12003  	l := len(dAtA)
 12004  	iNdEx := 0
 12005  	for iNdEx < l {
 12006  		preIndex := iNdEx
 12007  		var wire uint64
 12008  		for shift := uint(0); ; shift += 7 {
 12009  			if shift >= 64 {
 12010  				return ErrIntOverflowPb
 12011  			}
 12012  			if iNdEx >= l {
 12013  				return io.ErrUnexpectedEOF
 12014  			}
 12015  			b := dAtA[iNdEx]
 12016  			iNdEx++
 12017  			wire |= uint64(b&0x7F) << shift
 12018  			if b < 0x80 {
 12019  				break
 12020  			}
 12021  		}
 12022  		fieldNum := int32(wire >> 3)
 12023  		wireType := int(wire & 0x7)
 12024  		if wireType == 4 {
 12025  			return fmt.Errorf("proto: SortResult: wiretype end group for non-group")
 12026  		}
 12027  		if fieldNum <= 0 {
 12028  			return fmt.Errorf("proto: SortResult: illegal tag %d (wire type %d)", fieldNum, wire)
 12029  		}
 12030  		switch fieldNum {
 12031  		case 1:
 12032  			if wireType != 2 {
 12033  				return fmt.Errorf("proto: wrong wireType = %d for field UidMatrix", wireType)
 12034  			}
 12035  			var msglen int
 12036  			for shift := uint(0); ; shift += 7 {
 12037  				if shift >= 64 {
 12038  					return ErrIntOverflowPb
 12039  				}
 12040  				if iNdEx >= l {
 12041  					return io.ErrUnexpectedEOF
 12042  				}
 12043  				b := dAtA[iNdEx]
 12044  				iNdEx++
 12045  				msglen |= int(b&0x7F) << shift
 12046  				if b < 0x80 {
 12047  					break
 12048  				}
 12049  			}
 12050  			if msglen < 0 {
 12051  				return ErrInvalidLengthPb
 12052  			}
 12053  			postIndex := iNdEx + msglen
 12054  			if postIndex < 0 {
 12055  				return ErrInvalidLengthPb
 12056  			}
 12057  			if postIndex > l {
 12058  				return io.ErrUnexpectedEOF
 12059  			}
 12060  			m.UidMatrix = append(m.UidMatrix, &List{})
 12061  			if err := m.UidMatrix[len(m.UidMatrix)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 12062  				return err
 12063  			}
 12064  			iNdEx = postIndex
 12065  		default:
 12066  			iNdEx = preIndex
 12067  			skippy, err := skipPb(dAtA[iNdEx:])
 12068  			if err != nil {
 12069  				return err
 12070  			}
 12071  			if skippy < 0 {
 12072  				return ErrInvalidLengthPb
 12073  			}
 12074  			if (iNdEx + skippy) < 0 {
 12075  				return ErrInvalidLengthPb
 12076  			}
 12077  			if (iNdEx + skippy) > l {
 12078  				return io.ErrUnexpectedEOF
 12079  			}
 12080  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 12081  			iNdEx += skippy
 12082  		}
 12083  	}
 12084  
 12085  	if iNdEx > l {
 12086  		return io.ErrUnexpectedEOF
 12087  	}
 12088  	return nil
 12089  }
 12090  func (m *RaftContext) Unmarshal(dAtA []byte) error {
 12091  	l := len(dAtA)
 12092  	iNdEx := 0
 12093  	for iNdEx < l {
 12094  		preIndex := iNdEx
 12095  		var wire uint64
 12096  		for shift := uint(0); ; shift += 7 {
 12097  			if shift >= 64 {
 12098  				return ErrIntOverflowPb
 12099  			}
 12100  			if iNdEx >= l {
 12101  				return io.ErrUnexpectedEOF
 12102  			}
 12103  			b := dAtA[iNdEx]
 12104  			iNdEx++
 12105  			wire |= uint64(b&0x7F) << shift
 12106  			if b < 0x80 {
 12107  				break
 12108  			}
 12109  		}
 12110  		fieldNum := int32(wire >> 3)
 12111  		wireType := int(wire & 0x7)
 12112  		if wireType == 4 {
 12113  			return fmt.Errorf("proto: RaftContext: wiretype end group for non-group")
 12114  		}
 12115  		if fieldNum <= 0 {
 12116  			return fmt.Errorf("proto: RaftContext: illegal tag %d (wire type %d)", fieldNum, wire)
 12117  		}
 12118  		switch fieldNum {
 12119  		case 1:
 12120  			if wireType != 1 {
 12121  				return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
 12122  			}
 12123  			m.Id = 0
 12124  			if (iNdEx + 8) > l {
 12125  				return io.ErrUnexpectedEOF
 12126  			}
 12127  			m.Id = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
 12128  			iNdEx += 8
 12129  		case 2:
 12130  			if wireType != 0 {
 12131  				return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType)
 12132  			}
 12133  			m.Group = 0
 12134  			for shift := uint(0); ; shift += 7 {
 12135  				if shift >= 64 {
 12136  					return ErrIntOverflowPb
 12137  				}
 12138  				if iNdEx >= l {
 12139  					return io.ErrUnexpectedEOF
 12140  				}
 12141  				b := dAtA[iNdEx]
 12142  				iNdEx++
 12143  				m.Group |= uint32(b&0x7F) << shift
 12144  				if b < 0x80 {
 12145  					break
 12146  				}
 12147  			}
 12148  		case 3:
 12149  			if wireType != 2 {
 12150  				return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType)
 12151  			}
 12152  			var stringLen uint64
 12153  			for shift := uint(0); ; shift += 7 {
 12154  				if shift >= 64 {
 12155  					return ErrIntOverflowPb
 12156  				}
 12157  				if iNdEx >= l {
 12158  					return io.ErrUnexpectedEOF
 12159  				}
 12160  				b := dAtA[iNdEx]
 12161  				iNdEx++
 12162  				stringLen |= uint64(b&0x7F) << shift
 12163  				if b < 0x80 {
 12164  					break
 12165  				}
 12166  			}
 12167  			intStringLen := int(stringLen)
 12168  			if intStringLen < 0 {
 12169  				return ErrInvalidLengthPb
 12170  			}
 12171  			postIndex := iNdEx + intStringLen
 12172  			if postIndex < 0 {
 12173  				return ErrInvalidLengthPb
 12174  			}
 12175  			if postIndex > l {
 12176  				return io.ErrUnexpectedEOF
 12177  			}
 12178  			m.Addr = string(dAtA[iNdEx:postIndex])
 12179  			iNdEx = postIndex
 12180  		case 4:
 12181  			if wireType != 0 {
 12182  				return fmt.Errorf("proto: wrong wireType = %d for field SnapshotTs", wireType)
 12183  			}
 12184  			m.SnapshotTs = 0
 12185  			for shift := uint(0); ; shift += 7 {
 12186  				if shift >= 64 {
 12187  					return ErrIntOverflowPb
 12188  				}
 12189  				if iNdEx >= l {
 12190  					return io.ErrUnexpectedEOF
 12191  				}
 12192  				b := dAtA[iNdEx]
 12193  				iNdEx++
 12194  				m.SnapshotTs |= uint64(b&0x7F) << shift
 12195  				if b < 0x80 {
 12196  					break
 12197  				}
 12198  			}
 12199  		default:
 12200  			iNdEx = preIndex
 12201  			skippy, err := skipPb(dAtA[iNdEx:])
 12202  			if err != nil {
 12203  				return err
 12204  			}
 12205  			if skippy < 0 {
 12206  				return ErrInvalidLengthPb
 12207  			}
 12208  			if (iNdEx + skippy) < 0 {
 12209  				return ErrInvalidLengthPb
 12210  			}
 12211  			if (iNdEx + skippy) > l {
 12212  				return io.ErrUnexpectedEOF
 12213  			}
 12214  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 12215  			iNdEx += skippy
 12216  		}
 12217  	}
 12218  
 12219  	if iNdEx > l {
 12220  		return io.ErrUnexpectedEOF
 12221  	}
 12222  	return nil
 12223  }
 12224  func (m *Member) Unmarshal(dAtA []byte) error {
 12225  	l := len(dAtA)
 12226  	iNdEx := 0
 12227  	for iNdEx < l {
 12228  		preIndex := iNdEx
 12229  		var wire uint64
 12230  		for shift := uint(0); ; shift += 7 {
 12231  			if shift >= 64 {
 12232  				return ErrIntOverflowPb
 12233  			}
 12234  			if iNdEx >= l {
 12235  				return io.ErrUnexpectedEOF
 12236  			}
 12237  			b := dAtA[iNdEx]
 12238  			iNdEx++
 12239  			wire |= uint64(b&0x7F) << shift
 12240  			if b < 0x80 {
 12241  				break
 12242  			}
 12243  		}
 12244  		fieldNum := int32(wire >> 3)
 12245  		wireType := int(wire & 0x7)
 12246  		if wireType == 4 {
 12247  			return fmt.Errorf("proto: Member: wiretype end group for non-group")
 12248  		}
 12249  		if fieldNum <= 0 {
 12250  			return fmt.Errorf("proto: Member: illegal tag %d (wire type %d)", fieldNum, wire)
 12251  		}
 12252  		switch fieldNum {
 12253  		case 1:
 12254  			if wireType != 1 {
 12255  				return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
 12256  			}
 12257  			m.Id = 0
 12258  			if (iNdEx + 8) > l {
 12259  				return io.ErrUnexpectedEOF
 12260  			}
 12261  			m.Id = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
 12262  			iNdEx += 8
 12263  		case 2:
 12264  			if wireType != 0 {
 12265  				return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
 12266  			}
 12267  			m.GroupId = 0
 12268  			for shift := uint(0); ; shift += 7 {
 12269  				if shift >= 64 {
 12270  					return ErrIntOverflowPb
 12271  				}
 12272  				if iNdEx >= l {
 12273  					return io.ErrUnexpectedEOF
 12274  				}
 12275  				b := dAtA[iNdEx]
 12276  				iNdEx++
 12277  				m.GroupId |= uint32(b&0x7F) << shift
 12278  				if b < 0x80 {
 12279  					break
 12280  				}
 12281  			}
 12282  		case 3:
 12283  			if wireType != 2 {
 12284  				return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType)
 12285  			}
 12286  			var stringLen uint64
 12287  			for shift := uint(0); ; shift += 7 {
 12288  				if shift >= 64 {
 12289  					return ErrIntOverflowPb
 12290  				}
 12291  				if iNdEx >= l {
 12292  					return io.ErrUnexpectedEOF
 12293  				}
 12294  				b := dAtA[iNdEx]
 12295  				iNdEx++
 12296  				stringLen |= uint64(b&0x7F) << shift
 12297  				if b < 0x80 {
 12298  					break
 12299  				}
 12300  			}
 12301  			intStringLen := int(stringLen)
 12302  			if intStringLen < 0 {
 12303  				return ErrInvalidLengthPb
 12304  			}
 12305  			postIndex := iNdEx + intStringLen
 12306  			if postIndex < 0 {
 12307  				return ErrInvalidLengthPb
 12308  			}
 12309  			if postIndex > l {
 12310  				return io.ErrUnexpectedEOF
 12311  			}
 12312  			m.Addr = string(dAtA[iNdEx:postIndex])
 12313  			iNdEx = postIndex
 12314  		case 4:
 12315  			if wireType != 0 {
 12316  				return fmt.Errorf("proto: wrong wireType = %d for field Leader", wireType)
 12317  			}
 12318  			var v int
 12319  			for shift := uint(0); ; shift += 7 {
 12320  				if shift >= 64 {
 12321  					return ErrIntOverflowPb
 12322  				}
 12323  				if iNdEx >= l {
 12324  					return io.ErrUnexpectedEOF
 12325  				}
 12326  				b := dAtA[iNdEx]
 12327  				iNdEx++
 12328  				v |= int(b&0x7F) << shift
 12329  				if b < 0x80 {
 12330  					break
 12331  				}
 12332  			}
 12333  			m.Leader = bool(v != 0)
 12334  		case 5:
 12335  			if wireType != 0 {
 12336  				return fmt.Errorf("proto: wrong wireType = %d for field AmDead", wireType)
 12337  			}
 12338  			var v int
 12339  			for shift := uint(0); ; shift += 7 {
 12340  				if shift >= 64 {
 12341  					return ErrIntOverflowPb
 12342  				}
 12343  				if iNdEx >= l {
 12344  					return io.ErrUnexpectedEOF
 12345  				}
 12346  				b := dAtA[iNdEx]
 12347  				iNdEx++
 12348  				v |= int(b&0x7F) << shift
 12349  				if b < 0x80 {
 12350  					break
 12351  				}
 12352  			}
 12353  			m.AmDead = bool(v != 0)
 12354  		case 6:
 12355  			if wireType != 0 {
 12356  				return fmt.Errorf("proto: wrong wireType = %d for field LastUpdate", wireType)
 12357  			}
 12358  			m.LastUpdate = 0
 12359  			for shift := uint(0); ; shift += 7 {
 12360  				if shift >= 64 {
 12361  					return ErrIntOverflowPb
 12362  				}
 12363  				if iNdEx >= l {
 12364  					return io.ErrUnexpectedEOF
 12365  				}
 12366  				b := dAtA[iNdEx]
 12367  				iNdEx++
 12368  				m.LastUpdate |= uint64(b&0x7F) << shift
 12369  				if b < 0x80 {
 12370  					break
 12371  				}
 12372  			}
 12373  		case 13:
 12374  			if wireType != 0 {
 12375  				return fmt.Errorf("proto: wrong wireType = %d for field ClusterInfoOnly", wireType)
 12376  			}
 12377  			var v int
 12378  			for shift := uint(0); ; shift += 7 {
 12379  				if shift >= 64 {
 12380  					return ErrIntOverflowPb
 12381  				}
 12382  				if iNdEx >= l {
 12383  					return io.ErrUnexpectedEOF
 12384  				}
 12385  				b := dAtA[iNdEx]
 12386  				iNdEx++
 12387  				v |= int(b&0x7F) << shift
 12388  				if b < 0x80 {
 12389  					break
 12390  				}
 12391  			}
 12392  			m.ClusterInfoOnly = bool(v != 0)
 12393  		default:
 12394  			iNdEx = preIndex
 12395  			skippy, err := skipPb(dAtA[iNdEx:])
 12396  			if err != nil {
 12397  				return err
 12398  			}
 12399  			if skippy < 0 {
 12400  				return ErrInvalidLengthPb
 12401  			}
 12402  			if (iNdEx + skippy) < 0 {
 12403  				return ErrInvalidLengthPb
 12404  			}
 12405  			if (iNdEx + skippy) > l {
 12406  				return io.ErrUnexpectedEOF
 12407  			}
 12408  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 12409  			iNdEx += skippy
 12410  		}
 12411  	}
 12412  
 12413  	if iNdEx > l {
 12414  		return io.ErrUnexpectedEOF
 12415  	}
 12416  	return nil
 12417  }
 12418  func (m *Group) Unmarshal(dAtA []byte) error {
 12419  	l := len(dAtA)
 12420  	iNdEx := 0
 12421  	for iNdEx < l {
 12422  		preIndex := iNdEx
 12423  		var wire uint64
 12424  		for shift := uint(0); ; shift += 7 {
 12425  			if shift >= 64 {
 12426  				return ErrIntOverflowPb
 12427  			}
 12428  			if iNdEx >= l {
 12429  				return io.ErrUnexpectedEOF
 12430  			}
 12431  			b := dAtA[iNdEx]
 12432  			iNdEx++
 12433  			wire |= uint64(b&0x7F) << shift
 12434  			if b < 0x80 {
 12435  				break
 12436  			}
 12437  		}
 12438  		fieldNum := int32(wire >> 3)
 12439  		wireType := int(wire & 0x7)
 12440  		if wireType == 4 {
 12441  			return fmt.Errorf("proto: Group: wiretype end group for non-group")
 12442  		}
 12443  		if fieldNum <= 0 {
 12444  			return fmt.Errorf("proto: Group: illegal tag %d (wire type %d)", fieldNum, wire)
 12445  		}
 12446  		switch fieldNum {
 12447  		case 1:
 12448  			if wireType != 2 {
 12449  				return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType)
 12450  			}
 12451  			var msglen int
 12452  			for shift := uint(0); ; shift += 7 {
 12453  				if shift >= 64 {
 12454  					return ErrIntOverflowPb
 12455  				}
 12456  				if iNdEx >= l {
 12457  					return io.ErrUnexpectedEOF
 12458  				}
 12459  				b := dAtA[iNdEx]
 12460  				iNdEx++
 12461  				msglen |= int(b&0x7F) << shift
 12462  				if b < 0x80 {
 12463  					break
 12464  				}
 12465  			}
 12466  			if msglen < 0 {
 12467  				return ErrInvalidLengthPb
 12468  			}
 12469  			postIndex := iNdEx + msglen
 12470  			if postIndex < 0 {
 12471  				return ErrInvalidLengthPb
 12472  			}
 12473  			if postIndex > l {
 12474  				return io.ErrUnexpectedEOF
 12475  			}
 12476  			if m.Members == nil {
 12477  				m.Members = make(map[uint64]*Member)
 12478  			}
 12479  			var mapkey uint64
 12480  			var mapvalue *Member
 12481  			for iNdEx < postIndex {
 12482  				entryPreIndex := iNdEx
 12483  				var wire uint64
 12484  				for shift := uint(0); ; shift += 7 {
 12485  					if shift >= 64 {
 12486  						return ErrIntOverflowPb
 12487  					}
 12488  					if iNdEx >= l {
 12489  						return io.ErrUnexpectedEOF
 12490  					}
 12491  					b := dAtA[iNdEx]
 12492  					iNdEx++
 12493  					wire |= uint64(b&0x7F) << shift
 12494  					if b < 0x80 {
 12495  						break
 12496  					}
 12497  				}
 12498  				fieldNum := int32(wire >> 3)
 12499  				if fieldNum == 1 {
 12500  					for shift := uint(0); ; shift += 7 {
 12501  						if shift >= 64 {
 12502  							return ErrIntOverflowPb
 12503  						}
 12504  						if iNdEx >= l {
 12505  							return io.ErrUnexpectedEOF
 12506  						}
 12507  						b := dAtA[iNdEx]
 12508  						iNdEx++
 12509  						mapkey |= uint64(b&0x7F) << shift
 12510  						if b < 0x80 {
 12511  							break
 12512  						}
 12513  					}
 12514  				} else if fieldNum == 2 {
 12515  					var mapmsglen int
 12516  					for shift := uint(0); ; shift += 7 {
 12517  						if shift >= 64 {
 12518  							return ErrIntOverflowPb
 12519  						}
 12520  						if iNdEx >= l {
 12521  							return io.ErrUnexpectedEOF
 12522  						}
 12523  						b := dAtA[iNdEx]
 12524  						iNdEx++
 12525  						mapmsglen |= int(b&0x7F) << shift
 12526  						if b < 0x80 {
 12527  							break
 12528  						}
 12529  					}
 12530  					if mapmsglen < 0 {
 12531  						return ErrInvalidLengthPb
 12532  					}
 12533  					postmsgIndex := iNdEx + mapmsglen
 12534  					if postmsgIndex < 0 {
 12535  						return ErrInvalidLengthPb
 12536  					}
 12537  					if postmsgIndex > l {
 12538  						return io.ErrUnexpectedEOF
 12539  					}
 12540  					mapvalue = &Member{}
 12541  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
 12542  						return err
 12543  					}
 12544  					iNdEx = postmsgIndex
 12545  				} else {
 12546  					iNdEx = entryPreIndex
 12547  					skippy, err := skipPb(dAtA[iNdEx:])
 12548  					if err != nil {
 12549  						return err
 12550  					}
 12551  					if skippy < 0 {
 12552  						return ErrInvalidLengthPb
 12553  					}
 12554  					if (iNdEx + skippy) > postIndex {
 12555  						return io.ErrUnexpectedEOF
 12556  					}
 12557  					iNdEx += skippy
 12558  				}
 12559  			}
 12560  			m.Members[mapkey] = mapvalue
 12561  			iNdEx = postIndex
 12562  		case 2:
 12563  			if wireType != 2 {
 12564  				return fmt.Errorf("proto: wrong wireType = %d for field Tablets", wireType)
 12565  			}
 12566  			var msglen int
 12567  			for shift := uint(0); ; shift += 7 {
 12568  				if shift >= 64 {
 12569  					return ErrIntOverflowPb
 12570  				}
 12571  				if iNdEx >= l {
 12572  					return io.ErrUnexpectedEOF
 12573  				}
 12574  				b := dAtA[iNdEx]
 12575  				iNdEx++
 12576  				msglen |= int(b&0x7F) << shift
 12577  				if b < 0x80 {
 12578  					break
 12579  				}
 12580  			}
 12581  			if msglen < 0 {
 12582  				return ErrInvalidLengthPb
 12583  			}
 12584  			postIndex := iNdEx + msglen
 12585  			if postIndex < 0 {
 12586  				return ErrInvalidLengthPb
 12587  			}
 12588  			if postIndex > l {
 12589  				return io.ErrUnexpectedEOF
 12590  			}
 12591  			if m.Tablets == nil {
 12592  				m.Tablets = make(map[string]*Tablet)
 12593  			}
 12594  			var mapkey string
 12595  			var mapvalue *Tablet
 12596  			for iNdEx < postIndex {
 12597  				entryPreIndex := iNdEx
 12598  				var wire uint64
 12599  				for shift := uint(0); ; shift += 7 {
 12600  					if shift >= 64 {
 12601  						return ErrIntOverflowPb
 12602  					}
 12603  					if iNdEx >= l {
 12604  						return io.ErrUnexpectedEOF
 12605  					}
 12606  					b := dAtA[iNdEx]
 12607  					iNdEx++
 12608  					wire |= uint64(b&0x7F) << shift
 12609  					if b < 0x80 {
 12610  						break
 12611  					}
 12612  				}
 12613  				fieldNum := int32(wire >> 3)
 12614  				if fieldNum == 1 {
 12615  					var stringLenmapkey uint64
 12616  					for shift := uint(0); ; shift += 7 {
 12617  						if shift >= 64 {
 12618  							return ErrIntOverflowPb
 12619  						}
 12620  						if iNdEx >= l {
 12621  							return io.ErrUnexpectedEOF
 12622  						}
 12623  						b := dAtA[iNdEx]
 12624  						iNdEx++
 12625  						stringLenmapkey |= uint64(b&0x7F) << shift
 12626  						if b < 0x80 {
 12627  							break
 12628  						}
 12629  					}
 12630  					intStringLenmapkey := int(stringLenmapkey)
 12631  					if intStringLenmapkey < 0 {
 12632  						return ErrInvalidLengthPb
 12633  					}
 12634  					postStringIndexmapkey := iNdEx + intStringLenmapkey
 12635  					if postStringIndexmapkey < 0 {
 12636  						return ErrInvalidLengthPb
 12637  					}
 12638  					if postStringIndexmapkey > l {
 12639  						return io.ErrUnexpectedEOF
 12640  					}
 12641  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
 12642  					iNdEx = postStringIndexmapkey
 12643  				} else if fieldNum == 2 {
 12644  					var mapmsglen int
 12645  					for shift := uint(0); ; shift += 7 {
 12646  						if shift >= 64 {
 12647  							return ErrIntOverflowPb
 12648  						}
 12649  						if iNdEx >= l {
 12650  							return io.ErrUnexpectedEOF
 12651  						}
 12652  						b := dAtA[iNdEx]
 12653  						iNdEx++
 12654  						mapmsglen |= int(b&0x7F) << shift
 12655  						if b < 0x80 {
 12656  							break
 12657  						}
 12658  					}
 12659  					if mapmsglen < 0 {
 12660  						return ErrInvalidLengthPb
 12661  					}
 12662  					postmsgIndex := iNdEx + mapmsglen
 12663  					if postmsgIndex < 0 {
 12664  						return ErrInvalidLengthPb
 12665  					}
 12666  					if postmsgIndex > l {
 12667  						return io.ErrUnexpectedEOF
 12668  					}
 12669  					mapvalue = &Tablet{}
 12670  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
 12671  						return err
 12672  					}
 12673  					iNdEx = postmsgIndex
 12674  				} else {
 12675  					iNdEx = entryPreIndex
 12676  					skippy, err := skipPb(dAtA[iNdEx:])
 12677  					if err != nil {
 12678  						return err
 12679  					}
 12680  					if skippy < 0 {
 12681  						return ErrInvalidLengthPb
 12682  					}
 12683  					if (iNdEx + skippy) > postIndex {
 12684  						return io.ErrUnexpectedEOF
 12685  					}
 12686  					iNdEx += skippy
 12687  				}
 12688  			}
 12689  			m.Tablets[mapkey] = mapvalue
 12690  			iNdEx = postIndex
 12691  		case 3:
 12692  			if wireType != 0 {
 12693  				return fmt.Errorf("proto: wrong wireType = %d for field SnapshotTs", wireType)
 12694  			}
 12695  			m.SnapshotTs = 0
 12696  			for shift := uint(0); ; shift += 7 {
 12697  				if shift >= 64 {
 12698  					return ErrIntOverflowPb
 12699  				}
 12700  				if iNdEx >= l {
 12701  					return io.ErrUnexpectedEOF
 12702  				}
 12703  				b := dAtA[iNdEx]
 12704  				iNdEx++
 12705  				m.SnapshotTs |= uint64(b&0x7F) << shift
 12706  				if b < 0x80 {
 12707  					break
 12708  				}
 12709  			}
 12710  		case 4:
 12711  			if wireType != 0 {
 12712  				return fmt.Errorf("proto: wrong wireType = %d for field Checksum", wireType)
 12713  			}
 12714  			m.Checksum = 0
 12715  			for shift := uint(0); ; shift += 7 {
 12716  				if shift >= 64 {
 12717  					return ErrIntOverflowPb
 12718  				}
 12719  				if iNdEx >= l {
 12720  					return io.ErrUnexpectedEOF
 12721  				}
 12722  				b := dAtA[iNdEx]
 12723  				iNdEx++
 12724  				m.Checksum |= uint64(b&0x7F) << shift
 12725  				if b < 0x80 {
 12726  					break
 12727  				}
 12728  			}
 12729  		default:
 12730  			iNdEx = preIndex
 12731  			skippy, err := skipPb(dAtA[iNdEx:])
 12732  			if err != nil {
 12733  				return err
 12734  			}
 12735  			if skippy < 0 {
 12736  				return ErrInvalidLengthPb
 12737  			}
 12738  			if (iNdEx + skippy) < 0 {
 12739  				return ErrInvalidLengthPb
 12740  			}
 12741  			if (iNdEx + skippy) > l {
 12742  				return io.ErrUnexpectedEOF
 12743  			}
 12744  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 12745  			iNdEx += skippy
 12746  		}
 12747  	}
 12748  
 12749  	if iNdEx > l {
 12750  		return io.ErrUnexpectedEOF
 12751  	}
 12752  	return nil
 12753  }
 12754  func (m *License) Unmarshal(dAtA []byte) error {
 12755  	l := len(dAtA)
 12756  	iNdEx := 0
 12757  	for iNdEx < l {
 12758  		preIndex := iNdEx
 12759  		var wire uint64
 12760  		for shift := uint(0); ; shift += 7 {
 12761  			if shift >= 64 {
 12762  				return ErrIntOverflowPb
 12763  			}
 12764  			if iNdEx >= l {
 12765  				return io.ErrUnexpectedEOF
 12766  			}
 12767  			b := dAtA[iNdEx]
 12768  			iNdEx++
 12769  			wire |= uint64(b&0x7F) << shift
 12770  			if b < 0x80 {
 12771  				break
 12772  			}
 12773  		}
 12774  		fieldNum := int32(wire >> 3)
 12775  		wireType := int(wire & 0x7)
 12776  		if wireType == 4 {
 12777  			return fmt.Errorf("proto: License: wiretype end group for non-group")
 12778  		}
 12779  		if fieldNum <= 0 {
 12780  			return fmt.Errorf("proto: License: illegal tag %d (wire type %d)", fieldNum, wire)
 12781  		}
 12782  		switch fieldNum {
 12783  		case 1:
 12784  			if wireType != 2 {
 12785  				return fmt.Errorf("proto: wrong wireType = %d for field User", wireType)
 12786  			}
 12787  			var stringLen uint64
 12788  			for shift := uint(0); ; shift += 7 {
 12789  				if shift >= 64 {
 12790  					return ErrIntOverflowPb
 12791  				}
 12792  				if iNdEx >= l {
 12793  					return io.ErrUnexpectedEOF
 12794  				}
 12795  				b := dAtA[iNdEx]
 12796  				iNdEx++
 12797  				stringLen |= uint64(b&0x7F) << shift
 12798  				if b < 0x80 {
 12799  					break
 12800  				}
 12801  			}
 12802  			intStringLen := int(stringLen)
 12803  			if intStringLen < 0 {
 12804  				return ErrInvalidLengthPb
 12805  			}
 12806  			postIndex := iNdEx + intStringLen
 12807  			if postIndex < 0 {
 12808  				return ErrInvalidLengthPb
 12809  			}
 12810  			if postIndex > l {
 12811  				return io.ErrUnexpectedEOF
 12812  			}
 12813  			m.User = string(dAtA[iNdEx:postIndex])
 12814  			iNdEx = postIndex
 12815  		case 2:
 12816  			if wireType != 0 {
 12817  				return fmt.Errorf("proto: wrong wireType = %d for field MaxNodes", wireType)
 12818  			}
 12819  			m.MaxNodes = 0
 12820  			for shift := uint(0); ; shift += 7 {
 12821  				if shift >= 64 {
 12822  					return ErrIntOverflowPb
 12823  				}
 12824  				if iNdEx >= l {
 12825  					return io.ErrUnexpectedEOF
 12826  				}
 12827  				b := dAtA[iNdEx]
 12828  				iNdEx++
 12829  				m.MaxNodes |= uint64(b&0x7F) << shift
 12830  				if b < 0x80 {
 12831  					break
 12832  				}
 12833  			}
 12834  		case 3:
 12835  			if wireType != 0 {
 12836  				return fmt.Errorf("proto: wrong wireType = %d for field ExpiryTs", wireType)
 12837  			}
 12838  			m.ExpiryTs = 0
 12839  			for shift := uint(0); ; shift += 7 {
 12840  				if shift >= 64 {
 12841  					return ErrIntOverflowPb
 12842  				}
 12843  				if iNdEx >= l {
 12844  					return io.ErrUnexpectedEOF
 12845  				}
 12846  				b := dAtA[iNdEx]
 12847  				iNdEx++
 12848  				m.ExpiryTs |= int64(b&0x7F) << shift
 12849  				if b < 0x80 {
 12850  					break
 12851  				}
 12852  			}
 12853  		case 4:
 12854  			if wireType != 0 {
 12855  				return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType)
 12856  			}
 12857  			var v int
 12858  			for shift := uint(0); ; shift += 7 {
 12859  				if shift >= 64 {
 12860  					return ErrIntOverflowPb
 12861  				}
 12862  				if iNdEx >= l {
 12863  					return io.ErrUnexpectedEOF
 12864  				}
 12865  				b := dAtA[iNdEx]
 12866  				iNdEx++
 12867  				v |= int(b&0x7F) << shift
 12868  				if b < 0x80 {
 12869  					break
 12870  				}
 12871  			}
 12872  			m.Enabled = bool(v != 0)
 12873  		default:
 12874  			iNdEx = preIndex
 12875  			skippy, err := skipPb(dAtA[iNdEx:])
 12876  			if err != nil {
 12877  				return err
 12878  			}
 12879  			if skippy < 0 {
 12880  				return ErrInvalidLengthPb
 12881  			}
 12882  			if (iNdEx + skippy) < 0 {
 12883  				return ErrInvalidLengthPb
 12884  			}
 12885  			if (iNdEx + skippy) > l {
 12886  				return io.ErrUnexpectedEOF
 12887  			}
 12888  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 12889  			iNdEx += skippy
 12890  		}
 12891  	}
 12892  
 12893  	if iNdEx > l {
 12894  		return io.ErrUnexpectedEOF
 12895  	}
 12896  	return nil
 12897  }
 12898  func (m *ZeroProposal) Unmarshal(dAtA []byte) error {
 12899  	l := len(dAtA)
 12900  	iNdEx := 0
 12901  	for iNdEx < l {
 12902  		preIndex := iNdEx
 12903  		var wire uint64
 12904  		for shift := uint(0); ; shift += 7 {
 12905  			if shift >= 64 {
 12906  				return ErrIntOverflowPb
 12907  			}
 12908  			if iNdEx >= l {
 12909  				return io.ErrUnexpectedEOF
 12910  			}
 12911  			b := dAtA[iNdEx]
 12912  			iNdEx++
 12913  			wire |= uint64(b&0x7F) << shift
 12914  			if b < 0x80 {
 12915  				break
 12916  			}
 12917  		}
 12918  		fieldNum := int32(wire >> 3)
 12919  		wireType := int(wire & 0x7)
 12920  		if wireType == 4 {
 12921  			return fmt.Errorf("proto: ZeroProposal: wiretype end group for non-group")
 12922  		}
 12923  		if fieldNum <= 0 {
 12924  			return fmt.Errorf("proto: ZeroProposal: illegal tag %d (wire type %d)", fieldNum, wire)
 12925  		}
 12926  		switch fieldNum {
 12927  		case 1:
 12928  			if wireType != 2 {
 12929  				return fmt.Errorf("proto: wrong wireType = %d for field SnapshotTs", wireType)
 12930  			}
 12931  			var msglen int
 12932  			for shift := uint(0); ; shift += 7 {
 12933  				if shift >= 64 {
 12934  					return ErrIntOverflowPb
 12935  				}
 12936  				if iNdEx >= l {
 12937  					return io.ErrUnexpectedEOF
 12938  				}
 12939  				b := dAtA[iNdEx]
 12940  				iNdEx++
 12941  				msglen |= int(b&0x7F) << shift
 12942  				if b < 0x80 {
 12943  					break
 12944  				}
 12945  			}
 12946  			if msglen < 0 {
 12947  				return ErrInvalidLengthPb
 12948  			}
 12949  			postIndex := iNdEx + msglen
 12950  			if postIndex < 0 {
 12951  				return ErrInvalidLengthPb
 12952  			}
 12953  			if postIndex > l {
 12954  				return io.ErrUnexpectedEOF
 12955  			}
 12956  			if m.SnapshotTs == nil {
 12957  				m.SnapshotTs = make(map[uint32]uint64)
 12958  			}
 12959  			var mapkey uint32
 12960  			var mapvalue uint64
 12961  			for iNdEx < postIndex {
 12962  				entryPreIndex := iNdEx
 12963  				var wire uint64
 12964  				for shift := uint(0); ; shift += 7 {
 12965  					if shift >= 64 {
 12966  						return ErrIntOverflowPb
 12967  					}
 12968  					if iNdEx >= l {
 12969  						return io.ErrUnexpectedEOF
 12970  					}
 12971  					b := dAtA[iNdEx]
 12972  					iNdEx++
 12973  					wire |= uint64(b&0x7F) << shift
 12974  					if b < 0x80 {
 12975  						break
 12976  					}
 12977  				}
 12978  				fieldNum := int32(wire >> 3)
 12979  				if fieldNum == 1 {
 12980  					for shift := uint(0); ; shift += 7 {
 12981  						if shift >= 64 {
 12982  							return ErrIntOverflowPb
 12983  						}
 12984  						if iNdEx >= l {
 12985  							return io.ErrUnexpectedEOF
 12986  						}
 12987  						b := dAtA[iNdEx]
 12988  						iNdEx++
 12989  						mapkey |= uint32(b&0x7F) << shift
 12990  						if b < 0x80 {
 12991  							break
 12992  						}
 12993  					}
 12994  				} else if fieldNum == 2 {
 12995  					for shift := uint(0); ; shift += 7 {
 12996  						if shift >= 64 {
 12997  							return ErrIntOverflowPb
 12998  						}
 12999  						if iNdEx >= l {
 13000  							return io.ErrUnexpectedEOF
 13001  						}
 13002  						b := dAtA[iNdEx]
 13003  						iNdEx++
 13004  						mapvalue |= uint64(b&0x7F) << shift
 13005  						if b < 0x80 {
 13006  							break
 13007  						}
 13008  					}
 13009  				} else {
 13010  					iNdEx = entryPreIndex
 13011  					skippy, err := skipPb(dAtA[iNdEx:])
 13012  					if err != nil {
 13013  						return err
 13014  					}
 13015  					if skippy < 0 {
 13016  						return ErrInvalidLengthPb
 13017  					}
 13018  					if (iNdEx + skippy) > postIndex {
 13019  						return io.ErrUnexpectedEOF
 13020  					}
 13021  					iNdEx += skippy
 13022  				}
 13023  			}
 13024  			m.SnapshotTs[mapkey] = mapvalue
 13025  			iNdEx = postIndex
 13026  		case 2:
 13027  			if wireType != 2 {
 13028  				return fmt.Errorf("proto: wrong wireType = %d for field Member", wireType)
 13029  			}
 13030  			var msglen int
 13031  			for shift := uint(0); ; shift += 7 {
 13032  				if shift >= 64 {
 13033  					return ErrIntOverflowPb
 13034  				}
 13035  				if iNdEx >= l {
 13036  					return io.ErrUnexpectedEOF
 13037  				}
 13038  				b := dAtA[iNdEx]
 13039  				iNdEx++
 13040  				msglen |= int(b&0x7F) << shift
 13041  				if b < 0x80 {
 13042  					break
 13043  				}
 13044  			}
 13045  			if msglen < 0 {
 13046  				return ErrInvalidLengthPb
 13047  			}
 13048  			postIndex := iNdEx + msglen
 13049  			if postIndex < 0 {
 13050  				return ErrInvalidLengthPb
 13051  			}
 13052  			if postIndex > l {
 13053  				return io.ErrUnexpectedEOF
 13054  			}
 13055  			if m.Member == nil {
 13056  				m.Member = &Member{}
 13057  			}
 13058  			if err := m.Member.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 13059  				return err
 13060  			}
 13061  			iNdEx = postIndex
 13062  		case 3:
 13063  			if wireType != 2 {
 13064  				return fmt.Errorf("proto: wrong wireType = %d for field Tablet", wireType)
 13065  			}
 13066  			var msglen int
 13067  			for shift := uint(0); ; shift += 7 {
 13068  				if shift >= 64 {
 13069  					return ErrIntOverflowPb
 13070  				}
 13071  				if iNdEx >= l {
 13072  					return io.ErrUnexpectedEOF
 13073  				}
 13074  				b := dAtA[iNdEx]
 13075  				iNdEx++
 13076  				msglen |= int(b&0x7F) << shift
 13077  				if b < 0x80 {
 13078  					break
 13079  				}
 13080  			}
 13081  			if msglen < 0 {
 13082  				return ErrInvalidLengthPb
 13083  			}
 13084  			postIndex := iNdEx + msglen
 13085  			if postIndex < 0 {
 13086  				return ErrInvalidLengthPb
 13087  			}
 13088  			if postIndex > l {
 13089  				return io.ErrUnexpectedEOF
 13090  			}
 13091  			if m.Tablet == nil {
 13092  				m.Tablet = &Tablet{}
 13093  			}
 13094  			if err := m.Tablet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 13095  				return err
 13096  			}
 13097  			iNdEx = postIndex
 13098  		case 4:
 13099  			if wireType != 0 {
 13100  				return fmt.Errorf("proto: wrong wireType = %d for field MaxLeaseId", wireType)
 13101  			}
 13102  			m.MaxLeaseId = 0
 13103  			for shift := uint(0); ; shift += 7 {
 13104  				if shift >= 64 {
 13105  					return ErrIntOverflowPb
 13106  				}
 13107  				if iNdEx >= l {
 13108  					return io.ErrUnexpectedEOF
 13109  				}
 13110  				b := dAtA[iNdEx]
 13111  				iNdEx++
 13112  				m.MaxLeaseId |= uint64(b&0x7F) << shift
 13113  				if b < 0x80 {
 13114  					break
 13115  				}
 13116  			}
 13117  		case 5:
 13118  			if wireType != 0 {
 13119  				return fmt.Errorf("proto: wrong wireType = %d for field MaxTxnTs", wireType)
 13120  			}
 13121  			m.MaxTxnTs = 0
 13122  			for shift := uint(0); ; shift += 7 {
 13123  				if shift >= 64 {
 13124  					return ErrIntOverflowPb
 13125  				}
 13126  				if iNdEx >= l {
 13127  					return io.ErrUnexpectedEOF
 13128  				}
 13129  				b := dAtA[iNdEx]
 13130  				iNdEx++
 13131  				m.MaxTxnTs |= uint64(b&0x7F) << shift
 13132  				if b < 0x80 {
 13133  					break
 13134  				}
 13135  			}
 13136  		case 6:
 13137  			if wireType != 0 {
 13138  				return fmt.Errorf("proto: wrong wireType = %d for field MaxRaftId", wireType)
 13139  			}
 13140  			m.MaxRaftId = 0
 13141  			for shift := uint(0); ; shift += 7 {
 13142  				if shift >= 64 {
 13143  					return ErrIntOverflowPb
 13144  				}
 13145  				if iNdEx >= l {
 13146  					return io.ErrUnexpectedEOF
 13147  				}
 13148  				b := dAtA[iNdEx]
 13149  				iNdEx++
 13150  				m.MaxRaftId |= uint64(b&0x7F) << shift
 13151  				if b < 0x80 {
 13152  					break
 13153  				}
 13154  			}
 13155  		case 7:
 13156  			if wireType != 2 {
 13157  				return fmt.Errorf("proto: wrong wireType = %d for field Txn", wireType)
 13158  			}
 13159  			var msglen int
 13160  			for shift := uint(0); ; shift += 7 {
 13161  				if shift >= 64 {
 13162  					return ErrIntOverflowPb
 13163  				}
 13164  				if iNdEx >= l {
 13165  					return io.ErrUnexpectedEOF
 13166  				}
 13167  				b := dAtA[iNdEx]
 13168  				iNdEx++
 13169  				msglen |= int(b&0x7F) << shift
 13170  				if b < 0x80 {
 13171  					break
 13172  				}
 13173  			}
 13174  			if msglen < 0 {
 13175  				return ErrInvalidLengthPb
 13176  			}
 13177  			postIndex := iNdEx + msglen
 13178  			if postIndex < 0 {
 13179  				return ErrInvalidLengthPb
 13180  			}
 13181  			if postIndex > l {
 13182  				return io.ErrUnexpectedEOF
 13183  			}
 13184  			if m.Txn == nil {
 13185  				m.Txn = &api.TxnContext{}
 13186  			}
 13187  			if err := m.Txn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 13188  				return err
 13189  			}
 13190  			iNdEx = postIndex
 13191  		case 8:
 13192  			if wireType != 2 {
 13193  				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
 13194  			}
 13195  			var stringLen uint64
 13196  			for shift := uint(0); ; shift += 7 {
 13197  				if shift >= 64 {
 13198  					return ErrIntOverflowPb
 13199  				}
 13200  				if iNdEx >= l {
 13201  					return io.ErrUnexpectedEOF
 13202  				}
 13203  				b := dAtA[iNdEx]
 13204  				iNdEx++
 13205  				stringLen |= uint64(b&0x7F) << shift
 13206  				if b < 0x80 {
 13207  					break
 13208  				}
 13209  			}
 13210  			intStringLen := int(stringLen)
 13211  			if intStringLen < 0 {
 13212  				return ErrInvalidLengthPb
 13213  			}
 13214  			postIndex := iNdEx + intStringLen
 13215  			if postIndex < 0 {
 13216  				return ErrInvalidLengthPb
 13217  			}
 13218  			if postIndex > l {
 13219  				return io.ErrUnexpectedEOF
 13220  			}
 13221  			m.Key = string(dAtA[iNdEx:postIndex])
 13222  			iNdEx = postIndex
 13223  		case 9:
 13224  			if wireType != 2 {
 13225  				return fmt.Errorf("proto: wrong wireType = %d for field Cid", wireType)
 13226  			}
 13227  			var stringLen uint64
 13228  			for shift := uint(0); ; shift += 7 {
 13229  				if shift >= 64 {
 13230  					return ErrIntOverflowPb
 13231  				}
 13232  				if iNdEx >= l {
 13233  					return io.ErrUnexpectedEOF
 13234  				}
 13235  				b := dAtA[iNdEx]
 13236  				iNdEx++
 13237  				stringLen |= uint64(b&0x7F) << shift
 13238  				if b < 0x80 {
 13239  					break
 13240  				}
 13241  			}
 13242  			intStringLen := int(stringLen)
 13243  			if intStringLen < 0 {
 13244  				return ErrInvalidLengthPb
 13245  			}
 13246  			postIndex := iNdEx + intStringLen
 13247  			if postIndex < 0 {
 13248  				return ErrInvalidLengthPb
 13249  			}
 13250  			if postIndex > l {
 13251  				return io.ErrUnexpectedEOF
 13252  			}
 13253  			m.Cid = string(dAtA[iNdEx:postIndex])
 13254  			iNdEx = postIndex
 13255  		case 10:
 13256  			if wireType != 2 {
 13257  				return fmt.Errorf("proto: wrong wireType = %d for field License", wireType)
 13258  			}
 13259  			var msglen int
 13260  			for shift := uint(0); ; shift += 7 {
 13261  				if shift >= 64 {
 13262  					return ErrIntOverflowPb
 13263  				}
 13264  				if iNdEx >= l {
 13265  					return io.ErrUnexpectedEOF
 13266  				}
 13267  				b := dAtA[iNdEx]
 13268  				iNdEx++
 13269  				msglen |= int(b&0x7F) << shift
 13270  				if b < 0x80 {
 13271  					break
 13272  				}
 13273  			}
 13274  			if msglen < 0 {
 13275  				return ErrInvalidLengthPb
 13276  			}
 13277  			postIndex := iNdEx + msglen
 13278  			if postIndex < 0 {
 13279  				return ErrInvalidLengthPb
 13280  			}
 13281  			if postIndex > l {
 13282  				return io.ErrUnexpectedEOF
 13283  			}
 13284  			if m.License == nil {
 13285  				m.License = &License{}
 13286  			}
 13287  			if err := m.License.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 13288  				return err
 13289  			}
 13290  			iNdEx = postIndex
 13291  		default:
 13292  			iNdEx = preIndex
 13293  			skippy, err := skipPb(dAtA[iNdEx:])
 13294  			if err != nil {
 13295  				return err
 13296  			}
 13297  			if skippy < 0 {
 13298  				return ErrInvalidLengthPb
 13299  			}
 13300  			if (iNdEx + skippy) < 0 {
 13301  				return ErrInvalidLengthPb
 13302  			}
 13303  			if (iNdEx + skippy) > l {
 13304  				return io.ErrUnexpectedEOF
 13305  			}
 13306  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 13307  			iNdEx += skippy
 13308  		}
 13309  	}
 13310  
 13311  	if iNdEx > l {
 13312  		return io.ErrUnexpectedEOF
 13313  	}
 13314  	return nil
 13315  }
 13316  func (m *MembershipState) Unmarshal(dAtA []byte) error {
 13317  	l := len(dAtA)
 13318  	iNdEx := 0
 13319  	for iNdEx < l {
 13320  		preIndex := iNdEx
 13321  		var wire uint64
 13322  		for shift := uint(0); ; shift += 7 {
 13323  			if shift >= 64 {
 13324  				return ErrIntOverflowPb
 13325  			}
 13326  			if iNdEx >= l {
 13327  				return io.ErrUnexpectedEOF
 13328  			}
 13329  			b := dAtA[iNdEx]
 13330  			iNdEx++
 13331  			wire |= uint64(b&0x7F) << shift
 13332  			if b < 0x80 {
 13333  				break
 13334  			}
 13335  		}
 13336  		fieldNum := int32(wire >> 3)
 13337  		wireType := int(wire & 0x7)
 13338  		if wireType == 4 {
 13339  			return fmt.Errorf("proto: MembershipState: wiretype end group for non-group")
 13340  		}
 13341  		if fieldNum <= 0 {
 13342  			return fmt.Errorf("proto: MembershipState: illegal tag %d (wire type %d)", fieldNum, wire)
 13343  		}
 13344  		switch fieldNum {
 13345  		case 1:
 13346  			if wireType != 0 {
 13347  				return fmt.Errorf("proto: wrong wireType = %d for field Counter", wireType)
 13348  			}
 13349  			m.Counter = 0
 13350  			for shift := uint(0); ; shift += 7 {
 13351  				if shift >= 64 {
 13352  					return ErrIntOverflowPb
 13353  				}
 13354  				if iNdEx >= l {
 13355  					return io.ErrUnexpectedEOF
 13356  				}
 13357  				b := dAtA[iNdEx]
 13358  				iNdEx++
 13359  				m.Counter |= uint64(b&0x7F) << shift
 13360  				if b < 0x80 {
 13361  					break
 13362  				}
 13363  			}
 13364  		case 2:
 13365  			if wireType != 2 {
 13366  				return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType)
 13367  			}
 13368  			var msglen int
 13369  			for shift := uint(0); ; shift += 7 {
 13370  				if shift >= 64 {
 13371  					return ErrIntOverflowPb
 13372  				}
 13373  				if iNdEx >= l {
 13374  					return io.ErrUnexpectedEOF
 13375  				}
 13376  				b := dAtA[iNdEx]
 13377  				iNdEx++
 13378  				msglen |= int(b&0x7F) << shift
 13379  				if b < 0x80 {
 13380  					break
 13381  				}
 13382  			}
 13383  			if msglen < 0 {
 13384  				return ErrInvalidLengthPb
 13385  			}
 13386  			postIndex := iNdEx + msglen
 13387  			if postIndex < 0 {
 13388  				return ErrInvalidLengthPb
 13389  			}
 13390  			if postIndex > l {
 13391  				return io.ErrUnexpectedEOF
 13392  			}
 13393  			if m.Groups == nil {
 13394  				m.Groups = make(map[uint32]*Group)
 13395  			}
 13396  			var mapkey uint32
 13397  			var mapvalue *Group
 13398  			for iNdEx < postIndex {
 13399  				entryPreIndex := iNdEx
 13400  				var wire uint64
 13401  				for shift := uint(0); ; shift += 7 {
 13402  					if shift >= 64 {
 13403  						return ErrIntOverflowPb
 13404  					}
 13405  					if iNdEx >= l {
 13406  						return io.ErrUnexpectedEOF
 13407  					}
 13408  					b := dAtA[iNdEx]
 13409  					iNdEx++
 13410  					wire |= uint64(b&0x7F) << shift
 13411  					if b < 0x80 {
 13412  						break
 13413  					}
 13414  				}
 13415  				fieldNum := int32(wire >> 3)
 13416  				if fieldNum == 1 {
 13417  					for shift := uint(0); ; shift += 7 {
 13418  						if shift >= 64 {
 13419  							return ErrIntOverflowPb
 13420  						}
 13421  						if iNdEx >= l {
 13422  							return io.ErrUnexpectedEOF
 13423  						}
 13424  						b := dAtA[iNdEx]
 13425  						iNdEx++
 13426  						mapkey |= uint32(b&0x7F) << shift
 13427  						if b < 0x80 {
 13428  							break
 13429  						}
 13430  					}
 13431  				} else if fieldNum == 2 {
 13432  					var mapmsglen int
 13433  					for shift := uint(0); ; shift += 7 {
 13434  						if shift >= 64 {
 13435  							return ErrIntOverflowPb
 13436  						}
 13437  						if iNdEx >= l {
 13438  							return io.ErrUnexpectedEOF
 13439  						}
 13440  						b := dAtA[iNdEx]
 13441  						iNdEx++
 13442  						mapmsglen |= int(b&0x7F) << shift
 13443  						if b < 0x80 {
 13444  							break
 13445  						}
 13446  					}
 13447  					if mapmsglen < 0 {
 13448  						return ErrInvalidLengthPb
 13449  					}
 13450  					postmsgIndex := iNdEx + mapmsglen
 13451  					if postmsgIndex < 0 {
 13452  						return ErrInvalidLengthPb
 13453  					}
 13454  					if postmsgIndex > l {
 13455  						return io.ErrUnexpectedEOF
 13456  					}
 13457  					mapvalue = &Group{}
 13458  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
 13459  						return err
 13460  					}
 13461  					iNdEx = postmsgIndex
 13462  				} else {
 13463  					iNdEx = entryPreIndex
 13464  					skippy, err := skipPb(dAtA[iNdEx:])
 13465  					if err != nil {
 13466  						return err
 13467  					}
 13468  					if skippy < 0 {
 13469  						return ErrInvalidLengthPb
 13470  					}
 13471  					if (iNdEx + skippy) > postIndex {
 13472  						return io.ErrUnexpectedEOF
 13473  					}
 13474  					iNdEx += skippy
 13475  				}
 13476  			}
 13477  			m.Groups[mapkey] = mapvalue
 13478  			iNdEx = postIndex
 13479  		case 3:
 13480  			if wireType != 2 {
 13481  				return fmt.Errorf("proto: wrong wireType = %d for field Zeros", wireType)
 13482  			}
 13483  			var msglen int
 13484  			for shift := uint(0); ; shift += 7 {
 13485  				if shift >= 64 {
 13486  					return ErrIntOverflowPb
 13487  				}
 13488  				if iNdEx >= l {
 13489  					return io.ErrUnexpectedEOF
 13490  				}
 13491  				b := dAtA[iNdEx]
 13492  				iNdEx++
 13493  				msglen |= int(b&0x7F) << shift
 13494  				if b < 0x80 {
 13495  					break
 13496  				}
 13497  			}
 13498  			if msglen < 0 {
 13499  				return ErrInvalidLengthPb
 13500  			}
 13501  			postIndex := iNdEx + msglen
 13502  			if postIndex < 0 {
 13503  				return ErrInvalidLengthPb
 13504  			}
 13505  			if postIndex > l {
 13506  				return io.ErrUnexpectedEOF
 13507  			}
 13508  			if m.Zeros == nil {
 13509  				m.Zeros = make(map[uint64]*Member)
 13510  			}
 13511  			var mapkey uint64
 13512  			var mapvalue *Member
 13513  			for iNdEx < postIndex {
 13514  				entryPreIndex := iNdEx
 13515  				var wire uint64
 13516  				for shift := uint(0); ; shift += 7 {
 13517  					if shift >= 64 {
 13518  						return ErrIntOverflowPb
 13519  					}
 13520  					if iNdEx >= l {
 13521  						return io.ErrUnexpectedEOF
 13522  					}
 13523  					b := dAtA[iNdEx]
 13524  					iNdEx++
 13525  					wire |= uint64(b&0x7F) << shift
 13526  					if b < 0x80 {
 13527  						break
 13528  					}
 13529  				}
 13530  				fieldNum := int32(wire >> 3)
 13531  				if fieldNum == 1 {
 13532  					for shift := uint(0); ; shift += 7 {
 13533  						if shift >= 64 {
 13534  							return ErrIntOverflowPb
 13535  						}
 13536  						if iNdEx >= l {
 13537  							return io.ErrUnexpectedEOF
 13538  						}
 13539  						b := dAtA[iNdEx]
 13540  						iNdEx++
 13541  						mapkey |= uint64(b&0x7F) << shift
 13542  						if b < 0x80 {
 13543  							break
 13544  						}
 13545  					}
 13546  				} else if fieldNum == 2 {
 13547  					var mapmsglen int
 13548  					for shift := uint(0); ; shift += 7 {
 13549  						if shift >= 64 {
 13550  							return ErrIntOverflowPb
 13551  						}
 13552  						if iNdEx >= l {
 13553  							return io.ErrUnexpectedEOF
 13554  						}
 13555  						b := dAtA[iNdEx]
 13556  						iNdEx++
 13557  						mapmsglen |= int(b&0x7F) << shift
 13558  						if b < 0x80 {
 13559  							break
 13560  						}
 13561  					}
 13562  					if mapmsglen < 0 {
 13563  						return ErrInvalidLengthPb
 13564  					}
 13565  					postmsgIndex := iNdEx + mapmsglen
 13566  					if postmsgIndex < 0 {
 13567  						return ErrInvalidLengthPb
 13568  					}
 13569  					if postmsgIndex > l {
 13570  						return io.ErrUnexpectedEOF
 13571  					}
 13572  					mapvalue = &Member{}
 13573  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
 13574  						return err
 13575  					}
 13576  					iNdEx = postmsgIndex
 13577  				} else {
 13578  					iNdEx = entryPreIndex
 13579  					skippy, err := skipPb(dAtA[iNdEx:])
 13580  					if err != nil {
 13581  						return err
 13582  					}
 13583  					if skippy < 0 {
 13584  						return ErrInvalidLengthPb
 13585  					}
 13586  					if (iNdEx + skippy) > postIndex {
 13587  						return io.ErrUnexpectedEOF
 13588  					}
 13589  					iNdEx += skippy
 13590  				}
 13591  			}
 13592  			m.Zeros[mapkey] = mapvalue
 13593  			iNdEx = postIndex
 13594  		case 4:
 13595  			if wireType != 0 {
 13596  				return fmt.Errorf("proto: wrong wireType = %d for field MaxLeaseId", wireType)
 13597  			}
 13598  			m.MaxLeaseId = 0
 13599  			for shift := uint(0); ; shift += 7 {
 13600  				if shift >= 64 {
 13601  					return ErrIntOverflowPb
 13602  				}
 13603  				if iNdEx >= l {
 13604  					return io.ErrUnexpectedEOF
 13605  				}
 13606  				b := dAtA[iNdEx]
 13607  				iNdEx++
 13608  				m.MaxLeaseId |= uint64(b&0x7F) << shift
 13609  				if b < 0x80 {
 13610  					break
 13611  				}
 13612  			}
 13613  		case 5:
 13614  			if wireType != 0 {
 13615  				return fmt.Errorf("proto: wrong wireType = %d for field MaxTxnTs", wireType)
 13616  			}
 13617  			m.MaxTxnTs = 0
 13618  			for shift := uint(0); ; shift += 7 {
 13619  				if shift >= 64 {
 13620  					return ErrIntOverflowPb
 13621  				}
 13622  				if iNdEx >= l {
 13623  					return io.ErrUnexpectedEOF
 13624  				}
 13625  				b := dAtA[iNdEx]
 13626  				iNdEx++
 13627  				m.MaxTxnTs |= uint64(b&0x7F) << shift
 13628  				if b < 0x80 {
 13629  					break
 13630  				}
 13631  			}
 13632  		case 6:
 13633  			if wireType != 0 {
 13634  				return fmt.Errorf("proto: wrong wireType = %d for field MaxRaftId", wireType)
 13635  			}
 13636  			m.MaxRaftId = 0
 13637  			for shift := uint(0); ; shift += 7 {
 13638  				if shift >= 64 {
 13639  					return ErrIntOverflowPb
 13640  				}
 13641  				if iNdEx >= l {
 13642  					return io.ErrUnexpectedEOF
 13643  				}
 13644  				b := dAtA[iNdEx]
 13645  				iNdEx++
 13646  				m.MaxRaftId |= uint64(b&0x7F) << shift
 13647  				if b < 0x80 {
 13648  					break
 13649  				}
 13650  			}
 13651  		case 7:
 13652  			if wireType != 2 {
 13653  				return fmt.Errorf("proto: wrong wireType = %d for field Removed", wireType)
 13654  			}
 13655  			var msglen int
 13656  			for shift := uint(0); ; shift += 7 {
 13657  				if shift >= 64 {
 13658  					return ErrIntOverflowPb
 13659  				}
 13660  				if iNdEx >= l {
 13661  					return io.ErrUnexpectedEOF
 13662  				}
 13663  				b := dAtA[iNdEx]
 13664  				iNdEx++
 13665  				msglen |= int(b&0x7F) << shift
 13666  				if b < 0x80 {
 13667  					break
 13668  				}
 13669  			}
 13670  			if msglen < 0 {
 13671  				return ErrInvalidLengthPb
 13672  			}
 13673  			postIndex := iNdEx + msglen
 13674  			if postIndex < 0 {
 13675  				return ErrInvalidLengthPb
 13676  			}
 13677  			if postIndex > l {
 13678  				return io.ErrUnexpectedEOF
 13679  			}
 13680  			m.Removed = append(m.Removed, &Member{})
 13681  			if err := m.Removed[len(m.Removed)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 13682  				return err
 13683  			}
 13684  			iNdEx = postIndex
 13685  		case 8:
 13686  			if wireType != 2 {
 13687  				return fmt.Errorf("proto: wrong wireType = %d for field Cid", wireType)
 13688  			}
 13689  			var stringLen uint64
 13690  			for shift := uint(0); ; shift += 7 {
 13691  				if shift >= 64 {
 13692  					return ErrIntOverflowPb
 13693  				}
 13694  				if iNdEx >= l {
 13695  					return io.ErrUnexpectedEOF
 13696  				}
 13697  				b := dAtA[iNdEx]
 13698  				iNdEx++
 13699  				stringLen |= uint64(b&0x7F) << shift
 13700  				if b < 0x80 {
 13701  					break
 13702  				}
 13703  			}
 13704  			intStringLen := int(stringLen)
 13705  			if intStringLen < 0 {
 13706  				return ErrInvalidLengthPb
 13707  			}
 13708  			postIndex := iNdEx + intStringLen
 13709  			if postIndex < 0 {
 13710  				return ErrInvalidLengthPb
 13711  			}
 13712  			if postIndex > l {
 13713  				return io.ErrUnexpectedEOF
 13714  			}
 13715  			m.Cid = string(dAtA[iNdEx:postIndex])
 13716  			iNdEx = postIndex
 13717  		case 9:
 13718  			if wireType != 2 {
 13719  				return fmt.Errorf("proto: wrong wireType = %d for field License", wireType)
 13720  			}
 13721  			var msglen int
 13722  			for shift := uint(0); ; shift += 7 {
 13723  				if shift >= 64 {
 13724  					return ErrIntOverflowPb
 13725  				}
 13726  				if iNdEx >= l {
 13727  					return io.ErrUnexpectedEOF
 13728  				}
 13729  				b := dAtA[iNdEx]
 13730  				iNdEx++
 13731  				msglen |= int(b&0x7F) << shift
 13732  				if b < 0x80 {
 13733  					break
 13734  				}
 13735  			}
 13736  			if msglen < 0 {
 13737  				return ErrInvalidLengthPb
 13738  			}
 13739  			postIndex := iNdEx + msglen
 13740  			if postIndex < 0 {
 13741  				return ErrInvalidLengthPb
 13742  			}
 13743  			if postIndex > l {
 13744  				return io.ErrUnexpectedEOF
 13745  			}
 13746  			if m.License == nil {
 13747  				m.License = &License{}
 13748  			}
 13749  			if err := m.License.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 13750  				return err
 13751  			}
 13752  			iNdEx = postIndex
 13753  		default:
 13754  			iNdEx = preIndex
 13755  			skippy, err := skipPb(dAtA[iNdEx:])
 13756  			if err != nil {
 13757  				return err
 13758  			}
 13759  			if skippy < 0 {
 13760  				return ErrInvalidLengthPb
 13761  			}
 13762  			if (iNdEx + skippy) < 0 {
 13763  				return ErrInvalidLengthPb
 13764  			}
 13765  			if (iNdEx + skippy) > l {
 13766  				return io.ErrUnexpectedEOF
 13767  			}
 13768  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 13769  			iNdEx += skippy
 13770  		}
 13771  	}
 13772  
 13773  	if iNdEx > l {
 13774  		return io.ErrUnexpectedEOF
 13775  	}
 13776  	return nil
 13777  }
 13778  func (m *ConnectionState) Unmarshal(dAtA []byte) error {
 13779  	l := len(dAtA)
 13780  	iNdEx := 0
 13781  	for iNdEx < l {
 13782  		preIndex := iNdEx
 13783  		var wire uint64
 13784  		for shift := uint(0); ; shift += 7 {
 13785  			if shift >= 64 {
 13786  				return ErrIntOverflowPb
 13787  			}
 13788  			if iNdEx >= l {
 13789  				return io.ErrUnexpectedEOF
 13790  			}
 13791  			b := dAtA[iNdEx]
 13792  			iNdEx++
 13793  			wire |= uint64(b&0x7F) << shift
 13794  			if b < 0x80 {
 13795  				break
 13796  			}
 13797  		}
 13798  		fieldNum := int32(wire >> 3)
 13799  		wireType := int(wire & 0x7)
 13800  		if wireType == 4 {
 13801  			return fmt.Errorf("proto: ConnectionState: wiretype end group for non-group")
 13802  		}
 13803  		if fieldNum <= 0 {
 13804  			return fmt.Errorf("proto: ConnectionState: illegal tag %d (wire type %d)", fieldNum, wire)
 13805  		}
 13806  		switch fieldNum {
 13807  		case 1:
 13808  			if wireType != 2 {
 13809  				return fmt.Errorf("proto: wrong wireType = %d for field Member", wireType)
 13810  			}
 13811  			var msglen int
 13812  			for shift := uint(0); ; shift += 7 {
 13813  				if shift >= 64 {
 13814  					return ErrIntOverflowPb
 13815  				}
 13816  				if iNdEx >= l {
 13817  					return io.ErrUnexpectedEOF
 13818  				}
 13819  				b := dAtA[iNdEx]
 13820  				iNdEx++
 13821  				msglen |= int(b&0x7F) << shift
 13822  				if b < 0x80 {
 13823  					break
 13824  				}
 13825  			}
 13826  			if msglen < 0 {
 13827  				return ErrInvalidLengthPb
 13828  			}
 13829  			postIndex := iNdEx + msglen
 13830  			if postIndex < 0 {
 13831  				return ErrInvalidLengthPb
 13832  			}
 13833  			if postIndex > l {
 13834  				return io.ErrUnexpectedEOF
 13835  			}
 13836  			if m.Member == nil {
 13837  				m.Member = &Member{}
 13838  			}
 13839  			if err := m.Member.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 13840  				return err
 13841  			}
 13842  			iNdEx = postIndex
 13843  		case 2:
 13844  			if wireType != 2 {
 13845  				return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
 13846  			}
 13847  			var msglen int
 13848  			for shift := uint(0); ; shift += 7 {
 13849  				if shift >= 64 {
 13850  					return ErrIntOverflowPb
 13851  				}
 13852  				if iNdEx >= l {
 13853  					return io.ErrUnexpectedEOF
 13854  				}
 13855  				b := dAtA[iNdEx]
 13856  				iNdEx++
 13857  				msglen |= int(b&0x7F) << shift
 13858  				if b < 0x80 {
 13859  					break
 13860  				}
 13861  			}
 13862  			if msglen < 0 {
 13863  				return ErrInvalidLengthPb
 13864  			}
 13865  			postIndex := iNdEx + msglen
 13866  			if postIndex < 0 {
 13867  				return ErrInvalidLengthPb
 13868  			}
 13869  			if postIndex > l {
 13870  				return io.ErrUnexpectedEOF
 13871  			}
 13872  			if m.State == nil {
 13873  				m.State = &MembershipState{}
 13874  			}
 13875  			if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 13876  				return err
 13877  			}
 13878  			iNdEx = postIndex
 13879  		case 3:
 13880  			if wireType != 0 {
 13881  				return fmt.Errorf("proto: wrong wireType = %d for field MaxPending", wireType)
 13882  			}
 13883  			m.MaxPending = 0
 13884  			for shift := uint(0); ; shift += 7 {
 13885  				if shift >= 64 {
 13886  					return ErrIntOverflowPb
 13887  				}
 13888  				if iNdEx >= l {
 13889  					return io.ErrUnexpectedEOF
 13890  				}
 13891  				b := dAtA[iNdEx]
 13892  				iNdEx++
 13893  				m.MaxPending |= uint64(b&0x7F) << shift
 13894  				if b < 0x80 {
 13895  					break
 13896  				}
 13897  			}
 13898  		default:
 13899  			iNdEx = preIndex
 13900  			skippy, err := skipPb(dAtA[iNdEx:])
 13901  			if err != nil {
 13902  				return err
 13903  			}
 13904  			if skippy < 0 {
 13905  				return ErrInvalidLengthPb
 13906  			}
 13907  			if (iNdEx + skippy) < 0 {
 13908  				return ErrInvalidLengthPb
 13909  			}
 13910  			if (iNdEx + skippy) > l {
 13911  				return io.ErrUnexpectedEOF
 13912  			}
 13913  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 13914  			iNdEx += skippy
 13915  		}
 13916  	}
 13917  
 13918  	if iNdEx > l {
 13919  		return io.ErrUnexpectedEOF
 13920  	}
 13921  	return nil
 13922  }
 13923  func (m *Tablet) Unmarshal(dAtA []byte) error {
 13924  	l := len(dAtA)
 13925  	iNdEx := 0
 13926  	for iNdEx < l {
 13927  		preIndex := iNdEx
 13928  		var wire uint64
 13929  		for shift := uint(0); ; shift += 7 {
 13930  			if shift >= 64 {
 13931  				return ErrIntOverflowPb
 13932  			}
 13933  			if iNdEx >= l {
 13934  				return io.ErrUnexpectedEOF
 13935  			}
 13936  			b := dAtA[iNdEx]
 13937  			iNdEx++
 13938  			wire |= uint64(b&0x7F) << shift
 13939  			if b < 0x80 {
 13940  				break
 13941  			}
 13942  		}
 13943  		fieldNum := int32(wire >> 3)
 13944  		wireType := int(wire & 0x7)
 13945  		if wireType == 4 {
 13946  			return fmt.Errorf("proto: Tablet: wiretype end group for non-group")
 13947  		}
 13948  		if fieldNum <= 0 {
 13949  			return fmt.Errorf("proto: Tablet: illegal tag %d (wire type %d)", fieldNum, wire)
 13950  		}
 13951  		switch fieldNum {
 13952  		case 1:
 13953  			if wireType != 0 {
 13954  				return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
 13955  			}
 13956  			m.GroupId = 0
 13957  			for shift := uint(0); ; shift += 7 {
 13958  				if shift >= 64 {
 13959  					return ErrIntOverflowPb
 13960  				}
 13961  				if iNdEx >= l {
 13962  					return io.ErrUnexpectedEOF
 13963  				}
 13964  				b := dAtA[iNdEx]
 13965  				iNdEx++
 13966  				m.GroupId |= uint32(b&0x7F) << shift
 13967  				if b < 0x80 {
 13968  					break
 13969  				}
 13970  			}
 13971  		case 2:
 13972  			if wireType != 2 {
 13973  				return fmt.Errorf("proto: wrong wireType = %d for field Predicate", wireType)
 13974  			}
 13975  			var stringLen uint64
 13976  			for shift := uint(0); ; shift += 7 {
 13977  				if shift >= 64 {
 13978  					return ErrIntOverflowPb
 13979  				}
 13980  				if iNdEx >= l {
 13981  					return io.ErrUnexpectedEOF
 13982  				}
 13983  				b := dAtA[iNdEx]
 13984  				iNdEx++
 13985  				stringLen |= uint64(b&0x7F) << shift
 13986  				if b < 0x80 {
 13987  					break
 13988  				}
 13989  			}
 13990  			intStringLen := int(stringLen)
 13991  			if intStringLen < 0 {
 13992  				return ErrInvalidLengthPb
 13993  			}
 13994  			postIndex := iNdEx + intStringLen
 13995  			if postIndex < 0 {
 13996  				return ErrInvalidLengthPb
 13997  			}
 13998  			if postIndex > l {
 13999  				return io.ErrUnexpectedEOF
 14000  			}
 14001  			m.Predicate = string(dAtA[iNdEx:postIndex])
 14002  			iNdEx = postIndex
 14003  		case 3:
 14004  			if wireType != 0 {
 14005  				return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType)
 14006  			}
 14007  			var v int
 14008  			for shift := uint(0); ; shift += 7 {
 14009  				if shift >= 64 {
 14010  					return ErrIntOverflowPb
 14011  				}
 14012  				if iNdEx >= l {
 14013  					return io.ErrUnexpectedEOF
 14014  				}
 14015  				b := dAtA[iNdEx]
 14016  				iNdEx++
 14017  				v |= int(b&0x7F) << shift
 14018  				if b < 0x80 {
 14019  					break
 14020  				}
 14021  			}
 14022  			m.Force = bool(v != 0)
 14023  		case 7:
 14024  			if wireType != 0 {
 14025  				return fmt.Errorf("proto: wrong wireType = %d for field Space", wireType)
 14026  			}
 14027  			m.Space = 0
 14028  			for shift := uint(0); ; shift += 7 {
 14029  				if shift >= 64 {
 14030  					return ErrIntOverflowPb
 14031  				}
 14032  				if iNdEx >= l {
 14033  					return io.ErrUnexpectedEOF
 14034  				}
 14035  				b := dAtA[iNdEx]
 14036  				iNdEx++
 14037  				m.Space |= int64(b&0x7F) << shift
 14038  				if b < 0x80 {
 14039  					break
 14040  				}
 14041  			}
 14042  		case 8:
 14043  			if wireType != 0 {
 14044  				return fmt.Errorf("proto: wrong wireType = %d for field Remove", wireType)
 14045  			}
 14046  			var v int
 14047  			for shift := uint(0); ; shift += 7 {
 14048  				if shift >= 64 {
 14049  					return ErrIntOverflowPb
 14050  				}
 14051  				if iNdEx >= l {
 14052  					return io.ErrUnexpectedEOF
 14053  				}
 14054  				b := dAtA[iNdEx]
 14055  				iNdEx++
 14056  				v |= int(b&0x7F) << shift
 14057  				if b < 0x80 {
 14058  					break
 14059  				}
 14060  			}
 14061  			m.Remove = bool(v != 0)
 14062  		case 9:
 14063  			if wireType != 0 {
 14064  				return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType)
 14065  			}
 14066  			var v int
 14067  			for shift := uint(0); ; shift += 7 {
 14068  				if shift >= 64 {
 14069  					return ErrIntOverflowPb
 14070  				}
 14071  				if iNdEx >= l {
 14072  					return io.ErrUnexpectedEOF
 14073  				}
 14074  				b := dAtA[iNdEx]
 14075  				iNdEx++
 14076  				v |= int(b&0x7F) << shift
 14077  				if b < 0x80 {
 14078  					break
 14079  				}
 14080  			}
 14081  			m.ReadOnly = bool(v != 0)
 14082  		default:
 14083  			iNdEx = preIndex
 14084  			skippy, err := skipPb(dAtA[iNdEx:])
 14085  			if err != nil {
 14086  				return err
 14087  			}
 14088  			if skippy < 0 {
 14089  				return ErrInvalidLengthPb
 14090  			}
 14091  			if (iNdEx + skippy) < 0 {
 14092  				return ErrInvalidLengthPb
 14093  			}
 14094  			if (iNdEx + skippy) > l {
 14095  				return io.ErrUnexpectedEOF
 14096  			}
 14097  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 14098  			iNdEx += skippy
 14099  		}
 14100  	}
 14101  
 14102  	if iNdEx > l {
 14103  		return io.ErrUnexpectedEOF
 14104  	}
 14105  	return nil
 14106  }
 14107  func (m *DirectedEdge) Unmarshal(dAtA []byte) error {
 14108  	l := len(dAtA)
 14109  	iNdEx := 0
 14110  	for iNdEx < l {
 14111  		preIndex := iNdEx
 14112  		var wire uint64
 14113  		for shift := uint(0); ; shift += 7 {
 14114  			if shift >= 64 {
 14115  				return ErrIntOverflowPb
 14116  			}
 14117  			if iNdEx >= l {
 14118  				return io.ErrUnexpectedEOF
 14119  			}
 14120  			b := dAtA[iNdEx]
 14121  			iNdEx++
 14122  			wire |= uint64(b&0x7F) << shift
 14123  			if b < 0x80 {
 14124  				break
 14125  			}
 14126  		}
 14127  		fieldNum := int32(wire >> 3)
 14128  		wireType := int(wire & 0x7)
 14129  		if wireType == 4 {
 14130  			return fmt.Errorf("proto: DirectedEdge: wiretype end group for non-group")
 14131  		}
 14132  		if fieldNum <= 0 {
 14133  			return fmt.Errorf("proto: DirectedEdge: illegal tag %d (wire type %d)", fieldNum, wire)
 14134  		}
 14135  		switch fieldNum {
 14136  		case 1:
 14137  			if wireType != 1 {
 14138  				return fmt.Errorf("proto: wrong wireType = %d for field Entity", wireType)
 14139  			}
 14140  			m.Entity = 0
 14141  			if (iNdEx + 8) > l {
 14142  				return io.ErrUnexpectedEOF
 14143  			}
 14144  			m.Entity = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
 14145  			iNdEx += 8
 14146  		case 2:
 14147  			if wireType != 2 {
 14148  				return fmt.Errorf("proto: wrong wireType = %d for field Attr", wireType)
 14149  			}
 14150  			var stringLen uint64
 14151  			for shift := uint(0); ; shift += 7 {
 14152  				if shift >= 64 {
 14153  					return ErrIntOverflowPb
 14154  				}
 14155  				if iNdEx >= l {
 14156  					return io.ErrUnexpectedEOF
 14157  				}
 14158  				b := dAtA[iNdEx]
 14159  				iNdEx++
 14160  				stringLen |= uint64(b&0x7F) << shift
 14161  				if b < 0x80 {
 14162  					break
 14163  				}
 14164  			}
 14165  			intStringLen := int(stringLen)
 14166  			if intStringLen < 0 {
 14167  				return ErrInvalidLengthPb
 14168  			}
 14169  			postIndex := iNdEx + intStringLen
 14170  			if postIndex < 0 {
 14171  				return ErrInvalidLengthPb
 14172  			}
 14173  			if postIndex > l {
 14174  				return io.ErrUnexpectedEOF
 14175  			}
 14176  			m.Attr = string(dAtA[iNdEx:postIndex])
 14177  			iNdEx = postIndex
 14178  		case 3:
 14179  			if wireType != 2 {
 14180  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
 14181  			}
 14182  			var byteLen int
 14183  			for shift := uint(0); ; shift += 7 {
 14184  				if shift >= 64 {
 14185  					return ErrIntOverflowPb
 14186  				}
 14187  				if iNdEx >= l {
 14188  					return io.ErrUnexpectedEOF
 14189  				}
 14190  				b := dAtA[iNdEx]
 14191  				iNdEx++
 14192  				byteLen |= int(b&0x7F) << shift
 14193  				if b < 0x80 {
 14194  					break
 14195  				}
 14196  			}
 14197  			if byteLen < 0 {
 14198  				return ErrInvalidLengthPb
 14199  			}
 14200  			postIndex := iNdEx + byteLen
 14201  			if postIndex < 0 {
 14202  				return ErrInvalidLengthPb
 14203  			}
 14204  			if postIndex > l {
 14205  				return io.ErrUnexpectedEOF
 14206  			}
 14207  			m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...)
 14208  			if m.Value == nil {
 14209  				m.Value = []byte{}
 14210  			}
 14211  			iNdEx = postIndex
 14212  		case 4:
 14213  			if wireType != 0 {
 14214  				return fmt.Errorf("proto: wrong wireType = %d for field ValueType", wireType)
 14215  			}
 14216  			m.ValueType = 0
 14217  			for shift := uint(0); ; shift += 7 {
 14218  				if shift >= 64 {
 14219  					return ErrIntOverflowPb
 14220  				}
 14221  				if iNdEx >= l {
 14222  					return io.ErrUnexpectedEOF
 14223  				}
 14224  				b := dAtA[iNdEx]
 14225  				iNdEx++
 14226  				m.ValueType |= Posting_ValType(b&0x7F) << shift
 14227  				if b < 0x80 {
 14228  					break
 14229  				}
 14230  			}
 14231  		case 5:
 14232  			if wireType != 1 {
 14233  				return fmt.Errorf("proto: wrong wireType = %d for field ValueId", wireType)
 14234  			}
 14235  			m.ValueId = 0
 14236  			if (iNdEx + 8) > l {
 14237  				return io.ErrUnexpectedEOF
 14238  			}
 14239  			m.ValueId = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
 14240  			iNdEx += 8
 14241  		case 6:
 14242  			if wireType != 2 {
 14243  				return fmt.Errorf("proto: wrong wireType = %d for field Label", wireType)
 14244  			}
 14245  			var stringLen uint64
 14246  			for shift := uint(0); ; shift += 7 {
 14247  				if shift >= 64 {
 14248  					return ErrIntOverflowPb
 14249  				}
 14250  				if iNdEx >= l {
 14251  					return io.ErrUnexpectedEOF
 14252  				}
 14253  				b := dAtA[iNdEx]
 14254  				iNdEx++
 14255  				stringLen |= uint64(b&0x7F) << shift
 14256  				if b < 0x80 {
 14257  					break
 14258  				}
 14259  			}
 14260  			intStringLen := int(stringLen)
 14261  			if intStringLen < 0 {
 14262  				return ErrInvalidLengthPb
 14263  			}
 14264  			postIndex := iNdEx + intStringLen
 14265  			if postIndex < 0 {
 14266  				return ErrInvalidLengthPb
 14267  			}
 14268  			if postIndex > l {
 14269  				return io.ErrUnexpectedEOF
 14270  			}
 14271  			m.Label = string(dAtA[iNdEx:postIndex])
 14272  			iNdEx = postIndex
 14273  		case 7:
 14274  			if wireType != 2 {
 14275  				return fmt.Errorf("proto: wrong wireType = %d for field Lang", wireType)
 14276  			}
 14277  			var stringLen uint64
 14278  			for shift := uint(0); ; shift += 7 {
 14279  				if shift >= 64 {
 14280  					return ErrIntOverflowPb
 14281  				}
 14282  				if iNdEx >= l {
 14283  					return io.ErrUnexpectedEOF
 14284  				}
 14285  				b := dAtA[iNdEx]
 14286  				iNdEx++
 14287  				stringLen |= uint64(b&0x7F) << shift
 14288  				if b < 0x80 {
 14289  					break
 14290  				}
 14291  			}
 14292  			intStringLen := int(stringLen)
 14293  			if intStringLen < 0 {
 14294  				return ErrInvalidLengthPb
 14295  			}
 14296  			postIndex := iNdEx + intStringLen
 14297  			if postIndex < 0 {
 14298  				return ErrInvalidLengthPb
 14299  			}
 14300  			if postIndex > l {
 14301  				return io.ErrUnexpectedEOF
 14302  			}
 14303  			m.Lang = string(dAtA[iNdEx:postIndex])
 14304  			iNdEx = postIndex
 14305  		case 8:
 14306  			if wireType != 0 {
 14307  				return fmt.Errorf("proto: wrong wireType = %d for field Op", wireType)
 14308  			}
 14309  			m.Op = 0
 14310  			for shift := uint(0); ; shift += 7 {
 14311  				if shift >= 64 {
 14312  					return ErrIntOverflowPb
 14313  				}
 14314  				if iNdEx >= l {
 14315  					return io.ErrUnexpectedEOF
 14316  				}
 14317  				b := dAtA[iNdEx]
 14318  				iNdEx++
 14319  				m.Op |= DirectedEdge_Op(b&0x7F) << shift
 14320  				if b < 0x80 {
 14321  					break
 14322  				}
 14323  			}
 14324  		case 9:
 14325  			if wireType != 2 {
 14326  				return fmt.Errorf("proto: wrong wireType = %d for field Facets", wireType)
 14327  			}
 14328  			var msglen int
 14329  			for shift := uint(0); ; shift += 7 {
 14330  				if shift >= 64 {
 14331  					return ErrIntOverflowPb
 14332  				}
 14333  				if iNdEx >= l {
 14334  					return io.ErrUnexpectedEOF
 14335  				}
 14336  				b := dAtA[iNdEx]
 14337  				iNdEx++
 14338  				msglen |= int(b&0x7F) << shift
 14339  				if b < 0x80 {
 14340  					break
 14341  				}
 14342  			}
 14343  			if msglen < 0 {
 14344  				return ErrInvalidLengthPb
 14345  			}
 14346  			postIndex := iNdEx + msglen
 14347  			if postIndex < 0 {
 14348  				return ErrInvalidLengthPb
 14349  			}
 14350  			if postIndex > l {
 14351  				return io.ErrUnexpectedEOF
 14352  			}
 14353  			m.Facets = append(m.Facets, &api.Facet{})
 14354  			if err := m.Facets[len(m.Facets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 14355  				return err
 14356  			}
 14357  			iNdEx = postIndex
 14358  		default:
 14359  			iNdEx = preIndex
 14360  			skippy, err := skipPb(dAtA[iNdEx:])
 14361  			if err != nil {
 14362  				return err
 14363  			}
 14364  			if skippy < 0 {
 14365  				return ErrInvalidLengthPb
 14366  			}
 14367  			if (iNdEx + skippy) < 0 {
 14368  				return ErrInvalidLengthPb
 14369  			}
 14370  			if (iNdEx + skippy) > l {
 14371  				return io.ErrUnexpectedEOF
 14372  			}
 14373  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 14374  			iNdEx += skippy
 14375  		}
 14376  	}
 14377  
 14378  	if iNdEx > l {
 14379  		return io.ErrUnexpectedEOF
 14380  	}
 14381  	return nil
 14382  }
 14383  func (m *Mutations) Unmarshal(dAtA []byte) error {
 14384  	l := len(dAtA)
 14385  	iNdEx := 0
 14386  	for iNdEx < l {
 14387  		preIndex := iNdEx
 14388  		var wire uint64
 14389  		for shift := uint(0); ; shift += 7 {
 14390  			if shift >= 64 {
 14391  				return ErrIntOverflowPb
 14392  			}
 14393  			if iNdEx >= l {
 14394  				return io.ErrUnexpectedEOF
 14395  			}
 14396  			b := dAtA[iNdEx]
 14397  			iNdEx++
 14398  			wire |= uint64(b&0x7F) << shift
 14399  			if b < 0x80 {
 14400  				break
 14401  			}
 14402  		}
 14403  		fieldNum := int32(wire >> 3)
 14404  		wireType := int(wire & 0x7)
 14405  		if wireType == 4 {
 14406  			return fmt.Errorf("proto: Mutations: wiretype end group for non-group")
 14407  		}
 14408  		if fieldNum <= 0 {
 14409  			return fmt.Errorf("proto: Mutations: illegal tag %d (wire type %d)", fieldNum, wire)
 14410  		}
 14411  		switch fieldNum {
 14412  		case 1:
 14413  			if wireType != 0 {
 14414  				return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
 14415  			}
 14416  			m.GroupId = 0
 14417  			for shift := uint(0); ; shift += 7 {
 14418  				if shift >= 64 {
 14419  					return ErrIntOverflowPb
 14420  				}
 14421  				if iNdEx >= l {
 14422  					return io.ErrUnexpectedEOF
 14423  				}
 14424  				b := dAtA[iNdEx]
 14425  				iNdEx++
 14426  				m.GroupId |= uint32(b&0x7F) << shift
 14427  				if b < 0x80 {
 14428  					break
 14429  				}
 14430  			}
 14431  		case 2:
 14432  			if wireType != 0 {
 14433  				return fmt.Errorf("proto: wrong wireType = %d for field StartTs", wireType)
 14434  			}
 14435  			m.StartTs = 0
 14436  			for shift := uint(0); ; shift += 7 {
 14437  				if shift >= 64 {
 14438  					return ErrIntOverflowPb
 14439  				}
 14440  				if iNdEx >= l {
 14441  					return io.ErrUnexpectedEOF
 14442  				}
 14443  				b := dAtA[iNdEx]
 14444  				iNdEx++
 14445  				m.StartTs |= uint64(b&0x7F) << shift
 14446  				if b < 0x80 {
 14447  					break
 14448  				}
 14449  			}
 14450  		case 3:
 14451  			if wireType != 2 {
 14452  				return fmt.Errorf("proto: wrong wireType = %d for field Edges", wireType)
 14453  			}
 14454  			var msglen int
 14455  			for shift := uint(0); ; shift += 7 {
 14456  				if shift >= 64 {
 14457  					return ErrIntOverflowPb
 14458  				}
 14459  				if iNdEx >= l {
 14460  					return io.ErrUnexpectedEOF
 14461  				}
 14462  				b := dAtA[iNdEx]
 14463  				iNdEx++
 14464  				msglen |= int(b&0x7F) << shift
 14465  				if b < 0x80 {
 14466  					break
 14467  				}
 14468  			}
 14469  			if msglen < 0 {
 14470  				return ErrInvalidLengthPb
 14471  			}
 14472  			postIndex := iNdEx + msglen
 14473  			if postIndex < 0 {
 14474  				return ErrInvalidLengthPb
 14475  			}
 14476  			if postIndex > l {
 14477  				return io.ErrUnexpectedEOF
 14478  			}
 14479  			m.Edges = append(m.Edges, &DirectedEdge{})
 14480  			if err := m.Edges[len(m.Edges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 14481  				return err
 14482  			}
 14483  			iNdEx = postIndex
 14484  		case 4:
 14485  			if wireType != 2 {
 14486  				return fmt.Errorf("proto: wrong wireType = %d for field Schema", wireType)
 14487  			}
 14488  			var msglen int
 14489  			for shift := uint(0); ; shift += 7 {
 14490  				if shift >= 64 {
 14491  					return ErrIntOverflowPb
 14492  				}
 14493  				if iNdEx >= l {
 14494  					return io.ErrUnexpectedEOF
 14495  				}
 14496  				b := dAtA[iNdEx]
 14497  				iNdEx++
 14498  				msglen |= int(b&0x7F) << shift
 14499  				if b < 0x80 {
 14500  					break
 14501  				}
 14502  			}
 14503  			if msglen < 0 {
 14504  				return ErrInvalidLengthPb
 14505  			}
 14506  			postIndex := iNdEx + msglen
 14507  			if postIndex < 0 {
 14508  				return ErrInvalidLengthPb
 14509  			}
 14510  			if postIndex > l {
 14511  				return io.ErrUnexpectedEOF
 14512  			}
 14513  			m.Schema = append(m.Schema, &SchemaUpdate{})
 14514  			if err := m.Schema[len(m.Schema)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 14515  				return err
 14516  			}
 14517  			iNdEx = postIndex
 14518  		case 6:
 14519  			if wireType != 2 {
 14520  				return fmt.Errorf("proto: wrong wireType = %d for field Types", wireType)
 14521  			}
 14522  			var msglen int
 14523  			for shift := uint(0); ; shift += 7 {
 14524  				if shift >= 64 {
 14525  					return ErrIntOverflowPb
 14526  				}
 14527  				if iNdEx >= l {
 14528  					return io.ErrUnexpectedEOF
 14529  				}
 14530  				b := dAtA[iNdEx]
 14531  				iNdEx++
 14532  				msglen |= int(b&0x7F) << shift
 14533  				if b < 0x80 {
 14534  					break
 14535  				}
 14536  			}
 14537  			if msglen < 0 {
 14538  				return ErrInvalidLengthPb
 14539  			}
 14540  			postIndex := iNdEx + msglen
 14541  			if postIndex < 0 {
 14542  				return ErrInvalidLengthPb
 14543  			}
 14544  			if postIndex > l {
 14545  				return io.ErrUnexpectedEOF
 14546  			}
 14547  			m.Types = append(m.Types, &TypeUpdate{})
 14548  			if err := m.Types[len(m.Types)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 14549  				return err
 14550  			}
 14551  			iNdEx = postIndex
 14552  		case 7:
 14553  			if wireType != 0 {
 14554  				return fmt.Errorf("proto: wrong wireType = %d for field DropOp", wireType)
 14555  			}
 14556  			m.DropOp = 0
 14557  			for shift := uint(0); ; shift += 7 {
 14558  				if shift >= 64 {
 14559  					return ErrIntOverflowPb
 14560  				}
 14561  				if iNdEx >= l {
 14562  					return io.ErrUnexpectedEOF
 14563  				}
 14564  				b := dAtA[iNdEx]
 14565  				iNdEx++
 14566  				m.DropOp |= Mutations_DropOp(b&0x7F) << shift
 14567  				if b < 0x80 {
 14568  					break
 14569  				}
 14570  			}
 14571  		case 8:
 14572  			if wireType != 2 {
 14573  				return fmt.Errorf("proto: wrong wireType = %d for field DropValue", wireType)
 14574  			}
 14575  			var stringLen uint64
 14576  			for shift := uint(0); ; shift += 7 {
 14577  				if shift >= 64 {
 14578  					return ErrIntOverflowPb
 14579  				}
 14580  				if iNdEx >= l {
 14581  					return io.ErrUnexpectedEOF
 14582  				}
 14583  				b := dAtA[iNdEx]
 14584  				iNdEx++
 14585  				stringLen |= uint64(b&0x7F) << shift
 14586  				if b < 0x80 {
 14587  					break
 14588  				}
 14589  			}
 14590  			intStringLen := int(stringLen)
 14591  			if intStringLen < 0 {
 14592  				return ErrInvalidLengthPb
 14593  			}
 14594  			postIndex := iNdEx + intStringLen
 14595  			if postIndex < 0 {
 14596  				return ErrInvalidLengthPb
 14597  			}
 14598  			if postIndex > l {
 14599  				return io.ErrUnexpectedEOF
 14600  			}
 14601  			m.DropValue = string(dAtA[iNdEx:postIndex])
 14602  			iNdEx = postIndex
 14603  		default:
 14604  			iNdEx = preIndex
 14605  			skippy, err := skipPb(dAtA[iNdEx:])
 14606  			if err != nil {
 14607  				return err
 14608  			}
 14609  			if skippy < 0 {
 14610  				return ErrInvalidLengthPb
 14611  			}
 14612  			if (iNdEx + skippy) < 0 {
 14613  				return ErrInvalidLengthPb
 14614  			}
 14615  			if (iNdEx + skippy) > l {
 14616  				return io.ErrUnexpectedEOF
 14617  			}
 14618  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 14619  			iNdEx += skippy
 14620  		}
 14621  	}
 14622  
 14623  	if iNdEx > l {
 14624  		return io.ErrUnexpectedEOF
 14625  	}
 14626  	return nil
 14627  }
 14628  func (m *Snapshot) Unmarshal(dAtA []byte) error {
 14629  	l := len(dAtA)
 14630  	iNdEx := 0
 14631  	for iNdEx < l {
 14632  		preIndex := iNdEx
 14633  		var wire uint64
 14634  		for shift := uint(0); ; shift += 7 {
 14635  			if shift >= 64 {
 14636  				return ErrIntOverflowPb
 14637  			}
 14638  			if iNdEx >= l {
 14639  				return io.ErrUnexpectedEOF
 14640  			}
 14641  			b := dAtA[iNdEx]
 14642  			iNdEx++
 14643  			wire |= uint64(b&0x7F) << shift
 14644  			if b < 0x80 {
 14645  				break
 14646  			}
 14647  		}
 14648  		fieldNum := int32(wire >> 3)
 14649  		wireType := int(wire & 0x7)
 14650  		if wireType == 4 {
 14651  			return fmt.Errorf("proto: Snapshot: wiretype end group for non-group")
 14652  		}
 14653  		if fieldNum <= 0 {
 14654  			return fmt.Errorf("proto: Snapshot: illegal tag %d (wire type %d)", fieldNum, wire)
 14655  		}
 14656  		switch fieldNum {
 14657  		case 1:
 14658  			if wireType != 2 {
 14659  				return fmt.Errorf("proto: wrong wireType = %d for field Context", wireType)
 14660  			}
 14661  			var msglen int
 14662  			for shift := uint(0); ; shift += 7 {
 14663  				if shift >= 64 {
 14664  					return ErrIntOverflowPb
 14665  				}
 14666  				if iNdEx >= l {
 14667  					return io.ErrUnexpectedEOF
 14668  				}
 14669  				b := dAtA[iNdEx]
 14670  				iNdEx++
 14671  				msglen |= int(b&0x7F) << shift
 14672  				if b < 0x80 {
 14673  					break
 14674  				}
 14675  			}
 14676  			if msglen < 0 {
 14677  				return ErrInvalidLengthPb
 14678  			}
 14679  			postIndex := iNdEx + msglen
 14680  			if postIndex < 0 {
 14681  				return ErrInvalidLengthPb
 14682  			}
 14683  			if postIndex > l {
 14684  				return io.ErrUnexpectedEOF
 14685  			}
 14686  			if m.Context == nil {
 14687  				m.Context = &RaftContext{}
 14688  			}
 14689  			if err := m.Context.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 14690  				return err
 14691  			}
 14692  			iNdEx = postIndex
 14693  		case 2:
 14694  			if wireType != 0 {
 14695  				return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType)
 14696  			}
 14697  			m.Index = 0
 14698  			for shift := uint(0); ; shift += 7 {
 14699  				if shift >= 64 {
 14700  					return ErrIntOverflowPb
 14701  				}
 14702  				if iNdEx >= l {
 14703  					return io.ErrUnexpectedEOF
 14704  				}
 14705  				b := dAtA[iNdEx]
 14706  				iNdEx++
 14707  				m.Index |= uint64(b&0x7F) << shift
 14708  				if b < 0x80 {
 14709  					break
 14710  				}
 14711  			}
 14712  		case 3:
 14713  			if wireType != 0 {
 14714  				return fmt.Errorf("proto: wrong wireType = %d for field ReadTs", wireType)
 14715  			}
 14716  			m.ReadTs = 0
 14717  			for shift := uint(0); ; shift += 7 {
 14718  				if shift >= 64 {
 14719  					return ErrIntOverflowPb
 14720  				}
 14721  				if iNdEx >= l {
 14722  					return io.ErrUnexpectedEOF
 14723  				}
 14724  				b := dAtA[iNdEx]
 14725  				iNdEx++
 14726  				m.ReadTs |= uint64(b&0x7F) << shift
 14727  				if b < 0x80 {
 14728  					break
 14729  				}
 14730  			}
 14731  		case 4:
 14732  			if wireType != 0 {
 14733  				return fmt.Errorf("proto: wrong wireType = %d for field Done", wireType)
 14734  			}
 14735  			var v int
 14736  			for shift := uint(0); ; shift += 7 {
 14737  				if shift >= 64 {
 14738  					return ErrIntOverflowPb
 14739  				}
 14740  				if iNdEx >= l {
 14741  					return io.ErrUnexpectedEOF
 14742  				}
 14743  				b := dAtA[iNdEx]
 14744  				iNdEx++
 14745  				v |= int(b&0x7F) << shift
 14746  				if b < 0x80 {
 14747  					break
 14748  				}
 14749  			}
 14750  			m.Done = bool(v != 0)
 14751  		case 5:
 14752  			if wireType != 0 {
 14753  				return fmt.Errorf("proto: wrong wireType = %d for field SinceTs", wireType)
 14754  			}
 14755  			m.SinceTs = 0
 14756  			for shift := uint(0); ; shift += 7 {
 14757  				if shift >= 64 {
 14758  					return ErrIntOverflowPb
 14759  				}
 14760  				if iNdEx >= l {
 14761  					return io.ErrUnexpectedEOF
 14762  				}
 14763  				b := dAtA[iNdEx]
 14764  				iNdEx++
 14765  				m.SinceTs |= uint64(b&0x7F) << shift
 14766  				if b < 0x80 {
 14767  					break
 14768  				}
 14769  			}
 14770  		default:
 14771  			iNdEx = preIndex
 14772  			skippy, err := skipPb(dAtA[iNdEx:])
 14773  			if err != nil {
 14774  				return err
 14775  			}
 14776  			if skippy < 0 {
 14777  				return ErrInvalidLengthPb
 14778  			}
 14779  			if (iNdEx + skippy) < 0 {
 14780  				return ErrInvalidLengthPb
 14781  			}
 14782  			if (iNdEx + skippy) > l {
 14783  				return io.ErrUnexpectedEOF
 14784  			}
 14785  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 14786  			iNdEx += skippy
 14787  		}
 14788  	}
 14789  
 14790  	if iNdEx > l {
 14791  		return io.ErrUnexpectedEOF
 14792  	}
 14793  	return nil
 14794  }
 14795  func (m *Proposal) Unmarshal(dAtA []byte) error {
 14796  	l := len(dAtA)
 14797  	iNdEx := 0
 14798  	for iNdEx < l {
 14799  		preIndex := iNdEx
 14800  		var wire uint64
 14801  		for shift := uint(0); ; shift += 7 {
 14802  			if shift >= 64 {
 14803  				return ErrIntOverflowPb
 14804  			}
 14805  			if iNdEx >= l {
 14806  				return io.ErrUnexpectedEOF
 14807  			}
 14808  			b := dAtA[iNdEx]
 14809  			iNdEx++
 14810  			wire |= uint64(b&0x7F) << shift
 14811  			if b < 0x80 {
 14812  				break
 14813  			}
 14814  		}
 14815  		fieldNum := int32(wire >> 3)
 14816  		wireType := int(wire & 0x7)
 14817  		if wireType == 4 {
 14818  			return fmt.Errorf("proto: Proposal: wiretype end group for non-group")
 14819  		}
 14820  		if fieldNum <= 0 {
 14821  			return fmt.Errorf("proto: Proposal: illegal tag %d (wire type %d)", fieldNum, wire)
 14822  		}
 14823  		switch fieldNum {
 14824  		case 2:
 14825  			if wireType != 2 {
 14826  				return fmt.Errorf("proto: wrong wireType = %d for field Mutations", wireType)
 14827  			}
 14828  			var msglen int
 14829  			for shift := uint(0); ; shift += 7 {
 14830  				if shift >= 64 {
 14831  					return ErrIntOverflowPb
 14832  				}
 14833  				if iNdEx >= l {
 14834  					return io.ErrUnexpectedEOF
 14835  				}
 14836  				b := dAtA[iNdEx]
 14837  				iNdEx++
 14838  				msglen |= int(b&0x7F) << shift
 14839  				if b < 0x80 {
 14840  					break
 14841  				}
 14842  			}
 14843  			if msglen < 0 {
 14844  				return ErrInvalidLengthPb
 14845  			}
 14846  			postIndex := iNdEx + msglen
 14847  			if postIndex < 0 {
 14848  				return ErrInvalidLengthPb
 14849  			}
 14850  			if postIndex > l {
 14851  				return io.ErrUnexpectedEOF
 14852  			}
 14853  			if m.Mutations == nil {
 14854  				m.Mutations = &Mutations{}
 14855  			}
 14856  			if err := m.Mutations.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 14857  				return err
 14858  			}
 14859  			iNdEx = postIndex
 14860  		case 4:
 14861  			if wireType != 2 {
 14862  				return fmt.Errorf("proto: wrong wireType = %d for field Kv", wireType)
 14863  			}
 14864  			var msglen int
 14865  			for shift := uint(0); ; shift += 7 {
 14866  				if shift >= 64 {
 14867  					return ErrIntOverflowPb
 14868  				}
 14869  				if iNdEx >= l {
 14870  					return io.ErrUnexpectedEOF
 14871  				}
 14872  				b := dAtA[iNdEx]
 14873  				iNdEx++
 14874  				msglen |= int(b&0x7F) << shift
 14875  				if b < 0x80 {
 14876  					break
 14877  				}
 14878  			}
 14879  			if msglen < 0 {
 14880  				return ErrInvalidLengthPb
 14881  			}
 14882  			postIndex := iNdEx + msglen
 14883  			if postIndex < 0 {
 14884  				return ErrInvalidLengthPb
 14885  			}
 14886  			if postIndex > l {
 14887  				return io.ErrUnexpectedEOF
 14888  			}
 14889  			m.Kv = append(m.Kv, &pb.KV{})
 14890  			if err := m.Kv[len(m.Kv)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 14891  				return err
 14892  			}
 14893  			iNdEx = postIndex
 14894  		case 5:
 14895  			if wireType != 2 {
 14896  				return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
 14897  			}
 14898  			var msglen int
 14899  			for shift := uint(0); ; shift += 7 {
 14900  				if shift >= 64 {
 14901  					return ErrIntOverflowPb
 14902  				}
 14903  				if iNdEx >= l {
 14904  					return io.ErrUnexpectedEOF
 14905  				}
 14906  				b := dAtA[iNdEx]
 14907  				iNdEx++
 14908  				msglen |= int(b&0x7F) << shift
 14909  				if b < 0x80 {
 14910  					break
 14911  				}
 14912  			}
 14913  			if msglen < 0 {
 14914  				return ErrInvalidLengthPb
 14915  			}
 14916  			postIndex := iNdEx + msglen
 14917  			if postIndex < 0 {
 14918  				return ErrInvalidLengthPb
 14919  			}
 14920  			if postIndex > l {
 14921  				return io.ErrUnexpectedEOF
 14922  			}
 14923  			if m.State == nil {
 14924  				m.State = &MembershipState{}
 14925  			}
 14926  			if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 14927  				return err
 14928  			}
 14929  			iNdEx = postIndex
 14930  		case 6:
 14931  			if wireType != 2 {
 14932  				return fmt.Errorf("proto: wrong wireType = %d for field CleanPredicate", wireType)
 14933  			}
 14934  			var stringLen uint64
 14935  			for shift := uint(0); ; shift += 7 {
 14936  				if shift >= 64 {
 14937  					return ErrIntOverflowPb
 14938  				}
 14939  				if iNdEx >= l {
 14940  					return io.ErrUnexpectedEOF
 14941  				}
 14942  				b := dAtA[iNdEx]
 14943  				iNdEx++
 14944  				stringLen |= uint64(b&0x7F) << shift
 14945  				if b < 0x80 {
 14946  					break
 14947  				}
 14948  			}
 14949  			intStringLen := int(stringLen)
 14950  			if intStringLen < 0 {
 14951  				return ErrInvalidLengthPb
 14952  			}
 14953  			postIndex := iNdEx + intStringLen
 14954  			if postIndex < 0 {
 14955  				return ErrInvalidLengthPb
 14956  			}
 14957  			if postIndex > l {
 14958  				return io.ErrUnexpectedEOF
 14959  			}
 14960  			m.CleanPredicate = string(dAtA[iNdEx:postIndex])
 14961  			iNdEx = postIndex
 14962  		case 7:
 14963  			if wireType != 2 {
 14964  				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
 14965  			}
 14966  			var stringLen uint64
 14967  			for shift := uint(0); ; shift += 7 {
 14968  				if shift >= 64 {
 14969  					return ErrIntOverflowPb
 14970  				}
 14971  				if iNdEx >= l {
 14972  					return io.ErrUnexpectedEOF
 14973  				}
 14974  				b := dAtA[iNdEx]
 14975  				iNdEx++
 14976  				stringLen |= uint64(b&0x7F) << shift
 14977  				if b < 0x80 {
 14978  					break
 14979  				}
 14980  			}
 14981  			intStringLen := int(stringLen)
 14982  			if intStringLen < 0 {
 14983  				return ErrInvalidLengthPb
 14984  			}
 14985  			postIndex := iNdEx + intStringLen
 14986  			if postIndex < 0 {
 14987  				return ErrInvalidLengthPb
 14988  			}
 14989  			if postIndex > l {
 14990  				return io.ErrUnexpectedEOF
 14991  			}
 14992  			m.Key = string(dAtA[iNdEx:postIndex])
 14993  			iNdEx = postIndex
 14994  		case 8:
 14995  			if wireType != 2 {
 14996  				return fmt.Errorf("proto: wrong wireType = %d for field Delta", wireType)
 14997  			}
 14998  			var msglen int
 14999  			for shift := uint(0); ; shift += 7 {
 15000  				if shift >= 64 {
 15001  					return ErrIntOverflowPb
 15002  				}
 15003  				if iNdEx >= l {
 15004  					return io.ErrUnexpectedEOF
 15005  				}
 15006  				b := dAtA[iNdEx]
 15007  				iNdEx++
 15008  				msglen |= int(b&0x7F) << shift
 15009  				if b < 0x80 {
 15010  					break
 15011  				}
 15012  			}
 15013  			if msglen < 0 {
 15014  				return ErrInvalidLengthPb
 15015  			}
 15016  			postIndex := iNdEx + msglen
 15017  			if postIndex < 0 {
 15018  				return ErrInvalidLengthPb
 15019  			}
 15020  			if postIndex > l {
 15021  				return io.ErrUnexpectedEOF
 15022  			}
 15023  			if m.Delta == nil {
 15024  				m.Delta = &OracleDelta{}
 15025  			}
 15026  			if err := m.Delta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 15027  				return err
 15028  			}
 15029  			iNdEx = postIndex
 15030  		case 9:
 15031  			if wireType != 2 {
 15032  				return fmt.Errorf("proto: wrong wireType = %d for field Snapshot", wireType)
 15033  			}
 15034  			var msglen int
 15035  			for shift := uint(0); ; shift += 7 {
 15036  				if shift >= 64 {
 15037  					return ErrIntOverflowPb
 15038  				}
 15039  				if iNdEx >= l {
 15040  					return io.ErrUnexpectedEOF
 15041  				}
 15042  				b := dAtA[iNdEx]
 15043  				iNdEx++
 15044  				msglen |= int(b&0x7F) << shift
 15045  				if b < 0x80 {
 15046  					break
 15047  				}
 15048  			}
 15049  			if msglen < 0 {
 15050  				return ErrInvalidLengthPb
 15051  			}
 15052  			postIndex := iNdEx + msglen
 15053  			if postIndex < 0 {
 15054  				return ErrInvalidLengthPb
 15055  			}
 15056  			if postIndex > l {
 15057  				return io.ErrUnexpectedEOF
 15058  			}
 15059  			if m.Snapshot == nil {
 15060  				m.Snapshot = &Snapshot{}
 15061  			}
 15062  			if err := m.Snapshot.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 15063  				return err
 15064  			}
 15065  			iNdEx = postIndex
 15066  		case 10:
 15067  			if wireType != 0 {
 15068  				return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType)
 15069  			}
 15070  			m.Index = 0
 15071  			for shift := uint(0); ; shift += 7 {
 15072  				if shift >= 64 {
 15073  					return ErrIntOverflowPb
 15074  				}
 15075  				if iNdEx >= l {
 15076  					return io.ErrUnexpectedEOF
 15077  				}
 15078  				b := dAtA[iNdEx]
 15079  				iNdEx++
 15080  				m.Index |= uint64(b&0x7F) << shift
 15081  				if b < 0x80 {
 15082  					break
 15083  				}
 15084  			}
 15085  		default:
 15086  			iNdEx = preIndex
 15087  			skippy, err := skipPb(dAtA[iNdEx:])
 15088  			if err != nil {
 15089  				return err
 15090  			}
 15091  			if skippy < 0 {
 15092  				return ErrInvalidLengthPb
 15093  			}
 15094  			if (iNdEx + skippy) < 0 {
 15095  				return ErrInvalidLengthPb
 15096  			}
 15097  			if (iNdEx + skippy) > l {
 15098  				return io.ErrUnexpectedEOF
 15099  			}
 15100  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 15101  			iNdEx += skippy
 15102  		}
 15103  	}
 15104  
 15105  	if iNdEx > l {
 15106  		return io.ErrUnexpectedEOF
 15107  	}
 15108  	return nil
 15109  }
 15110  func (m *KVS) Unmarshal(dAtA []byte) error {
 15111  	l := len(dAtA)
 15112  	iNdEx := 0
 15113  	for iNdEx < l {
 15114  		preIndex := iNdEx
 15115  		var wire uint64
 15116  		for shift := uint(0); ; shift += 7 {
 15117  			if shift >= 64 {
 15118  				return ErrIntOverflowPb
 15119  			}
 15120  			if iNdEx >= l {
 15121  				return io.ErrUnexpectedEOF
 15122  			}
 15123  			b := dAtA[iNdEx]
 15124  			iNdEx++
 15125  			wire |= uint64(b&0x7F) << shift
 15126  			if b < 0x80 {
 15127  				break
 15128  			}
 15129  		}
 15130  		fieldNum := int32(wire >> 3)
 15131  		wireType := int(wire & 0x7)
 15132  		if wireType == 4 {
 15133  			return fmt.Errorf("proto: KVS: wiretype end group for non-group")
 15134  		}
 15135  		if fieldNum <= 0 {
 15136  			return fmt.Errorf("proto: KVS: illegal tag %d (wire type %d)", fieldNum, wire)
 15137  		}
 15138  		switch fieldNum {
 15139  		case 1:
 15140  			if wireType != 2 {
 15141  				return fmt.Errorf("proto: wrong wireType = %d for field Kv", wireType)
 15142  			}
 15143  			var msglen int
 15144  			for shift := uint(0); ; shift += 7 {
 15145  				if shift >= 64 {
 15146  					return ErrIntOverflowPb
 15147  				}
 15148  				if iNdEx >= l {
 15149  					return io.ErrUnexpectedEOF
 15150  				}
 15151  				b := dAtA[iNdEx]
 15152  				iNdEx++
 15153  				msglen |= int(b&0x7F) << shift
 15154  				if b < 0x80 {
 15155  					break
 15156  				}
 15157  			}
 15158  			if msglen < 0 {
 15159  				return ErrInvalidLengthPb
 15160  			}
 15161  			postIndex := iNdEx + msglen
 15162  			if postIndex < 0 {
 15163  				return ErrInvalidLengthPb
 15164  			}
 15165  			if postIndex > l {
 15166  				return io.ErrUnexpectedEOF
 15167  			}
 15168  			m.Kv = append(m.Kv, &pb.KV{})
 15169  			if err := m.Kv[len(m.Kv)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 15170  				return err
 15171  			}
 15172  			iNdEx = postIndex
 15173  		case 2:
 15174  			if wireType != 0 {
 15175  				return fmt.Errorf("proto: wrong wireType = %d for field Done", wireType)
 15176  			}
 15177  			var v int
 15178  			for shift := uint(0); ; shift += 7 {
 15179  				if shift >= 64 {
 15180  					return ErrIntOverflowPb
 15181  				}
 15182  				if iNdEx >= l {
 15183  					return io.ErrUnexpectedEOF
 15184  				}
 15185  				b := dAtA[iNdEx]
 15186  				iNdEx++
 15187  				v |= int(b&0x7F) << shift
 15188  				if b < 0x80 {
 15189  					break
 15190  				}
 15191  			}
 15192  			m.Done = bool(v != 0)
 15193  		default:
 15194  			iNdEx = preIndex
 15195  			skippy, err := skipPb(dAtA[iNdEx:])
 15196  			if err != nil {
 15197  				return err
 15198  			}
 15199  			if skippy < 0 {
 15200  				return ErrInvalidLengthPb
 15201  			}
 15202  			if (iNdEx + skippy) < 0 {
 15203  				return ErrInvalidLengthPb
 15204  			}
 15205  			if (iNdEx + skippy) > l {
 15206  				return io.ErrUnexpectedEOF
 15207  			}
 15208  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 15209  			iNdEx += skippy
 15210  		}
 15211  	}
 15212  
 15213  	if iNdEx > l {
 15214  		return io.ErrUnexpectedEOF
 15215  	}
 15216  	return nil
 15217  }
 15218  func (m *Posting) Unmarshal(dAtA []byte) error {
 15219  	l := len(dAtA)
 15220  	iNdEx := 0
 15221  	for iNdEx < l {
 15222  		preIndex := iNdEx
 15223  		var wire uint64
 15224  		for shift := uint(0); ; shift += 7 {
 15225  			if shift >= 64 {
 15226  				return ErrIntOverflowPb
 15227  			}
 15228  			if iNdEx >= l {
 15229  				return io.ErrUnexpectedEOF
 15230  			}
 15231  			b := dAtA[iNdEx]
 15232  			iNdEx++
 15233  			wire |= uint64(b&0x7F) << shift
 15234  			if b < 0x80 {
 15235  				break
 15236  			}
 15237  		}
 15238  		fieldNum := int32(wire >> 3)
 15239  		wireType := int(wire & 0x7)
 15240  		if wireType == 4 {
 15241  			return fmt.Errorf("proto: Posting: wiretype end group for non-group")
 15242  		}
 15243  		if fieldNum <= 0 {
 15244  			return fmt.Errorf("proto: Posting: illegal tag %d (wire type %d)", fieldNum, wire)
 15245  		}
 15246  		switch fieldNum {
 15247  		case 1:
 15248  			if wireType != 1 {
 15249  				return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
 15250  			}
 15251  			m.Uid = 0
 15252  			if (iNdEx + 8) > l {
 15253  				return io.ErrUnexpectedEOF
 15254  			}
 15255  			m.Uid = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
 15256  			iNdEx += 8
 15257  		case 2:
 15258  			if wireType != 2 {
 15259  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
 15260  			}
 15261  			var byteLen int
 15262  			for shift := uint(0); ; shift += 7 {
 15263  				if shift >= 64 {
 15264  					return ErrIntOverflowPb
 15265  				}
 15266  				if iNdEx >= l {
 15267  					return io.ErrUnexpectedEOF
 15268  				}
 15269  				b := dAtA[iNdEx]
 15270  				iNdEx++
 15271  				byteLen |= int(b&0x7F) << shift
 15272  				if b < 0x80 {
 15273  					break
 15274  				}
 15275  			}
 15276  			if byteLen < 0 {
 15277  				return ErrInvalidLengthPb
 15278  			}
 15279  			postIndex := iNdEx + byteLen
 15280  			if postIndex < 0 {
 15281  				return ErrInvalidLengthPb
 15282  			}
 15283  			if postIndex > l {
 15284  				return io.ErrUnexpectedEOF
 15285  			}
 15286  			m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...)
 15287  			if m.Value == nil {
 15288  				m.Value = []byte{}
 15289  			}
 15290  			iNdEx = postIndex
 15291  		case 3:
 15292  			if wireType != 0 {
 15293  				return fmt.Errorf("proto: wrong wireType = %d for field ValType", wireType)
 15294  			}
 15295  			m.ValType = 0
 15296  			for shift := uint(0); ; shift += 7 {
 15297  				if shift >= 64 {
 15298  					return ErrIntOverflowPb
 15299  				}
 15300  				if iNdEx >= l {
 15301  					return io.ErrUnexpectedEOF
 15302  				}
 15303  				b := dAtA[iNdEx]
 15304  				iNdEx++
 15305  				m.ValType |= Posting_ValType(b&0x7F) << shift
 15306  				if b < 0x80 {
 15307  					break
 15308  				}
 15309  			}
 15310  		case 4:
 15311  			if wireType != 0 {
 15312  				return fmt.Errorf("proto: wrong wireType = %d for field PostingType", wireType)
 15313  			}
 15314  			m.PostingType = 0
 15315  			for shift := uint(0); ; shift += 7 {
 15316  				if shift >= 64 {
 15317  					return ErrIntOverflowPb
 15318  				}
 15319  				if iNdEx >= l {
 15320  					return io.ErrUnexpectedEOF
 15321  				}
 15322  				b := dAtA[iNdEx]
 15323  				iNdEx++
 15324  				m.PostingType |= Posting_PostingType(b&0x7F) << shift
 15325  				if b < 0x80 {
 15326  					break
 15327  				}
 15328  			}
 15329  		case 5:
 15330  			if wireType != 2 {
 15331  				return fmt.Errorf("proto: wrong wireType = %d for field LangTag", wireType)
 15332  			}
 15333  			var byteLen int
 15334  			for shift := uint(0); ; shift += 7 {
 15335  				if shift >= 64 {
 15336  					return ErrIntOverflowPb
 15337  				}
 15338  				if iNdEx >= l {
 15339  					return io.ErrUnexpectedEOF
 15340  				}
 15341  				b := dAtA[iNdEx]
 15342  				iNdEx++
 15343  				byteLen |= int(b&0x7F) << shift
 15344  				if b < 0x80 {
 15345  					break
 15346  				}
 15347  			}
 15348  			if byteLen < 0 {
 15349  				return ErrInvalidLengthPb
 15350  			}
 15351  			postIndex := iNdEx + byteLen
 15352  			if postIndex < 0 {
 15353  				return ErrInvalidLengthPb
 15354  			}
 15355  			if postIndex > l {
 15356  				return io.ErrUnexpectedEOF
 15357  			}
 15358  			m.LangTag = append(m.LangTag[:0], dAtA[iNdEx:postIndex]...)
 15359  			if m.LangTag == nil {
 15360  				m.LangTag = []byte{}
 15361  			}
 15362  			iNdEx = postIndex
 15363  		case 6:
 15364  			if wireType != 2 {
 15365  				return fmt.Errorf("proto: wrong wireType = %d for field Label", wireType)
 15366  			}
 15367  			var stringLen uint64
 15368  			for shift := uint(0); ; shift += 7 {
 15369  				if shift >= 64 {
 15370  					return ErrIntOverflowPb
 15371  				}
 15372  				if iNdEx >= l {
 15373  					return io.ErrUnexpectedEOF
 15374  				}
 15375  				b := dAtA[iNdEx]
 15376  				iNdEx++
 15377  				stringLen |= uint64(b&0x7F) << shift
 15378  				if b < 0x80 {
 15379  					break
 15380  				}
 15381  			}
 15382  			intStringLen := int(stringLen)
 15383  			if intStringLen < 0 {
 15384  				return ErrInvalidLengthPb
 15385  			}
 15386  			postIndex := iNdEx + intStringLen
 15387  			if postIndex < 0 {
 15388  				return ErrInvalidLengthPb
 15389  			}
 15390  			if postIndex > l {
 15391  				return io.ErrUnexpectedEOF
 15392  			}
 15393  			m.Label = string(dAtA[iNdEx:postIndex])
 15394  			iNdEx = postIndex
 15395  		case 9:
 15396  			if wireType != 2 {
 15397  				return fmt.Errorf("proto: wrong wireType = %d for field Facets", wireType)
 15398  			}
 15399  			var msglen int
 15400  			for shift := uint(0); ; shift += 7 {
 15401  				if shift >= 64 {
 15402  					return ErrIntOverflowPb
 15403  				}
 15404  				if iNdEx >= l {
 15405  					return io.ErrUnexpectedEOF
 15406  				}
 15407  				b := dAtA[iNdEx]
 15408  				iNdEx++
 15409  				msglen |= int(b&0x7F) << shift
 15410  				if b < 0x80 {
 15411  					break
 15412  				}
 15413  			}
 15414  			if msglen < 0 {
 15415  				return ErrInvalidLengthPb
 15416  			}
 15417  			postIndex := iNdEx + msglen
 15418  			if postIndex < 0 {
 15419  				return ErrInvalidLengthPb
 15420  			}
 15421  			if postIndex > l {
 15422  				return io.ErrUnexpectedEOF
 15423  			}
 15424  			m.Facets = append(m.Facets, &api.Facet{})
 15425  			if err := m.Facets[len(m.Facets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 15426  				return err
 15427  			}
 15428  			iNdEx = postIndex
 15429  		case 12:
 15430  			if wireType != 0 {
 15431  				return fmt.Errorf("proto: wrong wireType = %d for field Op", wireType)
 15432  			}
 15433  			m.Op = 0
 15434  			for shift := uint(0); ; shift += 7 {
 15435  				if shift >= 64 {
 15436  					return ErrIntOverflowPb
 15437  				}
 15438  				if iNdEx >= l {
 15439  					return io.ErrUnexpectedEOF
 15440  				}
 15441  				b := dAtA[iNdEx]
 15442  				iNdEx++
 15443  				m.Op |= uint32(b&0x7F) << shift
 15444  				if b < 0x80 {
 15445  					break
 15446  				}
 15447  			}
 15448  		case 13:
 15449  			if wireType != 0 {
 15450  				return fmt.Errorf("proto: wrong wireType = %d for field StartTs", wireType)
 15451  			}
 15452  			m.StartTs = 0
 15453  			for shift := uint(0); ; shift += 7 {
 15454  				if shift >= 64 {
 15455  					return ErrIntOverflowPb
 15456  				}
 15457  				if iNdEx >= l {
 15458  					return io.ErrUnexpectedEOF
 15459  				}
 15460  				b := dAtA[iNdEx]
 15461  				iNdEx++
 15462  				m.StartTs |= uint64(b&0x7F) << shift
 15463  				if b < 0x80 {
 15464  					break
 15465  				}
 15466  			}
 15467  		case 14:
 15468  			if wireType != 0 {
 15469  				return fmt.Errorf("proto: wrong wireType = %d for field CommitTs", wireType)
 15470  			}
 15471  			m.CommitTs = 0
 15472  			for shift := uint(0); ; shift += 7 {
 15473  				if shift >= 64 {
 15474  					return ErrIntOverflowPb
 15475  				}
 15476  				if iNdEx >= l {
 15477  					return io.ErrUnexpectedEOF
 15478  				}
 15479  				b := dAtA[iNdEx]
 15480  				iNdEx++
 15481  				m.CommitTs |= uint64(b&0x7F) << shift
 15482  				if b < 0x80 {
 15483  					break
 15484  				}
 15485  			}
 15486  		default:
 15487  			iNdEx = preIndex
 15488  			skippy, err := skipPb(dAtA[iNdEx:])
 15489  			if err != nil {
 15490  				return err
 15491  			}
 15492  			if skippy < 0 {
 15493  				return ErrInvalidLengthPb
 15494  			}
 15495  			if (iNdEx + skippy) < 0 {
 15496  				return ErrInvalidLengthPb
 15497  			}
 15498  			if (iNdEx + skippy) > l {
 15499  				return io.ErrUnexpectedEOF
 15500  			}
 15501  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 15502  			iNdEx += skippy
 15503  		}
 15504  	}
 15505  
 15506  	if iNdEx > l {
 15507  		return io.ErrUnexpectedEOF
 15508  	}
 15509  	return nil
 15510  }
 15511  func (m *UidBlock) Unmarshal(dAtA []byte) error {
 15512  	l := len(dAtA)
 15513  	iNdEx := 0
 15514  	for iNdEx < l {
 15515  		preIndex := iNdEx
 15516  		var wire uint64
 15517  		for shift := uint(0); ; shift += 7 {
 15518  			if shift >= 64 {
 15519  				return ErrIntOverflowPb
 15520  			}
 15521  			if iNdEx >= l {
 15522  				return io.ErrUnexpectedEOF
 15523  			}
 15524  			b := dAtA[iNdEx]
 15525  			iNdEx++
 15526  			wire |= uint64(b&0x7F) << shift
 15527  			if b < 0x80 {
 15528  				break
 15529  			}
 15530  		}
 15531  		fieldNum := int32(wire >> 3)
 15532  		wireType := int(wire & 0x7)
 15533  		if wireType == 4 {
 15534  			return fmt.Errorf("proto: UidBlock: wiretype end group for non-group")
 15535  		}
 15536  		if fieldNum <= 0 {
 15537  			return fmt.Errorf("proto: UidBlock: illegal tag %d (wire type %d)", fieldNum, wire)
 15538  		}
 15539  		switch fieldNum {
 15540  		case 1:
 15541  			if wireType != 0 {
 15542  				return fmt.Errorf("proto: wrong wireType = %d for field Base", wireType)
 15543  			}
 15544  			m.Base = 0
 15545  			for shift := uint(0); ; shift += 7 {
 15546  				if shift >= 64 {
 15547  					return ErrIntOverflowPb
 15548  				}
 15549  				if iNdEx >= l {
 15550  					return io.ErrUnexpectedEOF
 15551  				}
 15552  				b := dAtA[iNdEx]
 15553  				iNdEx++
 15554  				m.Base |= uint64(b&0x7F) << shift
 15555  				if b < 0x80 {
 15556  					break
 15557  				}
 15558  			}
 15559  		case 2:
 15560  			if wireType != 2 {
 15561  				return fmt.Errorf("proto: wrong wireType = %d for field Deltas", wireType)
 15562  			}
 15563  			var byteLen int
 15564  			for shift := uint(0); ; shift += 7 {
 15565  				if shift >= 64 {
 15566  					return ErrIntOverflowPb
 15567  				}
 15568  				if iNdEx >= l {
 15569  					return io.ErrUnexpectedEOF
 15570  				}
 15571  				b := dAtA[iNdEx]
 15572  				iNdEx++
 15573  				byteLen |= int(b&0x7F) << shift
 15574  				if b < 0x80 {
 15575  					break
 15576  				}
 15577  			}
 15578  			if byteLen < 0 {
 15579  				return ErrInvalidLengthPb
 15580  			}
 15581  			postIndex := iNdEx + byteLen
 15582  			if postIndex < 0 {
 15583  				return ErrInvalidLengthPb
 15584  			}
 15585  			if postIndex > l {
 15586  				return io.ErrUnexpectedEOF
 15587  			}
 15588  			m.Deltas = append(m.Deltas[:0], dAtA[iNdEx:postIndex]...)
 15589  			if m.Deltas == nil {
 15590  				m.Deltas = []byte{}
 15591  			}
 15592  			iNdEx = postIndex
 15593  		case 3:
 15594  			if wireType != 0 {
 15595  				return fmt.Errorf("proto: wrong wireType = %d for field NumUids", wireType)
 15596  			}
 15597  			m.NumUids = 0
 15598  			for shift := uint(0); ; shift += 7 {
 15599  				if shift >= 64 {
 15600  					return ErrIntOverflowPb
 15601  				}
 15602  				if iNdEx >= l {
 15603  					return io.ErrUnexpectedEOF
 15604  				}
 15605  				b := dAtA[iNdEx]
 15606  				iNdEx++
 15607  				m.NumUids |= uint32(b&0x7F) << shift
 15608  				if b < 0x80 {
 15609  					break
 15610  				}
 15611  			}
 15612  		default:
 15613  			iNdEx = preIndex
 15614  			skippy, err := skipPb(dAtA[iNdEx:])
 15615  			if err != nil {
 15616  				return err
 15617  			}
 15618  			if skippy < 0 {
 15619  				return ErrInvalidLengthPb
 15620  			}
 15621  			if (iNdEx + skippy) < 0 {
 15622  				return ErrInvalidLengthPb
 15623  			}
 15624  			if (iNdEx + skippy) > l {
 15625  				return io.ErrUnexpectedEOF
 15626  			}
 15627  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 15628  			iNdEx += skippy
 15629  		}
 15630  	}
 15631  
 15632  	if iNdEx > l {
 15633  		return io.ErrUnexpectedEOF
 15634  	}
 15635  	return nil
 15636  }
 15637  func (m *UidPack) Unmarshal(dAtA []byte) error {
 15638  	l := len(dAtA)
 15639  	iNdEx := 0
 15640  	for iNdEx < l {
 15641  		preIndex := iNdEx
 15642  		var wire uint64
 15643  		for shift := uint(0); ; shift += 7 {
 15644  			if shift >= 64 {
 15645  				return ErrIntOverflowPb
 15646  			}
 15647  			if iNdEx >= l {
 15648  				return io.ErrUnexpectedEOF
 15649  			}
 15650  			b := dAtA[iNdEx]
 15651  			iNdEx++
 15652  			wire |= uint64(b&0x7F) << shift
 15653  			if b < 0x80 {
 15654  				break
 15655  			}
 15656  		}
 15657  		fieldNum := int32(wire >> 3)
 15658  		wireType := int(wire & 0x7)
 15659  		if wireType == 4 {
 15660  			return fmt.Errorf("proto: UidPack: wiretype end group for non-group")
 15661  		}
 15662  		if fieldNum <= 0 {
 15663  			return fmt.Errorf("proto: UidPack: illegal tag %d (wire type %d)", fieldNum, wire)
 15664  		}
 15665  		switch fieldNum {
 15666  		case 1:
 15667  			if wireType != 0 {
 15668  				return fmt.Errorf("proto: wrong wireType = %d for field BlockSize", wireType)
 15669  			}
 15670  			m.BlockSize = 0
 15671  			for shift := uint(0); ; shift += 7 {
 15672  				if shift >= 64 {
 15673  					return ErrIntOverflowPb
 15674  				}
 15675  				if iNdEx >= l {
 15676  					return io.ErrUnexpectedEOF
 15677  				}
 15678  				b := dAtA[iNdEx]
 15679  				iNdEx++
 15680  				m.BlockSize |= uint32(b&0x7F) << shift
 15681  				if b < 0x80 {
 15682  					break
 15683  				}
 15684  			}
 15685  		case 2:
 15686  			if wireType != 2 {
 15687  				return fmt.Errorf("proto: wrong wireType = %d for field Blocks", wireType)
 15688  			}
 15689  			var msglen int
 15690  			for shift := uint(0); ; shift += 7 {
 15691  				if shift >= 64 {
 15692  					return ErrIntOverflowPb
 15693  				}
 15694  				if iNdEx >= l {
 15695  					return io.ErrUnexpectedEOF
 15696  				}
 15697  				b := dAtA[iNdEx]
 15698  				iNdEx++
 15699  				msglen |= int(b&0x7F) << shift
 15700  				if b < 0x80 {
 15701  					break
 15702  				}
 15703  			}
 15704  			if msglen < 0 {
 15705  				return ErrInvalidLengthPb
 15706  			}
 15707  			postIndex := iNdEx + msglen
 15708  			if postIndex < 0 {
 15709  				return ErrInvalidLengthPb
 15710  			}
 15711  			if postIndex > l {
 15712  				return io.ErrUnexpectedEOF
 15713  			}
 15714  			m.Blocks = append(m.Blocks, &UidBlock{})
 15715  			if err := m.Blocks[len(m.Blocks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 15716  				return err
 15717  			}
 15718  			iNdEx = postIndex
 15719  		default:
 15720  			iNdEx = preIndex
 15721  			skippy, err := skipPb(dAtA[iNdEx:])
 15722  			if err != nil {
 15723  				return err
 15724  			}
 15725  			if skippy < 0 {
 15726  				return ErrInvalidLengthPb
 15727  			}
 15728  			if (iNdEx + skippy) < 0 {
 15729  				return ErrInvalidLengthPb
 15730  			}
 15731  			if (iNdEx + skippy) > l {
 15732  				return io.ErrUnexpectedEOF
 15733  			}
 15734  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 15735  			iNdEx += skippy
 15736  		}
 15737  	}
 15738  
 15739  	if iNdEx > l {
 15740  		return io.ErrUnexpectedEOF
 15741  	}
 15742  	return nil
 15743  }
 15744  func (m *PostingList) Unmarshal(dAtA []byte) error {
 15745  	l := len(dAtA)
 15746  	iNdEx := 0
 15747  	for iNdEx < l {
 15748  		preIndex := iNdEx
 15749  		var wire uint64
 15750  		for shift := uint(0); ; shift += 7 {
 15751  			if shift >= 64 {
 15752  				return ErrIntOverflowPb
 15753  			}
 15754  			if iNdEx >= l {
 15755  				return io.ErrUnexpectedEOF
 15756  			}
 15757  			b := dAtA[iNdEx]
 15758  			iNdEx++
 15759  			wire |= uint64(b&0x7F) << shift
 15760  			if b < 0x80 {
 15761  				break
 15762  			}
 15763  		}
 15764  		fieldNum := int32(wire >> 3)
 15765  		wireType := int(wire & 0x7)
 15766  		if wireType == 4 {
 15767  			return fmt.Errorf("proto: PostingList: wiretype end group for non-group")
 15768  		}
 15769  		if fieldNum <= 0 {
 15770  			return fmt.Errorf("proto: PostingList: illegal tag %d (wire type %d)", fieldNum, wire)
 15771  		}
 15772  		switch fieldNum {
 15773  		case 1:
 15774  			if wireType != 2 {
 15775  				return fmt.Errorf("proto: wrong wireType = %d for field Pack", wireType)
 15776  			}
 15777  			var msglen int
 15778  			for shift := uint(0); ; shift += 7 {
 15779  				if shift >= 64 {
 15780  					return ErrIntOverflowPb
 15781  				}
 15782  				if iNdEx >= l {
 15783  					return io.ErrUnexpectedEOF
 15784  				}
 15785  				b := dAtA[iNdEx]
 15786  				iNdEx++
 15787  				msglen |= int(b&0x7F) << shift
 15788  				if b < 0x80 {
 15789  					break
 15790  				}
 15791  			}
 15792  			if msglen < 0 {
 15793  				return ErrInvalidLengthPb
 15794  			}
 15795  			postIndex := iNdEx + msglen
 15796  			if postIndex < 0 {
 15797  				return ErrInvalidLengthPb
 15798  			}
 15799  			if postIndex > l {
 15800  				return io.ErrUnexpectedEOF
 15801  			}
 15802  			if m.Pack == nil {
 15803  				m.Pack = &UidPack{}
 15804  			}
 15805  			if err := m.Pack.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 15806  				return err
 15807  			}
 15808  			iNdEx = postIndex
 15809  		case 2:
 15810  			if wireType != 2 {
 15811  				return fmt.Errorf("proto: wrong wireType = %d for field Postings", wireType)
 15812  			}
 15813  			var msglen int
 15814  			for shift := uint(0); ; shift += 7 {
 15815  				if shift >= 64 {
 15816  					return ErrIntOverflowPb
 15817  				}
 15818  				if iNdEx >= l {
 15819  					return io.ErrUnexpectedEOF
 15820  				}
 15821  				b := dAtA[iNdEx]
 15822  				iNdEx++
 15823  				msglen |= int(b&0x7F) << shift
 15824  				if b < 0x80 {
 15825  					break
 15826  				}
 15827  			}
 15828  			if msglen < 0 {
 15829  				return ErrInvalidLengthPb
 15830  			}
 15831  			postIndex := iNdEx + msglen
 15832  			if postIndex < 0 {
 15833  				return ErrInvalidLengthPb
 15834  			}
 15835  			if postIndex > l {
 15836  				return io.ErrUnexpectedEOF
 15837  			}
 15838  			m.Postings = append(m.Postings, &Posting{})
 15839  			if err := m.Postings[len(m.Postings)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 15840  				return err
 15841  			}
 15842  			iNdEx = postIndex
 15843  		case 3:
 15844  			if wireType != 0 {
 15845  				return fmt.Errorf("proto: wrong wireType = %d for field CommitTs", wireType)
 15846  			}
 15847  			m.CommitTs = 0
 15848  			for shift := uint(0); ; shift += 7 {
 15849  				if shift >= 64 {
 15850  					return ErrIntOverflowPb
 15851  				}
 15852  				if iNdEx >= l {
 15853  					return io.ErrUnexpectedEOF
 15854  				}
 15855  				b := dAtA[iNdEx]
 15856  				iNdEx++
 15857  				m.CommitTs |= uint64(b&0x7F) << shift
 15858  				if b < 0x80 {
 15859  					break
 15860  				}
 15861  			}
 15862  		case 4:
 15863  			if wireType == 0 {
 15864  				var v uint64
 15865  				for shift := uint(0); ; shift += 7 {
 15866  					if shift >= 64 {
 15867  						return ErrIntOverflowPb
 15868  					}
 15869  					if iNdEx >= l {
 15870  						return io.ErrUnexpectedEOF
 15871  					}
 15872  					b := dAtA[iNdEx]
 15873  					iNdEx++
 15874  					v |= uint64(b&0x7F) << shift
 15875  					if b < 0x80 {
 15876  						break
 15877  					}
 15878  				}
 15879  				m.Splits = append(m.Splits, v)
 15880  			} else if wireType == 2 {
 15881  				var packedLen int
 15882  				for shift := uint(0); ; shift += 7 {
 15883  					if shift >= 64 {
 15884  						return ErrIntOverflowPb
 15885  					}
 15886  					if iNdEx >= l {
 15887  						return io.ErrUnexpectedEOF
 15888  					}
 15889  					b := dAtA[iNdEx]
 15890  					iNdEx++
 15891  					packedLen |= int(b&0x7F) << shift
 15892  					if b < 0x80 {
 15893  						break
 15894  					}
 15895  				}
 15896  				if packedLen < 0 {
 15897  					return ErrInvalidLengthPb
 15898  				}
 15899  				postIndex := iNdEx + packedLen
 15900  				if postIndex < 0 {
 15901  					return ErrInvalidLengthPb
 15902  				}
 15903  				if postIndex > l {
 15904  					return io.ErrUnexpectedEOF
 15905  				}
 15906  				var elementCount int
 15907  				var count int
 15908  				for _, integer := range dAtA[iNdEx:postIndex] {
 15909  					if integer < 128 {
 15910  						count++
 15911  					}
 15912  				}
 15913  				elementCount = count
 15914  				if elementCount != 0 && len(m.Splits) == 0 {
 15915  					m.Splits = make([]uint64, 0, elementCount)
 15916  				}
 15917  				for iNdEx < postIndex {
 15918  					var v uint64
 15919  					for shift := uint(0); ; shift += 7 {
 15920  						if shift >= 64 {
 15921  							return ErrIntOverflowPb
 15922  						}
 15923  						if iNdEx >= l {
 15924  							return io.ErrUnexpectedEOF
 15925  						}
 15926  						b := dAtA[iNdEx]
 15927  						iNdEx++
 15928  						v |= uint64(b&0x7F) << shift
 15929  						if b < 0x80 {
 15930  							break
 15931  						}
 15932  					}
 15933  					m.Splits = append(m.Splits, v)
 15934  				}
 15935  			} else {
 15936  				return fmt.Errorf("proto: wrong wireType = %d for field Splits", wireType)
 15937  			}
 15938  		default:
 15939  			iNdEx = preIndex
 15940  			skippy, err := skipPb(dAtA[iNdEx:])
 15941  			if err != nil {
 15942  				return err
 15943  			}
 15944  			if skippy < 0 {
 15945  				return ErrInvalidLengthPb
 15946  			}
 15947  			if (iNdEx + skippy) < 0 {
 15948  				return ErrInvalidLengthPb
 15949  			}
 15950  			if (iNdEx + skippy) > l {
 15951  				return io.ErrUnexpectedEOF
 15952  			}
 15953  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 15954  			iNdEx += skippy
 15955  		}
 15956  	}
 15957  
 15958  	if iNdEx > l {
 15959  		return io.ErrUnexpectedEOF
 15960  	}
 15961  	return nil
 15962  }
 15963  func (m *FacetParam) Unmarshal(dAtA []byte) error {
 15964  	l := len(dAtA)
 15965  	iNdEx := 0
 15966  	for iNdEx < l {
 15967  		preIndex := iNdEx
 15968  		var wire uint64
 15969  		for shift := uint(0); ; shift += 7 {
 15970  			if shift >= 64 {
 15971  				return ErrIntOverflowPb
 15972  			}
 15973  			if iNdEx >= l {
 15974  				return io.ErrUnexpectedEOF
 15975  			}
 15976  			b := dAtA[iNdEx]
 15977  			iNdEx++
 15978  			wire |= uint64(b&0x7F) << shift
 15979  			if b < 0x80 {
 15980  				break
 15981  			}
 15982  		}
 15983  		fieldNum := int32(wire >> 3)
 15984  		wireType := int(wire & 0x7)
 15985  		if wireType == 4 {
 15986  			return fmt.Errorf("proto: FacetParam: wiretype end group for non-group")
 15987  		}
 15988  		if fieldNum <= 0 {
 15989  			return fmt.Errorf("proto: FacetParam: illegal tag %d (wire type %d)", fieldNum, wire)
 15990  		}
 15991  		switch fieldNum {
 15992  		case 1:
 15993  			if wireType != 2 {
 15994  				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
 15995  			}
 15996  			var stringLen uint64
 15997  			for shift := uint(0); ; shift += 7 {
 15998  				if shift >= 64 {
 15999  					return ErrIntOverflowPb
 16000  				}
 16001  				if iNdEx >= l {
 16002  					return io.ErrUnexpectedEOF
 16003  				}
 16004  				b := dAtA[iNdEx]
 16005  				iNdEx++
 16006  				stringLen |= uint64(b&0x7F) << shift
 16007  				if b < 0x80 {
 16008  					break
 16009  				}
 16010  			}
 16011  			intStringLen := int(stringLen)
 16012  			if intStringLen < 0 {
 16013  				return ErrInvalidLengthPb
 16014  			}
 16015  			postIndex := iNdEx + intStringLen
 16016  			if postIndex < 0 {
 16017  				return ErrInvalidLengthPb
 16018  			}
 16019  			if postIndex > l {
 16020  				return io.ErrUnexpectedEOF
 16021  			}
 16022  			m.Key = string(dAtA[iNdEx:postIndex])
 16023  			iNdEx = postIndex
 16024  		case 2:
 16025  			if wireType != 2 {
 16026  				return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType)
 16027  			}
 16028  			var stringLen uint64
 16029  			for shift := uint(0); ; shift += 7 {
 16030  				if shift >= 64 {
 16031  					return ErrIntOverflowPb
 16032  				}
 16033  				if iNdEx >= l {
 16034  					return io.ErrUnexpectedEOF
 16035  				}
 16036  				b := dAtA[iNdEx]
 16037  				iNdEx++
 16038  				stringLen |= uint64(b&0x7F) << shift
 16039  				if b < 0x80 {
 16040  					break
 16041  				}
 16042  			}
 16043  			intStringLen := int(stringLen)
 16044  			if intStringLen < 0 {
 16045  				return ErrInvalidLengthPb
 16046  			}
 16047  			postIndex := iNdEx + intStringLen
 16048  			if postIndex < 0 {
 16049  				return ErrInvalidLengthPb
 16050  			}
 16051  			if postIndex > l {
 16052  				return io.ErrUnexpectedEOF
 16053  			}
 16054  			m.Alias = string(dAtA[iNdEx:postIndex])
 16055  			iNdEx = postIndex
 16056  		default:
 16057  			iNdEx = preIndex
 16058  			skippy, err := skipPb(dAtA[iNdEx:])
 16059  			if err != nil {
 16060  				return err
 16061  			}
 16062  			if skippy < 0 {
 16063  				return ErrInvalidLengthPb
 16064  			}
 16065  			if (iNdEx + skippy) < 0 {
 16066  				return ErrInvalidLengthPb
 16067  			}
 16068  			if (iNdEx + skippy) > l {
 16069  				return io.ErrUnexpectedEOF
 16070  			}
 16071  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 16072  			iNdEx += skippy
 16073  		}
 16074  	}
 16075  
 16076  	if iNdEx > l {
 16077  		return io.ErrUnexpectedEOF
 16078  	}
 16079  	return nil
 16080  }
 16081  func (m *FacetParams) Unmarshal(dAtA []byte) error {
 16082  	l := len(dAtA)
 16083  	iNdEx := 0
 16084  	for iNdEx < l {
 16085  		preIndex := iNdEx
 16086  		var wire uint64
 16087  		for shift := uint(0); ; shift += 7 {
 16088  			if shift >= 64 {
 16089  				return ErrIntOverflowPb
 16090  			}
 16091  			if iNdEx >= l {
 16092  				return io.ErrUnexpectedEOF
 16093  			}
 16094  			b := dAtA[iNdEx]
 16095  			iNdEx++
 16096  			wire |= uint64(b&0x7F) << shift
 16097  			if b < 0x80 {
 16098  				break
 16099  			}
 16100  		}
 16101  		fieldNum := int32(wire >> 3)
 16102  		wireType := int(wire & 0x7)
 16103  		if wireType == 4 {
 16104  			return fmt.Errorf("proto: FacetParams: wiretype end group for non-group")
 16105  		}
 16106  		if fieldNum <= 0 {
 16107  			return fmt.Errorf("proto: FacetParams: illegal tag %d (wire type %d)", fieldNum, wire)
 16108  		}
 16109  		switch fieldNum {
 16110  		case 1:
 16111  			if wireType != 0 {
 16112  				return fmt.Errorf("proto: wrong wireType = %d for field AllKeys", wireType)
 16113  			}
 16114  			var v int
 16115  			for shift := uint(0); ; shift += 7 {
 16116  				if shift >= 64 {
 16117  					return ErrIntOverflowPb
 16118  				}
 16119  				if iNdEx >= l {
 16120  					return io.ErrUnexpectedEOF
 16121  				}
 16122  				b := dAtA[iNdEx]
 16123  				iNdEx++
 16124  				v |= int(b&0x7F) << shift
 16125  				if b < 0x80 {
 16126  					break
 16127  				}
 16128  			}
 16129  			m.AllKeys = bool(v != 0)
 16130  		case 2:
 16131  			if wireType != 2 {
 16132  				return fmt.Errorf("proto: wrong wireType = %d for field Param", wireType)
 16133  			}
 16134  			var msglen int
 16135  			for shift := uint(0); ; shift += 7 {
 16136  				if shift >= 64 {
 16137  					return ErrIntOverflowPb
 16138  				}
 16139  				if iNdEx >= l {
 16140  					return io.ErrUnexpectedEOF
 16141  				}
 16142  				b := dAtA[iNdEx]
 16143  				iNdEx++
 16144  				msglen |= int(b&0x7F) << shift
 16145  				if b < 0x80 {
 16146  					break
 16147  				}
 16148  			}
 16149  			if msglen < 0 {
 16150  				return ErrInvalidLengthPb
 16151  			}
 16152  			postIndex := iNdEx + msglen
 16153  			if postIndex < 0 {
 16154  				return ErrInvalidLengthPb
 16155  			}
 16156  			if postIndex > l {
 16157  				return io.ErrUnexpectedEOF
 16158  			}
 16159  			m.Param = append(m.Param, &FacetParam{})
 16160  			if err := m.Param[len(m.Param)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 16161  				return err
 16162  			}
 16163  			iNdEx = postIndex
 16164  		default:
 16165  			iNdEx = preIndex
 16166  			skippy, err := skipPb(dAtA[iNdEx:])
 16167  			if err != nil {
 16168  				return err
 16169  			}
 16170  			if skippy < 0 {
 16171  				return ErrInvalidLengthPb
 16172  			}
 16173  			if (iNdEx + skippy) < 0 {
 16174  				return ErrInvalidLengthPb
 16175  			}
 16176  			if (iNdEx + skippy) > l {
 16177  				return io.ErrUnexpectedEOF
 16178  			}
 16179  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 16180  			iNdEx += skippy
 16181  		}
 16182  	}
 16183  
 16184  	if iNdEx > l {
 16185  		return io.ErrUnexpectedEOF
 16186  	}
 16187  	return nil
 16188  }
 16189  func (m *Facets) Unmarshal(dAtA []byte) error {
 16190  	l := len(dAtA)
 16191  	iNdEx := 0
 16192  	for iNdEx < l {
 16193  		preIndex := iNdEx
 16194  		var wire uint64
 16195  		for shift := uint(0); ; shift += 7 {
 16196  			if shift >= 64 {
 16197  				return ErrIntOverflowPb
 16198  			}
 16199  			if iNdEx >= l {
 16200  				return io.ErrUnexpectedEOF
 16201  			}
 16202  			b := dAtA[iNdEx]
 16203  			iNdEx++
 16204  			wire |= uint64(b&0x7F) << shift
 16205  			if b < 0x80 {
 16206  				break
 16207  			}
 16208  		}
 16209  		fieldNum := int32(wire >> 3)
 16210  		wireType := int(wire & 0x7)
 16211  		if wireType == 4 {
 16212  			return fmt.Errorf("proto: Facets: wiretype end group for non-group")
 16213  		}
 16214  		if fieldNum <= 0 {
 16215  			return fmt.Errorf("proto: Facets: illegal tag %d (wire type %d)", fieldNum, wire)
 16216  		}
 16217  		switch fieldNum {
 16218  		case 1:
 16219  			if wireType != 2 {
 16220  				return fmt.Errorf("proto: wrong wireType = %d for field Facets", wireType)
 16221  			}
 16222  			var msglen int
 16223  			for shift := uint(0); ; shift += 7 {
 16224  				if shift >= 64 {
 16225  					return ErrIntOverflowPb
 16226  				}
 16227  				if iNdEx >= l {
 16228  					return io.ErrUnexpectedEOF
 16229  				}
 16230  				b := dAtA[iNdEx]
 16231  				iNdEx++
 16232  				msglen |= int(b&0x7F) << shift
 16233  				if b < 0x80 {
 16234  					break
 16235  				}
 16236  			}
 16237  			if msglen < 0 {
 16238  				return ErrInvalidLengthPb
 16239  			}
 16240  			postIndex := iNdEx + msglen
 16241  			if postIndex < 0 {
 16242  				return ErrInvalidLengthPb
 16243  			}
 16244  			if postIndex > l {
 16245  				return io.ErrUnexpectedEOF
 16246  			}
 16247  			m.Facets = append(m.Facets, &api.Facet{})
 16248  			if err := m.Facets[len(m.Facets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 16249  				return err
 16250  			}
 16251  			iNdEx = postIndex
 16252  		default:
 16253  			iNdEx = preIndex
 16254  			skippy, err := skipPb(dAtA[iNdEx:])
 16255  			if err != nil {
 16256  				return err
 16257  			}
 16258  			if skippy < 0 {
 16259  				return ErrInvalidLengthPb
 16260  			}
 16261  			if (iNdEx + skippy) < 0 {
 16262  				return ErrInvalidLengthPb
 16263  			}
 16264  			if (iNdEx + skippy) > l {
 16265  				return io.ErrUnexpectedEOF
 16266  			}
 16267  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 16268  			iNdEx += skippy
 16269  		}
 16270  	}
 16271  
 16272  	if iNdEx > l {
 16273  		return io.ErrUnexpectedEOF
 16274  	}
 16275  	return nil
 16276  }
 16277  func (m *FacetsList) Unmarshal(dAtA []byte) error {
 16278  	l := len(dAtA)
 16279  	iNdEx := 0
 16280  	for iNdEx < l {
 16281  		preIndex := iNdEx
 16282  		var wire uint64
 16283  		for shift := uint(0); ; shift += 7 {
 16284  			if shift >= 64 {
 16285  				return ErrIntOverflowPb
 16286  			}
 16287  			if iNdEx >= l {
 16288  				return io.ErrUnexpectedEOF
 16289  			}
 16290  			b := dAtA[iNdEx]
 16291  			iNdEx++
 16292  			wire |= uint64(b&0x7F) << shift
 16293  			if b < 0x80 {
 16294  				break
 16295  			}
 16296  		}
 16297  		fieldNum := int32(wire >> 3)
 16298  		wireType := int(wire & 0x7)
 16299  		if wireType == 4 {
 16300  			return fmt.Errorf("proto: FacetsList: wiretype end group for non-group")
 16301  		}
 16302  		if fieldNum <= 0 {
 16303  			return fmt.Errorf("proto: FacetsList: illegal tag %d (wire type %d)", fieldNum, wire)
 16304  		}
 16305  		switch fieldNum {
 16306  		case 1:
 16307  			if wireType != 2 {
 16308  				return fmt.Errorf("proto: wrong wireType = %d for field FacetsList", wireType)
 16309  			}
 16310  			var msglen int
 16311  			for shift := uint(0); ; shift += 7 {
 16312  				if shift >= 64 {
 16313  					return ErrIntOverflowPb
 16314  				}
 16315  				if iNdEx >= l {
 16316  					return io.ErrUnexpectedEOF
 16317  				}
 16318  				b := dAtA[iNdEx]
 16319  				iNdEx++
 16320  				msglen |= int(b&0x7F) << shift
 16321  				if b < 0x80 {
 16322  					break
 16323  				}
 16324  			}
 16325  			if msglen < 0 {
 16326  				return ErrInvalidLengthPb
 16327  			}
 16328  			postIndex := iNdEx + msglen
 16329  			if postIndex < 0 {
 16330  				return ErrInvalidLengthPb
 16331  			}
 16332  			if postIndex > l {
 16333  				return io.ErrUnexpectedEOF
 16334  			}
 16335  			m.FacetsList = append(m.FacetsList, &Facets{})
 16336  			if err := m.FacetsList[len(m.FacetsList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 16337  				return err
 16338  			}
 16339  			iNdEx = postIndex
 16340  		default:
 16341  			iNdEx = preIndex
 16342  			skippy, err := skipPb(dAtA[iNdEx:])
 16343  			if err != nil {
 16344  				return err
 16345  			}
 16346  			if skippy < 0 {
 16347  				return ErrInvalidLengthPb
 16348  			}
 16349  			if (iNdEx + skippy) < 0 {
 16350  				return ErrInvalidLengthPb
 16351  			}
 16352  			if (iNdEx + skippy) > l {
 16353  				return io.ErrUnexpectedEOF
 16354  			}
 16355  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 16356  			iNdEx += skippy
 16357  		}
 16358  	}
 16359  
 16360  	if iNdEx > l {
 16361  		return io.ErrUnexpectedEOF
 16362  	}
 16363  	return nil
 16364  }
 16365  func (m *Function) Unmarshal(dAtA []byte) error {
 16366  	l := len(dAtA)
 16367  	iNdEx := 0
 16368  	for iNdEx < l {
 16369  		preIndex := iNdEx
 16370  		var wire uint64
 16371  		for shift := uint(0); ; shift += 7 {
 16372  			if shift >= 64 {
 16373  				return ErrIntOverflowPb
 16374  			}
 16375  			if iNdEx >= l {
 16376  				return io.ErrUnexpectedEOF
 16377  			}
 16378  			b := dAtA[iNdEx]
 16379  			iNdEx++
 16380  			wire |= uint64(b&0x7F) << shift
 16381  			if b < 0x80 {
 16382  				break
 16383  			}
 16384  		}
 16385  		fieldNum := int32(wire >> 3)
 16386  		wireType := int(wire & 0x7)
 16387  		if wireType == 4 {
 16388  			return fmt.Errorf("proto: Function: wiretype end group for non-group")
 16389  		}
 16390  		if fieldNum <= 0 {
 16391  			return fmt.Errorf("proto: Function: illegal tag %d (wire type %d)", fieldNum, wire)
 16392  		}
 16393  		switch fieldNum {
 16394  		case 1:
 16395  			if wireType != 2 {
 16396  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
 16397  			}
 16398  			var stringLen uint64
 16399  			for shift := uint(0); ; shift += 7 {
 16400  				if shift >= 64 {
 16401  					return ErrIntOverflowPb
 16402  				}
 16403  				if iNdEx >= l {
 16404  					return io.ErrUnexpectedEOF
 16405  				}
 16406  				b := dAtA[iNdEx]
 16407  				iNdEx++
 16408  				stringLen |= uint64(b&0x7F) << shift
 16409  				if b < 0x80 {
 16410  					break
 16411  				}
 16412  			}
 16413  			intStringLen := int(stringLen)
 16414  			if intStringLen < 0 {
 16415  				return ErrInvalidLengthPb
 16416  			}
 16417  			postIndex := iNdEx + intStringLen
 16418  			if postIndex < 0 {
 16419  				return ErrInvalidLengthPb
 16420  			}
 16421  			if postIndex > l {
 16422  				return io.ErrUnexpectedEOF
 16423  			}
 16424  			m.Name = string(dAtA[iNdEx:postIndex])
 16425  			iNdEx = postIndex
 16426  		case 2:
 16427  			if wireType != 2 {
 16428  				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
 16429  			}
 16430  			var stringLen uint64
 16431  			for shift := uint(0); ; shift += 7 {
 16432  				if shift >= 64 {
 16433  					return ErrIntOverflowPb
 16434  				}
 16435  				if iNdEx >= l {
 16436  					return io.ErrUnexpectedEOF
 16437  				}
 16438  				b := dAtA[iNdEx]
 16439  				iNdEx++
 16440  				stringLen |= uint64(b&0x7F) << shift
 16441  				if b < 0x80 {
 16442  					break
 16443  				}
 16444  			}
 16445  			intStringLen := int(stringLen)
 16446  			if intStringLen < 0 {
 16447  				return ErrInvalidLengthPb
 16448  			}
 16449  			postIndex := iNdEx + intStringLen
 16450  			if postIndex < 0 {
 16451  				return ErrInvalidLengthPb
 16452  			}
 16453  			if postIndex > l {
 16454  				return io.ErrUnexpectedEOF
 16455  			}
 16456  			m.Key = string(dAtA[iNdEx:postIndex])
 16457  			iNdEx = postIndex
 16458  		case 3:
 16459  			if wireType != 2 {
 16460  				return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType)
 16461  			}
 16462  			var stringLen uint64
 16463  			for shift := uint(0); ; shift += 7 {
 16464  				if shift >= 64 {
 16465  					return ErrIntOverflowPb
 16466  				}
 16467  				if iNdEx >= l {
 16468  					return io.ErrUnexpectedEOF
 16469  				}
 16470  				b := dAtA[iNdEx]
 16471  				iNdEx++
 16472  				stringLen |= uint64(b&0x7F) << shift
 16473  				if b < 0x80 {
 16474  					break
 16475  				}
 16476  			}
 16477  			intStringLen := int(stringLen)
 16478  			if intStringLen < 0 {
 16479  				return ErrInvalidLengthPb
 16480  			}
 16481  			postIndex := iNdEx + intStringLen
 16482  			if postIndex < 0 {
 16483  				return ErrInvalidLengthPb
 16484  			}
 16485  			if postIndex > l {
 16486  				return io.ErrUnexpectedEOF
 16487  			}
 16488  			m.Args = append(m.Args, string(dAtA[iNdEx:postIndex]))
 16489  			iNdEx = postIndex
 16490  		default:
 16491  			iNdEx = preIndex
 16492  			skippy, err := skipPb(dAtA[iNdEx:])
 16493  			if err != nil {
 16494  				return err
 16495  			}
 16496  			if skippy < 0 {
 16497  				return ErrInvalidLengthPb
 16498  			}
 16499  			if (iNdEx + skippy) < 0 {
 16500  				return ErrInvalidLengthPb
 16501  			}
 16502  			if (iNdEx + skippy) > l {
 16503  				return io.ErrUnexpectedEOF
 16504  			}
 16505  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 16506  			iNdEx += skippy
 16507  		}
 16508  	}
 16509  
 16510  	if iNdEx > l {
 16511  		return io.ErrUnexpectedEOF
 16512  	}
 16513  	return nil
 16514  }
 16515  func (m *FilterTree) Unmarshal(dAtA []byte) error {
 16516  	l := len(dAtA)
 16517  	iNdEx := 0
 16518  	for iNdEx < l {
 16519  		preIndex := iNdEx
 16520  		var wire uint64
 16521  		for shift := uint(0); ; shift += 7 {
 16522  			if shift >= 64 {
 16523  				return ErrIntOverflowPb
 16524  			}
 16525  			if iNdEx >= l {
 16526  				return io.ErrUnexpectedEOF
 16527  			}
 16528  			b := dAtA[iNdEx]
 16529  			iNdEx++
 16530  			wire |= uint64(b&0x7F) << shift
 16531  			if b < 0x80 {
 16532  				break
 16533  			}
 16534  		}
 16535  		fieldNum := int32(wire >> 3)
 16536  		wireType := int(wire & 0x7)
 16537  		if wireType == 4 {
 16538  			return fmt.Errorf("proto: FilterTree: wiretype end group for non-group")
 16539  		}
 16540  		if fieldNum <= 0 {
 16541  			return fmt.Errorf("proto: FilterTree: illegal tag %d (wire type %d)", fieldNum, wire)
 16542  		}
 16543  		switch fieldNum {
 16544  		case 1:
 16545  			if wireType != 2 {
 16546  				return fmt.Errorf("proto: wrong wireType = %d for field Op", wireType)
 16547  			}
 16548  			var stringLen uint64
 16549  			for shift := uint(0); ; shift += 7 {
 16550  				if shift >= 64 {
 16551  					return ErrIntOverflowPb
 16552  				}
 16553  				if iNdEx >= l {
 16554  					return io.ErrUnexpectedEOF
 16555  				}
 16556  				b := dAtA[iNdEx]
 16557  				iNdEx++
 16558  				stringLen |= uint64(b&0x7F) << shift
 16559  				if b < 0x80 {
 16560  					break
 16561  				}
 16562  			}
 16563  			intStringLen := int(stringLen)
 16564  			if intStringLen < 0 {
 16565  				return ErrInvalidLengthPb
 16566  			}
 16567  			postIndex := iNdEx + intStringLen
 16568  			if postIndex < 0 {
 16569  				return ErrInvalidLengthPb
 16570  			}
 16571  			if postIndex > l {
 16572  				return io.ErrUnexpectedEOF
 16573  			}
 16574  			m.Op = string(dAtA[iNdEx:postIndex])
 16575  			iNdEx = postIndex
 16576  		case 2:
 16577  			if wireType != 2 {
 16578  				return fmt.Errorf("proto: wrong wireType = %d for field Children", wireType)
 16579  			}
 16580  			var msglen int
 16581  			for shift := uint(0); ; shift += 7 {
 16582  				if shift >= 64 {
 16583  					return ErrIntOverflowPb
 16584  				}
 16585  				if iNdEx >= l {
 16586  					return io.ErrUnexpectedEOF
 16587  				}
 16588  				b := dAtA[iNdEx]
 16589  				iNdEx++
 16590  				msglen |= int(b&0x7F) << shift
 16591  				if b < 0x80 {
 16592  					break
 16593  				}
 16594  			}
 16595  			if msglen < 0 {
 16596  				return ErrInvalidLengthPb
 16597  			}
 16598  			postIndex := iNdEx + msglen
 16599  			if postIndex < 0 {
 16600  				return ErrInvalidLengthPb
 16601  			}
 16602  			if postIndex > l {
 16603  				return io.ErrUnexpectedEOF
 16604  			}
 16605  			m.Children = append(m.Children, &FilterTree{})
 16606  			if err := m.Children[len(m.Children)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 16607  				return err
 16608  			}
 16609  			iNdEx = postIndex
 16610  		case 3:
 16611  			if wireType != 2 {
 16612  				return fmt.Errorf("proto: wrong wireType = %d for field Func", wireType)
 16613  			}
 16614  			var msglen int
 16615  			for shift := uint(0); ; shift += 7 {
 16616  				if shift >= 64 {
 16617  					return ErrIntOverflowPb
 16618  				}
 16619  				if iNdEx >= l {
 16620  					return io.ErrUnexpectedEOF
 16621  				}
 16622  				b := dAtA[iNdEx]
 16623  				iNdEx++
 16624  				msglen |= int(b&0x7F) << shift
 16625  				if b < 0x80 {
 16626  					break
 16627  				}
 16628  			}
 16629  			if msglen < 0 {
 16630  				return ErrInvalidLengthPb
 16631  			}
 16632  			postIndex := iNdEx + msglen
 16633  			if postIndex < 0 {
 16634  				return ErrInvalidLengthPb
 16635  			}
 16636  			if postIndex > l {
 16637  				return io.ErrUnexpectedEOF
 16638  			}
 16639  			if m.Func == nil {
 16640  				m.Func = &Function{}
 16641  			}
 16642  			if err := m.Func.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 16643  				return err
 16644  			}
 16645  			iNdEx = postIndex
 16646  		default:
 16647  			iNdEx = preIndex
 16648  			skippy, err := skipPb(dAtA[iNdEx:])
 16649  			if err != nil {
 16650  				return err
 16651  			}
 16652  			if skippy < 0 {
 16653  				return ErrInvalidLengthPb
 16654  			}
 16655  			if (iNdEx + skippy) < 0 {
 16656  				return ErrInvalidLengthPb
 16657  			}
 16658  			if (iNdEx + skippy) > l {
 16659  				return io.ErrUnexpectedEOF
 16660  			}
 16661  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 16662  			iNdEx += skippy
 16663  		}
 16664  	}
 16665  
 16666  	if iNdEx > l {
 16667  		return io.ErrUnexpectedEOF
 16668  	}
 16669  	return nil
 16670  }
 16671  func (m *SchemaRequest) Unmarshal(dAtA []byte) error {
 16672  	l := len(dAtA)
 16673  	iNdEx := 0
 16674  	for iNdEx < l {
 16675  		preIndex := iNdEx
 16676  		var wire uint64
 16677  		for shift := uint(0); ; shift += 7 {
 16678  			if shift >= 64 {
 16679  				return ErrIntOverflowPb
 16680  			}
 16681  			if iNdEx >= l {
 16682  				return io.ErrUnexpectedEOF
 16683  			}
 16684  			b := dAtA[iNdEx]
 16685  			iNdEx++
 16686  			wire |= uint64(b&0x7F) << shift
 16687  			if b < 0x80 {
 16688  				break
 16689  			}
 16690  		}
 16691  		fieldNum := int32(wire >> 3)
 16692  		wireType := int(wire & 0x7)
 16693  		if wireType == 4 {
 16694  			return fmt.Errorf("proto: SchemaRequest: wiretype end group for non-group")
 16695  		}
 16696  		if fieldNum <= 0 {
 16697  			return fmt.Errorf("proto: SchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 16698  		}
 16699  		switch fieldNum {
 16700  		case 1:
 16701  			if wireType != 0 {
 16702  				return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
 16703  			}
 16704  			m.GroupId = 0
 16705  			for shift := uint(0); ; shift += 7 {
 16706  				if shift >= 64 {
 16707  					return ErrIntOverflowPb
 16708  				}
 16709  				if iNdEx >= l {
 16710  					return io.ErrUnexpectedEOF
 16711  				}
 16712  				b := dAtA[iNdEx]
 16713  				iNdEx++
 16714  				m.GroupId |= uint32(b&0x7F) << shift
 16715  				if b < 0x80 {
 16716  					break
 16717  				}
 16718  			}
 16719  		case 2:
 16720  			if wireType != 2 {
 16721  				return fmt.Errorf("proto: wrong wireType = %d for field Predicates", wireType)
 16722  			}
 16723  			var stringLen uint64
 16724  			for shift := uint(0); ; shift += 7 {
 16725  				if shift >= 64 {
 16726  					return ErrIntOverflowPb
 16727  				}
 16728  				if iNdEx >= l {
 16729  					return io.ErrUnexpectedEOF
 16730  				}
 16731  				b := dAtA[iNdEx]
 16732  				iNdEx++
 16733  				stringLen |= uint64(b&0x7F) << shift
 16734  				if b < 0x80 {
 16735  					break
 16736  				}
 16737  			}
 16738  			intStringLen := int(stringLen)
 16739  			if intStringLen < 0 {
 16740  				return ErrInvalidLengthPb
 16741  			}
 16742  			postIndex := iNdEx + intStringLen
 16743  			if postIndex < 0 {
 16744  				return ErrInvalidLengthPb
 16745  			}
 16746  			if postIndex > l {
 16747  				return io.ErrUnexpectedEOF
 16748  			}
 16749  			m.Predicates = append(m.Predicates, string(dAtA[iNdEx:postIndex]))
 16750  			iNdEx = postIndex
 16751  		case 3:
 16752  			if wireType != 2 {
 16753  				return fmt.Errorf("proto: wrong wireType = %d for field Fields", wireType)
 16754  			}
 16755  			var stringLen uint64
 16756  			for shift := uint(0); ; shift += 7 {
 16757  				if shift >= 64 {
 16758  					return ErrIntOverflowPb
 16759  				}
 16760  				if iNdEx >= l {
 16761  					return io.ErrUnexpectedEOF
 16762  				}
 16763  				b := dAtA[iNdEx]
 16764  				iNdEx++
 16765  				stringLen |= uint64(b&0x7F) << shift
 16766  				if b < 0x80 {
 16767  					break
 16768  				}
 16769  			}
 16770  			intStringLen := int(stringLen)
 16771  			if intStringLen < 0 {
 16772  				return ErrInvalidLengthPb
 16773  			}
 16774  			postIndex := iNdEx + intStringLen
 16775  			if postIndex < 0 {
 16776  				return ErrInvalidLengthPb
 16777  			}
 16778  			if postIndex > l {
 16779  				return io.ErrUnexpectedEOF
 16780  			}
 16781  			m.Fields = append(m.Fields, string(dAtA[iNdEx:postIndex]))
 16782  			iNdEx = postIndex
 16783  		case 4:
 16784  			if wireType != 2 {
 16785  				return fmt.Errorf("proto: wrong wireType = %d for field Types", wireType)
 16786  			}
 16787  			var stringLen uint64
 16788  			for shift := uint(0); ; shift += 7 {
 16789  				if shift >= 64 {
 16790  					return ErrIntOverflowPb
 16791  				}
 16792  				if iNdEx >= l {
 16793  					return io.ErrUnexpectedEOF
 16794  				}
 16795  				b := dAtA[iNdEx]
 16796  				iNdEx++
 16797  				stringLen |= uint64(b&0x7F) << shift
 16798  				if b < 0x80 {
 16799  					break
 16800  				}
 16801  			}
 16802  			intStringLen := int(stringLen)
 16803  			if intStringLen < 0 {
 16804  				return ErrInvalidLengthPb
 16805  			}
 16806  			postIndex := iNdEx + intStringLen
 16807  			if postIndex < 0 {
 16808  				return ErrInvalidLengthPb
 16809  			}
 16810  			if postIndex > l {
 16811  				return io.ErrUnexpectedEOF
 16812  			}
 16813  			m.Types = append(m.Types, string(dAtA[iNdEx:postIndex]))
 16814  			iNdEx = postIndex
 16815  		default:
 16816  			iNdEx = preIndex
 16817  			skippy, err := skipPb(dAtA[iNdEx:])
 16818  			if err != nil {
 16819  				return err
 16820  			}
 16821  			if skippy < 0 {
 16822  				return ErrInvalidLengthPb
 16823  			}
 16824  			if (iNdEx + skippy) < 0 {
 16825  				return ErrInvalidLengthPb
 16826  			}
 16827  			if (iNdEx + skippy) > l {
 16828  				return io.ErrUnexpectedEOF
 16829  			}
 16830  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 16831  			iNdEx += skippy
 16832  		}
 16833  	}
 16834  
 16835  	if iNdEx > l {
 16836  		return io.ErrUnexpectedEOF
 16837  	}
 16838  	return nil
 16839  }
 16840  func (m *SchemaNode) Unmarshal(dAtA []byte) error {
 16841  	l := len(dAtA)
 16842  	iNdEx := 0
 16843  	for iNdEx < l {
 16844  		preIndex := iNdEx
 16845  		var wire uint64
 16846  		for shift := uint(0); ; shift += 7 {
 16847  			if shift >= 64 {
 16848  				return ErrIntOverflowPb
 16849  			}
 16850  			if iNdEx >= l {
 16851  				return io.ErrUnexpectedEOF
 16852  			}
 16853  			b := dAtA[iNdEx]
 16854  			iNdEx++
 16855  			wire |= uint64(b&0x7F) << shift
 16856  			if b < 0x80 {
 16857  				break
 16858  			}
 16859  		}
 16860  		fieldNum := int32(wire >> 3)
 16861  		wireType := int(wire & 0x7)
 16862  		if wireType == 4 {
 16863  			return fmt.Errorf("proto: SchemaNode: wiretype end group for non-group")
 16864  		}
 16865  		if fieldNum <= 0 {
 16866  			return fmt.Errorf("proto: SchemaNode: illegal tag %d (wire type %d)", fieldNum, wire)
 16867  		}
 16868  		switch fieldNum {
 16869  		case 1:
 16870  			if wireType != 2 {
 16871  				return fmt.Errorf("proto: wrong wireType = %d for field Predicate", wireType)
 16872  			}
 16873  			var stringLen uint64
 16874  			for shift := uint(0); ; shift += 7 {
 16875  				if shift >= 64 {
 16876  					return ErrIntOverflowPb
 16877  				}
 16878  				if iNdEx >= l {
 16879  					return io.ErrUnexpectedEOF
 16880  				}
 16881  				b := dAtA[iNdEx]
 16882  				iNdEx++
 16883  				stringLen |= uint64(b&0x7F) << shift
 16884  				if b < 0x80 {
 16885  					break
 16886  				}
 16887  			}
 16888  			intStringLen := int(stringLen)
 16889  			if intStringLen < 0 {
 16890  				return ErrInvalidLengthPb
 16891  			}
 16892  			postIndex := iNdEx + intStringLen
 16893  			if postIndex < 0 {
 16894  				return ErrInvalidLengthPb
 16895  			}
 16896  			if postIndex > l {
 16897  				return io.ErrUnexpectedEOF
 16898  			}
 16899  			m.Predicate = string(dAtA[iNdEx:postIndex])
 16900  			iNdEx = postIndex
 16901  		case 2:
 16902  			if wireType != 2 {
 16903  				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
 16904  			}
 16905  			var stringLen uint64
 16906  			for shift := uint(0); ; shift += 7 {
 16907  				if shift >= 64 {
 16908  					return ErrIntOverflowPb
 16909  				}
 16910  				if iNdEx >= l {
 16911  					return io.ErrUnexpectedEOF
 16912  				}
 16913  				b := dAtA[iNdEx]
 16914  				iNdEx++
 16915  				stringLen |= uint64(b&0x7F) << shift
 16916  				if b < 0x80 {
 16917  					break
 16918  				}
 16919  			}
 16920  			intStringLen := int(stringLen)
 16921  			if intStringLen < 0 {
 16922  				return ErrInvalidLengthPb
 16923  			}
 16924  			postIndex := iNdEx + intStringLen
 16925  			if postIndex < 0 {
 16926  				return ErrInvalidLengthPb
 16927  			}
 16928  			if postIndex > l {
 16929  				return io.ErrUnexpectedEOF
 16930  			}
 16931  			m.Type = string(dAtA[iNdEx:postIndex])
 16932  			iNdEx = postIndex
 16933  		case 3:
 16934  			if wireType != 0 {
 16935  				return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType)
 16936  			}
 16937  			var v int
 16938  			for shift := uint(0); ; shift += 7 {
 16939  				if shift >= 64 {
 16940  					return ErrIntOverflowPb
 16941  				}
 16942  				if iNdEx >= l {
 16943  					return io.ErrUnexpectedEOF
 16944  				}
 16945  				b := dAtA[iNdEx]
 16946  				iNdEx++
 16947  				v |= int(b&0x7F) << shift
 16948  				if b < 0x80 {
 16949  					break
 16950  				}
 16951  			}
 16952  			m.Index = bool(v != 0)
 16953  		case 4:
 16954  			if wireType != 2 {
 16955  				return fmt.Errorf("proto: wrong wireType = %d for field Tokenizer", wireType)
 16956  			}
 16957  			var stringLen uint64
 16958  			for shift := uint(0); ; shift += 7 {
 16959  				if shift >= 64 {
 16960  					return ErrIntOverflowPb
 16961  				}
 16962  				if iNdEx >= l {
 16963  					return io.ErrUnexpectedEOF
 16964  				}
 16965  				b := dAtA[iNdEx]
 16966  				iNdEx++
 16967  				stringLen |= uint64(b&0x7F) << shift
 16968  				if b < 0x80 {
 16969  					break
 16970  				}
 16971  			}
 16972  			intStringLen := int(stringLen)
 16973  			if intStringLen < 0 {
 16974  				return ErrInvalidLengthPb
 16975  			}
 16976  			postIndex := iNdEx + intStringLen
 16977  			if postIndex < 0 {
 16978  				return ErrInvalidLengthPb
 16979  			}
 16980  			if postIndex > l {
 16981  				return io.ErrUnexpectedEOF
 16982  			}
 16983  			m.Tokenizer = append(m.Tokenizer, string(dAtA[iNdEx:postIndex]))
 16984  			iNdEx = postIndex
 16985  		case 5:
 16986  			if wireType != 0 {
 16987  				return fmt.Errorf("proto: wrong wireType = %d for field Reverse", wireType)
 16988  			}
 16989  			var v int
 16990  			for shift := uint(0); ; shift += 7 {
 16991  				if shift >= 64 {
 16992  					return ErrIntOverflowPb
 16993  				}
 16994  				if iNdEx >= l {
 16995  					return io.ErrUnexpectedEOF
 16996  				}
 16997  				b := dAtA[iNdEx]
 16998  				iNdEx++
 16999  				v |= int(b&0x7F) << shift
 17000  				if b < 0x80 {
 17001  					break
 17002  				}
 17003  			}
 17004  			m.Reverse = bool(v != 0)
 17005  		case 6:
 17006  			if wireType != 0 {
 17007  				return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType)
 17008  			}
 17009  			var v int
 17010  			for shift := uint(0); ; shift += 7 {
 17011  				if shift >= 64 {
 17012  					return ErrIntOverflowPb
 17013  				}
 17014  				if iNdEx >= l {
 17015  					return io.ErrUnexpectedEOF
 17016  				}
 17017  				b := dAtA[iNdEx]
 17018  				iNdEx++
 17019  				v |= int(b&0x7F) << shift
 17020  				if b < 0x80 {
 17021  					break
 17022  				}
 17023  			}
 17024  			m.Count = bool(v != 0)
 17025  		case 7:
 17026  			if wireType != 0 {
 17027  				return fmt.Errorf("proto: wrong wireType = %d for field List", wireType)
 17028  			}
 17029  			var v int
 17030  			for shift := uint(0); ; shift += 7 {
 17031  				if shift >= 64 {
 17032  					return ErrIntOverflowPb
 17033  				}
 17034  				if iNdEx >= l {
 17035  					return io.ErrUnexpectedEOF
 17036  				}
 17037  				b := dAtA[iNdEx]
 17038  				iNdEx++
 17039  				v |= int(b&0x7F) << shift
 17040  				if b < 0x80 {
 17041  					break
 17042  				}
 17043  			}
 17044  			m.List = bool(v != 0)
 17045  		case 8:
 17046  			if wireType != 0 {
 17047  				return fmt.Errorf("proto: wrong wireType = %d for field Upsert", wireType)
 17048  			}
 17049  			var v int
 17050  			for shift := uint(0); ; shift += 7 {
 17051  				if shift >= 64 {
 17052  					return ErrIntOverflowPb
 17053  				}
 17054  				if iNdEx >= l {
 17055  					return io.ErrUnexpectedEOF
 17056  				}
 17057  				b := dAtA[iNdEx]
 17058  				iNdEx++
 17059  				v |= int(b&0x7F) << shift
 17060  				if b < 0x80 {
 17061  					break
 17062  				}
 17063  			}
 17064  			m.Upsert = bool(v != 0)
 17065  		case 9:
 17066  			if wireType != 0 {
 17067  				return fmt.Errorf("proto: wrong wireType = %d for field Lang", wireType)
 17068  			}
 17069  			var v int
 17070  			for shift := uint(0); ; shift += 7 {
 17071  				if shift >= 64 {
 17072  					return ErrIntOverflowPb
 17073  				}
 17074  				if iNdEx >= l {
 17075  					return io.ErrUnexpectedEOF
 17076  				}
 17077  				b := dAtA[iNdEx]
 17078  				iNdEx++
 17079  				v |= int(b&0x7F) << shift
 17080  				if b < 0x80 {
 17081  					break
 17082  				}
 17083  			}
 17084  			m.Lang = bool(v != 0)
 17085  		default:
 17086  			iNdEx = preIndex
 17087  			skippy, err := skipPb(dAtA[iNdEx:])
 17088  			if err != nil {
 17089  				return err
 17090  			}
 17091  			if skippy < 0 {
 17092  				return ErrInvalidLengthPb
 17093  			}
 17094  			if (iNdEx + skippy) < 0 {
 17095  				return ErrInvalidLengthPb
 17096  			}
 17097  			if (iNdEx + skippy) > l {
 17098  				return io.ErrUnexpectedEOF
 17099  			}
 17100  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 17101  			iNdEx += skippy
 17102  		}
 17103  	}
 17104  
 17105  	if iNdEx > l {
 17106  		return io.ErrUnexpectedEOF
 17107  	}
 17108  	return nil
 17109  }
 17110  func (m *SchemaResult) Unmarshal(dAtA []byte) error {
 17111  	l := len(dAtA)
 17112  	iNdEx := 0
 17113  	for iNdEx < l {
 17114  		preIndex := iNdEx
 17115  		var wire uint64
 17116  		for shift := uint(0); ; shift += 7 {
 17117  			if shift >= 64 {
 17118  				return ErrIntOverflowPb
 17119  			}
 17120  			if iNdEx >= l {
 17121  				return io.ErrUnexpectedEOF
 17122  			}
 17123  			b := dAtA[iNdEx]
 17124  			iNdEx++
 17125  			wire |= uint64(b&0x7F) << shift
 17126  			if b < 0x80 {
 17127  				break
 17128  			}
 17129  		}
 17130  		fieldNum := int32(wire >> 3)
 17131  		wireType := int(wire & 0x7)
 17132  		if wireType == 4 {
 17133  			return fmt.Errorf("proto: SchemaResult: wiretype end group for non-group")
 17134  		}
 17135  		if fieldNum <= 0 {
 17136  			return fmt.Errorf("proto: SchemaResult: illegal tag %d (wire type %d)", fieldNum, wire)
 17137  		}
 17138  		switch fieldNum {
 17139  		case 1:
 17140  			if wireType != 2 {
 17141  				return fmt.Errorf("proto: wrong wireType = %d for field Schema", wireType)
 17142  			}
 17143  			var msglen int
 17144  			for shift := uint(0); ; shift += 7 {
 17145  				if shift >= 64 {
 17146  					return ErrIntOverflowPb
 17147  				}
 17148  				if iNdEx >= l {
 17149  					return io.ErrUnexpectedEOF
 17150  				}
 17151  				b := dAtA[iNdEx]
 17152  				iNdEx++
 17153  				msglen |= int(b&0x7F) << shift
 17154  				if b < 0x80 {
 17155  					break
 17156  				}
 17157  			}
 17158  			if msglen < 0 {
 17159  				return ErrInvalidLengthPb
 17160  			}
 17161  			postIndex := iNdEx + msglen
 17162  			if postIndex < 0 {
 17163  				return ErrInvalidLengthPb
 17164  			}
 17165  			if postIndex > l {
 17166  				return io.ErrUnexpectedEOF
 17167  			}
 17168  			m.Schema = append(m.Schema, &SchemaNode{})
 17169  			if err := m.Schema[len(m.Schema)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 17170  				return err
 17171  			}
 17172  			iNdEx = postIndex
 17173  		default:
 17174  			iNdEx = preIndex
 17175  			skippy, err := skipPb(dAtA[iNdEx:])
 17176  			if err != nil {
 17177  				return err
 17178  			}
 17179  			if skippy < 0 {
 17180  				return ErrInvalidLengthPb
 17181  			}
 17182  			if (iNdEx + skippy) < 0 {
 17183  				return ErrInvalidLengthPb
 17184  			}
 17185  			if (iNdEx + skippy) > l {
 17186  				return io.ErrUnexpectedEOF
 17187  			}
 17188  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 17189  			iNdEx += skippy
 17190  		}
 17191  	}
 17192  
 17193  	if iNdEx > l {
 17194  		return io.ErrUnexpectedEOF
 17195  	}
 17196  	return nil
 17197  }
 17198  func (m *SchemaUpdate) Unmarshal(dAtA []byte) error {
 17199  	l := len(dAtA)
 17200  	iNdEx := 0
 17201  	for iNdEx < l {
 17202  		preIndex := iNdEx
 17203  		var wire uint64
 17204  		for shift := uint(0); ; shift += 7 {
 17205  			if shift >= 64 {
 17206  				return ErrIntOverflowPb
 17207  			}
 17208  			if iNdEx >= l {
 17209  				return io.ErrUnexpectedEOF
 17210  			}
 17211  			b := dAtA[iNdEx]
 17212  			iNdEx++
 17213  			wire |= uint64(b&0x7F) << shift
 17214  			if b < 0x80 {
 17215  				break
 17216  			}
 17217  		}
 17218  		fieldNum := int32(wire >> 3)
 17219  		wireType := int(wire & 0x7)
 17220  		if wireType == 4 {
 17221  			return fmt.Errorf("proto: SchemaUpdate: wiretype end group for non-group")
 17222  		}
 17223  		if fieldNum <= 0 {
 17224  			return fmt.Errorf("proto: SchemaUpdate: illegal tag %d (wire type %d)", fieldNum, wire)
 17225  		}
 17226  		switch fieldNum {
 17227  		case 1:
 17228  			if wireType != 2 {
 17229  				return fmt.Errorf("proto: wrong wireType = %d for field Predicate", wireType)
 17230  			}
 17231  			var stringLen uint64
 17232  			for shift := uint(0); ; shift += 7 {
 17233  				if shift >= 64 {
 17234  					return ErrIntOverflowPb
 17235  				}
 17236  				if iNdEx >= l {
 17237  					return io.ErrUnexpectedEOF
 17238  				}
 17239  				b := dAtA[iNdEx]
 17240  				iNdEx++
 17241  				stringLen |= uint64(b&0x7F) << shift
 17242  				if b < 0x80 {
 17243  					break
 17244  				}
 17245  			}
 17246  			intStringLen := int(stringLen)
 17247  			if intStringLen < 0 {
 17248  				return ErrInvalidLengthPb
 17249  			}
 17250  			postIndex := iNdEx + intStringLen
 17251  			if postIndex < 0 {
 17252  				return ErrInvalidLengthPb
 17253  			}
 17254  			if postIndex > l {
 17255  				return io.ErrUnexpectedEOF
 17256  			}
 17257  			m.Predicate = string(dAtA[iNdEx:postIndex])
 17258  			iNdEx = postIndex
 17259  		case 2:
 17260  			if wireType != 0 {
 17261  				return fmt.Errorf("proto: wrong wireType = %d for field ValueType", wireType)
 17262  			}
 17263  			m.ValueType = 0
 17264  			for shift := uint(0); ; shift += 7 {
 17265  				if shift >= 64 {
 17266  					return ErrIntOverflowPb
 17267  				}
 17268  				if iNdEx >= l {
 17269  					return io.ErrUnexpectedEOF
 17270  				}
 17271  				b := dAtA[iNdEx]
 17272  				iNdEx++
 17273  				m.ValueType |= Posting_ValType(b&0x7F) << shift
 17274  				if b < 0x80 {
 17275  					break
 17276  				}
 17277  			}
 17278  		case 3:
 17279  			if wireType != 0 {
 17280  				return fmt.Errorf("proto: wrong wireType = %d for field Directive", wireType)
 17281  			}
 17282  			m.Directive = 0
 17283  			for shift := uint(0); ; shift += 7 {
 17284  				if shift >= 64 {
 17285  					return ErrIntOverflowPb
 17286  				}
 17287  				if iNdEx >= l {
 17288  					return io.ErrUnexpectedEOF
 17289  				}
 17290  				b := dAtA[iNdEx]
 17291  				iNdEx++
 17292  				m.Directive |= SchemaUpdate_Directive(b&0x7F) << shift
 17293  				if b < 0x80 {
 17294  					break
 17295  				}
 17296  			}
 17297  		case 4:
 17298  			if wireType != 2 {
 17299  				return fmt.Errorf("proto: wrong wireType = %d for field Tokenizer", wireType)
 17300  			}
 17301  			var stringLen uint64
 17302  			for shift := uint(0); ; shift += 7 {
 17303  				if shift >= 64 {
 17304  					return ErrIntOverflowPb
 17305  				}
 17306  				if iNdEx >= l {
 17307  					return io.ErrUnexpectedEOF
 17308  				}
 17309  				b := dAtA[iNdEx]
 17310  				iNdEx++
 17311  				stringLen |= uint64(b&0x7F) << shift
 17312  				if b < 0x80 {
 17313  					break
 17314  				}
 17315  			}
 17316  			intStringLen := int(stringLen)
 17317  			if intStringLen < 0 {
 17318  				return ErrInvalidLengthPb
 17319  			}
 17320  			postIndex := iNdEx + intStringLen
 17321  			if postIndex < 0 {
 17322  				return ErrInvalidLengthPb
 17323  			}
 17324  			if postIndex > l {
 17325  				return io.ErrUnexpectedEOF
 17326  			}
 17327  			m.Tokenizer = append(m.Tokenizer, string(dAtA[iNdEx:postIndex]))
 17328  			iNdEx = postIndex
 17329  		case 5:
 17330  			if wireType != 0 {
 17331  				return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType)
 17332  			}
 17333  			var v int
 17334  			for shift := uint(0); ; shift += 7 {
 17335  				if shift >= 64 {
 17336  					return ErrIntOverflowPb
 17337  				}
 17338  				if iNdEx >= l {
 17339  					return io.ErrUnexpectedEOF
 17340  				}
 17341  				b := dAtA[iNdEx]
 17342  				iNdEx++
 17343  				v |= int(b&0x7F) << shift
 17344  				if b < 0x80 {
 17345  					break
 17346  				}
 17347  			}
 17348  			m.Count = bool(v != 0)
 17349  		case 6:
 17350  			if wireType != 0 {
 17351  				return fmt.Errorf("proto: wrong wireType = %d for field List", wireType)
 17352  			}
 17353  			var v int
 17354  			for shift := uint(0); ; shift += 7 {
 17355  				if shift >= 64 {
 17356  					return ErrIntOverflowPb
 17357  				}
 17358  				if iNdEx >= l {
 17359  					return io.ErrUnexpectedEOF
 17360  				}
 17361  				b := dAtA[iNdEx]
 17362  				iNdEx++
 17363  				v |= int(b&0x7F) << shift
 17364  				if b < 0x80 {
 17365  					break
 17366  				}
 17367  			}
 17368  			m.List = bool(v != 0)
 17369  		case 8:
 17370  			if wireType != 0 {
 17371  				return fmt.Errorf("proto: wrong wireType = %d for field Upsert", wireType)
 17372  			}
 17373  			var v int
 17374  			for shift := uint(0); ; shift += 7 {
 17375  				if shift >= 64 {
 17376  					return ErrIntOverflowPb
 17377  				}
 17378  				if iNdEx >= l {
 17379  					return io.ErrUnexpectedEOF
 17380  				}
 17381  				b := dAtA[iNdEx]
 17382  				iNdEx++
 17383  				v |= int(b&0x7F) << shift
 17384  				if b < 0x80 {
 17385  					break
 17386  				}
 17387  			}
 17388  			m.Upsert = bool(v != 0)
 17389  		case 9:
 17390  			if wireType != 0 {
 17391  				return fmt.Errorf("proto: wrong wireType = %d for field Lang", wireType)
 17392  			}
 17393  			var v int
 17394  			for shift := uint(0); ; shift += 7 {
 17395  				if shift >= 64 {
 17396  					return ErrIntOverflowPb
 17397  				}
 17398  				if iNdEx >= l {
 17399  					return io.ErrUnexpectedEOF
 17400  				}
 17401  				b := dAtA[iNdEx]
 17402  				iNdEx++
 17403  				v |= int(b&0x7F) << shift
 17404  				if b < 0x80 {
 17405  					break
 17406  				}
 17407  			}
 17408  			m.Lang = bool(v != 0)
 17409  		case 10:
 17410  			if wireType != 0 {
 17411  				return fmt.Errorf("proto: wrong wireType = %d for field NonNullable", wireType)
 17412  			}
 17413  			var v int
 17414  			for shift := uint(0); ; shift += 7 {
 17415  				if shift >= 64 {
 17416  					return ErrIntOverflowPb
 17417  				}
 17418  				if iNdEx >= l {
 17419  					return io.ErrUnexpectedEOF
 17420  				}
 17421  				b := dAtA[iNdEx]
 17422  				iNdEx++
 17423  				v |= int(b&0x7F) << shift
 17424  				if b < 0x80 {
 17425  					break
 17426  				}
 17427  			}
 17428  			m.NonNullable = bool(v != 0)
 17429  		case 11:
 17430  			if wireType != 0 {
 17431  				return fmt.Errorf("proto: wrong wireType = %d for field NonNullableList", wireType)
 17432  			}
 17433  			var v int
 17434  			for shift := uint(0); ; shift += 7 {
 17435  				if shift >= 64 {
 17436  					return ErrIntOverflowPb
 17437  				}
 17438  				if iNdEx >= l {
 17439  					return io.ErrUnexpectedEOF
 17440  				}
 17441  				b := dAtA[iNdEx]
 17442  				iNdEx++
 17443  				v |= int(b&0x7F) << shift
 17444  				if b < 0x80 {
 17445  					break
 17446  				}
 17447  			}
 17448  			m.NonNullableList = bool(v != 0)
 17449  		case 12:
 17450  			if wireType != 2 {
 17451  				return fmt.Errorf("proto: wrong wireType = %d for field ObjectTypeName", wireType)
 17452  			}
 17453  			var stringLen uint64
 17454  			for shift := uint(0); ; shift += 7 {
 17455  				if shift >= 64 {
 17456  					return ErrIntOverflowPb
 17457  				}
 17458  				if iNdEx >= l {
 17459  					return io.ErrUnexpectedEOF
 17460  				}
 17461  				b := dAtA[iNdEx]
 17462  				iNdEx++
 17463  				stringLen |= uint64(b&0x7F) << shift
 17464  				if b < 0x80 {
 17465  					break
 17466  				}
 17467  			}
 17468  			intStringLen := int(stringLen)
 17469  			if intStringLen < 0 {
 17470  				return ErrInvalidLengthPb
 17471  			}
 17472  			postIndex := iNdEx + intStringLen
 17473  			if postIndex < 0 {
 17474  				return ErrInvalidLengthPb
 17475  			}
 17476  			if postIndex > l {
 17477  				return io.ErrUnexpectedEOF
 17478  			}
 17479  			m.ObjectTypeName = string(dAtA[iNdEx:postIndex])
 17480  			iNdEx = postIndex
 17481  		default:
 17482  			iNdEx = preIndex
 17483  			skippy, err := skipPb(dAtA[iNdEx:])
 17484  			if err != nil {
 17485  				return err
 17486  			}
 17487  			if skippy < 0 {
 17488  				return ErrInvalidLengthPb
 17489  			}
 17490  			if (iNdEx + skippy) < 0 {
 17491  				return ErrInvalidLengthPb
 17492  			}
 17493  			if (iNdEx + skippy) > l {
 17494  				return io.ErrUnexpectedEOF
 17495  			}
 17496  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 17497  			iNdEx += skippy
 17498  		}
 17499  	}
 17500  
 17501  	if iNdEx > l {
 17502  		return io.ErrUnexpectedEOF
 17503  	}
 17504  	return nil
 17505  }
 17506  func (m *TypeUpdate) Unmarshal(dAtA []byte) error {
 17507  	l := len(dAtA)
 17508  	iNdEx := 0
 17509  	for iNdEx < l {
 17510  		preIndex := iNdEx
 17511  		var wire uint64
 17512  		for shift := uint(0); ; shift += 7 {
 17513  			if shift >= 64 {
 17514  				return ErrIntOverflowPb
 17515  			}
 17516  			if iNdEx >= l {
 17517  				return io.ErrUnexpectedEOF
 17518  			}
 17519  			b := dAtA[iNdEx]
 17520  			iNdEx++
 17521  			wire |= uint64(b&0x7F) << shift
 17522  			if b < 0x80 {
 17523  				break
 17524  			}
 17525  		}
 17526  		fieldNum := int32(wire >> 3)
 17527  		wireType := int(wire & 0x7)
 17528  		if wireType == 4 {
 17529  			return fmt.Errorf("proto: TypeUpdate: wiretype end group for non-group")
 17530  		}
 17531  		if fieldNum <= 0 {
 17532  			return fmt.Errorf("proto: TypeUpdate: illegal tag %d (wire type %d)", fieldNum, wire)
 17533  		}
 17534  		switch fieldNum {
 17535  		case 1:
 17536  			if wireType != 2 {
 17537  				return fmt.Errorf("proto: wrong wireType = %d for field TypeName", wireType)
 17538  			}
 17539  			var stringLen uint64
 17540  			for shift := uint(0); ; shift += 7 {
 17541  				if shift >= 64 {
 17542  					return ErrIntOverflowPb
 17543  				}
 17544  				if iNdEx >= l {
 17545  					return io.ErrUnexpectedEOF
 17546  				}
 17547  				b := dAtA[iNdEx]
 17548  				iNdEx++
 17549  				stringLen |= uint64(b&0x7F) << shift
 17550  				if b < 0x80 {
 17551  					break
 17552  				}
 17553  			}
 17554  			intStringLen := int(stringLen)
 17555  			if intStringLen < 0 {
 17556  				return ErrInvalidLengthPb
 17557  			}
 17558  			postIndex := iNdEx + intStringLen
 17559  			if postIndex < 0 {
 17560  				return ErrInvalidLengthPb
 17561  			}
 17562  			if postIndex > l {
 17563  				return io.ErrUnexpectedEOF
 17564  			}
 17565  			m.TypeName = string(dAtA[iNdEx:postIndex])
 17566  			iNdEx = postIndex
 17567  		case 2:
 17568  			if wireType != 2 {
 17569  				return fmt.Errorf("proto: wrong wireType = %d for field Fields", wireType)
 17570  			}
 17571  			var msglen int
 17572  			for shift := uint(0); ; shift += 7 {
 17573  				if shift >= 64 {
 17574  					return ErrIntOverflowPb
 17575  				}
 17576  				if iNdEx >= l {
 17577  					return io.ErrUnexpectedEOF
 17578  				}
 17579  				b := dAtA[iNdEx]
 17580  				iNdEx++
 17581  				msglen |= int(b&0x7F) << shift
 17582  				if b < 0x80 {
 17583  					break
 17584  				}
 17585  			}
 17586  			if msglen < 0 {
 17587  				return ErrInvalidLengthPb
 17588  			}
 17589  			postIndex := iNdEx + msglen
 17590  			if postIndex < 0 {
 17591  				return ErrInvalidLengthPb
 17592  			}
 17593  			if postIndex > l {
 17594  				return io.ErrUnexpectedEOF
 17595  			}
 17596  			m.Fields = append(m.Fields, &SchemaUpdate{})
 17597  			if err := m.Fields[len(m.Fields)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 17598  				return err
 17599  			}
 17600  			iNdEx = postIndex
 17601  		default:
 17602  			iNdEx = preIndex
 17603  			skippy, err := skipPb(dAtA[iNdEx:])
 17604  			if err != nil {
 17605  				return err
 17606  			}
 17607  			if skippy < 0 {
 17608  				return ErrInvalidLengthPb
 17609  			}
 17610  			if (iNdEx + skippy) < 0 {
 17611  				return ErrInvalidLengthPb
 17612  			}
 17613  			if (iNdEx + skippy) > l {
 17614  				return io.ErrUnexpectedEOF
 17615  			}
 17616  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 17617  			iNdEx += skippy
 17618  		}
 17619  	}
 17620  
 17621  	if iNdEx > l {
 17622  		return io.ErrUnexpectedEOF
 17623  	}
 17624  	return nil
 17625  }
 17626  func (m *MapEntry) Unmarshal(dAtA []byte) error {
 17627  	l := len(dAtA)
 17628  	iNdEx := 0
 17629  	for iNdEx < l {
 17630  		preIndex := iNdEx
 17631  		var wire uint64
 17632  		for shift := uint(0); ; shift += 7 {
 17633  			if shift >= 64 {
 17634  				return ErrIntOverflowPb
 17635  			}
 17636  			if iNdEx >= l {
 17637  				return io.ErrUnexpectedEOF
 17638  			}
 17639  			b := dAtA[iNdEx]
 17640  			iNdEx++
 17641  			wire |= uint64(b&0x7F) << shift
 17642  			if b < 0x80 {
 17643  				break
 17644  			}
 17645  		}
 17646  		fieldNum := int32(wire >> 3)
 17647  		wireType := int(wire & 0x7)
 17648  		if wireType == 4 {
 17649  			return fmt.Errorf("proto: MapEntry: wiretype end group for non-group")
 17650  		}
 17651  		if fieldNum <= 0 {
 17652  			return fmt.Errorf("proto: MapEntry: illegal tag %d (wire type %d)", fieldNum, wire)
 17653  		}
 17654  		switch fieldNum {
 17655  		case 1:
 17656  			if wireType != 2 {
 17657  				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
 17658  			}
 17659  			var byteLen int
 17660  			for shift := uint(0); ; shift += 7 {
 17661  				if shift >= 64 {
 17662  					return ErrIntOverflowPb
 17663  				}
 17664  				if iNdEx >= l {
 17665  					return io.ErrUnexpectedEOF
 17666  				}
 17667  				b := dAtA[iNdEx]
 17668  				iNdEx++
 17669  				byteLen |= int(b&0x7F) << shift
 17670  				if b < 0x80 {
 17671  					break
 17672  				}
 17673  			}
 17674  			if byteLen < 0 {
 17675  				return ErrInvalidLengthPb
 17676  			}
 17677  			postIndex := iNdEx + byteLen
 17678  			if postIndex < 0 {
 17679  				return ErrInvalidLengthPb
 17680  			}
 17681  			if postIndex > l {
 17682  				return io.ErrUnexpectedEOF
 17683  			}
 17684  			m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...)
 17685  			if m.Key == nil {
 17686  				m.Key = []byte{}
 17687  			}
 17688  			iNdEx = postIndex
 17689  		case 2:
 17690  			if wireType != 1 {
 17691  				return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
 17692  			}
 17693  			m.Uid = 0
 17694  			if (iNdEx + 8) > l {
 17695  				return io.ErrUnexpectedEOF
 17696  			}
 17697  			m.Uid = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
 17698  			iNdEx += 8
 17699  		case 3:
 17700  			if wireType != 2 {
 17701  				return fmt.Errorf("proto: wrong wireType = %d for field Posting", wireType)
 17702  			}
 17703  			var msglen int
 17704  			for shift := uint(0); ; shift += 7 {
 17705  				if shift >= 64 {
 17706  					return ErrIntOverflowPb
 17707  				}
 17708  				if iNdEx >= l {
 17709  					return io.ErrUnexpectedEOF
 17710  				}
 17711  				b := dAtA[iNdEx]
 17712  				iNdEx++
 17713  				msglen |= int(b&0x7F) << shift
 17714  				if b < 0x80 {
 17715  					break
 17716  				}
 17717  			}
 17718  			if msglen < 0 {
 17719  				return ErrInvalidLengthPb
 17720  			}
 17721  			postIndex := iNdEx + msglen
 17722  			if postIndex < 0 {
 17723  				return ErrInvalidLengthPb
 17724  			}
 17725  			if postIndex > l {
 17726  				return io.ErrUnexpectedEOF
 17727  			}
 17728  			if m.Posting == nil {
 17729  				m.Posting = &Posting{}
 17730  			}
 17731  			if err := m.Posting.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 17732  				return err
 17733  			}
 17734  			iNdEx = postIndex
 17735  		default:
 17736  			iNdEx = preIndex
 17737  			skippy, err := skipPb(dAtA[iNdEx:])
 17738  			if err != nil {
 17739  				return err
 17740  			}
 17741  			if skippy < 0 {
 17742  				return ErrInvalidLengthPb
 17743  			}
 17744  			if (iNdEx + skippy) < 0 {
 17745  				return ErrInvalidLengthPb
 17746  			}
 17747  			if (iNdEx + skippy) > l {
 17748  				return io.ErrUnexpectedEOF
 17749  			}
 17750  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 17751  			iNdEx += skippy
 17752  		}
 17753  	}
 17754  
 17755  	if iNdEx > l {
 17756  		return io.ErrUnexpectedEOF
 17757  	}
 17758  	return nil
 17759  }
 17760  func (m *MovePredicatePayload) Unmarshal(dAtA []byte) error {
 17761  	l := len(dAtA)
 17762  	iNdEx := 0
 17763  	for iNdEx < l {
 17764  		preIndex := iNdEx
 17765  		var wire uint64
 17766  		for shift := uint(0); ; shift += 7 {
 17767  			if shift >= 64 {
 17768  				return ErrIntOverflowPb
 17769  			}
 17770  			if iNdEx >= l {
 17771  				return io.ErrUnexpectedEOF
 17772  			}
 17773  			b := dAtA[iNdEx]
 17774  			iNdEx++
 17775  			wire |= uint64(b&0x7F) << shift
 17776  			if b < 0x80 {
 17777  				break
 17778  			}
 17779  		}
 17780  		fieldNum := int32(wire >> 3)
 17781  		wireType := int(wire & 0x7)
 17782  		if wireType == 4 {
 17783  			return fmt.Errorf("proto: MovePredicatePayload: wiretype end group for non-group")
 17784  		}
 17785  		if fieldNum <= 0 {
 17786  			return fmt.Errorf("proto: MovePredicatePayload: illegal tag %d (wire type %d)", fieldNum, wire)
 17787  		}
 17788  		switch fieldNum {
 17789  		case 1:
 17790  			if wireType != 2 {
 17791  				return fmt.Errorf("proto: wrong wireType = %d for field Predicate", wireType)
 17792  			}
 17793  			var stringLen uint64
 17794  			for shift := uint(0); ; shift += 7 {
 17795  				if shift >= 64 {
 17796  					return ErrIntOverflowPb
 17797  				}
 17798  				if iNdEx >= l {
 17799  					return io.ErrUnexpectedEOF
 17800  				}
 17801  				b := dAtA[iNdEx]
 17802  				iNdEx++
 17803  				stringLen |= uint64(b&0x7F) << shift
 17804  				if b < 0x80 {
 17805  					break
 17806  				}
 17807  			}
 17808  			intStringLen := int(stringLen)
 17809  			if intStringLen < 0 {
 17810  				return ErrInvalidLengthPb
 17811  			}
 17812  			postIndex := iNdEx + intStringLen
 17813  			if postIndex < 0 {
 17814  				return ErrInvalidLengthPb
 17815  			}
 17816  			if postIndex > l {
 17817  				return io.ErrUnexpectedEOF
 17818  			}
 17819  			m.Predicate = string(dAtA[iNdEx:postIndex])
 17820  			iNdEx = postIndex
 17821  		case 2:
 17822  			if wireType != 0 {
 17823  				return fmt.Errorf("proto: wrong wireType = %d for field SourceGid", wireType)
 17824  			}
 17825  			m.SourceGid = 0
 17826  			for shift := uint(0); ; shift += 7 {
 17827  				if shift >= 64 {
 17828  					return ErrIntOverflowPb
 17829  				}
 17830  				if iNdEx >= l {
 17831  					return io.ErrUnexpectedEOF
 17832  				}
 17833  				b := dAtA[iNdEx]
 17834  				iNdEx++
 17835  				m.SourceGid |= uint32(b&0x7F) << shift
 17836  				if b < 0x80 {
 17837  					break
 17838  				}
 17839  			}
 17840  		case 3:
 17841  			if wireType != 0 {
 17842  				return fmt.Errorf("proto: wrong wireType = %d for field DestGid", wireType)
 17843  			}
 17844  			m.DestGid = 0
 17845  			for shift := uint(0); ; shift += 7 {
 17846  				if shift >= 64 {
 17847  					return ErrIntOverflowPb
 17848  				}
 17849  				if iNdEx >= l {
 17850  					return io.ErrUnexpectedEOF
 17851  				}
 17852  				b := dAtA[iNdEx]
 17853  				iNdEx++
 17854  				m.DestGid |= uint32(b&0x7F) << shift
 17855  				if b < 0x80 {
 17856  					break
 17857  				}
 17858  			}
 17859  		case 4:
 17860  			if wireType != 0 {
 17861  				return fmt.Errorf("proto: wrong wireType = %d for field TxnTs", wireType)
 17862  			}
 17863  			m.TxnTs = 0
 17864  			for shift := uint(0); ; shift += 7 {
 17865  				if shift >= 64 {
 17866  					return ErrIntOverflowPb
 17867  				}
 17868  				if iNdEx >= l {
 17869  					return io.ErrUnexpectedEOF
 17870  				}
 17871  				b := dAtA[iNdEx]
 17872  				iNdEx++
 17873  				m.TxnTs |= uint64(b&0x7F) << shift
 17874  				if b < 0x80 {
 17875  					break
 17876  				}
 17877  			}
 17878  		default:
 17879  			iNdEx = preIndex
 17880  			skippy, err := skipPb(dAtA[iNdEx:])
 17881  			if err != nil {
 17882  				return err
 17883  			}
 17884  			if skippy < 0 {
 17885  				return ErrInvalidLengthPb
 17886  			}
 17887  			if (iNdEx + skippy) < 0 {
 17888  				return ErrInvalidLengthPb
 17889  			}
 17890  			if (iNdEx + skippy) > l {
 17891  				return io.ErrUnexpectedEOF
 17892  			}
 17893  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 17894  			iNdEx += skippy
 17895  		}
 17896  	}
 17897  
 17898  	if iNdEx > l {
 17899  		return io.ErrUnexpectedEOF
 17900  	}
 17901  	return nil
 17902  }
 17903  func (m *TxnStatus) Unmarshal(dAtA []byte) error {
 17904  	l := len(dAtA)
 17905  	iNdEx := 0
 17906  	for iNdEx < l {
 17907  		preIndex := iNdEx
 17908  		var wire uint64
 17909  		for shift := uint(0); ; shift += 7 {
 17910  			if shift >= 64 {
 17911  				return ErrIntOverflowPb
 17912  			}
 17913  			if iNdEx >= l {
 17914  				return io.ErrUnexpectedEOF
 17915  			}
 17916  			b := dAtA[iNdEx]
 17917  			iNdEx++
 17918  			wire |= uint64(b&0x7F) << shift
 17919  			if b < 0x80 {
 17920  				break
 17921  			}
 17922  		}
 17923  		fieldNum := int32(wire >> 3)
 17924  		wireType := int(wire & 0x7)
 17925  		if wireType == 4 {
 17926  			return fmt.Errorf("proto: TxnStatus: wiretype end group for non-group")
 17927  		}
 17928  		if fieldNum <= 0 {
 17929  			return fmt.Errorf("proto: TxnStatus: illegal tag %d (wire type %d)", fieldNum, wire)
 17930  		}
 17931  		switch fieldNum {
 17932  		case 1:
 17933  			if wireType != 0 {
 17934  				return fmt.Errorf("proto: wrong wireType = %d for field StartTs", wireType)
 17935  			}
 17936  			m.StartTs = 0
 17937  			for shift := uint(0); ; shift += 7 {
 17938  				if shift >= 64 {
 17939  					return ErrIntOverflowPb
 17940  				}
 17941  				if iNdEx >= l {
 17942  					return io.ErrUnexpectedEOF
 17943  				}
 17944  				b := dAtA[iNdEx]
 17945  				iNdEx++
 17946  				m.StartTs |= uint64(b&0x7F) << shift
 17947  				if b < 0x80 {
 17948  					break
 17949  				}
 17950  			}
 17951  		case 2:
 17952  			if wireType != 0 {
 17953  				return fmt.Errorf("proto: wrong wireType = %d for field CommitTs", wireType)
 17954  			}
 17955  			m.CommitTs = 0
 17956  			for shift := uint(0); ; shift += 7 {
 17957  				if shift >= 64 {
 17958  					return ErrIntOverflowPb
 17959  				}
 17960  				if iNdEx >= l {
 17961  					return io.ErrUnexpectedEOF
 17962  				}
 17963  				b := dAtA[iNdEx]
 17964  				iNdEx++
 17965  				m.CommitTs |= uint64(b&0x7F) << shift
 17966  				if b < 0x80 {
 17967  					break
 17968  				}
 17969  			}
 17970  		default:
 17971  			iNdEx = preIndex
 17972  			skippy, err := skipPb(dAtA[iNdEx:])
 17973  			if err != nil {
 17974  				return err
 17975  			}
 17976  			if skippy < 0 {
 17977  				return ErrInvalidLengthPb
 17978  			}
 17979  			if (iNdEx + skippy) < 0 {
 17980  				return ErrInvalidLengthPb
 17981  			}
 17982  			if (iNdEx + skippy) > l {
 17983  				return io.ErrUnexpectedEOF
 17984  			}
 17985  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 17986  			iNdEx += skippy
 17987  		}
 17988  	}
 17989  
 17990  	if iNdEx > l {
 17991  		return io.ErrUnexpectedEOF
 17992  	}
 17993  	return nil
 17994  }
 17995  func (m *OracleDelta) Unmarshal(dAtA []byte) error {
 17996  	l := len(dAtA)
 17997  	iNdEx := 0
 17998  	for iNdEx < l {
 17999  		preIndex := iNdEx
 18000  		var wire uint64
 18001  		for shift := uint(0); ; shift += 7 {
 18002  			if shift >= 64 {
 18003  				return ErrIntOverflowPb
 18004  			}
 18005  			if iNdEx >= l {
 18006  				return io.ErrUnexpectedEOF
 18007  			}
 18008  			b := dAtA[iNdEx]
 18009  			iNdEx++
 18010  			wire |= uint64(b&0x7F) << shift
 18011  			if b < 0x80 {
 18012  				break
 18013  			}
 18014  		}
 18015  		fieldNum := int32(wire >> 3)
 18016  		wireType := int(wire & 0x7)
 18017  		if wireType == 4 {
 18018  			return fmt.Errorf("proto: OracleDelta: wiretype end group for non-group")
 18019  		}
 18020  		if fieldNum <= 0 {
 18021  			return fmt.Errorf("proto: OracleDelta: illegal tag %d (wire type %d)", fieldNum, wire)
 18022  		}
 18023  		switch fieldNum {
 18024  		case 1:
 18025  			if wireType != 2 {
 18026  				return fmt.Errorf("proto: wrong wireType = %d for field Txns", wireType)
 18027  			}
 18028  			var msglen int
 18029  			for shift := uint(0); ; shift += 7 {
 18030  				if shift >= 64 {
 18031  					return ErrIntOverflowPb
 18032  				}
 18033  				if iNdEx >= l {
 18034  					return io.ErrUnexpectedEOF
 18035  				}
 18036  				b := dAtA[iNdEx]
 18037  				iNdEx++
 18038  				msglen |= int(b&0x7F) << shift
 18039  				if b < 0x80 {
 18040  					break
 18041  				}
 18042  			}
 18043  			if msglen < 0 {
 18044  				return ErrInvalidLengthPb
 18045  			}
 18046  			postIndex := iNdEx + msglen
 18047  			if postIndex < 0 {
 18048  				return ErrInvalidLengthPb
 18049  			}
 18050  			if postIndex > l {
 18051  				return io.ErrUnexpectedEOF
 18052  			}
 18053  			m.Txns = append(m.Txns, &TxnStatus{})
 18054  			if err := m.Txns[len(m.Txns)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 18055  				return err
 18056  			}
 18057  			iNdEx = postIndex
 18058  		case 2:
 18059  			if wireType != 0 {
 18060  				return fmt.Errorf("proto: wrong wireType = %d for field MaxAssigned", wireType)
 18061  			}
 18062  			m.MaxAssigned = 0
 18063  			for shift := uint(0); ; shift += 7 {
 18064  				if shift >= 64 {
 18065  					return ErrIntOverflowPb
 18066  				}
 18067  				if iNdEx >= l {
 18068  					return io.ErrUnexpectedEOF
 18069  				}
 18070  				b := dAtA[iNdEx]
 18071  				iNdEx++
 18072  				m.MaxAssigned |= uint64(b&0x7F) << shift
 18073  				if b < 0x80 {
 18074  					break
 18075  				}
 18076  			}
 18077  		case 3:
 18078  			if wireType != 2 {
 18079  				return fmt.Errorf("proto: wrong wireType = %d for field GroupChecksums", wireType)
 18080  			}
 18081  			var msglen int
 18082  			for shift := uint(0); ; shift += 7 {
 18083  				if shift >= 64 {
 18084  					return ErrIntOverflowPb
 18085  				}
 18086  				if iNdEx >= l {
 18087  					return io.ErrUnexpectedEOF
 18088  				}
 18089  				b := dAtA[iNdEx]
 18090  				iNdEx++
 18091  				msglen |= int(b&0x7F) << shift
 18092  				if b < 0x80 {
 18093  					break
 18094  				}
 18095  			}
 18096  			if msglen < 0 {
 18097  				return ErrInvalidLengthPb
 18098  			}
 18099  			postIndex := iNdEx + msglen
 18100  			if postIndex < 0 {
 18101  				return ErrInvalidLengthPb
 18102  			}
 18103  			if postIndex > l {
 18104  				return io.ErrUnexpectedEOF
 18105  			}
 18106  			if m.GroupChecksums == nil {
 18107  				m.GroupChecksums = make(map[uint32]uint64)
 18108  			}
 18109  			var mapkey uint32
 18110  			var mapvalue uint64
 18111  			for iNdEx < postIndex {
 18112  				entryPreIndex := iNdEx
 18113  				var wire uint64
 18114  				for shift := uint(0); ; shift += 7 {
 18115  					if shift >= 64 {
 18116  						return ErrIntOverflowPb
 18117  					}
 18118  					if iNdEx >= l {
 18119  						return io.ErrUnexpectedEOF
 18120  					}
 18121  					b := dAtA[iNdEx]
 18122  					iNdEx++
 18123  					wire |= uint64(b&0x7F) << shift
 18124  					if b < 0x80 {
 18125  						break
 18126  					}
 18127  				}
 18128  				fieldNum := int32(wire >> 3)
 18129  				if fieldNum == 1 {
 18130  					for shift := uint(0); ; shift += 7 {
 18131  						if shift >= 64 {
 18132  							return ErrIntOverflowPb
 18133  						}
 18134  						if iNdEx >= l {
 18135  							return io.ErrUnexpectedEOF
 18136  						}
 18137  						b := dAtA[iNdEx]
 18138  						iNdEx++
 18139  						mapkey |= uint32(b&0x7F) << shift
 18140  						if b < 0x80 {
 18141  							break
 18142  						}
 18143  					}
 18144  				} else if fieldNum == 2 {
 18145  					for shift := uint(0); ; shift += 7 {
 18146  						if shift >= 64 {
 18147  							return ErrIntOverflowPb
 18148  						}
 18149  						if iNdEx >= l {
 18150  							return io.ErrUnexpectedEOF
 18151  						}
 18152  						b := dAtA[iNdEx]
 18153  						iNdEx++
 18154  						mapvalue |= uint64(b&0x7F) << shift
 18155  						if b < 0x80 {
 18156  							break
 18157  						}
 18158  					}
 18159  				} else {
 18160  					iNdEx = entryPreIndex
 18161  					skippy, err := skipPb(dAtA[iNdEx:])
 18162  					if err != nil {
 18163  						return err
 18164  					}
 18165  					if skippy < 0 {
 18166  						return ErrInvalidLengthPb
 18167  					}
 18168  					if (iNdEx + skippy) > postIndex {
 18169  						return io.ErrUnexpectedEOF
 18170  					}
 18171  					iNdEx += skippy
 18172  				}
 18173  			}
 18174  			m.GroupChecksums[mapkey] = mapvalue
 18175  			iNdEx = postIndex
 18176  		default:
 18177  			iNdEx = preIndex
 18178  			skippy, err := skipPb(dAtA[iNdEx:])
 18179  			if err != nil {
 18180  				return err
 18181  			}
 18182  			if skippy < 0 {
 18183  				return ErrInvalidLengthPb
 18184  			}
 18185  			if (iNdEx + skippy) < 0 {
 18186  				return ErrInvalidLengthPb
 18187  			}
 18188  			if (iNdEx + skippy) > l {
 18189  				return io.ErrUnexpectedEOF
 18190  			}
 18191  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 18192  			iNdEx += skippy
 18193  		}
 18194  	}
 18195  
 18196  	if iNdEx > l {
 18197  		return io.ErrUnexpectedEOF
 18198  	}
 18199  	return nil
 18200  }
 18201  func (m *TxnTimestamps) Unmarshal(dAtA []byte) error {
 18202  	l := len(dAtA)
 18203  	iNdEx := 0
 18204  	for iNdEx < l {
 18205  		preIndex := iNdEx
 18206  		var wire uint64
 18207  		for shift := uint(0); ; shift += 7 {
 18208  			if shift >= 64 {
 18209  				return ErrIntOverflowPb
 18210  			}
 18211  			if iNdEx >= l {
 18212  				return io.ErrUnexpectedEOF
 18213  			}
 18214  			b := dAtA[iNdEx]
 18215  			iNdEx++
 18216  			wire |= uint64(b&0x7F) << shift
 18217  			if b < 0x80 {
 18218  				break
 18219  			}
 18220  		}
 18221  		fieldNum := int32(wire >> 3)
 18222  		wireType := int(wire & 0x7)
 18223  		if wireType == 4 {
 18224  			return fmt.Errorf("proto: TxnTimestamps: wiretype end group for non-group")
 18225  		}
 18226  		if fieldNum <= 0 {
 18227  			return fmt.Errorf("proto: TxnTimestamps: illegal tag %d (wire type %d)", fieldNum, wire)
 18228  		}
 18229  		switch fieldNum {
 18230  		case 1:
 18231  			if wireType == 0 {
 18232  				var v uint64
 18233  				for shift := uint(0); ; shift += 7 {
 18234  					if shift >= 64 {
 18235  						return ErrIntOverflowPb
 18236  					}
 18237  					if iNdEx >= l {
 18238  						return io.ErrUnexpectedEOF
 18239  					}
 18240  					b := dAtA[iNdEx]
 18241  					iNdEx++
 18242  					v |= uint64(b&0x7F) << shift
 18243  					if b < 0x80 {
 18244  						break
 18245  					}
 18246  				}
 18247  				m.Ts = append(m.Ts, v)
 18248  			} else if wireType == 2 {
 18249  				var packedLen int
 18250  				for shift := uint(0); ; shift += 7 {
 18251  					if shift >= 64 {
 18252  						return ErrIntOverflowPb
 18253  					}
 18254  					if iNdEx >= l {
 18255  						return io.ErrUnexpectedEOF
 18256  					}
 18257  					b := dAtA[iNdEx]
 18258  					iNdEx++
 18259  					packedLen |= int(b&0x7F) << shift
 18260  					if b < 0x80 {
 18261  						break
 18262  					}
 18263  				}
 18264  				if packedLen < 0 {
 18265  					return ErrInvalidLengthPb
 18266  				}
 18267  				postIndex := iNdEx + packedLen
 18268  				if postIndex < 0 {
 18269  					return ErrInvalidLengthPb
 18270  				}
 18271  				if postIndex > l {
 18272  					return io.ErrUnexpectedEOF
 18273  				}
 18274  				var elementCount int
 18275  				var count int
 18276  				for _, integer := range dAtA[iNdEx:postIndex] {
 18277  					if integer < 128 {
 18278  						count++
 18279  					}
 18280  				}
 18281  				elementCount = count
 18282  				if elementCount != 0 && len(m.Ts) == 0 {
 18283  					m.Ts = make([]uint64, 0, elementCount)
 18284  				}
 18285  				for iNdEx < postIndex {
 18286  					var v uint64
 18287  					for shift := uint(0); ; shift += 7 {
 18288  						if shift >= 64 {
 18289  							return ErrIntOverflowPb
 18290  						}
 18291  						if iNdEx >= l {
 18292  							return io.ErrUnexpectedEOF
 18293  						}
 18294  						b := dAtA[iNdEx]
 18295  						iNdEx++
 18296  						v |= uint64(b&0x7F) << shift
 18297  						if b < 0x80 {
 18298  							break
 18299  						}
 18300  					}
 18301  					m.Ts = append(m.Ts, v)
 18302  				}
 18303  			} else {
 18304  				return fmt.Errorf("proto: wrong wireType = %d for field Ts", wireType)
 18305  			}
 18306  		default:
 18307  			iNdEx = preIndex
 18308  			skippy, err := skipPb(dAtA[iNdEx:])
 18309  			if err != nil {
 18310  				return err
 18311  			}
 18312  			if skippy < 0 {
 18313  				return ErrInvalidLengthPb
 18314  			}
 18315  			if (iNdEx + skippy) < 0 {
 18316  				return ErrInvalidLengthPb
 18317  			}
 18318  			if (iNdEx + skippy) > l {
 18319  				return io.ErrUnexpectedEOF
 18320  			}
 18321  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 18322  			iNdEx += skippy
 18323  		}
 18324  	}
 18325  
 18326  	if iNdEx > l {
 18327  		return io.ErrUnexpectedEOF
 18328  	}
 18329  	return nil
 18330  }
 18331  func (m *PeerResponse) Unmarshal(dAtA []byte) error {
 18332  	l := len(dAtA)
 18333  	iNdEx := 0
 18334  	for iNdEx < l {
 18335  		preIndex := iNdEx
 18336  		var wire uint64
 18337  		for shift := uint(0); ; shift += 7 {
 18338  			if shift >= 64 {
 18339  				return ErrIntOverflowPb
 18340  			}
 18341  			if iNdEx >= l {
 18342  				return io.ErrUnexpectedEOF
 18343  			}
 18344  			b := dAtA[iNdEx]
 18345  			iNdEx++
 18346  			wire |= uint64(b&0x7F) << shift
 18347  			if b < 0x80 {
 18348  				break
 18349  			}
 18350  		}
 18351  		fieldNum := int32(wire >> 3)
 18352  		wireType := int(wire & 0x7)
 18353  		if wireType == 4 {
 18354  			return fmt.Errorf("proto: PeerResponse: wiretype end group for non-group")
 18355  		}
 18356  		if fieldNum <= 0 {
 18357  			return fmt.Errorf("proto: PeerResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 18358  		}
 18359  		switch fieldNum {
 18360  		case 1:
 18361  			if wireType != 0 {
 18362  				return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
 18363  			}
 18364  			var v int
 18365  			for shift := uint(0); ; shift += 7 {
 18366  				if shift >= 64 {
 18367  					return ErrIntOverflowPb
 18368  				}
 18369  				if iNdEx >= l {
 18370  					return io.ErrUnexpectedEOF
 18371  				}
 18372  				b := dAtA[iNdEx]
 18373  				iNdEx++
 18374  				v |= int(b&0x7F) << shift
 18375  				if b < 0x80 {
 18376  					break
 18377  				}
 18378  			}
 18379  			m.Status = bool(v != 0)
 18380  		default:
 18381  			iNdEx = preIndex
 18382  			skippy, err := skipPb(dAtA[iNdEx:])
 18383  			if err != nil {
 18384  				return err
 18385  			}
 18386  			if skippy < 0 {
 18387  				return ErrInvalidLengthPb
 18388  			}
 18389  			if (iNdEx + skippy) < 0 {
 18390  				return ErrInvalidLengthPb
 18391  			}
 18392  			if (iNdEx + skippy) > l {
 18393  				return io.ErrUnexpectedEOF
 18394  			}
 18395  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 18396  			iNdEx += skippy
 18397  		}
 18398  	}
 18399  
 18400  	if iNdEx > l {
 18401  		return io.ErrUnexpectedEOF
 18402  	}
 18403  	return nil
 18404  }
 18405  func (m *RaftBatch) Unmarshal(dAtA []byte) error {
 18406  	l := len(dAtA)
 18407  	iNdEx := 0
 18408  	for iNdEx < l {
 18409  		preIndex := iNdEx
 18410  		var wire uint64
 18411  		for shift := uint(0); ; shift += 7 {
 18412  			if shift >= 64 {
 18413  				return ErrIntOverflowPb
 18414  			}
 18415  			if iNdEx >= l {
 18416  				return io.ErrUnexpectedEOF
 18417  			}
 18418  			b := dAtA[iNdEx]
 18419  			iNdEx++
 18420  			wire |= uint64(b&0x7F) << shift
 18421  			if b < 0x80 {
 18422  				break
 18423  			}
 18424  		}
 18425  		fieldNum := int32(wire >> 3)
 18426  		wireType := int(wire & 0x7)
 18427  		if wireType == 4 {
 18428  			return fmt.Errorf("proto: RaftBatch: wiretype end group for non-group")
 18429  		}
 18430  		if fieldNum <= 0 {
 18431  			return fmt.Errorf("proto: RaftBatch: illegal tag %d (wire type %d)", fieldNum, wire)
 18432  		}
 18433  		switch fieldNum {
 18434  		case 1:
 18435  			if wireType != 2 {
 18436  				return fmt.Errorf("proto: wrong wireType = %d for field Context", wireType)
 18437  			}
 18438  			var msglen int
 18439  			for shift := uint(0); ; shift += 7 {
 18440  				if shift >= 64 {
 18441  					return ErrIntOverflowPb
 18442  				}
 18443  				if iNdEx >= l {
 18444  					return io.ErrUnexpectedEOF
 18445  				}
 18446  				b := dAtA[iNdEx]
 18447  				iNdEx++
 18448  				msglen |= int(b&0x7F) << shift
 18449  				if b < 0x80 {
 18450  					break
 18451  				}
 18452  			}
 18453  			if msglen < 0 {
 18454  				return ErrInvalidLengthPb
 18455  			}
 18456  			postIndex := iNdEx + msglen
 18457  			if postIndex < 0 {
 18458  				return ErrInvalidLengthPb
 18459  			}
 18460  			if postIndex > l {
 18461  				return io.ErrUnexpectedEOF
 18462  			}
 18463  			if m.Context == nil {
 18464  				m.Context = &RaftContext{}
 18465  			}
 18466  			if err := m.Context.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 18467  				return err
 18468  			}
 18469  			iNdEx = postIndex
 18470  		case 2:
 18471  			if wireType != 2 {
 18472  				return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType)
 18473  			}
 18474  			var msglen int
 18475  			for shift := uint(0); ; shift += 7 {
 18476  				if shift >= 64 {
 18477  					return ErrIntOverflowPb
 18478  				}
 18479  				if iNdEx >= l {
 18480  					return io.ErrUnexpectedEOF
 18481  				}
 18482  				b := dAtA[iNdEx]
 18483  				iNdEx++
 18484  				msglen |= int(b&0x7F) << shift
 18485  				if b < 0x80 {
 18486  					break
 18487  				}
 18488  			}
 18489  			if msglen < 0 {
 18490  				return ErrInvalidLengthPb
 18491  			}
 18492  			postIndex := iNdEx + msglen
 18493  			if postIndex < 0 {
 18494  				return ErrInvalidLengthPb
 18495  			}
 18496  			if postIndex > l {
 18497  				return io.ErrUnexpectedEOF
 18498  			}
 18499  			if m.Payload == nil {
 18500  				m.Payload = &api.Payload{}
 18501  			}
 18502  			if err := m.Payload.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 18503  				return err
 18504  			}
 18505  			iNdEx = postIndex
 18506  		default:
 18507  			iNdEx = preIndex
 18508  			skippy, err := skipPb(dAtA[iNdEx:])
 18509  			if err != nil {
 18510  				return err
 18511  			}
 18512  			if skippy < 0 {
 18513  				return ErrInvalidLengthPb
 18514  			}
 18515  			if (iNdEx + skippy) < 0 {
 18516  				return ErrInvalidLengthPb
 18517  			}
 18518  			if (iNdEx + skippy) > l {
 18519  				return io.ErrUnexpectedEOF
 18520  			}
 18521  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 18522  			iNdEx += skippy
 18523  		}
 18524  	}
 18525  
 18526  	if iNdEx > l {
 18527  		return io.ErrUnexpectedEOF
 18528  	}
 18529  	return nil
 18530  }
 18531  func (m *Num) Unmarshal(dAtA []byte) error {
 18532  	l := len(dAtA)
 18533  	iNdEx := 0
 18534  	for iNdEx < l {
 18535  		preIndex := iNdEx
 18536  		var wire uint64
 18537  		for shift := uint(0); ; shift += 7 {
 18538  			if shift >= 64 {
 18539  				return ErrIntOverflowPb
 18540  			}
 18541  			if iNdEx >= l {
 18542  				return io.ErrUnexpectedEOF
 18543  			}
 18544  			b := dAtA[iNdEx]
 18545  			iNdEx++
 18546  			wire |= uint64(b&0x7F) << shift
 18547  			if b < 0x80 {
 18548  				break
 18549  			}
 18550  		}
 18551  		fieldNum := int32(wire >> 3)
 18552  		wireType := int(wire & 0x7)
 18553  		if wireType == 4 {
 18554  			return fmt.Errorf("proto: Num: wiretype end group for non-group")
 18555  		}
 18556  		if fieldNum <= 0 {
 18557  			return fmt.Errorf("proto: Num: illegal tag %d (wire type %d)", fieldNum, wire)
 18558  		}
 18559  		switch fieldNum {
 18560  		case 1:
 18561  			if wireType != 0 {
 18562  				return fmt.Errorf("proto: wrong wireType = %d for field Val", wireType)
 18563  			}
 18564  			m.Val = 0
 18565  			for shift := uint(0); ; shift += 7 {
 18566  				if shift >= 64 {
 18567  					return ErrIntOverflowPb
 18568  				}
 18569  				if iNdEx >= l {
 18570  					return io.ErrUnexpectedEOF
 18571  				}
 18572  				b := dAtA[iNdEx]
 18573  				iNdEx++
 18574  				m.Val |= uint64(b&0x7F) << shift
 18575  				if b < 0x80 {
 18576  					break
 18577  				}
 18578  			}
 18579  		case 2:
 18580  			if wireType != 0 {
 18581  				return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType)
 18582  			}
 18583  			var v int
 18584  			for shift := uint(0); ; shift += 7 {
 18585  				if shift >= 64 {
 18586  					return ErrIntOverflowPb
 18587  				}
 18588  				if iNdEx >= l {
 18589  					return io.ErrUnexpectedEOF
 18590  				}
 18591  				b := dAtA[iNdEx]
 18592  				iNdEx++
 18593  				v |= int(b&0x7F) << shift
 18594  				if b < 0x80 {
 18595  					break
 18596  				}
 18597  			}
 18598  			m.ReadOnly = bool(v != 0)
 18599  		case 3:
 18600  			if wireType != 0 {
 18601  				return fmt.Errorf("proto: wrong wireType = %d for field Forwarded", wireType)
 18602  			}
 18603  			var v int
 18604  			for shift := uint(0); ; shift += 7 {
 18605  				if shift >= 64 {
 18606  					return ErrIntOverflowPb
 18607  				}
 18608  				if iNdEx >= l {
 18609  					return io.ErrUnexpectedEOF
 18610  				}
 18611  				b := dAtA[iNdEx]
 18612  				iNdEx++
 18613  				v |= int(b&0x7F) << shift
 18614  				if b < 0x80 {
 18615  					break
 18616  				}
 18617  			}
 18618  			m.Forwarded = bool(v != 0)
 18619  		default:
 18620  			iNdEx = preIndex
 18621  			skippy, err := skipPb(dAtA[iNdEx:])
 18622  			if err != nil {
 18623  				return err
 18624  			}
 18625  			if skippy < 0 {
 18626  				return ErrInvalidLengthPb
 18627  			}
 18628  			if (iNdEx + skippy) < 0 {
 18629  				return ErrInvalidLengthPb
 18630  			}
 18631  			if (iNdEx + skippy) > l {
 18632  				return io.ErrUnexpectedEOF
 18633  			}
 18634  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 18635  			iNdEx += skippy
 18636  		}
 18637  	}
 18638  
 18639  	if iNdEx > l {
 18640  		return io.ErrUnexpectedEOF
 18641  	}
 18642  	return nil
 18643  }
 18644  func (m *AssignedIds) Unmarshal(dAtA []byte) error {
 18645  	l := len(dAtA)
 18646  	iNdEx := 0
 18647  	for iNdEx < l {
 18648  		preIndex := iNdEx
 18649  		var wire uint64
 18650  		for shift := uint(0); ; shift += 7 {
 18651  			if shift >= 64 {
 18652  				return ErrIntOverflowPb
 18653  			}
 18654  			if iNdEx >= l {
 18655  				return io.ErrUnexpectedEOF
 18656  			}
 18657  			b := dAtA[iNdEx]
 18658  			iNdEx++
 18659  			wire |= uint64(b&0x7F) << shift
 18660  			if b < 0x80 {
 18661  				break
 18662  			}
 18663  		}
 18664  		fieldNum := int32(wire >> 3)
 18665  		wireType := int(wire & 0x7)
 18666  		if wireType == 4 {
 18667  			return fmt.Errorf("proto: AssignedIds: wiretype end group for non-group")
 18668  		}
 18669  		if fieldNum <= 0 {
 18670  			return fmt.Errorf("proto: AssignedIds: illegal tag %d (wire type %d)", fieldNum, wire)
 18671  		}
 18672  		switch fieldNum {
 18673  		case 1:
 18674  			if wireType != 0 {
 18675  				return fmt.Errorf("proto: wrong wireType = %d for field StartId", wireType)
 18676  			}
 18677  			m.StartId = 0
 18678  			for shift := uint(0); ; shift += 7 {
 18679  				if shift >= 64 {
 18680  					return ErrIntOverflowPb
 18681  				}
 18682  				if iNdEx >= l {
 18683  					return io.ErrUnexpectedEOF
 18684  				}
 18685  				b := dAtA[iNdEx]
 18686  				iNdEx++
 18687  				m.StartId |= uint64(b&0x7F) << shift
 18688  				if b < 0x80 {
 18689  					break
 18690  				}
 18691  			}
 18692  		case 2:
 18693  			if wireType != 0 {
 18694  				return fmt.Errorf("proto: wrong wireType = %d for field EndId", wireType)
 18695  			}
 18696  			m.EndId = 0
 18697  			for shift := uint(0); ; shift += 7 {
 18698  				if shift >= 64 {
 18699  					return ErrIntOverflowPb
 18700  				}
 18701  				if iNdEx >= l {
 18702  					return io.ErrUnexpectedEOF
 18703  				}
 18704  				b := dAtA[iNdEx]
 18705  				iNdEx++
 18706  				m.EndId |= uint64(b&0x7F) << shift
 18707  				if b < 0x80 {
 18708  					break
 18709  				}
 18710  			}
 18711  		case 5:
 18712  			if wireType != 0 {
 18713  				return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType)
 18714  			}
 18715  			m.ReadOnly = 0
 18716  			for shift := uint(0); ; shift += 7 {
 18717  				if shift >= 64 {
 18718  					return ErrIntOverflowPb
 18719  				}
 18720  				if iNdEx >= l {
 18721  					return io.ErrUnexpectedEOF
 18722  				}
 18723  				b := dAtA[iNdEx]
 18724  				iNdEx++
 18725  				m.ReadOnly |= uint64(b&0x7F) << shift
 18726  				if b < 0x80 {
 18727  					break
 18728  				}
 18729  			}
 18730  		default:
 18731  			iNdEx = preIndex
 18732  			skippy, err := skipPb(dAtA[iNdEx:])
 18733  			if err != nil {
 18734  				return err
 18735  			}
 18736  			if skippy < 0 {
 18737  				return ErrInvalidLengthPb
 18738  			}
 18739  			if (iNdEx + skippy) < 0 {
 18740  				return ErrInvalidLengthPb
 18741  			}
 18742  			if (iNdEx + skippy) > l {
 18743  				return io.ErrUnexpectedEOF
 18744  			}
 18745  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 18746  			iNdEx += skippy
 18747  		}
 18748  	}
 18749  
 18750  	if iNdEx > l {
 18751  		return io.ErrUnexpectedEOF
 18752  	}
 18753  	return nil
 18754  }
 18755  func (m *SnapshotMeta) Unmarshal(dAtA []byte) error {
 18756  	l := len(dAtA)
 18757  	iNdEx := 0
 18758  	for iNdEx < l {
 18759  		preIndex := iNdEx
 18760  		var wire uint64
 18761  		for shift := uint(0); ; shift += 7 {
 18762  			if shift >= 64 {
 18763  				return ErrIntOverflowPb
 18764  			}
 18765  			if iNdEx >= l {
 18766  				return io.ErrUnexpectedEOF
 18767  			}
 18768  			b := dAtA[iNdEx]
 18769  			iNdEx++
 18770  			wire |= uint64(b&0x7F) << shift
 18771  			if b < 0x80 {
 18772  				break
 18773  			}
 18774  		}
 18775  		fieldNum := int32(wire >> 3)
 18776  		wireType := int(wire & 0x7)
 18777  		if wireType == 4 {
 18778  			return fmt.Errorf("proto: SnapshotMeta: wiretype end group for non-group")
 18779  		}
 18780  		if fieldNum <= 0 {
 18781  			return fmt.Errorf("proto: SnapshotMeta: illegal tag %d (wire type %d)", fieldNum, wire)
 18782  		}
 18783  		switch fieldNum {
 18784  		case 1:
 18785  			if wireType != 0 {
 18786  				return fmt.Errorf("proto: wrong wireType = %d for field ClientTs", wireType)
 18787  			}
 18788  			m.ClientTs = 0
 18789  			for shift := uint(0); ; shift += 7 {
 18790  				if shift >= 64 {
 18791  					return ErrIntOverflowPb
 18792  				}
 18793  				if iNdEx >= l {
 18794  					return io.ErrUnexpectedEOF
 18795  				}
 18796  				b := dAtA[iNdEx]
 18797  				iNdEx++
 18798  				m.ClientTs |= uint64(b&0x7F) << shift
 18799  				if b < 0x80 {
 18800  					break
 18801  				}
 18802  			}
 18803  		case 2:
 18804  			if wireType != 0 {
 18805  				return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
 18806  			}
 18807  			m.GroupId = 0
 18808  			for shift := uint(0); ; shift += 7 {
 18809  				if shift >= 64 {
 18810  					return ErrIntOverflowPb
 18811  				}
 18812  				if iNdEx >= l {
 18813  					return io.ErrUnexpectedEOF
 18814  				}
 18815  				b := dAtA[iNdEx]
 18816  				iNdEx++
 18817  				m.GroupId |= uint32(b&0x7F) << shift
 18818  				if b < 0x80 {
 18819  					break
 18820  				}
 18821  			}
 18822  		default:
 18823  			iNdEx = preIndex
 18824  			skippy, err := skipPb(dAtA[iNdEx:])
 18825  			if err != nil {
 18826  				return err
 18827  			}
 18828  			if skippy < 0 {
 18829  				return ErrInvalidLengthPb
 18830  			}
 18831  			if (iNdEx + skippy) < 0 {
 18832  				return ErrInvalidLengthPb
 18833  			}
 18834  			if (iNdEx + skippy) > l {
 18835  				return io.ErrUnexpectedEOF
 18836  			}
 18837  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 18838  			iNdEx += skippy
 18839  		}
 18840  	}
 18841  
 18842  	if iNdEx > l {
 18843  		return io.ErrUnexpectedEOF
 18844  	}
 18845  	return nil
 18846  }
 18847  func (m *Status) Unmarshal(dAtA []byte) error {
 18848  	l := len(dAtA)
 18849  	iNdEx := 0
 18850  	for iNdEx < l {
 18851  		preIndex := iNdEx
 18852  		var wire uint64
 18853  		for shift := uint(0); ; shift += 7 {
 18854  			if shift >= 64 {
 18855  				return ErrIntOverflowPb
 18856  			}
 18857  			if iNdEx >= l {
 18858  				return io.ErrUnexpectedEOF
 18859  			}
 18860  			b := dAtA[iNdEx]
 18861  			iNdEx++
 18862  			wire |= uint64(b&0x7F) << shift
 18863  			if b < 0x80 {
 18864  				break
 18865  			}
 18866  		}
 18867  		fieldNum := int32(wire >> 3)
 18868  		wireType := int(wire & 0x7)
 18869  		if wireType == 4 {
 18870  			return fmt.Errorf("proto: Status: wiretype end group for non-group")
 18871  		}
 18872  		if fieldNum <= 0 {
 18873  			return fmt.Errorf("proto: Status: illegal tag %d (wire type %d)", fieldNum, wire)
 18874  		}
 18875  		switch fieldNum {
 18876  		case 1:
 18877  			if wireType != 0 {
 18878  				return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
 18879  			}
 18880  			m.Code = 0
 18881  			for shift := uint(0); ; shift += 7 {
 18882  				if shift >= 64 {
 18883  					return ErrIntOverflowPb
 18884  				}
 18885  				if iNdEx >= l {
 18886  					return io.ErrUnexpectedEOF
 18887  				}
 18888  				b := dAtA[iNdEx]
 18889  				iNdEx++
 18890  				m.Code |= int32(b&0x7F) << shift
 18891  				if b < 0x80 {
 18892  					break
 18893  				}
 18894  			}
 18895  		case 2:
 18896  			if wireType != 2 {
 18897  				return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
 18898  			}
 18899  			var stringLen uint64
 18900  			for shift := uint(0); ; shift += 7 {
 18901  				if shift >= 64 {
 18902  					return ErrIntOverflowPb
 18903  				}
 18904  				if iNdEx >= l {
 18905  					return io.ErrUnexpectedEOF
 18906  				}
 18907  				b := dAtA[iNdEx]
 18908  				iNdEx++
 18909  				stringLen |= uint64(b&0x7F) << shift
 18910  				if b < 0x80 {
 18911  					break
 18912  				}
 18913  			}
 18914  			intStringLen := int(stringLen)
 18915  			if intStringLen < 0 {
 18916  				return ErrInvalidLengthPb
 18917  			}
 18918  			postIndex := iNdEx + intStringLen
 18919  			if postIndex < 0 {
 18920  				return ErrInvalidLengthPb
 18921  			}
 18922  			if postIndex > l {
 18923  				return io.ErrUnexpectedEOF
 18924  			}
 18925  			m.Msg = string(dAtA[iNdEx:postIndex])
 18926  			iNdEx = postIndex
 18927  		default:
 18928  			iNdEx = preIndex
 18929  			skippy, err := skipPb(dAtA[iNdEx:])
 18930  			if err != nil {
 18931  				return err
 18932  			}
 18933  			if skippy < 0 {
 18934  				return ErrInvalidLengthPb
 18935  			}
 18936  			if (iNdEx + skippy) < 0 {
 18937  				return ErrInvalidLengthPb
 18938  			}
 18939  			if (iNdEx + skippy) > l {
 18940  				return io.ErrUnexpectedEOF
 18941  			}
 18942  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 18943  			iNdEx += skippy
 18944  		}
 18945  	}
 18946  
 18947  	if iNdEx > l {
 18948  		return io.ErrUnexpectedEOF
 18949  	}
 18950  	return nil
 18951  }
 18952  func (m *BackupRequest) Unmarshal(dAtA []byte) error {
 18953  	l := len(dAtA)
 18954  	iNdEx := 0
 18955  	for iNdEx < l {
 18956  		preIndex := iNdEx
 18957  		var wire uint64
 18958  		for shift := uint(0); ; shift += 7 {
 18959  			if shift >= 64 {
 18960  				return ErrIntOverflowPb
 18961  			}
 18962  			if iNdEx >= l {
 18963  				return io.ErrUnexpectedEOF
 18964  			}
 18965  			b := dAtA[iNdEx]
 18966  			iNdEx++
 18967  			wire |= uint64(b&0x7F) << shift
 18968  			if b < 0x80 {
 18969  				break
 18970  			}
 18971  		}
 18972  		fieldNum := int32(wire >> 3)
 18973  		wireType := int(wire & 0x7)
 18974  		if wireType == 4 {
 18975  			return fmt.Errorf("proto: BackupRequest: wiretype end group for non-group")
 18976  		}
 18977  		if fieldNum <= 0 {
 18978  			return fmt.Errorf("proto: BackupRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 18979  		}
 18980  		switch fieldNum {
 18981  		case 1:
 18982  			if wireType != 0 {
 18983  				return fmt.Errorf("proto: wrong wireType = %d for field ReadTs", wireType)
 18984  			}
 18985  			m.ReadTs = 0
 18986  			for shift := uint(0); ; shift += 7 {
 18987  				if shift >= 64 {
 18988  					return ErrIntOverflowPb
 18989  				}
 18990  				if iNdEx >= l {
 18991  					return io.ErrUnexpectedEOF
 18992  				}
 18993  				b := dAtA[iNdEx]
 18994  				iNdEx++
 18995  				m.ReadTs |= uint64(b&0x7F) << shift
 18996  				if b < 0x80 {
 18997  					break
 18998  				}
 18999  			}
 19000  		case 2:
 19001  			if wireType != 0 {
 19002  				return fmt.Errorf("proto: wrong wireType = %d for field SinceTs", wireType)
 19003  			}
 19004  			m.SinceTs = 0
 19005  			for shift := uint(0); ; shift += 7 {
 19006  				if shift >= 64 {
 19007  					return ErrIntOverflowPb
 19008  				}
 19009  				if iNdEx >= l {
 19010  					return io.ErrUnexpectedEOF
 19011  				}
 19012  				b := dAtA[iNdEx]
 19013  				iNdEx++
 19014  				m.SinceTs |= uint64(b&0x7F) << shift
 19015  				if b < 0x80 {
 19016  					break
 19017  				}
 19018  			}
 19019  		case 3:
 19020  			if wireType != 0 {
 19021  				return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
 19022  			}
 19023  			m.GroupId = 0
 19024  			for shift := uint(0); ; shift += 7 {
 19025  				if shift >= 64 {
 19026  					return ErrIntOverflowPb
 19027  				}
 19028  				if iNdEx >= l {
 19029  					return io.ErrUnexpectedEOF
 19030  				}
 19031  				b := dAtA[iNdEx]
 19032  				iNdEx++
 19033  				m.GroupId |= uint32(b&0x7F) << shift
 19034  				if b < 0x80 {
 19035  					break
 19036  				}
 19037  			}
 19038  		case 4:
 19039  			if wireType != 2 {
 19040  				return fmt.Errorf("proto: wrong wireType = %d for field UnixTs", wireType)
 19041  			}
 19042  			var stringLen uint64
 19043  			for shift := uint(0); ; shift += 7 {
 19044  				if shift >= 64 {
 19045  					return ErrIntOverflowPb
 19046  				}
 19047  				if iNdEx >= l {
 19048  					return io.ErrUnexpectedEOF
 19049  				}
 19050  				b := dAtA[iNdEx]
 19051  				iNdEx++
 19052  				stringLen |= uint64(b&0x7F) << shift
 19053  				if b < 0x80 {
 19054  					break
 19055  				}
 19056  			}
 19057  			intStringLen := int(stringLen)
 19058  			if intStringLen < 0 {
 19059  				return ErrInvalidLengthPb
 19060  			}
 19061  			postIndex := iNdEx + intStringLen
 19062  			if postIndex < 0 {
 19063  				return ErrInvalidLengthPb
 19064  			}
 19065  			if postIndex > l {
 19066  				return io.ErrUnexpectedEOF
 19067  			}
 19068  			m.UnixTs = string(dAtA[iNdEx:postIndex])
 19069  			iNdEx = postIndex
 19070  		case 5:
 19071  			if wireType != 2 {
 19072  				return fmt.Errorf("proto: wrong wireType = %d for field Destination", wireType)
 19073  			}
 19074  			var stringLen uint64
 19075  			for shift := uint(0); ; shift += 7 {
 19076  				if shift >= 64 {
 19077  					return ErrIntOverflowPb
 19078  				}
 19079  				if iNdEx >= l {
 19080  					return io.ErrUnexpectedEOF
 19081  				}
 19082  				b := dAtA[iNdEx]
 19083  				iNdEx++
 19084  				stringLen |= uint64(b&0x7F) << shift
 19085  				if b < 0x80 {
 19086  					break
 19087  				}
 19088  			}
 19089  			intStringLen := int(stringLen)
 19090  			if intStringLen < 0 {
 19091  				return ErrInvalidLengthPb
 19092  			}
 19093  			postIndex := iNdEx + intStringLen
 19094  			if postIndex < 0 {
 19095  				return ErrInvalidLengthPb
 19096  			}
 19097  			if postIndex > l {
 19098  				return io.ErrUnexpectedEOF
 19099  			}
 19100  			m.Destination = string(dAtA[iNdEx:postIndex])
 19101  			iNdEx = postIndex
 19102  		case 6:
 19103  			if wireType != 2 {
 19104  				return fmt.Errorf("proto: wrong wireType = %d for field AccessKey", wireType)
 19105  			}
 19106  			var stringLen uint64
 19107  			for shift := uint(0); ; shift += 7 {
 19108  				if shift >= 64 {
 19109  					return ErrIntOverflowPb
 19110  				}
 19111  				if iNdEx >= l {
 19112  					return io.ErrUnexpectedEOF
 19113  				}
 19114  				b := dAtA[iNdEx]
 19115  				iNdEx++
 19116  				stringLen |= uint64(b&0x7F) << shift
 19117  				if b < 0x80 {
 19118  					break
 19119  				}
 19120  			}
 19121  			intStringLen := int(stringLen)
 19122  			if intStringLen < 0 {
 19123  				return ErrInvalidLengthPb
 19124  			}
 19125  			postIndex := iNdEx + intStringLen
 19126  			if postIndex < 0 {
 19127  				return ErrInvalidLengthPb
 19128  			}
 19129  			if postIndex > l {
 19130  				return io.ErrUnexpectedEOF
 19131  			}
 19132  			m.AccessKey = string(dAtA[iNdEx:postIndex])
 19133  			iNdEx = postIndex
 19134  		case 7:
 19135  			if wireType != 2 {
 19136  				return fmt.Errorf("proto: wrong wireType = %d for field SecretKey", wireType)
 19137  			}
 19138  			var stringLen uint64
 19139  			for shift := uint(0); ; shift += 7 {
 19140  				if shift >= 64 {
 19141  					return ErrIntOverflowPb
 19142  				}
 19143  				if iNdEx >= l {
 19144  					return io.ErrUnexpectedEOF
 19145  				}
 19146  				b := dAtA[iNdEx]
 19147  				iNdEx++
 19148  				stringLen |= uint64(b&0x7F) << shift
 19149  				if b < 0x80 {
 19150  					break
 19151  				}
 19152  			}
 19153  			intStringLen := int(stringLen)
 19154  			if intStringLen < 0 {
 19155  				return ErrInvalidLengthPb
 19156  			}
 19157  			postIndex := iNdEx + intStringLen
 19158  			if postIndex < 0 {
 19159  				return ErrInvalidLengthPb
 19160  			}
 19161  			if postIndex > l {
 19162  				return io.ErrUnexpectedEOF
 19163  			}
 19164  			m.SecretKey = string(dAtA[iNdEx:postIndex])
 19165  			iNdEx = postIndex
 19166  		case 8:
 19167  			if wireType != 2 {
 19168  				return fmt.Errorf("proto: wrong wireType = %d for field SessionToken", wireType)
 19169  			}
 19170  			var stringLen uint64
 19171  			for shift := uint(0); ; shift += 7 {
 19172  				if shift >= 64 {
 19173  					return ErrIntOverflowPb
 19174  				}
 19175  				if iNdEx >= l {
 19176  					return io.ErrUnexpectedEOF
 19177  				}
 19178  				b := dAtA[iNdEx]
 19179  				iNdEx++
 19180  				stringLen |= uint64(b&0x7F) << shift
 19181  				if b < 0x80 {
 19182  					break
 19183  				}
 19184  			}
 19185  			intStringLen := int(stringLen)
 19186  			if intStringLen < 0 {
 19187  				return ErrInvalidLengthPb
 19188  			}
 19189  			postIndex := iNdEx + intStringLen
 19190  			if postIndex < 0 {
 19191  				return ErrInvalidLengthPb
 19192  			}
 19193  			if postIndex > l {
 19194  				return io.ErrUnexpectedEOF
 19195  			}
 19196  			m.SessionToken = string(dAtA[iNdEx:postIndex])
 19197  			iNdEx = postIndex
 19198  		case 9:
 19199  			if wireType != 0 {
 19200  				return fmt.Errorf("proto: wrong wireType = %d for field Anonymous", wireType)
 19201  			}
 19202  			var v int
 19203  			for shift := uint(0); ; shift += 7 {
 19204  				if shift >= 64 {
 19205  					return ErrIntOverflowPb
 19206  				}
 19207  				if iNdEx >= l {
 19208  					return io.ErrUnexpectedEOF
 19209  				}
 19210  				b := dAtA[iNdEx]
 19211  				iNdEx++
 19212  				v |= int(b&0x7F) << shift
 19213  				if b < 0x80 {
 19214  					break
 19215  				}
 19216  			}
 19217  			m.Anonymous = bool(v != 0)
 19218  		case 10:
 19219  			if wireType != 2 {
 19220  				return fmt.Errorf("proto: wrong wireType = %d for field Predicates", wireType)
 19221  			}
 19222  			var stringLen uint64
 19223  			for shift := uint(0); ; shift += 7 {
 19224  				if shift >= 64 {
 19225  					return ErrIntOverflowPb
 19226  				}
 19227  				if iNdEx >= l {
 19228  					return io.ErrUnexpectedEOF
 19229  				}
 19230  				b := dAtA[iNdEx]
 19231  				iNdEx++
 19232  				stringLen |= uint64(b&0x7F) << shift
 19233  				if b < 0x80 {
 19234  					break
 19235  				}
 19236  			}
 19237  			intStringLen := int(stringLen)
 19238  			if intStringLen < 0 {
 19239  				return ErrInvalidLengthPb
 19240  			}
 19241  			postIndex := iNdEx + intStringLen
 19242  			if postIndex < 0 {
 19243  				return ErrInvalidLengthPb
 19244  			}
 19245  			if postIndex > l {
 19246  				return io.ErrUnexpectedEOF
 19247  			}
 19248  			m.Predicates = append(m.Predicates, string(dAtA[iNdEx:postIndex]))
 19249  			iNdEx = postIndex
 19250  		default:
 19251  			iNdEx = preIndex
 19252  			skippy, err := skipPb(dAtA[iNdEx:])
 19253  			if err != nil {
 19254  				return err
 19255  			}
 19256  			if skippy < 0 {
 19257  				return ErrInvalidLengthPb
 19258  			}
 19259  			if (iNdEx + skippy) < 0 {
 19260  				return ErrInvalidLengthPb
 19261  			}
 19262  			if (iNdEx + skippy) > l {
 19263  				return io.ErrUnexpectedEOF
 19264  			}
 19265  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 19266  			iNdEx += skippy
 19267  		}
 19268  	}
 19269  
 19270  	if iNdEx > l {
 19271  		return io.ErrUnexpectedEOF
 19272  	}
 19273  	return nil
 19274  }
 19275  func (m *ExportRequest) Unmarshal(dAtA []byte) error {
 19276  	l := len(dAtA)
 19277  	iNdEx := 0
 19278  	for iNdEx < l {
 19279  		preIndex := iNdEx
 19280  		var wire uint64
 19281  		for shift := uint(0); ; shift += 7 {
 19282  			if shift >= 64 {
 19283  				return ErrIntOverflowPb
 19284  			}
 19285  			if iNdEx >= l {
 19286  				return io.ErrUnexpectedEOF
 19287  			}
 19288  			b := dAtA[iNdEx]
 19289  			iNdEx++
 19290  			wire |= uint64(b&0x7F) << shift
 19291  			if b < 0x80 {
 19292  				break
 19293  			}
 19294  		}
 19295  		fieldNum := int32(wire >> 3)
 19296  		wireType := int(wire & 0x7)
 19297  		if wireType == 4 {
 19298  			return fmt.Errorf("proto: ExportRequest: wiretype end group for non-group")
 19299  		}
 19300  		if fieldNum <= 0 {
 19301  			return fmt.Errorf("proto: ExportRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 19302  		}
 19303  		switch fieldNum {
 19304  		case 1:
 19305  			if wireType != 0 {
 19306  				return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
 19307  			}
 19308  			m.GroupId = 0
 19309  			for shift := uint(0); ; shift += 7 {
 19310  				if shift >= 64 {
 19311  					return ErrIntOverflowPb
 19312  				}
 19313  				if iNdEx >= l {
 19314  					return io.ErrUnexpectedEOF
 19315  				}
 19316  				b := dAtA[iNdEx]
 19317  				iNdEx++
 19318  				m.GroupId |= uint32(b&0x7F) << shift
 19319  				if b < 0x80 {
 19320  					break
 19321  				}
 19322  			}
 19323  		case 2:
 19324  			if wireType != 0 {
 19325  				return fmt.Errorf("proto: wrong wireType = %d for field ReadTs", wireType)
 19326  			}
 19327  			m.ReadTs = 0
 19328  			for shift := uint(0); ; shift += 7 {
 19329  				if shift >= 64 {
 19330  					return ErrIntOverflowPb
 19331  				}
 19332  				if iNdEx >= l {
 19333  					return io.ErrUnexpectedEOF
 19334  				}
 19335  				b := dAtA[iNdEx]
 19336  				iNdEx++
 19337  				m.ReadTs |= uint64(b&0x7F) << shift
 19338  				if b < 0x80 {
 19339  					break
 19340  				}
 19341  			}
 19342  		case 3:
 19343  			if wireType != 0 {
 19344  				return fmt.Errorf("proto: wrong wireType = %d for field UnixTs", wireType)
 19345  			}
 19346  			m.UnixTs = 0
 19347  			for shift := uint(0); ; shift += 7 {
 19348  				if shift >= 64 {
 19349  					return ErrIntOverflowPb
 19350  				}
 19351  				if iNdEx >= l {
 19352  					return io.ErrUnexpectedEOF
 19353  				}
 19354  				b := dAtA[iNdEx]
 19355  				iNdEx++
 19356  				m.UnixTs |= int64(b&0x7F) << shift
 19357  				if b < 0x80 {
 19358  					break
 19359  				}
 19360  			}
 19361  		case 4:
 19362  			if wireType != 2 {
 19363  				return fmt.Errorf("proto: wrong wireType = %d for field Format", wireType)
 19364  			}
 19365  			var stringLen uint64
 19366  			for shift := uint(0); ; shift += 7 {
 19367  				if shift >= 64 {
 19368  					return ErrIntOverflowPb
 19369  				}
 19370  				if iNdEx >= l {
 19371  					return io.ErrUnexpectedEOF
 19372  				}
 19373  				b := dAtA[iNdEx]
 19374  				iNdEx++
 19375  				stringLen |= uint64(b&0x7F) << shift
 19376  				if b < 0x80 {
 19377  					break
 19378  				}
 19379  			}
 19380  			intStringLen := int(stringLen)
 19381  			if intStringLen < 0 {
 19382  				return ErrInvalidLengthPb
 19383  			}
 19384  			postIndex := iNdEx + intStringLen
 19385  			if postIndex < 0 {
 19386  				return ErrInvalidLengthPb
 19387  			}
 19388  			if postIndex > l {
 19389  				return io.ErrUnexpectedEOF
 19390  			}
 19391  			m.Format = string(dAtA[iNdEx:postIndex])
 19392  			iNdEx = postIndex
 19393  		default:
 19394  			iNdEx = preIndex
 19395  			skippy, err := skipPb(dAtA[iNdEx:])
 19396  			if err != nil {
 19397  				return err
 19398  			}
 19399  			if skippy < 0 {
 19400  				return ErrInvalidLengthPb
 19401  			}
 19402  			if (iNdEx + skippy) < 0 {
 19403  				return ErrInvalidLengthPb
 19404  			}
 19405  			if (iNdEx + skippy) > l {
 19406  				return io.ErrUnexpectedEOF
 19407  			}
 19408  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 19409  			iNdEx += skippy
 19410  		}
 19411  	}
 19412  
 19413  	if iNdEx > l {
 19414  		return io.ErrUnexpectedEOF
 19415  	}
 19416  	return nil
 19417  }
 19418  func (m *BackupKey) Unmarshal(dAtA []byte) error {
 19419  	l := len(dAtA)
 19420  	iNdEx := 0
 19421  	for iNdEx < l {
 19422  		preIndex := iNdEx
 19423  		var wire uint64
 19424  		for shift := uint(0); ; shift += 7 {
 19425  			if shift >= 64 {
 19426  				return ErrIntOverflowPb
 19427  			}
 19428  			if iNdEx >= l {
 19429  				return io.ErrUnexpectedEOF
 19430  			}
 19431  			b := dAtA[iNdEx]
 19432  			iNdEx++
 19433  			wire |= uint64(b&0x7F) << shift
 19434  			if b < 0x80 {
 19435  				break
 19436  			}
 19437  		}
 19438  		fieldNum := int32(wire >> 3)
 19439  		wireType := int(wire & 0x7)
 19440  		if wireType == 4 {
 19441  			return fmt.Errorf("proto: BackupKey: wiretype end group for non-group")
 19442  		}
 19443  		if fieldNum <= 0 {
 19444  			return fmt.Errorf("proto: BackupKey: illegal tag %d (wire type %d)", fieldNum, wire)
 19445  		}
 19446  		switch fieldNum {
 19447  		case 1:
 19448  			if wireType != 0 {
 19449  				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
 19450  			}
 19451  			m.Type = 0
 19452  			for shift := uint(0); ; shift += 7 {
 19453  				if shift >= 64 {
 19454  					return ErrIntOverflowPb
 19455  				}
 19456  				if iNdEx >= l {
 19457  					return io.ErrUnexpectedEOF
 19458  				}
 19459  				b := dAtA[iNdEx]
 19460  				iNdEx++
 19461  				m.Type |= BackupKey_KeyType(b&0x7F) << shift
 19462  				if b < 0x80 {
 19463  					break
 19464  				}
 19465  			}
 19466  		case 2:
 19467  			if wireType != 2 {
 19468  				return fmt.Errorf("proto: wrong wireType = %d for field Attr", wireType)
 19469  			}
 19470  			var stringLen uint64
 19471  			for shift := uint(0); ; shift += 7 {
 19472  				if shift >= 64 {
 19473  					return ErrIntOverflowPb
 19474  				}
 19475  				if iNdEx >= l {
 19476  					return io.ErrUnexpectedEOF
 19477  				}
 19478  				b := dAtA[iNdEx]
 19479  				iNdEx++
 19480  				stringLen |= uint64(b&0x7F) << shift
 19481  				if b < 0x80 {
 19482  					break
 19483  				}
 19484  			}
 19485  			intStringLen := int(stringLen)
 19486  			if intStringLen < 0 {
 19487  				return ErrInvalidLengthPb
 19488  			}
 19489  			postIndex := iNdEx + intStringLen
 19490  			if postIndex < 0 {
 19491  				return ErrInvalidLengthPb
 19492  			}
 19493  			if postIndex > l {
 19494  				return io.ErrUnexpectedEOF
 19495  			}
 19496  			m.Attr = string(dAtA[iNdEx:postIndex])
 19497  			iNdEx = postIndex
 19498  		case 3:
 19499  			if wireType != 0 {
 19500  				return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
 19501  			}
 19502  			m.Uid = 0
 19503  			for shift := uint(0); ; shift += 7 {
 19504  				if shift >= 64 {
 19505  					return ErrIntOverflowPb
 19506  				}
 19507  				if iNdEx >= l {
 19508  					return io.ErrUnexpectedEOF
 19509  				}
 19510  				b := dAtA[iNdEx]
 19511  				iNdEx++
 19512  				m.Uid |= uint64(b&0x7F) << shift
 19513  				if b < 0x80 {
 19514  					break
 19515  				}
 19516  			}
 19517  		case 4:
 19518  			if wireType != 0 {
 19519  				return fmt.Errorf("proto: wrong wireType = %d for field StartUid", wireType)
 19520  			}
 19521  			m.StartUid = 0
 19522  			for shift := uint(0); ; shift += 7 {
 19523  				if shift >= 64 {
 19524  					return ErrIntOverflowPb
 19525  				}
 19526  				if iNdEx >= l {
 19527  					return io.ErrUnexpectedEOF
 19528  				}
 19529  				b := dAtA[iNdEx]
 19530  				iNdEx++
 19531  				m.StartUid |= uint64(b&0x7F) << shift
 19532  				if b < 0x80 {
 19533  					break
 19534  				}
 19535  			}
 19536  		case 5:
 19537  			if wireType != 2 {
 19538  				return fmt.Errorf("proto: wrong wireType = %d for field Term", wireType)
 19539  			}
 19540  			var stringLen uint64
 19541  			for shift := uint(0); ; shift += 7 {
 19542  				if shift >= 64 {
 19543  					return ErrIntOverflowPb
 19544  				}
 19545  				if iNdEx >= l {
 19546  					return io.ErrUnexpectedEOF
 19547  				}
 19548  				b := dAtA[iNdEx]
 19549  				iNdEx++
 19550  				stringLen |= uint64(b&0x7F) << shift
 19551  				if b < 0x80 {
 19552  					break
 19553  				}
 19554  			}
 19555  			intStringLen := int(stringLen)
 19556  			if intStringLen < 0 {
 19557  				return ErrInvalidLengthPb
 19558  			}
 19559  			postIndex := iNdEx + intStringLen
 19560  			if postIndex < 0 {
 19561  				return ErrInvalidLengthPb
 19562  			}
 19563  			if postIndex > l {
 19564  				return io.ErrUnexpectedEOF
 19565  			}
 19566  			m.Term = string(dAtA[iNdEx:postIndex])
 19567  			iNdEx = postIndex
 19568  		case 6:
 19569  			if wireType != 0 {
 19570  				return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType)
 19571  			}
 19572  			m.Count = 0
 19573  			for shift := uint(0); ; shift += 7 {
 19574  				if shift >= 64 {
 19575  					return ErrIntOverflowPb
 19576  				}
 19577  				if iNdEx >= l {
 19578  					return io.ErrUnexpectedEOF
 19579  				}
 19580  				b := dAtA[iNdEx]
 19581  				iNdEx++
 19582  				m.Count |= uint32(b&0x7F) << shift
 19583  				if b < 0x80 {
 19584  					break
 19585  				}
 19586  			}
 19587  		default:
 19588  			iNdEx = preIndex
 19589  			skippy, err := skipPb(dAtA[iNdEx:])
 19590  			if err != nil {
 19591  				return err
 19592  			}
 19593  			if skippy < 0 {
 19594  				return ErrInvalidLengthPb
 19595  			}
 19596  			if (iNdEx + skippy) < 0 {
 19597  				return ErrInvalidLengthPb
 19598  			}
 19599  			if (iNdEx + skippy) > l {
 19600  				return io.ErrUnexpectedEOF
 19601  			}
 19602  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 19603  			iNdEx += skippy
 19604  		}
 19605  	}
 19606  
 19607  	if iNdEx > l {
 19608  		return io.ErrUnexpectedEOF
 19609  	}
 19610  	return nil
 19611  }
 19612  func (m *BackupPostingList) Unmarshal(dAtA []byte) error {
 19613  	l := len(dAtA)
 19614  	iNdEx := 0
 19615  	for iNdEx < l {
 19616  		preIndex := iNdEx
 19617  		var wire uint64
 19618  		for shift := uint(0); ; shift += 7 {
 19619  			if shift >= 64 {
 19620  				return ErrIntOverflowPb
 19621  			}
 19622  			if iNdEx >= l {
 19623  				return io.ErrUnexpectedEOF
 19624  			}
 19625  			b := dAtA[iNdEx]
 19626  			iNdEx++
 19627  			wire |= uint64(b&0x7F) << shift
 19628  			if b < 0x80 {
 19629  				break
 19630  			}
 19631  		}
 19632  		fieldNum := int32(wire >> 3)
 19633  		wireType := int(wire & 0x7)
 19634  		if wireType == 4 {
 19635  			return fmt.Errorf("proto: BackupPostingList: wiretype end group for non-group")
 19636  		}
 19637  		if fieldNum <= 0 {
 19638  			return fmt.Errorf("proto: BackupPostingList: illegal tag %d (wire type %d)", fieldNum, wire)
 19639  		}
 19640  		switch fieldNum {
 19641  		case 1:
 19642  			if wireType == 0 {
 19643  				var v uint64
 19644  				for shift := uint(0); ; shift += 7 {
 19645  					if shift >= 64 {
 19646  						return ErrIntOverflowPb
 19647  					}
 19648  					if iNdEx >= l {
 19649  						return io.ErrUnexpectedEOF
 19650  					}
 19651  					b := dAtA[iNdEx]
 19652  					iNdEx++
 19653  					v |= uint64(b&0x7F) << shift
 19654  					if b < 0x80 {
 19655  						break
 19656  					}
 19657  				}
 19658  				m.Uids = append(m.Uids, v)
 19659  			} else if wireType == 2 {
 19660  				var packedLen int
 19661  				for shift := uint(0); ; shift += 7 {
 19662  					if shift >= 64 {
 19663  						return ErrIntOverflowPb
 19664  					}
 19665  					if iNdEx >= l {
 19666  						return io.ErrUnexpectedEOF
 19667  					}
 19668  					b := dAtA[iNdEx]
 19669  					iNdEx++
 19670  					packedLen |= int(b&0x7F) << shift
 19671  					if b < 0x80 {
 19672  						break
 19673  					}
 19674  				}
 19675  				if packedLen < 0 {
 19676  					return ErrInvalidLengthPb
 19677  				}
 19678  				postIndex := iNdEx + packedLen
 19679  				if postIndex < 0 {
 19680  					return ErrInvalidLengthPb
 19681  				}
 19682  				if postIndex > l {
 19683  					return io.ErrUnexpectedEOF
 19684  				}
 19685  				var elementCount int
 19686  				var count int
 19687  				for _, integer := range dAtA[iNdEx:postIndex] {
 19688  					if integer < 128 {
 19689  						count++
 19690  					}
 19691  				}
 19692  				elementCount = count
 19693  				if elementCount != 0 && len(m.Uids) == 0 {
 19694  					m.Uids = make([]uint64, 0, elementCount)
 19695  				}
 19696  				for iNdEx < postIndex {
 19697  					var v uint64
 19698  					for shift := uint(0); ; shift += 7 {
 19699  						if shift >= 64 {
 19700  							return ErrIntOverflowPb
 19701  						}
 19702  						if iNdEx >= l {
 19703  							return io.ErrUnexpectedEOF
 19704  						}
 19705  						b := dAtA[iNdEx]
 19706  						iNdEx++
 19707  						v |= uint64(b&0x7F) << shift
 19708  						if b < 0x80 {
 19709  							break
 19710  						}
 19711  					}
 19712  					m.Uids = append(m.Uids, v)
 19713  				}
 19714  			} else {
 19715  				return fmt.Errorf("proto: wrong wireType = %d for field Uids", wireType)
 19716  			}
 19717  		case 2:
 19718  			if wireType != 2 {
 19719  				return fmt.Errorf("proto: wrong wireType = %d for field Postings", wireType)
 19720  			}
 19721  			var msglen int
 19722  			for shift := uint(0); ; shift += 7 {
 19723  				if shift >= 64 {
 19724  					return ErrIntOverflowPb
 19725  				}
 19726  				if iNdEx >= l {
 19727  					return io.ErrUnexpectedEOF
 19728  				}
 19729  				b := dAtA[iNdEx]
 19730  				iNdEx++
 19731  				msglen |= int(b&0x7F) << shift
 19732  				if b < 0x80 {
 19733  					break
 19734  				}
 19735  			}
 19736  			if msglen < 0 {
 19737  				return ErrInvalidLengthPb
 19738  			}
 19739  			postIndex := iNdEx + msglen
 19740  			if postIndex < 0 {
 19741  				return ErrInvalidLengthPb
 19742  			}
 19743  			if postIndex > l {
 19744  				return io.ErrUnexpectedEOF
 19745  			}
 19746  			m.Postings = append(m.Postings, &Posting{})
 19747  			if err := m.Postings[len(m.Postings)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 19748  				return err
 19749  			}
 19750  			iNdEx = postIndex
 19751  		case 3:
 19752  			if wireType != 0 {
 19753  				return fmt.Errorf("proto: wrong wireType = %d for field CommitTs", wireType)
 19754  			}
 19755  			m.CommitTs = 0
 19756  			for shift := uint(0); ; shift += 7 {
 19757  				if shift >= 64 {
 19758  					return ErrIntOverflowPb
 19759  				}
 19760  				if iNdEx >= l {
 19761  					return io.ErrUnexpectedEOF
 19762  				}
 19763  				b := dAtA[iNdEx]
 19764  				iNdEx++
 19765  				m.CommitTs |= uint64(b&0x7F) << shift
 19766  				if b < 0x80 {
 19767  					break
 19768  				}
 19769  			}
 19770  		case 4:
 19771  			if wireType == 0 {
 19772  				var v uint64
 19773  				for shift := uint(0); ; shift += 7 {
 19774  					if shift >= 64 {
 19775  						return ErrIntOverflowPb
 19776  					}
 19777  					if iNdEx >= l {
 19778  						return io.ErrUnexpectedEOF
 19779  					}
 19780  					b := dAtA[iNdEx]
 19781  					iNdEx++
 19782  					v |= uint64(b&0x7F) << shift
 19783  					if b < 0x80 {
 19784  						break
 19785  					}
 19786  				}
 19787  				m.Splits = append(m.Splits, v)
 19788  			} else if wireType == 2 {
 19789  				var packedLen int
 19790  				for shift := uint(0); ; shift += 7 {
 19791  					if shift >= 64 {
 19792  						return ErrIntOverflowPb
 19793  					}
 19794  					if iNdEx >= l {
 19795  						return io.ErrUnexpectedEOF
 19796  					}
 19797  					b := dAtA[iNdEx]
 19798  					iNdEx++
 19799  					packedLen |= int(b&0x7F) << shift
 19800  					if b < 0x80 {
 19801  						break
 19802  					}
 19803  				}
 19804  				if packedLen < 0 {
 19805  					return ErrInvalidLengthPb
 19806  				}
 19807  				postIndex := iNdEx + packedLen
 19808  				if postIndex < 0 {
 19809  					return ErrInvalidLengthPb
 19810  				}
 19811  				if postIndex > l {
 19812  					return io.ErrUnexpectedEOF
 19813  				}
 19814  				var elementCount int
 19815  				var count int
 19816  				for _, integer := range dAtA[iNdEx:postIndex] {
 19817  					if integer < 128 {
 19818  						count++
 19819  					}
 19820  				}
 19821  				elementCount = count
 19822  				if elementCount != 0 && len(m.Splits) == 0 {
 19823  					m.Splits = make([]uint64, 0, elementCount)
 19824  				}
 19825  				for iNdEx < postIndex {
 19826  					var v uint64
 19827  					for shift := uint(0); ; shift += 7 {
 19828  						if shift >= 64 {
 19829  							return ErrIntOverflowPb
 19830  						}
 19831  						if iNdEx >= l {
 19832  							return io.ErrUnexpectedEOF
 19833  						}
 19834  						b := dAtA[iNdEx]
 19835  						iNdEx++
 19836  						v |= uint64(b&0x7F) << shift
 19837  						if b < 0x80 {
 19838  							break
 19839  						}
 19840  					}
 19841  					m.Splits = append(m.Splits, v)
 19842  				}
 19843  			} else {
 19844  				return fmt.Errorf("proto: wrong wireType = %d for field Splits", wireType)
 19845  			}
 19846  		default:
 19847  			iNdEx = preIndex
 19848  			skippy, err := skipPb(dAtA[iNdEx:])
 19849  			if err != nil {
 19850  				return err
 19851  			}
 19852  			if skippy < 0 {
 19853  				return ErrInvalidLengthPb
 19854  			}
 19855  			if (iNdEx + skippy) < 0 {
 19856  				return ErrInvalidLengthPb
 19857  			}
 19858  			if (iNdEx + skippy) > l {
 19859  				return io.ErrUnexpectedEOF
 19860  			}
 19861  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
 19862  			iNdEx += skippy
 19863  		}
 19864  	}
 19865  
 19866  	if iNdEx > l {
 19867  		return io.ErrUnexpectedEOF
 19868  	}
 19869  	return nil
 19870  }
 19871  func skipPb(dAtA []byte) (n int, err error) {
 19872  	l := len(dAtA)
 19873  	iNdEx := 0
 19874  	for iNdEx < l {
 19875  		var wire uint64
 19876  		for shift := uint(0); ; shift += 7 {
 19877  			if shift >= 64 {
 19878  				return 0, ErrIntOverflowPb
 19879  			}
 19880  			if iNdEx >= l {
 19881  				return 0, io.ErrUnexpectedEOF
 19882  			}
 19883  			b := dAtA[iNdEx]
 19884  			iNdEx++
 19885  			wire |= (uint64(b) & 0x7F) << shift
 19886  			if b < 0x80 {
 19887  				break
 19888  			}
 19889  		}
 19890  		wireType := int(wire & 0x7)
 19891  		switch wireType {
 19892  		case 0:
 19893  			for shift := uint(0); ; shift += 7 {
 19894  				if shift >= 64 {
 19895  					return 0, ErrIntOverflowPb
 19896  				}
 19897  				if iNdEx >= l {
 19898  					return 0, io.ErrUnexpectedEOF
 19899  				}
 19900  				iNdEx++
 19901  				if dAtA[iNdEx-1] < 0x80 {
 19902  					break
 19903  				}
 19904  			}
 19905  			return iNdEx, nil
 19906  		case 1:
 19907  			iNdEx += 8
 19908  			return iNdEx, nil
 19909  		case 2:
 19910  			var length int
 19911  			for shift := uint(0); ; shift += 7 {
 19912  				if shift >= 64 {
 19913  					return 0, ErrIntOverflowPb
 19914  				}
 19915  				if iNdEx >= l {
 19916  					return 0, io.ErrUnexpectedEOF
 19917  				}
 19918  				b := dAtA[iNdEx]
 19919  				iNdEx++
 19920  				length |= (int(b) & 0x7F) << shift
 19921  				if b < 0x80 {
 19922  					break
 19923  				}
 19924  			}
 19925  			if length < 0 {
 19926  				return 0, ErrInvalidLengthPb
 19927  			}
 19928  			iNdEx += length
 19929  			if iNdEx < 0 {
 19930  				return 0, ErrInvalidLengthPb
 19931  			}
 19932  			return iNdEx, nil
 19933  		case 3:
 19934  			for {
 19935  				var innerWire uint64
 19936  				var start int = iNdEx
 19937  				for shift := uint(0); ; shift += 7 {
 19938  					if shift >= 64 {
 19939  						return 0, ErrIntOverflowPb
 19940  					}
 19941  					if iNdEx >= l {
 19942  						return 0, io.ErrUnexpectedEOF
 19943  					}
 19944  					b := dAtA[iNdEx]
 19945  					iNdEx++
 19946  					innerWire |= (uint64(b) & 0x7F) << shift
 19947  					if b < 0x80 {
 19948  						break
 19949  					}
 19950  				}
 19951  				innerWireType := int(innerWire & 0x7)
 19952  				if innerWireType == 4 {
 19953  					break
 19954  				}
 19955  				next, err := skipPb(dAtA[start:])
 19956  				if err != nil {
 19957  					return 0, err
 19958  				}
 19959  				iNdEx = start + next
 19960  				if iNdEx < 0 {
 19961  					return 0, ErrInvalidLengthPb
 19962  				}
 19963  			}
 19964  			return iNdEx, nil
 19965  		case 4:
 19966  			return iNdEx, nil
 19967  		case 5:
 19968  			iNdEx += 4
 19969  			return iNdEx, nil
 19970  		default:
 19971  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
 19972  		}
 19973  	}
 19974  	panic("unreachable")
 19975  }
 19976  
 19977  var (
 19978  	ErrInvalidLengthPb = fmt.Errorf("proto: negative length found during unmarshaling")
 19979  	ErrIntOverflowPb   = fmt.Errorf("proto: integer overflow")
 19980  )