github.com/devseccon/trivy@v0.47.1-0.20231123133102-bd902a0bd996/rpc/scanner/service.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.27.1
     4  // 	protoc        v3.19.4
     5  // source: rpc/scanner/service.proto
     6  
     7  package scanner
     8  
     9  import (
    10  	common "github.com/devseccon/trivy/rpc/common"
    11  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    12  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    13  	reflect "reflect"
    14  	sync "sync"
    15  )
    16  
    17  const (
    18  	// Verify that this generated code is sufficiently up-to-date.
    19  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    20  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    21  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    22  )
    23  
    24  type ScanRequest struct {
    25  	state         protoimpl.MessageState
    26  	sizeCache     protoimpl.SizeCache
    27  	unknownFields protoimpl.UnknownFields
    28  
    29  	Target     string       `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` // image name or tar file path
    30  	ArtifactId string       `protobuf:"bytes,2,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"`
    31  	BlobIds    []string     `protobuf:"bytes,3,rep,name=blob_ids,json=blobIds,proto3" json:"blob_ids,omitempty"`
    32  	Options    *ScanOptions `protobuf:"bytes,4,opt,name=options,proto3" json:"options,omitempty"`
    33  }
    34  
    35  func (x *ScanRequest) Reset() {
    36  	*x = ScanRequest{}
    37  	if protoimpl.UnsafeEnabled {
    38  		mi := &file_rpc_scanner_service_proto_msgTypes[0]
    39  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    40  		ms.StoreMessageInfo(mi)
    41  	}
    42  }
    43  
    44  func (x *ScanRequest) String() string {
    45  	return protoimpl.X.MessageStringOf(x)
    46  }
    47  
    48  func (*ScanRequest) ProtoMessage() {}
    49  
    50  func (x *ScanRequest) ProtoReflect() protoreflect.Message {
    51  	mi := &file_rpc_scanner_service_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 ScanRequest.ProtoReflect.Descriptor instead.
    63  func (*ScanRequest) Descriptor() ([]byte, []int) {
    64  	return file_rpc_scanner_service_proto_rawDescGZIP(), []int{0}
    65  }
    66  
    67  func (x *ScanRequest) GetTarget() string {
    68  	if x != nil {
    69  		return x.Target
    70  	}
    71  	return ""
    72  }
    73  
    74  func (x *ScanRequest) GetArtifactId() string {
    75  	if x != nil {
    76  		return x.ArtifactId
    77  	}
    78  	return ""
    79  }
    80  
    81  func (x *ScanRequest) GetBlobIds() []string {
    82  	if x != nil {
    83  		return x.BlobIds
    84  	}
    85  	return nil
    86  }
    87  
    88  func (x *ScanRequest) GetOptions() *ScanOptions {
    89  	if x != nil {
    90  		return x.Options
    91  	}
    92  	return nil
    93  }
    94  
    95  // cf.
    96  // https://stackoverflow.com/questions/38886789/protobuf3-how-to-describe-map-of-repeated-string
    97  type Licenses struct {
    98  	state         protoimpl.MessageState
    99  	sizeCache     protoimpl.SizeCache
   100  	unknownFields protoimpl.UnknownFields
   101  
   102  	Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
   103  }
   104  
   105  func (x *Licenses) Reset() {
   106  	*x = Licenses{}
   107  	if protoimpl.UnsafeEnabled {
   108  		mi := &file_rpc_scanner_service_proto_msgTypes[1]
   109  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   110  		ms.StoreMessageInfo(mi)
   111  	}
   112  }
   113  
   114  func (x *Licenses) String() string {
   115  	return protoimpl.X.MessageStringOf(x)
   116  }
   117  
   118  func (*Licenses) ProtoMessage() {}
   119  
   120  func (x *Licenses) ProtoReflect() protoreflect.Message {
   121  	mi := &file_rpc_scanner_service_proto_msgTypes[1]
   122  	if protoimpl.UnsafeEnabled && x != nil {
   123  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   124  		if ms.LoadMessageInfo() == nil {
   125  			ms.StoreMessageInfo(mi)
   126  		}
   127  		return ms
   128  	}
   129  	return mi.MessageOf(x)
   130  }
   131  
   132  // Deprecated: Use Licenses.ProtoReflect.Descriptor instead.
   133  func (*Licenses) Descriptor() ([]byte, []int) {
   134  	return file_rpc_scanner_service_proto_rawDescGZIP(), []int{1}
   135  }
   136  
   137  func (x *Licenses) GetNames() []string {
   138  	if x != nil {
   139  		return x.Names
   140  	}
   141  	return nil
   142  }
   143  
   144  type ScanOptions struct {
   145  	state         protoimpl.MessageState
   146  	sizeCache     protoimpl.SizeCache
   147  	unknownFields protoimpl.UnknownFields
   148  
   149  	VulnType          []string             `protobuf:"bytes,1,rep,name=vuln_type,json=vulnType,proto3" json:"vuln_type,omitempty"`
   150  	Scanners          []string             `protobuf:"bytes,2,rep,name=scanners,proto3" json:"scanners,omitempty"`
   151  	ListAllPackages   bool                 `protobuf:"varint,3,opt,name=list_all_packages,json=listAllPackages,proto3" json:"list_all_packages,omitempty"`
   152  	LicenseCategories map[string]*Licenses `protobuf:"bytes,4,rep,name=license_categories,json=licenseCategories,proto3" json:"license_categories,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   153  	IncludeDevDeps    bool                 `protobuf:"varint,5,opt,name=include_dev_deps,json=includeDevDeps,proto3" json:"include_dev_deps,omitempty"`
   154  }
   155  
   156  func (x *ScanOptions) Reset() {
   157  	*x = ScanOptions{}
   158  	if protoimpl.UnsafeEnabled {
   159  		mi := &file_rpc_scanner_service_proto_msgTypes[2]
   160  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   161  		ms.StoreMessageInfo(mi)
   162  	}
   163  }
   164  
   165  func (x *ScanOptions) String() string {
   166  	return protoimpl.X.MessageStringOf(x)
   167  }
   168  
   169  func (*ScanOptions) ProtoMessage() {}
   170  
   171  func (x *ScanOptions) ProtoReflect() protoreflect.Message {
   172  	mi := &file_rpc_scanner_service_proto_msgTypes[2]
   173  	if protoimpl.UnsafeEnabled && x != nil {
   174  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   175  		if ms.LoadMessageInfo() == nil {
   176  			ms.StoreMessageInfo(mi)
   177  		}
   178  		return ms
   179  	}
   180  	return mi.MessageOf(x)
   181  }
   182  
   183  // Deprecated: Use ScanOptions.ProtoReflect.Descriptor instead.
   184  func (*ScanOptions) Descriptor() ([]byte, []int) {
   185  	return file_rpc_scanner_service_proto_rawDescGZIP(), []int{2}
   186  }
   187  
   188  func (x *ScanOptions) GetVulnType() []string {
   189  	if x != nil {
   190  		return x.VulnType
   191  	}
   192  	return nil
   193  }
   194  
   195  func (x *ScanOptions) GetScanners() []string {
   196  	if x != nil {
   197  		return x.Scanners
   198  	}
   199  	return nil
   200  }
   201  
   202  func (x *ScanOptions) GetListAllPackages() bool {
   203  	if x != nil {
   204  		return x.ListAllPackages
   205  	}
   206  	return false
   207  }
   208  
   209  func (x *ScanOptions) GetLicenseCategories() map[string]*Licenses {
   210  	if x != nil {
   211  		return x.LicenseCategories
   212  	}
   213  	return nil
   214  }
   215  
   216  func (x *ScanOptions) GetIncludeDevDeps() bool {
   217  	if x != nil {
   218  		return x.IncludeDevDeps
   219  	}
   220  	return false
   221  }
   222  
   223  type ScanResponse struct {
   224  	state         protoimpl.MessageState
   225  	sizeCache     protoimpl.SizeCache
   226  	unknownFields protoimpl.UnknownFields
   227  
   228  	Os      *common.OS `protobuf:"bytes,1,opt,name=os,proto3" json:"os,omitempty"`
   229  	Results []*Result  `protobuf:"bytes,3,rep,name=results,proto3" json:"results,omitempty"`
   230  }
   231  
   232  func (x *ScanResponse) Reset() {
   233  	*x = ScanResponse{}
   234  	if protoimpl.UnsafeEnabled {
   235  		mi := &file_rpc_scanner_service_proto_msgTypes[3]
   236  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   237  		ms.StoreMessageInfo(mi)
   238  	}
   239  }
   240  
   241  func (x *ScanResponse) String() string {
   242  	return protoimpl.X.MessageStringOf(x)
   243  }
   244  
   245  func (*ScanResponse) ProtoMessage() {}
   246  
   247  func (x *ScanResponse) ProtoReflect() protoreflect.Message {
   248  	mi := &file_rpc_scanner_service_proto_msgTypes[3]
   249  	if protoimpl.UnsafeEnabled && x != nil {
   250  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   251  		if ms.LoadMessageInfo() == nil {
   252  			ms.StoreMessageInfo(mi)
   253  		}
   254  		return ms
   255  	}
   256  	return mi.MessageOf(x)
   257  }
   258  
   259  // Deprecated: Use ScanResponse.ProtoReflect.Descriptor instead.
   260  func (*ScanResponse) Descriptor() ([]byte, []int) {
   261  	return file_rpc_scanner_service_proto_rawDescGZIP(), []int{3}
   262  }
   263  
   264  func (x *ScanResponse) GetOs() *common.OS {
   265  	if x != nil {
   266  		return x.Os
   267  	}
   268  	return nil
   269  }
   270  
   271  func (x *ScanResponse) GetResults() []*Result {
   272  	if x != nil {
   273  		return x.Results
   274  	}
   275  	return nil
   276  }
   277  
   278  // Result is the same as github.com/devseccon/trivy/pkg/report.Result
   279  type Result struct {
   280  	state         protoimpl.MessageState
   281  	sizeCache     protoimpl.SizeCache
   282  	unknownFields protoimpl.UnknownFields
   283  
   284  	Target            string                             `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
   285  	Vulnerabilities   []*common.Vulnerability            `protobuf:"bytes,2,rep,name=vulnerabilities,proto3" json:"vulnerabilities,omitempty"`
   286  	Misconfigurations []*common.DetectedMisconfiguration `protobuf:"bytes,4,rep,name=misconfigurations,proto3" json:"misconfigurations,omitempty"`
   287  	Class             string                             `protobuf:"bytes,6,opt,name=class,proto3" json:"class,omitempty"`
   288  	Type              string                             `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
   289  	Packages          []*common.Package                  `protobuf:"bytes,5,rep,name=packages,proto3" json:"packages,omitempty"`
   290  	CustomResources   []*common.CustomResource           `protobuf:"bytes,7,rep,name=custom_resources,json=customResources,proto3" json:"custom_resources,omitempty"`
   291  	Secrets           []*common.SecretFinding            `protobuf:"bytes,8,rep,name=secrets,proto3" json:"secrets,omitempty"`
   292  	Licenses          []*common.DetectedLicense          `protobuf:"bytes,9,rep,name=licenses,proto3" json:"licenses,omitempty"`
   293  }
   294  
   295  func (x *Result) Reset() {
   296  	*x = Result{}
   297  	if protoimpl.UnsafeEnabled {
   298  		mi := &file_rpc_scanner_service_proto_msgTypes[4]
   299  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   300  		ms.StoreMessageInfo(mi)
   301  	}
   302  }
   303  
   304  func (x *Result) String() string {
   305  	return protoimpl.X.MessageStringOf(x)
   306  }
   307  
   308  func (*Result) ProtoMessage() {}
   309  
   310  func (x *Result) ProtoReflect() protoreflect.Message {
   311  	mi := &file_rpc_scanner_service_proto_msgTypes[4]
   312  	if protoimpl.UnsafeEnabled && x != nil {
   313  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   314  		if ms.LoadMessageInfo() == nil {
   315  			ms.StoreMessageInfo(mi)
   316  		}
   317  		return ms
   318  	}
   319  	return mi.MessageOf(x)
   320  }
   321  
   322  // Deprecated: Use Result.ProtoReflect.Descriptor instead.
   323  func (*Result) Descriptor() ([]byte, []int) {
   324  	return file_rpc_scanner_service_proto_rawDescGZIP(), []int{4}
   325  }
   326  
   327  func (x *Result) GetTarget() string {
   328  	if x != nil {
   329  		return x.Target
   330  	}
   331  	return ""
   332  }
   333  
   334  func (x *Result) GetVulnerabilities() []*common.Vulnerability {
   335  	if x != nil {
   336  		return x.Vulnerabilities
   337  	}
   338  	return nil
   339  }
   340  
   341  func (x *Result) GetMisconfigurations() []*common.DetectedMisconfiguration {
   342  	if x != nil {
   343  		return x.Misconfigurations
   344  	}
   345  	return nil
   346  }
   347  
   348  func (x *Result) GetClass() string {
   349  	if x != nil {
   350  		return x.Class
   351  	}
   352  	return ""
   353  }
   354  
   355  func (x *Result) GetType() string {
   356  	if x != nil {
   357  		return x.Type
   358  	}
   359  	return ""
   360  }
   361  
   362  func (x *Result) GetPackages() []*common.Package {
   363  	if x != nil {
   364  		return x.Packages
   365  	}
   366  	return nil
   367  }
   368  
   369  func (x *Result) GetCustomResources() []*common.CustomResource {
   370  	if x != nil {
   371  		return x.CustomResources
   372  	}
   373  	return nil
   374  }
   375  
   376  func (x *Result) GetSecrets() []*common.SecretFinding {
   377  	if x != nil {
   378  		return x.Secrets
   379  	}
   380  	return nil
   381  }
   382  
   383  func (x *Result) GetLicenses() []*common.DetectedLicense {
   384  	if x != nil {
   385  		return x.Licenses
   386  	}
   387  	return nil
   388  }
   389  
   390  var File_rpc_scanner_service_proto protoreflect.FileDescriptor
   391  
   392  var file_rpc_scanner_service_proto_rawDesc = []byte{
   393  	0x0a, 0x19, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2f, 0x73, 0x65,
   394  	0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x74, 0x72, 0x69,
   395  	0x76, 0x79, 0x2e, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x1a, 0x18, 0x72,
   396  	0x70, 0x63, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
   397  	0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9a, 0x01, 0x0a, 0x0b, 0x53, 0x63, 0x61, 0x6e,
   398  	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65,
   399  	0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12,
   400  	0x1f, 0x0a, 0x0b, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02,
   401  	0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x64,
   402  	0x12, 0x19, 0x0a, 0x08, 0x62, 0x6c, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03,
   403  	0x28, 0x09, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x62, 0x49, 0x64, 0x73, 0x12, 0x37, 0x0a, 0x07, 0x6f,
   404  	0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74,
   405  	0x72, 0x69, 0x76, 0x79, 0x2e, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e,
   406  	0x53, 0x63, 0x61, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74,
   407  	0x69, 0x6f, 0x6e, 0x73, 0x22, 0x20, 0x0a, 0x08, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x73,
   408  	0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52,
   409  	0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0xe3, 0x02, 0x0a, 0x0b, 0x53, 0x63, 0x61, 0x6e, 0x4f,
   410  	0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x75, 0x6c, 0x6e, 0x5f, 0x74,
   411  	0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x76, 0x75, 0x6c, 0x6e, 0x54,
   412  	0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x73, 0x18,
   413  	0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x73, 0x12,
   414  	0x2a, 0x0a, 0x11, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x61, 0x6c, 0x6c, 0x5f, 0x70, 0x61, 0x63, 0x6b,
   415  	0x61, 0x67, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x6c, 0x69, 0x73, 0x74,
   416  	0x41, 0x6c, 0x6c, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x12, 0x63, 0x0a, 0x12, 0x6c,
   417  	0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65,
   418  	0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x74, 0x72, 0x69, 0x76, 0x79, 0x2e,
   419  	0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x61, 0x6e, 0x4f,
   420  	0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x43, 0x61,
   421  	0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x11, 0x6c,
   422  	0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73,
   423  	0x12, 0x28, 0x0a, 0x10, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x64, 0x65, 0x76, 0x5f,
   424  	0x64, 0x65, 0x70, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x69, 0x6e, 0x63, 0x6c,
   425  	0x75, 0x64, 0x65, 0x44, 0x65, 0x76, 0x44, 0x65, 0x70, 0x73, 0x1a, 0x60, 0x0a, 0x16, 0x4c, 0x69,
   426  	0x63, 0x65, 0x6e, 0x73, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x45,
   427  	0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
   428  	0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x30, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
   429  	0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x74, 0x72, 0x69, 0x76, 0x79, 0x2e, 0x73, 0x63,
   430  	0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65,
   431  	0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x64, 0x0a, 0x0c,
   432  	0x53, 0x63, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x02,
   433  	0x6f, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x72, 0x69, 0x76, 0x79,
   434  	0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4f, 0x53, 0x52, 0x02, 0x6f, 0x73, 0x12, 0x32,
   435  	0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,
   436  	0x18, 0x2e, 0x74, 0x72, 0x69, 0x76, 0x79, 0x2e, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e,
   437  	0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c,
   438  	0x74, 0x73, 0x22, 0xd5, 0x03, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x16, 0x0a,
   439  	0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74,
   440  	0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x45, 0x0a, 0x0f, 0x76, 0x75, 0x6c, 0x6e, 0x65, 0x72, 0x61,
   441  	0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b,
   442  	0x2e, 0x74, 0x72, 0x69, 0x76, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x56, 0x75,
   443  	0x6c, 0x6e, 0x65, 0x72, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x0f, 0x76, 0x75, 0x6c,
   444  	0x6e, 0x65, 0x72, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x54, 0x0a, 0x11,
   445  	0x6d, 0x69, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
   446  	0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x74, 0x72, 0x69, 0x76, 0x79, 0x2e,
   447  	0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x4d,
   448  	0x69, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
   449  	0x11, 0x6d, 0x69, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,
   450  	0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28,
   451  	0x09, 0x52, 0x05, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65,
   452  	0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x31, 0x0a, 0x08,
   453  	0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15,
   454  	0x2e, 0x74, 0x72, 0x69, 0x76, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x61,
   455  	0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x08, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x12,
   456  	0x47, 0x0a, 0x10, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
   457  	0x63, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x74, 0x72, 0x69, 0x76,
   458  	0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x52,
   459  	0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x52,
   460  	0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x35, 0x0a, 0x07, 0x73, 0x65, 0x63, 0x72,
   461  	0x65, 0x74, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x72, 0x69, 0x76,
   462  	0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x46,
   463  	0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x12,
   464  	0x39, 0x0a, 0x08, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28,
   465  	0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x72, 0x69, 0x76, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
   466  	0x2e, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65,
   467  	0x52, 0x08, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x73, 0x32, 0x50, 0x0a, 0x07, 0x53, 0x63,
   468  	0x61, 0x6e, 0x6e, 0x65, 0x72, 0x12, 0x45, 0x0a, 0x04, 0x53, 0x63, 0x61, 0x6e, 0x12, 0x1d, 0x2e,
   469  	0x74, 0x72, 0x69, 0x76, 0x79, 0x2e, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31,
   470  	0x2e, 0x53, 0x63, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x74,
   471  	0x72, 0x69, 0x76, 0x79, 0x2e, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e,
   472  	0x53, 0x63, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x33, 0x5a, 0x31,
   473  	0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x71, 0x75, 0x61, 0x73,
   474  	0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2f, 0x74, 0x72, 0x69, 0x76, 0x79, 0x2f, 0x72, 0x70,
   475  	0x63, 0x2f, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x3b, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65,
   476  	0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   477  }
   478  
   479  var (
   480  	file_rpc_scanner_service_proto_rawDescOnce sync.Once
   481  	file_rpc_scanner_service_proto_rawDescData = file_rpc_scanner_service_proto_rawDesc
   482  )
   483  
   484  func file_rpc_scanner_service_proto_rawDescGZIP() []byte {
   485  	file_rpc_scanner_service_proto_rawDescOnce.Do(func() {
   486  		file_rpc_scanner_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_rpc_scanner_service_proto_rawDescData)
   487  	})
   488  	return file_rpc_scanner_service_proto_rawDescData
   489  }
   490  
   491  var file_rpc_scanner_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
   492  var file_rpc_scanner_service_proto_goTypes = []interface{}{
   493  	(*ScanRequest)(nil),                     // 0: trivy.scanner.v1.ScanRequest
   494  	(*Licenses)(nil),                        // 1: trivy.scanner.v1.Licenses
   495  	(*ScanOptions)(nil),                     // 2: trivy.scanner.v1.ScanOptions
   496  	(*ScanResponse)(nil),                    // 3: trivy.scanner.v1.ScanResponse
   497  	(*Result)(nil),                          // 4: trivy.scanner.v1.Result
   498  	nil,                                     // 5: trivy.scanner.v1.ScanOptions.LicenseCategoriesEntry
   499  	(*common.OS)(nil),                       // 6: trivy.common.OS
   500  	(*common.Vulnerability)(nil),            // 7: trivy.common.Vulnerability
   501  	(*common.DetectedMisconfiguration)(nil), // 8: trivy.common.DetectedMisconfiguration
   502  	(*common.Package)(nil),                  // 9: trivy.common.Package
   503  	(*common.CustomResource)(nil),           // 10: trivy.common.CustomResource
   504  	(*common.SecretFinding)(nil),            // 11: trivy.common.SecretFinding
   505  	(*common.DetectedLicense)(nil),          // 12: trivy.common.DetectedLicense
   506  }
   507  var file_rpc_scanner_service_proto_depIdxs = []int32{
   508  	2,  // 0: trivy.scanner.v1.ScanRequest.options:type_name -> trivy.scanner.v1.ScanOptions
   509  	5,  // 1: trivy.scanner.v1.ScanOptions.license_categories:type_name -> trivy.scanner.v1.ScanOptions.LicenseCategoriesEntry
   510  	6,  // 2: trivy.scanner.v1.ScanResponse.os:type_name -> trivy.common.OS
   511  	4,  // 3: trivy.scanner.v1.ScanResponse.results:type_name -> trivy.scanner.v1.Result
   512  	7,  // 4: trivy.scanner.v1.Result.vulnerabilities:type_name -> trivy.common.Vulnerability
   513  	8,  // 5: trivy.scanner.v1.Result.misconfigurations:type_name -> trivy.common.DetectedMisconfiguration
   514  	9,  // 6: trivy.scanner.v1.Result.packages:type_name -> trivy.common.Package
   515  	10, // 7: trivy.scanner.v1.Result.custom_resources:type_name -> trivy.common.CustomResource
   516  	11, // 8: trivy.scanner.v1.Result.secrets:type_name -> trivy.common.SecretFinding
   517  	12, // 9: trivy.scanner.v1.Result.licenses:type_name -> trivy.common.DetectedLicense
   518  	1,  // 10: trivy.scanner.v1.ScanOptions.LicenseCategoriesEntry.value:type_name -> trivy.scanner.v1.Licenses
   519  	0,  // 11: trivy.scanner.v1.Scanner.Scan:input_type -> trivy.scanner.v1.ScanRequest
   520  	3,  // 12: trivy.scanner.v1.Scanner.Scan:output_type -> trivy.scanner.v1.ScanResponse
   521  	12, // [12:13] is the sub-list for method output_type
   522  	11, // [11:12] is the sub-list for method input_type
   523  	11, // [11:11] is the sub-list for extension type_name
   524  	11, // [11:11] is the sub-list for extension extendee
   525  	0,  // [0:11] is the sub-list for field type_name
   526  }
   527  
   528  func init() { file_rpc_scanner_service_proto_init() }
   529  func file_rpc_scanner_service_proto_init() {
   530  	if File_rpc_scanner_service_proto != nil {
   531  		return
   532  	}
   533  	if !protoimpl.UnsafeEnabled {
   534  		file_rpc_scanner_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   535  			switch v := v.(*ScanRequest); i {
   536  			case 0:
   537  				return &v.state
   538  			case 1:
   539  				return &v.sizeCache
   540  			case 2:
   541  				return &v.unknownFields
   542  			default:
   543  				return nil
   544  			}
   545  		}
   546  		file_rpc_scanner_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   547  			switch v := v.(*Licenses); i {
   548  			case 0:
   549  				return &v.state
   550  			case 1:
   551  				return &v.sizeCache
   552  			case 2:
   553  				return &v.unknownFields
   554  			default:
   555  				return nil
   556  			}
   557  		}
   558  		file_rpc_scanner_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   559  			switch v := v.(*ScanOptions); i {
   560  			case 0:
   561  				return &v.state
   562  			case 1:
   563  				return &v.sizeCache
   564  			case 2:
   565  				return &v.unknownFields
   566  			default:
   567  				return nil
   568  			}
   569  		}
   570  		file_rpc_scanner_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   571  			switch v := v.(*ScanResponse); i {
   572  			case 0:
   573  				return &v.state
   574  			case 1:
   575  				return &v.sizeCache
   576  			case 2:
   577  				return &v.unknownFields
   578  			default:
   579  				return nil
   580  			}
   581  		}
   582  		file_rpc_scanner_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
   583  			switch v := v.(*Result); i {
   584  			case 0:
   585  				return &v.state
   586  			case 1:
   587  				return &v.sizeCache
   588  			case 2:
   589  				return &v.unknownFields
   590  			default:
   591  				return nil
   592  			}
   593  		}
   594  	}
   595  	type x struct{}
   596  	out := protoimpl.TypeBuilder{
   597  		File: protoimpl.DescBuilder{
   598  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   599  			RawDescriptor: file_rpc_scanner_service_proto_rawDesc,
   600  			NumEnums:      0,
   601  			NumMessages:   6,
   602  			NumExtensions: 0,
   603  			NumServices:   1,
   604  		},
   605  		GoTypes:           file_rpc_scanner_service_proto_goTypes,
   606  		DependencyIndexes: file_rpc_scanner_service_proto_depIdxs,
   607  		MessageInfos:      file_rpc_scanner_service_proto_msgTypes,
   608  	}.Build()
   609  	File_rpc_scanner_service_proto = out.File
   610  	file_rpc_scanner_service_proto_rawDesc = nil
   611  	file_rpc_scanner_service_proto_goTypes = nil
   612  	file_rpc_scanner_service_proto_depIdxs = nil
   613  }