1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/devtools/containeranalysis/v1beta1/discovery/discovery.proto 3 4package discovery 5 6import ( 7 fmt "fmt" 8 math "math" 9 10 proto "github.com/golang/protobuf/proto" 11 timestamp "github.com/golang/protobuf/ptypes/timestamp" 12 common "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/common" 13 status "google.golang.org/genproto/googleapis/rpc/status" 14) 15 16// Reference imports to suppress errors if they are not otherwise used. 17var _ = proto.Marshal 18var _ = fmt.Errorf 19var _ = math.Inf 20 21// This is a compile-time assertion to ensure that this generated file 22// is compatible with the proto package it is being compiled against. 23// A compilation error at this line likely means your copy of the 24// proto package needs to be updated. 25const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 26 27// Whether the resource is continuously analyzed. 28type Discovered_ContinuousAnalysis int32 29 30const ( 31 // Unknown. 32 Discovered_CONTINUOUS_ANALYSIS_UNSPECIFIED Discovered_ContinuousAnalysis = 0 33 // The resource is continuously analyzed. 34 Discovered_ACTIVE Discovered_ContinuousAnalysis = 1 35 // The resource is ignored for continuous analysis. 36 Discovered_INACTIVE Discovered_ContinuousAnalysis = 2 37) 38 39var Discovered_ContinuousAnalysis_name = map[int32]string{ 40 0: "CONTINUOUS_ANALYSIS_UNSPECIFIED", 41 1: "ACTIVE", 42 2: "INACTIVE", 43} 44 45var Discovered_ContinuousAnalysis_value = map[string]int32{ 46 "CONTINUOUS_ANALYSIS_UNSPECIFIED": 0, 47 "ACTIVE": 1, 48 "INACTIVE": 2, 49} 50 51func (x Discovered_ContinuousAnalysis) String() string { 52 return proto.EnumName(Discovered_ContinuousAnalysis_name, int32(x)) 53} 54 55func (Discovered_ContinuousAnalysis) EnumDescriptor() ([]byte, []int) { 56 return fileDescriptor_6ec5519deb85e465, []int{2, 0} 57} 58 59// Analysis status for a resource. Currently for initial analysis only (not 60// updated in continuous analysis). 61type Discovered_AnalysisStatus int32 62 63const ( 64 // Unknown. 65 Discovered_ANALYSIS_STATUS_UNSPECIFIED Discovered_AnalysisStatus = 0 66 // Resource is known but no action has been taken yet. 67 Discovered_PENDING Discovered_AnalysisStatus = 1 68 // Resource is being analyzed. 69 Discovered_SCANNING Discovered_AnalysisStatus = 2 70 // Analysis has finished successfully. 71 Discovered_FINISHED_SUCCESS Discovered_AnalysisStatus = 3 72 // Analysis has finished unsuccessfully, the analysis itself is in a bad 73 // state. 74 Discovered_FINISHED_FAILED Discovered_AnalysisStatus = 4 75 // The resource is known not to be supported 76 Discovered_FINISHED_UNSUPPORTED Discovered_AnalysisStatus = 5 77) 78 79var Discovered_AnalysisStatus_name = map[int32]string{ 80 0: "ANALYSIS_STATUS_UNSPECIFIED", 81 1: "PENDING", 82 2: "SCANNING", 83 3: "FINISHED_SUCCESS", 84 4: "FINISHED_FAILED", 85 5: "FINISHED_UNSUPPORTED", 86} 87 88var Discovered_AnalysisStatus_value = map[string]int32{ 89 "ANALYSIS_STATUS_UNSPECIFIED": 0, 90 "PENDING": 1, 91 "SCANNING": 2, 92 "FINISHED_SUCCESS": 3, 93 "FINISHED_FAILED": 4, 94 "FINISHED_UNSUPPORTED": 5, 95} 96 97func (x Discovered_AnalysisStatus) String() string { 98 return proto.EnumName(Discovered_AnalysisStatus_name, int32(x)) 99} 100 101func (Discovered_AnalysisStatus) EnumDescriptor() ([]byte, []int) { 102 return fileDescriptor_6ec5519deb85e465, []int{2, 1} 103} 104 105// A note that indicates a type of analysis a provider would perform. This note 106// exists in a provider's project. A `Discovery` occurrence is created in a 107// consumer's project at the start of analysis. 108type Discovery struct { 109 // The kind of analysis that is handled by this discovery. 110 AnalysisKind common.NoteKind `protobuf:"varint,1,opt,name=analysis_kind,json=analysisKind,proto3,enum=grafeas.v1beta1.NoteKind" json:"analysis_kind,omitempty"` 111 XXX_NoUnkeyedLiteral struct{} `json:"-"` 112 XXX_unrecognized []byte `json:"-"` 113 XXX_sizecache int32 `json:"-"` 114} 115 116func (m *Discovery) Reset() { *m = Discovery{} } 117func (m *Discovery) String() string { return proto.CompactTextString(m) } 118func (*Discovery) ProtoMessage() {} 119func (*Discovery) Descriptor() ([]byte, []int) { 120 return fileDescriptor_6ec5519deb85e465, []int{0} 121} 122 123func (m *Discovery) XXX_Unmarshal(b []byte) error { 124 return xxx_messageInfo_Discovery.Unmarshal(m, b) 125} 126func (m *Discovery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 127 return xxx_messageInfo_Discovery.Marshal(b, m, deterministic) 128} 129func (m *Discovery) XXX_Merge(src proto.Message) { 130 xxx_messageInfo_Discovery.Merge(m, src) 131} 132func (m *Discovery) XXX_Size() int { 133 return xxx_messageInfo_Discovery.Size(m) 134} 135func (m *Discovery) XXX_DiscardUnknown() { 136 xxx_messageInfo_Discovery.DiscardUnknown(m) 137} 138 139var xxx_messageInfo_Discovery proto.InternalMessageInfo 140 141func (m *Discovery) GetAnalysisKind() common.NoteKind { 142 if m != nil { 143 return m.AnalysisKind 144 } 145 return common.NoteKind_NOTE_KIND_UNSPECIFIED 146} 147 148// Details of a discovery occurrence. 149type Details struct { 150 // Analysis status for the discovered resource. 151 Discovered *Discovered `protobuf:"bytes,1,opt,name=discovered,proto3" json:"discovered,omitempty"` 152 XXX_NoUnkeyedLiteral struct{} `json:"-"` 153 XXX_unrecognized []byte `json:"-"` 154 XXX_sizecache int32 `json:"-"` 155} 156 157func (m *Details) Reset() { *m = Details{} } 158func (m *Details) String() string { return proto.CompactTextString(m) } 159func (*Details) ProtoMessage() {} 160func (*Details) Descriptor() ([]byte, []int) { 161 return fileDescriptor_6ec5519deb85e465, []int{1} 162} 163 164func (m *Details) XXX_Unmarshal(b []byte) error { 165 return xxx_messageInfo_Details.Unmarshal(m, b) 166} 167func (m *Details) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 168 return xxx_messageInfo_Details.Marshal(b, m, deterministic) 169} 170func (m *Details) XXX_Merge(src proto.Message) { 171 xxx_messageInfo_Details.Merge(m, src) 172} 173func (m *Details) XXX_Size() int { 174 return xxx_messageInfo_Details.Size(m) 175} 176func (m *Details) XXX_DiscardUnknown() { 177 xxx_messageInfo_Details.DiscardUnknown(m) 178} 179 180var xxx_messageInfo_Details proto.InternalMessageInfo 181 182func (m *Details) GetDiscovered() *Discovered { 183 if m != nil { 184 return m.Discovered 185 } 186 return nil 187} 188 189// Provides information about the analysis status of a discovered resource. 190type Discovered struct { 191 // Whether the resource is continuously analyzed. 192 ContinuousAnalysis Discovered_ContinuousAnalysis `protobuf:"varint,1,opt,name=continuous_analysis,json=continuousAnalysis,proto3,enum=grafeas.v1beta1.discovery.Discovered_ContinuousAnalysis" json:"continuous_analysis,omitempty"` 193 // The last time continuous analysis was done for this resource. 194 LastAnalysisTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=last_analysis_time,json=lastAnalysisTime,proto3" json:"last_analysis_time,omitempty"` 195 // The status of discovery for the resource. 196 AnalysisStatus Discovered_AnalysisStatus `protobuf:"varint,3,opt,name=analysis_status,json=analysisStatus,proto3,enum=grafeas.v1beta1.discovery.Discovered_AnalysisStatus" json:"analysis_status,omitempty"` 197 // When an error is encountered this will contain a LocalizedMessage under 198 // details to show to the user. The LocalizedMessage is output only and 199 // populated by the API. 200 AnalysisStatusError *status.Status `protobuf:"bytes,4,opt,name=analysis_status_error,json=analysisStatusError,proto3" json:"analysis_status_error,omitempty"` 201 XXX_NoUnkeyedLiteral struct{} `json:"-"` 202 XXX_unrecognized []byte `json:"-"` 203 XXX_sizecache int32 `json:"-"` 204} 205 206func (m *Discovered) Reset() { *m = Discovered{} } 207func (m *Discovered) String() string { return proto.CompactTextString(m) } 208func (*Discovered) ProtoMessage() {} 209func (*Discovered) Descriptor() ([]byte, []int) { 210 return fileDescriptor_6ec5519deb85e465, []int{2} 211} 212 213func (m *Discovered) XXX_Unmarshal(b []byte) error { 214 return xxx_messageInfo_Discovered.Unmarshal(m, b) 215} 216func (m *Discovered) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 217 return xxx_messageInfo_Discovered.Marshal(b, m, deterministic) 218} 219func (m *Discovered) XXX_Merge(src proto.Message) { 220 xxx_messageInfo_Discovered.Merge(m, src) 221} 222func (m *Discovered) XXX_Size() int { 223 return xxx_messageInfo_Discovered.Size(m) 224} 225func (m *Discovered) XXX_DiscardUnknown() { 226 xxx_messageInfo_Discovered.DiscardUnknown(m) 227} 228 229var xxx_messageInfo_Discovered proto.InternalMessageInfo 230 231func (m *Discovered) GetContinuousAnalysis() Discovered_ContinuousAnalysis { 232 if m != nil { 233 return m.ContinuousAnalysis 234 } 235 return Discovered_CONTINUOUS_ANALYSIS_UNSPECIFIED 236} 237 238func (m *Discovered) GetLastAnalysisTime() *timestamp.Timestamp { 239 if m != nil { 240 return m.LastAnalysisTime 241 } 242 return nil 243} 244 245func (m *Discovered) GetAnalysisStatus() Discovered_AnalysisStatus { 246 if m != nil { 247 return m.AnalysisStatus 248 } 249 return Discovered_ANALYSIS_STATUS_UNSPECIFIED 250} 251 252func (m *Discovered) GetAnalysisStatusError() *status.Status { 253 if m != nil { 254 return m.AnalysisStatusError 255 } 256 return nil 257} 258 259func init() { 260 proto.RegisterEnum("grafeas.v1beta1.discovery.Discovered_ContinuousAnalysis", Discovered_ContinuousAnalysis_name, Discovered_ContinuousAnalysis_value) 261 proto.RegisterEnum("grafeas.v1beta1.discovery.Discovered_AnalysisStatus", Discovered_AnalysisStatus_name, Discovered_AnalysisStatus_value) 262 proto.RegisterType((*Discovery)(nil), "grafeas.v1beta1.discovery.Discovery") 263 proto.RegisterType((*Details)(nil), "grafeas.v1beta1.discovery.Details") 264 proto.RegisterType((*Discovered)(nil), "grafeas.v1beta1.discovery.Discovered") 265} 266 267func init() { 268 proto.RegisterFile("google/devtools/containeranalysis/v1beta1/discovery/discovery.proto", fileDescriptor_6ec5519deb85e465) 269} 270 271var fileDescriptor_6ec5519deb85e465 = []byte{ 272 // 541 bytes of a gzipped FileDescriptorProto 273 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xdf, 0x6a, 0xdb, 0x4c, 274 0x10, 0xc5, 0x3f, 0x39, 0xf9, 0x92, 0x76, 0x92, 0x3a, 0x62, 0x9d, 0x52, 0xc7, 0x2d, 0xb8, 0xb8, 275 0x14, 0x7a, 0xb5, 0x22, 0x69, 0x2f, 0x0a, 0xa5, 0x05, 0x55, 0x92, 0x13, 0x91, 0xb0, 0x16, 0x5a, 276 0xa9, 0xd0, 0xd2, 0x22, 0xd6, 0xf2, 0x46, 0x88, 0xca, 0x5a, 0xa3, 0x95, 0x0d, 0xb9, 0xef, 0x0b, 277 0xf4, 0x15, 0xfa, 0x46, 0x7d, 0xa3, 0xa2, 0xbf, 0xa9, 0x1d, 0x02, 0xee, 0x95, 0x77, 0x66, 0xcf, 278 0xfc, 0xe6, 0xec, 0x31, 0x08, 0x8c, 0x48, 0x88, 0x28, 0xe1, 0xda, 0x8c, 0xaf, 0x72, 0x21, 0x12, 279 0xa9, 0x85, 0x22, 0xcd, 0x59, 0x9c, 0xf2, 0x8c, 0xa5, 0x2c, 0xb9, 0x91, 0xb1, 0xd4, 0x56, 0xa7, 280 0x53, 0x9e, 0xb3, 0x53, 0x6d, 0x16, 0xcb, 0x50, 0xac, 0x78, 0x76, 0x73, 0x7b, 0xc2, 0x8b, 0x4c, 281 0xe4, 0x02, 0x9d, 0x44, 0x19, 0xbb, 0xe6, 0x4c, 0xe2, 0x5a, 0x8a, 0x5b, 0xc1, 0xe0, 0xfd, 0xf6, 282 0xfc, 0x50, 0xcc, 0xe7, 0x22, 0xad, 0x7f, 0x2a, 0xf2, 0x60, 0x58, 0x8f, 0x97, 0xd5, 0x74, 0x79, 283 0xad, 0xe5, 0xf1, 0x9c, 0xcb, 0x9c, 0xcd, 0x17, 0xb5, 0xe0, 0x49, 0x2d, 0xc8, 0x16, 0xa1, 0x26, 284 0x73, 0x96, 0x2f, 0x65, 0x75, 0x31, 0xba, 0x84, 0x87, 0x66, 0xe3, 0x02, 0x7d, 0x80, 0x47, 0x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 0xa0, 0x13, 0xfd, 0xea, 0x33, 0xb5, 0x69, 0xe0, 0x13, 0xea, 0x58, 0x86, 0x3d, 297 0xb6, 0x2d, 0x53, 0xfd, 0x0f, 0x01, 0xec, 0xe9, 0x86, 0x67, 0x7f, 0xb2, 0x54, 0x05, 0x1d, 0xc2, 298 0x03, 0x9b, 0xd4, 0x55, 0x67, 0xf4, 0x53, 0x81, 0xee, 0xba, 0x7f, 0x34, 0x84, 0xa7, 0x2d, 0x86, 299 0x7a, 0xba, 0xe7, 0x6f, 0xd2, 0x0e, 0x60, 0xdf, 0xb1, 0x88, 0x69, 0x93, 0xf3, 0x0a, 0x47, 0x0d, 300 0x9d, 0x90, 0xa2, 0xea, 0xa0, 0x63, 0x50, 0xc7, 0x36, 0xb1, 0xe9, 0x85, 0x65, 0x06, 0xd4, 0x37, 301 0x0c, 0x8b, 0x52, 0x75, 0x07, 0xf5, 0xe0, 0xa8, 0xed, 0x8e, 0x75, 0xfb, 0xca, 0x32, 0xd5, 0x5d, 302 0xd4, 0x87, 0xe3, 0xb6, 0xe9, 0x13, 0xea, 0x3b, 0xce, 0xc4, 0xf5, 0x2c, 0x53, 0xfd, 0xff, 0xe3, 303 0x0f, 0x05, 0x9e, 0xc5, 0xe2, 0xfe, 0xec, 0x1d, 0xe5, 0xcb, 0xd7, 0x3a, 0xb3, 0x48, 0x24, 0x2c, 304 0x8d, 0xb0, 0xc8, 0x22, 0x2d, 0xe2, 0x69, 0xf9, 0x6f, 0x6b, 0xd5, 0x15, 0x5b, 0xc4, 0xf2, 0x9f, 305 0xbe, 0x06, 0xef, 0xda, 0xd3, 0xaf, 0xce, 0xce, 0xb9, 0xab, 0x4f, 0xf7, 0x4a, 0xdc, 0xeb, 0x3f, 306 0x01, 0x00, 0x00, 0xff, 0xff, 0xaf, 0x60, 0x55, 0x7f, 0x5b, 0x04, 0x00, 0x00, 307} 308