github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/libs/tm-db/remotedb/proto/defs.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: remotedb/proto/defs.proto
     3  
     4  package protodb
     5  
     6  import (
     7  	bytes "bytes"
     8  	context "context"
     9  	fmt "fmt"
    10  	_ "github.com/gogo/protobuf/gogoproto"
    11  	proto "github.com/gogo/protobuf/proto"
    12  	grpc "google.golang.org/grpc"
    13  	codes "google.golang.org/grpc/codes"
    14  	status "google.golang.org/grpc/status"
    15  	math "math"
    16  )
    17  
    18  // Reference imports to suppress errors if they are not otherwise used.
    19  var _ = proto.Marshal
    20  var _ = fmt.Errorf
    21  var _ = math.Inf
    22  
    23  // This is a compile-time assertion to ensure that this generated file
    24  // is compatible with the proto package it is being compiled against.
    25  // A compilation error at this line likely means your copy of the
    26  // proto package needs to be updated.
    27  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    28  
    29  type Operation_Type int32
    30  
    31  const (
    32  	Operation_SET    Operation_Type = 0
    33  	Operation_DELETE Operation_Type = 1
    34  )
    35  
    36  var Operation_Type_name = map[int32]string{
    37  	0: "SET",
    38  	1: "DELETE",
    39  }
    40  
    41  var Operation_Type_value = map[string]int32{
    42  	"SET":    0,
    43  	"DELETE": 1,
    44  }
    45  
    46  func (x Operation_Type) String() string {
    47  	return proto.EnumName(Operation_Type_name, int32(x))
    48  }
    49  
    50  func (Operation_Type) EnumDescriptor() ([]byte, []int) {
    51  	return fileDescriptor_ef1eada6618d0075, []int{1, 0}
    52  }
    53  
    54  type Batch struct {
    55  	Ops                  []*Operation `protobuf:"bytes,1,rep,name=ops,proto3" json:"ops,omitempty"`
    56  	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
    57  	XXX_unrecognized     []byte       `json:"-"`
    58  	XXX_sizecache        int32        `json:"-"`
    59  }
    60  
    61  func (m *Batch) Reset()         { *m = Batch{} }
    62  func (m *Batch) String() string { return proto.CompactTextString(m) }
    63  func (*Batch) ProtoMessage()    {}
    64  func (*Batch) Descriptor() ([]byte, []int) {
    65  	return fileDescriptor_ef1eada6618d0075, []int{0}
    66  }
    67  func (m *Batch) XXX_Unmarshal(b []byte) error {
    68  	return xxx_messageInfo_Batch.Unmarshal(m, b)
    69  }
    70  func (m *Batch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    71  	return xxx_messageInfo_Batch.Marshal(b, m, deterministic)
    72  }
    73  func (m *Batch) XXX_Merge(src proto.Message) {
    74  	xxx_messageInfo_Batch.Merge(m, src)
    75  }
    76  func (m *Batch) XXX_Size() int {
    77  	return xxx_messageInfo_Batch.Size(m)
    78  }
    79  func (m *Batch) XXX_DiscardUnknown() {
    80  	xxx_messageInfo_Batch.DiscardUnknown(m)
    81  }
    82  
    83  var xxx_messageInfo_Batch proto.InternalMessageInfo
    84  
    85  func (m *Batch) GetOps() []*Operation {
    86  	if m != nil {
    87  		return m.Ops
    88  	}
    89  	return nil
    90  }
    91  
    92  type Operation struct {
    93  	Entity               *Entity        `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
    94  	Type                 Operation_Type `protobuf:"varint,2,opt,name=type,proto3,enum=protodb.Operation_Type" json:"type,omitempty"`
    95  	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
    96  	XXX_unrecognized     []byte         `json:"-"`
    97  	XXX_sizecache        int32          `json:"-"`
    98  }
    99  
   100  func (m *Operation) Reset()         { *m = Operation{} }
   101  func (m *Operation) String() string { return proto.CompactTextString(m) }
   102  func (*Operation) ProtoMessage()    {}
   103  func (*Operation) Descriptor() ([]byte, []int) {
   104  	return fileDescriptor_ef1eada6618d0075, []int{1}
   105  }
   106  func (m *Operation) XXX_Unmarshal(b []byte) error {
   107  	return xxx_messageInfo_Operation.Unmarshal(m, b)
   108  }
   109  func (m *Operation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   110  	return xxx_messageInfo_Operation.Marshal(b, m, deterministic)
   111  }
   112  func (m *Operation) XXX_Merge(src proto.Message) {
   113  	xxx_messageInfo_Operation.Merge(m, src)
   114  }
   115  func (m *Operation) XXX_Size() int {
   116  	return xxx_messageInfo_Operation.Size(m)
   117  }
   118  func (m *Operation) XXX_DiscardUnknown() {
   119  	xxx_messageInfo_Operation.DiscardUnknown(m)
   120  }
   121  
   122  var xxx_messageInfo_Operation proto.InternalMessageInfo
   123  
   124  func (m *Operation) GetEntity() *Entity {
   125  	if m != nil {
   126  		return m.Entity
   127  	}
   128  	return nil
   129  }
   130  
   131  func (m *Operation) GetType() Operation_Type {
   132  	if m != nil {
   133  		return m.Type
   134  	}
   135  	return Operation_SET
   136  }
   137  
   138  type Entity struct {
   139  	Id                   int32    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
   140  	Key                  []byte   `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
   141  	Value                []byte   `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
   142  	Exists               bool     `protobuf:"varint,4,opt,name=exists,proto3" json:"exists,omitempty"`
   143  	Start                []byte   `protobuf:"bytes,5,opt,name=start,proto3" json:"start,omitempty"`
   144  	End                  []byte   `protobuf:"bytes,6,opt,name=end,proto3" json:"end,omitempty"`
   145  	Err                  string   `protobuf:"bytes,7,opt,name=err,proto3" json:"err,omitempty"`
   146  	CreatedAt            int64    `protobuf:"varint,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
   147  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   148  	XXX_unrecognized     []byte   `json:"-"`
   149  	XXX_sizecache        int32    `json:"-"`
   150  }
   151  
   152  func (m *Entity) Reset()         { *m = Entity{} }
   153  func (m *Entity) String() string { return proto.CompactTextString(m) }
   154  func (*Entity) ProtoMessage()    {}
   155  func (*Entity) Descriptor() ([]byte, []int) {
   156  	return fileDescriptor_ef1eada6618d0075, []int{2}
   157  }
   158  func (m *Entity) XXX_Unmarshal(b []byte) error {
   159  	return xxx_messageInfo_Entity.Unmarshal(m, b)
   160  }
   161  func (m *Entity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   162  	return xxx_messageInfo_Entity.Marshal(b, m, deterministic)
   163  }
   164  func (m *Entity) XXX_Merge(src proto.Message) {
   165  	xxx_messageInfo_Entity.Merge(m, src)
   166  }
   167  func (m *Entity) XXX_Size() int {
   168  	return xxx_messageInfo_Entity.Size(m)
   169  }
   170  func (m *Entity) XXX_DiscardUnknown() {
   171  	xxx_messageInfo_Entity.DiscardUnknown(m)
   172  }
   173  
   174  var xxx_messageInfo_Entity proto.InternalMessageInfo
   175  
   176  func (m *Entity) GetId() int32 {
   177  	if m != nil {
   178  		return m.Id
   179  	}
   180  	return 0
   181  }
   182  
   183  func (m *Entity) GetKey() []byte {
   184  	if m != nil {
   185  		return m.Key
   186  	}
   187  	return nil
   188  }
   189  
   190  func (m *Entity) GetValue() []byte {
   191  	if m != nil {
   192  		return m.Value
   193  	}
   194  	return nil
   195  }
   196  
   197  func (m *Entity) GetExists() bool {
   198  	if m != nil {
   199  		return m.Exists
   200  	}
   201  	return false
   202  }
   203  
   204  func (m *Entity) GetStart() []byte {
   205  	if m != nil {
   206  		return m.Start
   207  	}
   208  	return nil
   209  }
   210  
   211  func (m *Entity) GetEnd() []byte {
   212  	if m != nil {
   213  		return m.End
   214  	}
   215  	return nil
   216  }
   217  
   218  func (m *Entity) GetErr() string {
   219  	if m != nil {
   220  		return m.Err
   221  	}
   222  	return ""
   223  }
   224  
   225  func (m *Entity) GetCreatedAt() int64 {
   226  	if m != nil {
   227  		return m.CreatedAt
   228  	}
   229  	return 0
   230  }
   231  
   232  type Nothing struct {
   233  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   234  	XXX_unrecognized     []byte   `json:"-"`
   235  	XXX_sizecache        int32    `json:"-"`
   236  }
   237  
   238  func (m *Nothing) Reset()         { *m = Nothing{} }
   239  func (m *Nothing) String() string { return proto.CompactTextString(m) }
   240  func (*Nothing) ProtoMessage()    {}
   241  func (*Nothing) Descriptor() ([]byte, []int) {
   242  	return fileDescriptor_ef1eada6618d0075, []int{3}
   243  }
   244  func (m *Nothing) XXX_Unmarshal(b []byte) error {
   245  	return xxx_messageInfo_Nothing.Unmarshal(m, b)
   246  }
   247  func (m *Nothing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   248  	return xxx_messageInfo_Nothing.Marshal(b, m, deterministic)
   249  }
   250  func (m *Nothing) XXX_Merge(src proto.Message) {
   251  	xxx_messageInfo_Nothing.Merge(m, src)
   252  }
   253  func (m *Nothing) XXX_Size() int {
   254  	return xxx_messageInfo_Nothing.Size(m)
   255  }
   256  func (m *Nothing) XXX_DiscardUnknown() {
   257  	xxx_messageInfo_Nothing.DiscardUnknown(m)
   258  }
   259  
   260  var xxx_messageInfo_Nothing proto.InternalMessageInfo
   261  
   262  type Domain struct {
   263  	Start                []byte   `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"`
   264  	End                  []byte   `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"`
   265  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   266  	XXX_unrecognized     []byte   `json:"-"`
   267  	XXX_sizecache        int32    `json:"-"`
   268  }
   269  
   270  func (m *Domain) Reset()         { *m = Domain{} }
   271  func (m *Domain) String() string { return proto.CompactTextString(m) }
   272  func (*Domain) ProtoMessage()    {}
   273  func (*Domain) Descriptor() ([]byte, []int) {
   274  	return fileDescriptor_ef1eada6618d0075, []int{4}
   275  }
   276  func (m *Domain) XXX_Unmarshal(b []byte) error {
   277  	return xxx_messageInfo_Domain.Unmarshal(m, b)
   278  }
   279  func (m *Domain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   280  	return xxx_messageInfo_Domain.Marshal(b, m, deterministic)
   281  }
   282  func (m *Domain) XXX_Merge(src proto.Message) {
   283  	xxx_messageInfo_Domain.Merge(m, src)
   284  }
   285  func (m *Domain) XXX_Size() int {
   286  	return xxx_messageInfo_Domain.Size(m)
   287  }
   288  func (m *Domain) XXX_DiscardUnknown() {
   289  	xxx_messageInfo_Domain.DiscardUnknown(m)
   290  }
   291  
   292  var xxx_messageInfo_Domain proto.InternalMessageInfo
   293  
   294  func (m *Domain) GetStart() []byte {
   295  	if m != nil {
   296  		return m.Start
   297  	}
   298  	return nil
   299  }
   300  
   301  func (m *Domain) GetEnd() []byte {
   302  	if m != nil {
   303  		return m.End
   304  	}
   305  	return nil
   306  }
   307  
   308  type Iterator struct {
   309  	Domain               *Domain  `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"`
   310  	Valid                bool     `protobuf:"varint,2,opt,name=valid,proto3" json:"valid,omitempty"`
   311  	Key                  []byte   `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
   312  	Value                []byte   `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
   313  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   314  	XXX_unrecognized     []byte   `json:"-"`
   315  	XXX_sizecache        int32    `json:"-"`
   316  }
   317  
   318  func (m *Iterator) Reset()         { *m = Iterator{} }
   319  func (m *Iterator) String() string { return proto.CompactTextString(m) }
   320  func (*Iterator) ProtoMessage()    {}
   321  func (*Iterator) Descriptor() ([]byte, []int) {
   322  	return fileDescriptor_ef1eada6618d0075, []int{5}
   323  }
   324  func (m *Iterator) XXX_Unmarshal(b []byte) error {
   325  	return xxx_messageInfo_Iterator.Unmarshal(m, b)
   326  }
   327  func (m *Iterator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   328  	return xxx_messageInfo_Iterator.Marshal(b, m, deterministic)
   329  }
   330  func (m *Iterator) XXX_Merge(src proto.Message) {
   331  	xxx_messageInfo_Iterator.Merge(m, src)
   332  }
   333  func (m *Iterator) XXX_Size() int {
   334  	return xxx_messageInfo_Iterator.Size(m)
   335  }
   336  func (m *Iterator) XXX_DiscardUnknown() {
   337  	xxx_messageInfo_Iterator.DiscardUnknown(m)
   338  }
   339  
   340  var xxx_messageInfo_Iterator proto.InternalMessageInfo
   341  
   342  func (m *Iterator) GetDomain() *Domain {
   343  	if m != nil {
   344  		return m.Domain
   345  	}
   346  	return nil
   347  }
   348  
   349  func (m *Iterator) GetValid() bool {
   350  	if m != nil {
   351  		return m.Valid
   352  	}
   353  	return false
   354  }
   355  
   356  func (m *Iterator) GetKey() []byte {
   357  	if m != nil {
   358  		return m.Key
   359  	}
   360  	return nil
   361  }
   362  
   363  func (m *Iterator) GetValue() []byte {
   364  	if m != nil {
   365  		return m.Value
   366  	}
   367  	return nil
   368  }
   369  
   370  type Stats struct {
   371  	Data                 map[string]string `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   372  	TimeAt               int64             `protobuf:"varint,2,opt,name=time_at,json=timeAt,proto3" json:"time_at,omitempty"`
   373  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
   374  	XXX_unrecognized     []byte            `json:"-"`
   375  	XXX_sizecache        int32             `json:"-"`
   376  }
   377  
   378  func (m *Stats) Reset()         { *m = Stats{} }
   379  func (m *Stats) String() string { return proto.CompactTextString(m) }
   380  func (*Stats) ProtoMessage()    {}
   381  func (*Stats) Descriptor() ([]byte, []int) {
   382  	return fileDescriptor_ef1eada6618d0075, []int{6}
   383  }
   384  func (m *Stats) XXX_Unmarshal(b []byte) error {
   385  	return xxx_messageInfo_Stats.Unmarshal(m, b)
   386  }
   387  func (m *Stats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   388  	return xxx_messageInfo_Stats.Marshal(b, m, deterministic)
   389  }
   390  func (m *Stats) XXX_Merge(src proto.Message) {
   391  	xxx_messageInfo_Stats.Merge(m, src)
   392  }
   393  func (m *Stats) XXX_Size() int {
   394  	return xxx_messageInfo_Stats.Size(m)
   395  }
   396  func (m *Stats) XXX_DiscardUnknown() {
   397  	xxx_messageInfo_Stats.DiscardUnknown(m)
   398  }
   399  
   400  var xxx_messageInfo_Stats proto.InternalMessageInfo
   401  
   402  func (m *Stats) GetData() map[string]string {
   403  	if m != nil {
   404  		return m.Data
   405  	}
   406  	return nil
   407  }
   408  
   409  func (m *Stats) GetTimeAt() int64 {
   410  	if m != nil {
   411  		return m.TimeAt
   412  	}
   413  	return 0
   414  }
   415  
   416  type Init struct {
   417  	Type                 string   `protobuf:"bytes,1,opt,name=Type,proto3" json:"Type,omitempty"`
   418  	Name                 string   `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
   419  	Dir                  string   `protobuf:"bytes,3,opt,name=Dir,proto3" json:"Dir,omitempty"`
   420  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   421  	XXX_unrecognized     []byte   `json:"-"`
   422  	XXX_sizecache        int32    `json:"-"`
   423  }
   424  
   425  func (m *Init) Reset()         { *m = Init{} }
   426  func (m *Init) String() string { return proto.CompactTextString(m) }
   427  func (*Init) ProtoMessage()    {}
   428  func (*Init) Descriptor() ([]byte, []int) {
   429  	return fileDescriptor_ef1eada6618d0075, []int{7}
   430  }
   431  func (m *Init) XXX_Unmarshal(b []byte) error {
   432  	return xxx_messageInfo_Init.Unmarshal(m, b)
   433  }
   434  func (m *Init) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   435  	return xxx_messageInfo_Init.Marshal(b, m, deterministic)
   436  }
   437  func (m *Init) XXX_Merge(src proto.Message) {
   438  	xxx_messageInfo_Init.Merge(m, src)
   439  }
   440  func (m *Init) XXX_Size() int {
   441  	return xxx_messageInfo_Init.Size(m)
   442  }
   443  func (m *Init) XXX_DiscardUnknown() {
   444  	xxx_messageInfo_Init.DiscardUnknown(m)
   445  }
   446  
   447  var xxx_messageInfo_Init proto.InternalMessageInfo
   448  
   449  func (m *Init) GetType() string {
   450  	if m != nil {
   451  		return m.Type
   452  	}
   453  	return ""
   454  }
   455  
   456  func (m *Init) GetName() string {
   457  	if m != nil {
   458  		return m.Name
   459  	}
   460  	return ""
   461  }
   462  
   463  func (m *Init) GetDir() string {
   464  	if m != nil {
   465  		return m.Dir
   466  	}
   467  	return ""
   468  }
   469  
   470  func init() {
   471  	proto.RegisterEnum("protodb.Operation_Type", Operation_Type_name, Operation_Type_value)
   472  	proto.RegisterType((*Batch)(nil), "protodb.Batch")
   473  	proto.RegisterType((*Operation)(nil), "protodb.Operation")
   474  	proto.RegisterType((*Entity)(nil), "protodb.Entity")
   475  	proto.RegisterType((*Nothing)(nil), "protodb.Nothing")
   476  	proto.RegisterType((*Domain)(nil), "protodb.Domain")
   477  	proto.RegisterType((*Iterator)(nil), "protodb.Iterator")
   478  	proto.RegisterType((*Stats)(nil), "protodb.Stats")
   479  	proto.RegisterMapType((map[string]string)(nil), "protodb.Stats.DataEntry")
   480  	proto.RegisterType((*Init)(nil), "protodb.Init")
   481  }
   482  
   483  func init() { proto.RegisterFile("remotedb/proto/defs.proto", fileDescriptor_ef1eada6618d0075) }
   484  
   485  var fileDescriptor_ef1eada6618d0075 = []byte{
   486  	// 662 bytes of a gzipped FileDescriptorProto
   487  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x4d, 0x6f, 0xd3, 0x4a,
   488  	0x14, 0xcd, 0xd8, 0x8e, 0x13, 0xdf, 0xf6, 0xa5, 0x79, 0xa3, 0xa7, 0x57, 0xbf, 0x3c, 0x51, 0x45,
   489  	0x16, 0x12, 0x86, 0x52, 0x37, 0xa4, 0x48, 0x7c, 0xac, 0x68, 0x95, 0x2c, 0x2a, 0xa1, 0x22, 0x39,
   490  	0x95, 0x58, 0xa2, 0x49, 0x3c, 0x4d, 0x46, 0x34, 0x76, 0x18, 0xdf, 0x56, 0x64, 0xc3, 0x96, 0xbf,
   491  	0xc2, 0x96, 0x1d, 0x7f, 0x87, 0xfe, 0x0a, 0x24, 0x36, 0x68, 0x66, 0x1c, 0x87, 0x36, 0x59, 0x84,
   492  	0x55, 0xee, 0xc7, 0x39, 0xe7, 0xce, 0x9c, 0x5c, 0x0f, 0xfc, 0x27, 0xf9, 0x34, 0x43, 0x9e, 0x0c,
   493  	0x0f, 0x67, 0x32, 0xc3, 0xec, 0x30, 0xe1, 0x17, 0x79, 0xa4, 0x43, 0x5a, 0xd3, 0x3f, 0xc9, 0xb0,
   494  	0x75, 0x30, 0x16, 0x38, 0xb9, 0x1a, 0x46, 0xa3, 0x6c, 0x7a, 0x38, 0xce, 0xc6, 0x99, 0x81, 0x0e,
   495  	0xaf, 0x2e, 0x74, 0x66, 0x78, 0x2a, 0x32, 0xbc, 0xe0, 0x00, 0xaa, 0x27, 0x0c, 0x47, 0x13, 0x7a,
   496  	0x1f, 0xec, 0x6c, 0x96, 0xfb, 0xa4, 0x6d, 0x87, 0x5b, 0x5d, 0x1a, 0x15, 0x72, 0xd1, 0x9b, 0x19,
   497  	0x97, 0x0c, 0x45, 0x96, 0xc6, 0xaa, 0x1d, 0x7c, 0x02, 0xaf, 0xac, 0xd0, 0x07, 0xe0, 0xf2, 0x14,
   498  	0x05, 0xce, 0x7d, 0xd2, 0x26, 0xe1, 0x56, 0x77, 0xa7, 0x64, 0xf5, 0x75, 0x39, 0x2e, 0xda, 0x74,
   499  	0x1f, 0x1c, 0x9c, 0xcf, 0xb8, 0x6f, 0xb5, 0x49, 0xd8, 0xe8, 0xee, 0xae, 0x8a, 0x47, 0xe7, 0xf3,
   500  	0x19, 0x8f, 0x35, 0x28, 0xf8, 0x1f, 0x1c, 0x95, 0xd1, 0x1a, 0xd8, 0x83, 0xfe, 0x79, 0xb3, 0x42,
   501  	0x01, 0xdc, 0x5e, 0xff, 0x75, 0xff, 0xbc, 0xdf, 0x24, 0xc1, 0x57, 0x02, 0xae, 0x11, 0xa7, 0x0d,
   502  	0xb0, 0x44, 0xa2, 0x27, 0x57, 0x63, 0x4b, 0x24, 0xb4, 0x09, 0xf6, 0x7b, 0x3e, 0xd7, 0x33, 0xb6,
   503  	0x63, 0x15, 0xd2, 0x7f, 0xa0, 0x7a, 0xcd, 0x2e, 0xaf, 0xb8, 0x6f, 0xeb, 0x9a, 0x49, 0xe8, 0xbf,
   504  	0xe0, 0xf2, 0x8f, 0x22, 0xc7, 0xdc, 0x77, 0xda, 0x24, 0xac, 0xc7, 0x45, 0xa6, 0xd0, 0x39, 0x32,
   505  	0x89, 0x7e, 0xd5, 0xa0, 0x75, 0xa2, 0x54, 0x79, 0x9a, 0xf8, 0xae, 0x51, 0xe5, 0xa9, 0x9e, 0xc3,
   506  	0xa5, 0xf4, 0x6b, 0x6d, 0x12, 0x7a, 0xb1, 0x0a, 0xe9, 0x3d, 0x80, 0x91, 0xe4, 0x0c, 0x79, 0xf2,
   507  	0x8e, 0xa1, 0x5f, 0x6f, 0x93, 0xd0, 0x8e, 0xbd, 0xa2, 0x72, 0x8c, 0x81, 0x07, 0xb5, 0xb3, 0x0c,
   508  	0x27, 0x22, 0x1d, 0x07, 0x1d, 0x70, 0x7b, 0xd9, 0x94, 0x89, 0x74, 0x39, 0x8d, 0xac, 0x99, 0x66,
   509  	0x95, 0xd3, 0x82, 0x0f, 0x50, 0x3f, 0x45, 0xe5, 0x52, 0x26, 0x95, 0xdf, 0x89, 0x66, 0xaf, 0xf8,
   510  	0x6d, 0x44, 0xe3, 0xa2, 0x5d, 0x5c, 0x5c, 0x18, 0xa1, 0x7a, 0x6c, 0x92, 0x85, 0x41, 0xf6, 0x1a,
   511  	0x83, 0x9c, 0xdf, 0x0c, 0x0a, 0x3e, 0x13, 0xa8, 0x0e, 0x90, 0x61, 0x4e, 0x1f, 0x83, 0x93, 0x30,
   512  	0x64, 0xc5, 0x52, 0xf8, 0xe5, 0x38, 0xdd, 0x8d, 0x7a, 0x0c, 0x59, 0x3f, 0x45, 0x39, 0x8f, 0x35,
   513  	0x8a, 0xee, 0x42, 0x0d, 0xc5, 0x94, 0x2b, 0x0f, 0x2c, 0xed, 0x81, 0xab, 0xd2, 0x63, 0x6c, 0x3d,
   514  	0x03, 0xaf, 0xc4, 0x2e, 0x4e, 0x41, 0x8c, 0x7d, 0xb7, 0x4e, 0x61, 0xe9, 0x9a, 0x49, 0x5e, 0x5a,
   515  	0xcf, 0x49, 0xf0, 0x0a, 0x9c, 0xd3, 0x54, 0x20, 0xa5, 0x66, 0x25, 0x0a, 0x92, 0x59, 0x0f, 0x0a,
   516  	0xce, 0x19, 0x9b, 0x2e, 0x48, 0x3a, 0x56, 0xda, 0x3d, 0x21, 0xf5, 0x0d, 0xbd, 0x58, 0x85, 0xdd,
   517  	0x9f, 0x0e, 0x58, 0xbd, 0x13, 0x1a, 0x82, 0x23, 0x94, 0xd0, 0x5f, 0xe5, 0x15, 0x94, 0x6e, 0xeb,
   518  	0xee, 0xc2, 0x06, 0x15, 0xfa, 0x10, 0xec, 0x31, 0x47, 0x7a, 0xb7, 0xb3, 0x0e, 0x7a, 0x04, 0xde,
   519  	0x98, 0xe3, 0x00, 0x25, 0x67, 0xd3, 0x4d, 0x08, 0x21, 0xe9, 0x10, 0xa5, 0x3f, 0x61, 0xf9, 0x46,
   520  	0xfa, 0x8f, 0xc0, 0xce, 0xd7, 0x1d, 0xa5, 0x59, 0x16, 0x16, 0x6b, 0x55, 0xa1, 0x11, 0xd4, 0x72,
   521  	0x8e, 0x83, 0x79, 0x3a, 0xda, 0x0c, 0x7f, 0x00, 0x6e, 0xc2, 0x2f, 0x39, 0xf2, 0xcd, 0xe0, 0x4f,
   522  	0x00, 0x0c, 0x7c, 0xf3, 0x09, 0x5d, 0xa8, 0x8b, 0xc5, 0xe2, 0xae, 0x10, 0xfe, 0x5e, 0xfe, 0x0f,
   523  	0x05, 0x26, 0xa8, 0x74, 0x08, 0x7d, 0x01, 0x3b, 0x92, 0x5f, 0x73, 0x99, 0xf3, 0xd3, 0x3f, 0xa5,
   524  	0xee, 0xeb, 0xef, 0x09, 0x73, 0xba, 0x72, 0x96, 0x56, 0xe3, 0xf6, 0xde, 0x06, 0x15, 0xda, 0x01,
   525  	0x18, 0xaa, 0x47, 0xef, 0xad, 0x14, 0xc8, 0xe9, 0xb2, 0xaf, 0x5f, 0xc2, 0xb5, 0xb7, 0x79, 0x0a,
   526  	0x8d, 0x25, 0x43, 0x9b, 0xb0, 0x01, 0xeb, 0x64, 0xfb, 0xc7, 0xf7, 0x3d, 0xf2, 0xe5, 0x66, 0x8f,
   527  	0x7c, 0xbb, 0xd9, 0x23, 0x43, 0x57, 0x03, 0x8e, 0x7e, 0x05, 0x00, 0x00, 0xff, 0xff, 0xc5, 0x88,
   528  	0xfd, 0x5e, 0xc6, 0x05, 0x00, 0x00,
   529  }
   530  
   531  func (this *Batch) Equal(that interface{}) bool {
   532  	if that == nil {
   533  		return this == nil
   534  	}
   535  
   536  	that1, ok := that.(*Batch)
   537  	if !ok {
   538  		that2, ok := that.(Batch)
   539  		if ok {
   540  			that1 = &that2
   541  		} else {
   542  			return false
   543  		}
   544  	}
   545  	if that1 == nil {
   546  		return this == nil
   547  	} else if this == nil {
   548  		return false
   549  	}
   550  	if len(this.Ops) != len(that1.Ops) {
   551  		return false
   552  	}
   553  	for i := range this.Ops {
   554  		if !this.Ops[i].Equal(that1.Ops[i]) {
   555  			return false
   556  		}
   557  	}
   558  	if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
   559  		return false
   560  	}
   561  	return true
   562  }
   563  func (this *Operation) Equal(that interface{}) bool {
   564  	if that == nil {
   565  		return this == nil
   566  	}
   567  
   568  	that1, ok := that.(*Operation)
   569  	if !ok {
   570  		that2, ok := that.(Operation)
   571  		if ok {
   572  			that1 = &that2
   573  		} else {
   574  			return false
   575  		}
   576  	}
   577  	if that1 == nil {
   578  		return this == nil
   579  	} else if this == nil {
   580  		return false
   581  	}
   582  	if !this.Entity.Equal(that1.Entity) {
   583  		return false
   584  	}
   585  	if this.Type != that1.Type {
   586  		return false
   587  	}
   588  	if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
   589  		return false
   590  	}
   591  	return true
   592  }
   593  func (this *Entity) Equal(that interface{}) bool {
   594  	if that == nil {
   595  		return this == nil
   596  	}
   597  
   598  	that1, ok := that.(*Entity)
   599  	if !ok {
   600  		that2, ok := that.(Entity)
   601  		if ok {
   602  			that1 = &that2
   603  		} else {
   604  			return false
   605  		}
   606  	}
   607  	if that1 == nil {
   608  		return this == nil
   609  	} else if this == nil {
   610  		return false
   611  	}
   612  	if this.Id != that1.Id {
   613  		return false
   614  	}
   615  	if !bytes.Equal(this.Key, that1.Key) {
   616  		return false
   617  	}
   618  	if !bytes.Equal(this.Value, that1.Value) {
   619  		return false
   620  	}
   621  	if this.Exists != that1.Exists {
   622  		return false
   623  	}
   624  	if !bytes.Equal(this.Start, that1.Start) {
   625  		return false
   626  	}
   627  	if !bytes.Equal(this.End, that1.End) {
   628  		return false
   629  	}
   630  	if this.Err != that1.Err {
   631  		return false
   632  	}
   633  	if this.CreatedAt != that1.CreatedAt {
   634  		return false
   635  	}
   636  	if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
   637  		return false
   638  	}
   639  	return true
   640  }
   641  func (this *Nothing) Equal(that interface{}) bool {
   642  	if that == nil {
   643  		return this == nil
   644  	}
   645  
   646  	that1, ok := that.(*Nothing)
   647  	if !ok {
   648  		that2, ok := that.(Nothing)
   649  		if ok {
   650  			that1 = &that2
   651  		} else {
   652  			return false
   653  		}
   654  	}
   655  	if that1 == nil {
   656  		return this == nil
   657  	} else if this == nil {
   658  		return false
   659  	}
   660  	if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
   661  		return false
   662  	}
   663  	return true
   664  }
   665  func (this *Domain) Equal(that interface{}) bool {
   666  	if that == nil {
   667  		return this == nil
   668  	}
   669  
   670  	that1, ok := that.(*Domain)
   671  	if !ok {
   672  		that2, ok := that.(Domain)
   673  		if ok {
   674  			that1 = &that2
   675  		} else {
   676  			return false
   677  		}
   678  	}
   679  	if that1 == nil {
   680  		return this == nil
   681  	} else if this == nil {
   682  		return false
   683  	}
   684  	if !bytes.Equal(this.Start, that1.Start) {
   685  		return false
   686  	}
   687  	if !bytes.Equal(this.End, that1.End) {
   688  		return false
   689  	}
   690  	if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
   691  		return false
   692  	}
   693  	return true
   694  }
   695  func (this *Iterator) Equal(that interface{}) bool {
   696  	if that == nil {
   697  		return this == nil
   698  	}
   699  
   700  	that1, ok := that.(*Iterator)
   701  	if !ok {
   702  		that2, ok := that.(Iterator)
   703  		if ok {
   704  			that1 = &that2
   705  		} else {
   706  			return false
   707  		}
   708  	}
   709  	if that1 == nil {
   710  		return this == nil
   711  	} else if this == nil {
   712  		return false
   713  	}
   714  	if !this.Domain.Equal(that1.Domain) {
   715  		return false
   716  	}
   717  	if this.Valid != that1.Valid {
   718  		return false
   719  	}
   720  	if !bytes.Equal(this.Key, that1.Key) {
   721  		return false
   722  	}
   723  	if !bytes.Equal(this.Value, that1.Value) {
   724  		return false
   725  	}
   726  	if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
   727  		return false
   728  	}
   729  	return true
   730  }
   731  func (this *Stats) Equal(that interface{}) bool {
   732  	if that == nil {
   733  		return this == nil
   734  	}
   735  
   736  	that1, ok := that.(*Stats)
   737  	if !ok {
   738  		that2, ok := that.(Stats)
   739  		if ok {
   740  			that1 = &that2
   741  		} else {
   742  			return false
   743  		}
   744  	}
   745  	if that1 == nil {
   746  		return this == nil
   747  	} else if this == nil {
   748  		return false
   749  	}
   750  	if len(this.Data) != len(that1.Data) {
   751  		return false
   752  	}
   753  	for i := range this.Data {
   754  		if this.Data[i] != that1.Data[i] {
   755  			return false
   756  		}
   757  	}
   758  	if this.TimeAt != that1.TimeAt {
   759  		return false
   760  	}
   761  	if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
   762  		return false
   763  	}
   764  	return true
   765  }
   766  func (this *Init) Equal(that interface{}) bool {
   767  	if that == nil {
   768  		return this == nil
   769  	}
   770  
   771  	that1, ok := that.(*Init)
   772  	if !ok {
   773  		that2, ok := that.(Init)
   774  		if ok {
   775  			that1 = &that2
   776  		} else {
   777  			return false
   778  		}
   779  	}
   780  	if that1 == nil {
   781  		return this == nil
   782  	} else if this == nil {
   783  		return false
   784  	}
   785  	if this.Type != that1.Type {
   786  		return false
   787  	}
   788  	if this.Name != that1.Name {
   789  		return false
   790  	}
   791  	if this.Dir != that1.Dir {
   792  		return false
   793  	}
   794  	if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
   795  		return false
   796  	}
   797  	return true
   798  }
   799  
   800  // Reference imports to suppress errors if they are not otherwise used.
   801  var _ context.Context
   802  var _ grpc.ClientConn
   803  
   804  // This is a compile-time assertion to ensure that this generated file
   805  // is compatible with the grpc package it is being compiled against.
   806  const _ = grpc.SupportPackageIsVersion4
   807  
   808  // DBClient is the client API for DB service.
   809  //
   810  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   811  type DBClient interface {
   812  	Init(ctx context.Context, in *Init, opts ...grpc.CallOption) (*Entity, error)
   813  	Get(ctx context.Context, in *Entity, opts ...grpc.CallOption) (*Entity, error)
   814  	GetStream(ctx context.Context, opts ...grpc.CallOption) (DB_GetStreamClient, error)
   815  	Has(ctx context.Context, in *Entity, opts ...grpc.CallOption) (*Entity, error)
   816  	Set(ctx context.Context, in *Entity, opts ...grpc.CallOption) (*Nothing, error)
   817  	SetSync(ctx context.Context, in *Entity, opts ...grpc.CallOption) (*Nothing, error)
   818  	Delete(ctx context.Context, in *Entity, opts ...grpc.CallOption) (*Nothing, error)
   819  	DeleteSync(ctx context.Context, in *Entity, opts ...grpc.CallOption) (*Nothing, error)
   820  	Iterator(ctx context.Context, in *Entity, opts ...grpc.CallOption) (DB_IteratorClient, error)
   821  	ReverseIterator(ctx context.Context, in *Entity, opts ...grpc.CallOption) (DB_ReverseIteratorClient, error)
   822  	// rpc print(Nothing) returns (Entity) {}
   823  	Stats(ctx context.Context, in *Nothing, opts ...grpc.CallOption) (*Stats, error)
   824  	BatchWrite(ctx context.Context, in *Batch, opts ...grpc.CallOption) (*Nothing, error)
   825  	BatchWriteSync(ctx context.Context, in *Batch, opts ...grpc.CallOption) (*Nothing, error)
   826  }
   827  
   828  type dBClient struct {
   829  	cc *grpc.ClientConn
   830  }
   831  
   832  func NewDBClient(cc *grpc.ClientConn) DBClient {
   833  	return &dBClient{cc}
   834  }
   835  
   836  func (c *dBClient) Init(ctx context.Context, in *Init, opts ...grpc.CallOption) (*Entity, error) {
   837  	out := new(Entity)
   838  	err := c.cc.Invoke(ctx, "/protodb.DB/init", in, out, opts...)
   839  	if err != nil {
   840  		return nil, err
   841  	}
   842  	return out, nil
   843  }
   844  
   845  func (c *dBClient) Get(ctx context.Context, in *Entity, opts ...grpc.CallOption) (*Entity, error) {
   846  	out := new(Entity)
   847  	err := c.cc.Invoke(ctx, "/protodb.DB/get", in, out, opts...)
   848  	if err != nil {
   849  		return nil, err
   850  	}
   851  	return out, nil
   852  }
   853  
   854  func (c *dBClient) GetStream(ctx context.Context, opts ...grpc.CallOption) (DB_GetStreamClient, error) {
   855  	stream, err := c.cc.NewStream(ctx, &_DB_serviceDesc.Streams[0], "/protodb.DB/getStream", opts...)
   856  	if err != nil {
   857  		return nil, err
   858  	}
   859  	x := &dBGetStreamClient{stream}
   860  	return x, nil
   861  }
   862  
   863  type DB_GetStreamClient interface {
   864  	Send(*Entity) error
   865  	Recv() (*Entity, error)
   866  	grpc.ClientStream
   867  }
   868  
   869  type dBGetStreamClient struct {
   870  	grpc.ClientStream
   871  }
   872  
   873  func (x *dBGetStreamClient) Send(m *Entity) error {
   874  	return x.ClientStream.SendMsg(m)
   875  }
   876  
   877  func (x *dBGetStreamClient) Recv() (*Entity, error) {
   878  	m := new(Entity)
   879  	if err := x.ClientStream.RecvMsg(m); err != nil {
   880  		return nil, err
   881  	}
   882  	return m, nil
   883  }
   884  
   885  func (c *dBClient) Has(ctx context.Context, in *Entity, opts ...grpc.CallOption) (*Entity, error) {
   886  	out := new(Entity)
   887  	err := c.cc.Invoke(ctx, "/protodb.DB/has", in, out, opts...)
   888  	if err != nil {
   889  		return nil, err
   890  	}
   891  	return out, nil
   892  }
   893  
   894  func (c *dBClient) Set(ctx context.Context, in *Entity, opts ...grpc.CallOption) (*Nothing, error) {
   895  	out := new(Nothing)
   896  	err := c.cc.Invoke(ctx, "/protodb.DB/set", in, out, opts...)
   897  	if err != nil {
   898  		return nil, err
   899  	}
   900  	return out, nil
   901  }
   902  
   903  func (c *dBClient) SetSync(ctx context.Context, in *Entity, opts ...grpc.CallOption) (*Nothing, error) {
   904  	out := new(Nothing)
   905  	err := c.cc.Invoke(ctx, "/protodb.DB/setSync", in, out, opts...)
   906  	if err != nil {
   907  		return nil, err
   908  	}
   909  	return out, nil
   910  }
   911  
   912  func (c *dBClient) Delete(ctx context.Context, in *Entity, opts ...grpc.CallOption) (*Nothing, error) {
   913  	out := new(Nothing)
   914  	err := c.cc.Invoke(ctx, "/protodb.DB/delete", in, out, opts...)
   915  	if err != nil {
   916  		return nil, err
   917  	}
   918  	return out, nil
   919  }
   920  
   921  func (c *dBClient) DeleteSync(ctx context.Context, in *Entity, opts ...grpc.CallOption) (*Nothing, error) {
   922  	out := new(Nothing)
   923  	err := c.cc.Invoke(ctx, "/protodb.DB/deleteSync", in, out, opts...)
   924  	if err != nil {
   925  		return nil, err
   926  	}
   927  	return out, nil
   928  }
   929  
   930  func (c *dBClient) Iterator(ctx context.Context, in *Entity, opts ...grpc.CallOption) (DB_IteratorClient, error) {
   931  	stream, err := c.cc.NewStream(ctx, &_DB_serviceDesc.Streams[1], "/protodb.DB/iterator", opts...)
   932  	if err != nil {
   933  		return nil, err
   934  	}
   935  	x := &dBIteratorClient{stream}
   936  	if err := x.ClientStream.SendMsg(in); err != nil {
   937  		return nil, err
   938  	}
   939  	if err := x.ClientStream.CloseSend(); err != nil {
   940  		return nil, err
   941  	}
   942  	return x, nil
   943  }
   944  
   945  type DB_IteratorClient interface {
   946  	Recv() (*Iterator, error)
   947  	grpc.ClientStream
   948  }
   949  
   950  type dBIteratorClient struct {
   951  	grpc.ClientStream
   952  }
   953  
   954  func (x *dBIteratorClient) Recv() (*Iterator, error) {
   955  	m := new(Iterator)
   956  	if err := x.ClientStream.RecvMsg(m); err != nil {
   957  		return nil, err
   958  	}
   959  	return m, nil
   960  }
   961  
   962  func (c *dBClient) ReverseIterator(ctx context.Context, in *Entity, opts ...grpc.CallOption) (DB_ReverseIteratorClient, error) {
   963  	stream, err := c.cc.NewStream(ctx, &_DB_serviceDesc.Streams[2], "/protodb.DB/reverseIterator", opts...)
   964  	if err != nil {
   965  		return nil, err
   966  	}
   967  	x := &dBReverseIteratorClient{stream}
   968  	if err := x.ClientStream.SendMsg(in); err != nil {
   969  		return nil, err
   970  	}
   971  	if err := x.ClientStream.CloseSend(); err != nil {
   972  		return nil, err
   973  	}
   974  	return x, nil
   975  }
   976  
   977  type DB_ReverseIteratorClient interface {
   978  	Recv() (*Iterator, error)
   979  	grpc.ClientStream
   980  }
   981  
   982  type dBReverseIteratorClient struct {
   983  	grpc.ClientStream
   984  }
   985  
   986  func (x *dBReverseIteratorClient) Recv() (*Iterator, error) {
   987  	m := new(Iterator)
   988  	if err := x.ClientStream.RecvMsg(m); err != nil {
   989  		return nil, err
   990  	}
   991  	return m, nil
   992  }
   993  
   994  func (c *dBClient) Stats(ctx context.Context, in *Nothing, opts ...grpc.CallOption) (*Stats, error) {
   995  	out := new(Stats)
   996  	err := c.cc.Invoke(ctx, "/protodb.DB/stats", in, out, opts...)
   997  	if err != nil {
   998  		return nil, err
   999  	}
  1000  	return out, nil
  1001  }
  1002  
  1003  func (c *dBClient) BatchWrite(ctx context.Context, in *Batch, opts ...grpc.CallOption) (*Nothing, error) {
  1004  	out := new(Nothing)
  1005  	err := c.cc.Invoke(ctx, "/protodb.DB/batchWrite", in, out, opts...)
  1006  	if err != nil {
  1007  		return nil, err
  1008  	}
  1009  	return out, nil
  1010  }
  1011  
  1012  func (c *dBClient) BatchWriteSync(ctx context.Context, in *Batch, opts ...grpc.CallOption) (*Nothing, error) {
  1013  	out := new(Nothing)
  1014  	err := c.cc.Invoke(ctx, "/protodb.DB/batchWriteSync", in, out, opts...)
  1015  	if err != nil {
  1016  		return nil, err
  1017  	}
  1018  	return out, nil
  1019  }
  1020  
  1021  // DBServer is the server API for DB service.
  1022  type DBServer interface {
  1023  	Init(context.Context, *Init) (*Entity, error)
  1024  	Get(context.Context, *Entity) (*Entity, error)
  1025  	GetStream(DB_GetStreamServer) error
  1026  	Has(context.Context, *Entity) (*Entity, error)
  1027  	Set(context.Context, *Entity) (*Nothing, error)
  1028  	SetSync(context.Context, *Entity) (*Nothing, error)
  1029  	Delete(context.Context, *Entity) (*Nothing, error)
  1030  	DeleteSync(context.Context, *Entity) (*Nothing, error)
  1031  	Iterator(*Entity, DB_IteratorServer) error
  1032  	ReverseIterator(*Entity, DB_ReverseIteratorServer) error
  1033  	// rpc print(Nothing) returns (Entity) {}
  1034  	Stats(context.Context, *Nothing) (*Stats, error)
  1035  	BatchWrite(context.Context, *Batch) (*Nothing, error)
  1036  	BatchWriteSync(context.Context, *Batch) (*Nothing, error)
  1037  }
  1038  
  1039  // UnimplementedDBServer can be embedded to have forward compatible implementations.
  1040  type UnimplementedDBServer struct {
  1041  }
  1042  
  1043  func (*UnimplementedDBServer) Init(ctx context.Context, req *Init) (*Entity, error) {
  1044  	return nil, status.Errorf(codes.Unimplemented, "method Init not implemented")
  1045  }
  1046  func (*UnimplementedDBServer) Get(ctx context.Context, req *Entity) (*Entity, error) {
  1047  	return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
  1048  }
  1049  func (*UnimplementedDBServer) GetStream(srv DB_GetStreamServer) error {
  1050  	return status.Errorf(codes.Unimplemented, "method GetStream not implemented")
  1051  }
  1052  func (*UnimplementedDBServer) Has(ctx context.Context, req *Entity) (*Entity, error) {
  1053  	return nil, status.Errorf(codes.Unimplemented, "method Has not implemented")
  1054  }
  1055  func (*UnimplementedDBServer) Set(ctx context.Context, req *Entity) (*Nothing, error) {
  1056  	return nil, status.Errorf(codes.Unimplemented, "method Set not implemented")
  1057  }
  1058  func (*UnimplementedDBServer) SetSync(ctx context.Context, req *Entity) (*Nothing, error) {
  1059  	return nil, status.Errorf(codes.Unimplemented, "method SetSync not implemented")
  1060  }
  1061  func (*UnimplementedDBServer) Delete(ctx context.Context, req *Entity) (*Nothing, error) {
  1062  	return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
  1063  }
  1064  func (*UnimplementedDBServer) DeleteSync(ctx context.Context, req *Entity) (*Nothing, error) {
  1065  	return nil, status.Errorf(codes.Unimplemented, "method DeleteSync not implemented")
  1066  }
  1067  func (*UnimplementedDBServer) Iterator(req *Entity, srv DB_IteratorServer) error {
  1068  	return status.Errorf(codes.Unimplemented, "method Iterator not implemented")
  1069  }
  1070  func (*UnimplementedDBServer) ReverseIterator(req *Entity, srv DB_ReverseIteratorServer) error {
  1071  	return status.Errorf(codes.Unimplemented, "method ReverseIterator not implemented")
  1072  }
  1073  func (*UnimplementedDBServer) Stats(ctx context.Context, req *Nothing) (*Stats, error) {
  1074  	return nil, status.Errorf(codes.Unimplemented, "method Stats not implemented")
  1075  }
  1076  func (*UnimplementedDBServer) BatchWrite(ctx context.Context, req *Batch) (*Nothing, error) {
  1077  	return nil, status.Errorf(codes.Unimplemented, "method BatchWrite not implemented")
  1078  }
  1079  func (*UnimplementedDBServer) BatchWriteSync(ctx context.Context, req *Batch) (*Nothing, error) {
  1080  	return nil, status.Errorf(codes.Unimplemented, "method BatchWriteSync not implemented")
  1081  }
  1082  
  1083  func RegisterDBServer(s *grpc.Server, srv DBServer) {
  1084  	s.RegisterService(&_DB_serviceDesc, srv)
  1085  }
  1086  
  1087  func _DB_Init_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1088  	in := new(Init)
  1089  	if err := dec(in); err != nil {
  1090  		return nil, err
  1091  	}
  1092  	if interceptor == nil {
  1093  		return srv.(DBServer).Init(ctx, in)
  1094  	}
  1095  	info := &grpc.UnaryServerInfo{
  1096  		Server:     srv,
  1097  		FullMethod: "/protodb.DB/Init",
  1098  	}
  1099  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1100  		return srv.(DBServer).Init(ctx, req.(*Init))
  1101  	}
  1102  	return interceptor(ctx, in, info, handler)
  1103  }
  1104  
  1105  func _DB_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1106  	in := new(Entity)
  1107  	if err := dec(in); err != nil {
  1108  		return nil, err
  1109  	}
  1110  	if interceptor == nil {
  1111  		return srv.(DBServer).Get(ctx, in)
  1112  	}
  1113  	info := &grpc.UnaryServerInfo{
  1114  		Server:     srv,
  1115  		FullMethod: "/protodb.DB/Get",
  1116  	}
  1117  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1118  		return srv.(DBServer).Get(ctx, req.(*Entity))
  1119  	}
  1120  	return interceptor(ctx, in, info, handler)
  1121  }
  1122  
  1123  func _DB_GetStream_Handler(srv interface{}, stream grpc.ServerStream) error {
  1124  	return srv.(DBServer).GetStream(&dBGetStreamServer{stream})
  1125  }
  1126  
  1127  type DB_GetStreamServer interface {
  1128  	Send(*Entity) error
  1129  	Recv() (*Entity, error)
  1130  	grpc.ServerStream
  1131  }
  1132  
  1133  type dBGetStreamServer struct {
  1134  	grpc.ServerStream
  1135  }
  1136  
  1137  func (x *dBGetStreamServer) Send(m *Entity) error {
  1138  	return x.ServerStream.SendMsg(m)
  1139  }
  1140  
  1141  func (x *dBGetStreamServer) Recv() (*Entity, error) {
  1142  	m := new(Entity)
  1143  	if err := x.ServerStream.RecvMsg(m); err != nil {
  1144  		return nil, err
  1145  	}
  1146  	return m, nil
  1147  }
  1148  
  1149  func _DB_Has_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1150  	in := new(Entity)
  1151  	if err := dec(in); err != nil {
  1152  		return nil, err
  1153  	}
  1154  	if interceptor == nil {
  1155  		return srv.(DBServer).Has(ctx, in)
  1156  	}
  1157  	info := &grpc.UnaryServerInfo{
  1158  		Server:     srv,
  1159  		FullMethod: "/protodb.DB/Has",
  1160  	}
  1161  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1162  		return srv.(DBServer).Has(ctx, req.(*Entity))
  1163  	}
  1164  	return interceptor(ctx, in, info, handler)
  1165  }
  1166  
  1167  func _DB_Set_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1168  	in := new(Entity)
  1169  	if err := dec(in); err != nil {
  1170  		return nil, err
  1171  	}
  1172  	if interceptor == nil {
  1173  		return srv.(DBServer).Set(ctx, in)
  1174  	}
  1175  	info := &grpc.UnaryServerInfo{
  1176  		Server:     srv,
  1177  		FullMethod: "/protodb.DB/Set",
  1178  	}
  1179  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1180  		return srv.(DBServer).Set(ctx, req.(*Entity))
  1181  	}
  1182  	return interceptor(ctx, in, info, handler)
  1183  }
  1184  
  1185  func _DB_SetSync_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1186  	in := new(Entity)
  1187  	if err := dec(in); err != nil {
  1188  		return nil, err
  1189  	}
  1190  	if interceptor == nil {
  1191  		return srv.(DBServer).SetSync(ctx, in)
  1192  	}
  1193  	info := &grpc.UnaryServerInfo{
  1194  		Server:     srv,
  1195  		FullMethod: "/protodb.DB/SetSync",
  1196  	}
  1197  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1198  		return srv.(DBServer).SetSync(ctx, req.(*Entity))
  1199  	}
  1200  	return interceptor(ctx, in, info, handler)
  1201  }
  1202  
  1203  func _DB_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1204  	in := new(Entity)
  1205  	if err := dec(in); err != nil {
  1206  		return nil, err
  1207  	}
  1208  	if interceptor == nil {
  1209  		return srv.(DBServer).Delete(ctx, in)
  1210  	}
  1211  	info := &grpc.UnaryServerInfo{
  1212  		Server:     srv,
  1213  		FullMethod: "/protodb.DB/Delete",
  1214  	}
  1215  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1216  		return srv.(DBServer).Delete(ctx, req.(*Entity))
  1217  	}
  1218  	return interceptor(ctx, in, info, handler)
  1219  }
  1220  
  1221  func _DB_DeleteSync_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1222  	in := new(Entity)
  1223  	if err := dec(in); err != nil {
  1224  		return nil, err
  1225  	}
  1226  	if interceptor == nil {
  1227  		return srv.(DBServer).DeleteSync(ctx, in)
  1228  	}
  1229  	info := &grpc.UnaryServerInfo{
  1230  		Server:     srv,
  1231  		FullMethod: "/protodb.DB/DeleteSync",
  1232  	}
  1233  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1234  		return srv.(DBServer).DeleteSync(ctx, req.(*Entity))
  1235  	}
  1236  	return interceptor(ctx, in, info, handler)
  1237  }
  1238  
  1239  func _DB_Iterator_Handler(srv interface{}, stream grpc.ServerStream) error {
  1240  	m := new(Entity)
  1241  	if err := stream.RecvMsg(m); err != nil {
  1242  		return err
  1243  	}
  1244  	return srv.(DBServer).Iterator(m, &dBIteratorServer{stream})
  1245  }
  1246  
  1247  type DB_IteratorServer interface {
  1248  	Send(*Iterator) error
  1249  	grpc.ServerStream
  1250  }
  1251  
  1252  type dBIteratorServer struct {
  1253  	grpc.ServerStream
  1254  }
  1255  
  1256  func (x *dBIteratorServer) Send(m *Iterator) error {
  1257  	return x.ServerStream.SendMsg(m)
  1258  }
  1259  
  1260  func _DB_ReverseIterator_Handler(srv interface{}, stream grpc.ServerStream) error {
  1261  	m := new(Entity)
  1262  	if err := stream.RecvMsg(m); err != nil {
  1263  		return err
  1264  	}
  1265  	return srv.(DBServer).ReverseIterator(m, &dBReverseIteratorServer{stream})
  1266  }
  1267  
  1268  type DB_ReverseIteratorServer interface {
  1269  	Send(*Iterator) error
  1270  	grpc.ServerStream
  1271  }
  1272  
  1273  type dBReverseIteratorServer struct {
  1274  	grpc.ServerStream
  1275  }
  1276  
  1277  func (x *dBReverseIteratorServer) Send(m *Iterator) error {
  1278  	return x.ServerStream.SendMsg(m)
  1279  }
  1280  
  1281  func _DB_Stats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1282  	in := new(Nothing)
  1283  	if err := dec(in); err != nil {
  1284  		return nil, err
  1285  	}
  1286  	if interceptor == nil {
  1287  		return srv.(DBServer).Stats(ctx, in)
  1288  	}
  1289  	info := &grpc.UnaryServerInfo{
  1290  		Server:     srv,
  1291  		FullMethod: "/protodb.DB/Stats",
  1292  	}
  1293  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1294  		return srv.(DBServer).Stats(ctx, req.(*Nothing))
  1295  	}
  1296  	return interceptor(ctx, in, info, handler)
  1297  }
  1298  
  1299  func _DB_BatchWrite_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1300  	in := new(Batch)
  1301  	if err := dec(in); err != nil {
  1302  		return nil, err
  1303  	}
  1304  	if interceptor == nil {
  1305  		return srv.(DBServer).BatchWrite(ctx, in)
  1306  	}
  1307  	info := &grpc.UnaryServerInfo{
  1308  		Server:     srv,
  1309  		FullMethod: "/protodb.DB/BatchWrite",
  1310  	}
  1311  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1312  		return srv.(DBServer).BatchWrite(ctx, req.(*Batch))
  1313  	}
  1314  	return interceptor(ctx, in, info, handler)
  1315  }
  1316  
  1317  func _DB_BatchWriteSync_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1318  	in := new(Batch)
  1319  	if err := dec(in); err != nil {
  1320  		return nil, err
  1321  	}
  1322  	if interceptor == nil {
  1323  		return srv.(DBServer).BatchWriteSync(ctx, in)
  1324  	}
  1325  	info := &grpc.UnaryServerInfo{
  1326  		Server:     srv,
  1327  		FullMethod: "/protodb.DB/BatchWriteSync",
  1328  	}
  1329  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1330  		return srv.(DBServer).BatchWriteSync(ctx, req.(*Batch))
  1331  	}
  1332  	return interceptor(ctx, in, info, handler)
  1333  }
  1334  
  1335  var _DB_serviceDesc = grpc.ServiceDesc{
  1336  	ServiceName: "protodb.DB",
  1337  	HandlerType: (*DBServer)(nil),
  1338  	Methods: []grpc.MethodDesc{
  1339  		{
  1340  			MethodName: "init",
  1341  			Handler:    _DB_Init_Handler,
  1342  		},
  1343  		{
  1344  			MethodName: "get",
  1345  			Handler:    _DB_Get_Handler,
  1346  		},
  1347  		{
  1348  			MethodName: "has",
  1349  			Handler:    _DB_Has_Handler,
  1350  		},
  1351  		{
  1352  			MethodName: "set",
  1353  			Handler:    _DB_Set_Handler,
  1354  		},
  1355  		{
  1356  			MethodName: "setSync",
  1357  			Handler:    _DB_SetSync_Handler,
  1358  		},
  1359  		{
  1360  			MethodName: "delete",
  1361  			Handler:    _DB_Delete_Handler,
  1362  		},
  1363  		{
  1364  			MethodName: "deleteSync",
  1365  			Handler:    _DB_DeleteSync_Handler,
  1366  		},
  1367  		{
  1368  			MethodName: "stats",
  1369  			Handler:    _DB_Stats_Handler,
  1370  		},
  1371  		{
  1372  			MethodName: "batchWrite",
  1373  			Handler:    _DB_BatchWrite_Handler,
  1374  		},
  1375  		{
  1376  			MethodName: "batchWriteSync",
  1377  			Handler:    _DB_BatchWriteSync_Handler,
  1378  		},
  1379  	},
  1380  	Streams: []grpc.StreamDesc{
  1381  		{
  1382  			StreamName:    "getStream",
  1383  			Handler:       _DB_GetStream_Handler,
  1384  			ServerStreams: true,
  1385  			ClientStreams: true,
  1386  		},
  1387  		{
  1388  			StreamName:    "iterator",
  1389  			Handler:       _DB_Iterator_Handler,
  1390  			ServerStreams: true,
  1391  		},
  1392  		{
  1393  			StreamName:    "reverseIterator",
  1394  			Handler:       _DB_ReverseIterator_Handler,
  1395  			ServerStreams: true,
  1396  		},
  1397  	},
  1398  	Metadata: "remotedb/proto/defs.proto",
  1399  }
  1400  
  1401  func NewPopulatedBatch(r randyDefs, easy bool) *Batch {
  1402  	this := &Batch{}
  1403  	if r.Intn(5) != 0 {
  1404  		v1 := r.Intn(5)
  1405  		this.Ops = make([]*Operation, v1)
  1406  		for i := 0; i < v1; i++ {
  1407  			this.Ops[i] = NewPopulatedOperation(r, easy)
  1408  		}
  1409  	}
  1410  	if !easy && r.Intn(10) != 0 {
  1411  		this.XXX_unrecognized = randUnrecognizedDefs(r, 2)
  1412  	}
  1413  	return this
  1414  }
  1415  
  1416  func NewPopulatedOperation(r randyDefs, easy bool) *Operation {
  1417  	this := &Operation{}
  1418  	if r.Intn(5) != 0 {
  1419  		this.Entity = NewPopulatedEntity(r, easy)
  1420  	}
  1421  	this.Type = Operation_Type([]int32{0, 1}[r.Intn(2)])
  1422  	if !easy && r.Intn(10) != 0 {
  1423  		this.XXX_unrecognized = randUnrecognizedDefs(r, 3)
  1424  	}
  1425  	return this
  1426  }
  1427  
  1428  func NewPopulatedEntity(r randyDefs, easy bool) *Entity {
  1429  	this := &Entity{}
  1430  	this.Id = int32(r.Int31())
  1431  	if r.Intn(2) == 0 {
  1432  		this.Id *= -1
  1433  	}
  1434  	v2 := r.Intn(100)
  1435  	this.Key = make([]byte, v2)
  1436  	for i := 0; i < v2; i++ {
  1437  		this.Key[i] = byte(r.Intn(256))
  1438  	}
  1439  	v3 := r.Intn(100)
  1440  	this.Value = make([]byte, v3)
  1441  	for i := 0; i < v3; i++ {
  1442  		this.Value[i] = byte(r.Intn(256))
  1443  	}
  1444  	this.Exists = bool(bool(r.Intn(2) == 0))
  1445  	v4 := r.Intn(100)
  1446  	this.Start = make([]byte, v4)
  1447  	for i := 0; i < v4; i++ {
  1448  		this.Start[i] = byte(r.Intn(256))
  1449  	}
  1450  	v5 := r.Intn(100)
  1451  	this.End = make([]byte, v5)
  1452  	for i := 0; i < v5; i++ {
  1453  		this.End[i] = byte(r.Intn(256))
  1454  	}
  1455  	this.Err = string(randStringDefs(r))
  1456  	this.CreatedAt = int64(r.Int63())
  1457  	if r.Intn(2) == 0 {
  1458  		this.CreatedAt *= -1
  1459  	}
  1460  	if !easy && r.Intn(10) != 0 {
  1461  		this.XXX_unrecognized = randUnrecognizedDefs(r, 9)
  1462  	}
  1463  	return this
  1464  }
  1465  
  1466  func NewPopulatedNothing(r randyDefs, easy bool) *Nothing {
  1467  	this := &Nothing{}
  1468  	if !easy && r.Intn(10) != 0 {
  1469  		this.XXX_unrecognized = randUnrecognizedDefs(r, 1)
  1470  	}
  1471  	return this
  1472  }
  1473  
  1474  func NewPopulatedDomain(r randyDefs, easy bool) *Domain {
  1475  	this := &Domain{}
  1476  	v6 := r.Intn(100)
  1477  	this.Start = make([]byte, v6)
  1478  	for i := 0; i < v6; i++ {
  1479  		this.Start[i] = byte(r.Intn(256))
  1480  	}
  1481  	v7 := r.Intn(100)
  1482  	this.End = make([]byte, v7)
  1483  	for i := 0; i < v7; i++ {
  1484  		this.End[i] = byte(r.Intn(256))
  1485  	}
  1486  	if !easy && r.Intn(10) != 0 {
  1487  		this.XXX_unrecognized = randUnrecognizedDefs(r, 3)
  1488  	}
  1489  	return this
  1490  }
  1491  
  1492  func NewPopulatedIterator(r randyDefs, easy bool) *Iterator {
  1493  	this := &Iterator{}
  1494  	if r.Intn(5) != 0 {
  1495  		this.Domain = NewPopulatedDomain(r, easy)
  1496  	}
  1497  	this.Valid = bool(bool(r.Intn(2) == 0))
  1498  	v8 := r.Intn(100)
  1499  	this.Key = make([]byte, v8)
  1500  	for i := 0; i < v8; i++ {
  1501  		this.Key[i] = byte(r.Intn(256))
  1502  	}
  1503  	v9 := r.Intn(100)
  1504  	this.Value = make([]byte, v9)
  1505  	for i := 0; i < v9; i++ {
  1506  		this.Value[i] = byte(r.Intn(256))
  1507  	}
  1508  	if !easy && r.Intn(10) != 0 {
  1509  		this.XXX_unrecognized = randUnrecognizedDefs(r, 5)
  1510  	}
  1511  	return this
  1512  }
  1513  
  1514  func NewPopulatedStats(r randyDefs, easy bool) *Stats {
  1515  	this := &Stats{}
  1516  	if r.Intn(5) != 0 {
  1517  		v10 := r.Intn(10)
  1518  		this.Data = make(map[string]string)
  1519  		for i := 0; i < v10; i++ {
  1520  			this.Data[randStringDefs(r)] = randStringDefs(r)
  1521  		}
  1522  	}
  1523  	this.TimeAt = int64(r.Int63())
  1524  	if r.Intn(2) == 0 {
  1525  		this.TimeAt *= -1
  1526  	}
  1527  	if !easy && r.Intn(10) != 0 {
  1528  		this.XXX_unrecognized = randUnrecognizedDefs(r, 3)
  1529  	}
  1530  	return this
  1531  }
  1532  
  1533  func NewPopulatedInit(r randyDefs, easy bool) *Init {
  1534  	this := &Init{}
  1535  	this.Type = string(randStringDefs(r))
  1536  	this.Name = string(randStringDefs(r))
  1537  	this.Dir = string(randStringDefs(r))
  1538  	if !easy && r.Intn(10) != 0 {
  1539  		this.XXX_unrecognized = randUnrecognizedDefs(r, 4)
  1540  	}
  1541  	return this
  1542  }
  1543  
  1544  type randyDefs interface {
  1545  	Float32() float32
  1546  	Float64() float64
  1547  	Int63() int64
  1548  	Int31() int32
  1549  	Uint32() uint32
  1550  	Intn(n int) int
  1551  }
  1552  
  1553  func randUTF8RuneDefs(r randyDefs) rune {
  1554  	ru := r.Intn(62)
  1555  	if ru < 10 {
  1556  		return rune(ru + 48)
  1557  	} else if ru < 36 {
  1558  		return rune(ru + 55)
  1559  	}
  1560  	return rune(ru + 61)
  1561  }
  1562  func randStringDefs(r randyDefs) string {
  1563  	v11 := r.Intn(100)
  1564  	tmps := make([]rune, v11)
  1565  	for i := 0; i < v11; i++ {
  1566  		tmps[i] = randUTF8RuneDefs(r)
  1567  	}
  1568  	return string(tmps)
  1569  }
  1570  func randUnrecognizedDefs(r randyDefs, maxFieldNumber int) (dAtA []byte) {
  1571  	l := r.Intn(5)
  1572  	for i := 0; i < l; i++ {
  1573  		wire := r.Intn(4)
  1574  		if wire == 3 {
  1575  			wire = 5
  1576  		}
  1577  		fieldNumber := maxFieldNumber + r.Intn(100)
  1578  		dAtA = randFieldDefs(dAtA, r, fieldNumber, wire)
  1579  	}
  1580  	return dAtA
  1581  }
  1582  func randFieldDefs(dAtA []byte, r randyDefs, fieldNumber int, wire int) []byte {
  1583  	key := uint32(fieldNumber)<<3 | uint32(wire)
  1584  	switch wire {
  1585  	case 0:
  1586  		dAtA = encodeVarintPopulateDefs(dAtA, uint64(key))
  1587  		v12 := r.Int63()
  1588  		if r.Intn(2) == 0 {
  1589  			v12 *= -1
  1590  		}
  1591  		dAtA = encodeVarintPopulateDefs(dAtA, uint64(v12))
  1592  	case 1:
  1593  		dAtA = encodeVarintPopulateDefs(dAtA, uint64(key))
  1594  		dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
  1595  	case 2:
  1596  		dAtA = encodeVarintPopulateDefs(dAtA, uint64(key))
  1597  		ll := r.Intn(100)
  1598  		dAtA = encodeVarintPopulateDefs(dAtA, uint64(ll))
  1599  		for j := 0; j < ll; j++ {
  1600  			dAtA = append(dAtA, byte(r.Intn(256)))
  1601  		}
  1602  	default:
  1603  		dAtA = encodeVarintPopulateDefs(dAtA, uint64(key))
  1604  		dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
  1605  	}
  1606  	return dAtA
  1607  }
  1608  func encodeVarintPopulateDefs(dAtA []byte, v uint64) []byte {
  1609  	for v >= 1<<7 {
  1610  		dAtA = append(dAtA, uint8(uint64(v)&0x7f|0x80))
  1611  		v >>= 7
  1612  	}
  1613  	dAtA = append(dAtA, uint8(v))
  1614  	return dAtA
  1615  }