vendor update for CSI 0.3.0

This commit is contained in:
gman
2018-07-18 16:47:22 +02:00
parent 6f484f92fc
commit 8ea659f0d5
6810 changed files with 438061 additions and 193861 deletions

View File

@ -1,63 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1alpha1/bill_of_materials.proto
/*
Package containeranalysis is a generated protocol buffer package.
It is generated from these files:
google/devtools/containeranalysis/v1alpha1/bill_of_materials.proto
google/devtools/containeranalysis/v1alpha1/containeranalysis.proto
google/devtools/containeranalysis/v1alpha1/image_basis.proto
google/devtools/containeranalysis/v1alpha1/package_vulnerability.proto
google/devtools/containeranalysis/v1alpha1/provenance.proto
google/devtools/containeranalysis/v1alpha1/source_context.proto
It has these top-level messages:
PackageManager
Occurrence
Note
Deployable
Discovery
BuildType
BuildSignature
BuildDetails
GetOccurrenceRequest
ListOccurrencesRequest
ListOccurrencesResponse
DeleteOccurrenceRequest
CreateOccurrenceRequest
UpdateOccurrenceRequest
GetNoteRequest
GetOccurrenceNoteRequest
ListNotesRequest
ListNotesResponse
DeleteNoteRequest
CreateNoteRequest
UpdateNoteRequest
ListNoteOccurrencesRequest
ListNoteOccurrencesResponse
OperationMetadata
GetVulnzOccurrencesSummaryRequest
GetVulnzOccurrencesSummaryResponse
DockerImage
VulnerabilityType
BuildProvenance
Source
FileHashes
Hash
StorageSource
RepoSource
Command
Artifact
SourceContext
AliasContext
CloudRepoSourceContext
GerritSourceContext
GitSourceContext
RepoId
ProjectRepoId
*/
package containeranalysis
package containeranalysis // import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1alpha1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
@ -94,50 +38,94 @@ var PackageManager_Architecture_name = map[int32]string{
}
var PackageManager_Architecture_value = map[string]int32{
"ARCHITECTURE_UNSPECIFIED": 0,
"X86": 1,
"X64": 2,
"X86": 1,
"X64": 2,
}
func (x PackageManager_Architecture) String() string {
return proto.EnumName(PackageManager_Architecture_name, int32(x))
}
func (PackageManager_Architecture) EnumDescriptor() ([]byte, []int) {
return fileDescriptor0, []int{0, 0}
return fileDescriptor_bill_of_materials_27661a0342dc8703, []int{0, 0}
}
// PackageManager provides metadata about available / installed packages.
type PackageManager struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PackageManager) Reset() { *m = PackageManager{} }
func (m *PackageManager) String() string { return proto.CompactTextString(m) }
func (*PackageManager) ProtoMessage() {}
func (*PackageManager) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *PackageManager) Reset() { *m = PackageManager{} }
func (m *PackageManager) String() string { return proto.CompactTextString(m) }
func (*PackageManager) ProtoMessage() {}
func (*PackageManager) Descriptor() ([]byte, []int) {
return fileDescriptor_bill_of_materials_27661a0342dc8703, []int{0}
}
func (m *PackageManager) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PackageManager.Unmarshal(m, b)
}
func (m *PackageManager) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PackageManager.Marshal(b, m, deterministic)
}
func (dst *PackageManager) XXX_Merge(src proto.Message) {
xxx_messageInfo_PackageManager.Merge(dst, src)
}
func (m *PackageManager) XXX_Size() int {
return xxx_messageInfo_PackageManager.Size(m)
}
func (m *PackageManager) XXX_DiscardUnknown() {
xxx_messageInfo_PackageManager.DiscardUnknown(m)
}
var xxx_messageInfo_PackageManager proto.InternalMessageInfo
// This represents a particular channel of distribution for a given package.
// e.g. Debian's jessie-backports dpkg mirror
type PackageManager_Distribution struct {
// The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
// denoting the package manager version distributing a package.
CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri" json:"cpe_uri,omitempty"`
CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri,proto3" json:"cpe_uri,omitempty"`
// The CPU architecture for which packages in this distribution
// channel were built
Architecture PackageManager_Architecture `protobuf:"varint,2,opt,name=architecture,enum=google.devtools.containeranalysis.v1alpha1.PackageManager_Architecture" json:"architecture,omitempty"`
Architecture PackageManager_Architecture `protobuf:"varint,2,opt,name=architecture,proto3,enum=google.devtools.containeranalysis.v1alpha1.PackageManager_Architecture" json:"architecture,omitempty"`
// The latest available version of this package in
// this distribution channel.
LatestVersion *VulnerabilityType_Version `protobuf:"bytes,3,opt,name=latest_version,json=latestVersion" json:"latest_version,omitempty"`
LatestVersion *VulnerabilityType_Version `protobuf:"bytes,3,opt,name=latest_version,json=latestVersion,proto3" json:"latest_version,omitempty"`
// A freeform string denoting the maintainer of this package.
Maintainer string `protobuf:"bytes,4,opt,name=maintainer" json:"maintainer,omitempty"`
Maintainer string `protobuf:"bytes,4,opt,name=maintainer,proto3" json:"maintainer,omitempty"`
// The distribution channel-specific homepage for this package.
Url string `protobuf:"bytes,6,opt,name=url" json:"url,omitempty"`
Url string `protobuf:"bytes,6,opt,name=url,proto3" json:"url,omitempty"`
// The distribution channel-specific description of this package.
Description string `protobuf:"bytes,7,opt,name=description" json:"description,omitempty"`
Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PackageManager_Distribution) Reset() { *m = PackageManager_Distribution{} }
func (m *PackageManager_Distribution) String() string { return proto.CompactTextString(m) }
func (*PackageManager_Distribution) ProtoMessage() {}
func (*PackageManager_Distribution) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
func (m *PackageManager_Distribution) Reset() { *m = PackageManager_Distribution{} }
func (m *PackageManager_Distribution) String() string { return proto.CompactTextString(m) }
func (*PackageManager_Distribution) ProtoMessage() {}
func (*PackageManager_Distribution) Descriptor() ([]byte, []int) {
return fileDescriptor_bill_of_materials_27661a0342dc8703, []int{0, 0}
}
func (m *PackageManager_Distribution) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PackageManager_Distribution.Unmarshal(m, b)
}
func (m *PackageManager_Distribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PackageManager_Distribution.Marshal(b, m, deterministic)
}
func (dst *PackageManager_Distribution) XXX_Merge(src proto.Message) {
xxx_messageInfo_PackageManager_Distribution.Merge(dst, src)
}
func (m *PackageManager_Distribution) XXX_Size() int {
return xxx_messageInfo_PackageManager_Distribution.Size(m)
}
func (m *PackageManager_Distribution) XXX_DiscardUnknown() {
xxx_messageInfo_PackageManager_Distribution.DiscardUnknown(m)
}
var xxx_messageInfo_PackageManager_Distribution proto.InternalMessageInfo
func (m *PackageManager_Distribution) GetCpeUri() string {
if m != nil {
@ -187,17 +175,39 @@ func (m *PackageManager_Distribution) GetDescription() string {
type PackageManager_Location struct {
// The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
// denoting the package manager version distributing a package.
CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri" json:"cpe_uri,omitempty"`
CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri,proto3" json:"cpe_uri,omitempty"`
// The version installed at this location.
Version *VulnerabilityType_Version `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
Version *VulnerabilityType_Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// The path from which we gathered that this package/version is installed.
Path string `protobuf:"bytes,3,opt,name=path" json:"path,omitempty"`
Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PackageManager_Location) Reset() { *m = PackageManager_Location{} }
func (m *PackageManager_Location) String() string { return proto.CompactTextString(m) }
func (*PackageManager_Location) ProtoMessage() {}
func (*PackageManager_Location) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 1} }
func (m *PackageManager_Location) Reset() { *m = PackageManager_Location{} }
func (m *PackageManager_Location) String() string { return proto.CompactTextString(m) }
func (*PackageManager_Location) ProtoMessage() {}
func (*PackageManager_Location) Descriptor() ([]byte, []int) {
return fileDescriptor_bill_of_materials_27661a0342dc8703, []int{0, 1}
}
func (m *PackageManager_Location) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PackageManager_Location.Unmarshal(m, b)
}
func (m *PackageManager_Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PackageManager_Location.Marshal(b, m, deterministic)
}
func (dst *PackageManager_Location) XXX_Merge(src proto.Message) {
xxx_messageInfo_PackageManager_Location.Merge(dst, src)
}
func (m *PackageManager_Location) XXX_Size() int {
return xxx_messageInfo_PackageManager_Location.Size(m)
}
func (m *PackageManager_Location) XXX_DiscardUnknown() {
xxx_messageInfo_PackageManager_Location.DiscardUnknown(m)
}
var xxx_messageInfo_PackageManager_Location proto.InternalMessageInfo
func (m *PackageManager_Location) GetCpeUri() string {
if m != nil {
@ -225,15 +235,37 @@ func (m *PackageManager_Location) GetPath() string {
// e.g. glibc (aka libc6) is distributed by many, at various versions.
type PackageManager_Package struct {
// The name of the package.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The various channels by which a package is distributed.
Distribution []*PackageManager_Distribution `protobuf:"bytes,10,rep,name=distribution" json:"distribution,omitempty"`
Distribution []*PackageManager_Distribution `protobuf:"bytes,10,rep,name=distribution,proto3" json:"distribution,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PackageManager_Package) Reset() { *m = PackageManager_Package{} }
func (m *PackageManager_Package) String() string { return proto.CompactTextString(m) }
func (*PackageManager_Package) ProtoMessage() {}
func (*PackageManager_Package) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 2} }
func (m *PackageManager_Package) Reset() { *m = PackageManager_Package{} }
func (m *PackageManager_Package) String() string { return proto.CompactTextString(m) }
func (*PackageManager_Package) ProtoMessage() {}
func (*PackageManager_Package) Descriptor() ([]byte, []int) {
return fileDescriptor_bill_of_materials_27661a0342dc8703, []int{0, 2}
}
func (m *PackageManager_Package) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PackageManager_Package.Unmarshal(m, b)
}
func (m *PackageManager_Package) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PackageManager_Package.Marshal(b, m, deterministic)
}
func (dst *PackageManager_Package) XXX_Merge(src proto.Message) {
xxx_messageInfo_PackageManager_Package.Merge(dst, src)
}
func (m *PackageManager_Package) XXX_Size() int {
return xxx_messageInfo_PackageManager_Package.Size(m)
}
func (m *PackageManager_Package) XXX_DiscardUnknown() {
xxx_messageInfo_PackageManager_Package.DiscardUnknown(m)
}
var xxx_messageInfo_PackageManager_Package proto.InternalMessageInfo
func (m *PackageManager_Package) GetName() string {
if m != nil {
@ -253,16 +285,38 @@ func (m *PackageManager_Package) GetDistribution() []*PackageManager_Distributio
// a system.
type PackageManager_Installation struct {
// Output only. The name of the installed package.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// All of the places within the filesystem versions of this package
// have been found.
Location []*PackageManager_Location `protobuf:"bytes,2,rep,name=location" json:"location,omitempty"`
Location []*PackageManager_Location `protobuf:"bytes,2,rep,name=location,proto3" json:"location,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PackageManager_Installation) Reset() { *m = PackageManager_Installation{} }
func (m *PackageManager_Installation) String() string { return proto.CompactTextString(m) }
func (*PackageManager_Installation) ProtoMessage() {}
func (*PackageManager_Installation) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 3} }
func (m *PackageManager_Installation) Reset() { *m = PackageManager_Installation{} }
func (m *PackageManager_Installation) String() string { return proto.CompactTextString(m) }
func (*PackageManager_Installation) ProtoMessage() {}
func (*PackageManager_Installation) Descriptor() ([]byte, []int) {
return fileDescriptor_bill_of_materials_27661a0342dc8703, []int{0, 3}
}
func (m *PackageManager_Installation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PackageManager_Installation.Unmarshal(m, b)
}
func (m *PackageManager_Installation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PackageManager_Installation.Marshal(b, m, deterministic)
}
func (dst *PackageManager_Installation) XXX_Merge(src proto.Message) {
xxx_messageInfo_PackageManager_Installation.Merge(dst, src)
}
func (m *PackageManager_Installation) XXX_Size() int {
return xxx_messageInfo_PackageManager_Installation.Size(m)
}
func (m *PackageManager_Installation) XXX_DiscardUnknown() {
xxx_messageInfo_PackageManager_Installation.DiscardUnknown(m)
}
var xxx_messageInfo_PackageManager_Installation proto.InternalMessageInfo
func (m *PackageManager_Installation) GetName() string {
if m != nil {
@ -288,10 +342,10 @@ func init() {
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/bill_of_materials.proto", fileDescriptor0)
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/bill_of_materials.proto", fileDescriptor_bill_of_materials_27661a0342dc8703)
}
var fileDescriptor0 = []byte{
var fileDescriptor_bill_of_materials_27661a0342dc8703 = []byte{
// 522 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xd1, 0x8a, 0xd3, 0x4e,
0x14, 0xc6, 0xff, 0x49, 0x97, 0x76, 0xf7, 0xb4, 0xff, 0x52, 0xe6, 0xc6, 0x10, 0x16, 0x29, 0x0b,

View File

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1alpha1/image_basis.proto
package containeranalysis
package containeranalysis // import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1alpha1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
@ -13,6 +13,12 @@ var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Instructions from dockerfile
type DockerImage_Layer_Directive int32
@ -100,31 +106,75 @@ func (x DockerImage_Layer_Directive) String() string {
return proto.EnumName(DockerImage_Layer_Directive_name, int32(x))
}
func (DockerImage_Layer_Directive) EnumDescriptor() ([]byte, []int) {
return fileDescriptor2, []int{0, 0, 0}
return fileDescriptor_image_basis_f0f54fd9664d71be, []int{0, 0, 0}
}
// DockerImage holds types defining base image notes
// and derived image occurrences.
type DockerImage struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DockerImage) Reset() { *m = DockerImage{} }
func (m *DockerImage) String() string { return proto.CompactTextString(m) }
func (*DockerImage) ProtoMessage() {}
func (*DockerImage) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
func (m *DockerImage) Reset() { *m = DockerImage{} }
func (m *DockerImage) String() string { return proto.CompactTextString(m) }
func (*DockerImage) ProtoMessage() {}
func (*DockerImage) Descriptor() ([]byte, []int) {
return fileDescriptor_image_basis_f0f54fd9664d71be, []int{0}
}
func (m *DockerImage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DockerImage.Unmarshal(m, b)
}
func (m *DockerImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DockerImage.Marshal(b, m, deterministic)
}
func (dst *DockerImage) XXX_Merge(src proto.Message) {
xxx_messageInfo_DockerImage.Merge(dst, src)
}
func (m *DockerImage) XXX_Size() int {
return xxx_messageInfo_DockerImage.Size(m)
}
func (m *DockerImage) XXX_DiscardUnknown() {
xxx_messageInfo_DockerImage.DiscardUnknown(m)
}
var xxx_messageInfo_DockerImage proto.InternalMessageInfo
// Layer holds metadata specific to a layer of a Docker image.
type DockerImage_Layer struct {
// The recovered Dockerfile directive used to construct this layer.
Directive DockerImage_Layer_Directive `protobuf:"varint,1,opt,name=directive,enum=google.devtools.containeranalysis.v1alpha1.DockerImage_Layer_Directive" json:"directive,omitempty"`
Directive DockerImage_Layer_Directive `protobuf:"varint,1,opt,name=directive,proto3,enum=google.devtools.containeranalysis.v1alpha1.DockerImage_Layer_Directive" json:"directive,omitempty"`
// The recovered arguments to the Dockerfile directive.
Arguments string `protobuf:"bytes,2,opt,name=arguments" json:"arguments,omitempty"`
Arguments string `protobuf:"bytes,2,opt,name=arguments,proto3" json:"arguments,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DockerImage_Layer) Reset() { *m = DockerImage_Layer{} }
func (m *DockerImage_Layer) String() string { return proto.CompactTextString(m) }
func (*DockerImage_Layer) ProtoMessage() {}
func (*DockerImage_Layer) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 0} }
func (m *DockerImage_Layer) Reset() { *m = DockerImage_Layer{} }
func (m *DockerImage_Layer) String() string { return proto.CompactTextString(m) }
func (*DockerImage_Layer) ProtoMessage() {}
func (*DockerImage_Layer) Descriptor() ([]byte, []int) {
return fileDescriptor_image_basis_f0f54fd9664d71be, []int{0, 0}
}
func (m *DockerImage_Layer) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DockerImage_Layer.Unmarshal(m, b)
}
func (m *DockerImage_Layer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DockerImage_Layer.Marshal(b, m, deterministic)
}
func (dst *DockerImage_Layer) XXX_Merge(src proto.Message) {
xxx_messageInfo_DockerImage_Layer.Merge(dst, src)
}
func (m *DockerImage_Layer) XXX_Size() int {
return xxx_messageInfo_DockerImage_Layer.Size(m)
}
func (m *DockerImage_Layer) XXX_DiscardUnknown() {
xxx_messageInfo_DockerImage_Layer.DiscardUnknown(m)
}
var xxx_messageInfo_DockerImage_Layer proto.InternalMessageInfo
func (m *DockerImage_Layer) GetDirective() DockerImage_Layer_Directive {
if m != nil {
@ -145,21 +195,43 @@ type DockerImage_Fingerprint struct {
// The layer-id of the final layer in the Docker image's v1
// representation.
// This field can be used as a filter in list requests.
V1Name string `protobuf:"bytes,1,opt,name=v1_name,json=v1Name" json:"v1_name,omitempty"`
V1Name string `protobuf:"bytes,1,opt,name=v1_name,json=v1Name,proto3" json:"v1_name,omitempty"`
// The ordered list of v2 blobs that represent a given image.
V2Blob []string `protobuf:"bytes,2,rep,name=v2_blob,json=v2Blob" json:"v2_blob,omitempty"`
V2Blob []string `protobuf:"bytes,2,rep,name=v2_blob,json=v2Blob,proto3" json:"v2_blob,omitempty"`
// Output only. The name of the image's v2 blobs computed via:
// [bottom] := v2_blob[bottom]
// [N] := sha256(v2_blob[N] + " " + v2_name[N+1])
// Only the name of the final blob is kept.
// This field can be used as a filter in list requests.
V2Name string `protobuf:"bytes,3,opt,name=v2_name,json=v2Name" json:"v2_name,omitempty"`
V2Name string `protobuf:"bytes,3,opt,name=v2_name,json=v2Name,proto3" json:"v2_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DockerImage_Fingerprint) Reset() { *m = DockerImage_Fingerprint{} }
func (m *DockerImage_Fingerprint) String() string { return proto.CompactTextString(m) }
func (*DockerImage_Fingerprint) ProtoMessage() {}
func (*DockerImage_Fingerprint) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 1} }
func (m *DockerImage_Fingerprint) Reset() { *m = DockerImage_Fingerprint{} }
func (m *DockerImage_Fingerprint) String() string { return proto.CompactTextString(m) }
func (*DockerImage_Fingerprint) ProtoMessage() {}
func (*DockerImage_Fingerprint) Descriptor() ([]byte, []int) {
return fileDescriptor_image_basis_f0f54fd9664d71be, []int{0, 1}
}
func (m *DockerImage_Fingerprint) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DockerImage_Fingerprint.Unmarshal(m, b)
}
func (m *DockerImage_Fingerprint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DockerImage_Fingerprint.Marshal(b, m, deterministic)
}
func (dst *DockerImage_Fingerprint) XXX_Merge(src proto.Message) {
xxx_messageInfo_DockerImage_Fingerprint.Merge(dst, src)
}
func (m *DockerImage_Fingerprint) XXX_Size() int {
return xxx_messageInfo_DockerImage_Fingerprint.Size(m)
}
func (m *DockerImage_Fingerprint) XXX_DiscardUnknown() {
xxx_messageInfo_DockerImage_Fingerprint.DiscardUnknown(m)
}
var xxx_messageInfo_DockerImage_Fingerprint proto.InternalMessageInfo
func (m *DockerImage_Fingerprint) GetV1Name() string {
if m != nil {
@ -190,15 +262,37 @@ func (m *DockerImage_Fingerprint) GetV2Name() string {
type DockerImage_Basis struct {
// The resource_url for the resource representing the basis of
// associated occurrence images.
ResourceUrl string `protobuf:"bytes,1,opt,name=resource_url,json=resourceUrl" json:"resource_url,omitempty"`
// The fingerprint of the base image
Fingerprint *DockerImage_Fingerprint `protobuf:"bytes,2,opt,name=fingerprint" json:"fingerprint,omitempty"`
ResourceUrl string `protobuf:"bytes,1,opt,name=resource_url,json=resourceUrl,proto3" json:"resource_url,omitempty"`
// The fingerprint of the base image.
Fingerprint *DockerImage_Fingerprint `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DockerImage_Basis) Reset() { *m = DockerImage_Basis{} }
func (m *DockerImage_Basis) String() string { return proto.CompactTextString(m) }
func (*DockerImage_Basis) ProtoMessage() {}
func (*DockerImage_Basis) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 2} }
func (m *DockerImage_Basis) Reset() { *m = DockerImage_Basis{} }
func (m *DockerImage_Basis) String() string { return proto.CompactTextString(m) }
func (*DockerImage_Basis) ProtoMessage() {}
func (*DockerImage_Basis) Descriptor() ([]byte, []int) {
return fileDescriptor_image_basis_f0f54fd9664d71be, []int{0, 2}
}
func (m *DockerImage_Basis) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DockerImage_Basis.Unmarshal(m, b)
}
func (m *DockerImage_Basis) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DockerImage_Basis.Marshal(b, m, deterministic)
}
func (dst *DockerImage_Basis) XXX_Merge(src proto.Message) {
xxx_messageInfo_DockerImage_Basis.Merge(dst, src)
}
func (m *DockerImage_Basis) XXX_Size() int {
return xxx_messageInfo_DockerImage_Basis.Size(m)
}
func (m *DockerImage_Basis) XXX_DiscardUnknown() {
xxx_messageInfo_DockerImage_Basis.DiscardUnknown(m)
}
var xxx_messageInfo_DockerImage_Basis proto.InternalMessageInfo
func (m *DockerImage_Basis) GetResourceUrl() string {
if m != nil {
@ -218,25 +312,46 @@ func (m *DockerImage_Basis) GetFingerprint() *DockerImage_Fingerprint {
// DockerImage relationship. This image would be produced from a Dockerfile
// with FROM <DockerImage.Basis in attached Note>.
type DockerImage_Derived struct {
// The fingerprint of the derived image
Fingerprint *DockerImage_Fingerprint `protobuf:"bytes,1,opt,name=fingerprint" json:"fingerprint,omitempty"`
// Output only. The number of layers by which this image differs from
// the associated image basis.
Distance uint32 `protobuf:"varint,2,opt,name=distance" json:"distance,omitempty"`
// This contains layer-specific metadata, if populated it
// has length "distance" and is ordered with [distance] being the
// layer immediately following the base image and [1]
// being the final layer.
LayerInfo []*DockerImage_Layer `protobuf:"bytes,3,rep,name=layer_info,json=layerInfo" json:"layer_info,omitempty"`
// Output only.This contains the base image url for the derived image
// Occurrence
BaseResourceUrl string `protobuf:"bytes,4,opt,name=base_resource_url,json=baseResourceUrl" json:"base_resource_url,omitempty"`
// The fingerprint of the derived image.
Fingerprint *DockerImage_Fingerprint `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
// Output only. The number of layers by which this image differs from the
// associated image basis.
Distance uint32 `protobuf:"varint,2,opt,name=distance,proto3" json:"distance,omitempty"`
// This contains layer-specific metadata, if populated it has length
// "distance" and is ordered with [distance] being the layer immediately
// following the base image and [1] being the final layer.
LayerInfo []*DockerImage_Layer `protobuf:"bytes,3,rep,name=layer_info,json=layerInfo,proto3" json:"layer_info,omitempty"`
// Output only. This contains the base image URL for the derived image
// occurrence.
BaseResourceUrl string `protobuf:"bytes,4,opt,name=base_resource_url,json=baseResourceUrl,proto3" json:"base_resource_url,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DockerImage_Derived) Reset() { *m = DockerImage_Derived{} }
func (m *DockerImage_Derived) String() string { return proto.CompactTextString(m) }
func (*DockerImage_Derived) ProtoMessage() {}
func (*DockerImage_Derived) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 3} }
func (m *DockerImage_Derived) Reset() { *m = DockerImage_Derived{} }
func (m *DockerImage_Derived) String() string { return proto.CompactTextString(m) }
func (*DockerImage_Derived) ProtoMessage() {}
func (*DockerImage_Derived) Descriptor() ([]byte, []int) {
return fileDescriptor_image_basis_f0f54fd9664d71be, []int{0, 3}
}
func (m *DockerImage_Derived) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DockerImage_Derived.Unmarshal(m, b)
}
func (m *DockerImage_Derived) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DockerImage_Derived.Marshal(b, m, deterministic)
}
func (dst *DockerImage_Derived) XXX_Merge(src proto.Message) {
xxx_messageInfo_DockerImage_Derived.Merge(dst, src)
}
func (m *DockerImage_Derived) XXX_Size() int {
return xxx_messageInfo_DockerImage_Derived.Size(m)
}
func (m *DockerImage_Derived) XXX_DiscardUnknown() {
xxx_messageInfo_DockerImage_Derived.DiscardUnknown(m)
}
var xxx_messageInfo_DockerImage_Derived proto.InternalMessageInfo
func (m *DockerImage_Derived) GetFingerprint() *DockerImage_Fingerprint {
if m != nil {
@ -276,10 +391,10 @@ func init() {
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/image_basis.proto", fileDescriptor2)
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/image_basis.proto", fileDescriptor_image_basis_f0f54fd9664d71be)
}
var fileDescriptor2 = []byte{
var fileDescriptor_image_basis_f0f54fd9664d71be = []byte{
// 627 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0xdf, 0x6e, 0xda, 0x30,
0x14, 0xc6, 0x17, 0x28, 0xd0, 0x9c, 0xf4, 0x8f, 0x6b, 0x69, 0x1a, 0x43, 0xbd, 0x60, 0x95, 0x26,

View File

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1alpha1/package_vulnerability.proto
package containeranalysis
package containeranalysis // import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1alpha1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
@ -13,6 +13,12 @@ var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Note provider-assigned severity/impact ranking
type VulnerabilityType_Severity int32
@ -52,7 +58,7 @@ func (x VulnerabilityType_Severity) String() string {
return proto.EnumName(VulnerabilityType_Severity_name, int32(x))
}
func (VulnerabilityType_Severity) EnumDescriptor() ([]byte, []int) {
return fileDescriptor3, []int{0, 0}
return fileDescriptor_package_vulnerability_9e58f6e1392a878c, []int{0, 0}
}
// Whether this is an ordinary package version or a
@ -85,25 +91,47 @@ func (x VulnerabilityType_Version_VersionKind) String() string {
return proto.EnumName(VulnerabilityType_Version_VersionKind_name, int32(x))
}
func (VulnerabilityType_Version_VersionKind) EnumDescriptor() ([]byte, []int) {
return fileDescriptor3, []int{0, 0, 0}
return fileDescriptor_package_vulnerability_9e58f6e1392a878c, []int{0, 0, 0}
}
// VulnerabilityType provides metadata about a security vulnerability.
type VulnerabilityType struct {
// The CVSS score for this Vulnerability.
CvssScore float32 `protobuf:"fixed32,2,opt,name=cvss_score,json=cvssScore" json:"cvss_score,omitempty"`
CvssScore float32 `protobuf:"fixed32,2,opt,name=cvss_score,json=cvssScore,proto3" json:"cvss_score,omitempty"`
// Note provider assigned impact of the vulnerability
Severity VulnerabilityType_Severity `protobuf:"varint,3,opt,name=severity,enum=google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Severity" json:"severity,omitempty"`
Severity VulnerabilityType_Severity `protobuf:"varint,3,opt,name=severity,proto3,enum=google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Severity" json:"severity,omitempty"`
// All information about the package to specifically identify this
// vulnerability. One entry per (version range and cpe_uri) the
// package vulnerability has manifested in.
Details []*VulnerabilityType_Detail `protobuf:"bytes,4,rep,name=details" json:"details,omitempty"`
Details []*VulnerabilityType_Detail `protobuf:"bytes,4,rep,name=details,proto3" json:"details,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VulnerabilityType) Reset() { *m = VulnerabilityType{} }
func (m *VulnerabilityType) String() string { return proto.CompactTextString(m) }
func (*VulnerabilityType) ProtoMessage() {}
func (*VulnerabilityType) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
func (m *VulnerabilityType) Reset() { *m = VulnerabilityType{} }
func (m *VulnerabilityType) String() string { return proto.CompactTextString(m) }
func (*VulnerabilityType) ProtoMessage() {}
func (*VulnerabilityType) Descriptor() ([]byte, []int) {
return fileDescriptor_package_vulnerability_9e58f6e1392a878c, []int{0}
}
func (m *VulnerabilityType) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VulnerabilityType.Unmarshal(m, b)
}
func (m *VulnerabilityType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VulnerabilityType.Marshal(b, m, deterministic)
}
func (dst *VulnerabilityType) XXX_Merge(src proto.Message) {
xxx_messageInfo_VulnerabilityType.Merge(dst, src)
}
func (m *VulnerabilityType) XXX_Size() int {
return xxx_messageInfo_VulnerabilityType.Size(m)
}
func (m *VulnerabilityType) XXX_DiscardUnknown() {
xxx_messageInfo_VulnerabilityType.DiscardUnknown(m)
}
var xxx_messageInfo_VulnerabilityType proto.InternalMessageInfo
func (m *VulnerabilityType) GetCvssScore() float32 {
if m != nil {
@ -133,20 +161,42 @@ func (m *VulnerabilityType) GetDetails() []*VulnerabilityType_Detail {
// http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
type VulnerabilityType_Version struct {
// Used to correct mistakes in the version numbering scheme.
Epoch int32 `protobuf:"varint,1,opt,name=epoch" json:"epoch,omitempty"`
Epoch int32 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"`
// The main part of the version name.
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// The iteration of the package build from the above version.
Revision string `protobuf:"bytes,3,opt,name=revision" json:"revision,omitempty"`
Revision string `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"`
// Distinguish between sentinel MIN/MAX versions and normal versions.
// If kind is not NORMAL, then the other fields are ignored.
Kind VulnerabilityType_Version_VersionKind `protobuf:"varint,5,opt,name=kind,enum=google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Version_VersionKind" json:"kind,omitempty"`
Kind VulnerabilityType_Version_VersionKind `protobuf:"varint,5,opt,name=kind,proto3,enum=google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Version_VersionKind" json:"kind,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VulnerabilityType_Version) Reset() { *m = VulnerabilityType_Version{} }
func (m *VulnerabilityType_Version) String() string { return proto.CompactTextString(m) }
func (*VulnerabilityType_Version) ProtoMessage() {}
func (*VulnerabilityType_Version) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 0} }
func (m *VulnerabilityType_Version) Reset() { *m = VulnerabilityType_Version{} }
func (m *VulnerabilityType_Version) String() string { return proto.CompactTextString(m) }
func (*VulnerabilityType_Version) ProtoMessage() {}
func (*VulnerabilityType_Version) Descriptor() ([]byte, []int) {
return fileDescriptor_package_vulnerability_9e58f6e1392a878c, []int{0, 0}
}
func (m *VulnerabilityType_Version) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VulnerabilityType_Version.Unmarshal(m, b)
}
func (m *VulnerabilityType_Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VulnerabilityType_Version.Marshal(b, m, deterministic)
}
func (dst *VulnerabilityType_Version) XXX_Merge(src proto.Message) {
xxx_messageInfo_VulnerabilityType_Version.Merge(dst, src)
}
func (m *VulnerabilityType_Version) XXX_Size() int {
return xxx_messageInfo_VulnerabilityType_Version.Size(m)
}
func (m *VulnerabilityType_Version) XXX_DiscardUnknown() {
xxx_messageInfo_VulnerabilityType_Version.DiscardUnknown(m)
}
var xxx_messageInfo_VulnerabilityType_Version proto.InternalMessageInfo
func (m *VulnerabilityType_Version) GetEpoch() int32 {
if m != nil {
@ -184,30 +234,55 @@ type VulnerabilityType_Detail struct {
// which the vulnerability manifests. Examples include distro or storage
// location for vulnerable jar.
// This field can be used as a filter in list requests.
CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri" json:"cpe_uri,omitempty"`
CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri,proto3" json:"cpe_uri,omitempty"`
// The name of the package where the vulnerability was found.
// This field can be used as a filter in list requests.
Package string `protobuf:"bytes,8,opt,name=package" json:"package,omitempty"`
Package string `protobuf:"bytes,8,opt,name=package,proto3" json:"package,omitempty"`
// The min version of the package in which the vulnerability exists.
MinAffectedVersion *VulnerabilityType_Version `protobuf:"bytes,6,opt,name=min_affected_version,json=minAffectedVersion" json:"min_affected_version,omitempty"`
MinAffectedVersion *VulnerabilityType_Version `protobuf:"bytes,6,opt,name=min_affected_version,json=minAffectedVersion,proto3" json:"min_affected_version,omitempty"`
// The max version of the package in which the vulnerability exists.
// This field can be used as a filter in list requests.
MaxAffectedVersion *VulnerabilityType_Version `protobuf:"bytes,7,opt,name=max_affected_version,json=maxAffectedVersion" json:"max_affected_version,omitempty"`
MaxAffectedVersion *VulnerabilityType_Version `protobuf:"bytes,7,opt,name=max_affected_version,json=maxAffectedVersion,proto3" json:"max_affected_version,omitempty"`
// The severity (eg: distro assigned severity) for this vulnerability.
SeverityName string `protobuf:"bytes,4,opt,name=severity_name,json=severityName" json:"severity_name,omitempty"`
SeverityName string `protobuf:"bytes,4,opt,name=severity_name,json=severityName,proto3" json:"severity_name,omitempty"`
// A vendor-specific description of this note.
Description string `protobuf:"bytes,9,opt,name=description" json:"description,omitempty"`
Description string `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty"`
// The fix for this specific package version.
FixedLocation *VulnerabilityType_VulnerabilityLocation `protobuf:"bytes,5,opt,name=fixed_location,json=fixedLocation" json:"fixed_location,omitempty"`
FixedLocation *VulnerabilityType_VulnerabilityLocation `protobuf:"bytes,5,opt,name=fixed_location,json=fixedLocation,proto3" json:"fixed_location,omitempty"`
// The type of package; whether native or non native(ruby gems,
// node.js packages etc)
PackageType string `protobuf:"bytes,10,opt,name=package_type,json=packageType" json:"package_type,omitempty"`
PackageType string `protobuf:"bytes,10,opt,name=package_type,json=packageType,proto3" json:"package_type,omitempty"`
// Whether this Detail is obsolete. Occurrences are expected not to point to
// obsolete details.
IsObsolete bool `protobuf:"varint,11,opt,name=is_obsolete,json=isObsolete,proto3" json:"is_obsolete,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VulnerabilityType_Detail) Reset() { *m = VulnerabilityType_Detail{} }
func (m *VulnerabilityType_Detail) String() string { return proto.CompactTextString(m) }
func (*VulnerabilityType_Detail) ProtoMessage() {}
func (*VulnerabilityType_Detail) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 1} }
func (m *VulnerabilityType_Detail) Reset() { *m = VulnerabilityType_Detail{} }
func (m *VulnerabilityType_Detail) String() string { return proto.CompactTextString(m) }
func (*VulnerabilityType_Detail) ProtoMessage() {}
func (*VulnerabilityType_Detail) Descriptor() ([]byte, []int) {
return fileDescriptor_package_vulnerability_9e58f6e1392a878c, []int{0, 1}
}
func (m *VulnerabilityType_Detail) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VulnerabilityType_Detail.Unmarshal(m, b)
}
func (m *VulnerabilityType_Detail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VulnerabilityType_Detail.Marshal(b, m, deterministic)
}
func (dst *VulnerabilityType_Detail) XXX_Merge(src proto.Message) {
xxx_messageInfo_VulnerabilityType_Detail.Merge(dst, src)
}
func (m *VulnerabilityType_Detail) XXX_Size() int {
return xxx_messageInfo_VulnerabilityType_Detail.Size(m)
}
func (m *VulnerabilityType_Detail) XXX_DiscardUnknown() {
xxx_messageInfo_VulnerabilityType_Detail.DiscardUnknown(m)
}
var xxx_messageInfo_VulnerabilityType_Detail proto.InternalMessageInfo
func (m *VulnerabilityType_Detail) GetCpeUri() string {
if m != nil {
@ -265,21 +340,31 @@ func (m *VulnerabilityType_Detail) GetPackageType() string {
return ""
}
func (m *VulnerabilityType_Detail) GetIsObsolete() bool {
if m != nil {
return m.IsObsolete
}
return false
}
// Used by Occurrence to point to where the vulnerability exists and how
// to fix it.
type VulnerabilityType_VulnerabilityDetails struct {
// The type of package; whether native or non native(ruby gems,
// node.js packages etc)
Type string `protobuf:"bytes,3,opt,name=type" json:"type,omitempty"`
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
// Output only. The note provider assigned Severity of the vulnerability.
Severity VulnerabilityType_Severity `protobuf:"varint,4,opt,name=severity,enum=google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Severity" json:"severity,omitempty"`
Severity VulnerabilityType_Severity `protobuf:"varint,4,opt,name=severity,proto3,enum=google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Severity" json:"severity,omitempty"`
// Output only. The CVSS score of this vulnerability. CVSS score is on a
// scale of 0-10 where 0 indicates low severity and 10 indicates high
// severity.
CvssScore float32 `protobuf:"fixed32,5,opt,name=cvss_score,json=cvssScore" json:"cvss_score,omitempty"`
CvssScore float32 `protobuf:"fixed32,5,opt,name=cvss_score,json=cvssScore,proto3" json:"cvss_score,omitempty"`
// The set of affected locations and their fixes (if available) within
// the associated resource.
PackageIssue []*VulnerabilityType_PackageIssue `protobuf:"bytes,6,rep,name=package_issue,json=packageIssue" json:"package_issue,omitempty"`
PackageIssue []*VulnerabilityType_PackageIssue `protobuf:"bytes,6,rep,name=package_issue,json=packageIssue,proto3" json:"package_issue,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VulnerabilityType_VulnerabilityDetails) Reset() {
@ -288,8 +373,25 @@ func (m *VulnerabilityType_VulnerabilityDetails) Reset() {
func (m *VulnerabilityType_VulnerabilityDetails) String() string { return proto.CompactTextString(m) }
func (*VulnerabilityType_VulnerabilityDetails) ProtoMessage() {}
func (*VulnerabilityType_VulnerabilityDetails) Descriptor() ([]byte, []int) {
return fileDescriptor3, []int{0, 2}
return fileDescriptor_package_vulnerability_9e58f6e1392a878c, []int{0, 2}
}
func (m *VulnerabilityType_VulnerabilityDetails) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VulnerabilityType_VulnerabilityDetails.Unmarshal(m, b)
}
func (m *VulnerabilityType_VulnerabilityDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VulnerabilityType_VulnerabilityDetails.Marshal(b, m, deterministic)
}
func (dst *VulnerabilityType_VulnerabilityDetails) XXX_Merge(src proto.Message) {
xxx_messageInfo_VulnerabilityType_VulnerabilityDetails.Merge(dst, src)
}
func (m *VulnerabilityType_VulnerabilityDetails) XXX_Size() int {
return xxx_messageInfo_VulnerabilityType_VulnerabilityDetails.Size(m)
}
func (m *VulnerabilityType_VulnerabilityDetails) XXX_DiscardUnknown() {
xxx_messageInfo_VulnerabilityType_VulnerabilityDetails.DiscardUnknown(m)
}
var xxx_messageInfo_VulnerabilityType_VulnerabilityDetails proto.InternalMessageInfo
func (m *VulnerabilityType_VulnerabilityDetails) GetType() string {
if m != nil {
@ -323,19 +425,39 @@ func (m *VulnerabilityType_VulnerabilityDetails) GetPackageIssue() []*Vulnerabil
// associated fix (if one is available).
type VulnerabilityType_PackageIssue struct {
// The location of the vulnerability.
AffectedLocation *VulnerabilityType_VulnerabilityLocation `protobuf:"bytes,1,opt,name=affected_location,json=affectedLocation" json:"affected_location,omitempty"`
AffectedLocation *VulnerabilityType_VulnerabilityLocation `protobuf:"bytes,1,opt,name=affected_location,json=affectedLocation,proto3" json:"affected_location,omitempty"`
// The location of the available fix for vulnerability.
FixedLocation *VulnerabilityType_VulnerabilityLocation `protobuf:"bytes,2,opt,name=fixed_location,json=fixedLocation" json:"fixed_location,omitempty"`
FixedLocation *VulnerabilityType_VulnerabilityLocation `protobuf:"bytes,2,opt,name=fixed_location,json=fixedLocation,proto3" json:"fixed_location,omitempty"`
// The severity (eg: distro assigned severity) for this vulnerability.
SeverityName string `protobuf:"bytes,3,opt,name=severity_name,json=severityName" json:"severity_name,omitempty"`
SeverityName string `protobuf:"bytes,3,opt,name=severity_name,json=severityName,proto3" json:"severity_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VulnerabilityType_PackageIssue) Reset() { *m = VulnerabilityType_PackageIssue{} }
func (m *VulnerabilityType_PackageIssue) String() string { return proto.CompactTextString(m) }
func (*VulnerabilityType_PackageIssue) ProtoMessage() {}
func (*VulnerabilityType_PackageIssue) Descriptor() ([]byte, []int) {
return fileDescriptor3, []int{0, 3}
return fileDescriptor_package_vulnerability_9e58f6e1392a878c, []int{0, 3}
}
func (m *VulnerabilityType_PackageIssue) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VulnerabilityType_PackageIssue.Unmarshal(m, b)
}
func (m *VulnerabilityType_PackageIssue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VulnerabilityType_PackageIssue.Marshal(b, m, deterministic)
}
func (dst *VulnerabilityType_PackageIssue) XXX_Merge(src proto.Message) {
xxx_messageInfo_VulnerabilityType_PackageIssue.Merge(dst, src)
}
func (m *VulnerabilityType_PackageIssue) XXX_Size() int {
return xxx_messageInfo_VulnerabilityType_PackageIssue.Size(m)
}
func (m *VulnerabilityType_PackageIssue) XXX_DiscardUnknown() {
xxx_messageInfo_VulnerabilityType_PackageIssue.DiscardUnknown(m)
}
var xxx_messageInfo_VulnerabilityType_PackageIssue proto.InternalMessageInfo
func (m *VulnerabilityType_PackageIssue) GetAffectedLocation() *VulnerabilityType_VulnerabilityLocation {
if m != nil {
@ -363,12 +485,15 @@ type VulnerabilityType_VulnerabilityLocation struct {
// The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
// format. Examples include distro or storage location for vulnerable jar.
// This field can be used as a filter in list requests.
CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri" json:"cpe_uri,omitempty"`
CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri,proto3" json:"cpe_uri,omitempty"`
// The package being described.
Package string `protobuf:"bytes,2,opt,name=package" json:"package,omitempty"`
Package string `protobuf:"bytes,2,opt,name=package,proto3" json:"package,omitempty"`
// The version of the package being described.
// This field can be used as a filter in list requests.
Version *VulnerabilityType_Version `protobuf:"bytes,4,opt,name=version" json:"version,omitempty"`
Version *VulnerabilityType_Version `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VulnerabilityType_VulnerabilityLocation) Reset() {
@ -377,8 +502,25 @@ func (m *VulnerabilityType_VulnerabilityLocation) Reset() {
func (m *VulnerabilityType_VulnerabilityLocation) String() string { return proto.CompactTextString(m) }
func (*VulnerabilityType_VulnerabilityLocation) ProtoMessage() {}
func (*VulnerabilityType_VulnerabilityLocation) Descriptor() ([]byte, []int) {
return fileDescriptor3, []int{0, 4}
return fileDescriptor_package_vulnerability_9e58f6e1392a878c, []int{0, 4}
}
func (m *VulnerabilityType_VulnerabilityLocation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VulnerabilityType_VulnerabilityLocation.Unmarshal(m, b)
}
func (m *VulnerabilityType_VulnerabilityLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VulnerabilityType_VulnerabilityLocation.Marshal(b, m, deterministic)
}
func (dst *VulnerabilityType_VulnerabilityLocation) XXX_Merge(src proto.Message) {
xxx_messageInfo_VulnerabilityType_VulnerabilityLocation.Merge(dst, src)
}
func (m *VulnerabilityType_VulnerabilityLocation) XXX_Size() int {
return xxx_messageInfo_VulnerabilityType_VulnerabilityLocation.Size(m)
}
func (m *VulnerabilityType_VulnerabilityLocation) XXX_DiscardUnknown() {
xxx_messageInfo_VulnerabilityType_VulnerabilityLocation.DiscardUnknown(m)
}
var xxx_messageInfo_VulnerabilityType_VulnerabilityLocation proto.InternalMessageInfo
func (m *VulnerabilityType_VulnerabilityLocation) GetCpeUri() string {
if m != nil {
@ -413,56 +555,58 @@ func init() {
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/package_vulnerability.proto", fileDescriptor3)
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/package_vulnerability.proto", fileDescriptor_package_vulnerability_9e58f6e1392a878c)
}
var fileDescriptor3 = []byte{
// 750 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xcf, 0x6e, 0xda, 0x4c,
0x10, 0xff, 0x6c, 0x0c, 0x86, 0x81, 0x44, 0xce, 0x8a, 0x4f, 0x9f, 0x85, 0xbe, 0x4a, 0x34, 0x55,
0x25, 0xd4, 0x83, 0x51, 0xc8, 0xb1, 0x27, 0x0a, 0x24, 0x71, 0x0b, 0x24, 0x35, 0x21, 0xfd, 0x27,
0xc5, 0xda, 0x98, 0x0d, 0x59, 0xc5, 0x78, 0x2d, 0xdb, 0xa1, 0xa1, 0xa7, 0x3e, 0x40, 0x6f, 0xbd,
0xf7, 0xd0, 0x6b, 0x6f, 0x7d, 0xa0, 0xbe, 0x40, 0x5f, 0xa2, 0xf2, 0xda, 0x8b, 0x20, 0xb4, 0x52,
0x24, 0x92, 0x9e, 0xf0, 0xcc, 0x78, 0x7f, 0xbf, 0x99, 0x9d, 0xdf, 0x0c, 0x86, 0xbd, 0x31, 0x63,
0x63, 0x97, 0xd4, 0x47, 0x64, 0x1a, 0x31, 0xe6, 0x86, 0x75, 0x87, 0x79, 0x11, 0xa6, 0x1e, 0x09,
0xb0, 0x87, 0xdd, 0x59, 0x48, 0xc3, 0xfa, 0x74, 0x07, 0xbb, 0xfe, 0x05, 0xde, 0xa9, 0xfb, 0xd8,
0xb9, 0xc4, 0x63, 0x62, 0x4f, 0xaf, 0xdc, 0x38, 0x7e, 0x46, 0x5d, 0x1a, 0xcd, 0x0c, 0x3f, 0x60,
0x11, 0x43, 0x4f, 0x12, 0x1c, 0x43, 0xe0, 0x18, 0x2b, 0x38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0xc6, 0xf5, 0x31, 0xf1, 0xf8, 0x1f, 0x75, 0x3d, 0x09, 0x61, 0x9f, 0x86,
0xb7, 0xf9, 0x7a, 0x78, 0xba, 0x12, 0xfa, 0x2a, 0x67, 0xf6, 0x5b, 0xcd, 0xb3, 0x1c, 0x47, 0xdb,
0xfd, 0x15, 0x00, 0x00, 0xff, 0xff, 0xe7, 0xe7, 0xb7, 0xf5, 0x8a, 0x08, 0x00, 0x00,
var fileDescriptor_package_vulnerability_9e58f6e1392a878c = []byte{
// 769 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xcf, 0x6e, 0xfa, 0x46,
0x10, 0xae, 0x8d, 0xc1, 0x30, 0x26, 0x91, 0xb3, 0xa2, 0xaa, 0x85, 0x5a, 0x95, 0xa6, 0xaa, 0x84,
0x7a, 0x30, 0x0a, 0x39, 0xf6, 0x44, 0x81, 0x24, 0x6e, 0x81, 0xa4, 0x26, 0xa4, 0xff, 0xa4, 0x58,
0x8b, 0xd9, 0x90, 0x55, 0x8c, 0xd7, 0xf2, 0x3a, 0x34, 0xf4, 0xd4, 0x07, 0xe8, 0x33, 0xf4, 0xd0,
0x6b, 0x6f, 0x55, 0xdf, 0xaa, 0x0f, 0xd1, 0xca, 0x6b, 0x2f, 0x82, 0xd0, 0x4a, 0x91, 0x48, 0x7e,
0x27, 0x3c, 0x33, 0xe6, 0xfb, 0x66, 0x76, 0xbf, 0xf9, 0x00, 0xce, 0xe6, 0x8c, 0xcd, 0x03, 0xd2,
0x9a, 0x91, 0x65, 0xc2, 0x58, 0xc0, 0x5b, 0x3e, 0x0b, 0x13, 0x4c, 0x43, 0x12, 0xe3, 0x10, 0x07,
0x2b, 0x4e, 0x79, 0x6b, 0x79, 0x82, 0x83, 0xe8, 0x1e, 0x9f, 0xb4, 0x22, 0xec, 0x3f, 0xe0, 0x39,
0xf1, 0x96, 0x8f, 0x41, 0x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xc2, 0xd4, 0x50, 0x15, 0xca, 0x5d, 0xd7, 0xb9, 0x76, 0xba, 0x9d, 0x81, 0x59, 0xfc, 0xf2, 0x57,
0x05, 0x3e, 0xf3, 0xd9, 0x42, 0x76, 0xfd, 0xff, 0xcd, 0x5e, 0x29, 0x3f, 0xfc, 0x98, 0xbf, 0x34,
0x67, 0x01, 0x0e, 0xe7, 0x36, 0x8b, 0xe7, 0xad, 0x39, 0x09, 0xc5, 0x2f, 0x79, 0x2b, 0x2b, 0xe1,
0x88, 0xf2, 0x97, 0xfc, 0xbd, 0xf8, 0x62, 0xa7, 0xf4, 0xbb, 0x5a, 0x38, 0xef, 0x76, 0xa6, 0x25,
0x81, 0x76, 0xfa, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x66, 0xf8, 0xb7, 0x2f, 0xab, 0x08, 0x00,
0x00,
}

View File

@ -1,19 +1,25 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1alpha1/provenance.proto
package containeranalysis
package containeranalysis // import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1alpha1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_protobuf1 "github.com/golang/protobuf/ptypes/timestamp"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Specifies the hash algorithm, if any.
type Hash_HashType int32
@ -36,46 +42,70 @@ var Hash_HashType_value = map[string]int32{
func (x Hash_HashType) String() string {
return proto.EnumName(Hash_HashType_name, int32(x))
}
func (Hash_HashType) EnumDescriptor() ([]byte, []int) { return fileDescriptor4, []int{3, 0} }
func (Hash_HashType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_provenance_ae080c06fe939617, []int{3, 0}
}
// Provenance of a build. Contains all information needed to verify the full
// details about the build from source to completion.
type BuildProvenance struct {
// Unique identifier of the build.
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// ID of the project.
ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// Commands requested by the build.
Commands []*Command `protobuf:"bytes,5,rep,name=commands" json:"commands,omitempty"`
Commands []*Command `protobuf:"bytes,5,rep,name=commands,proto3" json:"commands,omitempty"`
// Output of the build.
BuiltArtifacts []*Artifact `protobuf:"bytes,6,rep,name=built_artifacts,json=builtArtifacts" json:"built_artifacts,omitempty"`
BuiltArtifacts []*Artifact `protobuf:"bytes,6,rep,name=built_artifacts,json=builtArtifacts,proto3" json:"built_artifacts,omitempty"`
// Time at which the build was created.
CreateTime *google_protobuf1.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime" json:"create_time,omitempty"`
CreateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Time at which execution of the build was started.
StartTime *google_protobuf1.Timestamp `protobuf:"bytes,8,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
StartTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// Time at which execution of the build was finished.
FinishTime *google_protobuf1.Timestamp `protobuf:"bytes,9,opt,name=finish_time,json=finishTime" json:"finish_time,omitempty"`
FinishTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=finish_time,json=finishTime,proto3" json:"finish_time,omitempty"`
// E-mail address of the user who initiated this build. Note that this was the
// user's e-mail address at the time the build was initiated; this address may
// not represent the same end-user for all time.
Creator string `protobuf:"bytes,11,opt,name=creator" json:"creator,omitempty"`
Creator string `protobuf:"bytes,11,opt,name=creator,proto3" json:"creator,omitempty"`
// Google Cloud Storage bucket where logs were written.
LogsBucket string `protobuf:"bytes,13,opt,name=logs_bucket,json=logsBucket" json:"logs_bucket,omitempty"`
LogsBucket string `protobuf:"bytes,13,opt,name=logs_bucket,json=logsBucket,proto3" json:"logs_bucket,omitempty"`
// Details of the Source input to the build.
SourceProvenance *Source `protobuf:"bytes,14,opt,name=source_provenance,json=sourceProvenance" json:"source_provenance,omitempty"`
SourceProvenance *Source `protobuf:"bytes,14,opt,name=source_provenance,json=sourceProvenance,proto3" json:"source_provenance,omitempty"`
// Trigger identifier if the build was triggered automatically; empty if not.
TriggerId string `protobuf:"bytes,15,opt,name=trigger_id,json=triggerId" json:"trigger_id,omitempty"`
TriggerId string `protobuf:"bytes,15,opt,name=trigger_id,json=triggerId,proto3" json:"trigger_id,omitempty"`
// Special options applied to this build. This is a catch-all field where
// build providers can enter any desired additional details.
BuildOptions map[string]string `protobuf:"bytes,16,rep,name=build_options,json=buildOptions" json:"build_options,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
BuildOptions map[string]string `protobuf:"bytes,16,rep,name=build_options,json=buildOptions,proto3" json:"build_options,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Version string of the builder at the time this build was executed.
BuilderVersion string `protobuf:"bytes,17,opt,name=builder_version,json=builderVersion" json:"builder_version,omitempty"`
BuilderVersion string `protobuf:"bytes,17,opt,name=builder_version,json=builderVersion,proto3" json:"builder_version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BuildProvenance) Reset() { *m = BuildProvenance{} }
func (m *BuildProvenance) String() string { return proto.CompactTextString(m) }
func (*BuildProvenance) ProtoMessage() {}
func (*BuildProvenance) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{0} }
func (m *BuildProvenance) Reset() { *m = BuildProvenance{} }
func (m *BuildProvenance) String() string { return proto.CompactTextString(m) }
func (*BuildProvenance) ProtoMessage() {}
func (*BuildProvenance) Descriptor() ([]byte, []int) {
return fileDescriptor_provenance_ae080c06fe939617, []int{0}
}
func (m *BuildProvenance) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BuildProvenance.Unmarshal(m, b)
}
func (m *BuildProvenance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BuildProvenance.Marshal(b, m, deterministic)
}
func (dst *BuildProvenance) XXX_Merge(src proto.Message) {
xxx_messageInfo_BuildProvenance.Merge(dst, src)
}
func (m *BuildProvenance) XXX_Size() int {
return xxx_messageInfo_BuildProvenance.Size(m)
}
func (m *BuildProvenance) XXX_DiscardUnknown() {
xxx_messageInfo_BuildProvenance.DiscardUnknown(m)
}
var xxx_messageInfo_BuildProvenance proto.InternalMessageInfo
func (m *BuildProvenance) GetId() string {
if m != nil {
@ -105,21 +135,21 @@ func (m *BuildProvenance) GetBuiltArtifacts() []*Artifact {
return nil
}
func (m *BuildProvenance) GetCreateTime() *google_protobuf1.Timestamp {
func (m *BuildProvenance) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *BuildProvenance) GetStartTime() *google_protobuf1.Timestamp {
func (m *BuildProvenance) GetStartTime() *timestamp.Timestamp {
if m != nil {
return m.StartTime
}
return nil
}
func (m *BuildProvenance) GetFinishTime() *google_protobuf1.Timestamp {
func (m *BuildProvenance) GetFinishTime() *timestamp.Timestamp {
if m != nil {
return m.FinishTime
}
@ -178,7 +208,7 @@ type Source struct {
Source isSource_Source `protobuf_oneof:"source"`
// If provided, the input binary artifacts for the build came from this
// location.
ArtifactStorageSource *StorageSource `protobuf:"bytes,4,opt,name=artifact_storage_source,json=artifactStorageSource" json:"artifact_storage_source,omitempty"`
ArtifactStorageSource *StorageSource `protobuf:"bytes,4,opt,name=artifact_storage_source,json=artifactStorageSource,proto3" json:"artifact_storage_source,omitempty"`
// Hash(es) of the build source, which can be used to verify that the original
// source integrity was maintained in the build.
//
@ -187,34 +217,58 @@ type Source struct {
//
// If the build source came in a single package such as a gzipped tarfile
// (.tar.gz), the FileHash will be for the single path to that file.
FileHashes map[string]*FileHashes `protobuf:"bytes,3,rep,name=file_hashes,json=fileHashes" json:"file_hashes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
FileHashes map[string]*FileHashes `protobuf:"bytes,3,rep,name=file_hashes,json=fileHashes,proto3" json:"file_hashes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// If provided, the source code used for the build came from this location.
Context *SourceContext `protobuf:"bytes,7,opt,name=context" json:"context,omitempty"`
Context *SourceContext `protobuf:"bytes,7,opt,name=context,proto3" json:"context,omitempty"`
// If provided, some of the source code used for the build may be found in
// these locations, in the case where the source repository had multiple
// remotes or submodules. This list will not include the context specified in
// the context field.
AdditionalContexts []*SourceContext `protobuf:"bytes,8,rep,name=additional_contexts,json=additionalContexts" json:"additional_contexts,omitempty"`
AdditionalContexts []*SourceContext `protobuf:"bytes,8,rep,name=additional_contexts,json=additionalContexts,proto3" json:"additional_contexts,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Source) Reset() { *m = Source{} }
func (m *Source) String() string { return proto.CompactTextString(m) }
func (*Source) ProtoMessage() {}
func (*Source) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{1} }
func (m *Source) Reset() { *m = Source{} }
func (m *Source) String() string { return proto.CompactTextString(m) }
func (*Source) ProtoMessage() {}
func (*Source) Descriptor() ([]byte, []int) {
return fileDescriptor_provenance_ae080c06fe939617, []int{1}
}
func (m *Source) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Source.Unmarshal(m, b)
}
func (m *Source) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Source.Marshal(b, m, deterministic)
}
func (dst *Source) XXX_Merge(src proto.Message) {
xxx_messageInfo_Source.Merge(dst, src)
}
func (m *Source) XXX_Size() int {
return xxx_messageInfo_Source.Size(m)
}
func (m *Source) XXX_DiscardUnknown() {
xxx_messageInfo_Source.DiscardUnknown(m)
}
var xxx_messageInfo_Source proto.InternalMessageInfo
type isSource_Source interface {
isSource_Source()
}
type Source_StorageSource struct {
StorageSource *StorageSource `protobuf:"bytes,1,opt,name=storage_source,json=storageSource,oneof"`
StorageSource *StorageSource `protobuf:"bytes,1,opt,name=storage_source,json=storageSource,proto3,oneof"`
}
type Source_RepoSource struct {
RepoSource *RepoSource `protobuf:"bytes,2,opt,name=repo_source,json=repoSource,oneof"`
RepoSource *RepoSource `protobuf:"bytes,2,opt,name=repo_source,json=repoSource,proto3,oneof"`
}
func (*Source_StorageSource) isSource_Source() {}
func (*Source_RepoSource) isSource_Source() {}
func (*Source_RepoSource) isSource_Source() {}
func (m *Source) GetSource() isSource_Source {
if m != nil {
@ -324,12 +378,12 @@ func _Source_OneofSizer(msg proto.Message) (n int) {
switch x := m.Source.(type) {
case *Source_StorageSource:
s := proto.Size(x.StorageSource)
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *Source_RepoSource:
s := proto.Size(x.RepoSource)
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
@ -343,13 +397,35 @@ func _Source_OneofSizer(msg proto.Message) (n int) {
// messages to verify integrity of source input to the build.
type FileHashes struct {
// Collection of file hashes.
FileHash []*Hash `protobuf:"bytes,1,rep,name=file_hash,json=fileHash" json:"file_hash,omitempty"`
FileHash []*Hash `protobuf:"bytes,1,rep,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FileHashes) Reset() { *m = FileHashes{} }
func (m *FileHashes) String() string { return proto.CompactTextString(m) }
func (*FileHashes) ProtoMessage() {}
func (*FileHashes) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{2} }
func (m *FileHashes) Reset() { *m = FileHashes{} }
func (m *FileHashes) String() string { return proto.CompactTextString(m) }
func (*FileHashes) ProtoMessage() {}
func (*FileHashes) Descriptor() ([]byte, []int) {
return fileDescriptor_provenance_ae080c06fe939617, []int{2}
}
func (m *FileHashes) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FileHashes.Unmarshal(m, b)
}
func (m *FileHashes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FileHashes.Marshal(b, m, deterministic)
}
func (dst *FileHashes) XXX_Merge(src proto.Message) {
xxx_messageInfo_FileHashes.Merge(dst, src)
}
func (m *FileHashes) XXX_Size() int {
return xxx_messageInfo_FileHashes.Size(m)
}
func (m *FileHashes) XXX_DiscardUnknown() {
xxx_messageInfo_FileHashes.DiscardUnknown(m)
}
var xxx_messageInfo_FileHashes proto.InternalMessageInfo
func (m *FileHashes) GetFileHash() []*Hash {
if m != nil {
@ -361,15 +437,37 @@ func (m *FileHashes) GetFileHash() []*Hash {
// Container message for hash values.
type Hash struct {
// The type of hash that was performed.
Type Hash_HashType `protobuf:"varint,1,opt,name=type,enum=google.devtools.containeranalysis.v1alpha1.Hash_HashType" json:"type,omitempty"`
Type Hash_HashType `protobuf:"varint,1,opt,name=type,proto3,enum=google.devtools.containeranalysis.v1alpha1.Hash_HashType" json:"type,omitempty"`
// The hash value.
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Hash) Reset() { *m = Hash{} }
func (m *Hash) String() string { return proto.CompactTextString(m) }
func (*Hash) ProtoMessage() {}
func (*Hash) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{3} }
func (m *Hash) Reset() { *m = Hash{} }
func (m *Hash) String() string { return proto.CompactTextString(m) }
func (*Hash) ProtoMessage() {}
func (*Hash) Descriptor() ([]byte, []int) {
return fileDescriptor_provenance_ae080c06fe939617, []int{3}
}
func (m *Hash) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Hash.Unmarshal(m, b)
}
func (m *Hash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Hash.Marshal(b, m, deterministic)
}
func (dst *Hash) XXX_Merge(src proto.Message) {
xxx_messageInfo_Hash.Merge(dst, src)
}
func (m *Hash) XXX_Size() int {
return xxx_messageInfo_Hash.Size(m)
}
func (m *Hash) XXX_DiscardUnknown() {
xxx_messageInfo_Hash.DiscardUnknown(m)
}
var xxx_messageInfo_Hash proto.InternalMessageInfo
func (m *Hash) GetType() Hash_HashType {
if m != nil {
@ -391,17 +489,39 @@ type StorageSource struct {
// Google Cloud Storage bucket containing source (see [Bucket Name
// Requirements]
// (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
Bucket string `protobuf:"bytes,1,opt,name=bucket" json:"bucket,omitempty"`
Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"`
// Google Cloud Storage object containing source.
Object string `protobuf:"bytes,2,opt,name=object" json:"object,omitempty"`
Object string `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"`
// Google Cloud Storage generation for the object.
Generation int64 `protobuf:"varint,3,opt,name=generation" json:"generation,omitempty"`
Generation int64 `protobuf:"varint,3,opt,name=generation,proto3" json:"generation,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StorageSource) Reset() { *m = StorageSource{} }
func (m *StorageSource) String() string { return proto.CompactTextString(m) }
func (*StorageSource) ProtoMessage() {}
func (*StorageSource) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{4} }
func (m *StorageSource) Reset() { *m = StorageSource{} }
func (m *StorageSource) String() string { return proto.CompactTextString(m) }
func (*StorageSource) ProtoMessage() {}
func (*StorageSource) Descriptor() ([]byte, []int) {
return fileDescriptor_provenance_ae080c06fe939617, []int{4}
}
func (m *StorageSource) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StorageSource.Unmarshal(m, b)
}
func (m *StorageSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StorageSource.Marshal(b, m, deterministic)
}
func (dst *StorageSource) XXX_Merge(src proto.Message) {
xxx_messageInfo_StorageSource.Merge(dst, src)
}
func (m *StorageSource) XXX_Size() int {
return xxx_messageInfo_StorageSource.Size(m)
}
func (m *StorageSource) XXX_DiscardUnknown() {
xxx_messageInfo_StorageSource.DiscardUnknown(m)
}
var xxx_messageInfo_StorageSource proto.InternalMessageInfo
func (m *StorageSource) GetBucket() string {
if m != nil {
@ -428,9 +548,9 @@ func (m *StorageSource) GetGeneration() int64 {
// Repository.
type RepoSource struct {
// ID of the project that owns the repo.
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// Name of the repo.
RepoName string `protobuf:"bytes,2,opt,name=repo_name,json=repoName" json:"repo_name,omitempty"`
RepoName string `protobuf:"bytes,2,opt,name=repo_name,json=repoName,proto3" json:"repo_name,omitempty"`
// A revision within the source repository must be specified in
// one of these ways.
//
@ -438,38 +558,35 @@ type RepoSource struct {
// *RepoSource_BranchName
// *RepoSource_TagName
// *RepoSource_CommitSha
Revision isRepoSource_Revision `protobuf_oneof:"revision"`
Revision isRepoSource_Revision `protobuf_oneof:"revision"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RepoSource) Reset() { *m = RepoSource{} }
func (m *RepoSource) String() string { return proto.CompactTextString(m) }
func (*RepoSource) ProtoMessage() {}
func (*RepoSource) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{5} }
type isRepoSource_Revision interface {
isRepoSource_Revision()
func (m *RepoSource) Reset() { *m = RepoSource{} }
func (m *RepoSource) String() string { return proto.CompactTextString(m) }
func (*RepoSource) ProtoMessage() {}
func (*RepoSource) Descriptor() ([]byte, []int) {
return fileDescriptor_provenance_ae080c06fe939617, []int{5}
}
func (m *RepoSource) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepoSource.Unmarshal(m, b)
}
func (m *RepoSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepoSource.Marshal(b, m, deterministic)
}
func (dst *RepoSource) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepoSource.Merge(dst, src)
}
func (m *RepoSource) XXX_Size() int {
return xxx_messageInfo_RepoSource.Size(m)
}
func (m *RepoSource) XXX_DiscardUnknown() {
xxx_messageInfo_RepoSource.DiscardUnknown(m)
}
type RepoSource_BranchName struct {
BranchName string `protobuf:"bytes,3,opt,name=branch_name,json=branchName,oneof"`
}
type RepoSource_TagName struct {
TagName string `protobuf:"bytes,4,opt,name=tag_name,json=tagName,oneof"`
}
type RepoSource_CommitSha struct {
CommitSha string `protobuf:"bytes,5,opt,name=commit_sha,json=commitSha,oneof"`
}
func (*RepoSource_BranchName) isRepoSource_Revision() {}
func (*RepoSource_TagName) isRepoSource_Revision() {}
func (*RepoSource_CommitSha) isRepoSource_Revision() {}
func (m *RepoSource) GetRevision() isRepoSource_Revision {
if m != nil {
return m.Revision
}
return nil
}
var xxx_messageInfo_RepoSource proto.InternalMessageInfo
func (m *RepoSource) GetProjectId() string {
if m != nil {
@ -485,6 +602,35 @@ func (m *RepoSource) GetRepoName() string {
return ""
}
type isRepoSource_Revision interface {
isRepoSource_Revision()
}
type RepoSource_BranchName struct {
BranchName string `protobuf:"bytes,3,opt,name=branch_name,json=branchName,proto3,oneof"`
}
type RepoSource_TagName struct {
TagName string `protobuf:"bytes,4,opt,name=tag_name,json=tagName,proto3,oneof"`
}
type RepoSource_CommitSha struct {
CommitSha string `protobuf:"bytes,5,opt,name=commit_sha,json=commitSha,proto3,oneof"`
}
func (*RepoSource_BranchName) isRepoSource_Revision() {}
func (*RepoSource_TagName) isRepoSource_Revision() {}
func (*RepoSource_CommitSha) isRepoSource_Revision() {}
func (m *RepoSource) GetRevision() isRepoSource_Revision {
if m != nil {
return m.Revision
}
return nil
}
func (m *RepoSource) GetBranchName() string {
if x, ok := m.GetRevision().(*RepoSource_BranchName); ok {
return x.BranchName
@ -569,15 +715,15 @@ func _RepoSource_OneofSizer(msg proto.Message) (n int) {
// revision
switch x := m.Revision.(type) {
case *RepoSource_BranchName:
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.BranchName)))
n += len(x.BranchName)
case *RepoSource_TagName:
n += proto.SizeVarint(4<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.TagName)))
n += len(x.TagName)
case *RepoSource_CommitSha:
n += proto.SizeVarint(5<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.CommitSha)))
n += len(x.CommitSha)
case nil:
@ -591,25 +737,47 @@ func _RepoSource_OneofSizer(msg proto.Message) (n int) {
type Command struct {
// Name of the command, as presented on the command line, or if the command is
// packaged as a Docker container, as presented to `docker pull`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Environment variables set before running this Command.
Env []string `protobuf:"bytes,2,rep,name=env" json:"env,omitempty"`
Env []string `protobuf:"bytes,2,rep,name=env,proto3" json:"env,omitempty"`
// Command-line arguments used when executing this Command.
Args []string `protobuf:"bytes,3,rep,name=args" json:"args,omitempty"`
Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
// Working directory (relative to project source root) used when running
// this Command.
Dir string `protobuf:"bytes,4,opt,name=dir" json:"dir,omitempty"`
Dir string `protobuf:"bytes,4,opt,name=dir,proto3" json:"dir,omitempty"`
// Optional unique identifier for this Command, used in wait_for to reference
// this Command as a dependency.
Id string `protobuf:"bytes,5,opt,name=id" json:"id,omitempty"`
Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`
// The ID(s) of the Command(s) that this Command depends on.
WaitFor []string `protobuf:"bytes,6,rep,name=wait_for,json=waitFor" json:"wait_for,omitempty"`
WaitFor []string `protobuf:"bytes,6,rep,name=wait_for,json=waitFor,proto3" json:"wait_for,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Command) Reset() { *m = Command{} }
func (m *Command) String() string { return proto.CompactTextString(m) }
func (*Command) ProtoMessage() {}
func (*Command) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{6} }
func (m *Command) Reset() { *m = Command{} }
func (m *Command) String() string { return proto.CompactTextString(m) }
func (*Command) ProtoMessage() {}
func (*Command) Descriptor() ([]byte, []int) {
return fileDescriptor_provenance_ae080c06fe939617, []int{6}
}
func (m *Command) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Command.Unmarshal(m, b)
}
func (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Command.Marshal(b, m, deterministic)
}
func (dst *Command) XXX_Merge(src proto.Message) {
xxx_messageInfo_Command.Merge(dst, src)
}
func (m *Command) XXX_Size() int {
return xxx_messageInfo_Command.Size(m)
}
func (m *Command) XXX_DiscardUnknown() {
xxx_messageInfo_Command.DiscardUnknown(m)
}
var xxx_messageInfo_Command proto.InternalMessageInfo
func (m *Command) GetName() string {
if m != nil {
@ -663,25 +831,47 @@ type Artifact struct {
// to exist here to allow existing BuildProvenance serialized to json in
// google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to
// deserialize back into proto.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
// container.
Checksum string `protobuf:"bytes,2,opt,name=checksum" json:"checksum,omitempty"`
Checksum string `protobuf:"bytes,2,opt,name=checksum,proto3" json:"checksum,omitempty"`
// Artifact ID, if any; for container images, this will be a URL by digest
// like gcr.io/projectID/imagename@sha256:123456
Id string `protobuf:"bytes,3,opt,name=id" json:"id,omitempty"`
Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
// Related artifact names. This may be the path to a binary or jar file, or in
// the case of a container build, the name used to push the container image to
// Google Container Registry, as presented to `docker push`. Note that a
// single Artifact ID can have multiple names, for example if two tags are
// applied to one image.
Names []string `protobuf:"bytes,4,rep,name=names" json:"names,omitempty"`
Names []string `protobuf:"bytes,4,rep,name=names,proto3" json:"names,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Artifact) Reset() { *m = Artifact{} }
func (m *Artifact) String() string { return proto.CompactTextString(m) }
func (*Artifact) ProtoMessage() {}
func (*Artifact) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{7} }
func (m *Artifact) Reset() { *m = Artifact{} }
func (m *Artifact) String() string { return proto.CompactTextString(m) }
func (*Artifact) ProtoMessage() {}
func (*Artifact) Descriptor() ([]byte, []int) {
return fileDescriptor_provenance_ae080c06fe939617, []int{7}
}
func (m *Artifact) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Artifact.Unmarshal(m, b)
}
func (m *Artifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Artifact.Marshal(b, m, deterministic)
}
func (dst *Artifact) XXX_Merge(src proto.Message) {
xxx_messageInfo_Artifact.Merge(dst, src)
}
func (m *Artifact) XXX_Size() int {
return xxx_messageInfo_Artifact.Size(m)
}
func (m *Artifact) XXX_DiscardUnknown() {
xxx_messageInfo_Artifact.DiscardUnknown(m)
}
var xxx_messageInfo_Artifact proto.InternalMessageInfo
func (m *Artifact) GetName() string {
if m != nil {
@ -713,7 +903,9 @@ func (m *Artifact) GetNames() []string {
func init() {
proto.RegisterType((*BuildProvenance)(nil), "google.devtools.containeranalysis.v1alpha1.BuildProvenance")
proto.RegisterMapType((map[string]string)(nil), "google.devtools.containeranalysis.v1alpha1.BuildProvenance.BuildOptionsEntry")
proto.RegisterType((*Source)(nil), "google.devtools.containeranalysis.v1alpha1.Source")
proto.RegisterMapType((map[string]*FileHashes)(nil), "google.devtools.containeranalysis.v1alpha1.Source.FileHashesEntry")
proto.RegisterType((*FileHashes)(nil), "google.devtools.containeranalysis.v1alpha1.FileHashes")
proto.RegisterType((*Hash)(nil), "google.devtools.containeranalysis.v1alpha1.Hash")
proto.RegisterType((*StorageSource)(nil), "google.devtools.containeranalysis.v1alpha1.StorageSource")
@ -724,10 +916,10 @@ func init() {
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/provenance.proto", fileDescriptor4)
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/provenance.proto", fileDescriptor_provenance_ae080c06fe939617)
}
var fileDescriptor4 = []byte{
var fileDescriptor_provenance_ae080c06fe939617 = []byte{
// 1026 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xdd, 0x6e, 0x1b, 0x45,
0x14, 0xee, 0xfa, 0x77, 0xf7, 0xb8, 0x71, 0x92, 0xa1, 0xc0, 0xe2, 0x52, 0x62, 0x2c, 0x21, 0x22,

View File

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1alpha1/source_context.proto
package containeranalysis
package containeranalysis // import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1alpha1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
@ -13,6 +13,12 @@ var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// The type of an alias.
type AliasContext_Kind int32
@ -44,7 +50,9 @@ var AliasContext_Kind_value = map[string]int32{
func (x AliasContext_Kind) String() string {
return proto.EnumName(AliasContext_Kind_name, int32(x))
}
func (AliasContext_Kind) EnumDescriptor() ([]byte, []int) { return fileDescriptor5, []int{1, 0} }
func (AliasContext_Kind) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_source_context_78f437f8b7f72e1b, []int{1, 0}
}
// A SourceContext is a reference to a tree of files. A SourceContext together
// with a path point to a unique revision of a single file or directory.
@ -57,31 +65,57 @@ type SourceContext struct {
// *SourceContext_Git
Context isSourceContext_Context `protobuf_oneof:"context"`
// Labels with user defined metadata.
Labels map[string]string `protobuf:"bytes,4,rep,name=labels" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SourceContext) Reset() { *m = SourceContext{} }
func (m *SourceContext) String() string { return proto.CompactTextString(m) }
func (*SourceContext) ProtoMessage() {}
func (*SourceContext) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{0} }
func (m *SourceContext) Reset() { *m = SourceContext{} }
func (m *SourceContext) String() string { return proto.CompactTextString(m) }
func (*SourceContext) ProtoMessage() {}
func (*SourceContext) Descriptor() ([]byte, []int) {
return fileDescriptor_source_context_78f437f8b7f72e1b, []int{0}
}
func (m *SourceContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SourceContext.Unmarshal(m, b)
}
func (m *SourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SourceContext.Marshal(b, m, deterministic)
}
func (dst *SourceContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_SourceContext.Merge(dst, src)
}
func (m *SourceContext) XXX_Size() int {
return xxx_messageInfo_SourceContext.Size(m)
}
func (m *SourceContext) XXX_DiscardUnknown() {
xxx_messageInfo_SourceContext.DiscardUnknown(m)
}
var xxx_messageInfo_SourceContext proto.InternalMessageInfo
type isSourceContext_Context interface {
isSourceContext_Context()
}
type SourceContext_CloudRepo struct {
CloudRepo *CloudRepoSourceContext `protobuf:"bytes,1,opt,name=cloud_repo,json=cloudRepo,oneof"`
CloudRepo *CloudRepoSourceContext `protobuf:"bytes,1,opt,name=cloud_repo,json=cloudRepo,proto3,oneof"`
}
type SourceContext_Gerrit struct {
Gerrit *GerritSourceContext `protobuf:"bytes,2,opt,name=gerrit,oneof"`
Gerrit *GerritSourceContext `protobuf:"bytes,2,opt,name=gerrit,proto3,oneof"`
}
type SourceContext_Git struct {
Git *GitSourceContext `protobuf:"bytes,3,opt,name=git,oneof"`
Git *GitSourceContext `protobuf:"bytes,3,opt,name=git,proto3,oneof"`
}
func (*SourceContext_CloudRepo) isSourceContext_Context() {}
func (*SourceContext_Gerrit) isSourceContext_Context() {}
func (*SourceContext_Git) isSourceContext_Context() {}
func (*SourceContext_Gerrit) isSourceContext_Context() {}
func (*SourceContext_Git) isSourceContext_Context() {}
func (m *SourceContext) GetContext() isSourceContext_Context {
if m != nil {
@ -191,17 +225,17 @@ func _SourceContext_OneofSizer(msg proto.Message) (n int) {
switch x := m.Context.(type) {
case *SourceContext_CloudRepo:
s := proto.Size(x.CloudRepo)
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *SourceContext_Gerrit:
s := proto.Size(x.Gerrit)
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *SourceContext_Git:
s := proto.Size(x.Git)
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
@ -214,15 +248,37 @@ func _SourceContext_OneofSizer(msg proto.Message) (n int) {
// An alias to a repo revision.
type AliasContext struct {
// The alias kind.
Kind AliasContext_Kind `protobuf:"varint,1,opt,name=kind,enum=google.devtools.containeranalysis.v1alpha1.AliasContext_Kind" json:"kind,omitempty"`
Kind AliasContext_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=google.devtools.containeranalysis.v1alpha1.AliasContext_Kind" json:"kind,omitempty"`
// The alias name.
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AliasContext) Reset() { *m = AliasContext{} }
func (m *AliasContext) String() string { return proto.CompactTextString(m) }
func (*AliasContext) ProtoMessage() {}
func (*AliasContext) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{1} }
func (m *AliasContext) Reset() { *m = AliasContext{} }
func (m *AliasContext) String() string { return proto.CompactTextString(m) }
func (*AliasContext) ProtoMessage() {}
func (*AliasContext) Descriptor() ([]byte, []int) {
return fileDescriptor_source_context_78f437f8b7f72e1b, []int{1}
}
func (m *AliasContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AliasContext.Unmarshal(m, b)
}
func (m *AliasContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AliasContext.Marshal(b, m, deterministic)
}
func (dst *AliasContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_AliasContext.Merge(dst, src)
}
func (m *AliasContext) XXX_Size() int {
return xxx_messageInfo_AliasContext.Size(m)
}
func (m *AliasContext) XXX_DiscardUnknown() {
xxx_messageInfo_AliasContext.DiscardUnknown(m)
}
var xxx_messageInfo_AliasContext proto.InternalMessageInfo
func (m *AliasContext) GetKind() AliasContext_Kind {
if m != nil {
@ -242,33 +298,64 @@ func (m *AliasContext) GetName() string {
// Source Repo.
type CloudRepoSourceContext struct {
// The ID of the repo.
RepoId *RepoId `protobuf:"bytes,1,opt,name=repo_id,json=repoId" json:"repo_id,omitempty"`
RepoId *RepoId `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
// A revision in a Cloud Repo can be identified by either its revision ID or
// its alias.
//
// Types that are valid to be assigned to Revision:
// *CloudRepoSourceContext_RevisionId
// *CloudRepoSourceContext_AliasContext
Revision isCloudRepoSourceContext_Revision `protobuf_oneof:"revision"`
Revision isCloudRepoSourceContext_Revision `protobuf_oneof:"revision"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CloudRepoSourceContext) Reset() { *m = CloudRepoSourceContext{} }
func (m *CloudRepoSourceContext) String() string { return proto.CompactTextString(m) }
func (*CloudRepoSourceContext) ProtoMessage() {}
func (*CloudRepoSourceContext) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{2} }
func (m *CloudRepoSourceContext) Reset() { *m = CloudRepoSourceContext{} }
func (m *CloudRepoSourceContext) String() string { return proto.CompactTextString(m) }
func (*CloudRepoSourceContext) ProtoMessage() {}
func (*CloudRepoSourceContext) Descriptor() ([]byte, []int) {
return fileDescriptor_source_context_78f437f8b7f72e1b, []int{2}
}
func (m *CloudRepoSourceContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CloudRepoSourceContext.Unmarshal(m, b)
}
func (m *CloudRepoSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CloudRepoSourceContext.Marshal(b, m, deterministic)
}
func (dst *CloudRepoSourceContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_CloudRepoSourceContext.Merge(dst, src)
}
func (m *CloudRepoSourceContext) XXX_Size() int {
return xxx_messageInfo_CloudRepoSourceContext.Size(m)
}
func (m *CloudRepoSourceContext) XXX_DiscardUnknown() {
xxx_messageInfo_CloudRepoSourceContext.DiscardUnknown(m)
}
var xxx_messageInfo_CloudRepoSourceContext proto.InternalMessageInfo
func (m *CloudRepoSourceContext) GetRepoId() *RepoId {
if m != nil {
return m.RepoId
}
return nil
}
type isCloudRepoSourceContext_Revision interface {
isCloudRepoSourceContext_Revision()
}
type CloudRepoSourceContext_RevisionId struct {
RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,oneof"`
}
type CloudRepoSourceContext_AliasContext struct {
AliasContext *AliasContext `protobuf:"bytes,3,opt,name=alias_context,json=aliasContext,oneof"`
RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3,oneof"`
}
func (*CloudRepoSourceContext_RevisionId) isCloudRepoSourceContext_Revision() {}
type CloudRepoSourceContext_AliasContext struct {
AliasContext *AliasContext `protobuf:"bytes,3,opt,name=alias_context,json=aliasContext,proto3,oneof"`
}
func (*CloudRepoSourceContext_RevisionId) isCloudRepoSourceContext_Revision() {}
func (*CloudRepoSourceContext_AliasContext) isCloudRepoSourceContext_Revision() {}
func (m *CloudRepoSourceContext) GetRevision() isCloudRepoSourceContext_Revision {
@ -278,13 +365,6 @@ func (m *CloudRepoSourceContext) GetRevision() isCloudRepoSourceContext_Revision
return nil
}
func (m *CloudRepoSourceContext) GetRepoId() *RepoId {
if m != nil {
return m.RepoId
}
return nil
}
func (m *CloudRepoSourceContext) GetRevisionId() string {
if x, ok := m.GetRevision().(*CloudRepoSourceContext_RevisionId); ok {
return x.RevisionId
@ -354,12 +434,12 @@ func _CloudRepoSourceContext_OneofSizer(msg proto.Message) (n int) {
// revision
switch x := m.Revision.(type) {
case *CloudRepoSourceContext_RevisionId:
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.RevisionId)))
n += len(x.RevisionId)
case *CloudRepoSourceContext_AliasContext:
s := proto.Size(x.AliasContext)
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
@ -372,45 +452,46 @@ func _CloudRepoSourceContext_OneofSizer(msg proto.Message) (n int) {
// A SourceContext referring to a Gerrit project.
type GerritSourceContext struct {
// The URI of a running Gerrit instance.
HostUri string `protobuf:"bytes,1,opt,name=host_uri,json=hostUri" json:"host_uri,omitempty"`
HostUri string `protobuf:"bytes,1,opt,name=host_uri,json=hostUri,proto3" json:"host_uri,omitempty"`
// The full project name within the host. Projects may be nested, so
// "project/subproject" is a valid project name. The "repo name" is
// the hostURI/project.
GerritProject string `protobuf:"bytes,2,opt,name=gerrit_project,json=gerritProject" json:"gerrit_project,omitempty"`
GerritProject string `protobuf:"bytes,2,opt,name=gerrit_project,json=gerritProject,proto3" json:"gerrit_project,omitempty"`
// A revision in a Gerrit project can be identified by either its revision ID
// or its alias.
//
// Types that are valid to be assigned to Revision:
// *GerritSourceContext_RevisionId
// *GerritSourceContext_AliasContext
Revision isGerritSourceContext_Revision `protobuf_oneof:"revision"`
Revision isGerritSourceContext_Revision `protobuf_oneof:"revision"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GerritSourceContext) Reset() { *m = GerritSourceContext{} }
func (m *GerritSourceContext) String() string { return proto.CompactTextString(m) }
func (*GerritSourceContext) ProtoMessage() {}
func (*GerritSourceContext) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{3} }
type isGerritSourceContext_Revision interface {
isGerritSourceContext_Revision()
func (m *GerritSourceContext) Reset() { *m = GerritSourceContext{} }
func (m *GerritSourceContext) String() string { return proto.CompactTextString(m) }
func (*GerritSourceContext) ProtoMessage() {}
func (*GerritSourceContext) Descriptor() ([]byte, []int) {
return fileDescriptor_source_context_78f437f8b7f72e1b, []int{3}
}
func (m *GerritSourceContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GerritSourceContext.Unmarshal(m, b)
}
func (m *GerritSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GerritSourceContext.Marshal(b, m, deterministic)
}
func (dst *GerritSourceContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_GerritSourceContext.Merge(dst, src)
}
func (m *GerritSourceContext) XXX_Size() int {
return xxx_messageInfo_GerritSourceContext.Size(m)
}
func (m *GerritSourceContext) XXX_DiscardUnknown() {
xxx_messageInfo_GerritSourceContext.DiscardUnknown(m)
}
type GerritSourceContext_RevisionId struct {
RevisionId string `protobuf:"bytes,3,opt,name=revision_id,json=revisionId,oneof"`
}
type GerritSourceContext_AliasContext struct {
AliasContext *AliasContext `protobuf:"bytes,4,opt,name=alias_context,json=aliasContext,oneof"`
}
func (*GerritSourceContext_RevisionId) isGerritSourceContext_Revision() {}
func (*GerritSourceContext_AliasContext) isGerritSourceContext_Revision() {}
func (m *GerritSourceContext) GetRevision() isGerritSourceContext_Revision {
if m != nil {
return m.Revision
}
return nil
}
var xxx_messageInfo_GerritSourceContext proto.InternalMessageInfo
func (m *GerritSourceContext) GetHostUri() string {
if m != nil {
@ -426,6 +507,29 @@ func (m *GerritSourceContext) GetGerritProject() string {
return ""
}
type isGerritSourceContext_Revision interface {
isGerritSourceContext_Revision()
}
type GerritSourceContext_RevisionId struct {
RevisionId string `protobuf:"bytes,3,opt,name=revision_id,json=revisionId,proto3,oneof"`
}
type GerritSourceContext_AliasContext struct {
AliasContext *AliasContext `protobuf:"bytes,4,opt,name=alias_context,json=aliasContext,proto3,oneof"`
}
func (*GerritSourceContext_RevisionId) isGerritSourceContext_Revision() {}
func (*GerritSourceContext_AliasContext) isGerritSourceContext_Revision() {}
func (m *GerritSourceContext) GetRevision() isGerritSourceContext_Revision {
if m != nil {
return m.Revision
}
return nil
}
func (m *GerritSourceContext) GetRevisionId() string {
if x, ok := m.GetRevision().(*GerritSourceContext_RevisionId); ok {
return x.RevisionId
@ -495,12 +599,12 @@ func _GerritSourceContext_OneofSizer(msg proto.Message) (n int) {
// revision
switch x := m.Revision.(type) {
case *GerritSourceContext_RevisionId:
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.RevisionId)))
n += len(x.RevisionId)
case *GerritSourceContext_AliasContext:
s := proto.Size(x.AliasContext)
n += proto.SizeVarint(4<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
@ -514,16 +618,38 @@ func _GerritSourceContext_OneofSizer(msg proto.Message) (n int) {
// repository (e.g., GitHub).
type GitSourceContext struct {
// Git repository URL.
Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
// Required.
// Git commit hash.
RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId" json:"revision_id,omitempty"`
RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GitSourceContext) Reset() { *m = GitSourceContext{} }
func (m *GitSourceContext) String() string { return proto.CompactTextString(m) }
func (*GitSourceContext) ProtoMessage() {}
func (*GitSourceContext) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{4} }
func (m *GitSourceContext) Reset() { *m = GitSourceContext{} }
func (m *GitSourceContext) String() string { return proto.CompactTextString(m) }
func (*GitSourceContext) ProtoMessage() {}
func (*GitSourceContext) Descriptor() ([]byte, []int) {
return fileDescriptor_source_context_78f437f8b7f72e1b, []int{4}
}
func (m *GitSourceContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GitSourceContext.Unmarshal(m, b)
}
func (m *GitSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GitSourceContext.Marshal(b, m, deterministic)
}
func (dst *GitSourceContext) XXX_Merge(src proto.Message) {
xxx_messageInfo_GitSourceContext.Merge(dst, src)
}
func (m *GitSourceContext) XXX_Size() int {
return xxx_messageInfo_GitSourceContext.Size(m)
}
func (m *GitSourceContext) XXX_DiscardUnknown() {
xxx_messageInfo_GitSourceContext.DiscardUnknown(m)
}
var xxx_messageInfo_GitSourceContext proto.InternalMessageInfo
func (m *GitSourceContext) GetUrl() string {
if m != nil {
@ -547,27 +673,51 @@ type RepoId struct {
// Types that are valid to be assigned to Id:
// *RepoId_ProjectRepoId
// *RepoId_Uid
Id isRepoId_Id `protobuf_oneof:"id"`
Id isRepoId_Id `protobuf_oneof:"id"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RepoId) Reset() { *m = RepoId{} }
func (m *RepoId) String() string { return proto.CompactTextString(m) }
func (*RepoId) ProtoMessage() {}
func (*RepoId) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{5} }
func (m *RepoId) Reset() { *m = RepoId{} }
func (m *RepoId) String() string { return proto.CompactTextString(m) }
func (*RepoId) ProtoMessage() {}
func (*RepoId) Descriptor() ([]byte, []int) {
return fileDescriptor_source_context_78f437f8b7f72e1b, []int{5}
}
func (m *RepoId) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepoId.Unmarshal(m, b)
}
func (m *RepoId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepoId.Marshal(b, m, deterministic)
}
func (dst *RepoId) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepoId.Merge(dst, src)
}
func (m *RepoId) XXX_Size() int {
return xxx_messageInfo_RepoId.Size(m)
}
func (m *RepoId) XXX_DiscardUnknown() {
xxx_messageInfo_RepoId.DiscardUnknown(m)
}
var xxx_messageInfo_RepoId proto.InternalMessageInfo
type isRepoId_Id interface {
isRepoId_Id()
}
type RepoId_ProjectRepoId struct {
ProjectRepoId *ProjectRepoId `protobuf:"bytes,1,opt,name=project_repo_id,json=projectRepoId,oneof"`
ProjectRepoId *ProjectRepoId `protobuf:"bytes,1,opt,name=project_repo_id,json=projectRepoId,proto3,oneof"`
}
type RepoId_Uid struct {
Uid string `protobuf:"bytes,2,opt,name=uid,oneof"`
Uid string `protobuf:"bytes,2,opt,name=uid,proto3,oneof"`
}
func (*RepoId_ProjectRepoId) isRepoId_Id() {}
func (*RepoId_Uid) isRepoId_Id() {}
func (*RepoId_Uid) isRepoId_Id() {}
func (m *RepoId) GetId() isRepoId_Id {
if m != nil {
@ -646,11 +796,11 @@ func _RepoId_OneofSizer(msg proto.Message) (n int) {
switch x := m.Id.(type) {
case *RepoId_ProjectRepoId:
s := proto.Size(x.ProjectRepoId)
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *RepoId_Uid:
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.Uid)))
n += len(x.Uid)
case nil:
@ -664,15 +814,37 @@ func _RepoId_OneofSizer(msg proto.Message) (n int) {
// winged-cargo-31) and a repo name within that project.
type ProjectRepoId struct {
// The ID of the project.
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// The name of the repo. Leave empty for the default repo.
RepoName string `protobuf:"bytes,2,opt,name=repo_name,json=repoName" json:"repo_name,omitempty"`
RepoName string `protobuf:"bytes,2,opt,name=repo_name,json=repoName,proto3" json:"repo_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProjectRepoId) Reset() { *m = ProjectRepoId{} }
func (m *ProjectRepoId) String() string { return proto.CompactTextString(m) }
func (*ProjectRepoId) ProtoMessage() {}
func (*ProjectRepoId) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{6} }
func (m *ProjectRepoId) Reset() { *m = ProjectRepoId{} }
func (m *ProjectRepoId) String() string { return proto.CompactTextString(m) }
func (*ProjectRepoId) ProtoMessage() {}
func (*ProjectRepoId) Descriptor() ([]byte, []int) {
return fileDescriptor_source_context_78f437f8b7f72e1b, []int{6}
}
func (m *ProjectRepoId) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProjectRepoId.Unmarshal(m, b)
}
func (m *ProjectRepoId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProjectRepoId.Marshal(b, m, deterministic)
}
func (dst *ProjectRepoId) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProjectRepoId.Merge(dst, src)
}
func (m *ProjectRepoId) XXX_Size() int {
return xxx_messageInfo_ProjectRepoId.Size(m)
}
func (m *ProjectRepoId) XXX_DiscardUnknown() {
xxx_messageInfo_ProjectRepoId.DiscardUnknown(m)
}
var xxx_messageInfo_ProjectRepoId proto.InternalMessageInfo
func (m *ProjectRepoId) GetProjectId() string {
if m != nil {
@ -690,6 +862,7 @@ func (m *ProjectRepoId) GetRepoName() string {
func init() {
proto.RegisterType((*SourceContext)(nil), "google.devtools.containeranalysis.v1alpha1.SourceContext")
proto.RegisterMapType((map[string]string)(nil), "google.devtools.containeranalysis.v1alpha1.SourceContext.LabelsEntry")
proto.RegisterType((*AliasContext)(nil), "google.devtools.containeranalysis.v1alpha1.AliasContext")
proto.RegisterType((*CloudRepoSourceContext)(nil), "google.devtools.containeranalysis.v1alpha1.CloudRepoSourceContext")
proto.RegisterType((*GerritSourceContext)(nil), "google.devtools.containeranalysis.v1alpha1.GerritSourceContext")
@ -700,10 +873,10 @@ func init() {
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/source_context.proto", fileDescriptor5)
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/source_context.proto", fileDescriptor_source_context_78f437f8b7f72e1b)
}
var fileDescriptor5 = []byte{
var fileDescriptor_source_context_78f437f8b7f72e1b = []byte{
// 675 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x95, 0x5d, 0x4e, 0xdb, 0x4a,
0x14, 0xc7, 0xe3, 0x38, 0x24, 0xf8, 0x84, 0x70, 0xa3, 0xb9, 0xe8, 0x2a, 0x97, 0x7b, 0xab, 0x52,