1
2
3
4
5
6
7 package meta
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
18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
19
20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
21 )
22
23
24
25 type Metadata struct {
26 state protoimpl.MessageState
27 sizeCache protoimpl.SizeCache
28 unknownFields protoimpl.UnknownFields
29
30
31
32
33
34 Kind isMetadata_Kind `protobuf_oneof:"kind"`
35 }
36
37 func (x *Metadata) Reset() {
38 *x = Metadata{}
39 if protoimpl.UnsafeEnabled {
40 mi := &file_meta_proto_msgTypes[0]
41 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
42 ms.StoreMessageInfo(mi)
43 }
44 }
45
46 func (x *Metadata) String() string {
47 return protoimpl.X.MessageStringOf(x)
48 }
49
50 func (*Metadata) ProtoMessage() {}
51
52 func (x *Metadata) ProtoReflect() protoreflect.Message {
53 mi := &file_meta_proto_msgTypes[0]
54 if protoimpl.UnsafeEnabled && x != nil {
55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
56 if ms.LoadMessageInfo() == nil {
57 ms.StoreMessageInfo(mi)
58 }
59 return ms
60 }
61 return mi.MessageOf(x)
62 }
63
64
65 func (*Metadata) Descriptor() ([]byte, []int) {
66 return file_meta_proto_rawDescGZIP(), []int{0}
67 }
68
69 func (m *Metadata) GetKind() isMetadata_Kind {
70 if m != nil {
71 return m.Kind
72 }
73 return nil
74 }
75
76 func (x *Metadata) GetDefault() string {
77 if x, ok := x.GetKind().(*Metadata_Default); ok {
78 return x.Default
79 }
80 return ""
81 }
82
83 func (x *Metadata) GetResource() *Resource {
84 if x, ok := x.GetKind().(*Metadata_Resource); ok {
85 return x.Resource
86 }
87 return nil
88 }
89
90 type isMetadata_Kind interface {
91 isMetadata_Kind()
92 }
93
94 type Metadata_Default struct {
95
96
97
98
99
100 Default string `protobuf:"bytes,1,opt,name=default,proto3,oneof"`
101 }
102
103 type Metadata_Resource struct {
104 Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3,oneof"`
105 }
106
107 func (*Metadata_Default) isMetadata_Kind() {}
108
109 func (*Metadata_Resource) isMetadata_Kind() {}
110
111
112 type Resource struct {
113 state protoimpl.MessageState
114 sizeCache protoimpl.SizeCache
115 unknownFields protoimpl.UnknownFields
116
117 Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
118 Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
119 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
120 Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"`
121 Section string `protobuf:"bytes,5,opt,name=section,proto3" json:"section,omitempty"`
122 Port uint32 `protobuf:"varint,6,opt,name=port,proto3" json:"port,omitempty"`
123 }
124
125 func (x *Resource) Reset() {
126 *x = Resource{}
127 if protoimpl.UnsafeEnabled {
128 mi := &file_meta_proto_msgTypes[1]
129 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
130 ms.StoreMessageInfo(mi)
131 }
132 }
133
134 func (x *Resource) String() string {
135 return protoimpl.X.MessageStringOf(x)
136 }
137
138 func (*Resource) ProtoMessage() {}
139
140 func (x *Resource) ProtoReflect() protoreflect.Message {
141 mi := &file_meta_proto_msgTypes[1]
142 if protoimpl.UnsafeEnabled && x != nil {
143 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
144 if ms.LoadMessageInfo() == nil {
145 ms.StoreMessageInfo(mi)
146 }
147 return ms
148 }
149 return mi.MessageOf(x)
150 }
151
152
153 func (*Resource) Descriptor() ([]byte, []int) {
154 return file_meta_proto_rawDescGZIP(), []int{1}
155 }
156
157 func (x *Resource) GetGroup() string {
158 if x != nil {
159 return x.Group
160 }
161 return ""
162 }
163
164 func (x *Resource) GetKind() string {
165 if x != nil {
166 return x.Kind
167 }
168 return ""
169 }
170
171 func (x *Resource) GetName() string {
172 if x != nil {
173 return x.Name
174 }
175 return ""
176 }
177
178 func (x *Resource) GetNamespace() string {
179 if x != nil {
180 return x.Namespace
181 }
182 return ""
183 }
184
185 func (x *Resource) GetSection() string {
186 if x != nil {
187 return x.Section
188 }
189 return ""
190 }
191
192 func (x *Resource) GetPort() uint32 {
193 if x != nil {
194 return x.Port
195 }
196 return 0
197 }
198
199 var File_meta_proto protoreflect.FileDescriptor
200
201 var file_meta_proto_rawDesc = []byte{
202 0x0a, 0x0a, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x69, 0x6f,
203 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x65, 0x72, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x6d,
204 0x65, 0x74, 0x61, 0x22, 0x6d, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12,
205 0x1a, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
206 0x48, 0x00, 0x52, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x3d, 0x0a, 0x08, 0x72,
207 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e,
208 0x69, 0x6f, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x65, 0x72, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79,
209 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x00,
210 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69,
211 0x6e, 0x64, 0x22, 0x94, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12,
212 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
213 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x02, 0x20,
214 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
215 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a,
216 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
217 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73,
218 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65,
219 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20,
220 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x42, 0x2f, 0x5a, 0x2d, 0x67, 0x69, 0x74,
221 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x69, 0x6e, 0x6b, 0x65, 0x72, 0x64, 0x2f,
222 0x6c, 0x69, 0x6e, 0x6b, 0x65, 0x72, 0x64, 0x32, 0x2d, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2d, 0x61,
223 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
224 0x6f, 0x33,
225 }
226
227 var (
228 file_meta_proto_rawDescOnce sync.Once
229 file_meta_proto_rawDescData = file_meta_proto_rawDesc
230 )
231
232 func file_meta_proto_rawDescGZIP() []byte {
233 file_meta_proto_rawDescOnce.Do(func() {
234 file_meta_proto_rawDescData = protoimpl.X.CompressGZIP(file_meta_proto_rawDescData)
235 })
236 return file_meta_proto_rawDescData
237 }
238
239 var file_meta_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
240 var file_meta_proto_goTypes = []interface{}{
241 (*Metadata)(nil),
242 (*Resource)(nil),
243 }
244 var file_meta_proto_depIdxs = []int32{
245 1,
246 1,
247 1,
248 1,
249 1,
250 0,
251 }
252
253 func init() { file_meta_proto_init() }
254 func file_meta_proto_init() {
255 if File_meta_proto != nil {
256 return
257 }
258 if !protoimpl.UnsafeEnabled {
259 file_meta_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
260 switch v := v.(*Metadata); i {
261 case 0:
262 return &v.state
263 case 1:
264 return &v.sizeCache
265 case 2:
266 return &v.unknownFields
267 default:
268 return nil
269 }
270 }
271 file_meta_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
272 switch v := v.(*Resource); i {
273 case 0:
274 return &v.state
275 case 1:
276 return &v.sizeCache
277 case 2:
278 return &v.unknownFields
279 default:
280 return nil
281 }
282 }
283 }
284 file_meta_proto_msgTypes[0].OneofWrappers = []interface{}{
285 (*Metadata_Default)(nil),
286 (*Metadata_Resource)(nil),
287 }
288 type x struct{}
289 out := protoimpl.TypeBuilder{
290 File: protoimpl.DescBuilder{
291 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
292 RawDescriptor: file_meta_proto_rawDesc,
293 NumEnums: 0,
294 NumMessages: 2,
295 NumExtensions: 0,
296 NumServices: 0,
297 },
298 GoTypes: file_meta_proto_goTypes,
299 DependencyIndexes: file_meta_proto_depIdxs,
300 MessageInfos: file_meta_proto_msgTypes,
301 }.Build()
302 File_meta_proto = out.File
303 file_meta_proto_rawDesc = nil
304 file_meta_proto_goTypes = nil
305 file_meta_proto_depIdxs = nil
306 }
307
View as plain text