github.com/google/osv-scalibr@v0.4.1/binary/proto/config_go_proto/config.pb.go (about)

     1  //
     2  // Copyright 2025 Google LLC
     3  //
     4  // Licensed under the Apache License, Version 2.0 (the "License");
     5  // you may not use this file except in compliance with the License.
     6  // You may obtain a copy of the License at
     7  //
     8  // http://www.apache.org/licenses/LICENSE-2.0
     9  //
    10  // Unless required by applicable law or agreed to in writing, software
    11  // distributed under the License is distributed on an "AS IS" BASIS,
    12  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  // See the License for the specific language governing permissions and
    14  // limitations under the License.
    15  
    16  // Code generated by protoc-gen-go. DO NOT EDIT.
    17  // versions:
    18  // 	protoc-gen-go v1.36.10
    19  // 	protoc        v3.21.12
    20  // source: proto/config.proto
    21  
    22  package config_go_proto
    23  
    24  import (
    25  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    26  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    27  	reflect "reflect"
    28  	sync "sync"
    29  	unsafe "unsafe"
    30  )
    31  
    32  const (
    33  	// Verify that this generated code is sufficiently up-to-date.
    34  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    35  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    36  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    37  )
    38  
    39  type PluginConfig struct {
    40  	state protoimpl.MessageState `protogen:"open.v1"`
    41  	// The maximum file size the plugin will process.
    42  	MaxFileSizeBytes int64 `protobuf:"varint,1,opt,name=max_file_size_bytes,json=maxFileSizeBytes,proto3" json:"max_file_size_bytes,omitempty"`
    43  	// The local directory to store the downloaded manifests during dependency
    44  	// resolution.
    45  	LocalRegistry string `protobuf:"bytes,3,opt,name=local_registry,json=localRegistry,proto3" json:"local_registry,omitempty"`
    46  	// If true, do not try to create google.DefaultClient for Artifact Registry
    47  	// during dependency resolution.
    48  	DisableGoogleAuth bool `protobuf:"varint,4,opt,name=disable_google_auth,json=disableGoogleAuth,proto3" json:"disable_google_auth,omitempty"`
    49  	// Config values that only apply to a single plugin.
    50  	PluginSpecific []*PluginSpecificConfig `protobuf:"bytes,2,rep,name=plugin_specific,json=pluginSpecific,proto3" json:"plugin_specific,omitempty"`
    51  	unknownFields  protoimpl.UnknownFields
    52  	sizeCache      protoimpl.SizeCache
    53  }
    54  
    55  func (x *PluginConfig) Reset() {
    56  	*x = PluginConfig{}
    57  	mi := &file_proto_config_proto_msgTypes[0]
    58  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    59  	ms.StoreMessageInfo(mi)
    60  }
    61  
    62  func (x *PluginConfig) String() string {
    63  	return protoimpl.X.MessageStringOf(x)
    64  }
    65  
    66  func (*PluginConfig) ProtoMessage() {}
    67  
    68  func (x *PluginConfig) ProtoReflect() protoreflect.Message {
    69  	mi := &file_proto_config_proto_msgTypes[0]
    70  	if x != nil {
    71  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    72  		if ms.LoadMessageInfo() == nil {
    73  			ms.StoreMessageInfo(mi)
    74  		}
    75  		return ms
    76  	}
    77  	return mi.MessageOf(x)
    78  }
    79  
    80  // Deprecated: Use PluginConfig.ProtoReflect.Descriptor instead.
    81  func (*PluginConfig) Descriptor() ([]byte, []int) {
    82  	return file_proto_config_proto_rawDescGZIP(), []int{0}
    83  }
    84  
    85  func (x *PluginConfig) GetMaxFileSizeBytes() int64 {
    86  	if x != nil {
    87  		return x.MaxFileSizeBytes
    88  	}
    89  	return 0
    90  }
    91  
    92  func (x *PluginConfig) GetLocalRegistry() string {
    93  	if x != nil {
    94  		return x.LocalRegistry
    95  	}
    96  	return ""
    97  }
    98  
    99  func (x *PluginConfig) GetDisableGoogleAuth() bool {
   100  	if x != nil {
   101  		return x.DisableGoogleAuth
   102  	}
   103  	return false
   104  }
   105  
   106  func (x *PluginConfig) GetPluginSpecific() []*PluginSpecificConfig {
   107  	if x != nil {
   108  		return x.PluginSpecific
   109  	}
   110  	return nil
   111  }
   112  
   113  type PluginSpecificConfig struct {
   114  	state protoimpl.MessageState `protogen:"open.v1"`
   115  	// Types that are valid to be assigned to Config:
   116  	//
   117  	//	*PluginSpecificConfig_GoBinary
   118  	//	*PluginSpecificConfig_Govulncheck
   119  	//	*PluginSpecificConfig_Archive
   120  	//	*PluginSpecificConfig_Ova
   121  	//	*PluginSpecificConfig_Vdi
   122  	//	*PluginSpecificConfig_Vmdk
   123  	//	*PluginSpecificConfig_HashicorpVaultValidator
   124  	//	*PluginSpecificConfig_SdpInspect
   125  	//	*PluginSpecificConfig_PomXmlNet
   126  	Config        isPluginSpecificConfig_Config `protobuf_oneof:"config"`
   127  	unknownFields protoimpl.UnknownFields
   128  	sizeCache     protoimpl.SizeCache
   129  }
   130  
   131  func (x *PluginSpecificConfig) Reset() {
   132  	*x = PluginSpecificConfig{}
   133  	mi := &file_proto_config_proto_msgTypes[1]
   134  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   135  	ms.StoreMessageInfo(mi)
   136  }
   137  
   138  func (x *PluginSpecificConfig) String() string {
   139  	return protoimpl.X.MessageStringOf(x)
   140  }
   141  
   142  func (*PluginSpecificConfig) ProtoMessage() {}
   143  
   144  func (x *PluginSpecificConfig) ProtoReflect() protoreflect.Message {
   145  	mi := &file_proto_config_proto_msgTypes[1]
   146  	if x != nil {
   147  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   148  		if ms.LoadMessageInfo() == nil {
   149  			ms.StoreMessageInfo(mi)
   150  		}
   151  		return ms
   152  	}
   153  	return mi.MessageOf(x)
   154  }
   155  
   156  // Deprecated: Use PluginSpecificConfig.ProtoReflect.Descriptor instead.
   157  func (*PluginSpecificConfig) Descriptor() ([]byte, []int) {
   158  	return file_proto_config_proto_rawDescGZIP(), []int{1}
   159  }
   160  
   161  func (x *PluginSpecificConfig) GetConfig() isPluginSpecificConfig_Config {
   162  	if x != nil {
   163  		return x.Config
   164  	}
   165  	return nil
   166  }
   167  
   168  func (x *PluginSpecificConfig) GetGoBinary() *GoBinaryConfig {
   169  	if x != nil {
   170  		if x, ok := x.Config.(*PluginSpecificConfig_GoBinary); ok {
   171  			return x.GoBinary
   172  		}
   173  	}
   174  	return nil
   175  }
   176  
   177  func (x *PluginSpecificConfig) GetGovulncheck() *GovulncheckConfig {
   178  	if x != nil {
   179  		if x, ok := x.Config.(*PluginSpecificConfig_Govulncheck); ok {
   180  			return x.Govulncheck
   181  		}
   182  	}
   183  	return nil
   184  }
   185  
   186  func (x *PluginSpecificConfig) GetArchive() *ArchiveConfig {
   187  	if x != nil {
   188  		if x, ok := x.Config.(*PluginSpecificConfig_Archive); ok {
   189  			return x.Archive
   190  		}
   191  	}
   192  	return nil
   193  }
   194  
   195  func (x *PluginSpecificConfig) GetOva() *OVAConfig {
   196  	if x != nil {
   197  		if x, ok := x.Config.(*PluginSpecificConfig_Ova); ok {
   198  			return x.Ova
   199  		}
   200  	}
   201  	return nil
   202  }
   203  
   204  func (x *PluginSpecificConfig) GetVdi() *VDIConfig {
   205  	if x != nil {
   206  		if x, ok := x.Config.(*PluginSpecificConfig_Vdi); ok {
   207  			return x.Vdi
   208  		}
   209  	}
   210  	return nil
   211  }
   212  
   213  func (x *PluginSpecificConfig) GetVmdk() *VMDKConfig {
   214  	if x != nil {
   215  		if x, ok := x.Config.(*PluginSpecificConfig_Vmdk); ok {
   216  			return x.Vmdk
   217  		}
   218  	}
   219  	return nil
   220  }
   221  
   222  func (x *PluginSpecificConfig) GetHashicorpVaultValidator() *HashiCorpVaultValidatorConfig {
   223  	if x != nil {
   224  		if x, ok := x.Config.(*PluginSpecificConfig_HashicorpVaultValidator); ok {
   225  			return x.HashicorpVaultValidator
   226  		}
   227  	}
   228  	return nil
   229  }
   230  
   231  func (x *PluginSpecificConfig) GetSdpInspect() *SDPInspectConfig {
   232  	if x != nil {
   233  		if x, ok := x.Config.(*PluginSpecificConfig_SdpInspect); ok {
   234  			return x.SdpInspect
   235  		}
   236  	}
   237  	return nil
   238  }
   239  
   240  func (x *PluginSpecificConfig) GetPomXmlNet() *POMXMLNetConfig {
   241  	if x != nil {
   242  		if x, ok := x.Config.(*PluginSpecificConfig_PomXmlNet); ok {
   243  			return x.PomXmlNet
   244  		}
   245  	}
   246  	return nil
   247  }
   248  
   249  type isPluginSpecificConfig_Config interface {
   250  	isPluginSpecificConfig_Config()
   251  }
   252  
   253  type PluginSpecificConfig_GoBinary struct {
   254  	GoBinary *GoBinaryConfig `protobuf:"bytes,1,opt,name=go_binary,json=goBinary,proto3,oneof"`
   255  }
   256  
   257  type PluginSpecificConfig_Govulncheck struct {
   258  	Govulncheck *GovulncheckConfig `protobuf:"bytes,2,opt,name=govulncheck,proto3,oneof"`
   259  }
   260  
   261  type PluginSpecificConfig_Archive struct {
   262  	Archive *ArchiveConfig `protobuf:"bytes,3,opt,name=archive,proto3,oneof"`
   263  }
   264  
   265  type PluginSpecificConfig_Ova struct {
   266  	Ova *OVAConfig `protobuf:"bytes,4,opt,name=ova,proto3,oneof"`
   267  }
   268  
   269  type PluginSpecificConfig_Vdi struct {
   270  	Vdi *VDIConfig `protobuf:"bytes,5,opt,name=vdi,proto3,oneof"`
   271  }
   272  
   273  type PluginSpecificConfig_Vmdk struct {
   274  	Vmdk *VMDKConfig `protobuf:"bytes,6,opt,name=vmdk,proto3,oneof"`
   275  }
   276  
   277  type PluginSpecificConfig_HashicorpVaultValidator struct {
   278  	HashicorpVaultValidator *HashiCorpVaultValidatorConfig `protobuf:"bytes,7,opt,name=hashicorp_vault_validator,json=hashicorpVaultValidator,proto3,oneof"`
   279  }
   280  
   281  type PluginSpecificConfig_SdpInspect struct {
   282  	SdpInspect *SDPInspectConfig `protobuf:"bytes,8,opt,name=sdp_inspect,json=sdpInspect,proto3,oneof"`
   283  }
   284  
   285  type PluginSpecificConfig_PomXmlNet struct {
   286  	PomXmlNet *POMXMLNetConfig `protobuf:"bytes,9,opt,name=pom_xml_net,json=pomXmlNet,proto3,oneof"`
   287  }
   288  
   289  func (*PluginSpecificConfig_GoBinary) isPluginSpecificConfig_Config() {}
   290  
   291  func (*PluginSpecificConfig_Govulncheck) isPluginSpecificConfig_Config() {}
   292  
   293  func (*PluginSpecificConfig_Archive) isPluginSpecificConfig_Config() {}
   294  
   295  func (*PluginSpecificConfig_Ova) isPluginSpecificConfig_Config() {}
   296  
   297  func (*PluginSpecificConfig_Vdi) isPluginSpecificConfig_Config() {}
   298  
   299  func (*PluginSpecificConfig_Vmdk) isPluginSpecificConfig_Config() {}
   300  
   301  func (*PluginSpecificConfig_HashicorpVaultValidator) isPluginSpecificConfig_Config() {}
   302  
   303  func (*PluginSpecificConfig_SdpInspect) isPluginSpecificConfig_Config() {}
   304  
   305  func (*PluginSpecificConfig_PomXmlNet) isPluginSpecificConfig_Config() {}
   306  
   307  type GoBinaryConfig struct {
   308  	state protoimpl.MessageState `protogen:"open.v1"`
   309  	// Enables extracting the module version from the Go binary content.
   310  	VersionFromContent bool `protobuf:"varint,1,opt,name=version_from_content,json=versionFromContent,proto3" json:"version_from_content,omitempty"`
   311  	unknownFields      protoimpl.UnknownFields
   312  	sizeCache          protoimpl.SizeCache
   313  }
   314  
   315  func (x *GoBinaryConfig) Reset() {
   316  	*x = GoBinaryConfig{}
   317  	mi := &file_proto_config_proto_msgTypes[2]
   318  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   319  	ms.StoreMessageInfo(mi)
   320  }
   321  
   322  func (x *GoBinaryConfig) String() string {
   323  	return protoimpl.X.MessageStringOf(x)
   324  }
   325  
   326  func (*GoBinaryConfig) ProtoMessage() {}
   327  
   328  func (x *GoBinaryConfig) ProtoReflect() protoreflect.Message {
   329  	mi := &file_proto_config_proto_msgTypes[2]
   330  	if x != nil {
   331  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   332  		if ms.LoadMessageInfo() == nil {
   333  			ms.StoreMessageInfo(mi)
   334  		}
   335  		return ms
   336  	}
   337  	return mi.MessageOf(x)
   338  }
   339  
   340  // Deprecated: Use GoBinaryConfig.ProtoReflect.Descriptor instead.
   341  func (*GoBinaryConfig) Descriptor() ([]byte, []int) {
   342  	return file_proto_config_proto_rawDescGZIP(), []int{2}
   343  }
   344  
   345  func (x *GoBinaryConfig) GetVersionFromContent() bool {
   346  	if x != nil {
   347  		return x.VersionFromContent
   348  	}
   349  	return false
   350  }
   351  
   352  type GovulncheckConfig struct {
   353  	state protoimpl.MessageState `protogen:"open.v1"`
   354  	// Path to the offline vuln DB to pass to govunlcheck. If empty,
   355  	// the detector will query vulns from the net instead.
   356  	OfflineVulnDbPath string `protobuf:"bytes,1,opt,name=offline_vuln_db_path,json=offlineVulnDbPath,proto3" json:"offline_vuln_db_path,omitempty"`
   357  	unknownFields     protoimpl.UnknownFields
   358  	sizeCache         protoimpl.SizeCache
   359  }
   360  
   361  func (x *GovulncheckConfig) Reset() {
   362  	*x = GovulncheckConfig{}
   363  	mi := &file_proto_config_proto_msgTypes[3]
   364  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   365  	ms.StoreMessageInfo(mi)
   366  }
   367  
   368  func (x *GovulncheckConfig) String() string {
   369  	return protoimpl.X.MessageStringOf(x)
   370  }
   371  
   372  func (*GovulncheckConfig) ProtoMessage() {}
   373  
   374  func (x *GovulncheckConfig) ProtoReflect() protoreflect.Message {
   375  	mi := &file_proto_config_proto_msgTypes[3]
   376  	if x != nil {
   377  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   378  		if ms.LoadMessageInfo() == nil {
   379  			ms.StoreMessageInfo(mi)
   380  		}
   381  		return ms
   382  	}
   383  	return mi.MessageOf(x)
   384  }
   385  
   386  // Deprecated: Use GovulncheckConfig.ProtoReflect.Descriptor instead.
   387  func (*GovulncheckConfig) Descriptor() ([]byte, []int) {
   388  	return file_proto_config_proto_rawDescGZIP(), []int{3}
   389  }
   390  
   391  func (x *GovulncheckConfig) GetOfflineVulnDbPath() string {
   392  	if x != nil {
   393  		return x.OfflineVulnDbPath
   394  	}
   395  	return ""
   396  }
   397  
   398  type ArchiveConfig struct {
   399  	state protoimpl.MessageState `protogen:"open.v1"`
   400  	// The maximum file size the plugin will process.
   401  	// If set, this overrides the global max_file_size_bytes configuration
   402  	// for this specific plugin.
   403  	MaxFileSizeBytes int64 `protobuf:"varint,1,opt,name=max_file_size_bytes,json=maxFileSizeBytes,proto3" json:"max_file_size_bytes,omitempty"`
   404  	unknownFields    protoimpl.UnknownFields
   405  	sizeCache        protoimpl.SizeCache
   406  }
   407  
   408  func (x *ArchiveConfig) Reset() {
   409  	*x = ArchiveConfig{}
   410  	mi := &file_proto_config_proto_msgTypes[4]
   411  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   412  	ms.StoreMessageInfo(mi)
   413  }
   414  
   415  func (x *ArchiveConfig) String() string {
   416  	return protoimpl.X.MessageStringOf(x)
   417  }
   418  
   419  func (*ArchiveConfig) ProtoMessage() {}
   420  
   421  func (x *ArchiveConfig) ProtoReflect() protoreflect.Message {
   422  	mi := &file_proto_config_proto_msgTypes[4]
   423  	if x != nil {
   424  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   425  		if ms.LoadMessageInfo() == nil {
   426  			ms.StoreMessageInfo(mi)
   427  		}
   428  		return ms
   429  	}
   430  	return mi.MessageOf(x)
   431  }
   432  
   433  // Deprecated: Use ArchiveConfig.ProtoReflect.Descriptor instead.
   434  func (*ArchiveConfig) Descriptor() ([]byte, []int) {
   435  	return file_proto_config_proto_rawDescGZIP(), []int{4}
   436  }
   437  
   438  func (x *ArchiveConfig) GetMaxFileSizeBytes() int64 {
   439  	if x != nil {
   440  		return x.MaxFileSizeBytes
   441  	}
   442  	return 0
   443  }
   444  
   445  type OVAConfig struct {
   446  	state protoimpl.MessageState `protogen:"open.v1"`
   447  	// The maximum file size the plugin will process.
   448  	// If set, this overrides the global max_file_size_bytes configuration
   449  	// for this specific plugin.
   450  	MaxFileSizeBytes int64 `protobuf:"varint,1,opt,name=max_file_size_bytes,json=maxFileSizeBytes,proto3" json:"max_file_size_bytes,omitempty"`
   451  	unknownFields    protoimpl.UnknownFields
   452  	sizeCache        protoimpl.SizeCache
   453  }
   454  
   455  func (x *OVAConfig) Reset() {
   456  	*x = OVAConfig{}
   457  	mi := &file_proto_config_proto_msgTypes[5]
   458  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   459  	ms.StoreMessageInfo(mi)
   460  }
   461  
   462  func (x *OVAConfig) String() string {
   463  	return protoimpl.X.MessageStringOf(x)
   464  }
   465  
   466  func (*OVAConfig) ProtoMessage() {}
   467  
   468  func (x *OVAConfig) ProtoReflect() protoreflect.Message {
   469  	mi := &file_proto_config_proto_msgTypes[5]
   470  	if x != nil {
   471  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   472  		if ms.LoadMessageInfo() == nil {
   473  			ms.StoreMessageInfo(mi)
   474  		}
   475  		return ms
   476  	}
   477  	return mi.MessageOf(x)
   478  }
   479  
   480  // Deprecated: Use OVAConfig.ProtoReflect.Descriptor instead.
   481  func (*OVAConfig) Descriptor() ([]byte, []int) {
   482  	return file_proto_config_proto_rawDescGZIP(), []int{5}
   483  }
   484  
   485  func (x *OVAConfig) GetMaxFileSizeBytes() int64 {
   486  	if x != nil {
   487  		return x.MaxFileSizeBytes
   488  	}
   489  	return 0
   490  }
   491  
   492  type VDIConfig struct {
   493  	state protoimpl.MessageState `protogen:"open.v1"`
   494  	// The maximum file size the plugin will process.
   495  	// If set, this overrides the global max_file_size_bytes configuration
   496  	// for this specific plugin.
   497  	MaxFileSizeBytes int64 `protobuf:"varint,1,opt,name=max_file_size_bytes,json=maxFileSizeBytes,proto3" json:"max_file_size_bytes,omitempty"`
   498  	unknownFields    protoimpl.UnknownFields
   499  	sizeCache        protoimpl.SizeCache
   500  }
   501  
   502  func (x *VDIConfig) Reset() {
   503  	*x = VDIConfig{}
   504  	mi := &file_proto_config_proto_msgTypes[6]
   505  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   506  	ms.StoreMessageInfo(mi)
   507  }
   508  
   509  func (x *VDIConfig) String() string {
   510  	return protoimpl.X.MessageStringOf(x)
   511  }
   512  
   513  func (*VDIConfig) ProtoMessage() {}
   514  
   515  func (x *VDIConfig) ProtoReflect() protoreflect.Message {
   516  	mi := &file_proto_config_proto_msgTypes[6]
   517  	if x != nil {
   518  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   519  		if ms.LoadMessageInfo() == nil {
   520  			ms.StoreMessageInfo(mi)
   521  		}
   522  		return ms
   523  	}
   524  	return mi.MessageOf(x)
   525  }
   526  
   527  // Deprecated: Use VDIConfig.ProtoReflect.Descriptor instead.
   528  func (*VDIConfig) Descriptor() ([]byte, []int) {
   529  	return file_proto_config_proto_rawDescGZIP(), []int{6}
   530  }
   531  
   532  func (x *VDIConfig) GetMaxFileSizeBytes() int64 {
   533  	if x != nil {
   534  		return x.MaxFileSizeBytes
   535  	}
   536  	return 0
   537  }
   538  
   539  type VMDKConfig struct {
   540  	state protoimpl.MessageState `protogen:"open.v1"`
   541  	// The maximum file size the plugin will process.
   542  	// If set, this overrides the global max_file_size_bytes configuration
   543  	// for this specific plugin.
   544  	MaxFileSizeBytes int64 `protobuf:"varint,1,opt,name=max_file_size_bytes,json=maxFileSizeBytes,proto3" json:"max_file_size_bytes,omitempty"`
   545  	unknownFields    protoimpl.UnknownFields
   546  	sizeCache        protoimpl.SizeCache
   547  }
   548  
   549  func (x *VMDKConfig) Reset() {
   550  	*x = VMDKConfig{}
   551  	mi := &file_proto_config_proto_msgTypes[7]
   552  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   553  	ms.StoreMessageInfo(mi)
   554  }
   555  
   556  func (x *VMDKConfig) String() string {
   557  	return protoimpl.X.MessageStringOf(x)
   558  }
   559  
   560  func (*VMDKConfig) ProtoMessage() {}
   561  
   562  func (x *VMDKConfig) ProtoReflect() protoreflect.Message {
   563  	mi := &file_proto_config_proto_msgTypes[7]
   564  	if x != nil {
   565  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   566  		if ms.LoadMessageInfo() == nil {
   567  			ms.StoreMessageInfo(mi)
   568  		}
   569  		return ms
   570  	}
   571  	return mi.MessageOf(x)
   572  }
   573  
   574  // Deprecated: Use VMDKConfig.ProtoReflect.Descriptor instead.
   575  func (*VMDKConfig) Descriptor() ([]byte, []int) {
   576  	return file_proto_config_proto_rawDescGZIP(), []int{7}
   577  }
   578  
   579  func (x *VMDKConfig) GetMaxFileSizeBytes() int64 {
   580  	if x != nil {
   581  		return x.MaxFileSizeBytes
   582  	}
   583  	return 0
   584  }
   585  
   586  type HashiCorpVaultValidatorConfig struct {
   587  	state protoimpl.MessageState `protogen:"open.v1"`
   588  	// The URL of the Vault server to connect to.
   589  	// https://developer.hashicorp.com/vault
   590  	VaultUrl      string `protobuf:"bytes,1,opt,name=vault_url,json=vaultUrl,proto3" json:"vault_url,omitempty"`
   591  	unknownFields protoimpl.UnknownFields
   592  	sizeCache     protoimpl.SizeCache
   593  }
   594  
   595  func (x *HashiCorpVaultValidatorConfig) Reset() {
   596  	*x = HashiCorpVaultValidatorConfig{}
   597  	mi := &file_proto_config_proto_msgTypes[8]
   598  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   599  	ms.StoreMessageInfo(mi)
   600  }
   601  
   602  func (x *HashiCorpVaultValidatorConfig) String() string {
   603  	return protoimpl.X.MessageStringOf(x)
   604  }
   605  
   606  func (*HashiCorpVaultValidatorConfig) ProtoMessage() {}
   607  
   608  func (x *HashiCorpVaultValidatorConfig) ProtoReflect() protoreflect.Message {
   609  	mi := &file_proto_config_proto_msgTypes[8]
   610  	if x != nil {
   611  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   612  		if ms.LoadMessageInfo() == nil {
   613  			ms.StoreMessageInfo(mi)
   614  		}
   615  		return ms
   616  	}
   617  	return mi.MessageOf(x)
   618  }
   619  
   620  // Deprecated: Use HashiCorpVaultValidatorConfig.ProtoReflect.Descriptor instead.
   621  func (*HashiCorpVaultValidatorConfig) Descriptor() ([]byte, []int) {
   622  	return file_proto_config_proto_rawDescGZIP(), []int{8}
   623  }
   624  
   625  func (x *HashiCorpVaultValidatorConfig) GetVaultUrl() string {
   626  	if x != nil {
   627  		return x.VaultUrl
   628  	}
   629  	return ""
   630  }
   631  
   632  type SDPInspectConfig struct {
   633  	state protoimpl.MessageState `protogen:"open.v1"`
   634  	// The GCP project id to use for Sensitive Data Protection InspectContent API
   635  	// calls.
   636  	ProjectId     string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
   637  	unknownFields protoimpl.UnknownFields
   638  	sizeCache     protoimpl.SizeCache
   639  }
   640  
   641  func (x *SDPInspectConfig) Reset() {
   642  	*x = SDPInspectConfig{}
   643  	mi := &file_proto_config_proto_msgTypes[9]
   644  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   645  	ms.StoreMessageInfo(mi)
   646  }
   647  
   648  func (x *SDPInspectConfig) String() string {
   649  	return protoimpl.X.MessageStringOf(x)
   650  }
   651  
   652  func (*SDPInspectConfig) ProtoMessage() {}
   653  
   654  func (x *SDPInspectConfig) ProtoReflect() protoreflect.Message {
   655  	mi := &file_proto_config_proto_msgTypes[9]
   656  	if x != nil {
   657  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   658  		if ms.LoadMessageInfo() == nil {
   659  			ms.StoreMessageInfo(mi)
   660  		}
   661  		return ms
   662  	}
   663  	return mi.MessageOf(x)
   664  }
   665  
   666  // Deprecated: Use SDPInspectConfig.ProtoReflect.Descriptor instead.
   667  func (*SDPInspectConfig) Descriptor() ([]byte, []int) {
   668  	return file_proto_config_proto_rawDescGZIP(), []int{9}
   669  }
   670  
   671  func (x *SDPInspectConfig) GetProjectId() string {
   672  	if x != nil {
   673  		return x.ProjectId
   674  	}
   675  	return ""
   676  }
   677  
   678  type POMXMLNetConfig struct {
   679  	state protoimpl.MessageState `protogen:"open.v1"`
   680  	// The URL of the upstream Maven registry.
   681  	UpstreamRegistry string `protobuf:"bytes,1,opt,name=upstream_registry,json=upstreamRegistry,proto3" json:"upstream_registry,omitempty"`
   682  	unknownFields    protoimpl.UnknownFields
   683  	sizeCache        protoimpl.SizeCache
   684  }
   685  
   686  func (x *POMXMLNetConfig) Reset() {
   687  	*x = POMXMLNetConfig{}
   688  	mi := &file_proto_config_proto_msgTypes[10]
   689  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   690  	ms.StoreMessageInfo(mi)
   691  }
   692  
   693  func (x *POMXMLNetConfig) String() string {
   694  	return protoimpl.X.MessageStringOf(x)
   695  }
   696  
   697  func (*POMXMLNetConfig) ProtoMessage() {}
   698  
   699  func (x *POMXMLNetConfig) ProtoReflect() protoreflect.Message {
   700  	mi := &file_proto_config_proto_msgTypes[10]
   701  	if x != nil {
   702  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   703  		if ms.LoadMessageInfo() == nil {
   704  			ms.StoreMessageInfo(mi)
   705  		}
   706  		return ms
   707  	}
   708  	return mi.MessageOf(x)
   709  }
   710  
   711  // Deprecated: Use POMXMLNetConfig.ProtoReflect.Descriptor instead.
   712  func (*POMXMLNetConfig) Descriptor() ([]byte, []int) {
   713  	return file_proto_config_proto_rawDescGZIP(), []int{10}
   714  }
   715  
   716  func (x *POMXMLNetConfig) GetUpstreamRegistry() string {
   717  	if x != nil {
   718  		return x.UpstreamRegistry
   719  	}
   720  	return ""
   721  }
   722  
   723  var File_proto_config_proto protoreflect.FileDescriptor
   724  
   725  const file_proto_config_proto_rawDesc = "" +
   726  	"\n" +
   727  	"\x12proto/config.proto\x12\ascalibr\"\xdc\x01\n" +
   728  	"\fPluginConfig\x12-\n" +
   729  	"\x13max_file_size_bytes\x18\x01 \x01(\x03R\x10maxFileSizeBytes\x12%\n" +
   730  	"\x0elocal_registry\x18\x03 \x01(\tR\rlocalRegistry\x12.\n" +
   731  	"\x13disable_google_auth\x18\x04 \x01(\bR\x11disableGoogleAuth\x12F\n" +
   732  	"\x0fplugin_specific\x18\x02 \x03(\v2\x1d.scalibr.PluginSpecificConfigR\x0epluginSpecific\"\xa7\x04\n" +
   733  	"\x14PluginSpecificConfig\x126\n" +
   734  	"\tgo_binary\x18\x01 \x01(\v2\x17.scalibr.GoBinaryConfigH\x00R\bgoBinary\x12>\n" +
   735  	"\vgovulncheck\x18\x02 \x01(\v2\x1a.scalibr.GovulncheckConfigH\x00R\vgovulncheck\x122\n" +
   736  	"\aarchive\x18\x03 \x01(\v2\x16.scalibr.ArchiveConfigH\x00R\aarchive\x12&\n" +
   737  	"\x03ova\x18\x04 \x01(\v2\x12.scalibr.OVAConfigH\x00R\x03ova\x12&\n" +
   738  	"\x03vdi\x18\x05 \x01(\v2\x12.scalibr.VDIConfigH\x00R\x03vdi\x12)\n" +
   739  	"\x04vmdk\x18\x06 \x01(\v2\x13.scalibr.VMDKConfigH\x00R\x04vmdk\x12d\n" +
   740  	"\x19hashicorp_vault_validator\x18\a \x01(\v2&.scalibr.HashiCorpVaultValidatorConfigH\x00R\x17hashicorpVaultValidator\x12<\n" +
   741  	"\vsdp_inspect\x18\b \x01(\v2\x19.scalibr.SDPInspectConfigH\x00R\n" +
   742  	"sdpInspect\x12:\n" +
   743  	"\vpom_xml_net\x18\t \x01(\v2\x18.scalibr.POMXMLNetConfigH\x00R\tpomXmlNetB\b\n" +
   744  	"\x06config\"B\n" +
   745  	"\x0eGoBinaryConfig\x120\n" +
   746  	"\x14version_from_content\x18\x01 \x01(\bR\x12versionFromContent\"D\n" +
   747  	"\x11GovulncheckConfig\x12/\n" +
   748  	"\x14offline_vuln_db_path\x18\x01 \x01(\tR\x11offlineVulnDbPath\">\n" +
   749  	"\rArchiveConfig\x12-\n" +
   750  	"\x13max_file_size_bytes\x18\x01 \x01(\x03R\x10maxFileSizeBytes\":\n" +
   751  	"\tOVAConfig\x12-\n" +
   752  	"\x13max_file_size_bytes\x18\x01 \x01(\x03R\x10maxFileSizeBytes\":\n" +
   753  	"\tVDIConfig\x12-\n" +
   754  	"\x13max_file_size_bytes\x18\x01 \x01(\x03R\x10maxFileSizeBytes\";\n" +
   755  	"\n" +
   756  	"VMDKConfig\x12-\n" +
   757  	"\x13max_file_size_bytes\x18\x01 \x01(\x03R\x10maxFileSizeBytes\"<\n" +
   758  	"\x1dHashiCorpVaultValidatorConfig\x12\x1b\n" +
   759  	"\tvault_url\x18\x01 \x01(\tR\bvaultUrl\"1\n" +
   760  	"\x10SDPInspectConfig\x12\x1d\n" +
   761  	"\n" +
   762  	"project_id\x18\x01 \x01(\tR\tprojectId\">\n" +
   763  	"\x0fPOMXMLNetConfig\x12+\n" +
   764  	"\x11upstream_registry\x18\x01 \x01(\tR\x10upstreamRegistryBFB\x06ConfigP\x01Z:github.com/google/osv-scalibr/binary/proto/config_go_protob\x06proto3"
   765  
   766  var (
   767  	file_proto_config_proto_rawDescOnce sync.Once
   768  	file_proto_config_proto_rawDescData []byte
   769  )
   770  
   771  func file_proto_config_proto_rawDescGZIP() []byte {
   772  	file_proto_config_proto_rawDescOnce.Do(func() {
   773  		file_proto_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_config_proto_rawDesc), len(file_proto_config_proto_rawDesc)))
   774  	})
   775  	return file_proto_config_proto_rawDescData
   776  }
   777  
   778  var file_proto_config_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
   779  var file_proto_config_proto_goTypes = []any{
   780  	(*PluginConfig)(nil),                  // 0: scalibr.PluginConfig
   781  	(*PluginSpecificConfig)(nil),          // 1: scalibr.PluginSpecificConfig
   782  	(*GoBinaryConfig)(nil),                // 2: scalibr.GoBinaryConfig
   783  	(*GovulncheckConfig)(nil),             // 3: scalibr.GovulncheckConfig
   784  	(*ArchiveConfig)(nil),                 // 4: scalibr.ArchiveConfig
   785  	(*OVAConfig)(nil),                     // 5: scalibr.OVAConfig
   786  	(*VDIConfig)(nil),                     // 6: scalibr.VDIConfig
   787  	(*VMDKConfig)(nil),                    // 7: scalibr.VMDKConfig
   788  	(*HashiCorpVaultValidatorConfig)(nil), // 8: scalibr.HashiCorpVaultValidatorConfig
   789  	(*SDPInspectConfig)(nil),              // 9: scalibr.SDPInspectConfig
   790  	(*POMXMLNetConfig)(nil),               // 10: scalibr.POMXMLNetConfig
   791  }
   792  var file_proto_config_proto_depIdxs = []int32{
   793  	1,  // 0: scalibr.PluginConfig.plugin_specific:type_name -> scalibr.PluginSpecificConfig
   794  	2,  // 1: scalibr.PluginSpecificConfig.go_binary:type_name -> scalibr.GoBinaryConfig
   795  	3,  // 2: scalibr.PluginSpecificConfig.govulncheck:type_name -> scalibr.GovulncheckConfig
   796  	4,  // 3: scalibr.PluginSpecificConfig.archive:type_name -> scalibr.ArchiveConfig
   797  	5,  // 4: scalibr.PluginSpecificConfig.ova:type_name -> scalibr.OVAConfig
   798  	6,  // 5: scalibr.PluginSpecificConfig.vdi:type_name -> scalibr.VDIConfig
   799  	7,  // 6: scalibr.PluginSpecificConfig.vmdk:type_name -> scalibr.VMDKConfig
   800  	8,  // 7: scalibr.PluginSpecificConfig.hashicorp_vault_validator:type_name -> scalibr.HashiCorpVaultValidatorConfig
   801  	9,  // 8: scalibr.PluginSpecificConfig.sdp_inspect:type_name -> scalibr.SDPInspectConfig
   802  	10, // 9: scalibr.PluginSpecificConfig.pom_xml_net:type_name -> scalibr.POMXMLNetConfig
   803  	10, // [10:10] is the sub-list for method output_type
   804  	10, // [10:10] is the sub-list for method input_type
   805  	10, // [10:10] is the sub-list for extension type_name
   806  	10, // [10:10] is the sub-list for extension extendee
   807  	0,  // [0:10] is the sub-list for field type_name
   808  }
   809  
   810  func init() { file_proto_config_proto_init() }
   811  func file_proto_config_proto_init() {
   812  	if File_proto_config_proto != nil {
   813  		return
   814  	}
   815  	file_proto_config_proto_msgTypes[1].OneofWrappers = []any{
   816  		(*PluginSpecificConfig_GoBinary)(nil),
   817  		(*PluginSpecificConfig_Govulncheck)(nil),
   818  		(*PluginSpecificConfig_Archive)(nil),
   819  		(*PluginSpecificConfig_Ova)(nil),
   820  		(*PluginSpecificConfig_Vdi)(nil),
   821  		(*PluginSpecificConfig_Vmdk)(nil),
   822  		(*PluginSpecificConfig_HashicorpVaultValidator)(nil),
   823  		(*PluginSpecificConfig_SdpInspect)(nil),
   824  		(*PluginSpecificConfig_PomXmlNet)(nil),
   825  	}
   826  	type x struct{}
   827  	out := protoimpl.TypeBuilder{
   828  		File: protoimpl.DescBuilder{
   829  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   830  			RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_config_proto_rawDesc), len(file_proto_config_proto_rawDesc)),
   831  			NumEnums:      0,
   832  			NumMessages:   11,
   833  			NumExtensions: 0,
   834  			NumServices:   0,
   835  		},
   836  		GoTypes:           file_proto_config_proto_goTypes,
   837  		DependencyIndexes: file_proto_config_proto_depIdxs,
   838  		MessageInfos:      file_proto_config_proto_msgTypes,
   839  	}.Build()
   840  	File_proto_config_proto = out.File
   841  	file_proto_config_proto_goTypes = nil
   842  	file_proto_config_proto_depIdxs = nil
   843  }