Debian Codegraph @

crit/images/sk-packet/sk-packet.pb.go

raw symbols SCIP
1 // SPDX-License-Identifier: MIT
2
3 // Code generated by protoc-gen-go. DO NOT EDIT.
4 // versions:
5 // protoc-gen-go v1.30.0
6 // protoc v4.23.4
7 // source: sk-packet.proto
8
9 package sk_packet
10
11 import (
12 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
13 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
14 reflect "reflect"
15 sync "sync"
16 )
17
18 const (
19 // Verify that this generated code is sufficiently up-to-date.
20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
21 // Verify that runtime/protoimpl is sufficiently up-to-date.
22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
23 )
24
25 type ScmEntry struct {
26 state protoimpl.MessageState
27 sizeCache protoimpl.SizeCache
28 unknownFields protoimpl.UnknownFields
29
30 Type *uint32 `protobuf:"varint,1,req,name=type" json:"type,omitempty"`
31 Rights []uint32 `protobuf:"varint,2,rep,name=rights" json:"rights,omitempty"`
32 }
33
34 func (x *ScmEntry) Reset() {
35 *x = ScmEntry{}
36 if protoimpl.UnsafeEnabled {
37 mi := &file_sk_packet_proto_msgTypes[0]
38 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
39 ms.StoreMessageInfo(mi)
40 }
41 }
42
43 func (x *ScmEntry) String() string {
44 return protoimpl.X.MessageStringOf(x)
45 }
46
47 func (*ScmEntry) ProtoMessage() {}
48
49 func (x *ScmEntry) ProtoReflect() protoreflect.Message {
50 mi := &file_sk_packet_proto_msgTypes[0]
51 if protoimpl.UnsafeEnabled && x != nil {
52 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
53 if ms.LoadMessageInfo() == nil {
54 ms.StoreMessageInfo(mi)
55 }
56 return ms
57 }
58 return mi.MessageOf(x)
59 }
60
61 // Deprecated: Use ScmEntry.ProtoReflect.Descriptor instead.
62 func (*ScmEntry) Descriptor() ([]byte, []int) {
63 return file_sk_packet_proto_rawDescGZIP(), []int{0}
64 }
65
66 func (x *ScmEntry) GetType() uint32 {
67 if x != nil && x.Type != nil {
68 return *x.Type
69 }
70 return 0
71 }
72
73 func (x *ScmEntry) GetRights() []uint32 {
74 if x != nil {
75 return x.Rights
76 }
77 return nil
78 }
79
80 type SkPacketEntry struct {
81 state protoimpl.MessageState
82 sizeCache protoimpl.SizeCache
83 unknownFields protoimpl.UnknownFields
84
85 IdFor *uint32 `protobuf:"varint,1,req,name=id_for,json=idFor" json:"id_for,omitempty"`
86 Length *uint32 `protobuf:"varint,2,req,name=length" json:"length,omitempty"`
87 // Reserved for message address
88 // optional bytes addr = 3;
89 Scm []*ScmEntry `protobuf:"bytes,4,rep,name=scm" json:"scm,omitempty"`
90 }
91
92 func (x *SkPacketEntry) Reset() {
93 *x = SkPacketEntry{}
94 if protoimpl.UnsafeEnabled {
95 mi := &file_sk_packet_proto_msgTypes[1]
96 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
97 ms.StoreMessageInfo(mi)
98 }
99 }
100
101 func (x *SkPacketEntry) String() string {
102 return protoimpl.X.MessageStringOf(x)
103 }
104
105 func (*SkPacketEntry) ProtoMessage() {}
106
107 func (x *SkPacketEntry) ProtoReflect() protoreflect.Message {
108 mi := &file_sk_packet_proto_msgTypes[1]
109 if protoimpl.UnsafeEnabled && x != nil {
110 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
111 if ms.LoadMessageInfo() == nil {
112 ms.StoreMessageInfo(mi)
113 }
114 return ms
115 }
116 return mi.MessageOf(x)
117 }
118
119 // Deprecated: Use SkPacketEntry.ProtoReflect.Descriptor instead.
120 func (*SkPacketEntry) Descriptor() ([]byte, []int) {
121 return file_sk_packet_proto_rawDescGZIP(), []int{1}
122 }
123
124 func (x *SkPacketEntry) GetIdFor() uint32 {
125 if x != nil && x.IdFor != nil {
126 return *x.IdFor
127 }
128 return 0
129 }
130
131 func (x *SkPacketEntry) GetLength() uint32 {
132 if x != nil && x.Length != nil {
133 return *x.Length
134 }
135 return 0
136 }
137
138 func (x *SkPacketEntry) GetScm() []*ScmEntry {
139 if x != nil {
140 return x.Scm
141 }
142 return nil
143 }
144
145 var File_sk_packet_proto protoreflect.FileDescriptor
146
147 var file_sk_packet_proto_rawDesc = []byte{
148 0x0a, 0x0f, 0x73, 0x6b, 0x2d, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
149 0x6f, 0x22, 0x37, 0x0a, 0x09, 0x73, 0x63, 0x6d, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x12,
150 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x04, 0x74, 0x79,
151 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x69, 0x67, 0x68, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03,
152 0x28, 0x0d, 0x52, 0x06, 0x72, 0x69, 0x67, 0x68, 0x74, 0x73, 0x22, 0x5e, 0x0a, 0x0f, 0x73, 0x6b,
153 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x15, 0x0a,
154 0x06, 0x69, 0x64, 0x5f, 0x66, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x05, 0x69,
155 0x64, 0x46, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x02,
156 0x20, 0x02, 0x28, 0x0d, 0x52, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x1c, 0x0a, 0x03,
157 0x73, 0x63, 0x6d, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x73, 0x63, 0x6d, 0x5f,
158 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x03, 0x73, 0x63, 0x6d,
159 }
160
161 var (
162 file_sk_packet_proto_rawDescOnce sync.Once
163 file_sk_packet_proto_rawDescData = file_sk_packet_proto_rawDesc
164 )
165
166 func file_sk_packet_proto_rawDescGZIP() []byte {
167 file_sk_packet_proto_rawDescOnce.Do(func() {
168 file_sk_packet_proto_rawDescData = protoimpl.X.CompressGZIP(file_sk_packet_proto_rawDescData)
169 })
170 return file_sk_packet_proto_rawDescData
171 }
172
173 var file_sk_packet_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
174 var file_sk_packet_proto_goTypes = []interface{}{
175 (*ScmEntry)(nil), // 0: scm_entry
176 (*SkPacketEntry)(nil), // 1: sk_packet_entry
177 }
178 var file_sk_packet_proto_depIdxs = []int32{
179 0, // 0: sk_packet_entry.scm:type_name -> scm_entry
180 1, // [1:1] is the sub-list for method output_type
181 1, // [1:1] is the sub-list for method input_type
182 1, // [1:1] is the sub-list for extension type_name
183 1, // [1:1] is the sub-list for extension extendee
184 0, // [0:1] is the sub-list for field type_name
185 }
186
187 func init() { file_sk_packet_proto_init() }
188 func file_sk_packet_proto_init() {
189 if File_sk_packet_proto != nil {
190 return
191 }
192 if !protoimpl.UnsafeEnabled {
193 file_sk_packet_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
194 switch v := v.(*ScmEntry); i {
195 case 0:
196 return &v.state
197 case 1:
198 return &v.sizeCache
199 case 2:
200 return &v.unknownFields
201 default:
202 return nil
203 }
204 }
205 file_sk_packet_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
206 switch v := v.(*SkPacketEntry); i {
207 case 0:
208 return &v.state
209 case 1:
210 return &v.sizeCache
211 case 2:
212 return &v.unknownFields
213 default:
214 return nil
215 }
216 }
217 }
218 type x struct{}
219 out := protoimpl.TypeBuilder{
220 File: protoimpl.DescBuilder{
221 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
222 RawDescriptor: file_sk_packet_proto_rawDesc,
223 NumEnums: 0,
224 NumMessages: 2,
225 NumExtensions: 0,
226 NumServices: 0,
227 },
228 GoTypes: file_sk_packet_proto_goTypes,
229 DependencyIndexes: file_sk_packet_proto_depIdxs,
230 MessageInfos: file_sk_packet_proto_msgTypes,
231 }.Build()
232 File_sk_packet_proto = out.File
233 file_sk_packet_proto_rawDesc = nil
234 file_sk_packet_proto_goTypes = nil
235 file_sk_packet_proto_depIdxs = nil
236 }