diff --git a/packages/google-devtools-containeranalysis/protos/grafeas/v1/discovery.proto b/packages/google-devtools-containeranalysis/protos/grafeas/v1/discovery.proto index e072ede7976..95b3dc23d5b 100644 --- a/packages/google-devtools-containeranalysis/protos/grafeas/v1/discovery.proto +++ b/packages/google-devtools-containeranalysis/protos/grafeas/v1/discovery.proto @@ -156,4 +156,7 @@ message DiscoveryOccurrence { // Files that make up the resource described by the occurrence. repeated File files = 11; + + // The last time vulnerability scan results changed. + google.protobuf.Timestamp last_vulnerability_update_time = 12; } diff --git a/packages/google-devtools-containeranalysis/protos/protos.d.ts b/packages/google-devtools-containeranalysis/protos/protos.d.ts index 679536a9bcf..50b191c9740 100644 --- a/packages/google-devtools-containeranalysis/protos/protos.d.ts +++ b/packages/google-devtools-containeranalysis/protos/protos.d.ts @@ -7546,6 +7546,9 @@ export namespace grafeas { /** DiscoveryOccurrence files */ files?: (grafeas.v1.DiscoveryOccurrence.IFile[]|null); + + /** DiscoveryOccurrence lastVulnerabilityUpdateTime */ + lastVulnerabilityUpdateTime?: (google.protobuf.ITimestamp|null); } /** Represents a DiscoveryOccurrence. */ @@ -7590,6 +7593,9 @@ export namespace grafeas { /** DiscoveryOccurrence files. */ public files: grafeas.v1.DiscoveryOccurrence.IFile[]; + /** DiscoveryOccurrence lastVulnerabilityUpdateTime. */ + public lastVulnerabilityUpdateTime?: (google.protobuf.ITimestamp|null); + /** * Creates a new DiscoveryOccurrence instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/google-devtools-containeranalysis/protos/protos.js b/packages/google-devtools-containeranalysis/protos/protos.js index a560f70e740..9d58af031f7 100644 --- a/packages/google-devtools-containeranalysis/protos/protos.js +++ b/packages/google-devtools-containeranalysis/protos/protos.js @@ -19713,6 +19713,7 @@ * @property {grafeas.v1.DiscoveryOccurrence.ISBOMStatus|null} [sbomStatus] DiscoveryOccurrence sbomStatus * @property {grafeas.v1.DiscoveryOccurrence.IVulnerabilityAttestation|null} [vulnerabilityAttestation] DiscoveryOccurrence vulnerabilityAttestation * @property {Array.|null} [files] DiscoveryOccurrence files + * @property {google.protobuf.ITimestamp|null} [lastVulnerabilityUpdateTime] DiscoveryOccurrence lastVulnerabilityUpdateTime */ /** @@ -19820,6 +19821,14 @@ */ DiscoveryOccurrence.prototype.files = $util.emptyArray; + /** + * DiscoveryOccurrence lastVulnerabilityUpdateTime. + * @member {google.protobuf.ITimestamp|null|undefined} lastVulnerabilityUpdateTime + * @memberof grafeas.v1.DiscoveryOccurrence + * @instance + */ + DiscoveryOccurrence.prototype.lastVulnerabilityUpdateTime = null; + /** * Creates a new DiscoveryOccurrence instance using the specified properties. * @function create @@ -19868,6 +19877,8 @@ if (message.files != null && message.files.length) for (var i = 0; i < message.files.length; ++i) $root.grafeas.v1.DiscoveryOccurrence.File.encode(message.files[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.lastVulnerabilityUpdateTime != null && Object.hasOwnProperty.call(message, "lastVulnerabilityUpdateTime")) + $root.google.protobuf.Timestamp.encode(message.lastVulnerabilityUpdateTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); return writer; }; @@ -19952,6 +19963,10 @@ message.files.push($root.grafeas.v1.DiscoveryOccurrence.File.decode(reader, reader.uint32())); break; } + case 12: { + message.lastVulnerabilityUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -20060,6 +20075,11 @@ return "files." + error; } } + if (message.lastVulnerabilityUpdateTime != null && message.hasOwnProperty("lastVulnerabilityUpdateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.lastVulnerabilityUpdateTime); + if (error) + return "lastVulnerabilityUpdateTime." + error; + } return null; }; @@ -20183,6 +20203,11 @@ message.files[i] = $root.grafeas.v1.DiscoveryOccurrence.File.fromObject(object.files[i]); } } + if (object.lastVulnerabilityUpdateTime != null) { + if (typeof object.lastVulnerabilityUpdateTime !== "object") + throw TypeError(".grafeas.v1.DiscoveryOccurrence.lastVulnerabilityUpdateTime: object expected"); + message.lastVulnerabilityUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.lastVulnerabilityUpdateTime); + } return message; }; @@ -20213,6 +20238,7 @@ object.analysisCompleted = null; object.sbomStatus = null; object.vulnerabilityAttestation = null; + object.lastVulnerabilityUpdateTime = null; } if (message.continuousAnalysis != null && message.hasOwnProperty("continuousAnalysis")) object.continuousAnalysis = options.enums === String ? $root.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis[message.continuousAnalysis] === undefined ? message.continuousAnalysis : $root.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis[message.continuousAnalysis] : message.continuousAnalysis; @@ -20242,6 +20268,8 @@ for (var j = 0; j < message.files.length; ++j) object.files[j] = $root.grafeas.v1.DiscoveryOccurrence.File.toObject(message.files[j], options); } + if (message.lastVulnerabilityUpdateTime != null && message.hasOwnProperty("lastVulnerabilityUpdateTime")) + object.lastVulnerabilityUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastVulnerabilityUpdateTime, options); return object; }; diff --git a/packages/google-devtools-containeranalysis/protos/protos.json b/packages/google-devtools-containeranalysis/protos/protos.json index 251dbe45110..b4afdac23af 100644 --- a/packages/google-devtools-containeranalysis/protos/protos.json +++ b/packages/google-devtools-containeranalysis/protos/protos.json @@ -1507,6 +1507,10 @@ "rule": "repeated", "type": "File", "id": 11 + }, + "lastVulnerabilityUpdateTime": { + "type": "google.protobuf.Timestamp", + "id": 12 } }, "nested": {