github.com/iotexproject/iotex-core@v1.14.1-rc1/db/trie/triepb/trie.pb.go (about)

     1  // Copyright (c) 2019 IoTeX Foundation
     2  // This source code is provided 'as is' and no warranties are given as to title or non-infringement, merchantability
     3  // or fitness for purpose and, to the extent permitted by law, all liability for your use of the code is disclaimed.
     4  // This source code is governed by Apache License 2.0 that can be found in the LICENSE file.
     5  
     6  // To compile the proto, run:
     7  //      protoc --go_out=plugins=grpc:. *.proto
     8  
     9  // Code generated by protoc-gen-go. DO NOT EDIT.
    10  // versions:
    11  // 	protoc-gen-go v1.23.0
    12  // 	protoc        v3.12.4
    13  // source: trie.proto
    14  
    15  package triepb
    16  
    17  import (
    18  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    19  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    20  	reflect "reflect"
    21  	sync "sync"
    22  )
    23  
    24  const (
    25  	// Verify that this generated code is sufficiently up-to-date.
    26  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    27  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    28  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    29  )
    30  
    31  type BranchNodePb struct {
    32  	state         protoimpl.MessageState
    33  	sizeCache     protoimpl.SizeCache
    34  	unknownFields protoimpl.UnknownFields
    35  
    36  	Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
    37  	Path  []byte `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
    38  }
    39  
    40  func (x *BranchNodePb) Reset() {
    41  	*x = BranchNodePb{}
    42  	if protoimpl.UnsafeEnabled {
    43  		mi := &file_trie_proto_msgTypes[0]
    44  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    45  		ms.StoreMessageInfo(mi)
    46  	}
    47  }
    48  
    49  func (x *BranchNodePb) String() string {
    50  	return protoimpl.X.MessageStringOf(x)
    51  }
    52  
    53  func (*BranchNodePb) ProtoMessage() {}
    54  
    55  func (x *BranchNodePb) ProtoReflect() protoreflect.Message {
    56  	mi := &file_trie_proto_msgTypes[0]
    57  	if protoimpl.UnsafeEnabled && x != nil {
    58  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    59  		if ms.LoadMessageInfo() == nil {
    60  			ms.StoreMessageInfo(mi)
    61  		}
    62  		return ms
    63  	}
    64  	return mi.MessageOf(x)
    65  }
    66  
    67  // Deprecated: Use BranchNodePb.ProtoReflect.Descriptor instead.
    68  func (*BranchNodePb) Descriptor() ([]byte, []int) {
    69  	return file_trie_proto_rawDescGZIP(), []int{0}
    70  }
    71  
    72  func (x *BranchNodePb) GetIndex() uint32 {
    73  	if x != nil {
    74  		return x.Index
    75  	}
    76  	return 0
    77  }
    78  
    79  func (x *BranchNodePb) GetPath() []byte {
    80  	if x != nil {
    81  		return x.Path
    82  	}
    83  	return nil
    84  }
    85  
    86  type BranchPb struct {
    87  	state         protoimpl.MessageState
    88  	sizeCache     protoimpl.SizeCache
    89  	unknownFields protoimpl.UnknownFields
    90  
    91  	Branches []*BranchNodePb `protobuf:"bytes,1,rep,name=branches,proto3" json:"branches,omitempty"`
    92  }
    93  
    94  func (x *BranchPb) Reset() {
    95  	*x = BranchPb{}
    96  	if protoimpl.UnsafeEnabled {
    97  		mi := &file_trie_proto_msgTypes[1]
    98  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    99  		ms.StoreMessageInfo(mi)
   100  	}
   101  }
   102  
   103  func (x *BranchPb) String() string {
   104  	return protoimpl.X.MessageStringOf(x)
   105  }
   106  
   107  func (*BranchPb) ProtoMessage() {}
   108  
   109  func (x *BranchPb) ProtoReflect() protoreflect.Message {
   110  	mi := &file_trie_proto_msgTypes[1]
   111  	if protoimpl.UnsafeEnabled && x != nil {
   112  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   113  		if ms.LoadMessageInfo() == nil {
   114  			ms.StoreMessageInfo(mi)
   115  		}
   116  		return ms
   117  	}
   118  	return mi.MessageOf(x)
   119  }
   120  
   121  // Deprecated: Use BranchPb.ProtoReflect.Descriptor instead.
   122  func (*BranchPb) Descriptor() ([]byte, []int) {
   123  	return file_trie_proto_rawDescGZIP(), []int{1}
   124  }
   125  
   126  func (x *BranchPb) GetBranches() []*BranchNodePb {
   127  	if x != nil {
   128  		return x.Branches
   129  	}
   130  	return nil
   131  }
   132  
   133  type LeafPb struct {
   134  	state         protoimpl.MessageState
   135  	sizeCache     protoimpl.SizeCache
   136  	unknownFields protoimpl.UnknownFields
   137  
   138  	Ext   uint32 `protobuf:"varint,1,opt,name=ext,proto3" json:"ext,omitempty"`
   139  	Path  []byte `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
   140  	Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
   141  }
   142  
   143  func (x *LeafPb) Reset() {
   144  	*x = LeafPb{}
   145  	if protoimpl.UnsafeEnabled {
   146  		mi := &file_trie_proto_msgTypes[2]
   147  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   148  		ms.StoreMessageInfo(mi)
   149  	}
   150  }
   151  
   152  func (x *LeafPb) String() string {
   153  	return protoimpl.X.MessageStringOf(x)
   154  }
   155  
   156  func (*LeafPb) ProtoMessage() {}
   157  
   158  func (x *LeafPb) ProtoReflect() protoreflect.Message {
   159  	mi := &file_trie_proto_msgTypes[2]
   160  	if protoimpl.UnsafeEnabled && x != nil {
   161  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   162  		if ms.LoadMessageInfo() == nil {
   163  			ms.StoreMessageInfo(mi)
   164  		}
   165  		return ms
   166  	}
   167  	return mi.MessageOf(x)
   168  }
   169  
   170  // Deprecated: Use LeafPb.ProtoReflect.Descriptor instead.
   171  func (*LeafPb) Descriptor() ([]byte, []int) {
   172  	return file_trie_proto_rawDescGZIP(), []int{2}
   173  }
   174  
   175  func (x *LeafPb) GetExt() uint32 {
   176  	if x != nil {
   177  		return x.Ext
   178  	}
   179  	return 0
   180  }
   181  
   182  func (x *LeafPb) GetPath() []byte {
   183  	if x != nil {
   184  		return x.Path
   185  	}
   186  	return nil
   187  }
   188  
   189  func (x *LeafPb) GetValue() []byte {
   190  	if x != nil {
   191  		return x.Value
   192  	}
   193  	return nil
   194  }
   195  
   196  type ExtendPb struct {
   197  	state         protoimpl.MessageState
   198  	sizeCache     protoimpl.SizeCache
   199  	unknownFields protoimpl.UnknownFields
   200  
   201  	Path  []byte `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
   202  	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
   203  }
   204  
   205  func (x *ExtendPb) Reset() {
   206  	*x = ExtendPb{}
   207  	if protoimpl.UnsafeEnabled {
   208  		mi := &file_trie_proto_msgTypes[3]
   209  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   210  		ms.StoreMessageInfo(mi)
   211  	}
   212  }
   213  
   214  func (x *ExtendPb) String() string {
   215  	return protoimpl.X.MessageStringOf(x)
   216  }
   217  
   218  func (*ExtendPb) ProtoMessage() {}
   219  
   220  func (x *ExtendPb) ProtoReflect() protoreflect.Message {
   221  	mi := &file_trie_proto_msgTypes[3]
   222  	if protoimpl.UnsafeEnabled && x != nil {
   223  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   224  		if ms.LoadMessageInfo() == nil {
   225  			ms.StoreMessageInfo(mi)
   226  		}
   227  		return ms
   228  	}
   229  	return mi.MessageOf(x)
   230  }
   231  
   232  // Deprecated: Use ExtendPb.ProtoReflect.Descriptor instead.
   233  func (*ExtendPb) Descriptor() ([]byte, []int) {
   234  	return file_trie_proto_rawDescGZIP(), []int{3}
   235  }
   236  
   237  func (x *ExtendPb) GetPath() []byte {
   238  	if x != nil {
   239  		return x.Path
   240  	}
   241  	return nil
   242  }
   243  
   244  func (x *ExtendPb) GetValue() []byte {
   245  	if x != nil {
   246  		return x.Value
   247  	}
   248  	return nil
   249  }
   250  
   251  type NodePb struct {
   252  	state         protoimpl.MessageState
   253  	sizeCache     protoimpl.SizeCache
   254  	unknownFields protoimpl.UnknownFields
   255  
   256  	// Types that are assignable to Node:
   257  	//	*NodePb_Branch
   258  	//	*NodePb_Leaf
   259  	//	*NodePb_Extend
   260  	Node isNodePb_Node `protobuf_oneof:"node"`
   261  }
   262  
   263  func (x *NodePb) Reset() {
   264  	*x = NodePb{}
   265  	if protoimpl.UnsafeEnabled {
   266  		mi := &file_trie_proto_msgTypes[4]
   267  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   268  		ms.StoreMessageInfo(mi)
   269  	}
   270  }
   271  
   272  func (x *NodePb) String() string {
   273  	return protoimpl.X.MessageStringOf(x)
   274  }
   275  
   276  func (*NodePb) ProtoMessage() {}
   277  
   278  func (x *NodePb) ProtoReflect() protoreflect.Message {
   279  	mi := &file_trie_proto_msgTypes[4]
   280  	if protoimpl.UnsafeEnabled && x != nil {
   281  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   282  		if ms.LoadMessageInfo() == nil {
   283  			ms.StoreMessageInfo(mi)
   284  		}
   285  		return ms
   286  	}
   287  	return mi.MessageOf(x)
   288  }
   289  
   290  // Deprecated: Use NodePb.ProtoReflect.Descriptor instead.
   291  func (*NodePb) Descriptor() ([]byte, []int) {
   292  	return file_trie_proto_rawDescGZIP(), []int{4}
   293  }
   294  
   295  func (m *NodePb) GetNode() isNodePb_Node {
   296  	if m != nil {
   297  		return m.Node
   298  	}
   299  	return nil
   300  }
   301  
   302  func (x *NodePb) GetBranch() *BranchPb {
   303  	if x, ok := x.GetNode().(*NodePb_Branch); ok {
   304  		return x.Branch
   305  	}
   306  	return nil
   307  }
   308  
   309  func (x *NodePb) GetLeaf() *LeafPb {
   310  	if x, ok := x.GetNode().(*NodePb_Leaf); ok {
   311  		return x.Leaf
   312  	}
   313  	return nil
   314  }
   315  
   316  func (x *NodePb) GetExtend() *ExtendPb {
   317  	if x, ok := x.GetNode().(*NodePb_Extend); ok {
   318  		return x.Extend
   319  	}
   320  	return nil
   321  }
   322  
   323  type isNodePb_Node interface {
   324  	isNodePb_Node()
   325  }
   326  
   327  type NodePb_Branch struct {
   328  	Branch *BranchPb `protobuf:"bytes,2,opt,name=branch,proto3,oneof"`
   329  }
   330  
   331  type NodePb_Leaf struct {
   332  	Leaf *LeafPb `protobuf:"bytes,3,opt,name=leaf,proto3,oneof"`
   333  }
   334  
   335  type NodePb_Extend struct {
   336  	Extend *ExtendPb `protobuf:"bytes,4,opt,name=extend,proto3,oneof"`
   337  }
   338  
   339  func (*NodePb_Branch) isNodePb_Node() {}
   340  
   341  func (*NodePb_Leaf) isNodePb_Node() {}
   342  
   343  func (*NodePb_Extend) isNodePb_Node() {}
   344  
   345  var File_trie_proto protoreflect.FileDescriptor
   346  
   347  var file_trie_proto_rawDesc = []byte{
   348  	0x0a, 0x0a, 0x74, 0x72, 0x69, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x74, 0x72,
   349  	0x69, 0x65, 0x70, 0x62, 0x22, 0x38, 0x0a, 0x0c, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x6f,
   350  	0x64, 0x65, 0x50, 0x62, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20,
   351  	0x01, 0x28, 0x0d, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61,
   352  	0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0x3c,
   353  	0x0a, 0x08, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x50, 0x62, 0x12, 0x30, 0x0a, 0x08, 0x62, 0x72,
   354  	0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74,
   355  	0x72, 0x69, 0x65, 0x70, 0x62, 0x2e, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x6f, 0x64, 0x65,
   356  	0x50, 0x62, 0x52, 0x08, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x22, 0x44, 0x0a, 0x06,
   357  	0x6c, 0x65, 0x61, 0x66, 0x50, 0x62, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20,
   358  	0x01, 0x28, 0x0d, 0x52, 0x03, 0x65, 0x78, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68,
   359  	0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x14, 0x0a, 0x05,
   360  	0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c,
   361  	0x75, 0x65, 0x22, 0x34, 0x0a, 0x08, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x50, 0x62, 0x12, 0x12,
   362  	0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x70, 0x61,
   363  	0x74, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
   364  	0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x8e, 0x01, 0x0a, 0x06, 0x6e, 0x6f, 0x64,
   365  	0x65, 0x50, 0x62, 0x12, 0x2a, 0x0a, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x02, 0x20,
   366  	0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x72, 0x69, 0x65, 0x70, 0x62, 0x2e, 0x62, 0x72, 0x61,
   367  	0x6e, 0x63, 0x68, 0x50, 0x62, 0x48, 0x00, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12,
   368  	0x24, 0x0a, 0x04, 0x6c, 0x65, 0x61, 0x66, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e,
   369  	0x74, 0x72, 0x69, 0x65, 0x70, 0x62, 0x2e, 0x6c, 0x65, 0x61, 0x66, 0x50, 0x62, 0x48, 0x00, 0x52,
   370  	0x04, 0x6c, 0x65, 0x61, 0x66, 0x12, 0x2a, 0x0a, 0x06, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x18,
   371  	0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x72, 0x69, 0x65, 0x70, 0x62, 0x2e, 0x65,
   372  	0x78, 0x74, 0x65, 0x6e, 0x64, 0x50, 0x62, 0x48, 0x00, 0x52, 0x06, 0x65, 0x78, 0x74, 0x65, 0x6e,
   373  	0x64, 0x42, 0x06, 0x0a, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74,
   374  	0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x6f, 0x74, 0x65, 0x78, 0x70, 0x72, 0x6f,
   375  	0x6a, 0x65, 0x63, 0x74, 0x2f, 0x69, 0x6f, 0x74, 0x65, 0x78, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f,
   376  	0x64, 0x62, 0x2f, 0x74, 0x72, 0x69, 0x65, 0x2f, 0x74, 0x72, 0x69, 0x65, 0x70, 0x62, 0x62, 0x06,
   377  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   378  }
   379  
   380  var (
   381  	file_trie_proto_rawDescOnce sync.Once
   382  	file_trie_proto_rawDescData = file_trie_proto_rawDesc
   383  )
   384  
   385  func file_trie_proto_rawDescGZIP() []byte {
   386  	file_trie_proto_rawDescOnce.Do(func() {
   387  		file_trie_proto_rawDescData = protoimpl.X.CompressGZIP(file_trie_proto_rawDescData)
   388  	})
   389  	return file_trie_proto_rawDescData
   390  }
   391  
   392  var file_trie_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
   393  var file_trie_proto_goTypes = []interface{}{
   394  	(*BranchNodePb)(nil), // 0: triepb.branchNodePb
   395  	(*BranchPb)(nil),     // 1: triepb.branchPb
   396  	(*LeafPb)(nil),       // 2: triepb.leafPb
   397  	(*ExtendPb)(nil),     // 3: triepb.extendPb
   398  	(*NodePb)(nil),       // 4: triepb.nodePb
   399  }
   400  var file_trie_proto_depIdxs = []int32{
   401  	0, // 0: triepb.branchPb.branches:type_name -> triepb.branchNodePb
   402  	1, // 1: triepb.nodePb.branch:type_name -> triepb.branchPb
   403  	2, // 2: triepb.nodePb.leaf:type_name -> triepb.leafPb
   404  	3, // 3: triepb.nodePb.extend:type_name -> triepb.extendPb
   405  	4, // [4:4] is the sub-list for method output_type
   406  	4, // [4:4] is the sub-list for method input_type
   407  	4, // [4:4] is the sub-list for extension type_name
   408  	4, // [4:4] is the sub-list for extension extendee
   409  	0, // [0:4] is the sub-list for field type_name
   410  }
   411  
   412  func init() { file_trie_proto_init() }
   413  func file_trie_proto_init() {
   414  	if File_trie_proto != nil {
   415  		return
   416  	}
   417  	if !protoimpl.UnsafeEnabled {
   418  		file_trie_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   419  			switch v := v.(*BranchNodePb); i {
   420  			case 0:
   421  				return &v.state
   422  			case 1:
   423  				return &v.sizeCache
   424  			case 2:
   425  				return &v.unknownFields
   426  			default:
   427  				return nil
   428  			}
   429  		}
   430  		file_trie_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   431  			switch v := v.(*BranchPb); i {
   432  			case 0:
   433  				return &v.state
   434  			case 1:
   435  				return &v.sizeCache
   436  			case 2:
   437  				return &v.unknownFields
   438  			default:
   439  				return nil
   440  			}
   441  		}
   442  		file_trie_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   443  			switch v := v.(*LeafPb); i {
   444  			case 0:
   445  				return &v.state
   446  			case 1:
   447  				return &v.sizeCache
   448  			case 2:
   449  				return &v.unknownFields
   450  			default:
   451  				return nil
   452  			}
   453  		}
   454  		file_trie_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   455  			switch v := v.(*ExtendPb); i {
   456  			case 0:
   457  				return &v.state
   458  			case 1:
   459  				return &v.sizeCache
   460  			case 2:
   461  				return &v.unknownFields
   462  			default:
   463  				return nil
   464  			}
   465  		}
   466  		file_trie_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
   467  			switch v := v.(*NodePb); i {
   468  			case 0:
   469  				return &v.state
   470  			case 1:
   471  				return &v.sizeCache
   472  			case 2:
   473  				return &v.unknownFields
   474  			default:
   475  				return nil
   476  			}
   477  		}
   478  	}
   479  	file_trie_proto_msgTypes[4].OneofWrappers = []interface{}{
   480  		(*NodePb_Branch)(nil),
   481  		(*NodePb_Leaf)(nil),
   482  		(*NodePb_Extend)(nil),
   483  	}
   484  	type x struct{}
   485  	out := protoimpl.TypeBuilder{
   486  		File: protoimpl.DescBuilder{
   487  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   488  			RawDescriptor: file_trie_proto_rawDesc,
   489  			NumEnums:      0,
   490  			NumMessages:   5,
   491  			NumExtensions: 0,
   492  			NumServices:   0,
   493  		},
   494  		GoTypes:           file_trie_proto_goTypes,
   495  		DependencyIndexes: file_trie_proto_depIdxs,
   496  		MessageInfos:      file_trie_proto_msgTypes,
   497  	}.Build()
   498  	File_trie_proto = out.File
   499  	file_trie_proto_rawDesc = nil
   500  	file_trie_proto_goTypes = nil
   501  	file_trie_proto_depIdxs = nil
   502  }