Debian Codegraph @

crit/images/userns/userns.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: userns.proto
8
9 package userns
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 UidGidExtent struct {
26 state protoimpl.MessageState
27 sizeCache protoimpl.SizeCache
28 unknownFields protoimpl.UnknownFields
29
30 First *uint32 `protobuf:"varint,1,req,name=first" json:"first,omitempty"`
31 LowerFirst *uint32 `protobuf:"varint,2,req,name=lower_first,json=lowerFirst" json:"lower_first,omitempty"`
32 Count *uint32 `protobuf:"varint,3,req,name=count" json:"count,omitempty"`
33 }
34
35 func (x *UidGidExtent) Reset() {
36 *x = UidGidExtent{}
37 if protoimpl.UnsafeEnabled {
38 mi := &file_userns_proto_msgTypes[0]
39 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
40 ms.StoreMessageInfo(mi)
41 }
42 }
43
44 func (x *UidGidExtent) String() string {
45 return protoimpl.X.MessageStringOf(x)
46 }
47
48 func (*UidGidExtent) ProtoMessage() {}
49
50 func (x *UidGidExtent) ProtoReflect() protoreflect.Message {
51 mi := &file_userns_proto_msgTypes[0]
52 if protoimpl.UnsafeEnabled && x != nil {
53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
54 if ms.LoadMessageInfo() == nil {
55 ms.StoreMessageInfo(mi)
56 }
57 return ms
58 }
59 return mi.MessageOf(x)
60 }
61
62 // Deprecated: Use UidGidExtent.ProtoReflect.Descriptor instead.
63 func (*UidGidExtent) Descriptor() ([]byte, []int) {
64 return file_userns_proto_rawDescGZIP(), []int{0}
65 }
66
67 func (x *UidGidExtent) GetFirst() uint32 {
68 if x != nil && x.First != nil {
69 return *x.First
70 }
71 return 0
72 }
73
74 func (x *UidGidExtent) GetLowerFirst() uint32 {
75 if x != nil && x.LowerFirst != nil {
76 return *x.LowerFirst
77 }
78 return 0
79 }
80
81 func (x *UidGidExtent) GetCount() uint32 {
82 if x != nil && x.Count != nil {
83 return *x.Count
84 }
85 return 0
86 }
87
88 type UsernsEntry struct {
89 state protoimpl.MessageState
90 sizeCache protoimpl.SizeCache
91 unknownFields protoimpl.UnknownFields
92
93 UidMap []*UidGidExtent `protobuf:"bytes,1,rep,name=uid_map,json=uidMap" json:"uid_map,omitempty"`
94 GidMap []*UidGidExtent `protobuf:"bytes,2,rep,name=gid_map,json=gidMap" json:"gid_map,omitempty"`
95 }
96
97 func (x *UsernsEntry) Reset() {
98 *x = UsernsEntry{}
99 if protoimpl.UnsafeEnabled {
100 mi := &file_userns_proto_msgTypes[1]
101 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
102 ms.StoreMessageInfo(mi)
103 }
104 }
105
106 func (x *UsernsEntry) String() string {
107 return protoimpl.X.MessageStringOf(x)
108 }
109
110 func (*UsernsEntry) ProtoMessage() {}
111
112 func (x *UsernsEntry) ProtoReflect() protoreflect.Message {
113 mi := &file_userns_proto_msgTypes[1]
114 if protoimpl.UnsafeEnabled && x != nil {
115 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
116 if ms.LoadMessageInfo() == nil {
117 ms.StoreMessageInfo(mi)
118 }
119 return ms
120 }
121 return mi.MessageOf(x)
122 }
123
124 // Deprecated: Use UsernsEntry.ProtoReflect.Descriptor instead.
125 func (*UsernsEntry) Descriptor() ([]byte, []int) {
126 return file_userns_proto_rawDescGZIP(), []int{1}
127 }
128
129 func (x *UsernsEntry) GetUidMap() []*UidGidExtent {
130 if x != nil {
131 return x.UidMap
132 }
133 return nil
134 }
135
136 func (x *UsernsEntry) GetGidMap() []*UidGidExtent {
137 if x != nil {
138 return x.GidMap
139 }
140 return nil
141 }
142
143 var File_userns_proto protoreflect.FileDescriptor
144
145 var file_userns_proto_rawDesc = []byte{
146 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5d,
147 0x0a, 0x0e, 0x75, 0x69, 0x64, 0x5f, 0x67, 0x69, 0x64, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x74,
148 0x12, 0x14, 0x0a, 0x05, 0x66, 0x69, 0x72, 0x73, 0x74, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0d, 0x52,
149 0x05, 0x66, 0x69, 0x72, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x5f,
150 0x66, 0x69, 0x72, 0x73, 0x74, 0x18, 0x02, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x0a, 0x6c, 0x6f, 0x77,
151 0x65, 0x72, 0x46, 0x69, 0x72, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74,
152 0x18, 0x03, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x62, 0x0a,
153 0x0c, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x73, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x28, 0x0a,
154 0x07, 0x75, 0x69, 0x64, 0x5f, 0x6d, 0x61, 0x70, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f,
155 0x2e, 0x75, 0x69, 0x64, 0x5f, 0x67, 0x69, 0x64, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x74, 0x52,
156 0x06, 0x75, 0x69, 0x64, 0x4d, 0x61, 0x70, 0x12, 0x28, 0x0a, 0x07, 0x67, 0x69, 0x64, 0x5f, 0x6d,
157 0x61, 0x70, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x75, 0x69, 0x64, 0x5f, 0x67,
158 0x69, 0x64, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x67, 0x69, 0x64, 0x4d, 0x61,
159 0x70,
160 }
161
162 var (
163 file_userns_proto_rawDescOnce sync.Once
164 file_userns_proto_rawDescData = file_userns_proto_rawDesc
165 )
166
167 func file_userns_proto_rawDescGZIP() []byte {
168 file_userns_proto_rawDescOnce.Do(func() {
169 file_userns_proto_rawDescData = protoimpl.X.CompressGZIP(file_userns_proto_rawDescData)
170 })
171 return file_userns_proto_rawDescData
172 }
173
174 var file_userns_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
175 var file_userns_proto_goTypes = []interface{}{
176 (*UidGidExtent)(nil), // 0: uid_gid_extent
177 (*UsernsEntry)(nil), // 1: userns_entry
178 }
179 var file_userns_proto_depIdxs = []int32{
180 0, // 0: userns_entry.uid_map:type_name -> uid_gid_extent
181 0, // 1: userns_entry.gid_map:type_name -> uid_gid_extent
182 2, // [2:2] is the sub-list for method output_type
183 2, // [2:2] is the sub-list for method input_type
184 2, // [2:2] is the sub-list for extension type_name
185 2, // [2:2] is the sub-list for extension extendee
186 0, // [0:2] is the sub-list for field type_name
187 }
188
189 func init() { file_userns_proto_init() }
190 func file_userns_proto_init() {
191 if File_userns_proto != nil {
192 return
193 }
194 if !protoimpl.UnsafeEnabled {
195 file_userns_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
196 switch v := v.(*UidGidExtent); i {
197 case 0:
198 return &v.state
199 case 1:
200 return &v.sizeCache
201 case 2:
202 return &v.unknownFields
203 default:
204 return nil
205 }
206 }
207 file_userns_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
208 switch v := v.(*UsernsEntry); i {
209 case 0:
210 return &v.state
211 case 1:
212 return &v.sizeCache
213 case 2:
214 return &v.unknownFields
215 default:
216 return nil
217 }
218 }
219 }
220 type x struct{}
221 out := protoimpl.TypeBuilder{
222 File: protoimpl.DescBuilder{
223 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
224 RawDescriptor: file_userns_proto_rawDesc,
225 NumEnums: 0,
226 NumMessages: 2,
227 NumExtensions: 0,
228 NumServices: 0,
229 },
230 GoTypes: file_userns_proto_goTypes,
231 DependencyIndexes: file_userns_proto_depIdxs,
232 MessageInfos: file_userns_proto_msgTypes,
233 }.Build()
234 File_userns_proto = out.File
235 file_userns_proto_rawDesc = nil
236 file_userns_proto_goTypes = nil
237 file_userns_proto_depIdxs = nil
238 }