go.mondoo.com/cnquery@v0.0.0-20231005093811-59568235f6ea/providers-sdk/v1/resources/resources.pb.go (about) 1 // Copyright (c) Mondoo, Inc. 2 // SPDX-License-Identifier: BUSL-1.1 3 4 // Code generated by protoc-gen-go. DO NOT EDIT. 5 // versions: 6 // protoc-gen-go v1.31.0 7 // protoc v4.24.3 8 // source: resources.proto 9 10 package resources 11 12 import ( 13 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 14 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 15 reflect "reflect" 16 sync "sync" 17 ) 18 19 const ( 20 // Verify that this generated code is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 22 // Verify that runtime/protoimpl is sufficiently up-to-date. 23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 24 ) 25 26 type Schema struct { 27 state protoimpl.MessageState 28 sizeCache protoimpl.SizeCache 29 unknownFields protoimpl.UnknownFields 30 31 Resources map[string]*ResourceInfo `protobuf:"bytes,3,rep,name=resources,proto3" json:"resources,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 32 } 33 34 func (x *Schema) Reset() { 35 *x = Schema{} 36 if protoimpl.UnsafeEnabled { 37 mi := &file_resources_proto_msgTypes[0] 38 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 39 ms.StoreMessageInfo(mi) 40 } 41 } 42 43 func (x *Schema) String() string { 44 return protoimpl.X.MessageStringOf(x) 45 } 46 47 func (*Schema) ProtoMessage() {} 48 49 func (x *Schema) ProtoReflect() protoreflect.Message { 50 mi := &file_resources_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 Schema.ProtoReflect.Descriptor instead. 62 func (*Schema) Descriptor() ([]byte, []int) { 63 return file_resources_proto_rawDescGZIP(), []int{0} 64 } 65 66 func (x *Schema) GetResources() map[string]*ResourceInfo { 67 if x != nil { 68 return x.Resources 69 } 70 return nil 71 } 72 73 type ResourceID struct { 74 state protoimpl.MessageState 75 sizeCache protoimpl.SizeCache 76 unknownFields protoimpl.UnknownFields 77 78 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 79 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` 80 } 81 82 func (x *ResourceID) Reset() { 83 *x = ResourceID{} 84 if protoimpl.UnsafeEnabled { 85 mi := &file_resources_proto_msgTypes[1] 86 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 87 ms.StoreMessageInfo(mi) 88 } 89 } 90 91 func (x *ResourceID) String() string { 92 return protoimpl.X.MessageStringOf(x) 93 } 94 95 func (*ResourceID) ProtoMessage() {} 96 97 func (x *ResourceID) ProtoReflect() protoreflect.Message { 98 mi := &file_resources_proto_msgTypes[1] 99 if protoimpl.UnsafeEnabled && x != nil { 100 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 101 if ms.LoadMessageInfo() == nil { 102 ms.StoreMessageInfo(mi) 103 } 104 return ms 105 } 106 return mi.MessageOf(x) 107 } 108 109 // Deprecated: Use ResourceID.ProtoReflect.Descriptor instead. 110 func (*ResourceID) Descriptor() ([]byte, []int) { 111 return file_resources_proto_rawDescGZIP(), []int{1} 112 } 113 114 func (x *ResourceID) GetId() string { 115 if x != nil { 116 return x.Id 117 } 118 return "" 119 } 120 121 func (x *ResourceID) GetName() string { 122 if x != nil { 123 return x.Name 124 } 125 return "" 126 } 127 128 type TypedArg struct { 129 state protoimpl.MessageState 130 sizeCache protoimpl.SizeCache 131 unknownFields protoimpl.UnknownFields 132 133 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 134 Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` 135 Optional bool `protobuf:"varint,3,opt,name=optional,proto3" json:"optional,omitempty"` 136 } 137 138 func (x *TypedArg) Reset() { 139 *x = TypedArg{} 140 if protoimpl.UnsafeEnabled { 141 mi := &file_resources_proto_msgTypes[2] 142 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 143 ms.StoreMessageInfo(mi) 144 } 145 } 146 147 func (x *TypedArg) String() string { 148 return protoimpl.X.MessageStringOf(x) 149 } 150 151 func (*TypedArg) ProtoMessage() {} 152 153 func (x *TypedArg) ProtoReflect() protoreflect.Message { 154 mi := &file_resources_proto_msgTypes[2] 155 if protoimpl.UnsafeEnabled && x != nil { 156 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 157 if ms.LoadMessageInfo() == nil { 158 ms.StoreMessageInfo(mi) 159 } 160 return ms 161 } 162 return mi.MessageOf(x) 163 } 164 165 // Deprecated: Use TypedArg.ProtoReflect.Descriptor instead. 166 func (*TypedArg) Descriptor() ([]byte, []int) { 167 return file_resources_proto_rawDescGZIP(), []int{2} 168 } 169 170 func (x *TypedArg) GetName() string { 171 if x != nil { 172 return x.Name 173 } 174 return "" 175 } 176 177 func (x *TypedArg) GetType() string { 178 if x != nil { 179 return x.Type 180 } 181 return "" 182 } 183 184 func (x *TypedArg) GetOptional() bool { 185 if x != nil { 186 return x.Optional 187 } 188 return false 189 } 190 191 type Init struct { 192 state protoimpl.MessageState 193 sizeCache protoimpl.SizeCache 194 unknownFields protoimpl.UnknownFields 195 196 Args []*TypedArg `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"` 197 } 198 199 func (x *Init) Reset() { 200 *x = Init{} 201 if protoimpl.UnsafeEnabled { 202 mi := &file_resources_proto_msgTypes[3] 203 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 204 ms.StoreMessageInfo(mi) 205 } 206 } 207 208 func (x *Init) String() string { 209 return protoimpl.X.MessageStringOf(x) 210 } 211 212 func (*Init) ProtoMessage() {} 213 214 func (x *Init) ProtoReflect() protoreflect.Message { 215 mi := &file_resources_proto_msgTypes[3] 216 if protoimpl.UnsafeEnabled && x != nil { 217 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 218 if ms.LoadMessageInfo() == nil { 219 ms.StoreMessageInfo(mi) 220 } 221 return ms 222 } 223 return mi.MessageOf(x) 224 } 225 226 // Deprecated: Use Init.ProtoReflect.Descriptor instead. 227 func (*Init) Descriptor() ([]byte, []int) { 228 return file_resources_proto_rawDescGZIP(), []int{3} 229 } 230 231 func (x *Init) GetArgs() []*TypedArg { 232 if x != nil { 233 return x.Args 234 } 235 return nil 236 } 237 238 type ResourceInfo struct { 239 state protoimpl.MessageState 240 sizeCache protoimpl.SizeCache 241 unknownFields protoimpl.UnknownFields 242 243 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 244 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` 245 Fields map[string]*Field `protobuf:"bytes,3,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 246 Init *Init `protobuf:"bytes,20,opt,name=init,proto3" json:"init,omitempty"` 247 ListType string `protobuf:"bytes,21,opt,name=list_type,json=listType,proto3" json:"list_type,omitempty"` 248 Title string `protobuf:"bytes,22,opt,name=title,proto3" json:"title,omitempty"` 249 Desc string `protobuf:"bytes,23,opt,name=desc,proto3" json:"desc,omitempty"` 250 Private bool `protobuf:"varint,24,opt,name=private,proto3" json:"private,omitempty"` 251 IsExtension bool `protobuf:"varint,28,opt,name=is_extension,json=isExtension,proto3" json:"is_extension,omitempty"` 252 MinMondooVersion string `protobuf:"bytes,25,opt,name=min_mondoo_version,json=minMondooVersion,proto3" json:"min_mondoo_version,omitempty"` 253 Defaults string `protobuf:"bytes,26,opt,name=defaults,proto3" json:"defaults,omitempty"` 254 Provider string `protobuf:"bytes,27,opt,name=provider,proto3" json:"provider,omitempty"` 255 } 256 257 func (x *ResourceInfo) Reset() { 258 *x = ResourceInfo{} 259 if protoimpl.UnsafeEnabled { 260 mi := &file_resources_proto_msgTypes[4] 261 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 262 ms.StoreMessageInfo(mi) 263 } 264 } 265 266 func (x *ResourceInfo) String() string { 267 return protoimpl.X.MessageStringOf(x) 268 } 269 270 func (*ResourceInfo) ProtoMessage() {} 271 272 func (x *ResourceInfo) ProtoReflect() protoreflect.Message { 273 mi := &file_resources_proto_msgTypes[4] 274 if protoimpl.UnsafeEnabled && x != nil { 275 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 276 if ms.LoadMessageInfo() == nil { 277 ms.StoreMessageInfo(mi) 278 } 279 return ms 280 } 281 return mi.MessageOf(x) 282 } 283 284 // Deprecated: Use ResourceInfo.ProtoReflect.Descriptor instead. 285 func (*ResourceInfo) Descriptor() ([]byte, []int) { 286 return file_resources_proto_rawDescGZIP(), []int{4} 287 } 288 289 func (x *ResourceInfo) GetId() string { 290 if x != nil { 291 return x.Id 292 } 293 return "" 294 } 295 296 func (x *ResourceInfo) GetName() string { 297 if x != nil { 298 return x.Name 299 } 300 return "" 301 } 302 303 func (x *ResourceInfo) GetFields() map[string]*Field { 304 if x != nil { 305 return x.Fields 306 } 307 return nil 308 } 309 310 func (x *ResourceInfo) GetInit() *Init { 311 if x != nil { 312 return x.Init 313 } 314 return nil 315 } 316 317 func (x *ResourceInfo) GetListType() string { 318 if x != nil { 319 return x.ListType 320 } 321 return "" 322 } 323 324 func (x *ResourceInfo) GetTitle() string { 325 if x != nil { 326 return x.Title 327 } 328 return "" 329 } 330 331 func (x *ResourceInfo) GetDesc() string { 332 if x != nil { 333 return x.Desc 334 } 335 return "" 336 } 337 338 func (x *ResourceInfo) GetPrivate() bool { 339 if x != nil { 340 return x.Private 341 } 342 return false 343 } 344 345 func (x *ResourceInfo) GetIsExtension() bool { 346 if x != nil { 347 return x.IsExtension 348 } 349 return false 350 } 351 352 func (x *ResourceInfo) GetMinMondooVersion() string { 353 if x != nil { 354 return x.MinMondooVersion 355 } 356 return "" 357 } 358 359 func (x *ResourceInfo) GetDefaults() string { 360 if x != nil { 361 return x.Defaults 362 } 363 return "" 364 } 365 366 func (x *ResourceInfo) GetProvider() string { 367 if x != nil { 368 return x.Provider 369 } 370 return "" 371 } 372 373 type Field struct { 374 state protoimpl.MessageState 375 sizeCache protoimpl.SizeCache 376 unknownFields protoimpl.UnknownFields 377 378 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 379 Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` 380 IsMandatory bool `protobuf:"varint,3,opt,name=is_mandatory,json=isMandatory,proto3" json:"is_mandatory,omitempty"` 381 Refs []string `protobuf:"bytes,4,rep,name=refs,proto3" json:"refs,omitempty"` 382 Title string `protobuf:"bytes,20,opt,name=title,proto3" json:"title,omitempty"` 383 Desc string `protobuf:"bytes,21,opt,name=desc,proto3" json:"desc,omitempty"` 384 IsPrivate bool `protobuf:"varint,22,opt,name=is_private,json=isPrivate,proto3" json:"is_private,omitempty"` 385 MinMondooVersion string `protobuf:"bytes,23,opt,name=min_mondoo_version,json=minMondooVersion,proto3" json:"min_mondoo_version,omitempty"` 386 IsImplicitResource bool `protobuf:"varint,24,opt,name=is_implicit_resource,json=isImplicitResource,proto3" json:"is_implicit_resource,omitempty"` 387 IsEmbedded bool `protobuf:"varint,25,opt,name=is_embedded,json=isEmbedded,proto3" json:"is_embedded,omitempty"` 388 Provider string `protobuf:"bytes,27,opt,name=provider,proto3" json:"provider,omitempty"` 389 } 390 391 func (x *Field) Reset() { 392 *x = Field{} 393 if protoimpl.UnsafeEnabled { 394 mi := &file_resources_proto_msgTypes[5] 395 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 396 ms.StoreMessageInfo(mi) 397 } 398 } 399 400 func (x *Field) String() string { 401 return protoimpl.X.MessageStringOf(x) 402 } 403 404 func (*Field) ProtoMessage() {} 405 406 func (x *Field) ProtoReflect() protoreflect.Message { 407 mi := &file_resources_proto_msgTypes[5] 408 if protoimpl.UnsafeEnabled && x != nil { 409 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 410 if ms.LoadMessageInfo() == nil { 411 ms.StoreMessageInfo(mi) 412 } 413 return ms 414 } 415 return mi.MessageOf(x) 416 } 417 418 // Deprecated: Use Field.ProtoReflect.Descriptor instead. 419 func (*Field) Descriptor() ([]byte, []int) { 420 return file_resources_proto_rawDescGZIP(), []int{5} 421 } 422 423 func (x *Field) GetName() string { 424 if x != nil { 425 return x.Name 426 } 427 return "" 428 } 429 430 func (x *Field) GetType() string { 431 if x != nil { 432 return x.Type 433 } 434 return "" 435 } 436 437 func (x *Field) GetIsMandatory() bool { 438 if x != nil { 439 return x.IsMandatory 440 } 441 return false 442 } 443 444 func (x *Field) GetRefs() []string { 445 if x != nil { 446 return x.Refs 447 } 448 return nil 449 } 450 451 func (x *Field) GetTitle() string { 452 if x != nil { 453 return x.Title 454 } 455 return "" 456 } 457 458 func (x *Field) GetDesc() string { 459 if x != nil { 460 return x.Desc 461 } 462 return "" 463 } 464 465 func (x *Field) GetIsPrivate() bool { 466 if x != nil { 467 return x.IsPrivate 468 } 469 return false 470 } 471 472 func (x *Field) GetMinMondooVersion() string { 473 if x != nil { 474 return x.MinMondooVersion 475 } 476 return "" 477 } 478 479 func (x *Field) GetIsImplicitResource() bool { 480 if x != nil { 481 return x.IsImplicitResource 482 } 483 return false 484 } 485 486 func (x *Field) GetIsEmbedded() bool { 487 if x != nil { 488 return x.IsEmbedded 489 } 490 return false 491 } 492 493 func (x *Field) GetProvider() string { 494 if x != nil { 495 return x.Provider 496 } 497 return "" 498 } 499 500 var File_resources_proto protoreflect.FileDescriptor 501 502 var file_resources_proto_rawDesc = []byte{ 503 0x0a, 0x0f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 504 0x6f, 0x12, 0x10, 0x6d, 0x6f, 0x6e, 0x64, 0x6f, 0x6f, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 505 0x63, 0x65, 0x73, 0x22, 0xad, 0x01, 0x0a, 0x06, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x45, 506 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 507 0x0b, 0x32, 0x27, 0x2e, 0x6d, 0x6f, 0x6e, 0x64, 0x6f, 0x6f, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 508 0x72, 0x63, 0x65, 0x73, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x6f, 509 0x75, 0x72, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 510 0x75, 0x72, 0x63, 0x65, 0x73, 0x1a, 0x5c, 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 511 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 512 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x34, 0x0a, 0x05, 0x76, 0x61, 0x6c, 513 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6d, 0x6f, 0x6e, 0x64, 0x6f, 514 0x6f, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x6f, 515 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 516 0x02, 0x38, 0x01, 0x22, 0x30, 0x0a, 0x0a, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 517 0x44, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 518 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 519 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x4e, 0x0a, 0x08, 0x54, 0x79, 0x70, 0x65, 0x64, 0x41, 0x72, 520 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 521 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 522 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x74, 523 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6f, 0x70, 0x74, 524 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x22, 0x36, 0x0a, 0x04, 0x49, 0x6e, 0x69, 0x74, 0x12, 0x2e, 0x0a, 525 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6d, 0x6f, 526 0x6e, 0x64, 0x6f, 0x6f, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x54, 527 0x79, 0x70, 0x65, 0x64, 0x41, 0x72, 0x67, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x22, 0xe0, 0x03, 528 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 529 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 530 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 531 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 532 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x6d, 0x6f, 0x6e, 0x64, 0x6f, 0x6f, 0x2e, 0x72, 0x65, 0x73, 0x6f, 533 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 534 0x66, 0x6f, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 535 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x2a, 0x0a, 0x04, 0x69, 0x6e, 0x69, 0x74, 0x18, 0x14, 536 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6d, 0x6f, 0x6e, 0x64, 0x6f, 0x6f, 0x2e, 0x72, 0x65, 537 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x04, 0x69, 0x6e, 538 0x69, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 539 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x69, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 540 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 541 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x65, 0x73, 0x63, 0x18, 0x17, 0x20, 542 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x65, 0x73, 0x63, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 543 0x76, 0x61, 0x74, 0x65, 0x18, 0x18, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, 544 0x61, 0x74, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x73, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 545 0x69, 0x6f, 0x6e, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x69, 0x73, 0x45, 0x78, 0x74, 546 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2c, 0x0a, 0x12, 0x6d, 0x69, 0x6e, 0x5f, 0x6d, 0x6f, 547 0x6e, 0x64, 0x6f, 0x6f, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x19, 0x20, 0x01, 548 0x28, 0x09, 0x52, 0x10, 0x6d, 0x69, 0x6e, 0x4d, 0x6f, 0x6e, 0x64, 0x6f, 0x6f, 0x56, 0x65, 0x72, 549 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 550 0x18, 0x1a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 551 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x1b, 0x20, 0x01, 552 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x1a, 0x52, 0x0a, 0x0b, 553 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 554 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2d, 0x0a, 555 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6d, 556 0x6f, 0x6e, 0x64, 0x6f, 0x6f, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 557 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 558 0x22, 0xcc, 0x02, 0x0a, 0x05, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 559 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 560 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 561 0x70, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x73, 0x5f, 0x6d, 0x61, 0x6e, 0x64, 0x61, 0x74, 0x6f, 562 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x69, 0x73, 0x4d, 0x61, 0x6e, 0x64, 563 0x61, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x65, 0x66, 0x73, 0x18, 0x04, 0x20, 564 0x03, 0x28, 0x09, 0x52, 0x04, 0x72, 0x65, 0x66, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 565 0x6c, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 566 0x12, 0x0a, 0x04, 0x64, 0x65, 0x73, 0x63, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 567 0x65, 0x73, 0x63, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 568 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x50, 0x72, 0x69, 0x76, 0x61, 569 0x74, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x6d, 0x69, 0x6e, 0x5f, 0x6d, 0x6f, 0x6e, 0x64, 0x6f, 0x6f, 570 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 571 0x6d, 0x69, 0x6e, 0x4d, 0x6f, 0x6e, 0x64, 0x6f, 0x6f, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 572 0x12, 0x30, 0x0a, 0x14, 0x69, 0x73, 0x5f, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x63, 0x69, 0x74, 0x5f, 573 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x18, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 574 0x69, 0x73, 0x49, 0x6d, 0x70, 0x6c, 0x69, 0x63, 0x69, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 575 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x65, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 576 0x64, 0x18, 0x19, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x45, 0x6d, 0x62, 0x65, 0x64, 577 0x64, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 578 0x1b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x42, 579 0x21, 0x5a, 0x1f, 0x67, 0x6f, 0x2e, 0x6d, 0x6f, 0x6e, 0x64, 0x6f, 0x6f, 0x2e, 0x63, 0x6f, 0x6d, 580 0x2f, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 581 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 582 } 583 584 var ( 585 file_resources_proto_rawDescOnce sync.Once 586 file_resources_proto_rawDescData = file_resources_proto_rawDesc 587 ) 588 589 func file_resources_proto_rawDescGZIP() []byte { 590 file_resources_proto_rawDescOnce.Do(func() { 591 file_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_resources_proto_rawDescData) 592 }) 593 return file_resources_proto_rawDescData 594 } 595 596 var file_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 8) 597 var file_resources_proto_goTypes = []interface{}{ 598 (*Schema)(nil), // 0: mondoo.resources.Schema 599 (*ResourceID)(nil), // 1: mondoo.resources.ResourceID 600 (*TypedArg)(nil), // 2: mondoo.resources.TypedArg 601 (*Init)(nil), // 3: mondoo.resources.Init 602 (*ResourceInfo)(nil), // 4: mondoo.resources.ResourceInfo 603 (*Field)(nil), // 5: mondoo.resources.Field 604 nil, // 6: mondoo.resources.Schema.ResourcesEntry 605 nil, // 7: mondoo.resources.ResourceInfo.FieldsEntry 606 } 607 var file_resources_proto_depIdxs = []int32{ 608 6, // 0: mondoo.resources.Schema.resources:type_name -> mondoo.resources.Schema.ResourcesEntry 609 2, // 1: mondoo.resources.Init.args:type_name -> mondoo.resources.TypedArg 610 7, // 2: mondoo.resources.ResourceInfo.fields:type_name -> mondoo.resources.ResourceInfo.FieldsEntry 611 3, // 3: mondoo.resources.ResourceInfo.init:type_name -> mondoo.resources.Init 612 4, // 4: mondoo.resources.Schema.ResourcesEntry.value:type_name -> mondoo.resources.ResourceInfo 613 5, // 5: mondoo.resources.ResourceInfo.FieldsEntry.value:type_name -> mondoo.resources.Field 614 6, // [6:6] is the sub-list for method output_type 615 6, // [6:6] is the sub-list for method input_type 616 6, // [6:6] is the sub-list for extension type_name 617 6, // [6:6] is the sub-list for extension extendee 618 0, // [0:6] is the sub-list for field type_name 619 } 620 621 func init() { file_resources_proto_init() } 622 func file_resources_proto_init() { 623 if File_resources_proto != nil { 624 return 625 } 626 if !protoimpl.UnsafeEnabled { 627 file_resources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 628 switch v := v.(*Schema); i { 629 case 0: 630 return &v.state 631 case 1: 632 return &v.sizeCache 633 case 2: 634 return &v.unknownFields 635 default: 636 return nil 637 } 638 } 639 file_resources_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 640 switch v := v.(*ResourceID); i { 641 case 0: 642 return &v.state 643 case 1: 644 return &v.sizeCache 645 case 2: 646 return &v.unknownFields 647 default: 648 return nil 649 } 650 } 651 file_resources_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 652 switch v := v.(*TypedArg); i { 653 case 0: 654 return &v.state 655 case 1: 656 return &v.sizeCache 657 case 2: 658 return &v.unknownFields 659 default: 660 return nil 661 } 662 } 663 file_resources_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 664 switch v := v.(*Init); i { 665 case 0: 666 return &v.state 667 case 1: 668 return &v.sizeCache 669 case 2: 670 return &v.unknownFields 671 default: 672 return nil 673 } 674 } 675 file_resources_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 676 switch v := v.(*ResourceInfo); i { 677 case 0: 678 return &v.state 679 case 1: 680 return &v.sizeCache 681 case 2: 682 return &v.unknownFields 683 default: 684 return nil 685 } 686 } 687 file_resources_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 688 switch v := v.(*Field); i { 689 case 0: 690 return &v.state 691 case 1: 692 return &v.sizeCache 693 case 2: 694 return &v.unknownFields 695 default: 696 return nil 697 } 698 } 699 } 700 type x struct{} 701 out := protoimpl.TypeBuilder{ 702 File: protoimpl.DescBuilder{ 703 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 704 RawDescriptor: file_resources_proto_rawDesc, 705 NumEnums: 0, 706 NumMessages: 8, 707 NumExtensions: 0, 708 NumServices: 0, 709 }, 710 GoTypes: file_resources_proto_goTypes, 711 DependencyIndexes: file_resources_proto_depIdxs, 712 MessageInfos: file_resources_proto_msgTypes, 713 }.Build() 714 File_resources_proto = out.File 715 file_resources_proto_rawDesc = nil 716 file_resources_proto_goTypes = nil 717 file_resources_proto_depIdxs = nil 718 }