Skip to content
File

Blob: spec/protocol/node.pb.go

go152 lines
1// Code generated by protoc-gen-go. DO NOT EDIT.
2// versions:
3// protoc-gen-go v1.36.11
4// protoc v7.34.0
5// source: spec/proto/node.proto
6 
7package protocol
8 
9import (
10 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12 reflect "reflect"
13 sync "sync"
14 unsafe "unsafe"
15)
16 
17const (
18 // Verify that this generated code is sufficiently up-to-date.
19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
20 // Verify that runtime/protoimpl is sufficiently up-to-date.
21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
22)
23 
24type Node struct {
25 state protoimpl.MessageState `protogen:"open.v1"`
26 Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
27 Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
28 Unknown bool `protobuf:"varint,3,opt,name=unknown,proto3" json:"unknown,omitempty"` // indicate negotiation for ID is needed
29 Rendezvous bool `protobuf:"varint,4,opt,name=rendezvous,proto3" json:"rendezvous,omitempty"` // indicate a client connection
30 unknownFields protoimpl.UnknownFields
31 sizeCache protoimpl.SizeCache
32}
33 
34func (x *Node) Reset() {
35 *x = Node{}
36 mi := &file_spec_proto_node_proto_msgTypes[0]
37 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
38 ms.StoreMessageInfo(mi)
39}
40 
41func (x *Node) String() string {
42 return protoimpl.X.MessageStringOf(x)
43}
44 
45func (*Node) ProtoMessage() {}
46 
47func (x *Node) ProtoReflect() protoreflect.Message {
48 mi := &file_spec_proto_node_proto_msgTypes[0]
49 if x != nil {
50 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
51 if ms.LoadMessageInfo() == nil {
52 ms.StoreMessageInfo(mi)
53 }
54 return ms
55 }
56 return mi.MessageOf(x)
57}
58 
59// Deprecated: Use Node.ProtoReflect.Descriptor instead.
60func (*Node) Descriptor() ([]byte, []int) {
61 return file_spec_proto_node_proto_rawDescGZIP(), []int{0}
62}
63 
64func (x *Node) GetId() uint64 {
65 if x != nil {
66 return x.Id
67 }
68 return 0
69}
70 
71func (x *Node) GetAddress() string {
72 if x != nil {
73 return x.Address
74 }
75 return ""
76}
77 
78func (x *Node) GetUnknown() bool {
79 if x != nil {
80 return x.Unknown
81 }
82 return false
83}
84 
85func (x *Node) GetRendezvous() bool {
86 if x != nil {
87 return x.Rendezvous
88 }
89 return false
90}
91 
92var File_spec_proto_node_proto protoreflect.FileDescriptor
93 
94const file_spec_proto_node_proto_rawDesc = "" +
95 "\n" +
96 "\x15spec/proto/node.proto\x12\bprotocol\"j\n" +
97 "\x04Node\x12\x0e\n" +
98 "\x02id\x18\x01 \x01(\x04R\x02id\x12\x18\n" +
99 "\aaddress\x18\x02 \x01(\tR\aaddress\x12\x18\n" +
100 "\aunknown\x18\x03 \x01(\bR\aunknown\x12\x1e\n" +
101 "\n" +
102 "rendezvous\x18\x04 \x01(\bR\n" +
103 "rendezvousB+H\x01Z'go.miragespace.co/specter/spec/protocolb\x06proto3"
104 
105var (
106 file_spec_proto_node_proto_rawDescOnce sync.Once
107 file_spec_proto_node_proto_rawDescData []byte
108)
109 
110func file_spec_proto_node_proto_rawDescGZIP() []byte {
111 file_spec_proto_node_proto_rawDescOnce.Do(func() {
112 file_spec_proto_node_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_spec_proto_node_proto_rawDesc), len(file_spec_proto_node_proto_rawDesc)))
113 })
114 return file_spec_proto_node_proto_rawDescData
115}
116 
117var file_spec_proto_node_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
118var file_spec_proto_node_proto_goTypes = []any{
119 (*Node)(nil), // 0: protocol.Node
120}
121var file_spec_proto_node_proto_depIdxs = []int32{
122 0, // [0:0] is the sub-list for method output_type
123 0, // [0:0] is the sub-list for method input_type
124 0, // [0:0] is the sub-list for extension type_name
125 0, // [0:0] is the sub-list for extension extendee
126 0, // [0:0] is the sub-list for field type_name
127}
128 
129func init() { file_spec_proto_node_proto_init() }
130func file_spec_proto_node_proto_init() {
131 if File_spec_proto_node_proto != nil {
132 return
133 }
134 type x struct{}
135 out := protoimpl.TypeBuilder{
136 File: protoimpl.DescBuilder{
137 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
138 RawDescriptor: unsafe.Slice(unsafe.StringData(file_spec_proto_node_proto_rawDesc), len(file_spec_proto_node_proto_rawDesc)),
139 NumEnums: 0,
140 NumMessages: 1,
141 NumExtensions: 0,
142 NumServices: 0,
143 },
144 GoTypes: file_spec_proto_node_proto_goTypes,
145 DependencyIndexes: file_spec_proto_node_proto_depIdxs,
146 MessageInfos: file_spec_proto_node_proto_msgTypes,
147 }.Build()
148 File_spec_proto_node_proto = out.File
149 file_spec_proto_node_proto_goTypes = nil
150 file_spec_proto_node_proto_depIdxs = nil
151}