@google-cloud/containeranalysis 6.3.1 → 6.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/protos/grafeas/v1/discovery.proto +11 -0
- package/build/protos/grafeas/v1/grafeas.proto +26 -0
- package/build/protos/grafeas/v1/risk.proto +46 -0
- package/build/protos/grafeas/v1/secret.proto +52 -1
- package/build/protos/grafeas/v1/vulnerability.proto +5 -1
- package/build/protos/protos.d.ts +482 -2
- package/build/protos/protos.js +1366 -5
- package/build/protos/protos.json +111 -1
- package/build/src/v1/container_analysis_client.js +1 -1
- package/build/src/v1/container_analysis_proto_list.json +1 -0
- package/build/src/v1/grafeas_proto_list.json +1 -0
- package/build/src/v1beta1/container_analysis_v1_beta1_client.js +1 -1
- package/build/src/v1beta1/grafeas_v1_beta1_client.js +1 -1
- package/package.json +1 -1
package/build/protos/protos.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2026 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -19712,6 +19712,8 @@
|
|
|
19712
19712
|
* @property {google.protobuf.ITimestamp|null} [archiveTime] DiscoveryOccurrence archiveTime
|
|
19713
19713
|
* @property {grafeas.v1.DiscoveryOccurrence.ISBOMStatus|null} [sbomStatus] DiscoveryOccurrence sbomStatus
|
|
19714
19714
|
* @property {grafeas.v1.DiscoveryOccurrence.IVulnerabilityAttestation|null} [vulnerabilityAttestation] DiscoveryOccurrence vulnerabilityAttestation
|
|
19715
|
+
* @property {Array.<grafeas.v1.DiscoveryOccurrence.IFile>|null} [files] DiscoveryOccurrence files
|
|
19716
|
+
* @property {google.protobuf.ITimestamp|null} [lastVulnerabilityUpdateTime] DiscoveryOccurrence lastVulnerabilityUpdateTime
|
|
19715
19717
|
*/
|
|
19716
19718
|
|
|
19717
19719
|
/**
|
|
@@ -19724,6 +19726,7 @@
|
|
|
19724
19726
|
*/
|
|
19725
19727
|
function DiscoveryOccurrence(properties) {
|
|
19726
19728
|
this.analysisError = [];
|
|
19729
|
+
this.files = [];
|
|
19727
19730
|
if (properties)
|
|
19728
19731
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19729
19732
|
if (properties[keys[i]] != null)
|
|
@@ -19810,6 +19813,22 @@
|
|
|
19810
19813
|
*/
|
|
19811
19814
|
DiscoveryOccurrence.prototype.vulnerabilityAttestation = null;
|
|
19812
19815
|
|
|
19816
|
+
/**
|
|
19817
|
+
* DiscoveryOccurrence files.
|
|
19818
|
+
* @member {Array.<grafeas.v1.DiscoveryOccurrence.IFile>} files
|
|
19819
|
+
* @memberof grafeas.v1.DiscoveryOccurrence
|
|
19820
|
+
* @instance
|
|
19821
|
+
*/
|
|
19822
|
+
DiscoveryOccurrence.prototype.files = $util.emptyArray;
|
|
19823
|
+
|
|
19824
|
+
/**
|
|
19825
|
+
* DiscoveryOccurrence lastVulnerabilityUpdateTime.
|
|
19826
|
+
* @member {google.protobuf.ITimestamp|null|undefined} lastVulnerabilityUpdateTime
|
|
19827
|
+
* @memberof grafeas.v1.DiscoveryOccurrence
|
|
19828
|
+
* @instance
|
|
19829
|
+
*/
|
|
19830
|
+
DiscoveryOccurrence.prototype.lastVulnerabilityUpdateTime = null;
|
|
19831
|
+
|
|
19813
19832
|
/**
|
|
19814
19833
|
* Creates a new DiscoveryOccurrence instance using the specified properties.
|
|
19815
19834
|
* @function create
|
|
@@ -19855,6 +19874,11 @@
|
|
|
19855
19874
|
$root.grafeas.v1.DiscoveryOccurrence.SBOMStatus.encode(message.sbomStatus, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
19856
19875
|
if (message.vulnerabilityAttestation != null && Object.hasOwnProperty.call(message, "vulnerabilityAttestation"))
|
|
19857
19876
|
$root.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.encode(message.vulnerabilityAttestation, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
19877
|
+
if (message.files != null && message.files.length)
|
|
19878
|
+
for (var i = 0; i < message.files.length; ++i)
|
|
19879
|
+
$root.grafeas.v1.DiscoveryOccurrence.File.encode(message.files[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
19880
|
+
if (message.lastVulnerabilityUpdateTime != null && Object.hasOwnProperty.call(message, "lastVulnerabilityUpdateTime"))
|
|
19881
|
+
$root.google.protobuf.Timestamp.encode(message.lastVulnerabilityUpdateTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
19858
19882
|
return writer;
|
|
19859
19883
|
};
|
|
19860
19884
|
|
|
@@ -19933,6 +19957,16 @@
|
|
|
19933
19957
|
message.vulnerabilityAttestation = $root.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.decode(reader, reader.uint32());
|
|
19934
19958
|
break;
|
|
19935
19959
|
}
|
|
19960
|
+
case 11: {
|
|
19961
|
+
if (!(message.files && message.files.length))
|
|
19962
|
+
message.files = [];
|
|
19963
|
+
message.files.push($root.grafeas.v1.DiscoveryOccurrence.File.decode(reader, reader.uint32()));
|
|
19964
|
+
break;
|
|
19965
|
+
}
|
|
19966
|
+
case 12: {
|
|
19967
|
+
message.lastVulnerabilityUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
19968
|
+
break;
|
|
19969
|
+
}
|
|
19936
19970
|
default:
|
|
19937
19971
|
reader.skipType(tag & 7);
|
|
19938
19972
|
break;
|
|
@@ -20032,6 +20066,20 @@
|
|
|
20032
20066
|
if (error)
|
|
20033
20067
|
return "vulnerabilityAttestation." + error;
|
|
20034
20068
|
}
|
|
20069
|
+
if (message.files != null && message.hasOwnProperty("files")) {
|
|
20070
|
+
if (!Array.isArray(message.files))
|
|
20071
|
+
return "files: array expected";
|
|
20072
|
+
for (var i = 0; i < message.files.length; ++i) {
|
|
20073
|
+
var error = $root.grafeas.v1.DiscoveryOccurrence.File.verify(message.files[i]);
|
|
20074
|
+
if (error)
|
|
20075
|
+
return "files." + error;
|
|
20076
|
+
}
|
|
20077
|
+
}
|
|
20078
|
+
if (message.lastVulnerabilityUpdateTime != null && message.hasOwnProperty("lastVulnerabilityUpdateTime")) {
|
|
20079
|
+
var error = $root.google.protobuf.Timestamp.verify(message.lastVulnerabilityUpdateTime);
|
|
20080
|
+
if (error)
|
|
20081
|
+
return "lastVulnerabilityUpdateTime." + error;
|
|
20082
|
+
}
|
|
20035
20083
|
return null;
|
|
20036
20084
|
};
|
|
20037
20085
|
|
|
@@ -20145,6 +20193,21 @@
|
|
|
20145
20193
|
throw TypeError(".grafeas.v1.DiscoveryOccurrence.vulnerabilityAttestation: object expected");
|
|
20146
20194
|
message.vulnerabilityAttestation = $root.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.fromObject(object.vulnerabilityAttestation);
|
|
20147
20195
|
}
|
|
20196
|
+
if (object.files) {
|
|
20197
|
+
if (!Array.isArray(object.files))
|
|
20198
|
+
throw TypeError(".grafeas.v1.DiscoveryOccurrence.files: array expected");
|
|
20199
|
+
message.files = [];
|
|
20200
|
+
for (var i = 0; i < object.files.length; ++i) {
|
|
20201
|
+
if (typeof object.files[i] !== "object")
|
|
20202
|
+
throw TypeError(".grafeas.v1.DiscoveryOccurrence.files: object expected");
|
|
20203
|
+
message.files[i] = $root.grafeas.v1.DiscoveryOccurrence.File.fromObject(object.files[i]);
|
|
20204
|
+
}
|
|
20205
|
+
}
|
|
20206
|
+
if (object.lastVulnerabilityUpdateTime != null) {
|
|
20207
|
+
if (typeof object.lastVulnerabilityUpdateTime !== "object")
|
|
20208
|
+
throw TypeError(".grafeas.v1.DiscoveryOccurrence.lastVulnerabilityUpdateTime: object expected");
|
|
20209
|
+
message.lastVulnerabilityUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.lastVulnerabilityUpdateTime);
|
|
20210
|
+
}
|
|
20148
20211
|
return message;
|
|
20149
20212
|
};
|
|
20150
20213
|
|
|
@@ -20161,8 +20224,10 @@
|
|
|
20161
20224
|
if (!options)
|
|
20162
20225
|
options = {};
|
|
20163
20226
|
var object = {};
|
|
20164
|
-
if (options.arrays || options.defaults)
|
|
20227
|
+
if (options.arrays || options.defaults) {
|
|
20165
20228
|
object.analysisError = [];
|
|
20229
|
+
object.files = [];
|
|
20230
|
+
}
|
|
20166
20231
|
if (options.defaults) {
|
|
20167
20232
|
object.continuousAnalysis = options.enums === String ? "CONTINUOUS_ANALYSIS_UNSPECIFIED" : 0;
|
|
20168
20233
|
object.analysisStatus = options.enums === String ? "ANALYSIS_STATUS_UNSPECIFIED" : 0;
|
|
@@ -20173,6 +20238,7 @@
|
|
|
20173
20238
|
object.analysisCompleted = null;
|
|
20174
20239
|
object.sbomStatus = null;
|
|
20175
20240
|
object.vulnerabilityAttestation = null;
|
|
20241
|
+
object.lastVulnerabilityUpdateTime = null;
|
|
20176
20242
|
}
|
|
20177
20243
|
if (message.continuousAnalysis != null && message.hasOwnProperty("continuousAnalysis"))
|
|
20178
20244
|
object.continuousAnalysis = options.enums === String ? $root.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis[message.continuousAnalysis] === undefined ? message.continuousAnalysis : $root.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis[message.continuousAnalysis] : message.continuousAnalysis;
|
|
@@ -20197,6 +20263,13 @@
|
|
|
20197
20263
|
object.sbomStatus = $root.grafeas.v1.DiscoveryOccurrence.SBOMStatus.toObject(message.sbomStatus, options);
|
|
20198
20264
|
if (message.vulnerabilityAttestation != null && message.hasOwnProperty("vulnerabilityAttestation"))
|
|
20199
20265
|
object.vulnerabilityAttestation = $root.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.toObject(message.vulnerabilityAttestation, options);
|
|
20266
|
+
if (message.files && message.files.length) {
|
|
20267
|
+
object.files = [];
|
|
20268
|
+
for (var j = 0; j < message.files.length; ++j)
|
|
20269
|
+
object.files[j] = $root.grafeas.v1.DiscoveryOccurrence.File.toObject(message.files[j], options);
|
|
20270
|
+
}
|
|
20271
|
+
if (message.lastVulnerabilityUpdateTime != null && message.hasOwnProperty("lastVulnerabilityUpdateTime"))
|
|
20272
|
+
object.lastVulnerabilityUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastVulnerabilityUpdateTime, options);
|
|
20200
20273
|
return object;
|
|
20201
20274
|
};
|
|
20202
20275
|
|
|
@@ -21053,6 +21126,270 @@
|
|
|
21053
21126
|
return VulnerabilityAttestation;
|
|
21054
21127
|
})();
|
|
21055
21128
|
|
|
21129
|
+
DiscoveryOccurrence.File = (function() {
|
|
21130
|
+
|
|
21131
|
+
/**
|
|
21132
|
+
* Properties of a File.
|
|
21133
|
+
* @memberof grafeas.v1.DiscoveryOccurrence
|
|
21134
|
+
* @interface IFile
|
|
21135
|
+
* @property {string|null} [name] File name
|
|
21136
|
+
* @property {Object.<string,string>|null} [digest] File digest
|
|
21137
|
+
*/
|
|
21138
|
+
|
|
21139
|
+
/**
|
|
21140
|
+
* Constructs a new File.
|
|
21141
|
+
* @memberof grafeas.v1.DiscoveryOccurrence
|
|
21142
|
+
* @classdesc Represents a File.
|
|
21143
|
+
* @implements IFile
|
|
21144
|
+
* @constructor
|
|
21145
|
+
* @param {grafeas.v1.DiscoveryOccurrence.IFile=} [properties] Properties to set
|
|
21146
|
+
*/
|
|
21147
|
+
function File(properties) {
|
|
21148
|
+
this.digest = {};
|
|
21149
|
+
if (properties)
|
|
21150
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
21151
|
+
if (properties[keys[i]] != null)
|
|
21152
|
+
this[keys[i]] = properties[keys[i]];
|
|
21153
|
+
}
|
|
21154
|
+
|
|
21155
|
+
/**
|
|
21156
|
+
* File name.
|
|
21157
|
+
* @member {string} name
|
|
21158
|
+
* @memberof grafeas.v1.DiscoveryOccurrence.File
|
|
21159
|
+
* @instance
|
|
21160
|
+
*/
|
|
21161
|
+
File.prototype.name = "";
|
|
21162
|
+
|
|
21163
|
+
/**
|
|
21164
|
+
* File digest.
|
|
21165
|
+
* @member {Object.<string,string>} digest
|
|
21166
|
+
* @memberof grafeas.v1.DiscoveryOccurrence.File
|
|
21167
|
+
* @instance
|
|
21168
|
+
*/
|
|
21169
|
+
File.prototype.digest = $util.emptyObject;
|
|
21170
|
+
|
|
21171
|
+
/**
|
|
21172
|
+
* Creates a new File instance using the specified properties.
|
|
21173
|
+
* @function create
|
|
21174
|
+
* @memberof grafeas.v1.DiscoveryOccurrence.File
|
|
21175
|
+
* @static
|
|
21176
|
+
* @param {grafeas.v1.DiscoveryOccurrence.IFile=} [properties] Properties to set
|
|
21177
|
+
* @returns {grafeas.v1.DiscoveryOccurrence.File} File instance
|
|
21178
|
+
*/
|
|
21179
|
+
File.create = function create(properties) {
|
|
21180
|
+
return new File(properties);
|
|
21181
|
+
};
|
|
21182
|
+
|
|
21183
|
+
/**
|
|
21184
|
+
* Encodes the specified File message. Does not implicitly {@link grafeas.v1.DiscoveryOccurrence.File.verify|verify} messages.
|
|
21185
|
+
* @function encode
|
|
21186
|
+
* @memberof grafeas.v1.DiscoveryOccurrence.File
|
|
21187
|
+
* @static
|
|
21188
|
+
* @param {grafeas.v1.DiscoveryOccurrence.IFile} message File message or plain object to encode
|
|
21189
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
21190
|
+
* @returns {$protobuf.Writer} Writer
|
|
21191
|
+
*/
|
|
21192
|
+
File.encode = function encode(message, writer) {
|
|
21193
|
+
if (!writer)
|
|
21194
|
+
writer = $Writer.create();
|
|
21195
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
21196
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
21197
|
+
if (message.digest != null && Object.hasOwnProperty.call(message, "digest"))
|
|
21198
|
+
for (var keys = Object.keys(message.digest), i = 0; i < keys.length; ++i)
|
|
21199
|
+
writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.digest[keys[i]]).ldelim();
|
|
21200
|
+
return writer;
|
|
21201
|
+
};
|
|
21202
|
+
|
|
21203
|
+
/**
|
|
21204
|
+
* Encodes the specified File message, length delimited. Does not implicitly {@link grafeas.v1.DiscoveryOccurrence.File.verify|verify} messages.
|
|
21205
|
+
* @function encodeDelimited
|
|
21206
|
+
* @memberof grafeas.v1.DiscoveryOccurrence.File
|
|
21207
|
+
* @static
|
|
21208
|
+
* @param {grafeas.v1.DiscoveryOccurrence.IFile} message File message or plain object to encode
|
|
21209
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
21210
|
+
* @returns {$protobuf.Writer} Writer
|
|
21211
|
+
*/
|
|
21212
|
+
File.encodeDelimited = function encodeDelimited(message, writer) {
|
|
21213
|
+
return this.encode(message, writer).ldelim();
|
|
21214
|
+
};
|
|
21215
|
+
|
|
21216
|
+
/**
|
|
21217
|
+
* Decodes a File message from the specified reader or buffer.
|
|
21218
|
+
* @function decode
|
|
21219
|
+
* @memberof grafeas.v1.DiscoveryOccurrence.File
|
|
21220
|
+
* @static
|
|
21221
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
21222
|
+
* @param {number} [length] Message length if known beforehand
|
|
21223
|
+
* @returns {grafeas.v1.DiscoveryOccurrence.File} File
|
|
21224
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
21225
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
21226
|
+
*/
|
|
21227
|
+
File.decode = function decode(reader, length, error) {
|
|
21228
|
+
if (!(reader instanceof $Reader))
|
|
21229
|
+
reader = $Reader.create(reader);
|
|
21230
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.grafeas.v1.DiscoveryOccurrence.File(), key, value;
|
|
21231
|
+
while (reader.pos < end) {
|
|
21232
|
+
var tag = reader.uint32();
|
|
21233
|
+
if (tag === error)
|
|
21234
|
+
break;
|
|
21235
|
+
switch (tag >>> 3) {
|
|
21236
|
+
case 1: {
|
|
21237
|
+
message.name = reader.string();
|
|
21238
|
+
break;
|
|
21239
|
+
}
|
|
21240
|
+
case 2: {
|
|
21241
|
+
if (message.digest === $util.emptyObject)
|
|
21242
|
+
message.digest = {};
|
|
21243
|
+
var end2 = reader.uint32() + reader.pos;
|
|
21244
|
+
key = "";
|
|
21245
|
+
value = "";
|
|
21246
|
+
while (reader.pos < end2) {
|
|
21247
|
+
var tag2 = reader.uint32();
|
|
21248
|
+
switch (tag2 >>> 3) {
|
|
21249
|
+
case 1:
|
|
21250
|
+
key = reader.string();
|
|
21251
|
+
break;
|
|
21252
|
+
case 2:
|
|
21253
|
+
value = reader.string();
|
|
21254
|
+
break;
|
|
21255
|
+
default:
|
|
21256
|
+
reader.skipType(tag2 & 7);
|
|
21257
|
+
break;
|
|
21258
|
+
}
|
|
21259
|
+
}
|
|
21260
|
+
message.digest[key] = value;
|
|
21261
|
+
break;
|
|
21262
|
+
}
|
|
21263
|
+
default:
|
|
21264
|
+
reader.skipType(tag & 7);
|
|
21265
|
+
break;
|
|
21266
|
+
}
|
|
21267
|
+
}
|
|
21268
|
+
return message;
|
|
21269
|
+
};
|
|
21270
|
+
|
|
21271
|
+
/**
|
|
21272
|
+
* Decodes a File message from the specified reader or buffer, length delimited.
|
|
21273
|
+
* @function decodeDelimited
|
|
21274
|
+
* @memberof grafeas.v1.DiscoveryOccurrence.File
|
|
21275
|
+
* @static
|
|
21276
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
21277
|
+
* @returns {grafeas.v1.DiscoveryOccurrence.File} File
|
|
21278
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
21279
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
21280
|
+
*/
|
|
21281
|
+
File.decodeDelimited = function decodeDelimited(reader) {
|
|
21282
|
+
if (!(reader instanceof $Reader))
|
|
21283
|
+
reader = new $Reader(reader);
|
|
21284
|
+
return this.decode(reader, reader.uint32());
|
|
21285
|
+
};
|
|
21286
|
+
|
|
21287
|
+
/**
|
|
21288
|
+
* Verifies a File message.
|
|
21289
|
+
* @function verify
|
|
21290
|
+
* @memberof grafeas.v1.DiscoveryOccurrence.File
|
|
21291
|
+
* @static
|
|
21292
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
21293
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
21294
|
+
*/
|
|
21295
|
+
File.verify = function verify(message) {
|
|
21296
|
+
if (typeof message !== "object" || message === null)
|
|
21297
|
+
return "object expected";
|
|
21298
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
21299
|
+
if (!$util.isString(message.name))
|
|
21300
|
+
return "name: string expected";
|
|
21301
|
+
if (message.digest != null && message.hasOwnProperty("digest")) {
|
|
21302
|
+
if (!$util.isObject(message.digest))
|
|
21303
|
+
return "digest: object expected";
|
|
21304
|
+
var key = Object.keys(message.digest);
|
|
21305
|
+
for (var i = 0; i < key.length; ++i)
|
|
21306
|
+
if (!$util.isString(message.digest[key[i]]))
|
|
21307
|
+
return "digest: string{k:string} expected";
|
|
21308
|
+
}
|
|
21309
|
+
return null;
|
|
21310
|
+
};
|
|
21311
|
+
|
|
21312
|
+
/**
|
|
21313
|
+
* Creates a File message from a plain object. Also converts values to their respective internal types.
|
|
21314
|
+
* @function fromObject
|
|
21315
|
+
* @memberof grafeas.v1.DiscoveryOccurrence.File
|
|
21316
|
+
* @static
|
|
21317
|
+
* @param {Object.<string,*>} object Plain object
|
|
21318
|
+
* @returns {grafeas.v1.DiscoveryOccurrence.File} File
|
|
21319
|
+
*/
|
|
21320
|
+
File.fromObject = function fromObject(object) {
|
|
21321
|
+
if (object instanceof $root.grafeas.v1.DiscoveryOccurrence.File)
|
|
21322
|
+
return object;
|
|
21323
|
+
var message = new $root.grafeas.v1.DiscoveryOccurrence.File();
|
|
21324
|
+
if (object.name != null)
|
|
21325
|
+
message.name = String(object.name);
|
|
21326
|
+
if (object.digest) {
|
|
21327
|
+
if (typeof object.digest !== "object")
|
|
21328
|
+
throw TypeError(".grafeas.v1.DiscoveryOccurrence.File.digest: object expected");
|
|
21329
|
+
message.digest = {};
|
|
21330
|
+
for (var keys = Object.keys(object.digest), i = 0; i < keys.length; ++i)
|
|
21331
|
+
message.digest[keys[i]] = String(object.digest[keys[i]]);
|
|
21332
|
+
}
|
|
21333
|
+
return message;
|
|
21334
|
+
};
|
|
21335
|
+
|
|
21336
|
+
/**
|
|
21337
|
+
* Creates a plain object from a File message. Also converts values to other types if specified.
|
|
21338
|
+
* @function toObject
|
|
21339
|
+
* @memberof grafeas.v1.DiscoveryOccurrence.File
|
|
21340
|
+
* @static
|
|
21341
|
+
* @param {grafeas.v1.DiscoveryOccurrence.File} message File
|
|
21342
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
21343
|
+
* @returns {Object.<string,*>} Plain object
|
|
21344
|
+
*/
|
|
21345
|
+
File.toObject = function toObject(message, options) {
|
|
21346
|
+
if (!options)
|
|
21347
|
+
options = {};
|
|
21348
|
+
var object = {};
|
|
21349
|
+
if (options.objects || options.defaults)
|
|
21350
|
+
object.digest = {};
|
|
21351
|
+
if (options.defaults)
|
|
21352
|
+
object.name = "";
|
|
21353
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
21354
|
+
object.name = message.name;
|
|
21355
|
+
var keys2;
|
|
21356
|
+
if (message.digest && (keys2 = Object.keys(message.digest)).length) {
|
|
21357
|
+
object.digest = {};
|
|
21358
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
21359
|
+
object.digest[keys2[j]] = message.digest[keys2[j]];
|
|
21360
|
+
}
|
|
21361
|
+
return object;
|
|
21362
|
+
};
|
|
21363
|
+
|
|
21364
|
+
/**
|
|
21365
|
+
* Converts this File to JSON.
|
|
21366
|
+
* @function toJSON
|
|
21367
|
+
* @memberof grafeas.v1.DiscoveryOccurrence.File
|
|
21368
|
+
* @instance
|
|
21369
|
+
* @returns {Object.<string,*>} JSON object
|
|
21370
|
+
*/
|
|
21371
|
+
File.prototype.toJSON = function toJSON() {
|
|
21372
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
21373
|
+
};
|
|
21374
|
+
|
|
21375
|
+
/**
|
|
21376
|
+
* Gets the default type url for File
|
|
21377
|
+
* @function getTypeUrl
|
|
21378
|
+
* @memberof grafeas.v1.DiscoveryOccurrence.File
|
|
21379
|
+
* @static
|
|
21380
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
21381
|
+
* @returns {string} The default type url
|
|
21382
|
+
*/
|
|
21383
|
+
File.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
21384
|
+
if (typeUrlPrefix === undefined) {
|
|
21385
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
21386
|
+
}
|
|
21387
|
+
return typeUrlPrefix + "/grafeas.v1.DiscoveryOccurrence.File";
|
|
21388
|
+
};
|
|
21389
|
+
|
|
21390
|
+
return File;
|
|
21391
|
+
})();
|
|
21392
|
+
|
|
21056
21393
|
return DiscoveryOccurrence;
|
|
21057
21394
|
})();
|
|
21058
21395
|
|
|
@@ -24326,6 +24663,7 @@
|
|
|
24326
24663
|
* @property {string|null} [filter] ListOccurrencesRequest filter
|
|
24327
24664
|
* @property {number|null} [pageSize] ListOccurrencesRequest pageSize
|
|
24328
24665
|
* @property {string|null} [pageToken] ListOccurrencesRequest pageToken
|
|
24666
|
+
* @property {boolean|null} [returnPartialSuccess] ListOccurrencesRequest returnPartialSuccess
|
|
24329
24667
|
*/
|
|
24330
24668
|
|
|
24331
24669
|
/**
|
|
@@ -24375,6 +24713,14 @@
|
|
|
24375
24713
|
*/
|
|
24376
24714
|
ListOccurrencesRequest.prototype.pageToken = "";
|
|
24377
24715
|
|
|
24716
|
+
/**
|
|
24717
|
+
* ListOccurrencesRequest returnPartialSuccess.
|
|
24718
|
+
* @member {boolean} returnPartialSuccess
|
|
24719
|
+
* @memberof grafeas.v1.ListOccurrencesRequest
|
|
24720
|
+
* @instance
|
|
24721
|
+
*/
|
|
24722
|
+
ListOccurrencesRequest.prototype.returnPartialSuccess = false;
|
|
24723
|
+
|
|
24378
24724
|
/**
|
|
24379
24725
|
* Creates a new ListOccurrencesRequest instance using the specified properties.
|
|
24380
24726
|
* @function create
|
|
@@ -24407,6 +24753,8 @@
|
|
|
24407
24753
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize);
|
|
24408
24754
|
if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
|
|
24409
24755
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken);
|
|
24756
|
+
if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess"))
|
|
24757
|
+
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.returnPartialSuccess);
|
|
24410
24758
|
return writer;
|
|
24411
24759
|
};
|
|
24412
24760
|
|
|
@@ -24459,6 +24807,10 @@
|
|
|
24459
24807
|
message.pageToken = reader.string();
|
|
24460
24808
|
break;
|
|
24461
24809
|
}
|
|
24810
|
+
case 5: {
|
|
24811
|
+
message.returnPartialSuccess = reader.bool();
|
|
24812
|
+
break;
|
|
24813
|
+
}
|
|
24462
24814
|
default:
|
|
24463
24815
|
reader.skipType(tag & 7);
|
|
24464
24816
|
break;
|
|
@@ -24506,6 +24858,9 @@
|
|
|
24506
24858
|
if (message.pageToken != null && message.hasOwnProperty("pageToken"))
|
|
24507
24859
|
if (!$util.isString(message.pageToken))
|
|
24508
24860
|
return "pageToken: string expected";
|
|
24861
|
+
if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess"))
|
|
24862
|
+
if (typeof message.returnPartialSuccess !== "boolean")
|
|
24863
|
+
return "returnPartialSuccess: boolean expected";
|
|
24509
24864
|
return null;
|
|
24510
24865
|
};
|
|
24511
24866
|
|
|
@@ -24529,6 +24884,8 @@
|
|
|
24529
24884
|
message.pageSize = object.pageSize | 0;
|
|
24530
24885
|
if (object.pageToken != null)
|
|
24531
24886
|
message.pageToken = String(object.pageToken);
|
|
24887
|
+
if (object.returnPartialSuccess != null)
|
|
24888
|
+
message.returnPartialSuccess = Boolean(object.returnPartialSuccess);
|
|
24532
24889
|
return message;
|
|
24533
24890
|
};
|
|
24534
24891
|
|
|
@@ -24550,6 +24907,7 @@
|
|
|
24550
24907
|
object.filter = "";
|
|
24551
24908
|
object.pageSize = 0;
|
|
24552
24909
|
object.pageToken = "";
|
|
24910
|
+
object.returnPartialSuccess = false;
|
|
24553
24911
|
}
|
|
24554
24912
|
if (message.parent != null && message.hasOwnProperty("parent"))
|
|
24555
24913
|
object.parent = message.parent;
|
|
@@ -24559,6 +24917,8 @@
|
|
|
24559
24917
|
object.pageSize = message.pageSize;
|
|
24560
24918
|
if (message.pageToken != null && message.hasOwnProperty("pageToken"))
|
|
24561
24919
|
object.pageToken = message.pageToken;
|
|
24920
|
+
if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess"))
|
|
24921
|
+
object.returnPartialSuccess = message.returnPartialSuccess;
|
|
24562
24922
|
return object;
|
|
24563
24923
|
};
|
|
24564
24924
|
|
|
@@ -24599,6 +24959,7 @@
|
|
|
24599
24959
|
* @interface IListOccurrencesResponse
|
|
24600
24960
|
* @property {Array.<grafeas.v1.IOccurrence>|null} [occurrences] ListOccurrencesResponse occurrences
|
|
24601
24961
|
* @property {string|null} [nextPageToken] ListOccurrencesResponse nextPageToken
|
|
24962
|
+
* @property {Array.<string>|null} [unreachable] ListOccurrencesResponse unreachable
|
|
24602
24963
|
*/
|
|
24603
24964
|
|
|
24604
24965
|
/**
|
|
@@ -24611,6 +24972,7 @@
|
|
|
24611
24972
|
*/
|
|
24612
24973
|
function ListOccurrencesResponse(properties) {
|
|
24613
24974
|
this.occurrences = [];
|
|
24975
|
+
this.unreachable = [];
|
|
24614
24976
|
if (properties)
|
|
24615
24977
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
24616
24978
|
if (properties[keys[i]] != null)
|
|
@@ -24633,6 +24995,14 @@
|
|
|
24633
24995
|
*/
|
|
24634
24996
|
ListOccurrencesResponse.prototype.nextPageToken = "";
|
|
24635
24997
|
|
|
24998
|
+
/**
|
|
24999
|
+
* ListOccurrencesResponse unreachable.
|
|
25000
|
+
* @member {Array.<string>} unreachable
|
|
25001
|
+
* @memberof grafeas.v1.ListOccurrencesResponse
|
|
25002
|
+
* @instance
|
|
25003
|
+
*/
|
|
25004
|
+
ListOccurrencesResponse.prototype.unreachable = $util.emptyArray;
|
|
25005
|
+
|
|
24636
25006
|
/**
|
|
24637
25007
|
* Creates a new ListOccurrencesResponse instance using the specified properties.
|
|
24638
25008
|
* @function create
|
|
@@ -24662,6 +25032,9 @@
|
|
|
24662
25032
|
$root.grafeas.v1.Occurrence.encode(message.occurrences[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
24663
25033
|
if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
|
|
24664
25034
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
|
|
25035
|
+
if (message.unreachable != null && message.unreachable.length)
|
|
25036
|
+
for (var i = 0; i < message.unreachable.length; ++i)
|
|
25037
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]);
|
|
24665
25038
|
return writer;
|
|
24666
25039
|
};
|
|
24667
25040
|
|
|
@@ -24708,6 +25081,12 @@
|
|
|
24708
25081
|
message.nextPageToken = reader.string();
|
|
24709
25082
|
break;
|
|
24710
25083
|
}
|
|
25084
|
+
case 3: {
|
|
25085
|
+
if (!(message.unreachable && message.unreachable.length))
|
|
25086
|
+
message.unreachable = [];
|
|
25087
|
+
message.unreachable.push(reader.string());
|
|
25088
|
+
break;
|
|
25089
|
+
}
|
|
24711
25090
|
default:
|
|
24712
25091
|
reader.skipType(tag & 7);
|
|
24713
25092
|
break;
|
|
@@ -24755,6 +25134,13 @@
|
|
|
24755
25134
|
if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
|
|
24756
25135
|
if (!$util.isString(message.nextPageToken))
|
|
24757
25136
|
return "nextPageToken: string expected";
|
|
25137
|
+
if (message.unreachable != null && message.hasOwnProperty("unreachable")) {
|
|
25138
|
+
if (!Array.isArray(message.unreachable))
|
|
25139
|
+
return "unreachable: array expected";
|
|
25140
|
+
for (var i = 0; i < message.unreachable.length; ++i)
|
|
25141
|
+
if (!$util.isString(message.unreachable[i]))
|
|
25142
|
+
return "unreachable: string[] expected";
|
|
25143
|
+
}
|
|
24758
25144
|
return null;
|
|
24759
25145
|
};
|
|
24760
25146
|
|
|
@@ -24782,6 +25168,13 @@
|
|
|
24782
25168
|
}
|
|
24783
25169
|
if (object.nextPageToken != null)
|
|
24784
25170
|
message.nextPageToken = String(object.nextPageToken);
|
|
25171
|
+
if (object.unreachable) {
|
|
25172
|
+
if (!Array.isArray(object.unreachable))
|
|
25173
|
+
throw TypeError(".grafeas.v1.ListOccurrencesResponse.unreachable: array expected");
|
|
25174
|
+
message.unreachable = [];
|
|
25175
|
+
for (var i = 0; i < object.unreachable.length; ++i)
|
|
25176
|
+
message.unreachable[i] = String(object.unreachable[i]);
|
|
25177
|
+
}
|
|
24785
25178
|
return message;
|
|
24786
25179
|
};
|
|
24787
25180
|
|
|
@@ -24798,8 +25191,10 @@
|
|
|
24798
25191
|
if (!options)
|
|
24799
25192
|
options = {};
|
|
24800
25193
|
var object = {};
|
|
24801
|
-
if (options.arrays || options.defaults)
|
|
25194
|
+
if (options.arrays || options.defaults) {
|
|
24802
25195
|
object.occurrences = [];
|
|
25196
|
+
object.unreachable = [];
|
|
25197
|
+
}
|
|
24803
25198
|
if (options.defaults)
|
|
24804
25199
|
object.nextPageToken = "";
|
|
24805
25200
|
if (message.occurrences && message.occurrences.length) {
|
|
@@ -24809,6 +25204,11 @@
|
|
|
24809
25204
|
}
|
|
24810
25205
|
if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
|
|
24811
25206
|
object.nextPageToken = message.nextPageToken;
|
|
25207
|
+
if (message.unreachable && message.unreachable.length) {
|
|
25208
|
+
object.unreachable = [];
|
|
25209
|
+
for (var j = 0; j < message.unreachable.length; ++j)
|
|
25210
|
+
object.unreachable[j] = message.unreachable[j];
|
|
25211
|
+
}
|
|
24812
25212
|
return object;
|
|
24813
25213
|
};
|
|
24814
25214
|
|
|
@@ -25962,6 +26362,7 @@
|
|
|
25962
26362
|
* @property {string|null} [filter] ListNotesRequest filter
|
|
25963
26363
|
* @property {number|null} [pageSize] ListNotesRequest pageSize
|
|
25964
26364
|
* @property {string|null} [pageToken] ListNotesRequest pageToken
|
|
26365
|
+
* @property {boolean|null} [returnPartialSuccess] ListNotesRequest returnPartialSuccess
|
|
25965
26366
|
*/
|
|
25966
26367
|
|
|
25967
26368
|
/**
|
|
@@ -26011,6 +26412,14 @@
|
|
|
26011
26412
|
*/
|
|
26012
26413
|
ListNotesRequest.prototype.pageToken = "";
|
|
26013
26414
|
|
|
26415
|
+
/**
|
|
26416
|
+
* ListNotesRequest returnPartialSuccess.
|
|
26417
|
+
* @member {boolean} returnPartialSuccess
|
|
26418
|
+
* @memberof grafeas.v1.ListNotesRequest
|
|
26419
|
+
* @instance
|
|
26420
|
+
*/
|
|
26421
|
+
ListNotesRequest.prototype.returnPartialSuccess = false;
|
|
26422
|
+
|
|
26014
26423
|
/**
|
|
26015
26424
|
* Creates a new ListNotesRequest instance using the specified properties.
|
|
26016
26425
|
* @function create
|
|
@@ -26043,6 +26452,8 @@
|
|
|
26043
26452
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize);
|
|
26044
26453
|
if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
|
|
26045
26454
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken);
|
|
26455
|
+
if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess"))
|
|
26456
|
+
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.returnPartialSuccess);
|
|
26046
26457
|
return writer;
|
|
26047
26458
|
};
|
|
26048
26459
|
|
|
@@ -26095,6 +26506,10 @@
|
|
|
26095
26506
|
message.pageToken = reader.string();
|
|
26096
26507
|
break;
|
|
26097
26508
|
}
|
|
26509
|
+
case 5: {
|
|
26510
|
+
message.returnPartialSuccess = reader.bool();
|
|
26511
|
+
break;
|
|
26512
|
+
}
|
|
26098
26513
|
default:
|
|
26099
26514
|
reader.skipType(tag & 7);
|
|
26100
26515
|
break;
|
|
@@ -26142,6 +26557,9 @@
|
|
|
26142
26557
|
if (message.pageToken != null && message.hasOwnProperty("pageToken"))
|
|
26143
26558
|
if (!$util.isString(message.pageToken))
|
|
26144
26559
|
return "pageToken: string expected";
|
|
26560
|
+
if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess"))
|
|
26561
|
+
if (typeof message.returnPartialSuccess !== "boolean")
|
|
26562
|
+
return "returnPartialSuccess: boolean expected";
|
|
26145
26563
|
return null;
|
|
26146
26564
|
};
|
|
26147
26565
|
|
|
@@ -26165,6 +26583,8 @@
|
|
|
26165
26583
|
message.pageSize = object.pageSize | 0;
|
|
26166
26584
|
if (object.pageToken != null)
|
|
26167
26585
|
message.pageToken = String(object.pageToken);
|
|
26586
|
+
if (object.returnPartialSuccess != null)
|
|
26587
|
+
message.returnPartialSuccess = Boolean(object.returnPartialSuccess);
|
|
26168
26588
|
return message;
|
|
26169
26589
|
};
|
|
26170
26590
|
|
|
@@ -26186,6 +26606,7 @@
|
|
|
26186
26606
|
object.filter = "";
|
|
26187
26607
|
object.pageSize = 0;
|
|
26188
26608
|
object.pageToken = "";
|
|
26609
|
+
object.returnPartialSuccess = false;
|
|
26189
26610
|
}
|
|
26190
26611
|
if (message.parent != null && message.hasOwnProperty("parent"))
|
|
26191
26612
|
object.parent = message.parent;
|
|
@@ -26195,6 +26616,8 @@
|
|
|
26195
26616
|
object.pageSize = message.pageSize;
|
|
26196
26617
|
if (message.pageToken != null && message.hasOwnProperty("pageToken"))
|
|
26197
26618
|
object.pageToken = message.pageToken;
|
|
26619
|
+
if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess"))
|
|
26620
|
+
object.returnPartialSuccess = message.returnPartialSuccess;
|
|
26198
26621
|
return object;
|
|
26199
26622
|
};
|
|
26200
26623
|
|
|
@@ -26235,6 +26658,7 @@
|
|
|
26235
26658
|
* @interface IListNotesResponse
|
|
26236
26659
|
* @property {Array.<grafeas.v1.INote>|null} [notes] ListNotesResponse notes
|
|
26237
26660
|
* @property {string|null} [nextPageToken] ListNotesResponse nextPageToken
|
|
26661
|
+
* @property {Array.<string>|null} [unreachable] ListNotesResponse unreachable
|
|
26238
26662
|
*/
|
|
26239
26663
|
|
|
26240
26664
|
/**
|
|
@@ -26247,6 +26671,7 @@
|
|
|
26247
26671
|
*/
|
|
26248
26672
|
function ListNotesResponse(properties) {
|
|
26249
26673
|
this.notes = [];
|
|
26674
|
+
this.unreachable = [];
|
|
26250
26675
|
if (properties)
|
|
26251
26676
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
26252
26677
|
if (properties[keys[i]] != null)
|
|
@@ -26269,6 +26694,14 @@
|
|
|
26269
26694
|
*/
|
|
26270
26695
|
ListNotesResponse.prototype.nextPageToken = "";
|
|
26271
26696
|
|
|
26697
|
+
/**
|
|
26698
|
+
* ListNotesResponse unreachable.
|
|
26699
|
+
* @member {Array.<string>} unreachable
|
|
26700
|
+
* @memberof grafeas.v1.ListNotesResponse
|
|
26701
|
+
* @instance
|
|
26702
|
+
*/
|
|
26703
|
+
ListNotesResponse.prototype.unreachable = $util.emptyArray;
|
|
26704
|
+
|
|
26272
26705
|
/**
|
|
26273
26706
|
* Creates a new ListNotesResponse instance using the specified properties.
|
|
26274
26707
|
* @function create
|
|
@@ -26298,6 +26731,9 @@
|
|
|
26298
26731
|
$root.grafeas.v1.Note.encode(message.notes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
26299
26732
|
if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
|
|
26300
26733
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
|
|
26734
|
+
if (message.unreachable != null && message.unreachable.length)
|
|
26735
|
+
for (var i = 0; i < message.unreachable.length; ++i)
|
|
26736
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]);
|
|
26301
26737
|
return writer;
|
|
26302
26738
|
};
|
|
26303
26739
|
|
|
@@ -26344,6 +26780,12 @@
|
|
|
26344
26780
|
message.nextPageToken = reader.string();
|
|
26345
26781
|
break;
|
|
26346
26782
|
}
|
|
26783
|
+
case 3: {
|
|
26784
|
+
if (!(message.unreachable && message.unreachable.length))
|
|
26785
|
+
message.unreachable = [];
|
|
26786
|
+
message.unreachable.push(reader.string());
|
|
26787
|
+
break;
|
|
26788
|
+
}
|
|
26347
26789
|
default:
|
|
26348
26790
|
reader.skipType(tag & 7);
|
|
26349
26791
|
break;
|
|
@@ -26391,6 +26833,13 @@
|
|
|
26391
26833
|
if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
|
|
26392
26834
|
if (!$util.isString(message.nextPageToken))
|
|
26393
26835
|
return "nextPageToken: string expected";
|
|
26836
|
+
if (message.unreachable != null && message.hasOwnProperty("unreachable")) {
|
|
26837
|
+
if (!Array.isArray(message.unreachable))
|
|
26838
|
+
return "unreachable: array expected";
|
|
26839
|
+
for (var i = 0; i < message.unreachable.length; ++i)
|
|
26840
|
+
if (!$util.isString(message.unreachable[i]))
|
|
26841
|
+
return "unreachable: string[] expected";
|
|
26842
|
+
}
|
|
26394
26843
|
return null;
|
|
26395
26844
|
};
|
|
26396
26845
|
|
|
@@ -26418,6 +26867,13 @@
|
|
|
26418
26867
|
}
|
|
26419
26868
|
if (object.nextPageToken != null)
|
|
26420
26869
|
message.nextPageToken = String(object.nextPageToken);
|
|
26870
|
+
if (object.unreachable) {
|
|
26871
|
+
if (!Array.isArray(object.unreachable))
|
|
26872
|
+
throw TypeError(".grafeas.v1.ListNotesResponse.unreachable: array expected");
|
|
26873
|
+
message.unreachable = [];
|
|
26874
|
+
for (var i = 0; i < object.unreachable.length; ++i)
|
|
26875
|
+
message.unreachable[i] = String(object.unreachable[i]);
|
|
26876
|
+
}
|
|
26421
26877
|
return message;
|
|
26422
26878
|
};
|
|
26423
26879
|
|
|
@@ -26434,8 +26890,10 @@
|
|
|
26434
26890
|
if (!options)
|
|
26435
26891
|
options = {};
|
|
26436
26892
|
var object = {};
|
|
26437
|
-
if (options.arrays || options.defaults)
|
|
26893
|
+
if (options.arrays || options.defaults) {
|
|
26438
26894
|
object.notes = [];
|
|
26895
|
+
object.unreachable = [];
|
|
26896
|
+
}
|
|
26439
26897
|
if (options.defaults)
|
|
26440
26898
|
object.nextPageToken = "";
|
|
26441
26899
|
if (message.notes && message.notes.length) {
|
|
@@ -26445,6 +26903,11 @@
|
|
|
26445
26903
|
}
|
|
26446
26904
|
if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
|
|
26447
26905
|
object.nextPageToken = message.nextPageToken;
|
|
26906
|
+
if (message.unreachable && message.unreachable.length) {
|
|
26907
|
+
object.unreachable = [];
|
|
26908
|
+
for (var j = 0; j < message.unreachable.length; ++j)
|
|
26909
|
+
object.unreachable[j] = message.unreachable[j];
|
|
26910
|
+
}
|
|
26448
26911
|
return object;
|
|
26449
26912
|
};
|
|
26450
26913
|
|
|
@@ -32945,6 +33408,8 @@
|
|
|
32945
33408
|
* @property {grafeas.v1.SecretKind|null} [kind] SecretOccurrence kind
|
|
32946
33409
|
* @property {Array.<grafeas.v1.ISecretLocation>|null} [locations] SecretOccurrence locations
|
|
32947
33410
|
* @property {Array.<grafeas.v1.ISecretStatus>|null} [statuses] SecretOccurrence statuses
|
|
33411
|
+
* @property {google.protobuf.IAny|null} [data] SecretOccurrence data
|
|
33412
|
+
* @property {grafeas.v1.IDigest|null} [digest] SecretOccurrence digest
|
|
32948
33413
|
*/
|
|
32949
33414
|
|
|
32950
33415
|
/**
|
|
@@ -32988,6 +33453,22 @@
|
|
|
32988
33453
|
*/
|
|
32989
33454
|
SecretOccurrence.prototype.statuses = $util.emptyArray;
|
|
32990
33455
|
|
|
33456
|
+
/**
|
|
33457
|
+
* SecretOccurrence data.
|
|
33458
|
+
* @member {google.protobuf.IAny|null|undefined} data
|
|
33459
|
+
* @memberof grafeas.v1.SecretOccurrence
|
|
33460
|
+
* @instance
|
|
33461
|
+
*/
|
|
33462
|
+
SecretOccurrence.prototype.data = null;
|
|
33463
|
+
|
|
33464
|
+
/**
|
|
33465
|
+
* SecretOccurrence digest.
|
|
33466
|
+
* @member {grafeas.v1.IDigest|null|undefined} digest
|
|
33467
|
+
* @memberof grafeas.v1.SecretOccurrence
|
|
33468
|
+
* @instance
|
|
33469
|
+
*/
|
|
33470
|
+
SecretOccurrence.prototype.digest = null;
|
|
33471
|
+
|
|
32991
33472
|
/**
|
|
32992
33473
|
* Creates a new SecretOccurrence instance using the specified properties.
|
|
32993
33474
|
* @function create
|
|
@@ -33020,6 +33501,10 @@
|
|
|
33020
33501
|
if (message.statuses != null && message.statuses.length)
|
|
33021
33502
|
for (var i = 0; i < message.statuses.length; ++i)
|
|
33022
33503
|
$root.grafeas.v1.SecretStatus.encode(message.statuses[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
33504
|
+
if (message.data != null && Object.hasOwnProperty.call(message, "data"))
|
|
33505
|
+
$root.google.protobuf.Any.encode(message.data, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
33506
|
+
if (message.digest != null && Object.hasOwnProperty.call(message, "digest"))
|
|
33507
|
+
$root.grafeas.v1.Digest.encode(message.digest, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
33023
33508
|
return writer;
|
|
33024
33509
|
};
|
|
33025
33510
|
|
|
@@ -33072,6 +33557,14 @@
|
|
|
33072
33557
|
message.statuses.push($root.grafeas.v1.SecretStatus.decode(reader, reader.uint32()));
|
|
33073
33558
|
break;
|
|
33074
33559
|
}
|
|
33560
|
+
case 4: {
|
|
33561
|
+
message.data = $root.google.protobuf.Any.decode(reader, reader.uint32());
|
|
33562
|
+
break;
|
|
33563
|
+
}
|
|
33564
|
+
case 5: {
|
|
33565
|
+
message.digest = $root.grafeas.v1.Digest.decode(reader, reader.uint32());
|
|
33566
|
+
break;
|
|
33567
|
+
}
|
|
33075
33568
|
default:
|
|
33076
33569
|
reader.skipType(tag & 7);
|
|
33077
33570
|
break;
|
|
@@ -33114,6 +33607,26 @@
|
|
|
33114
33607
|
case 0:
|
|
33115
33608
|
case 1:
|
|
33116
33609
|
case 2:
|
|
33610
|
+
case 3:
|
|
33611
|
+
case 4:
|
|
33612
|
+
case 5:
|
|
33613
|
+
case 6:
|
|
33614
|
+
case 7:
|
|
33615
|
+
case 8:
|
|
33616
|
+
case 9:
|
|
33617
|
+
case 10:
|
|
33618
|
+
case 11:
|
|
33619
|
+
case 12:
|
|
33620
|
+
case 13:
|
|
33621
|
+
case 14:
|
|
33622
|
+
case 15:
|
|
33623
|
+
case 16:
|
|
33624
|
+
case 17:
|
|
33625
|
+
case 18:
|
|
33626
|
+
case 19:
|
|
33627
|
+
case 20:
|
|
33628
|
+
case 21:
|
|
33629
|
+
case 22:
|
|
33117
33630
|
break;
|
|
33118
33631
|
}
|
|
33119
33632
|
if (message.locations != null && message.hasOwnProperty("locations")) {
|
|
@@ -33134,6 +33647,16 @@
|
|
|
33134
33647
|
return "statuses." + error;
|
|
33135
33648
|
}
|
|
33136
33649
|
}
|
|
33650
|
+
if (message.data != null && message.hasOwnProperty("data")) {
|
|
33651
|
+
var error = $root.google.protobuf.Any.verify(message.data);
|
|
33652
|
+
if (error)
|
|
33653
|
+
return "data." + error;
|
|
33654
|
+
}
|
|
33655
|
+
if (message.digest != null && message.hasOwnProperty("digest")) {
|
|
33656
|
+
var error = $root.grafeas.v1.Digest.verify(message.digest);
|
|
33657
|
+
if (error)
|
|
33658
|
+
return "digest." + error;
|
|
33659
|
+
}
|
|
33137
33660
|
return null;
|
|
33138
33661
|
};
|
|
33139
33662
|
|
|
@@ -33168,6 +33691,86 @@
|
|
|
33168
33691
|
case 2:
|
|
33169
33692
|
message.kind = 2;
|
|
33170
33693
|
break;
|
|
33694
|
+
case "SECRET_KIND_GCP_API_KEY":
|
|
33695
|
+
case 3:
|
|
33696
|
+
message.kind = 3;
|
|
33697
|
+
break;
|
|
33698
|
+
case "SECRET_KIND_GCP_OAUTH2_CLIENT_CREDENTIALS":
|
|
33699
|
+
case 4:
|
|
33700
|
+
message.kind = 4;
|
|
33701
|
+
break;
|
|
33702
|
+
case "SECRET_KIND_GCP_OAUTH2_ACCESS_TOKEN":
|
|
33703
|
+
case 5:
|
|
33704
|
+
message.kind = 5;
|
|
33705
|
+
break;
|
|
33706
|
+
case "SECRET_KIND_ANTHROPIC_ADMIN_API_KEY":
|
|
33707
|
+
case 6:
|
|
33708
|
+
message.kind = 6;
|
|
33709
|
+
break;
|
|
33710
|
+
case "SECRET_KIND_ANTHROPIC_API_KEY":
|
|
33711
|
+
case 7:
|
|
33712
|
+
message.kind = 7;
|
|
33713
|
+
break;
|
|
33714
|
+
case "SECRET_KIND_AZURE_ACCESS_TOKEN":
|
|
33715
|
+
case 8:
|
|
33716
|
+
message.kind = 8;
|
|
33717
|
+
break;
|
|
33718
|
+
case "SECRET_KIND_AZURE_IDENTITY_TOKEN":
|
|
33719
|
+
case 9:
|
|
33720
|
+
message.kind = 9;
|
|
33721
|
+
break;
|
|
33722
|
+
case "SECRET_KIND_DOCKER_HUB_PERSONAL_ACCESS_TOKEN":
|
|
33723
|
+
case 10:
|
|
33724
|
+
message.kind = 10;
|
|
33725
|
+
break;
|
|
33726
|
+
case "SECRET_KIND_GITHUB_APP_REFRESH_TOKEN":
|
|
33727
|
+
case 11:
|
|
33728
|
+
message.kind = 11;
|
|
33729
|
+
break;
|
|
33730
|
+
case "SECRET_KIND_GITHUB_APP_SERVER_TO_SERVER_TOKEN":
|
|
33731
|
+
case 12:
|
|
33732
|
+
message.kind = 12;
|
|
33733
|
+
break;
|
|
33734
|
+
case "SECRET_KIND_GITHUB_APP_USER_TO_SERVER_TOKEN":
|
|
33735
|
+
case 13:
|
|
33736
|
+
message.kind = 13;
|
|
33737
|
+
break;
|
|
33738
|
+
case "SECRET_KIND_GITHUB_CLASSIC_PERSONAL_ACCESS_TOKEN":
|
|
33739
|
+
case 14:
|
|
33740
|
+
message.kind = 14;
|
|
33741
|
+
break;
|
|
33742
|
+
case "SECRET_KIND_GITHUB_FINE_GRAINED_PERSONAL_ACCESS_TOKEN":
|
|
33743
|
+
case 15:
|
|
33744
|
+
message.kind = 15;
|
|
33745
|
+
break;
|
|
33746
|
+
case "SECRET_KIND_GITHUB_OAUTH_TOKEN":
|
|
33747
|
+
case 16:
|
|
33748
|
+
message.kind = 16;
|
|
33749
|
+
break;
|
|
33750
|
+
case "SECRET_KIND_HUGGINGFACE_API_KEY":
|
|
33751
|
+
case 17:
|
|
33752
|
+
message.kind = 17;
|
|
33753
|
+
break;
|
|
33754
|
+
case "SECRET_KIND_OPENAI_API_KEY":
|
|
33755
|
+
case 18:
|
|
33756
|
+
message.kind = 18;
|
|
33757
|
+
break;
|
|
33758
|
+
case "SECRET_KIND_PERPLEXITY_API_KEY":
|
|
33759
|
+
case 19:
|
|
33760
|
+
message.kind = 19;
|
|
33761
|
+
break;
|
|
33762
|
+
case "SECRET_KIND_STRIPE_SECRET_KEY":
|
|
33763
|
+
case 20:
|
|
33764
|
+
message.kind = 20;
|
|
33765
|
+
break;
|
|
33766
|
+
case "SECRET_KIND_STRIPE_RESTRICTED_KEY":
|
|
33767
|
+
case 21:
|
|
33768
|
+
message.kind = 21;
|
|
33769
|
+
break;
|
|
33770
|
+
case "SECRET_KIND_STRIPE_WEBHOOK_SECRET":
|
|
33771
|
+
case 22:
|
|
33772
|
+
message.kind = 22;
|
|
33773
|
+
break;
|
|
33171
33774
|
}
|
|
33172
33775
|
if (object.locations) {
|
|
33173
33776
|
if (!Array.isArray(object.locations))
|
|
@@ -33189,6 +33792,16 @@
|
|
|
33189
33792
|
message.statuses[i] = $root.grafeas.v1.SecretStatus.fromObject(object.statuses[i]);
|
|
33190
33793
|
}
|
|
33191
33794
|
}
|
|
33795
|
+
if (object.data != null) {
|
|
33796
|
+
if (typeof object.data !== "object")
|
|
33797
|
+
throw TypeError(".grafeas.v1.SecretOccurrence.data: object expected");
|
|
33798
|
+
message.data = $root.google.protobuf.Any.fromObject(object.data);
|
|
33799
|
+
}
|
|
33800
|
+
if (object.digest != null) {
|
|
33801
|
+
if (typeof object.digest !== "object")
|
|
33802
|
+
throw TypeError(".grafeas.v1.SecretOccurrence.digest: object expected");
|
|
33803
|
+
message.digest = $root.grafeas.v1.Digest.fromObject(object.digest);
|
|
33804
|
+
}
|
|
33192
33805
|
return message;
|
|
33193
33806
|
};
|
|
33194
33807
|
|
|
@@ -33209,8 +33822,11 @@
|
|
|
33209
33822
|
object.locations = [];
|
|
33210
33823
|
object.statuses = [];
|
|
33211
33824
|
}
|
|
33212
|
-
if (options.defaults)
|
|
33825
|
+
if (options.defaults) {
|
|
33213
33826
|
object.kind = options.enums === String ? "SECRET_KIND_UNSPECIFIED" : 0;
|
|
33827
|
+
object.data = null;
|
|
33828
|
+
object.digest = null;
|
|
33829
|
+
}
|
|
33214
33830
|
if (message.kind != null && message.hasOwnProperty("kind"))
|
|
33215
33831
|
object.kind = options.enums === String ? $root.grafeas.v1.SecretKind[message.kind] === undefined ? message.kind : $root.grafeas.v1.SecretKind[message.kind] : message.kind;
|
|
33216
33832
|
if (message.locations && message.locations.length) {
|
|
@@ -33223,6 +33839,10 @@
|
|
|
33223
33839
|
for (var j = 0; j < message.statuses.length; ++j)
|
|
33224
33840
|
object.statuses[j] = $root.grafeas.v1.SecretStatus.toObject(message.statuses[j], options);
|
|
33225
33841
|
}
|
|
33842
|
+
if (message.data != null && message.hasOwnProperty("data"))
|
|
33843
|
+
object.data = $root.google.protobuf.Any.toObject(message.data, options);
|
|
33844
|
+
if (message.digest != null && message.hasOwnProperty("digest"))
|
|
33845
|
+
object.digest = $root.grafeas.v1.Digest.toObject(message.digest, options);
|
|
33226
33846
|
return object;
|
|
33227
33847
|
};
|
|
33228
33848
|
|
|
@@ -33795,12 +34415,52 @@
|
|
|
33795
34415
|
* @property {number} SECRET_KIND_UNSPECIFIED=0 SECRET_KIND_UNSPECIFIED value
|
|
33796
34416
|
* @property {number} SECRET_KIND_UNKNOWN=1 SECRET_KIND_UNKNOWN value
|
|
33797
34417
|
* @property {number} SECRET_KIND_GCP_SERVICE_ACCOUNT_KEY=2 SECRET_KIND_GCP_SERVICE_ACCOUNT_KEY value
|
|
34418
|
+
* @property {number} SECRET_KIND_GCP_API_KEY=3 SECRET_KIND_GCP_API_KEY value
|
|
34419
|
+
* @property {number} SECRET_KIND_GCP_OAUTH2_CLIENT_CREDENTIALS=4 SECRET_KIND_GCP_OAUTH2_CLIENT_CREDENTIALS value
|
|
34420
|
+
* @property {number} SECRET_KIND_GCP_OAUTH2_ACCESS_TOKEN=5 SECRET_KIND_GCP_OAUTH2_ACCESS_TOKEN value
|
|
34421
|
+
* @property {number} SECRET_KIND_ANTHROPIC_ADMIN_API_KEY=6 SECRET_KIND_ANTHROPIC_ADMIN_API_KEY value
|
|
34422
|
+
* @property {number} SECRET_KIND_ANTHROPIC_API_KEY=7 SECRET_KIND_ANTHROPIC_API_KEY value
|
|
34423
|
+
* @property {number} SECRET_KIND_AZURE_ACCESS_TOKEN=8 SECRET_KIND_AZURE_ACCESS_TOKEN value
|
|
34424
|
+
* @property {number} SECRET_KIND_AZURE_IDENTITY_TOKEN=9 SECRET_KIND_AZURE_IDENTITY_TOKEN value
|
|
34425
|
+
* @property {number} SECRET_KIND_DOCKER_HUB_PERSONAL_ACCESS_TOKEN=10 SECRET_KIND_DOCKER_HUB_PERSONAL_ACCESS_TOKEN value
|
|
34426
|
+
* @property {number} SECRET_KIND_GITHUB_APP_REFRESH_TOKEN=11 SECRET_KIND_GITHUB_APP_REFRESH_TOKEN value
|
|
34427
|
+
* @property {number} SECRET_KIND_GITHUB_APP_SERVER_TO_SERVER_TOKEN=12 SECRET_KIND_GITHUB_APP_SERVER_TO_SERVER_TOKEN value
|
|
34428
|
+
* @property {number} SECRET_KIND_GITHUB_APP_USER_TO_SERVER_TOKEN=13 SECRET_KIND_GITHUB_APP_USER_TO_SERVER_TOKEN value
|
|
34429
|
+
* @property {number} SECRET_KIND_GITHUB_CLASSIC_PERSONAL_ACCESS_TOKEN=14 SECRET_KIND_GITHUB_CLASSIC_PERSONAL_ACCESS_TOKEN value
|
|
34430
|
+
* @property {number} SECRET_KIND_GITHUB_FINE_GRAINED_PERSONAL_ACCESS_TOKEN=15 SECRET_KIND_GITHUB_FINE_GRAINED_PERSONAL_ACCESS_TOKEN value
|
|
34431
|
+
* @property {number} SECRET_KIND_GITHUB_OAUTH_TOKEN=16 SECRET_KIND_GITHUB_OAUTH_TOKEN value
|
|
34432
|
+
* @property {number} SECRET_KIND_HUGGINGFACE_API_KEY=17 SECRET_KIND_HUGGINGFACE_API_KEY value
|
|
34433
|
+
* @property {number} SECRET_KIND_OPENAI_API_KEY=18 SECRET_KIND_OPENAI_API_KEY value
|
|
34434
|
+
* @property {number} SECRET_KIND_PERPLEXITY_API_KEY=19 SECRET_KIND_PERPLEXITY_API_KEY value
|
|
34435
|
+
* @property {number} SECRET_KIND_STRIPE_SECRET_KEY=20 SECRET_KIND_STRIPE_SECRET_KEY value
|
|
34436
|
+
* @property {number} SECRET_KIND_STRIPE_RESTRICTED_KEY=21 SECRET_KIND_STRIPE_RESTRICTED_KEY value
|
|
34437
|
+
* @property {number} SECRET_KIND_STRIPE_WEBHOOK_SECRET=22 SECRET_KIND_STRIPE_WEBHOOK_SECRET value
|
|
33798
34438
|
*/
|
|
33799
34439
|
v1.SecretKind = (function() {
|
|
33800
34440
|
var valuesById = {}, values = Object.create(valuesById);
|
|
33801
34441
|
values[valuesById[0] = "SECRET_KIND_UNSPECIFIED"] = 0;
|
|
33802
34442
|
values[valuesById[1] = "SECRET_KIND_UNKNOWN"] = 1;
|
|
33803
34443
|
values[valuesById[2] = "SECRET_KIND_GCP_SERVICE_ACCOUNT_KEY"] = 2;
|
|
34444
|
+
values[valuesById[3] = "SECRET_KIND_GCP_API_KEY"] = 3;
|
|
34445
|
+
values[valuesById[4] = "SECRET_KIND_GCP_OAUTH2_CLIENT_CREDENTIALS"] = 4;
|
|
34446
|
+
values[valuesById[5] = "SECRET_KIND_GCP_OAUTH2_ACCESS_TOKEN"] = 5;
|
|
34447
|
+
values[valuesById[6] = "SECRET_KIND_ANTHROPIC_ADMIN_API_KEY"] = 6;
|
|
34448
|
+
values[valuesById[7] = "SECRET_KIND_ANTHROPIC_API_KEY"] = 7;
|
|
34449
|
+
values[valuesById[8] = "SECRET_KIND_AZURE_ACCESS_TOKEN"] = 8;
|
|
34450
|
+
values[valuesById[9] = "SECRET_KIND_AZURE_IDENTITY_TOKEN"] = 9;
|
|
34451
|
+
values[valuesById[10] = "SECRET_KIND_DOCKER_HUB_PERSONAL_ACCESS_TOKEN"] = 10;
|
|
34452
|
+
values[valuesById[11] = "SECRET_KIND_GITHUB_APP_REFRESH_TOKEN"] = 11;
|
|
34453
|
+
values[valuesById[12] = "SECRET_KIND_GITHUB_APP_SERVER_TO_SERVER_TOKEN"] = 12;
|
|
34454
|
+
values[valuesById[13] = "SECRET_KIND_GITHUB_APP_USER_TO_SERVER_TOKEN"] = 13;
|
|
34455
|
+
values[valuesById[14] = "SECRET_KIND_GITHUB_CLASSIC_PERSONAL_ACCESS_TOKEN"] = 14;
|
|
34456
|
+
values[valuesById[15] = "SECRET_KIND_GITHUB_FINE_GRAINED_PERSONAL_ACCESS_TOKEN"] = 15;
|
|
34457
|
+
values[valuesById[16] = "SECRET_KIND_GITHUB_OAUTH_TOKEN"] = 16;
|
|
34458
|
+
values[valuesById[17] = "SECRET_KIND_HUGGINGFACE_API_KEY"] = 17;
|
|
34459
|
+
values[valuesById[18] = "SECRET_KIND_OPENAI_API_KEY"] = 18;
|
|
34460
|
+
values[valuesById[19] = "SECRET_KIND_PERPLEXITY_API_KEY"] = 19;
|
|
34461
|
+
values[valuesById[20] = "SECRET_KIND_STRIPE_SECRET_KEY"] = 20;
|
|
34462
|
+
values[valuesById[21] = "SECRET_KIND_STRIPE_RESTRICTED_KEY"] = 21;
|
|
34463
|
+
values[valuesById[22] = "SECRET_KIND_STRIPE_WEBHOOK_SECRET"] = 22;
|
|
33804
34464
|
return values;
|
|
33805
34465
|
})();
|
|
33806
34466
|
|
|
@@ -39103,6 +39763,7 @@
|
|
|
39103
39763
|
* @property {grafeas.v1.ICVSS|null} [cvssV2] VulnerabilityOccurrence cvssV2
|
|
39104
39764
|
* @property {grafeas.v1.VulnerabilityOccurrence.IVexAssessment|null} [vexAssessment] VulnerabilityOccurrence vexAssessment
|
|
39105
39765
|
* @property {string|null} [extraDetails] VulnerabilityOccurrence extraDetails
|
|
39766
|
+
* @property {grafeas.v1.IRisk|null} [risk] VulnerabilityOccurrence risk
|
|
39106
39767
|
*/
|
|
39107
39768
|
|
|
39108
39769
|
/**
|
|
@@ -39234,6 +39895,14 @@
|
|
|
39234
39895
|
*/
|
|
39235
39896
|
VulnerabilityOccurrence.prototype.extraDetails = "";
|
|
39236
39897
|
|
|
39898
|
+
/**
|
|
39899
|
+
* VulnerabilityOccurrence risk.
|
|
39900
|
+
* @member {grafeas.v1.IRisk|null|undefined} risk
|
|
39901
|
+
* @memberof grafeas.v1.VulnerabilityOccurrence
|
|
39902
|
+
* @instance
|
|
39903
|
+
*/
|
|
39904
|
+
VulnerabilityOccurrence.prototype.risk = null;
|
|
39905
|
+
|
|
39237
39906
|
/**
|
|
39238
39907
|
* Creates a new VulnerabilityOccurrence instance using the specified properties.
|
|
39239
39908
|
* @function create
|
|
@@ -39288,6 +39957,8 @@
|
|
|
39288
39957
|
$root.grafeas.v1.VulnerabilityOccurrence.VexAssessment.encode(message.vexAssessment, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
|
39289
39958
|
if (message.extraDetails != null && Object.hasOwnProperty.call(message, "extraDetails"))
|
|
39290
39959
|
writer.uint32(/* id 14, wireType 2 =*/114).string(message.extraDetails);
|
|
39960
|
+
if (message.risk != null && Object.hasOwnProperty.call(message, "risk"))
|
|
39961
|
+
$root.grafeas.v1.Risk.encode(message.risk, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
|
|
39291
39962
|
return writer;
|
|
39292
39963
|
};
|
|
39293
39964
|
|
|
@@ -39384,6 +40055,10 @@
|
|
|
39384
40055
|
message.extraDetails = reader.string();
|
|
39385
40056
|
break;
|
|
39386
40057
|
}
|
|
40058
|
+
case 15: {
|
|
40059
|
+
message.risk = $root.grafeas.v1.Risk.decode(reader, reader.uint32());
|
|
40060
|
+
break;
|
|
40061
|
+
}
|
|
39387
40062
|
default:
|
|
39388
40063
|
reader.skipType(tag & 7);
|
|
39389
40064
|
break;
|
|
@@ -39503,6 +40178,11 @@
|
|
|
39503
40178
|
if (message.extraDetails != null && message.hasOwnProperty("extraDetails"))
|
|
39504
40179
|
if (!$util.isString(message.extraDetails))
|
|
39505
40180
|
return "extraDetails: string expected";
|
|
40181
|
+
if (message.risk != null && message.hasOwnProperty("risk")) {
|
|
40182
|
+
var error = $root.grafeas.v1.Risk.verify(message.risk);
|
|
40183
|
+
if (error)
|
|
40184
|
+
return "risk." + error;
|
|
40185
|
+
}
|
|
39506
40186
|
return null;
|
|
39507
40187
|
};
|
|
39508
40188
|
|
|
@@ -39649,6 +40329,11 @@
|
|
|
39649
40329
|
}
|
|
39650
40330
|
if (object.extraDetails != null)
|
|
39651
40331
|
message.extraDetails = String(object.extraDetails);
|
|
40332
|
+
if (object.risk != null) {
|
|
40333
|
+
if (typeof object.risk !== "object")
|
|
40334
|
+
throw TypeError(".grafeas.v1.VulnerabilityOccurrence.risk: object expected");
|
|
40335
|
+
message.risk = $root.grafeas.v1.Risk.fromObject(object.risk);
|
|
40336
|
+
}
|
|
39652
40337
|
return message;
|
|
39653
40338
|
};
|
|
39654
40339
|
|
|
@@ -39682,6 +40367,7 @@
|
|
|
39682
40367
|
object.cvssV2 = null;
|
|
39683
40368
|
object.vexAssessment = null;
|
|
39684
40369
|
object.extraDetails = "";
|
|
40370
|
+
object.risk = null;
|
|
39685
40371
|
}
|
|
39686
40372
|
if (message.type != null && message.hasOwnProperty("type"))
|
|
39687
40373
|
object.type = message.type;
|
|
@@ -39717,6 +40403,8 @@
|
|
|
39717
40403
|
object.vexAssessment = $root.grafeas.v1.VulnerabilityOccurrence.VexAssessment.toObject(message.vexAssessment, options);
|
|
39718
40404
|
if (message.extraDetails != null && message.hasOwnProperty("extraDetails"))
|
|
39719
40405
|
object.extraDetails = message.extraDetails;
|
|
40406
|
+
if (message.risk != null && message.hasOwnProperty("risk"))
|
|
40407
|
+
object.risk = $root.grafeas.v1.Risk.toObject(message.risk, options);
|
|
39720
40408
|
return object;
|
|
39721
40409
|
};
|
|
39722
40410
|
|
|
@@ -40699,6 +41387,679 @@
|
|
|
40699
41387
|
return VulnerabilityOccurrence;
|
|
40700
41388
|
})();
|
|
40701
41389
|
|
|
41390
|
+
v1.Risk = (function() {
|
|
41391
|
+
|
|
41392
|
+
/**
|
|
41393
|
+
* Properties of a Risk.
|
|
41394
|
+
* @memberof grafeas.v1
|
|
41395
|
+
* @interface IRisk
|
|
41396
|
+
* @property {grafeas.v1.ICISAKnownExploitedVulnerabilities|null} [cisaKev] Risk cisaKev
|
|
41397
|
+
* @property {grafeas.v1.IExploitPredictionScoringSystem|null} [epss] Risk epss
|
|
41398
|
+
*/
|
|
41399
|
+
|
|
41400
|
+
/**
|
|
41401
|
+
* Constructs a new Risk.
|
|
41402
|
+
* @memberof grafeas.v1
|
|
41403
|
+
* @classdesc Represents a Risk.
|
|
41404
|
+
* @implements IRisk
|
|
41405
|
+
* @constructor
|
|
41406
|
+
* @param {grafeas.v1.IRisk=} [properties] Properties to set
|
|
41407
|
+
*/
|
|
41408
|
+
function Risk(properties) {
|
|
41409
|
+
if (properties)
|
|
41410
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
41411
|
+
if (properties[keys[i]] != null)
|
|
41412
|
+
this[keys[i]] = properties[keys[i]];
|
|
41413
|
+
}
|
|
41414
|
+
|
|
41415
|
+
/**
|
|
41416
|
+
* Risk cisaKev.
|
|
41417
|
+
* @member {grafeas.v1.ICISAKnownExploitedVulnerabilities|null|undefined} cisaKev
|
|
41418
|
+
* @memberof grafeas.v1.Risk
|
|
41419
|
+
* @instance
|
|
41420
|
+
*/
|
|
41421
|
+
Risk.prototype.cisaKev = null;
|
|
41422
|
+
|
|
41423
|
+
/**
|
|
41424
|
+
* Risk epss.
|
|
41425
|
+
* @member {grafeas.v1.IExploitPredictionScoringSystem|null|undefined} epss
|
|
41426
|
+
* @memberof grafeas.v1.Risk
|
|
41427
|
+
* @instance
|
|
41428
|
+
*/
|
|
41429
|
+
Risk.prototype.epss = null;
|
|
41430
|
+
|
|
41431
|
+
/**
|
|
41432
|
+
* Creates a new Risk instance using the specified properties.
|
|
41433
|
+
* @function create
|
|
41434
|
+
* @memberof grafeas.v1.Risk
|
|
41435
|
+
* @static
|
|
41436
|
+
* @param {grafeas.v1.IRisk=} [properties] Properties to set
|
|
41437
|
+
* @returns {grafeas.v1.Risk} Risk instance
|
|
41438
|
+
*/
|
|
41439
|
+
Risk.create = function create(properties) {
|
|
41440
|
+
return new Risk(properties);
|
|
41441
|
+
};
|
|
41442
|
+
|
|
41443
|
+
/**
|
|
41444
|
+
* Encodes the specified Risk message. Does not implicitly {@link grafeas.v1.Risk.verify|verify} messages.
|
|
41445
|
+
* @function encode
|
|
41446
|
+
* @memberof grafeas.v1.Risk
|
|
41447
|
+
* @static
|
|
41448
|
+
* @param {grafeas.v1.IRisk} message Risk message or plain object to encode
|
|
41449
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41450
|
+
* @returns {$protobuf.Writer} Writer
|
|
41451
|
+
*/
|
|
41452
|
+
Risk.encode = function encode(message, writer) {
|
|
41453
|
+
if (!writer)
|
|
41454
|
+
writer = $Writer.create();
|
|
41455
|
+
if (message.cisaKev != null && Object.hasOwnProperty.call(message, "cisaKev"))
|
|
41456
|
+
$root.grafeas.v1.CISAKnownExploitedVulnerabilities.encode(message.cisaKev, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
41457
|
+
if (message.epss != null && Object.hasOwnProperty.call(message, "epss"))
|
|
41458
|
+
$root.grafeas.v1.ExploitPredictionScoringSystem.encode(message.epss, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
41459
|
+
return writer;
|
|
41460
|
+
};
|
|
41461
|
+
|
|
41462
|
+
/**
|
|
41463
|
+
* Encodes the specified Risk message, length delimited. Does not implicitly {@link grafeas.v1.Risk.verify|verify} messages.
|
|
41464
|
+
* @function encodeDelimited
|
|
41465
|
+
* @memberof grafeas.v1.Risk
|
|
41466
|
+
* @static
|
|
41467
|
+
* @param {grafeas.v1.IRisk} message Risk message or plain object to encode
|
|
41468
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41469
|
+
* @returns {$protobuf.Writer} Writer
|
|
41470
|
+
*/
|
|
41471
|
+
Risk.encodeDelimited = function encodeDelimited(message, writer) {
|
|
41472
|
+
return this.encode(message, writer).ldelim();
|
|
41473
|
+
};
|
|
41474
|
+
|
|
41475
|
+
/**
|
|
41476
|
+
* Decodes a Risk message from the specified reader or buffer.
|
|
41477
|
+
* @function decode
|
|
41478
|
+
* @memberof grafeas.v1.Risk
|
|
41479
|
+
* @static
|
|
41480
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41481
|
+
* @param {number} [length] Message length if known beforehand
|
|
41482
|
+
* @returns {grafeas.v1.Risk} Risk
|
|
41483
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41484
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41485
|
+
*/
|
|
41486
|
+
Risk.decode = function decode(reader, length, error) {
|
|
41487
|
+
if (!(reader instanceof $Reader))
|
|
41488
|
+
reader = $Reader.create(reader);
|
|
41489
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.grafeas.v1.Risk();
|
|
41490
|
+
while (reader.pos < end) {
|
|
41491
|
+
var tag = reader.uint32();
|
|
41492
|
+
if (tag === error)
|
|
41493
|
+
break;
|
|
41494
|
+
switch (tag >>> 3) {
|
|
41495
|
+
case 1: {
|
|
41496
|
+
message.cisaKev = $root.grafeas.v1.CISAKnownExploitedVulnerabilities.decode(reader, reader.uint32());
|
|
41497
|
+
break;
|
|
41498
|
+
}
|
|
41499
|
+
case 2: {
|
|
41500
|
+
message.epss = $root.grafeas.v1.ExploitPredictionScoringSystem.decode(reader, reader.uint32());
|
|
41501
|
+
break;
|
|
41502
|
+
}
|
|
41503
|
+
default:
|
|
41504
|
+
reader.skipType(tag & 7);
|
|
41505
|
+
break;
|
|
41506
|
+
}
|
|
41507
|
+
}
|
|
41508
|
+
return message;
|
|
41509
|
+
};
|
|
41510
|
+
|
|
41511
|
+
/**
|
|
41512
|
+
* Decodes a Risk message from the specified reader or buffer, length delimited.
|
|
41513
|
+
* @function decodeDelimited
|
|
41514
|
+
* @memberof grafeas.v1.Risk
|
|
41515
|
+
* @static
|
|
41516
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41517
|
+
* @returns {grafeas.v1.Risk} Risk
|
|
41518
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41519
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41520
|
+
*/
|
|
41521
|
+
Risk.decodeDelimited = function decodeDelimited(reader) {
|
|
41522
|
+
if (!(reader instanceof $Reader))
|
|
41523
|
+
reader = new $Reader(reader);
|
|
41524
|
+
return this.decode(reader, reader.uint32());
|
|
41525
|
+
};
|
|
41526
|
+
|
|
41527
|
+
/**
|
|
41528
|
+
* Verifies a Risk message.
|
|
41529
|
+
* @function verify
|
|
41530
|
+
* @memberof grafeas.v1.Risk
|
|
41531
|
+
* @static
|
|
41532
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
41533
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
41534
|
+
*/
|
|
41535
|
+
Risk.verify = function verify(message) {
|
|
41536
|
+
if (typeof message !== "object" || message === null)
|
|
41537
|
+
return "object expected";
|
|
41538
|
+
if (message.cisaKev != null && message.hasOwnProperty("cisaKev")) {
|
|
41539
|
+
var error = $root.grafeas.v1.CISAKnownExploitedVulnerabilities.verify(message.cisaKev);
|
|
41540
|
+
if (error)
|
|
41541
|
+
return "cisaKev." + error;
|
|
41542
|
+
}
|
|
41543
|
+
if (message.epss != null && message.hasOwnProperty("epss")) {
|
|
41544
|
+
var error = $root.grafeas.v1.ExploitPredictionScoringSystem.verify(message.epss);
|
|
41545
|
+
if (error)
|
|
41546
|
+
return "epss." + error;
|
|
41547
|
+
}
|
|
41548
|
+
return null;
|
|
41549
|
+
};
|
|
41550
|
+
|
|
41551
|
+
/**
|
|
41552
|
+
* Creates a Risk message from a plain object. Also converts values to their respective internal types.
|
|
41553
|
+
* @function fromObject
|
|
41554
|
+
* @memberof grafeas.v1.Risk
|
|
41555
|
+
* @static
|
|
41556
|
+
* @param {Object.<string,*>} object Plain object
|
|
41557
|
+
* @returns {grafeas.v1.Risk} Risk
|
|
41558
|
+
*/
|
|
41559
|
+
Risk.fromObject = function fromObject(object) {
|
|
41560
|
+
if (object instanceof $root.grafeas.v1.Risk)
|
|
41561
|
+
return object;
|
|
41562
|
+
var message = new $root.grafeas.v1.Risk();
|
|
41563
|
+
if (object.cisaKev != null) {
|
|
41564
|
+
if (typeof object.cisaKev !== "object")
|
|
41565
|
+
throw TypeError(".grafeas.v1.Risk.cisaKev: object expected");
|
|
41566
|
+
message.cisaKev = $root.grafeas.v1.CISAKnownExploitedVulnerabilities.fromObject(object.cisaKev);
|
|
41567
|
+
}
|
|
41568
|
+
if (object.epss != null) {
|
|
41569
|
+
if (typeof object.epss !== "object")
|
|
41570
|
+
throw TypeError(".grafeas.v1.Risk.epss: object expected");
|
|
41571
|
+
message.epss = $root.grafeas.v1.ExploitPredictionScoringSystem.fromObject(object.epss);
|
|
41572
|
+
}
|
|
41573
|
+
return message;
|
|
41574
|
+
};
|
|
41575
|
+
|
|
41576
|
+
/**
|
|
41577
|
+
* Creates a plain object from a Risk message. Also converts values to other types if specified.
|
|
41578
|
+
* @function toObject
|
|
41579
|
+
* @memberof grafeas.v1.Risk
|
|
41580
|
+
* @static
|
|
41581
|
+
* @param {grafeas.v1.Risk} message Risk
|
|
41582
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
41583
|
+
* @returns {Object.<string,*>} Plain object
|
|
41584
|
+
*/
|
|
41585
|
+
Risk.toObject = function toObject(message, options) {
|
|
41586
|
+
if (!options)
|
|
41587
|
+
options = {};
|
|
41588
|
+
var object = {};
|
|
41589
|
+
if (options.defaults) {
|
|
41590
|
+
object.cisaKev = null;
|
|
41591
|
+
object.epss = null;
|
|
41592
|
+
}
|
|
41593
|
+
if (message.cisaKev != null && message.hasOwnProperty("cisaKev"))
|
|
41594
|
+
object.cisaKev = $root.grafeas.v1.CISAKnownExploitedVulnerabilities.toObject(message.cisaKev, options);
|
|
41595
|
+
if (message.epss != null && message.hasOwnProperty("epss"))
|
|
41596
|
+
object.epss = $root.grafeas.v1.ExploitPredictionScoringSystem.toObject(message.epss, options);
|
|
41597
|
+
return object;
|
|
41598
|
+
};
|
|
41599
|
+
|
|
41600
|
+
/**
|
|
41601
|
+
* Converts this Risk to JSON.
|
|
41602
|
+
* @function toJSON
|
|
41603
|
+
* @memberof grafeas.v1.Risk
|
|
41604
|
+
* @instance
|
|
41605
|
+
* @returns {Object.<string,*>} JSON object
|
|
41606
|
+
*/
|
|
41607
|
+
Risk.prototype.toJSON = function toJSON() {
|
|
41608
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
41609
|
+
};
|
|
41610
|
+
|
|
41611
|
+
/**
|
|
41612
|
+
* Gets the default type url for Risk
|
|
41613
|
+
* @function getTypeUrl
|
|
41614
|
+
* @memberof grafeas.v1.Risk
|
|
41615
|
+
* @static
|
|
41616
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
41617
|
+
* @returns {string} The default type url
|
|
41618
|
+
*/
|
|
41619
|
+
Risk.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
41620
|
+
if (typeUrlPrefix === undefined) {
|
|
41621
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
41622
|
+
}
|
|
41623
|
+
return typeUrlPrefix + "/grafeas.v1.Risk";
|
|
41624
|
+
};
|
|
41625
|
+
|
|
41626
|
+
return Risk;
|
|
41627
|
+
})();
|
|
41628
|
+
|
|
41629
|
+
v1.CISAKnownExploitedVulnerabilities = (function() {
|
|
41630
|
+
|
|
41631
|
+
/**
|
|
41632
|
+
* Properties of a CISAKnownExploitedVulnerabilities.
|
|
41633
|
+
* @memberof grafeas.v1
|
|
41634
|
+
* @interface ICISAKnownExploitedVulnerabilities
|
|
41635
|
+
* @property {string|null} [knownRansomwareCampaignUse] CISAKnownExploitedVulnerabilities knownRansomwareCampaignUse
|
|
41636
|
+
*/
|
|
41637
|
+
|
|
41638
|
+
/**
|
|
41639
|
+
* Constructs a new CISAKnownExploitedVulnerabilities.
|
|
41640
|
+
* @memberof grafeas.v1
|
|
41641
|
+
* @classdesc Represents a CISAKnownExploitedVulnerabilities.
|
|
41642
|
+
* @implements ICISAKnownExploitedVulnerabilities
|
|
41643
|
+
* @constructor
|
|
41644
|
+
* @param {grafeas.v1.ICISAKnownExploitedVulnerabilities=} [properties] Properties to set
|
|
41645
|
+
*/
|
|
41646
|
+
function CISAKnownExploitedVulnerabilities(properties) {
|
|
41647
|
+
if (properties)
|
|
41648
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
41649
|
+
if (properties[keys[i]] != null)
|
|
41650
|
+
this[keys[i]] = properties[keys[i]];
|
|
41651
|
+
}
|
|
41652
|
+
|
|
41653
|
+
/**
|
|
41654
|
+
* CISAKnownExploitedVulnerabilities knownRansomwareCampaignUse.
|
|
41655
|
+
* @member {string} knownRansomwareCampaignUse
|
|
41656
|
+
* @memberof grafeas.v1.CISAKnownExploitedVulnerabilities
|
|
41657
|
+
* @instance
|
|
41658
|
+
*/
|
|
41659
|
+
CISAKnownExploitedVulnerabilities.prototype.knownRansomwareCampaignUse = "";
|
|
41660
|
+
|
|
41661
|
+
/**
|
|
41662
|
+
* Creates a new CISAKnownExploitedVulnerabilities instance using the specified properties.
|
|
41663
|
+
* @function create
|
|
41664
|
+
* @memberof grafeas.v1.CISAKnownExploitedVulnerabilities
|
|
41665
|
+
* @static
|
|
41666
|
+
* @param {grafeas.v1.ICISAKnownExploitedVulnerabilities=} [properties] Properties to set
|
|
41667
|
+
* @returns {grafeas.v1.CISAKnownExploitedVulnerabilities} CISAKnownExploitedVulnerabilities instance
|
|
41668
|
+
*/
|
|
41669
|
+
CISAKnownExploitedVulnerabilities.create = function create(properties) {
|
|
41670
|
+
return new CISAKnownExploitedVulnerabilities(properties);
|
|
41671
|
+
};
|
|
41672
|
+
|
|
41673
|
+
/**
|
|
41674
|
+
* Encodes the specified CISAKnownExploitedVulnerabilities message. Does not implicitly {@link grafeas.v1.CISAKnownExploitedVulnerabilities.verify|verify} messages.
|
|
41675
|
+
* @function encode
|
|
41676
|
+
* @memberof grafeas.v1.CISAKnownExploitedVulnerabilities
|
|
41677
|
+
* @static
|
|
41678
|
+
* @param {grafeas.v1.ICISAKnownExploitedVulnerabilities} message CISAKnownExploitedVulnerabilities message or plain object to encode
|
|
41679
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41680
|
+
* @returns {$protobuf.Writer} Writer
|
|
41681
|
+
*/
|
|
41682
|
+
CISAKnownExploitedVulnerabilities.encode = function encode(message, writer) {
|
|
41683
|
+
if (!writer)
|
|
41684
|
+
writer = $Writer.create();
|
|
41685
|
+
if (message.knownRansomwareCampaignUse != null && Object.hasOwnProperty.call(message, "knownRansomwareCampaignUse"))
|
|
41686
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.knownRansomwareCampaignUse);
|
|
41687
|
+
return writer;
|
|
41688
|
+
};
|
|
41689
|
+
|
|
41690
|
+
/**
|
|
41691
|
+
* Encodes the specified CISAKnownExploitedVulnerabilities message, length delimited. Does not implicitly {@link grafeas.v1.CISAKnownExploitedVulnerabilities.verify|verify} messages.
|
|
41692
|
+
* @function encodeDelimited
|
|
41693
|
+
* @memberof grafeas.v1.CISAKnownExploitedVulnerabilities
|
|
41694
|
+
* @static
|
|
41695
|
+
* @param {grafeas.v1.ICISAKnownExploitedVulnerabilities} message CISAKnownExploitedVulnerabilities message or plain object to encode
|
|
41696
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41697
|
+
* @returns {$protobuf.Writer} Writer
|
|
41698
|
+
*/
|
|
41699
|
+
CISAKnownExploitedVulnerabilities.encodeDelimited = function encodeDelimited(message, writer) {
|
|
41700
|
+
return this.encode(message, writer).ldelim();
|
|
41701
|
+
};
|
|
41702
|
+
|
|
41703
|
+
/**
|
|
41704
|
+
* Decodes a CISAKnownExploitedVulnerabilities message from the specified reader or buffer.
|
|
41705
|
+
* @function decode
|
|
41706
|
+
* @memberof grafeas.v1.CISAKnownExploitedVulnerabilities
|
|
41707
|
+
* @static
|
|
41708
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41709
|
+
* @param {number} [length] Message length if known beforehand
|
|
41710
|
+
* @returns {grafeas.v1.CISAKnownExploitedVulnerabilities} CISAKnownExploitedVulnerabilities
|
|
41711
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41712
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41713
|
+
*/
|
|
41714
|
+
CISAKnownExploitedVulnerabilities.decode = function decode(reader, length, error) {
|
|
41715
|
+
if (!(reader instanceof $Reader))
|
|
41716
|
+
reader = $Reader.create(reader);
|
|
41717
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.grafeas.v1.CISAKnownExploitedVulnerabilities();
|
|
41718
|
+
while (reader.pos < end) {
|
|
41719
|
+
var tag = reader.uint32();
|
|
41720
|
+
if (tag === error)
|
|
41721
|
+
break;
|
|
41722
|
+
switch (tag >>> 3) {
|
|
41723
|
+
case 1: {
|
|
41724
|
+
message.knownRansomwareCampaignUse = reader.string();
|
|
41725
|
+
break;
|
|
41726
|
+
}
|
|
41727
|
+
default:
|
|
41728
|
+
reader.skipType(tag & 7);
|
|
41729
|
+
break;
|
|
41730
|
+
}
|
|
41731
|
+
}
|
|
41732
|
+
return message;
|
|
41733
|
+
};
|
|
41734
|
+
|
|
41735
|
+
/**
|
|
41736
|
+
* Decodes a CISAKnownExploitedVulnerabilities message from the specified reader or buffer, length delimited.
|
|
41737
|
+
* @function decodeDelimited
|
|
41738
|
+
* @memberof grafeas.v1.CISAKnownExploitedVulnerabilities
|
|
41739
|
+
* @static
|
|
41740
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41741
|
+
* @returns {grafeas.v1.CISAKnownExploitedVulnerabilities} CISAKnownExploitedVulnerabilities
|
|
41742
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41743
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41744
|
+
*/
|
|
41745
|
+
CISAKnownExploitedVulnerabilities.decodeDelimited = function decodeDelimited(reader) {
|
|
41746
|
+
if (!(reader instanceof $Reader))
|
|
41747
|
+
reader = new $Reader(reader);
|
|
41748
|
+
return this.decode(reader, reader.uint32());
|
|
41749
|
+
};
|
|
41750
|
+
|
|
41751
|
+
/**
|
|
41752
|
+
* Verifies a CISAKnownExploitedVulnerabilities message.
|
|
41753
|
+
* @function verify
|
|
41754
|
+
* @memberof grafeas.v1.CISAKnownExploitedVulnerabilities
|
|
41755
|
+
* @static
|
|
41756
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
41757
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
41758
|
+
*/
|
|
41759
|
+
CISAKnownExploitedVulnerabilities.verify = function verify(message) {
|
|
41760
|
+
if (typeof message !== "object" || message === null)
|
|
41761
|
+
return "object expected";
|
|
41762
|
+
if (message.knownRansomwareCampaignUse != null && message.hasOwnProperty("knownRansomwareCampaignUse"))
|
|
41763
|
+
if (!$util.isString(message.knownRansomwareCampaignUse))
|
|
41764
|
+
return "knownRansomwareCampaignUse: string expected";
|
|
41765
|
+
return null;
|
|
41766
|
+
};
|
|
41767
|
+
|
|
41768
|
+
/**
|
|
41769
|
+
* Creates a CISAKnownExploitedVulnerabilities message from a plain object. Also converts values to their respective internal types.
|
|
41770
|
+
* @function fromObject
|
|
41771
|
+
* @memberof grafeas.v1.CISAKnownExploitedVulnerabilities
|
|
41772
|
+
* @static
|
|
41773
|
+
* @param {Object.<string,*>} object Plain object
|
|
41774
|
+
* @returns {grafeas.v1.CISAKnownExploitedVulnerabilities} CISAKnownExploitedVulnerabilities
|
|
41775
|
+
*/
|
|
41776
|
+
CISAKnownExploitedVulnerabilities.fromObject = function fromObject(object) {
|
|
41777
|
+
if (object instanceof $root.grafeas.v1.CISAKnownExploitedVulnerabilities)
|
|
41778
|
+
return object;
|
|
41779
|
+
var message = new $root.grafeas.v1.CISAKnownExploitedVulnerabilities();
|
|
41780
|
+
if (object.knownRansomwareCampaignUse != null)
|
|
41781
|
+
message.knownRansomwareCampaignUse = String(object.knownRansomwareCampaignUse);
|
|
41782
|
+
return message;
|
|
41783
|
+
};
|
|
41784
|
+
|
|
41785
|
+
/**
|
|
41786
|
+
* Creates a plain object from a CISAKnownExploitedVulnerabilities message. Also converts values to other types if specified.
|
|
41787
|
+
* @function toObject
|
|
41788
|
+
* @memberof grafeas.v1.CISAKnownExploitedVulnerabilities
|
|
41789
|
+
* @static
|
|
41790
|
+
* @param {grafeas.v1.CISAKnownExploitedVulnerabilities} message CISAKnownExploitedVulnerabilities
|
|
41791
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
41792
|
+
* @returns {Object.<string,*>} Plain object
|
|
41793
|
+
*/
|
|
41794
|
+
CISAKnownExploitedVulnerabilities.toObject = function toObject(message, options) {
|
|
41795
|
+
if (!options)
|
|
41796
|
+
options = {};
|
|
41797
|
+
var object = {};
|
|
41798
|
+
if (options.defaults)
|
|
41799
|
+
object.knownRansomwareCampaignUse = "";
|
|
41800
|
+
if (message.knownRansomwareCampaignUse != null && message.hasOwnProperty("knownRansomwareCampaignUse"))
|
|
41801
|
+
object.knownRansomwareCampaignUse = message.knownRansomwareCampaignUse;
|
|
41802
|
+
return object;
|
|
41803
|
+
};
|
|
41804
|
+
|
|
41805
|
+
/**
|
|
41806
|
+
* Converts this CISAKnownExploitedVulnerabilities to JSON.
|
|
41807
|
+
* @function toJSON
|
|
41808
|
+
* @memberof grafeas.v1.CISAKnownExploitedVulnerabilities
|
|
41809
|
+
* @instance
|
|
41810
|
+
* @returns {Object.<string,*>} JSON object
|
|
41811
|
+
*/
|
|
41812
|
+
CISAKnownExploitedVulnerabilities.prototype.toJSON = function toJSON() {
|
|
41813
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
41814
|
+
};
|
|
41815
|
+
|
|
41816
|
+
/**
|
|
41817
|
+
* Gets the default type url for CISAKnownExploitedVulnerabilities
|
|
41818
|
+
* @function getTypeUrl
|
|
41819
|
+
* @memberof grafeas.v1.CISAKnownExploitedVulnerabilities
|
|
41820
|
+
* @static
|
|
41821
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
41822
|
+
* @returns {string} The default type url
|
|
41823
|
+
*/
|
|
41824
|
+
CISAKnownExploitedVulnerabilities.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
41825
|
+
if (typeUrlPrefix === undefined) {
|
|
41826
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
41827
|
+
}
|
|
41828
|
+
return typeUrlPrefix + "/grafeas.v1.CISAKnownExploitedVulnerabilities";
|
|
41829
|
+
};
|
|
41830
|
+
|
|
41831
|
+
return CISAKnownExploitedVulnerabilities;
|
|
41832
|
+
})();
|
|
41833
|
+
|
|
41834
|
+
v1.ExploitPredictionScoringSystem = (function() {
|
|
41835
|
+
|
|
41836
|
+
/**
|
|
41837
|
+
* Properties of an ExploitPredictionScoringSystem.
|
|
41838
|
+
* @memberof grafeas.v1
|
|
41839
|
+
* @interface IExploitPredictionScoringSystem
|
|
41840
|
+
* @property {number|null} [percentile] ExploitPredictionScoringSystem percentile
|
|
41841
|
+
* @property {number|null} [score] ExploitPredictionScoringSystem score
|
|
41842
|
+
*/
|
|
41843
|
+
|
|
41844
|
+
/**
|
|
41845
|
+
* Constructs a new ExploitPredictionScoringSystem.
|
|
41846
|
+
* @memberof grafeas.v1
|
|
41847
|
+
* @classdesc Represents an ExploitPredictionScoringSystem.
|
|
41848
|
+
* @implements IExploitPredictionScoringSystem
|
|
41849
|
+
* @constructor
|
|
41850
|
+
* @param {grafeas.v1.IExploitPredictionScoringSystem=} [properties] Properties to set
|
|
41851
|
+
*/
|
|
41852
|
+
function ExploitPredictionScoringSystem(properties) {
|
|
41853
|
+
if (properties)
|
|
41854
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
41855
|
+
if (properties[keys[i]] != null)
|
|
41856
|
+
this[keys[i]] = properties[keys[i]];
|
|
41857
|
+
}
|
|
41858
|
+
|
|
41859
|
+
/**
|
|
41860
|
+
* ExploitPredictionScoringSystem percentile.
|
|
41861
|
+
* @member {number} percentile
|
|
41862
|
+
* @memberof grafeas.v1.ExploitPredictionScoringSystem
|
|
41863
|
+
* @instance
|
|
41864
|
+
*/
|
|
41865
|
+
ExploitPredictionScoringSystem.prototype.percentile = 0;
|
|
41866
|
+
|
|
41867
|
+
/**
|
|
41868
|
+
* ExploitPredictionScoringSystem score.
|
|
41869
|
+
* @member {number} score
|
|
41870
|
+
* @memberof grafeas.v1.ExploitPredictionScoringSystem
|
|
41871
|
+
* @instance
|
|
41872
|
+
*/
|
|
41873
|
+
ExploitPredictionScoringSystem.prototype.score = 0;
|
|
41874
|
+
|
|
41875
|
+
/**
|
|
41876
|
+
* Creates a new ExploitPredictionScoringSystem instance using the specified properties.
|
|
41877
|
+
* @function create
|
|
41878
|
+
* @memberof grafeas.v1.ExploitPredictionScoringSystem
|
|
41879
|
+
* @static
|
|
41880
|
+
* @param {grafeas.v1.IExploitPredictionScoringSystem=} [properties] Properties to set
|
|
41881
|
+
* @returns {grafeas.v1.ExploitPredictionScoringSystem} ExploitPredictionScoringSystem instance
|
|
41882
|
+
*/
|
|
41883
|
+
ExploitPredictionScoringSystem.create = function create(properties) {
|
|
41884
|
+
return new ExploitPredictionScoringSystem(properties);
|
|
41885
|
+
};
|
|
41886
|
+
|
|
41887
|
+
/**
|
|
41888
|
+
* Encodes the specified ExploitPredictionScoringSystem message. Does not implicitly {@link grafeas.v1.ExploitPredictionScoringSystem.verify|verify} messages.
|
|
41889
|
+
* @function encode
|
|
41890
|
+
* @memberof grafeas.v1.ExploitPredictionScoringSystem
|
|
41891
|
+
* @static
|
|
41892
|
+
* @param {grafeas.v1.IExploitPredictionScoringSystem} message ExploitPredictionScoringSystem message or plain object to encode
|
|
41893
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41894
|
+
* @returns {$protobuf.Writer} Writer
|
|
41895
|
+
*/
|
|
41896
|
+
ExploitPredictionScoringSystem.encode = function encode(message, writer) {
|
|
41897
|
+
if (!writer)
|
|
41898
|
+
writer = $Writer.create();
|
|
41899
|
+
if (message.percentile != null && Object.hasOwnProperty.call(message, "percentile"))
|
|
41900
|
+
writer.uint32(/* id 1, wireType 1 =*/9).double(message.percentile);
|
|
41901
|
+
if (message.score != null && Object.hasOwnProperty.call(message, "score"))
|
|
41902
|
+
writer.uint32(/* id 2, wireType 1 =*/17).double(message.score);
|
|
41903
|
+
return writer;
|
|
41904
|
+
};
|
|
41905
|
+
|
|
41906
|
+
/**
|
|
41907
|
+
* Encodes the specified ExploitPredictionScoringSystem message, length delimited. Does not implicitly {@link grafeas.v1.ExploitPredictionScoringSystem.verify|verify} messages.
|
|
41908
|
+
* @function encodeDelimited
|
|
41909
|
+
* @memberof grafeas.v1.ExploitPredictionScoringSystem
|
|
41910
|
+
* @static
|
|
41911
|
+
* @param {grafeas.v1.IExploitPredictionScoringSystem} message ExploitPredictionScoringSystem message or plain object to encode
|
|
41912
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41913
|
+
* @returns {$protobuf.Writer} Writer
|
|
41914
|
+
*/
|
|
41915
|
+
ExploitPredictionScoringSystem.encodeDelimited = function encodeDelimited(message, writer) {
|
|
41916
|
+
return this.encode(message, writer).ldelim();
|
|
41917
|
+
};
|
|
41918
|
+
|
|
41919
|
+
/**
|
|
41920
|
+
* Decodes an ExploitPredictionScoringSystem message from the specified reader or buffer.
|
|
41921
|
+
* @function decode
|
|
41922
|
+
* @memberof grafeas.v1.ExploitPredictionScoringSystem
|
|
41923
|
+
* @static
|
|
41924
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41925
|
+
* @param {number} [length] Message length if known beforehand
|
|
41926
|
+
* @returns {grafeas.v1.ExploitPredictionScoringSystem} ExploitPredictionScoringSystem
|
|
41927
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41928
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41929
|
+
*/
|
|
41930
|
+
ExploitPredictionScoringSystem.decode = function decode(reader, length, error) {
|
|
41931
|
+
if (!(reader instanceof $Reader))
|
|
41932
|
+
reader = $Reader.create(reader);
|
|
41933
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.grafeas.v1.ExploitPredictionScoringSystem();
|
|
41934
|
+
while (reader.pos < end) {
|
|
41935
|
+
var tag = reader.uint32();
|
|
41936
|
+
if (tag === error)
|
|
41937
|
+
break;
|
|
41938
|
+
switch (tag >>> 3) {
|
|
41939
|
+
case 1: {
|
|
41940
|
+
message.percentile = reader.double();
|
|
41941
|
+
break;
|
|
41942
|
+
}
|
|
41943
|
+
case 2: {
|
|
41944
|
+
message.score = reader.double();
|
|
41945
|
+
break;
|
|
41946
|
+
}
|
|
41947
|
+
default:
|
|
41948
|
+
reader.skipType(tag & 7);
|
|
41949
|
+
break;
|
|
41950
|
+
}
|
|
41951
|
+
}
|
|
41952
|
+
return message;
|
|
41953
|
+
};
|
|
41954
|
+
|
|
41955
|
+
/**
|
|
41956
|
+
* Decodes an ExploitPredictionScoringSystem message from the specified reader or buffer, length delimited.
|
|
41957
|
+
* @function decodeDelimited
|
|
41958
|
+
* @memberof grafeas.v1.ExploitPredictionScoringSystem
|
|
41959
|
+
* @static
|
|
41960
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41961
|
+
* @returns {grafeas.v1.ExploitPredictionScoringSystem} ExploitPredictionScoringSystem
|
|
41962
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41963
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41964
|
+
*/
|
|
41965
|
+
ExploitPredictionScoringSystem.decodeDelimited = function decodeDelimited(reader) {
|
|
41966
|
+
if (!(reader instanceof $Reader))
|
|
41967
|
+
reader = new $Reader(reader);
|
|
41968
|
+
return this.decode(reader, reader.uint32());
|
|
41969
|
+
};
|
|
41970
|
+
|
|
41971
|
+
/**
|
|
41972
|
+
* Verifies an ExploitPredictionScoringSystem message.
|
|
41973
|
+
* @function verify
|
|
41974
|
+
* @memberof grafeas.v1.ExploitPredictionScoringSystem
|
|
41975
|
+
* @static
|
|
41976
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
41977
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
41978
|
+
*/
|
|
41979
|
+
ExploitPredictionScoringSystem.verify = function verify(message) {
|
|
41980
|
+
if (typeof message !== "object" || message === null)
|
|
41981
|
+
return "object expected";
|
|
41982
|
+
if (message.percentile != null && message.hasOwnProperty("percentile"))
|
|
41983
|
+
if (typeof message.percentile !== "number")
|
|
41984
|
+
return "percentile: number expected";
|
|
41985
|
+
if (message.score != null && message.hasOwnProperty("score"))
|
|
41986
|
+
if (typeof message.score !== "number")
|
|
41987
|
+
return "score: number expected";
|
|
41988
|
+
return null;
|
|
41989
|
+
};
|
|
41990
|
+
|
|
41991
|
+
/**
|
|
41992
|
+
* Creates an ExploitPredictionScoringSystem message from a plain object. Also converts values to their respective internal types.
|
|
41993
|
+
* @function fromObject
|
|
41994
|
+
* @memberof grafeas.v1.ExploitPredictionScoringSystem
|
|
41995
|
+
* @static
|
|
41996
|
+
* @param {Object.<string,*>} object Plain object
|
|
41997
|
+
* @returns {grafeas.v1.ExploitPredictionScoringSystem} ExploitPredictionScoringSystem
|
|
41998
|
+
*/
|
|
41999
|
+
ExploitPredictionScoringSystem.fromObject = function fromObject(object) {
|
|
42000
|
+
if (object instanceof $root.grafeas.v1.ExploitPredictionScoringSystem)
|
|
42001
|
+
return object;
|
|
42002
|
+
var message = new $root.grafeas.v1.ExploitPredictionScoringSystem();
|
|
42003
|
+
if (object.percentile != null)
|
|
42004
|
+
message.percentile = Number(object.percentile);
|
|
42005
|
+
if (object.score != null)
|
|
42006
|
+
message.score = Number(object.score);
|
|
42007
|
+
return message;
|
|
42008
|
+
};
|
|
42009
|
+
|
|
42010
|
+
/**
|
|
42011
|
+
* Creates a plain object from an ExploitPredictionScoringSystem message. Also converts values to other types if specified.
|
|
42012
|
+
* @function toObject
|
|
42013
|
+
* @memberof grafeas.v1.ExploitPredictionScoringSystem
|
|
42014
|
+
* @static
|
|
42015
|
+
* @param {grafeas.v1.ExploitPredictionScoringSystem} message ExploitPredictionScoringSystem
|
|
42016
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
42017
|
+
* @returns {Object.<string,*>} Plain object
|
|
42018
|
+
*/
|
|
42019
|
+
ExploitPredictionScoringSystem.toObject = function toObject(message, options) {
|
|
42020
|
+
if (!options)
|
|
42021
|
+
options = {};
|
|
42022
|
+
var object = {};
|
|
42023
|
+
if (options.defaults) {
|
|
42024
|
+
object.percentile = 0;
|
|
42025
|
+
object.score = 0;
|
|
42026
|
+
}
|
|
42027
|
+
if (message.percentile != null && message.hasOwnProperty("percentile"))
|
|
42028
|
+
object.percentile = options.json && !isFinite(message.percentile) ? String(message.percentile) : message.percentile;
|
|
42029
|
+
if (message.score != null && message.hasOwnProperty("score"))
|
|
42030
|
+
object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score;
|
|
42031
|
+
return object;
|
|
42032
|
+
};
|
|
42033
|
+
|
|
42034
|
+
/**
|
|
42035
|
+
* Converts this ExploitPredictionScoringSystem to JSON.
|
|
42036
|
+
* @function toJSON
|
|
42037
|
+
* @memberof grafeas.v1.ExploitPredictionScoringSystem
|
|
42038
|
+
* @instance
|
|
42039
|
+
* @returns {Object.<string,*>} JSON object
|
|
42040
|
+
*/
|
|
42041
|
+
ExploitPredictionScoringSystem.prototype.toJSON = function toJSON() {
|
|
42042
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
42043
|
+
};
|
|
42044
|
+
|
|
42045
|
+
/**
|
|
42046
|
+
* Gets the default type url for ExploitPredictionScoringSystem
|
|
42047
|
+
* @function getTypeUrl
|
|
42048
|
+
* @memberof grafeas.v1.ExploitPredictionScoringSystem
|
|
42049
|
+
* @static
|
|
42050
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
42051
|
+
* @returns {string} The default type url
|
|
42052
|
+
*/
|
|
42053
|
+
ExploitPredictionScoringSystem.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
42054
|
+
if (typeUrlPrefix === undefined) {
|
|
42055
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
42056
|
+
}
|
|
42057
|
+
return typeUrlPrefix + "/grafeas.v1.ExploitPredictionScoringSystem";
|
|
42058
|
+
};
|
|
42059
|
+
|
|
42060
|
+
return ExploitPredictionScoringSystem;
|
|
42061
|
+
})();
|
|
42062
|
+
|
|
40702
42063
|
return v1;
|
|
40703
42064
|
})();
|
|
40704
42065
|
|