go.mondoo.com/cnquery@v0.0.0-20231005093811-59568235f6ea/shared/proto/cnquery.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: cnquery.proto 9 10 package proto 11 12 import ( 13 inventory "go.mondoo.com/cnquery/providers-sdk/v1/inventory" 14 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 15 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 16 reflect "reflect" 17 sync "sync" 18 ) 19 20 const ( 21 // Verify that this generated code is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 23 // Verify that runtime/protoimpl is sufficiently up-to-date. 24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 25 ) 26 27 type RunQueryConfig struct { 28 state protoimpl.MessageState 29 sizeCache protoimpl.SizeCache 30 unknownFields protoimpl.UnknownFields 31 32 Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"` 33 CallbackServer uint32 `protobuf:"varint,2,opt,name=callback_server,json=callbackServer,proto3" json:"callback_server,omitempty"` 34 Inventory *inventory.Inventory `protobuf:"bytes,3,opt,name=inventory,proto3" json:"inventory,omitempty"` 35 Features []byte `protobuf:"bytes,4,opt,name=features,proto3" json:"features,omitempty"` 36 DoParse bool `protobuf:"varint,5,opt,name=do_parse,json=doParse,proto3" json:"do_parse,omitempty"` 37 DoAst bool `protobuf:"varint,6,opt,name=do_ast,json=doAst,proto3" json:"do_ast,omitempty"` 38 DoRecord bool `protobuf:"varint,7,opt,name=do_record,json=doRecord,proto3" json:"do_record,omitempty"` 39 Format string `protobuf:"bytes,8,opt,name=format,proto3" json:"format,omitempty"` 40 PlatformId string `protobuf:"bytes,9,opt,name=platform_id,json=platformId,proto3" json:"platform_id,omitempty"` 41 Incognito bool `protobuf:"varint,10,opt,name=incognito,proto3" json:"incognito,omitempty"` 42 Output string `protobuf:"bytes,11,opt,name=output,proto3" json:"output,omitempty"` 43 Input string `protobuf:"bytes,12,opt,name=input,proto3" json:"input,omitempty"` 44 } 45 46 func (x *RunQueryConfig) Reset() { 47 *x = RunQueryConfig{} 48 if protoimpl.UnsafeEnabled { 49 mi := &file_cnquery_proto_msgTypes[0] 50 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 51 ms.StoreMessageInfo(mi) 52 } 53 } 54 55 func (x *RunQueryConfig) String() string { 56 return protoimpl.X.MessageStringOf(x) 57 } 58 59 func (*RunQueryConfig) ProtoMessage() {} 60 61 func (x *RunQueryConfig) ProtoReflect() protoreflect.Message { 62 mi := &file_cnquery_proto_msgTypes[0] 63 if protoimpl.UnsafeEnabled && x != nil { 64 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 65 if ms.LoadMessageInfo() == nil { 66 ms.StoreMessageInfo(mi) 67 } 68 return ms 69 } 70 return mi.MessageOf(x) 71 } 72 73 // Deprecated: Use RunQueryConfig.ProtoReflect.Descriptor instead. 74 func (*RunQueryConfig) Descriptor() ([]byte, []int) { 75 return file_cnquery_proto_rawDescGZIP(), []int{0} 76 } 77 78 func (x *RunQueryConfig) GetCommand() string { 79 if x != nil { 80 return x.Command 81 } 82 return "" 83 } 84 85 func (x *RunQueryConfig) GetCallbackServer() uint32 { 86 if x != nil { 87 return x.CallbackServer 88 } 89 return 0 90 } 91 92 func (x *RunQueryConfig) GetInventory() *inventory.Inventory { 93 if x != nil { 94 return x.Inventory 95 } 96 return nil 97 } 98 99 func (x *RunQueryConfig) GetFeatures() []byte { 100 if x != nil { 101 return x.Features 102 } 103 return nil 104 } 105 106 func (x *RunQueryConfig) GetDoParse() bool { 107 if x != nil { 108 return x.DoParse 109 } 110 return false 111 } 112 113 func (x *RunQueryConfig) GetDoAst() bool { 114 if x != nil { 115 return x.DoAst 116 } 117 return false 118 } 119 120 func (x *RunQueryConfig) GetDoRecord() bool { 121 if x != nil { 122 return x.DoRecord 123 } 124 return false 125 } 126 127 func (x *RunQueryConfig) GetFormat() string { 128 if x != nil { 129 return x.Format 130 } 131 return "" 132 } 133 134 func (x *RunQueryConfig) GetPlatformId() string { 135 if x != nil { 136 return x.PlatformId 137 } 138 return "" 139 } 140 141 func (x *RunQueryConfig) GetIncognito() bool { 142 if x != nil { 143 return x.Incognito 144 } 145 return false 146 } 147 148 func (x *RunQueryConfig) GetOutput() string { 149 if x != nil { 150 return x.Output 151 } 152 return "" 153 } 154 155 func (x *RunQueryConfig) GetInput() string { 156 if x != nil { 157 return x.Input 158 } 159 return "" 160 } 161 162 type Empty struct { 163 state protoimpl.MessageState 164 sizeCache protoimpl.SizeCache 165 unknownFields protoimpl.UnknownFields 166 } 167 168 func (x *Empty) Reset() { 169 *x = Empty{} 170 if protoimpl.UnsafeEnabled { 171 mi := &file_cnquery_proto_msgTypes[1] 172 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 173 ms.StoreMessageInfo(mi) 174 } 175 } 176 177 func (x *Empty) String() string { 178 return protoimpl.X.MessageStringOf(x) 179 } 180 181 func (*Empty) ProtoMessage() {} 182 183 func (x *Empty) ProtoReflect() protoreflect.Message { 184 mi := &file_cnquery_proto_msgTypes[1] 185 if protoimpl.UnsafeEnabled && x != nil { 186 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 187 if ms.LoadMessageInfo() == nil { 188 ms.StoreMessageInfo(mi) 189 } 190 return ms 191 } 192 return mi.MessageOf(x) 193 } 194 195 // Deprecated: Use Empty.ProtoReflect.Descriptor instead. 196 func (*Empty) Descriptor() ([]byte, []int) { 197 return file_cnquery_proto_rawDescGZIP(), []int{1} 198 } 199 200 type String struct { 201 state protoimpl.MessageState 202 sizeCache protoimpl.SizeCache 203 unknownFields protoimpl.UnknownFields 204 205 Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` 206 } 207 208 func (x *String) Reset() { 209 *x = String{} 210 if protoimpl.UnsafeEnabled { 211 mi := &file_cnquery_proto_msgTypes[2] 212 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 213 ms.StoreMessageInfo(mi) 214 } 215 } 216 217 func (x *String) String() string { 218 return protoimpl.X.MessageStringOf(x) 219 } 220 221 func (*String) ProtoMessage() {} 222 223 func (x *String) ProtoReflect() protoreflect.Message { 224 mi := &file_cnquery_proto_msgTypes[2] 225 if protoimpl.UnsafeEnabled && x != nil { 226 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 227 if ms.LoadMessageInfo() == nil { 228 ms.StoreMessageInfo(mi) 229 } 230 return ms 231 } 232 return mi.MessageOf(x) 233 } 234 235 // Deprecated: Use String.ProtoReflect.Descriptor instead. 236 func (*String) Descriptor() ([]byte, []int) { 237 return file_cnquery_proto_rawDescGZIP(), []int{2} 238 } 239 240 func (x *String) GetData() string { 241 if x != nil { 242 return x.Data 243 } 244 return "" 245 } 246 247 var File_cnquery_proto protoreflect.FileDescriptor 248 249 var file_cnquery_proto_rawDesc = []byte{ 250 0x0a, 0x0d, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 251 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 252 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 253 0x72, 0x79, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 254 0x74, 0x6f, 0x22, 0x82, 0x03, 0x0a, 0x0e, 0x52, 0x75, 0x6e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 255 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 256 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 257 0x27, 0x0a, 0x0f, 0x63, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x73, 0x65, 0x72, 0x76, 258 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x63, 0x61, 0x6c, 0x6c, 0x62, 0x61, 259 0x63, 0x6b, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x09, 0x69, 0x6e, 0x76, 0x65, 260 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x6e, 261 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x2e, 262 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x09, 0x69, 0x6e, 263 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 264 0x72, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 265 0x72, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x64, 0x6f, 0x5f, 0x70, 0x61, 0x72, 0x73, 0x65, 0x18, 266 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x64, 0x6f, 0x50, 0x61, 0x72, 0x73, 0x65, 0x12, 0x15, 267 0x0a, 0x06, 0x64, 0x6f, 0x5f, 0x61, 0x73, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 268 0x64, 0x6f, 0x41, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x5f, 0x72, 0x65, 0x63, 0x6f, 269 0x72, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x64, 0x6f, 0x52, 0x65, 0x63, 0x6f, 270 0x72, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 271 0x28, 0x09, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6c, 272 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 273 0x0a, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x69, 274 0x6e, 0x63, 0x6f, 0x67, 0x6e, 0x69, 0x74, 0x6f, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 275 0x69, 0x6e, 0x63, 0x6f, 0x67, 0x6e, 0x69, 0x74, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x75, 0x74, 276 0x70, 0x75, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 277 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 278 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x22, 0x07, 0x0a, 0x05, 0x45, 0x6d, 0x70, 0x74, 0x79, 279 0x22, 0x1c, 0x0a, 0x06, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 280 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x32, 0x3a, 281 0x0a, 0x07, 0x43, 0x4e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x2f, 0x0a, 0x08, 0x52, 0x75, 0x6e, 282 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x75, 283 0x6e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x0c, 0x2e, 0x70, 284 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x32, 0x34, 0x0a, 0x0c, 0x4f, 0x75, 285 0x74, 0x70, 0x75, 0x74, 0x48, 0x65, 0x6c, 0x70, 0x65, 0x72, 0x12, 0x24, 0x0a, 0x05, 0x57, 0x72, 286 0x69, 0x74, 0x65, 0x12, 0x0d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x74, 0x72, 0x69, 287 0x6e, 0x67, 0x1a, 0x0c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 288 0x42, 0x24, 0x5a, 0x22, 0x67, 0x6f, 0x2e, 0x6d, 0x6f, 0x6e, 0x64, 0x6f, 0x6f, 0x2e, 0x63, 0x6f, 289 0x6d, 0x2f, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 290 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 291 } 292 293 var ( 294 file_cnquery_proto_rawDescOnce sync.Once 295 file_cnquery_proto_rawDescData = file_cnquery_proto_rawDesc 296 ) 297 298 func file_cnquery_proto_rawDescGZIP() []byte { 299 file_cnquery_proto_rawDescOnce.Do(func() { 300 file_cnquery_proto_rawDescData = protoimpl.X.CompressGZIP(file_cnquery_proto_rawDescData) 301 }) 302 return file_cnquery_proto_rawDescData 303 } 304 305 var file_cnquery_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 306 var file_cnquery_proto_goTypes = []interface{}{ 307 (*RunQueryConfig)(nil), // 0: proto.RunQueryConfig 308 (*Empty)(nil), // 1: proto.Empty 309 (*String)(nil), // 2: proto.String 310 (*inventory.Inventory)(nil), // 3: cnquery.providers.v1.Inventory 311 } 312 var file_cnquery_proto_depIdxs = []int32{ 313 3, // 0: proto.RunQueryConfig.inventory:type_name -> cnquery.providers.v1.Inventory 314 0, // 1: proto.CNQuery.RunQuery:input_type -> proto.RunQueryConfig 315 2, // 2: proto.OutputHelper.Write:input_type -> proto.String 316 1, // 3: proto.CNQuery.RunQuery:output_type -> proto.Empty 317 1, // 4: proto.OutputHelper.Write:output_type -> proto.Empty 318 3, // [3:5] is the sub-list for method output_type 319 1, // [1:3] is the sub-list for method input_type 320 1, // [1:1] is the sub-list for extension type_name 321 1, // [1:1] is the sub-list for extension extendee 322 0, // [0:1] is the sub-list for field type_name 323 } 324 325 func init() { file_cnquery_proto_init() } 326 func file_cnquery_proto_init() { 327 if File_cnquery_proto != nil { 328 return 329 } 330 if !protoimpl.UnsafeEnabled { 331 file_cnquery_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 332 switch v := v.(*RunQueryConfig); i { 333 case 0: 334 return &v.state 335 case 1: 336 return &v.sizeCache 337 case 2: 338 return &v.unknownFields 339 default: 340 return nil 341 } 342 } 343 file_cnquery_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 344 switch v := v.(*Empty); i { 345 case 0: 346 return &v.state 347 case 1: 348 return &v.sizeCache 349 case 2: 350 return &v.unknownFields 351 default: 352 return nil 353 } 354 } 355 file_cnquery_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 356 switch v := v.(*String); i { 357 case 0: 358 return &v.state 359 case 1: 360 return &v.sizeCache 361 case 2: 362 return &v.unknownFields 363 default: 364 return nil 365 } 366 } 367 } 368 type x struct{} 369 out := protoimpl.TypeBuilder{ 370 File: protoimpl.DescBuilder{ 371 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 372 RawDescriptor: file_cnquery_proto_rawDesc, 373 NumEnums: 0, 374 NumMessages: 3, 375 NumExtensions: 0, 376 NumServices: 2, 377 }, 378 GoTypes: file_cnquery_proto_goTypes, 379 DependencyIndexes: file_cnquery_proto_depIdxs, 380 MessageInfos: file_cnquery_proto_msgTypes, 381 }.Build() 382 File_cnquery_proto = out.File 383 file_cnquery_proto_rawDesc = nil 384 file_cnquery_proto_goTypes = nil 385 file_cnquery_proto_depIdxs = nil 386 }