github.com/simpleiot/simpleiot@v0.18.3/internal/pb/node.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.26.0
     4  // 	protoc        v3.21.12
     5  // source: node.proto
     6  
     7  package pb
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  // Maps to NodeEdge type in data/node.go
    24  type Node struct {
    25  	state         protoimpl.MessageState
    26  	sizeCache     protoimpl.SizeCache
    27  	unknownFields protoimpl.UnknownFields
    28  
    29  	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    30  	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
    31  	Hash int32  `protobuf:"varint,4,opt,name=hash,proto3" json:"hash,omitempty"`
    32  	// bool tombstone = 5; // DEPRECATED: Tombstone is now an edge point
    33  	Parent     string   `protobuf:"bytes,6,opt,name=parent,proto3" json:"parent,omitempty"`
    34  	Points     []*Point `protobuf:"bytes,3,rep,name=points,proto3" json:"points,omitempty"`
    35  	EdgePoints []*Point `protobuf:"bytes,7,rep,name=edgePoints,proto3" json:"edgePoints,omitempty"`
    36  }
    37  
    38  func (x *Node) Reset() {
    39  	*x = Node{}
    40  	if protoimpl.UnsafeEnabled {
    41  		mi := &file_node_proto_msgTypes[0]
    42  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    43  		ms.StoreMessageInfo(mi)
    44  	}
    45  }
    46  
    47  func (x *Node) String() string {
    48  	return protoimpl.X.MessageStringOf(x)
    49  }
    50  
    51  func (*Node) ProtoMessage() {}
    52  
    53  func (x *Node) ProtoReflect() protoreflect.Message {
    54  	mi := &file_node_proto_msgTypes[0]
    55  	if protoimpl.UnsafeEnabled && x != nil {
    56  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    57  		if ms.LoadMessageInfo() == nil {
    58  			ms.StoreMessageInfo(mi)
    59  		}
    60  		return ms
    61  	}
    62  	return mi.MessageOf(x)
    63  }
    64  
    65  // Deprecated: Use Node.ProtoReflect.Descriptor instead.
    66  func (*Node) Descriptor() ([]byte, []int) {
    67  	return file_node_proto_rawDescGZIP(), []int{0}
    68  }
    69  
    70  func (x *Node) GetId() string {
    71  	if x != nil {
    72  		return x.Id
    73  	}
    74  	return ""
    75  }
    76  
    77  func (x *Node) GetType() string {
    78  	if x != nil {
    79  		return x.Type
    80  	}
    81  	return ""
    82  }
    83  
    84  func (x *Node) GetHash() int32 {
    85  	if x != nil {
    86  		return x.Hash
    87  	}
    88  	return 0
    89  }
    90  
    91  func (x *Node) GetParent() string {
    92  	if x != nil {
    93  		return x.Parent
    94  	}
    95  	return ""
    96  }
    97  
    98  func (x *Node) GetPoints() []*Point {
    99  	if x != nil {
   100  		return x.Points
   101  	}
   102  	return nil
   103  }
   104  
   105  func (x *Node) GetEdgePoints() []*Point {
   106  	if x != nil {
   107  		return x.EdgePoints
   108  	}
   109  	return nil
   110  }
   111  
   112  type NodeRequest struct {
   113  	state         protoimpl.MessageState
   114  	sizeCache     protoimpl.SizeCache
   115  	unknownFields protoimpl.UnknownFields
   116  
   117  	Node  *Node  `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
   118  	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
   119  }
   120  
   121  func (x *NodeRequest) Reset() {
   122  	*x = NodeRequest{}
   123  	if protoimpl.UnsafeEnabled {
   124  		mi := &file_node_proto_msgTypes[1]
   125  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   126  		ms.StoreMessageInfo(mi)
   127  	}
   128  }
   129  
   130  func (x *NodeRequest) String() string {
   131  	return protoimpl.X.MessageStringOf(x)
   132  }
   133  
   134  func (*NodeRequest) ProtoMessage() {}
   135  
   136  func (x *NodeRequest) ProtoReflect() protoreflect.Message {
   137  	mi := &file_node_proto_msgTypes[1]
   138  	if protoimpl.UnsafeEnabled && x != nil {
   139  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   140  		if ms.LoadMessageInfo() == nil {
   141  			ms.StoreMessageInfo(mi)
   142  		}
   143  		return ms
   144  	}
   145  	return mi.MessageOf(x)
   146  }
   147  
   148  // Deprecated: Use NodeRequest.ProtoReflect.Descriptor instead.
   149  func (*NodeRequest) Descriptor() ([]byte, []int) {
   150  	return file_node_proto_rawDescGZIP(), []int{1}
   151  }
   152  
   153  func (x *NodeRequest) GetNode() *Node {
   154  	if x != nil {
   155  		return x.Node
   156  	}
   157  	return nil
   158  }
   159  
   160  func (x *NodeRequest) GetError() string {
   161  	if x != nil {
   162  		return x.Error
   163  	}
   164  	return ""
   165  }
   166  
   167  type Nodes struct {
   168  	state         protoimpl.MessageState
   169  	sizeCache     protoimpl.SizeCache
   170  	unknownFields protoimpl.UnknownFields
   171  
   172  	Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
   173  }
   174  
   175  func (x *Nodes) Reset() {
   176  	*x = Nodes{}
   177  	if protoimpl.UnsafeEnabled {
   178  		mi := &file_node_proto_msgTypes[2]
   179  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   180  		ms.StoreMessageInfo(mi)
   181  	}
   182  }
   183  
   184  func (x *Nodes) String() string {
   185  	return protoimpl.X.MessageStringOf(x)
   186  }
   187  
   188  func (*Nodes) ProtoMessage() {}
   189  
   190  func (x *Nodes) ProtoReflect() protoreflect.Message {
   191  	mi := &file_node_proto_msgTypes[2]
   192  	if protoimpl.UnsafeEnabled && x != nil {
   193  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   194  		if ms.LoadMessageInfo() == nil {
   195  			ms.StoreMessageInfo(mi)
   196  		}
   197  		return ms
   198  	}
   199  	return mi.MessageOf(x)
   200  }
   201  
   202  // Deprecated: Use Nodes.ProtoReflect.Descriptor instead.
   203  func (*Nodes) Descriptor() ([]byte, []int) {
   204  	return file_node_proto_rawDescGZIP(), []int{2}
   205  }
   206  
   207  func (x *Nodes) GetNodes() []*Node {
   208  	if x != nil {
   209  		return x.Nodes
   210  	}
   211  	return nil
   212  }
   213  
   214  type NodesRequest struct {
   215  	state         protoimpl.MessageState
   216  	sizeCache     protoimpl.SizeCache
   217  	unknownFields protoimpl.UnknownFields
   218  
   219  	Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
   220  	Error string  `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
   221  }
   222  
   223  func (x *NodesRequest) Reset() {
   224  	*x = NodesRequest{}
   225  	if protoimpl.UnsafeEnabled {
   226  		mi := &file_node_proto_msgTypes[3]
   227  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   228  		ms.StoreMessageInfo(mi)
   229  	}
   230  }
   231  
   232  func (x *NodesRequest) String() string {
   233  	return protoimpl.X.MessageStringOf(x)
   234  }
   235  
   236  func (*NodesRequest) ProtoMessage() {}
   237  
   238  func (x *NodesRequest) ProtoReflect() protoreflect.Message {
   239  	mi := &file_node_proto_msgTypes[3]
   240  	if protoimpl.UnsafeEnabled && x != nil {
   241  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   242  		if ms.LoadMessageInfo() == nil {
   243  			ms.StoreMessageInfo(mi)
   244  		}
   245  		return ms
   246  	}
   247  	return mi.MessageOf(x)
   248  }
   249  
   250  // Deprecated: Use NodesRequest.ProtoReflect.Descriptor instead.
   251  func (*NodesRequest) Descriptor() ([]byte, []int) {
   252  	return file_node_proto_rawDescGZIP(), []int{3}
   253  }
   254  
   255  func (x *NodesRequest) GetNodes() []*Node {
   256  	if x != nil {
   257  		return x.Nodes
   258  	}
   259  	return nil
   260  }
   261  
   262  func (x *NodesRequest) GetError() string {
   263  	if x != nil {
   264  		return x.Error
   265  	}
   266  	return ""
   267  }
   268  
   269  var File_node_proto protoreflect.FileDescriptor
   270  
   271  var file_node_proto_rawDesc = []byte{
   272  	0x0a, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62,
   273  	0x1a, 0x0b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa4, 0x01,
   274  	0x0a, 0x04, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
   275  	0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02,
   276  	0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61,
   277  	0x73, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x16,
   278  	0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
   279  	0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x21, 0x0a, 0x06, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73,
   280  	0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x6f, 0x69, 0x6e,
   281  	0x74, 0x52, 0x06, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x29, 0x0a, 0x0a, 0x65, 0x64, 0x67,
   282  	0x65, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e,
   283  	0x70, 0x62, 0x2e, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x0a, 0x65, 0x64, 0x67, 0x65, 0x50, 0x6f,
   284  	0x69, 0x6e, 0x74, 0x73, 0x22, 0x41, 0x0a, 0x0b, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75,
   285  	0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
   286  	0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6e, 0x6f, 0x64,
   287  	0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
   288  	0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x27, 0x0a, 0x05, 0x4e, 0x6f, 0x64, 0x65, 0x73,
   289  	0x12, 0x1e, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
   290  	0x08, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73,
   291  	0x22, 0x44, 0x0a, 0x0c, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
   292  	0x12, 0x1e, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
   293  	0x08, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73,
   294  	0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
   295  	0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x0d, 0x5a, 0x0b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e,
   296  	0x61, 0x6c, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   297  }
   298  
   299  var (
   300  	file_node_proto_rawDescOnce sync.Once
   301  	file_node_proto_rawDescData = file_node_proto_rawDesc
   302  )
   303  
   304  func file_node_proto_rawDescGZIP() []byte {
   305  	file_node_proto_rawDescOnce.Do(func() {
   306  		file_node_proto_rawDescData = protoimpl.X.CompressGZIP(file_node_proto_rawDescData)
   307  	})
   308  	return file_node_proto_rawDescData
   309  }
   310  
   311  var file_node_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   312  var file_node_proto_goTypes = []interface{}{
   313  	(*Node)(nil),         // 0: pb.Node
   314  	(*NodeRequest)(nil),  // 1: pb.NodeRequest
   315  	(*Nodes)(nil),        // 2: pb.Nodes
   316  	(*NodesRequest)(nil), // 3: pb.NodesRequest
   317  	(*Point)(nil),        // 4: pb.Point
   318  }
   319  var file_node_proto_depIdxs = []int32{
   320  	4, // 0: pb.Node.points:type_name -> pb.Point
   321  	4, // 1: pb.Node.edgePoints:type_name -> pb.Point
   322  	0, // 2: pb.NodeRequest.node:type_name -> pb.Node
   323  	0, // 3: pb.Nodes.nodes:type_name -> pb.Node
   324  	0, // 4: pb.NodesRequest.nodes:type_name -> pb.Node
   325  	5, // [5:5] is the sub-list for method output_type
   326  	5, // [5:5] is the sub-list for method input_type
   327  	5, // [5:5] is the sub-list for extension type_name
   328  	5, // [5:5] is the sub-list for extension extendee
   329  	0, // [0:5] is the sub-list for field type_name
   330  }
   331  
   332  func init() { file_node_proto_init() }
   333  func file_node_proto_init() {
   334  	if File_node_proto != nil {
   335  		return
   336  	}
   337  	file_point_proto_init()
   338  	if !protoimpl.UnsafeEnabled {
   339  		file_node_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   340  			switch v := v.(*Node); i {
   341  			case 0:
   342  				return &v.state
   343  			case 1:
   344  				return &v.sizeCache
   345  			case 2:
   346  				return &v.unknownFields
   347  			default:
   348  				return nil
   349  			}
   350  		}
   351  		file_node_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   352  			switch v := v.(*NodeRequest); i {
   353  			case 0:
   354  				return &v.state
   355  			case 1:
   356  				return &v.sizeCache
   357  			case 2:
   358  				return &v.unknownFields
   359  			default:
   360  				return nil
   361  			}
   362  		}
   363  		file_node_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   364  			switch v := v.(*Nodes); i {
   365  			case 0:
   366  				return &v.state
   367  			case 1:
   368  				return &v.sizeCache
   369  			case 2:
   370  				return &v.unknownFields
   371  			default:
   372  				return nil
   373  			}
   374  		}
   375  		file_node_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   376  			switch v := v.(*NodesRequest); i {
   377  			case 0:
   378  				return &v.state
   379  			case 1:
   380  				return &v.sizeCache
   381  			case 2:
   382  				return &v.unknownFields
   383  			default:
   384  				return nil
   385  			}
   386  		}
   387  	}
   388  	type x struct{}
   389  	out := protoimpl.TypeBuilder{
   390  		File: protoimpl.DescBuilder{
   391  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   392  			RawDescriptor: file_node_proto_rawDesc,
   393  			NumEnums:      0,
   394  			NumMessages:   4,
   395  			NumExtensions: 0,
   396  			NumServices:   0,
   397  		},
   398  		GoTypes:           file_node_proto_goTypes,
   399  		DependencyIndexes: file_node_proto_depIdxs,
   400  		MessageInfos:      file_node_proto_msgTypes,
   401  	}.Build()
   402  	File_node_proto = out.File
   403  	file_node_proto_rawDesc = nil
   404  	file_node_proto_goTypes = nil
   405  	file_node_proto_depIdxs = nil
   406  }