go.mondoo.com/cnquery@v0.0.0-20231005093811-59568235f6ea/explorer/scan/cnquery_explorer_scan.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_explorer_scan.proto
     9  
    10  package scan
    11  
    12  import (
    13  	explorer "go.mondoo.com/cnquery/explorer"
    14  	inventory "go.mondoo.com/cnquery/providers-sdk/v1/inventory"
    15  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    16  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    17  	reflect "reflect"
    18  	sync "sync"
    19  )
    20  
    21  const (
    22  	// Verify that this generated code is sufficiently up-to-date.
    23  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    24  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    25  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    26  )
    27  
    28  type Job struct {
    29  	state         protoimpl.MessageState
    30  	sizeCache     protoimpl.SizeCache
    31  	unknownFields protoimpl.UnknownFields
    32  
    33  	Inventory        *inventory.Inventory `protobuf:"bytes,1,opt,name=inventory,proto3" json:"inventory,omitempty"`
    34  	Bundle           *explorer.Bundle     `protobuf:"bytes,2,opt,name=bundle,proto3" json:"bundle,omitempty"`
    35  	DoRecord         bool                 `protobuf:"varint,20,opt,name=do_record,json=doRecord,proto3" json:"do_record,omitempty"`
    36  	QueryPackFilters []string             `protobuf:"bytes,21,rep,name=query_pack_filters,json=queryPackFilters,proto3" json:"query_pack_filters,omitempty"`
    37  	Props            map[string]string    `protobuf:"bytes,22,rep,name=props,proto3" json:"props,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    38  	// annotations that will be applied to all assets in the job
    39  	Annotations map[string]string `protobuf:"bytes,23,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    40  }
    41  
    42  func (x *Job) Reset() {
    43  	*x = Job{}
    44  	if protoimpl.UnsafeEnabled {
    45  		mi := &file_cnquery_explorer_scan_proto_msgTypes[0]
    46  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    47  		ms.StoreMessageInfo(mi)
    48  	}
    49  }
    50  
    51  func (x *Job) String() string {
    52  	return protoimpl.X.MessageStringOf(x)
    53  }
    54  
    55  func (*Job) ProtoMessage() {}
    56  
    57  func (x *Job) ProtoReflect() protoreflect.Message {
    58  	mi := &file_cnquery_explorer_scan_proto_msgTypes[0]
    59  	if protoimpl.UnsafeEnabled && x != nil {
    60  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    61  		if ms.LoadMessageInfo() == nil {
    62  			ms.StoreMessageInfo(mi)
    63  		}
    64  		return ms
    65  	}
    66  	return mi.MessageOf(x)
    67  }
    68  
    69  // Deprecated: Use Job.ProtoReflect.Descriptor instead.
    70  func (*Job) Descriptor() ([]byte, []int) {
    71  	return file_cnquery_explorer_scan_proto_rawDescGZIP(), []int{0}
    72  }
    73  
    74  func (x *Job) GetInventory() *inventory.Inventory {
    75  	if x != nil {
    76  		return x.Inventory
    77  	}
    78  	return nil
    79  }
    80  
    81  func (x *Job) GetBundle() *explorer.Bundle {
    82  	if x != nil {
    83  		return x.Bundle
    84  	}
    85  	return nil
    86  }
    87  
    88  func (x *Job) GetDoRecord() bool {
    89  	if x != nil {
    90  		return x.DoRecord
    91  	}
    92  	return false
    93  }
    94  
    95  func (x *Job) GetQueryPackFilters() []string {
    96  	if x != nil {
    97  		return x.QueryPackFilters
    98  	}
    99  	return nil
   100  }
   101  
   102  func (x *Job) GetProps() map[string]string {
   103  	if x != nil {
   104  		return x.Props
   105  	}
   106  	return nil
   107  }
   108  
   109  func (x *Job) GetAnnotations() map[string]string {
   110  	if x != nil {
   111  		return x.Annotations
   112  	}
   113  	return nil
   114  }
   115  
   116  var File_cnquery_explorer_scan_proto protoreflect.FileDescriptor
   117  
   118  var file_cnquery_explorer_scan_proto_rawDesc = []byte{
   119  	0x0a, 0x1b, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x65, 0x78, 0x70, 0x6c, 0x6f, 0x72,
   120  	0x65, 0x72, 0x5f, 0x73, 0x63, 0x61, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x63,
   121  	0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x65, 0x78, 0x70, 0x6c, 0x6f, 0x72, 0x65, 0x72, 0x2e,
   122  	0x73, 0x63, 0x61, 0x6e, 0x1a, 0x2a, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x2d,
   123  	0x73, 0x64, 0x6b, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79,
   124  	0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   125  	0x1a, 0x1f, 0x65, 0x78, 0x70, 0x6c, 0x6f, 0x72, 0x65, 0x72, 0x2f, 0x63, 0x6e, 0x71, 0x75, 0x65,
   126  	0x72, 0x79, 0x5f, 0x65, 0x78, 0x70, 0x6c, 0x6f, 0x72, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   127  	0x6f, 0x22, 0xc7, 0x03, 0x0a, 0x03, 0x4a, 0x6f, 0x62, 0x12, 0x3d, 0x0a, 0x09, 0x69, 0x6e, 0x76,
   128  	0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63,
   129  	0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73,
   130  	0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x09, 0x69,
   131  	0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x30, 0x0a, 0x06, 0x62, 0x75, 0x6e, 0x64,
   132  	0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x6e, 0x71, 0x75, 0x65,
   133  	0x72, 0x79, 0x2e, 0x65, 0x78, 0x70, 0x6c, 0x6f, 0x72, 0x65, 0x72, 0x2e, 0x42, 0x75, 0x6e, 0x64,
   134  	0x6c, 0x65, 0x52, 0x06, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f,
   135  	0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x14, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x64,
   136  	0x6f, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x71, 0x75, 0x65, 0x72, 0x79,
   137  	0x5f, 0x70, 0x61, 0x63, 0x6b, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x15, 0x20,
   138  	0x03, 0x28, 0x09, 0x52, 0x10, 0x71, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x63, 0x6b, 0x46, 0x69,
   139  	0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x3b, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x70, 0x73, 0x18, 0x16,
   140  	0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x65,
   141  	0x78, 0x70, 0x6c, 0x6f, 0x72, 0x65, 0x72, 0x2e, 0x73, 0x63, 0x61, 0x6e, 0x2e, 0x4a, 0x6f, 0x62,
   142  	0x2e, 0x50, 0x72, 0x6f, 0x70, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x70, 0x72, 0x6f,
   143  	0x70, 0x73, 0x12, 0x4d, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
   144  	0x73, 0x18, 0x17, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72,
   145  	0x79, 0x2e, 0x65, 0x78, 0x70, 0x6c, 0x6f, 0x72, 0x65, 0x72, 0x2e, 0x73, 0x63, 0x61, 0x6e, 0x2e,
   146  	0x4a, 0x6f, 0x62, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45,
   147  	0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
   148  	0x73, 0x1a, 0x38, 0x0a, 0x0a, 0x50, 0x72, 0x6f, 0x70, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
   149  	0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
   150  	0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
   151  	0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3e, 0x0a, 0x10, 0x41,
   152  	0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
   153  	0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
   154  	0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
   155  	0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x25, 0x5a, 0x23, 0x67,
   156  	0x6f, 0x2e, 0x6d, 0x6f, 0x6e, 0x64, 0x6f, 0x6f, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6e, 0x71,
   157  	0x75, 0x65, 0x72, 0x79, 0x2f, 0x65, 0x78, 0x70, 0x6c, 0x6f, 0x72, 0x65, 0x72, 0x2f, 0x73, 0x63,
   158  	0x61, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   159  }
   160  
   161  var (
   162  	file_cnquery_explorer_scan_proto_rawDescOnce sync.Once
   163  	file_cnquery_explorer_scan_proto_rawDescData = file_cnquery_explorer_scan_proto_rawDesc
   164  )
   165  
   166  func file_cnquery_explorer_scan_proto_rawDescGZIP() []byte {
   167  	file_cnquery_explorer_scan_proto_rawDescOnce.Do(func() {
   168  		file_cnquery_explorer_scan_proto_rawDescData = protoimpl.X.CompressGZIP(file_cnquery_explorer_scan_proto_rawDescData)
   169  	})
   170  	return file_cnquery_explorer_scan_proto_rawDescData
   171  }
   172  
   173  var file_cnquery_explorer_scan_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   174  var file_cnquery_explorer_scan_proto_goTypes = []interface{}{
   175  	(*Job)(nil),                 // 0: cnquery.explorer.scan.Job
   176  	nil,                         // 1: cnquery.explorer.scan.Job.PropsEntry
   177  	nil,                         // 2: cnquery.explorer.scan.Job.AnnotationsEntry
   178  	(*inventory.Inventory)(nil), // 3: cnquery.providers.v1.Inventory
   179  	(*explorer.Bundle)(nil),     // 4: cnquery.explorer.Bundle
   180  }
   181  var file_cnquery_explorer_scan_proto_depIdxs = []int32{
   182  	3, // 0: cnquery.explorer.scan.Job.inventory:type_name -> cnquery.providers.v1.Inventory
   183  	4, // 1: cnquery.explorer.scan.Job.bundle:type_name -> cnquery.explorer.Bundle
   184  	1, // 2: cnquery.explorer.scan.Job.props:type_name -> cnquery.explorer.scan.Job.PropsEntry
   185  	2, // 3: cnquery.explorer.scan.Job.annotations:type_name -> cnquery.explorer.scan.Job.AnnotationsEntry
   186  	4, // [4:4] is the sub-list for method output_type
   187  	4, // [4:4] is the sub-list for method input_type
   188  	4, // [4:4] is the sub-list for extension type_name
   189  	4, // [4:4] is the sub-list for extension extendee
   190  	0, // [0:4] is the sub-list for field type_name
   191  }
   192  
   193  func init() { file_cnquery_explorer_scan_proto_init() }
   194  func file_cnquery_explorer_scan_proto_init() {
   195  	if File_cnquery_explorer_scan_proto != nil {
   196  		return
   197  	}
   198  	if !protoimpl.UnsafeEnabled {
   199  		file_cnquery_explorer_scan_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   200  			switch v := v.(*Job); i {
   201  			case 0:
   202  				return &v.state
   203  			case 1:
   204  				return &v.sizeCache
   205  			case 2:
   206  				return &v.unknownFields
   207  			default:
   208  				return nil
   209  			}
   210  		}
   211  	}
   212  	type x struct{}
   213  	out := protoimpl.TypeBuilder{
   214  		File: protoimpl.DescBuilder{
   215  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   216  			RawDescriptor: file_cnquery_explorer_scan_proto_rawDesc,
   217  			NumEnums:      0,
   218  			NumMessages:   3,
   219  			NumExtensions: 0,
   220  			NumServices:   0,
   221  		},
   222  		GoTypes:           file_cnquery_explorer_scan_proto_goTypes,
   223  		DependencyIndexes: file_cnquery_explorer_scan_proto_depIdxs,
   224  		MessageInfos:      file_cnquery_explorer_scan_proto_msgTypes,
   225  	}.Build()
   226  	File_cnquery_explorer_scan_proto = out.File
   227  	file_cnquery_explorer_scan_proto_rawDesc = nil
   228  	file_cnquery_explorer_scan_proto_goTypes = nil
   229  	file_cnquery_explorer_scan_proto_depIdxs = nil
   230  }