@google-cloud/containeranalysis 6.3.1 → 6.4.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 +8 -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 +476 -2
- package/build/protos/protos.js +1338 -5
- package/build/protos/protos.json +107 -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,7 @@
|
|
|
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
|
|
19715
19716
|
*/
|
|
19716
19717
|
|
|
19717
19718
|
/**
|
|
@@ -19724,6 +19725,7 @@
|
|
|
19724
19725
|
*/
|
|
19725
19726
|
function DiscoveryOccurrence(properties) {
|
|
19726
19727
|
this.analysisError = [];
|
|
19728
|
+
this.files = [];
|
|
19727
19729
|
if (properties)
|
|
19728
19730
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19729
19731
|
if (properties[keys[i]] != null)
|
|
@@ -19810,6 +19812,14 @@
|
|
|
19810
19812
|
*/
|
|
19811
19813
|
DiscoveryOccurrence.prototype.vulnerabilityAttestation = null;
|
|
19812
19814
|
|
|
19815
|
+
/**
|
|
19816
|
+
* DiscoveryOccurrence files.
|
|
19817
|
+
* @member {Array.<grafeas.v1.DiscoveryOccurrence.IFile>} files
|
|
19818
|
+
* @memberof grafeas.v1.DiscoveryOccurrence
|
|
19819
|
+
* @instance
|
|
19820
|
+
*/
|
|
19821
|
+
DiscoveryOccurrence.prototype.files = $util.emptyArray;
|
|
19822
|
+
|
|
19813
19823
|
/**
|
|
19814
19824
|
* Creates a new DiscoveryOccurrence instance using the specified properties.
|
|
19815
19825
|
* @function create
|
|
@@ -19855,6 +19865,9 @@
|
|
|
19855
19865
|
$root.grafeas.v1.DiscoveryOccurrence.SBOMStatus.encode(message.sbomStatus, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
19856
19866
|
if (message.vulnerabilityAttestation != null && Object.hasOwnProperty.call(message, "vulnerabilityAttestation"))
|
|
19857
19867
|
$root.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.encode(message.vulnerabilityAttestation, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
19868
|
+
if (message.files != null && message.files.length)
|
|
19869
|
+
for (var i = 0; i < message.files.length; ++i)
|
|
19870
|
+
$root.grafeas.v1.DiscoveryOccurrence.File.encode(message.files[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
19858
19871
|
return writer;
|
|
19859
19872
|
};
|
|
19860
19873
|
|
|
@@ -19933,6 +19946,12 @@
|
|
|
19933
19946
|
message.vulnerabilityAttestation = $root.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.decode(reader, reader.uint32());
|
|
19934
19947
|
break;
|
|
19935
19948
|
}
|
|
19949
|
+
case 11: {
|
|
19950
|
+
if (!(message.files && message.files.length))
|
|
19951
|
+
message.files = [];
|
|
19952
|
+
message.files.push($root.grafeas.v1.DiscoveryOccurrence.File.decode(reader, reader.uint32()));
|
|
19953
|
+
break;
|
|
19954
|
+
}
|
|
19936
19955
|
default:
|
|
19937
19956
|
reader.skipType(tag & 7);
|
|
19938
19957
|
break;
|
|
@@ -20032,6 +20051,15 @@
|
|
|
20032
20051
|
if (error)
|
|
20033
20052
|
return "vulnerabilityAttestation." + error;
|
|
20034
20053
|
}
|
|
20054
|
+
if (message.files != null && message.hasOwnProperty("files")) {
|
|
20055
|
+
if (!Array.isArray(message.files))
|
|
20056
|
+
return "files: array expected";
|
|
20057
|
+
for (var i = 0; i < message.files.length; ++i) {
|
|
20058
|
+
var error = $root.grafeas.v1.DiscoveryOccurrence.File.verify(message.files[i]);
|
|
20059
|
+
if (error)
|
|
20060
|
+
return "files." + error;
|
|
20061
|
+
}
|
|
20062
|
+
}
|
|
20035
20063
|
return null;
|
|
20036
20064
|
};
|
|
20037
20065
|
|
|
@@ -20145,6 +20173,16 @@
|
|
|
20145
20173
|
throw TypeError(".grafeas.v1.DiscoveryOccurrence.vulnerabilityAttestation: object expected");
|
|
20146
20174
|
message.vulnerabilityAttestation = $root.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.fromObject(object.vulnerabilityAttestation);
|
|
20147
20175
|
}
|
|
20176
|
+
if (object.files) {
|
|
20177
|
+
if (!Array.isArray(object.files))
|
|
20178
|
+
throw TypeError(".grafeas.v1.DiscoveryOccurrence.files: array expected");
|
|
20179
|
+
message.files = [];
|
|
20180
|
+
for (var i = 0; i < object.files.length; ++i) {
|
|
20181
|
+
if (typeof object.files[i] !== "object")
|
|
20182
|
+
throw TypeError(".grafeas.v1.DiscoveryOccurrence.files: object expected");
|
|
20183
|
+
message.files[i] = $root.grafeas.v1.DiscoveryOccurrence.File.fromObject(object.files[i]);
|
|
20184
|
+
}
|
|
20185
|
+
}
|
|
20148
20186
|
return message;
|
|
20149
20187
|
};
|
|
20150
20188
|
|
|
@@ -20161,8 +20199,10 @@
|
|
|
20161
20199
|
if (!options)
|
|
20162
20200
|
options = {};
|
|
20163
20201
|
var object = {};
|
|
20164
|
-
if (options.arrays || options.defaults)
|
|
20202
|
+
if (options.arrays || options.defaults) {
|
|
20165
20203
|
object.analysisError = [];
|
|
20204
|
+
object.files = [];
|
|
20205
|
+
}
|
|
20166
20206
|
if (options.defaults) {
|
|
20167
20207
|
object.continuousAnalysis = options.enums === String ? "CONTINUOUS_ANALYSIS_UNSPECIFIED" : 0;
|
|
20168
20208
|
object.analysisStatus = options.enums === String ? "ANALYSIS_STATUS_UNSPECIFIED" : 0;
|
|
@@ -20197,6 +20237,11 @@
|
|
|
20197
20237
|
object.sbomStatus = $root.grafeas.v1.DiscoveryOccurrence.SBOMStatus.toObject(message.sbomStatus, options);
|
|
20198
20238
|
if (message.vulnerabilityAttestation != null && message.hasOwnProperty("vulnerabilityAttestation"))
|
|
20199
20239
|
object.vulnerabilityAttestation = $root.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.toObject(message.vulnerabilityAttestation, options);
|
|
20240
|
+
if (message.files && message.files.length) {
|
|
20241
|
+
object.files = [];
|
|
20242
|
+
for (var j = 0; j < message.files.length; ++j)
|
|
20243
|
+
object.files[j] = $root.grafeas.v1.DiscoveryOccurrence.File.toObject(message.files[j], options);
|
|
20244
|
+
}
|
|
20200
20245
|
return object;
|
|
20201
20246
|
};
|
|
20202
20247
|
|
|
@@ -21053,6 +21098,270 @@
|
|
|
21053
21098
|
return VulnerabilityAttestation;
|
|
21054
21099
|
})();
|
|
21055
21100
|
|
|
21101
|
+
DiscoveryOccurrence.File = (function() {
|
|
21102
|
+
|
|
21103
|
+
/**
|
|
21104
|
+
* Properties of a File.
|
|
21105
|
+
* @memberof grafeas.v1.DiscoveryOccurrence
|
|
21106
|
+
* @interface IFile
|
|
21107
|
+
* @property {string|null} [name] File name
|
|
21108
|
+
* @property {Object.<string,string>|null} [digest] File digest
|
|
21109
|
+
*/
|
|
21110
|
+
|
|
21111
|
+
/**
|
|
21112
|
+
* Constructs a new File.
|
|
21113
|
+
* @memberof grafeas.v1.DiscoveryOccurrence
|
|
21114
|
+
* @classdesc Represents a File.
|
|
21115
|
+
* @implements IFile
|
|
21116
|
+
* @constructor
|
|
21117
|
+
* @param {grafeas.v1.DiscoveryOccurrence.IFile=} [properties] Properties to set
|
|
21118
|
+
*/
|
|
21119
|
+
function File(properties) {
|
|
21120
|
+
this.digest = {};
|
|
21121
|
+
if (properties)
|
|
21122
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
21123
|
+
if (properties[keys[i]] != null)
|
|
21124
|
+
this[keys[i]] = properties[keys[i]];
|
|
21125
|
+
}
|
|
21126
|
+
|
|
21127
|
+
/**
|
|
21128
|
+
* File name.
|
|
21129
|
+
* @member {string} name
|
|
21130
|
+
* @memberof grafeas.v1.DiscoveryOccurrence.File
|
|
21131
|
+
* @instance
|
|
21132
|
+
*/
|
|
21133
|
+
File.prototype.name = "";
|
|
21134
|
+
|
|
21135
|
+
/**
|
|
21136
|
+
* File digest.
|
|
21137
|
+
* @member {Object.<string,string>} digest
|
|
21138
|
+
* @memberof grafeas.v1.DiscoveryOccurrence.File
|
|
21139
|
+
* @instance
|
|
21140
|
+
*/
|
|
21141
|
+
File.prototype.digest = $util.emptyObject;
|
|
21142
|
+
|
|
21143
|
+
/**
|
|
21144
|
+
* Creates a new File instance using the specified properties.
|
|
21145
|
+
* @function create
|
|
21146
|
+
* @memberof grafeas.v1.DiscoveryOccurrence.File
|
|
21147
|
+
* @static
|
|
21148
|
+
* @param {grafeas.v1.DiscoveryOccurrence.IFile=} [properties] Properties to set
|
|
21149
|
+
* @returns {grafeas.v1.DiscoveryOccurrence.File} File instance
|
|
21150
|
+
*/
|
|
21151
|
+
File.create = function create(properties) {
|
|
21152
|
+
return new File(properties);
|
|
21153
|
+
};
|
|
21154
|
+
|
|
21155
|
+
/**
|
|
21156
|
+
* Encodes the specified File message. Does not implicitly {@link grafeas.v1.DiscoveryOccurrence.File.verify|verify} messages.
|
|
21157
|
+
* @function encode
|
|
21158
|
+
* @memberof grafeas.v1.DiscoveryOccurrence.File
|
|
21159
|
+
* @static
|
|
21160
|
+
* @param {grafeas.v1.DiscoveryOccurrence.IFile} message File message or plain object to encode
|
|
21161
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
21162
|
+
* @returns {$protobuf.Writer} Writer
|
|
21163
|
+
*/
|
|
21164
|
+
File.encode = function encode(message, writer) {
|
|
21165
|
+
if (!writer)
|
|
21166
|
+
writer = $Writer.create();
|
|
21167
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
21168
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
21169
|
+
if (message.digest != null && Object.hasOwnProperty.call(message, "digest"))
|
|
21170
|
+
for (var keys = Object.keys(message.digest), i = 0; i < keys.length; ++i)
|
|
21171
|
+
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();
|
|
21172
|
+
return writer;
|
|
21173
|
+
};
|
|
21174
|
+
|
|
21175
|
+
/**
|
|
21176
|
+
* Encodes the specified File message, length delimited. Does not implicitly {@link grafeas.v1.DiscoveryOccurrence.File.verify|verify} messages.
|
|
21177
|
+
* @function encodeDelimited
|
|
21178
|
+
* @memberof grafeas.v1.DiscoveryOccurrence.File
|
|
21179
|
+
* @static
|
|
21180
|
+
* @param {grafeas.v1.DiscoveryOccurrence.IFile} message File message or plain object to encode
|
|
21181
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
21182
|
+
* @returns {$protobuf.Writer} Writer
|
|
21183
|
+
*/
|
|
21184
|
+
File.encodeDelimited = function encodeDelimited(message, writer) {
|
|
21185
|
+
return this.encode(message, writer).ldelim();
|
|
21186
|
+
};
|
|
21187
|
+
|
|
21188
|
+
/**
|
|
21189
|
+
* Decodes a File message from the specified reader or buffer.
|
|
21190
|
+
* @function decode
|
|
21191
|
+
* @memberof grafeas.v1.DiscoveryOccurrence.File
|
|
21192
|
+
* @static
|
|
21193
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
21194
|
+
* @param {number} [length] Message length if known beforehand
|
|
21195
|
+
* @returns {grafeas.v1.DiscoveryOccurrence.File} File
|
|
21196
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
21197
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
21198
|
+
*/
|
|
21199
|
+
File.decode = function decode(reader, length, error) {
|
|
21200
|
+
if (!(reader instanceof $Reader))
|
|
21201
|
+
reader = $Reader.create(reader);
|
|
21202
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.grafeas.v1.DiscoveryOccurrence.File(), key, value;
|
|
21203
|
+
while (reader.pos < end) {
|
|
21204
|
+
var tag = reader.uint32();
|
|
21205
|
+
if (tag === error)
|
|
21206
|
+
break;
|
|
21207
|
+
switch (tag >>> 3) {
|
|
21208
|
+
case 1: {
|
|
21209
|
+
message.name = reader.string();
|
|
21210
|
+
break;
|
|
21211
|
+
}
|
|
21212
|
+
case 2: {
|
|
21213
|
+
if (message.digest === $util.emptyObject)
|
|
21214
|
+
message.digest = {};
|
|
21215
|
+
var end2 = reader.uint32() + reader.pos;
|
|
21216
|
+
key = "";
|
|
21217
|
+
value = "";
|
|
21218
|
+
while (reader.pos < end2) {
|
|
21219
|
+
var tag2 = reader.uint32();
|
|
21220
|
+
switch (tag2 >>> 3) {
|
|
21221
|
+
case 1:
|
|
21222
|
+
key = reader.string();
|
|
21223
|
+
break;
|
|
21224
|
+
case 2:
|
|
21225
|
+
value = reader.string();
|
|
21226
|
+
break;
|
|
21227
|
+
default:
|
|
21228
|
+
reader.skipType(tag2 & 7);
|
|
21229
|
+
break;
|
|
21230
|
+
}
|
|
21231
|
+
}
|
|
21232
|
+
message.digest[key] = value;
|
|
21233
|
+
break;
|
|
21234
|
+
}
|
|
21235
|
+
default:
|
|
21236
|
+
reader.skipType(tag & 7);
|
|
21237
|
+
break;
|
|
21238
|
+
}
|
|
21239
|
+
}
|
|
21240
|
+
return message;
|
|
21241
|
+
};
|
|
21242
|
+
|
|
21243
|
+
/**
|
|
21244
|
+
* Decodes a File message from the specified reader or buffer, length delimited.
|
|
21245
|
+
* @function decodeDelimited
|
|
21246
|
+
* @memberof grafeas.v1.DiscoveryOccurrence.File
|
|
21247
|
+
* @static
|
|
21248
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
21249
|
+
* @returns {grafeas.v1.DiscoveryOccurrence.File} File
|
|
21250
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
21251
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
21252
|
+
*/
|
|
21253
|
+
File.decodeDelimited = function decodeDelimited(reader) {
|
|
21254
|
+
if (!(reader instanceof $Reader))
|
|
21255
|
+
reader = new $Reader(reader);
|
|
21256
|
+
return this.decode(reader, reader.uint32());
|
|
21257
|
+
};
|
|
21258
|
+
|
|
21259
|
+
/**
|
|
21260
|
+
* Verifies a File message.
|
|
21261
|
+
* @function verify
|
|
21262
|
+
* @memberof grafeas.v1.DiscoveryOccurrence.File
|
|
21263
|
+
* @static
|
|
21264
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
21265
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
21266
|
+
*/
|
|
21267
|
+
File.verify = function verify(message) {
|
|
21268
|
+
if (typeof message !== "object" || message === null)
|
|
21269
|
+
return "object expected";
|
|
21270
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
21271
|
+
if (!$util.isString(message.name))
|
|
21272
|
+
return "name: string expected";
|
|
21273
|
+
if (message.digest != null && message.hasOwnProperty("digest")) {
|
|
21274
|
+
if (!$util.isObject(message.digest))
|
|
21275
|
+
return "digest: object expected";
|
|
21276
|
+
var key = Object.keys(message.digest);
|
|
21277
|
+
for (var i = 0; i < key.length; ++i)
|
|
21278
|
+
if (!$util.isString(message.digest[key[i]]))
|
|
21279
|
+
return "digest: string{k:string} expected";
|
|
21280
|
+
}
|
|
21281
|
+
return null;
|
|
21282
|
+
};
|
|
21283
|
+
|
|
21284
|
+
/**
|
|
21285
|
+
* Creates a File message from a plain object. Also converts values to their respective internal types.
|
|
21286
|
+
* @function fromObject
|
|
21287
|
+
* @memberof grafeas.v1.DiscoveryOccurrence.File
|
|
21288
|
+
* @static
|
|
21289
|
+
* @param {Object.<string,*>} object Plain object
|
|
21290
|
+
* @returns {grafeas.v1.DiscoveryOccurrence.File} File
|
|
21291
|
+
*/
|
|
21292
|
+
File.fromObject = function fromObject(object) {
|
|
21293
|
+
if (object instanceof $root.grafeas.v1.DiscoveryOccurrence.File)
|
|
21294
|
+
return object;
|
|
21295
|
+
var message = new $root.grafeas.v1.DiscoveryOccurrence.File();
|
|
21296
|
+
if (object.name != null)
|
|
21297
|
+
message.name = String(object.name);
|
|
21298
|
+
if (object.digest) {
|
|
21299
|
+
if (typeof object.digest !== "object")
|
|
21300
|
+
throw TypeError(".grafeas.v1.DiscoveryOccurrence.File.digest: object expected");
|
|
21301
|
+
message.digest = {};
|
|
21302
|
+
for (var keys = Object.keys(object.digest), i = 0; i < keys.length; ++i)
|
|
21303
|
+
message.digest[keys[i]] = String(object.digest[keys[i]]);
|
|
21304
|
+
}
|
|
21305
|
+
return message;
|
|
21306
|
+
};
|
|
21307
|
+
|
|
21308
|
+
/**
|
|
21309
|
+
* Creates a plain object from a File message. Also converts values to other types if specified.
|
|
21310
|
+
* @function toObject
|
|
21311
|
+
* @memberof grafeas.v1.DiscoveryOccurrence.File
|
|
21312
|
+
* @static
|
|
21313
|
+
* @param {grafeas.v1.DiscoveryOccurrence.File} message File
|
|
21314
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
21315
|
+
* @returns {Object.<string,*>} Plain object
|
|
21316
|
+
*/
|
|
21317
|
+
File.toObject = function toObject(message, options) {
|
|
21318
|
+
if (!options)
|
|
21319
|
+
options = {};
|
|
21320
|
+
var object = {};
|
|
21321
|
+
if (options.objects || options.defaults)
|
|
21322
|
+
object.digest = {};
|
|
21323
|
+
if (options.defaults)
|
|
21324
|
+
object.name = "";
|
|
21325
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
21326
|
+
object.name = message.name;
|
|
21327
|
+
var keys2;
|
|
21328
|
+
if (message.digest && (keys2 = Object.keys(message.digest)).length) {
|
|
21329
|
+
object.digest = {};
|
|
21330
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
21331
|
+
object.digest[keys2[j]] = message.digest[keys2[j]];
|
|
21332
|
+
}
|
|
21333
|
+
return object;
|
|
21334
|
+
};
|
|
21335
|
+
|
|
21336
|
+
/**
|
|
21337
|
+
* Converts this File to JSON.
|
|
21338
|
+
* @function toJSON
|
|
21339
|
+
* @memberof grafeas.v1.DiscoveryOccurrence.File
|
|
21340
|
+
* @instance
|
|
21341
|
+
* @returns {Object.<string,*>} JSON object
|
|
21342
|
+
*/
|
|
21343
|
+
File.prototype.toJSON = function toJSON() {
|
|
21344
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
21345
|
+
};
|
|
21346
|
+
|
|
21347
|
+
/**
|
|
21348
|
+
* Gets the default type url for File
|
|
21349
|
+
* @function getTypeUrl
|
|
21350
|
+
* @memberof grafeas.v1.DiscoveryOccurrence.File
|
|
21351
|
+
* @static
|
|
21352
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
21353
|
+
* @returns {string} The default type url
|
|
21354
|
+
*/
|
|
21355
|
+
File.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
21356
|
+
if (typeUrlPrefix === undefined) {
|
|
21357
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
21358
|
+
}
|
|
21359
|
+
return typeUrlPrefix + "/grafeas.v1.DiscoveryOccurrence.File";
|
|
21360
|
+
};
|
|
21361
|
+
|
|
21362
|
+
return File;
|
|
21363
|
+
})();
|
|
21364
|
+
|
|
21056
21365
|
return DiscoveryOccurrence;
|
|
21057
21366
|
})();
|
|
21058
21367
|
|
|
@@ -24326,6 +24635,7 @@
|
|
|
24326
24635
|
* @property {string|null} [filter] ListOccurrencesRequest filter
|
|
24327
24636
|
* @property {number|null} [pageSize] ListOccurrencesRequest pageSize
|
|
24328
24637
|
* @property {string|null} [pageToken] ListOccurrencesRequest pageToken
|
|
24638
|
+
* @property {boolean|null} [returnPartialSuccess] ListOccurrencesRequest returnPartialSuccess
|
|
24329
24639
|
*/
|
|
24330
24640
|
|
|
24331
24641
|
/**
|
|
@@ -24375,6 +24685,14 @@
|
|
|
24375
24685
|
*/
|
|
24376
24686
|
ListOccurrencesRequest.prototype.pageToken = "";
|
|
24377
24687
|
|
|
24688
|
+
/**
|
|
24689
|
+
* ListOccurrencesRequest returnPartialSuccess.
|
|
24690
|
+
* @member {boolean} returnPartialSuccess
|
|
24691
|
+
* @memberof grafeas.v1.ListOccurrencesRequest
|
|
24692
|
+
* @instance
|
|
24693
|
+
*/
|
|
24694
|
+
ListOccurrencesRequest.prototype.returnPartialSuccess = false;
|
|
24695
|
+
|
|
24378
24696
|
/**
|
|
24379
24697
|
* Creates a new ListOccurrencesRequest instance using the specified properties.
|
|
24380
24698
|
* @function create
|
|
@@ -24407,6 +24725,8 @@
|
|
|
24407
24725
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize);
|
|
24408
24726
|
if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
|
|
24409
24727
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken);
|
|
24728
|
+
if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess"))
|
|
24729
|
+
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.returnPartialSuccess);
|
|
24410
24730
|
return writer;
|
|
24411
24731
|
};
|
|
24412
24732
|
|
|
@@ -24459,6 +24779,10 @@
|
|
|
24459
24779
|
message.pageToken = reader.string();
|
|
24460
24780
|
break;
|
|
24461
24781
|
}
|
|
24782
|
+
case 5: {
|
|
24783
|
+
message.returnPartialSuccess = reader.bool();
|
|
24784
|
+
break;
|
|
24785
|
+
}
|
|
24462
24786
|
default:
|
|
24463
24787
|
reader.skipType(tag & 7);
|
|
24464
24788
|
break;
|
|
@@ -24506,6 +24830,9 @@
|
|
|
24506
24830
|
if (message.pageToken != null && message.hasOwnProperty("pageToken"))
|
|
24507
24831
|
if (!$util.isString(message.pageToken))
|
|
24508
24832
|
return "pageToken: string expected";
|
|
24833
|
+
if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess"))
|
|
24834
|
+
if (typeof message.returnPartialSuccess !== "boolean")
|
|
24835
|
+
return "returnPartialSuccess: boolean expected";
|
|
24509
24836
|
return null;
|
|
24510
24837
|
};
|
|
24511
24838
|
|
|
@@ -24529,6 +24856,8 @@
|
|
|
24529
24856
|
message.pageSize = object.pageSize | 0;
|
|
24530
24857
|
if (object.pageToken != null)
|
|
24531
24858
|
message.pageToken = String(object.pageToken);
|
|
24859
|
+
if (object.returnPartialSuccess != null)
|
|
24860
|
+
message.returnPartialSuccess = Boolean(object.returnPartialSuccess);
|
|
24532
24861
|
return message;
|
|
24533
24862
|
};
|
|
24534
24863
|
|
|
@@ -24550,6 +24879,7 @@
|
|
|
24550
24879
|
object.filter = "";
|
|
24551
24880
|
object.pageSize = 0;
|
|
24552
24881
|
object.pageToken = "";
|
|
24882
|
+
object.returnPartialSuccess = false;
|
|
24553
24883
|
}
|
|
24554
24884
|
if (message.parent != null && message.hasOwnProperty("parent"))
|
|
24555
24885
|
object.parent = message.parent;
|
|
@@ -24559,6 +24889,8 @@
|
|
|
24559
24889
|
object.pageSize = message.pageSize;
|
|
24560
24890
|
if (message.pageToken != null && message.hasOwnProperty("pageToken"))
|
|
24561
24891
|
object.pageToken = message.pageToken;
|
|
24892
|
+
if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess"))
|
|
24893
|
+
object.returnPartialSuccess = message.returnPartialSuccess;
|
|
24562
24894
|
return object;
|
|
24563
24895
|
};
|
|
24564
24896
|
|
|
@@ -24599,6 +24931,7 @@
|
|
|
24599
24931
|
* @interface IListOccurrencesResponse
|
|
24600
24932
|
* @property {Array.<grafeas.v1.IOccurrence>|null} [occurrences] ListOccurrencesResponse occurrences
|
|
24601
24933
|
* @property {string|null} [nextPageToken] ListOccurrencesResponse nextPageToken
|
|
24934
|
+
* @property {Array.<string>|null} [unreachable] ListOccurrencesResponse unreachable
|
|
24602
24935
|
*/
|
|
24603
24936
|
|
|
24604
24937
|
/**
|
|
@@ -24611,6 +24944,7 @@
|
|
|
24611
24944
|
*/
|
|
24612
24945
|
function ListOccurrencesResponse(properties) {
|
|
24613
24946
|
this.occurrences = [];
|
|
24947
|
+
this.unreachable = [];
|
|
24614
24948
|
if (properties)
|
|
24615
24949
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
24616
24950
|
if (properties[keys[i]] != null)
|
|
@@ -24633,6 +24967,14 @@
|
|
|
24633
24967
|
*/
|
|
24634
24968
|
ListOccurrencesResponse.prototype.nextPageToken = "";
|
|
24635
24969
|
|
|
24970
|
+
/**
|
|
24971
|
+
* ListOccurrencesResponse unreachable.
|
|
24972
|
+
* @member {Array.<string>} unreachable
|
|
24973
|
+
* @memberof grafeas.v1.ListOccurrencesResponse
|
|
24974
|
+
* @instance
|
|
24975
|
+
*/
|
|
24976
|
+
ListOccurrencesResponse.prototype.unreachable = $util.emptyArray;
|
|
24977
|
+
|
|
24636
24978
|
/**
|
|
24637
24979
|
* Creates a new ListOccurrencesResponse instance using the specified properties.
|
|
24638
24980
|
* @function create
|
|
@@ -24662,6 +25004,9 @@
|
|
|
24662
25004
|
$root.grafeas.v1.Occurrence.encode(message.occurrences[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
24663
25005
|
if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
|
|
24664
25006
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
|
|
25007
|
+
if (message.unreachable != null && message.unreachable.length)
|
|
25008
|
+
for (var i = 0; i < message.unreachable.length; ++i)
|
|
25009
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]);
|
|
24665
25010
|
return writer;
|
|
24666
25011
|
};
|
|
24667
25012
|
|
|
@@ -24708,6 +25053,12 @@
|
|
|
24708
25053
|
message.nextPageToken = reader.string();
|
|
24709
25054
|
break;
|
|
24710
25055
|
}
|
|
25056
|
+
case 3: {
|
|
25057
|
+
if (!(message.unreachable && message.unreachable.length))
|
|
25058
|
+
message.unreachable = [];
|
|
25059
|
+
message.unreachable.push(reader.string());
|
|
25060
|
+
break;
|
|
25061
|
+
}
|
|
24711
25062
|
default:
|
|
24712
25063
|
reader.skipType(tag & 7);
|
|
24713
25064
|
break;
|
|
@@ -24755,6 +25106,13 @@
|
|
|
24755
25106
|
if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
|
|
24756
25107
|
if (!$util.isString(message.nextPageToken))
|
|
24757
25108
|
return "nextPageToken: string expected";
|
|
25109
|
+
if (message.unreachable != null && message.hasOwnProperty("unreachable")) {
|
|
25110
|
+
if (!Array.isArray(message.unreachable))
|
|
25111
|
+
return "unreachable: array expected";
|
|
25112
|
+
for (var i = 0; i < message.unreachable.length; ++i)
|
|
25113
|
+
if (!$util.isString(message.unreachable[i]))
|
|
25114
|
+
return "unreachable: string[] expected";
|
|
25115
|
+
}
|
|
24758
25116
|
return null;
|
|
24759
25117
|
};
|
|
24760
25118
|
|
|
@@ -24782,6 +25140,13 @@
|
|
|
24782
25140
|
}
|
|
24783
25141
|
if (object.nextPageToken != null)
|
|
24784
25142
|
message.nextPageToken = String(object.nextPageToken);
|
|
25143
|
+
if (object.unreachable) {
|
|
25144
|
+
if (!Array.isArray(object.unreachable))
|
|
25145
|
+
throw TypeError(".grafeas.v1.ListOccurrencesResponse.unreachable: array expected");
|
|
25146
|
+
message.unreachable = [];
|
|
25147
|
+
for (var i = 0; i < object.unreachable.length; ++i)
|
|
25148
|
+
message.unreachable[i] = String(object.unreachable[i]);
|
|
25149
|
+
}
|
|
24785
25150
|
return message;
|
|
24786
25151
|
};
|
|
24787
25152
|
|
|
@@ -24798,8 +25163,10 @@
|
|
|
24798
25163
|
if (!options)
|
|
24799
25164
|
options = {};
|
|
24800
25165
|
var object = {};
|
|
24801
|
-
if (options.arrays || options.defaults)
|
|
25166
|
+
if (options.arrays || options.defaults) {
|
|
24802
25167
|
object.occurrences = [];
|
|
25168
|
+
object.unreachable = [];
|
|
25169
|
+
}
|
|
24803
25170
|
if (options.defaults)
|
|
24804
25171
|
object.nextPageToken = "";
|
|
24805
25172
|
if (message.occurrences && message.occurrences.length) {
|
|
@@ -24809,6 +25176,11 @@
|
|
|
24809
25176
|
}
|
|
24810
25177
|
if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
|
|
24811
25178
|
object.nextPageToken = message.nextPageToken;
|
|
25179
|
+
if (message.unreachable && message.unreachable.length) {
|
|
25180
|
+
object.unreachable = [];
|
|
25181
|
+
for (var j = 0; j < message.unreachable.length; ++j)
|
|
25182
|
+
object.unreachable[j] = message.unreachable[j];
|
|
25183
|
+
}
|
|
24812
25184
|
return object;
|
|
24813
25185
|
};
|
|
24814
25186
|
|
|
@@ -25962,6 +26334,7 @@
|
|
|
25962
26334
|
* @property {string|null} [filter] ListNotesRequest filter
|
|
25963
26335
|
* @property {number|null} [pageSize] ListNotesRequest pageSize
|
|
25964
26336
|
* @property {string|null} [pageToken] ListNotesRequest pageToken
|
|
26337
|
+
* @property {boolean|null} [returnPartialSuccess] ListNotesRequest returnPartialSuccess
|
|
25965
26338
|
*/
|
|
25966
26339
|
|
|
25967
26340
|
/**
|
|
@@ -26011,6 +26384,14 @@
|
|
|
26011
26384
|
*/
|
|
26012
26385
|
ListNotesRequest.prototype.pageToken = "";
|
|
26013
26386
|
|
|
26387
|
+
/**
|
|
26388
|
+
* ListNotesRequest returnPartialSuccess.
|
|
26389
|
+
* @member {boolean} returnPartialSuccess
|
|
26390
|
+
* @memberof grafeas.v1.ListNotesRequest
|
|
26391
|
+
* @instance
|
|
26392
|
+
*/
|
|
26393
|
+
ListNotesRequest.prototype.returnPartialSuccess = false;
|
|
26394
|
+
|
|
26014
26395
|
/**
|
|
26015
26396
|
* Creates a new ListNotesRequest instance using the specified properties.
|
|
26016
26397
|
* @function create
|
|
@@ -26043,6 +26424,8 @@
|
|
|
26043
26424
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize);
|
|
26044
26425
|
if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
|
|
26045
26426
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken);
|
|
26427
|
+
if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess"))
|
|
26428
|
+
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.returnPartialSuccess);
|
|
26046
26429
|
return writer;
|
|
26047
26430
|
};
|
|
26048
26431
|
|
|
@@ -26095,6 +26478,10 @@
|
|
|
26095
26478
|
message.pageToken = reader.string();
|
|
26096
26479
|
break;
|
|
26097
26480
|
}
|
|
26481
|
+
case 5: {
|
|
26482
|
+
message.returnPartialSuccess = reader.bool();
|
|
26483
|
+
break;
|
|
26484
|
+
}
|
|
26098
26485
|
default:
|
|
26099
26486
|
reader.skipType(tag & 7);
|
|
26100
26487
|
break;
|
|
@@ -26142,6 +26529,9 @@
|
|
|
26142
26529
|
if (message.pageToken != null && message.hasOwnProperty("pageToken"))
|
|
26143
26530
|
if (!$util.isString(message.pageToken))
|
|
26144
26531
|
return "pageToken: string expected";
|
|
26532
|
+
if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess"))
|
|
26533
|
+
if (typeof message.returnPartialSuccess !== "boolean")
|
|
26534
|
+
return "returnPartialSuccess: boolean expected";
|
|
26145
26535
|
return null;
|
|
26146
26536
|
};
|
|
26147
26537
|
|
|
@@ -26165,6 +26555,8 @@
|
|
|
26165
26555
|
message.pageSize = object.pageSize | 0;
|
|
26166
26556
|
if (object.pageToken != null)
|
|
26167
26557
|
message.pageToken = String(object.pageToken);
|
|
26558
|
+
if (object.returnPartialSuccess != null)
|
|
26559
|
+
message.returnPartialSuccess = Boolean(object.returnPartialSuccess);
|
|
26168
26560
|
return message;
|
|
26169
26561
|
};
|
|
26170
26562
|
|
|
@@ -26186,6 +26578,7 @@
|
|
|
26186
26578
|
object.filter = "";
|
|
26187
26579
|
object.pageSize = 0;
|
|
26188
26580
|
object.pageToken = "";
|
|
26581
|
+
object.returnPartialSuccess = false;
|
|
26189
26582
|
}
|
|
26190
26583
|
if (message.parent != null && message.hasOwnProperty("parent"))
|
|
26191
26584
|
object.parent = message.parent;
|
|
@@ -26195,6 +26588,8 @@
|
|
|
26195
26588
|
object.pageSize = message.pageSize;
|
|
26196
26589
|
if (message.pageToken != null && message.hasOwnProperty("pageToken"))
|
|
26197
26590
|
object.pageToken = message.pageToken;
|
|
26591
|
+
if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess"))
|
|
26592
|
+
object.returnPartialSuccess = message.returnPartialSuccess;
|
|
26198
26593
|
return object;
|
|
26199
26594
|
};
|
|
26200
26595
|
|
|
@@ -26235,6 +26630,7 @@
|
|
|
26235
26630
|
* @interface IListNotesResponse
|
|
26236
26631
|
* @property {Array.<grafeas.v1.INote>|null} [notes] ListNotesResponse notes
|
|
26237
26632
|
* @property {string|null} [nextPageToken] ListNotesResponse nextPageToken
|
|
26633
|
+
* @property {Array.<string>|null} [unreachable] ListNotesResponse unreachable
|
|
26238
26634
|
*/
|
|
26239
26635
|
|
|
26240
26636
|
/**
|
|
@@ -26247,6 +26643,7 @@
|
|
|
26247
26643
|
*/
|
|
26248
26644
|
function ListNotesResponse(properties) {
|
|
26249
26645
|
this.notes = [];
|
|
26646
|
+
this.unreachable = [];
|
|
26250
26647
|
if (properties)
|
|
26251
26648
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
26252
26649
|
if (properties[keys[i]] != null)
|
|
@@ -26269,6 +26666,14 @@
|
|
|
26269
26666
|
*/
|
|
26270
26667
|
ListNotesResponse.prototype.nextPageToken = "";
|
|
26271
26668
|
|
|
26669
|
+
/**
|
|
26670
|
+
* ListNotesResponse unreachable.
|
|
26671
|
+
* @member {Array.<string>} unreachable
|
|
26672
|
+
* @memberof grafeas.v1.ListNotesResponse
|
|
26673
|
+
* @instance
|
|
26674
|
+
*/
|
|
26675
|
+
ListNotesResponse.prototype.unreachable = $util.emptyArray;
|
|
26676
|
+
|
|
26272
26677
|
/**
|
|
26273
26678
|
* Creates a new ListNotesResponse instance using the specified properties.
|
|
26274
26679
|
* @function create
|
|
@@ -26298,6 +26703,9 @@
|
|
|
26298
26703
|
$root.grafeas.v1.Note.encode(message.notes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
26299
26704
|
if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
|
|
26300
26705
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
|
|
26706
|
+
if (message.unreachable != null && message.unreachable.length)
|
|
26707
|
+
for (var i = 0; i < message.unreachable.length; ++i)
|
|
26708
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]);
|
|
26301
26709
|
return writer;
|
|
26302
26710
|
};
|
|
26303
26711
|
|
|
@@ -26344,6 +26752,12 @@
|
|
|
26344
26752
|
message.nextPageToken = reader.string();
|
|
26345
26753
|
break;
|
|
26346
26754
|
}
|
|
26755
|
+
case 3: {
|
|
26756
|
+
if (!(message.unreachable && message.unreachable.length))
|
|
26757
|
+
message.unreachable = [];
|
|
26758
|
+
message.unreachable.push(reader.string());
|
|
26759
|
+
break;
|
|
26760
|
+
}
|
|
26347
26761
|
default:
|
|
26348
26762
|
reader.skipType(tag & 7);
|
|
26349
26763
|
break;
|
|
@@ -26391,6 +26805,13 @@
|
|
|
26391
26805
|
if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
|
|
26392
26806
|
if (!$util.isString(message.nextPageToken))
|
|
26393
26807
|
return "nextPageToken: string expected";
|
|
26808
|
+
if (message.unreachable != null && message.hasOwnProperty("unreachable")) {
|
|
26809
|
+
if (!Array.isArray(message.unreachable))
|
|
26810
|
+
return "unreachable: array expected";
|
|
26811
|
+
for (var i = 0; i < message.unreachable.length; ++i)
|
|
26812
|
+
if (!$util.isString(message.unreachable[i]))
|
|
26813
|
+
return "unreachable: string[] expected";
|
|
26814
|
+
}
|
|
26394
26815
|
return null;
|
|
26395
26816
|
};
|
|
26396
26817
|
|
|
@@ -26418,6 +26839,13 @@
|
|
|
26418
26839
|
}
|
|
26419
26840
|
if (object.nextPageToken != null)
|
|
26420
26841
|
message.nextPageToken = String(object.nextPageToken);
|
|
26842
|
+
if (object.unreachable) {
|
|
26843
|
+
if (!Array.isArray(object.unreachable))
|
|
26844
|
+
throw TypeError(".grafeas.v1.ListNotesResponse.unreachable: array expected");
|
|
26845
|
+
message.unreachable = [];
|
|
26846
|
+
for (var i = 0; i < object.unreachable.length; ++i)
|
|
26847
|
+
message.unreachable[i] = String(object.unreachable[i]);
|
|
26848
|
+
}
|
|
26421
26849
|
return message;
|
|
26422
26850
|
};
|
|
26423
26851
|
|
|
@@ -26434,8 +26862,10 @@
|
|
|
26434
26862
|
if (!options)
|
|
26435
26863
|
options = {};
|
|
26436
26864
|
var object = {};
|
|
26437
|
-
if (options.arrays || options.defaults)
|
|
26865
|
+
if (options.arrays || options.defaults) {
|
|
26438
26866
|
object.notes = [];
|
|
26867
|
+
object.unreachable = [];
|
|
26868
|
+
}
|
|
26439
26869
|
if (options.defaults)
|
|
26440
26870
|
object.nextPageToken = "";
|
|
26441
26871
|
if (message.notes && message.notes.length) {
|
|
@@ -26445,6 +26875,11 @@
|
|
|
26445
26875
|
}
|
|
26446
26876
|
if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
|
|
26447
26877
|
object.nextPageToken = message.nextPageToken;
|
|
26878
|
+
if (message.unreachable && message.unreachable.length) {
|
|
26879
|
+
object.unreachable = [];
|
|
26880
|
+
for (var j = 0; j < message.unreachable.length; ++j)
|
|
26881
|
+
object.unreachable[j] = message.unreachable[j];
|
|
26882
|
+
}
|
|
26448
26883
|
return object;
|
|
26449
26884
|
};
|
|
26450
26885
|
|
|
@@ -32945,6 +33380,8 @@
|
|
|
32945
33380
|
* @property {grafeas.v1.SecretKind|null} [kind] SecretOccurrence kind
|
|
32946
33381
|
* @property {Array.<grafeas.v1.ISecretLocation>|null} [locations] SecretOccurrence locations
|
|
32947
33382
|
* @property {Array.<grafeas.v1.ISecretStatus>|null} [statuses] SecretOccurrence statuses
|
|
33383
|
+
* @property {google.protobuf.IAny|null} [data] SecretOccurrence data
|
|
33384
|
+
* @property {grafeas.v1.IDigest|null} [digest] SecretOccurrence digest
|
|
32948
33385
|
*/
|
|
32949
33386
|
|
|
32950
33387
|
/**
|
|
@@ -32988,6 +33425,22 @@
|
|
|
32988
33425
|
*/
|
|
32989
33426
|
SecretOccurrence.prototype.statuses = $util.emptyArray;
|
|
32990
33427
|
|
|
33428
|
+
/**
|
|
33429
|
+
* SecretOccurrence data.
|
|
33430
|
+
* @member {google.protobuf.IAny|null|undefined} data
|
|
33431
|
+
* @memberof grafeas.v1.SecretOccurrence
|
|
33432
|
+
* @instance
|
|
33433
|
+
*/
|
|
33434
|
+
SecretOccurrence.prototype.data = null;
|
|
33435
|
+
|
|
33436
|
+
/**
|
|
33437
|
+
* SecretOccurrence digest.
|
|
33438
|
+
* @member {grafeas.v1.IDigest|null|undefined} digest
|
|
33439
|
+
* @memberof grafeas.v1.SecretOccurrence
|
|
33440
|
+
* @instance
|
|
33441
|
+
*/
|
|
33442
|
+
SecretOccurrence.prototype.digest = null;
|
|
33443
|
+
|
|
32991
33444
|
/**
|
|
32992
33445
|
* Creates a new SecretOccurrence instance using the specified properties.
|
|
32993
33446
|
* @function create
|
|
@@ -33020,6 +33473,10 @@
|
|
|
33020
33473
|
if (message.statuses != null && message.statuses.length)
|
|
33021
33474
|
for (var i = 0; i < message.statuses.length; ++i)
|
|
33022
33475
|
$root.grafeas.v1.SecretStatus.encode(message.statuses[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
33476
|
+
if (message.data != null && Object.hasOwnProperty.call(message, "data"))
|
|
33477
|
+
$root.google.protobuf.Any.encode(message.data, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
33478
|
+
if (message.digest != null && Object.hasOwnProperty.call(message, "digest"))
|
|
33479
|
+
$root.grafeas.v1.Digest.encode(message.digest, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
33023
33480
|
return writer;
|
|
33024
33481
|
};
|
|
33025
33482
|
|
|
@@ -33072,6 +33529,14 @@
|
|
|
33072
33529
|
message.statuses.push($root.grafeas.v1.SecretStatus.decode(reader, reader.uint32()));
|
|
33073
33530
|
break;
|
|
33074
33531
|
}
|
|
33532
|
+
case 4: {
|
|
33533
|
+
message.data = $root.google.protobuf.Any.decode(reader, reader.uint32());
|
|
33534
|
+
break;
|
|
33535
|
+
}
|
|
33536
|
+
case 5: {
|
|
33537
|
+
message.digest = $root.grafeas.v1.Digest.decode(reader, reader.uint32());
|
|
33538
|
+
break;
|
|
33539
|
+
}
|
|
33075
33540
|
default:
|
|
33076
33541
|
reader.skipType(tag & 7);
|
|
33077
33542
|
break;
|
|
@@ -33114,6 +33579,26 @@
|
|
|
33114
33579
|
case 0:
|
|
33115
33580
|
case 1:
|
|
33116
33581
|
case 2:
|
|
33582
|
+
case 3:
|
|
33583
|
+
case 4:
|
|
33584
|
+
case 5:
|
|
33585
|
+
case 6:
|
|
33586
|
+
case 7:
|
|
33587
|
+
case 8:
|
|
33588
|
+
case 9:
|
|
33589
|
+
case 10:
|
|
33590
|
+
case 11:
|
|
33591
|
+
case 12:
|
|
33592
|
+
case 13:
|
|
33593
|
+
case 14:
|
|
33594
|
+
case 15:
|
|
33595
|
+
case 16:
|
|
33596
|
+
case 17:
|
|
33597
|
+
case 18:
|
|
33598
|
+
case 19:
|
|
33599
|
+
case 20:
|
|
33600
|
+
case 21:
|
|
33601
|
+
case 22:
|
|
33117
33602
|
break;
|
|
33118
33603
|
}
|
|
33119
33604
|
if (message.locations != null && message.hasOwnProperty("locations")) {
|
|
@@ -33134,6 +33619,16 @@
|
|
|
33134
33619
|
return "statuses." + error;
|
|
33135
33620
|
}
|
|
33136
33621
|
}
|
|
33622
|
+
if (message.data != null && message.hasOwnProperty("data")) {
|
|
33623
|
+
var error = $root.google.protobuf.Any.verify(message.data);
|
|
33624
|
+
if (error)
|
|
33625
|
+
return "data." + error;
|
|
33626
|
+
}
|
|
33627
|
+
if (message.digest != null && message.hasOwnProperty("digest")) {
|
|
33628
|
+
var error = $root.grafeas.v1.Digest.verify(message.digest);
|
|
33629
|
+
if (error)
|
|
33630
|
+
return "digest." + error;
|
|
33631
|
+
}
|
|
33137
33632
|
return null;
|
|
33138
33633
|
};
|
|
33139
33634
|
|
|
@@ -33168,6 +33663,86 @@
|
|
|
33168
33663
|
case 2:
|
|
33169
33664
|
message.kind = 2;
|
|
33170
33665
|
break;
|
|
33666
|
+
case "SECRET_KIND_GCP_API_KEY":
|
|
33667
|
+
case 3:
|
|
33668
|
+
message.kind = 3;
|
|
33669
|
+
break;
|
|
33670
|
+
case "SECRET_KIND_GCP_OAUTH2_CLIENT_CREDENTIALS":
|
|
33671
|
+
case 4:
|
|
33672
|
+
message.kind = 4;
|
|
33673
|
+
break;
|
|
33674
|
+
case "SECRET_KIND_GCP_OAUTH2_ACCESS_TOKEN":
|
|
33675
|
+
case 5:
|
|
33676
|
+
message.kind = 5;
|
|
33677
|
+
break;
|
|
33678
|
+
case "SECRET_KIND_ANTHROPIC_ADMIN_API_KEY":
|
|
33679
|
+
case 6:
|
|
33680
|
+
message.kind = 6;
|
|
33681
|
+
break;
|
|
33682
|
+
case "SECRET_KIND_ANTHROPIC_API_KEY":
|
|
33683
|
+
case 7:
|
|
33684
|
+
message.kind = 7;
|
|
33685
|
+
break;
|
|
33686
|
+
case "SECRET_KIND_AZURE_ACCESS_TOKEN":
|
|
33687
|
+
case 8:
|
|
33688
|
+
message.kind = 8;
|
|
33689
|
+
break;
|
|
33690
|
+
case "SECRET_KIND_AZURE_IDENTITY_TOKEN":
|
|
33691
|
+
case 9:
|
|
33692
|
+
message.kind = 9;
|
|
33693
|
+
break;
|
|
33694
|
+
case "SECRET_KIND_DOCKER_HUB_PERSONAL_ACCESS_TOKEN":
|
|
33695
|
+
case 10:
|
|
33696
|
+
message.kind = 10;
|
|
33697
|
+
break;
|
|
33698
|
+
case "SECRET_KIND_GITHUB_APP_REFRESH_TOKEN":
|
|
33699
|
+
case 11:
|
|
33700
|
+
message.kind = 11;
|
|
33701
|
+
break;
|
|
33702
|
+
case "SECRET_KIND_GITHUB_APP_SERVER_TO_SERVER_TOKEN":
|
|
33703
|
+
case 12:
|
|
33704
|
+
message.kind = 12;
|
|
33705
|
+
break;
|
|
33706
|
+
case "SECRET_KIND_GITHUB_APP_USER_TO_SERVER_TOKEN":
|
|
33707
|
+
case 13:
|
|
33708
|
+
message.kind = 13;
|
|
33709
|
+
break;
|
|
33710
|
+
case "SECRET_KIND_GITHUB_CLASSIC_PERSONAL_ACCESS_TOKEN":
|
|
33711
|
+
case 14:
|
|
33712
|
+
message.kind = 14;
|
|
33713
|
+
break;
|
|
33714
|
+
case "SECRET_KIND_GITHUB_FINE_GRAINED_PERSONAL_ACCESS_TOKEN":
|
|
33715
|
+
case 15:
|
|
33716
|
+
message.kind = 15;
|
|
33717
|
+
break;
|
|
33718
|
+
case "SECRET_KIND_GITHUB_OAUTH_TOKEN":
|
|
33719
|
+
case 16:
|
|
33720
|
+
message.kind = 16;
|
|
33721
|
+
break;
|
|
33722
|
+
case "SECRET_KIND_HUGGINGFACE_API_KEY":
|
|
33723
|
+
case 17:
|
|
33724
|
+
message.kind = 17;
|
|
33725
|
+
break;
|
|
33726
|
+
case "SECRET_KIND_OPENAI_API_KEY":
|
|
33727
|
+
case 18:
|
|
33728
|
+
message.kind = 18;
|
|
33729
|
+
break;
|
|
33730
|
+
case "SECRET_KIND_PERPLEXITY_API_KEY":
|
|
33731
|
+
case 19:
|
|
33732
|
+
message.kind = 19;
|
|
33733
|
+
break;
|
|
33734
|
+
case "SECRET_KIND_STRIPE_SECRET_KEY":
|
|
33735
|
+
case 20:
|
|
33736
|
+
message.kind = 20;
|
|
33737
|
+
break;
|
|
33738
|
+
case "SECRET_KIND_STRIPE_RESTRICTED_KEY":
|
|
33739
|
+
case 21:
|
|
33740
|
+
message.kind = 21;
|
|
33741
|
+
break;
|
|
33742
|
+
case "SECRET_KIND_STRIPE_WEBHOOK_SECRET":
|
|
33743
|
+
case 22:
|
|
33744
|
+
message.kind = 22;
|
|
33745
|
+
break;
|
|
33171
33746
|
}
|
|
33172
33747
|
if (object.locations) {
|
|
33173
33748
|
if (!Array.isArray(object.locations))
|
|
@@ -33189,6 +33764,16 @@
|
|
|
33189
33764
|
message.statuses[i] = $root.grafeas.v1.SecretStatus.fromObject(object.statuses[i]);
|
|
33190
33765
|
}
|
|
33191
33766
|
}
|
|
33767
|
+
if (object.data != null) {
|
|
33768
|
+
if (typeof object.data !== "object")
|
|
33769
|
+
throw TypeError(".grafeas.v1.SecretOccurrence.data: object expected");
|
|
33770
|
+
message.data = $root.google.protobuf.Any.fromObject(object.data);
|
|
33771
|
+
}
|
|
33772
|
+
if (object.digest != null) {
|
|
33773
|
+
if (typeof object.digest !== "object")
|
|
33774
|
+
throw TypeError(".grafeas.v1.SecretOccurrence.digest: object expected");
|
|
33775
|
+
message.digest = $root.grafeas.v1.Digest.fromObject(object.digest);
|
|
33776
|
+
}
|
|
33192
33777
|
return message;
|
|
33193
33778
|
};
|
|
33194
33779
|
|
|
@@ -33209,8 +33794,11 @@
|
|
|
33209
33794
|
object.locations = [];
|
|
33210
33795
|
object.statuses = [];
|
|
33211
33796
|
}
|
|
33212
|
-
if (options.defaults)
|
|
33797
|
+
if (options.defaults) {
|
|
33213
33798
|
object.kind = options.enums === String ? "SECRET_KIND_UNSPECIFIED" : 0;
|
|
33799
|
+
object.data = null;
|
|
33800
|
+
object.digest = null;
|
|
33801
|
+
}
|
|
33214
33802
|
if (message.kind != null && message.hasOwnProperty("kind"))
|
|
33215
33803
|
object.kind = options.enums === String ? $root.grafeas.v1.SecretKind[message.kind] === undefined ? message.kind : $root.grafeas.v1.SecretKind[message.kind] : message.kind;
|
|
33216
33804
|
if (message.locations && message.locations.length) {
|
|
@@ -33223,6 +33811,10 @@
|
|
|
33223
33811
|
for (var j = 0; j < message.statuses.length; ++j)
|
|
33224
33812
|
object.statuses[j] = $root.grafeas.v1.SecretStatus.toObject(message.statuses[j], options);
|
|
33225
33813
|
}
|
|
33814
|
+
if (message.data != null && message.hasOwnProperty("data"))
|
|
33815
|
+
object.data = $root.google.protobuf.Any.toObject(message.data, options);
|
|
33816
|
+
if (message.digest != null && message.hasOwnProperty("digest"))
|
|
33817
|
+
object.digest = $root.grafeas.v1.Digest.toObject(message.digest, options);
|
|
33226
33818
|
return object;
|
|
33227
33819
|
};
|
|
33228
33820
|
|
|
@@ -33795,12 +34387,52 @@
|
|
|
33795
34387
|
* @property {number} SECRET_KIND_UNSPECIFIED=0 SECRET_KIND_UNSPECIFIED value
|
|
33796
34388
|
* @property {number} SECRET_KIND_UNKNOWN=1 SECRET_KIND_UNKNOWN value
|
|
33797
34389
|
* @property {number} SECRET_KIND_GCP_SERVICE_ACCOUNT_KEY=2 SECRET_KIND_GCP_SERVICE_ACCOUNT_KEY value
|
|
34390
|
+
* @property {number} SECRET_KIND_GCP_API_KEY=3 SECRET_KIND_GCP_API_KEY value
|
|
34391
|
+
* @property {number} SECRET_KIND_GCP_OAUTH2_CLIENT_CREDENTIALS=4 SECRET_KIND_GCP_OAUTH2_CLIENT_CREDENTIALS value
|
|
34392
|
+
* @property {number} SECRET_KIND_GCP_OAUTH2_ACCESS_TOKEN=5 SECRET_KIND_GCP_OAUTH2_ACCESS_TOKEN value
|
|
34393
|
+
* @property {number} SECRET_KIND_ANTHROPIC_ADMIN_API_KEY=6 SECRET_KIND_ANTHROPIC_ADMIN_API_KEY value
|
|
34394
|
+
* @property {number} SECRET_KIND_ANTHROPIC_API_KEY=7 SECRET_KIND_ANTHROPIC_API_KEY value
|
|
34395
|
+
* @property {number} SECRET_KIND_AZURE_ACCESS_TOKEN=8 SECRET_KIND_AZURE_ACCESS_TOKEN value
|
|
34396
|
+
* @property {number} SECRET_KIND_AZURE_IDENTITY_TOKEN=9 SECRET_KIND_AZURE_IDENTITY_TOKEN value
|
|
34397
|
+
* @property {number} SECRET_KIND_DOCKER_HUB_PERSONAL_ACCESS_TOKEN=10 SECRET_KIND_DOCKER_HUB_PERSONAL_ACCESS_TOKEN value
|
|
34398
|
+
* @property {number} SECRET_KIND_GITHUB_APP_REFRESH_TOKEN=11 SECRET_KIND_GITHUB_APP_REFRESH_TOKEN value
|
|
34399
|
+
* @property {number} SECRET_KIND_GITHUB_APP_SERVER_TO_SERVER_TOKEN=12 SECRET_KIND_GITHUB_APP_SERVER_TO_SERVER_TOKEN value
|
|
34400
|
+
* @property {number} SECRET_KIND_GITHUB_APP_USER_TO_SERVER_TOKEN=13 SECRET_KIND_GITHUB_APP_USER_TO_SERVER_TOKEN value
|
|
34401
|
+
* @property {number} SECRET_KIND_GITHUB_CLASSIC_PERSONAL_ACCESS_TOKEN=14 SECRET_KIND_GITHUB_CLASSIC_PERSONAL_ACCESS_TOKEN value
|
|
34402
|
+
* @property {number} SECRET_KIND_GITHUB_FINE_GRAINED_PERSONAL_ACCESS_TOKEN=15 SECRET_KIND_GITHUB_FINE_GRAINED_PERSONAL_ACCESS_TOKEN value
|
|
34403
|
+
* @property {number} SECRET_KIND_GITHUB_OAUTH_TOKEN=16 SECRET_KIND_GITHUB_OAUTH_TOKEN value
|
|
34404
|
+
* @property {number} SECRET_KIND_HUGGINGFACE_API_KEY=17 SECRET_KIND_HUGGINGFACE_API_KEY value
|
|
34405
|
+
* @property {number} SECRET_KIND_OPENAI_API_KEY=18 SECRET_KIND_OPENAI_API_KEY value
|
|
34406
|
+
* @property {number} SECRET_KIND_PERPLEXITY_API_KEY=19 SECRET_KIND_PERPLEXITY_API_KEY value
|
|
34407
|
+
* @property {number} SECRET_KIND_STRIPE_SECRET_KEY=20 SECRET_KIND_STRIPE_SECRET_KEY value
|
|
34408
|
+
* @property {number} SECRET_KIND_STRIPE_RESTRICTED_KEY=21 SECRET_KIND_STRIPE_RESTRICTED_KEY value
|
|
34409
|
+
* @property {number} SECRET_KIND_STRIPE_WEBHOOK_SECRET=22 SECRET_KIND_STRIPE_WEBHOOK_SECRET value
|
|
33798
34410
|
*/
|
|
33799
34411
|
v1.SecretKind = (function() {
|
|
33800
34412
|
var valuesById = {}, values = Object.create(valuesById);
|
|
33801
34413
|
values[valuesById[0] = "SECRET_KIND_UNSPECIFIED"] = 0;
|
|
33802
34414
|
values[valuesById[1] = "SECRET_KIND_UNKNOWN"] = 1;
|
|
33803
34415
|
values[valuesById[2] = "SECRET_KIND_GCP_SERVICE_ACCOUNT_KEY"] = 2;
|
|
34416
|
+
values[valuesById[3] = "SECRET_KIND_GCP_API_KEY"] = 3;
|
|
34417
|
+
values[valuesById[4] = "SECRET_KIND_GCP_OAUTH2_CLIENT_CREDENTIALS"] = 4;
|
|
34418
|
+
values[valuesById[5] = "SECRET_KIND_GCP_OAUTH2_ACCESS_TOKEN"] = 5;
|
|
34419
|
+
values[valuesById[6] = "SECRET_KIND_ANTHROPIC_ADMIN_API_KEY"] = 6;
|
|
34420
|
+
values[valuesById[7] = "SECRET_KIND_ANTHROPIC_API_KEY"] = 7;
|
|
34421
|
+
values[valuesById[8] = "SECRET_KIND_AZURE_ACCESS_TOKEN"] = 8;
|
|
34422
|
+
values[valuesById[9] = "SECRET_KIND_AZURE_IDENTITY_TOKEN"] = 9;
|
|
34423
|
+
values[valuesById[10] = "SECRET_KIND_DOCKER_HUB_PERSONAL_ACCESS_TOKEN"] = 10;
|
|
34424
|
+
values[valuesById[11] = "SECRET_KIND_GITHUB_APP_REFRESH_TOKEN"] = 11;
|
|
34425
|
+
values[valuesById[12] = "SECRET_KIND_GITHUB_APP_SERVER_TO_SERVER_TOKEN"] = 12;
|
|
34426
|
+
values[valuesById[13] = "SECRET_KIND_GITHUB_APP_USER_TO_SERVER_TOKEN"] = 13;
|
|
34427
|
+
values[valuesById[14] = "SECRET_KIND_GITHUB_CLASSIC_PERSONAL_ACCESS_TOKEN"] = 14;
|
|
34428
|
+
values[valuesById[15] = "SECRET_KIND_GITHUB_FINE_GRAINED_PERSONAL_ACCESS_TOKEN"] = 15;
|
|
34429
|
+
values[valuesById[16] = "SECRET_KIND_GITHUB_OAUTH_TOKEN"] = 16;
|
|
34430
|
+
values[valuesById[17] = "SECRET_KIND_HUGGINGFACE_API_KEY"] = 17;
|
|
34431
|
+
values[valuesById[18] = "SECRET_KIND_OPENAI_API_KEY"] = 18;
|
|
34432
|
+
values[valuesById[19] = "SECRET_KIND_PERPLEXITY_API_KEY"] = 19;
|
|
34433
|
+
values[valuesById[20] = "SECRET_KIND_STRIPE_SECRET_KEY"] = 20;
|
|
34434
|
+
values[valuesById[21] = "SECRET_KIND_STRIPE_RESTRICTED_KEY"] = 21;
|
|
34435
|
+
values[valuesById[22] = "SECRET_KIND_STRIPE_WEBHOOK_SECRET"] = 22;
|
|
33804
34436
|
return values;
|
|
33805
34437
|
})();
|
|
33806
34438
|
|
|
@@ -39103,6 +39735,7 @@
|
|
|
39103
39735
|
* @property {grafeas.v1.ICVSS|null} [cvssV2] VulnerabilityOccurrence cvssV2
|
|
39104
39736
|
* @property {grafeas.v1.VulnerabilityOccurrence.IVexAssessment|null} [vexAssessment] VulnerabilityOccurrence vexAssessment
|
|
39105
39737
|
* @property {string|null} [extraDetails] VulnerabilityOccurrence extraDetails
|
|
39738
|
+
* @property {grafeas.v1.IRisk|null} [risk] VulnerabilityOccurrence risk
|
|
39106
39739
|
*/
|
|
39107
39740
|
|
|
39108
39741
|
/**
|
|
@@ -39234,6 +39867,14 @@
|
|
|
39234
39867
|
*/
|
|
39235
39868
|
VulnerabilityOccurrence.prototype.extraDetails = "";
|
|
39236
39869
|
|
|
39870
|
+
/**
|
|
39871
|
+
* VulnerabilityOccurrence risk.
|
|
39872
|
+
* @member {grafeas.v1.IRisk|null|undefined} risk
|
|
39873
|
+
* @memberof grafeas.v1.VulnerabilityOccurrence
|
|
39874
|
+
* @instance
|
|
39875
|
+
*/
|
|
39876
|
+
VulnerabilityOccurrence.prototype.risk = null;
|
|
39877
|
+
|
|
39237
39878
|
/**
|
|
39238
39879
|
* Creates a new VulnerabilityOccurrence instance using the specified properties.
|
|
39239
39880
|
* @function create
|
|
@@ -39288,6 +39929,8 @@
|
|
|
39288
39929
|
$root.grafeas.v1.VulnerabilityOccurrence.VexAssessment.encode(message.vexAssessment, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
|
39289
39930
|
if (message.extraDetails != null && Object.hasOwnProperty.call(message, "extraDetails"))
|
|
39290
39931
|
writer.uint32(/* id 14, wireType 2 =*/114).string(message.extraDetails);
|
|
39932
|
+
if (message.risk != null && Object.hasOwnProperty.call(message, "risk"))
|
|
39933
|
+
$root.grafeas.v1.Risk.encode(message.risk, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
|
|
39291
39934
|
return writer;
|
|
39292
39935
|
};
|
|
39293
39936
|
|
|
@@ -39384,6 +40027,10 @@
|
|
|
39384
40027
|
message.extraDetails = reader.string();
|
|
39385
40028
|
break;
|
|
39386
40029
|
}
|
|
40030
|
+
case 15: {
|
|
40031
|
+
message.risk = $root.grafeas.v1.Risk.decode(reader, reader.uint32());
|
|
40032
|
+
break;
|
|
40033
|
+
}
|
|
39387
40034
|
default:
|
|
39388
40035
|
reader.skipType(tag & 7);
|
|
39389
40036
|
break;
|
|
@@ -39503,6 +40150,11 @@
|
|
|
39503
40150
|
if (message.extraDetails != null && message.hasOwnProperty("extraDetails"))
|
|
39504
40151
|
if (!$util.isString(message.extraDetails))
|
|
39505
40152
|
return "extraDetails: string expected";
|
|
40153
|
+
if (message.risk != null && message.hasOwnProperty("risk")) {
|
|
40154
|
+
var error = $root.grafeas.v1.Risk.verify(message.risk);
|
|
40155
|
+
if (error)
|
|
40156
|
+
return "risk." + error;
|
|
40157
|
+
}
|
|
39506
40158
|
return null;
|
|
39507
40159
|
};
|
|
39508
40160
|
|
|
@@ -39649,6 +40301,11 @@
|
|
|
39649
40301
|
}
|
|
39650
40302
|
if (object.extraDetails != null)
|
|
39651
40303
|
message.extraDetails = String(object.extraDetails);
|
|
40304
|
+
if (object.risk != null) {
|
|
40305
|
+
if (typeof object.risk !== "object")
|
|
40306
|
+
throw TypeError(".grafeas.v1.VulnerabilityOccurrence.risk: object expected");
|
|
40307
|
+
message.risk = $root.grafeas.v1.Risk.fromObject(object.risk);
|
|
40308
|
+
}
|
|
39652
40309
|
return message;
|
|
39653
40310
|
};
|
|
39654
40311
|
|
|
@@ -39682,6 +40339,7 @@
|
|
|
39682
40339
|
object.cvssV2 = null;
|
|
39683
40340
|
object.vexAssessment = null;
|
|
39684
40341
|
object.extraDetails = "";
|
|
40342
|
+
object.risk = null;
|
|
39685
40343
|
}
|
|
39686
40344
|
if (message.type != null && message.hasOwnProperty("type"))
|
|
39687
40345
|
object.type = message.type;
|
|
@@ -39717,6 +40375,8 @@
|
|
|
39717
40375
|
object.vexAssessment = $root.grafeas.v1.VulnerabilityOccurrence.VexAssessment.toObject(message.vexAssessment, options);
|
|
39718
40376
|
if (message.extraDetails != null && message.hasOwnProperty("extraDetails"))
|
|
39719
40377
|
object.extraDetails = message.extraDetails;
|
|
40378
|
+
if (message.risk != null && message.hasOwnProperty("risk"))
|
|
40379
|
+
object.risk = $root.grafeas.v1.Risk.toObject(message.risk, options);
|
|
39720
40380
|
return object;
|
|
39721
40381
|
};
|
|
39722
40382
|
|
|
@@ -40699,6 +41359,679 @@
|
|
|
40699
41359
|
return VulnerabilityOccurrence;
|
|
40700
41360
|
})();
|
|
40701
41361
|
|
|
41362
|
+
v1.Risk = (function() {
|
|
41363
|
+
|
|
41364
|
+
/**
|
|
41365
|
+
* Properties of a Risk.
|
|
41366
|
+
* @memberof grafeas.v1
|
|
41367
|
+
* @interface IRisk
|
|
41368
|
+
* @property {grafeas.v1.ICISAKnownExploitedVulnerabilities|null} [cisaKev] Risk cisaKev
|
|
41369
|
+
* @property {grafeas.v1.IExploitPredictionScoringSystem|null} [epss] Risk epss
|
|
41370
|
+
*/
|
|
41371
|
+
|
|
41372
|
+
/**
|
|
41373
|
+
* Constructs a new Risk.
|
|
41374
|
+
* @memberof grafeas.v1
|
|
41375
|
+
* @classdesc Represents a Risk.
|
|
41376
|
+
* @implements IRisk
|
|
41377
|
+
* @constructor
|
|
41378
|
+
* @param {grafeas.v1.IRisk=} [properties] Properties to set
|
|
41379
|
+
*/
|
|
41380
|
+
function Risk(properties) {
|
|
41381
|
+
if (properties)
|
|
41382
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
41383
|
+
if (properties[keys[i]] != null)
|
|
41384
|
+
this[keys[i]] = properties[keys[i]];
|
|
41385
|
+
}
|
|
41386
|
+
|
|
41387
|
+
/**
|
|
41388
|
+
* Risk cisaKev.
|
|
41389
|
+
* @member {grafeas.v1.ICISAKnownExploitedVulnerabilities|null|undefined} cisaKev
|
|
41390
|
+
* @memberof grafeas.v1.Risk
|
|
41391
|
+
* @instance
|
|
41392
|
+
*/
|
|
41393
|
+
Risk.prototype.cisaKev = null;
|
|
41394
|
+
|
|
41395
|
+
/**
|
|
41396
|
+
* Risk epss.
|
|
41397
|
+
* @member {grafeas.v1.IExploitPredictionScoringSystem|null|undefined} epss
|
|
41398
|
+
* @memberof grafeas.v1.Risk
|
|
41399
|
+
* @instance
|
|
41400
|
+
*/
|
|
41401
|
+
Risk.prototype.epss = null;
|
|
41402
|
+
|
|
41403
|
+
/**
|
|
41404
|
+
* Creates a new Risk instance using the specified properties.
|
|
41405
|
+
* @function create
|
|
41406
|
+
* @memberof grafeas.v1.Risk
|
|
41407
|
+
* @static
|
|
41408
|
+
* @param {grafeas.v1.IRisk=} [properties] Properties to set
|
|
41409
|
+
* @returns {grafeas.v1.Risk} Risk instance
|
|
41410
|
+
*/
|
|
41411
|
+
Risk.create = function create(properties) {
|
|
41412
|
+
return new Risk(properties);
|
|
41413
|
+
};
|
|
41414
|
+
|
|
41415
|
+
/**
|
|
41416
|
+
* Encodes the specified Risk message. Does not implicitly {@link grafeas.v1.Risk.verify|verify} messages.
|
|
41417
|
+
* @function encode
|
|
41418
|
+
* @memberof grafeas.v1.Risk
|
|
41419
|
+
* @static
|
|
41420
|
+
* @param {grafeas.v1.IRisk} message Risk message or plain object to encode
|
|
41421
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41422
|
+
* @returns {$protobuf.Writer} Writer
|
|
41423
|
+
*/
|
|
41424
|
+
Risk.encode = function encode(message, writer) {
|
|
41425
|
+
if (!writer)
|
|
41426
|
+
writer = $Writer.create();
|
|
41427
|
+
if (message.cisaKev != null && Object.hasOwnProperty.call(message, "cisaKev"))
|
|
41428
|
+
$root.grafeas.v1.CISAKnownExploitedVulnerabilities.encode(message.cisaKev, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
41429
|
+
if (message.epss != null && Object.hasOwnProperty.call(message, "epss"))
|
|
41430
|
+
$root.grafeas.v1.ExploitPredictionScoringSystem.encode(message.epss, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
41431
|
+
return writer;
|
|
41432
|
+
};
|
|
41433
|
+
|
|
41434
|
+
/**
|
|
41435
|
+
* Encodes the specified Risk message, length delimited. Does not implicitly {@link grafeas.v1.Risk.verify|verify} messages.
|
|
41436
|
+
* @function encodeDelimited
|
|
41437
|
+
* @memberof grafeas.v1.Risk
|
|
41438
|
+
* @static
|
|
41439
|
+
* @param {grafeas.v1.IRisk} message Risk message or plain object to encode
|
|
41440
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41441
|
+
* @returns {$protobuf.Writer} Writer
|
|
41442
|
+
*/
|
|
41443
|
+
Risk.encodeDelimited = function encodeDelimited(message, writer) {
|
|
41444
|
+
return this.encode(message, writer).ldelim();
|
|
41445
|
+
};
|
|
41446
|
+
|
|
41447
|
+
/**
|
|
41448
|
+
* Decodes a Risk message from the specified reader or buffer.
|
|
41449
|
+
* @function decode
|
|
41450
|
+
* @memberof grafeas.v1.Risk
|
|
41451
|
+
* @static
|
|
41452
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41453
|
+
* @param {number} [length] Message length if known beforehand
|
|
41454
|
+
* @returns {grafeas.v1.Risk} Risk
|
|
41455
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41456
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41457
|
+
*/
|
|
41458
|
+
Risk.decode = function decode(reader, length, error) {
|
|
41459
|
+
if (!(reader instanceof $Reader))
|
|
41460
|
+
reader = $Reader.create(reader);
|
|
41461
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.grafeas.v1.Risk();
|
|
41462
|
+
while (reader.pos < end) {
|
|
41463
|
+
var tag = reader.uint32();
|
|
41464
|
+
if (tag === error)
|
|
41465
|
+
break;
|
|
41466
|
+
switch (tag >>> 3) {
|
|
41467
|
+
case 1: {
|
|
41468
|
+
message.cisaKev = $root.grafeas.v1.CISAKnownExploitedVulnerabilities.decode(reader, reader.uint32());
|
|
41469
|
+
break;
|
|
41470
|
+
}
|
|
41471
|
+
case 2: {
|
|
41472
|
+
message.epss = $root.grafeas.v1.ExploitPredictionScoringSystem.decode(reader, reader.uint32());
|
|
41473
|
+
break;
|
|
41474
|
+
}
|
|
41475
|
+
default:
|
|
41476
|
+
reader.skipType(tag & 7);
|
|
41477
|
+
break;
|
|
41478
|
+
}
|
|
41479
|
+
}
|
|
41480
|
+
return message;
|
|
41481
|
+
};
|
|
41482
|
+
|
|
41483
|
+
/**
|
|
41484
|
+
* Decodes a Risk message from the specified reader or buffer, length delimited.
|
|
41485
|
+
* @function decodeDelimited
|
|
41486
|
+
* @memberof grafeas.v1.Risk
|
|
41487
|
+
* @static
|
|
41488
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41489
|
+
* @returns {grafeas.v1.Risk} Risk
|
|
41490
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41491
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41492
|
+
*/
|
|
41493
|
+
Risk.decodeDelimited = function decodeDelimited(reader) {
|
|
41494
|
+
if (!(reader instanceof $Reader))
|
|
41495
|
+
reader = new $Reader(reader);
|
|
41496
|
+
return this.decode(reader, reader.uint32());
|
|
41497
|
+
};
|
|
41498
|
+
|
|
41499
|
+
/**
|
|
41500
|
+
* Verifies a Risk message.
|
|
41501
|
+
* @function verify
|
|
41502
|
+
* @memberof grafeas.v1.Risk
|
|
41503
|
+
* @static
|
|
41504
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
41505
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
41506
|
+
*/
|
|
41507
|
+
Risk.verify = function verify(message) {
|
|
41508
|
+
if (typeof message !== "object" || message === null)
|
|
41509
|
+
return "object expected";
|
|
41510
|
+
if (message.cisaKev != null && message.hasOwnProperty("cisaKev")) {
|
|
41511
|
+
var error = $root.grafeas.v1.CISAKnownExploitedVulnerabilities.verify(message.cisaKev);
|
|
41512
|
+
if (error)
|
|
41513
|
+
return "cisaKev." + error;
|
|
41514
|
+
}
|
|
41515
|
+
if (message.epss != null && message.hasOwnProperty("epss")) {
|
|
41516
|
+
var error = $root.grafeas.v1.ExploitPredictionScoringSystem.verify(message.epss);
|
|
41517
|
+
if (error)
|
|
41518
|
+
return "epss." + error;
|
|
41519
|
+
}
|
|
41520
|
+
return null;
|
|
41521
|
+
};
|
|
41522
|
+
|
|
41523
|
+
/**
|
|
41524
|
+
* Creates a Risk message from a plain object. Also converts values to their respective internal types.
|
|
41525
|
+
* @function fromObject
|
|
41526
|
+
* @memberof grafeas.v1.Risk
|
|
41527
|
+
* @static
|
|
41528
|
+
* @param {Object.<string,*>} object Plain object
|
|
41529
|
+
* @returns {grafeas.v1.Risk} Risk
|
|
41530
|
+
*/
|
|
41531
|
+
Risk.fromObject = function fromObject(object) {
|
|
41532
|
+
if (object instanceof $root.grafeas.v1.Risk)
|
|
41533
|
+
return object;
|
|
41534
|
+
var message = new $root.grafeas.v1.Risk();
|
|
41535
|
+
if (object.cisaKev != null) {
|
|
41536
|
+
if (typeof object.cisaKev !== "object")
|
|
41537
|
+
throw TypeError(".grafeas.v1.Risk.cisaKev: object expected");
|
|
41538
|
+
message.cisaKev = $root.grafeas.v1.CISAKnownExploitedVulnerabilities.fromObject(object.cisaKev);
|
|
41539
|
+
}
|
|
41540
|
+
if (object.epss != null) {
|
|
41541
|
+
if (typeof object.epss !== "object")
|
|
41542
|
+
throw TypeError(".grafeas.v1.Risk.epss: object expected");
|
|
41543
|
+
message.epss = $root.grafeas.v1.ExploitPredictionScoringSystem.fromObject(object.epss);
|
|
41544
|
+
}
|
|
41545
|
+
return message;
|
|
41546
|
+
};
|
|
41547
|
+
|
|
41548
|
+
/**
|
|
41549
|
+
* Creates a plain object from a Risk message. Also converts values to other types if specified.
|
|
41550
|
+
* @function toObject
|
|
41551
|
+
* @memberof grafeas.v1.Risk
|
|
41552
|
+
* @static
|
|
41553
|
+
* @param {grafeas.v1.Risk} message Risk
|
|
41554
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
41555
|
+
* @returns {Object.<string,*>} Plain object
|
|
41556
|
+
*/
|
|
41557
|
+
Risk.toObject = function toObject(message, options) {
|
|
41558
|
+
if (!options)
|
|
41559
|
+
options = {};
|
|
41560
|
+
var object = {};
|
|
41561
|
+
if (options.defaults) {
|
|
41562
|
+
object.cisaKev = null;
|
|
41563
|
+
object.epss = null;
|
|
41564
|
+
}
|
|
41565
|
+
if (message.cisaKev != null && message.hasOwnProperty("cisaKev"))
|
|
41566
|
+
object.cisaKev = $root.grafeas.v1.CISAKnownExploitedVulnerabilities.toObject(message.cisaKev, options);
|
|
41567
|
+
if (message.epss != null && message.hasOwnProperty("epss"))
|
|
41568
|
+
object.epss = $root.grafeas.v1.ExploitPredictionScoringSystem.toObject(message.epss, options);
|
|
41569
|
+
return object;
|
|
41570
|
+
};
|
|
41571
|
+
|
|
41572
|
+
/**
|
|
41573
|
+
* Converts this Risk to JSON.
|
|
41574
|
+
* @function toJSON
|
|
41575
|
+
* @memberof grafeas.v1.Risk
|
|
41576
|
+
* @instance
|
|
41577
|
+
* @returns {Object.<string,*>} JSON object
|
|
41578
|
+
*/
|
|
41579
|
+
Risk.prototype.toJSON = function toJSON() {
|
|
41580
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
41581
|
+
};
|
|
41582
|
+
|
|
41583
|
+
/**
|
|
41584
|
+
* Gets the default type url for Risk
|
|
41585
|
+
* @function getTypeUrl
|
|
41586
|
+
* @memberof grafeas.v1.Risk
|
|
41587
|
+
* @static
|
|
41588
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
41589
|
+
* @returns {string} The default type url
|
|
41590
|
+
*/
|
|
41591
|
+
Risk.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
41592
|
+
if (typeUrlPrefix === undefined) {
|
|
41593
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
41594
|
+
}
|
|
41595
|
+
return typeUrlPrefix + "/grafeas.v1.Risk";
|
|
41596
|
+
};
|
|
41597
|
+
|
|
41598
|
+
return Risk;
|
|
41599
|
+
})();
|
|
41600
|
+
|
|
41601
|
+
v1.CISAKnownExploitedVulnerabilities = (function() {
|
|
41602
|
+
|
|
41603
|
+
/**
|
|
41604
|
+
* Properties of a CISAKnownExploitedVulnerabilities.
|
|
41605
|
+
* @memberof grafeas.v1
|
|
41606
|
+
* @interface ICISAKnownExploitedVulnerabilities
|
|
41607
|
+
* @property {string|null} [knownRansomwareCampaignUse] CISAKnownExploitedVulnerabilities knownRansomwareCampaignUse
|
|
41608
|
+
*/
|
|
41609
|
+
|
|
41610
|
+
/**
|
|
41611
|
+
* Constructs a new CISAKnownExploitedVulnerabilities.
|
|
41612
|
+
* @memberof grafeas.v1
|
|
41613
|
+
* @classdesc Represents a CISAKnownExploitedVulnerabilities.
|
|
41614
|
+
* @implements ICISAKnownExploitedVulnerabilities
|
|
41615
|
+
* @constructor
|
|
41616
|
+
* @param {grafeas.v1.ICISAKnownExploitedVulnerabilities=} [properties] Properties to set
|
|
41617
|
+
*/
|
|
41618
|
+
function CISAKnownExploitedVulnerabilities(properties) {
|
|
41619
|
+
if (properties)
|
|
41620
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
41621
|
+
if (properties[keys[i]] != null)
|
|
41622
|
+
this[keys[i]] = properties[keys[i]];
|
|
41623
|
+
}
|
|
41624
|
+
|
|
41625
|
+
/**
|
|
41626
|
+
* CISAKnownExploitedVulnerabilities knownRansomwareCampaignUse.
|
|
41627
|
+
* @member {string} knownRansomwareCampaignUse
|
|
41628
|
+
* @memberof grafeas.v1.CISAKnownExploitedVulnerabilities
|
|
41629
|
+
* @instance
|
|
41630
|
+
*/
|
|
41631
|
+
CISAKnownExploitedVulnerabilities.prototype.knownRansomwareCampaignUse = "";
|
|
41632
|
+
|
|
41633
|
+
/**
|
|
41634
|
+
* Creates a new CISAKnownExploitedVulnerabilities instance using the specified properties.
|
|
41635
|
+
* @function create
|
|
41636
|
+
* @memberof grafeas.v1.CISAKnownExploitedVulnerabilities
|
|
41637
|
+
* @static
|
|
41638
|
+
* @param {grafeas.v1.ICISAKnownExploitedVulnerabilities=} [properties] Properties to set
|
|
41639
|
+
* @returns {grafeas.v1.CISAKnownExploitedVulnerabilities} CISAKnownExploitedVulnerabilities instance
|
|
41640
|
+
*/
|
|
41641
|
+
CISAKnownExploitedVulnerabilities.create = function create(properties) {
|
|
41642
|
+
return new CISAKnownExploitedVulnerabilities(properties);
|
|
41643
|
+
};
|
|
41644
|
+
|
|
41645
|
+
/**
|
|
41646
|
+
* Encodes the specified CISAKnownExploitedVulnerabilities message. Does not implicitly {@link grafeas.v1.CISAKnownExploitedVulnerabilities.verify|verify} messages.
|
|
41647
|
+
* @function encode
|
|
41648
|
+
* @memberof grafeas.v1.CISAKnownExploitedVulnerabilities
|
|
41649
|
+
* @static
|
|
41650
|
+
* @param {grafeas.v1.ICISAKnownExploitedVulnerabilities} message CISAKnownExploitedVulnerabilities message or plain object to encode
|
|
41651
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41652
|
+
* @returns {$protobuf.Writer} Writer
|
|
41653
|
+
*/
|
|
41654
|
+
CISAKnownExploitedVulnerabilities.encode = function encode(message, writer) {
|
|
41655
|
+
if (!writer)
|
|
41656
|
+
writer = $Writer.create();
|
|
41657
|
+
if (message.knownRansomwareCampaignUse != null && Object.hasOwnProperty.call(message, "knownRansomwareCampaignUse"))
|
|
41658
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.knownRansomwareCampaignUse);
|
|
41659
|
+
return writer;
|
|
41660
|
+
};
|
|
41661
|
+
|
|
41662
|
+
/**
|
|
41663
|
+
* Encodes the specified CISAKnownExploitedVulnerabilities message, length delimited. Does not implicitly {@link grafeas.v1.CISAKnownExploitedVulnerabilities.verify|verify} messages.
|
|
41664
|
+
* @function encodeDelimited
|
|
41665
|
+
* @memberof grafeas.v1.CISAKnownExploitedVulnerabilities
|
|
41666
|
+
* @static
|
|
41667
|
+
* @param {grafeas.v1.ICISAKnownExploitedVulnerabilities} message CISAKnownExploitedVulnerabilities message or plain object to encode
|
|
41668
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41669
|
+
* @returns {$protobuf.Writer} Writer
|
|
41670
|
+
*/
|
|
41671
|
+
CISAKnownExploitedVulnerabilities.encodeDelimited = function encodeDelimited(message, writer) {
|
|
41672
|
+
return this.encode(message, writer).ldelim();
|
|
41673
|
+
};
|
|
41674
|
+
|
|
41675
|
+
/**
|
|
41676
|
+
* Decodes a CISAKnownExploitedVulnerabilities message from the specified reader or buffer.
|
|
41677
|
+
* @function decode
|
|
41678
|
+
* @memberof grafeas.v1.CISAKnownExploitedVulnerabilities
|
|
41679
|
+
* @static
|
|
41680
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41681
|
+
* @param {number} [length] Message length if known beforehand
|
|
41682
|
+
* @returns {grafeas.v1.CISAKnownExploitedVulnerabilities} CISAKnownExploitedVulnerabilities
|
|
41683
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41684
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41685
|
+
*/
|
|
41686
|
+
CISAKnownExploitedVulnerabilities.decode = function decode(reader, length, error) {
|
|
41687
|
+
if (!(reader instanceof $Reader))
|
|
41688
|
+
reader = $Reader.create(reader);
|
|
41689
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.grafeas.v1.CISAKnownExploitedVulnerabilities();
|
|
41690
|
+
while (reader.pos < end) {
|
|
41691
|
+
var tag = reader.uint32();
|
|
41692
|
+
if (tag === error)
|
|
41693
|
+
break;
|
|
41694
|
+
switch (tag >>> 3) {
|
|
41695
|
+
case 1: {
|
|
41696
|
+
message.knownRansomwareCampaignUse = reader.string();
|
|
41697
|
+
break;
|
|
41698
|
+
}
|
|
41699
|
+
default:
|
|
41700
|
+
reader.skipType(tag & 7);
|
|
41701
|
+
break;
|
|
41702
|
+
}
|
|
41703
|
+
}
|
|
41704
|
+
return message;
|
|
41705
|
+
};
|
|
41706
|
+
|
|
41707
|
+
/**
|
|
41708
|
+
* Decodes a CISAKnownExploitedVulnerabilities message from the specified reader or buffer, length delimited.
|
|
41709
|
+
* @function decodeDelimited
|
|
41710
|
+
* @memberof grafeas.v1.CISAKnownExploitedVulnerabilities
|
|
41711
|
+
* @static
|
|
41712
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41713
|
+
* @returns {grafeas.v1.CISAKnownExploitedVulnerabilities} CISAKnownExploitedVulnerabilities
|
|
41714
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41715
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41716
|
+
*/
|
|
41717
|
+
CISAKnownExploitedVulnerabilities.decodeDelimited = function decodeDelimited(reader) {
|
|
41718
|
+
if (!(reader instanceof $Reader))
|
|
41719
|
+
reader = new $Reader(reader);
|
|
41720
|
+
return this.decode(reader, reader.uint32());
|
|
41721
|
+
};
|
|
41722
|
+
|
|
41723
|
+
/**
|
|
41724
|
+
* Verifies a CISAKnownExploitedVulnerabilities message.
|
|
41725
|
+
* @function verify
|
|
41726
|
+
* @memberof grafeas.v1.CISAKnownExploitedVulnerabilities
|
|
41727
|
+
* @static
|
|
41728
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
41729
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
41730
|
+
*/
|
|
41731
|
+
CISAKnownExploitedVulnerabilities.verify = function verify(message) {
|
|
41732
|
+
if (typeof message !== "object" || message === null)
|
|
41733
|
+
return "object expected";
|
|
41734
|
+
if (message.knownRansomwareCampaignUse != null && message.hasOwnProperty("knownRansomwareCampaignUse"))
|
|
41735
|
+
if (!$util.isString(message.knownRansomwareCampaignUse))
|
|
41736
|
+
return "knownRansomwareCampaignUse: string expected";
|
|
41737
|
+
return null;
|
|
41738
|
+
};
|
|
41739
|
+
|
|
41740
|
+
/**
|
|
41741
|
+
* Creates a CISAKnownExploitedVulnerabilities message from a plain object. Also converts values to their respective internal types.
|
|
41742
|
+
* @function fromObject
|
|
41743
|
+
* @memberof grafeas.v1.CISAKnownExploitedVulnerabilities
|
|
41744
|
+
* @static
|
|
41745
|
+
* @param {Object.<string,*>} object Plain object
|
|
41746
|
+
* @returns {grafeas.v1.CISAKnownExploitedVulnerabilities} CISAKnownExploitedVulnerabilities
|
|
41747
|
+
*/
|
|
41748
|
+
CISAKnownExploitedVulnerabilities.fromObject = function fromObject(object) {
|
|
41749
|
+
if (object instanceof $root.grafeas.v1.CISAKnownExploitedVulnerabilities)
|
|
41750
|
+
return object;
|
|
41751
|
+
var message = new $root.grafeas.v1.CISAKnownExploitedVulnerabilities();
|
|
41752
|
+
if (object.knownRansomwareCampaignUse != null)
|
|
41753
|
+
message.knownRansomwareCampaignUse = String(object.knownRansomwareCampaignUse);
|
|
41754
|
+
return message;
|
|
41755
|
+
};
|
|
41756
|
+
|
|
41757
|
+
/**
|
|
41758
|
+
* Creates a plain object from a CISAKnownExploitedVulnerabilities message. Also converts values to other types if specified.
|
|
41759
|
+
* @function toObject
|
|
41760
|
+
* @memberof grafeas.v1.CISAKnownExploitedVulnerabilities
|
|
41761
|
+
* @static
|
|
41762
|
+
* @param {grafeas.v1.CISAKnownExploitedVulnerabilities} message CISAKnownExploitedVulnerabilities
|
|
41763
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
41764
|
+
* @returns {Object.<string,*>} Plain object
|
|
41765
|
+
*/
|
|
41766
|
+
CISAKnownExploitedVulnerabilities.toObject = function toObject(message, options) {
|
|
41767
|
+
if (!options)
|
|
41768
|
+
options = {};
|
|
41769
|
+
var object = {};
|
|
41770
|
+
if (options.defaults)
|
|
41771
|
+
object.knownRansomwareCampaignUse = "";
|
|
41772
|
+
if (message.knownRansomwareCampaignUse != null && message.hasOwnProperty("knownRansomwareCampaignUse"))
|
|
41773
|
+
object.knownRansomwareCampaignUse = message.knownRansomwareCampaignUse;
|
|
41774
|
+
return object;
|
|
41775
|
+
};
|
|
41776
|
+
|
|
41777
|
+
/**
|
|
41778
|
+
* Converts this CISAKnownExploitedVulnerabilities to JSON.
|
|
41779
|
+
* @function toJSON
|
|
41780
|
+
* @memberof grafeas.v1.CISAKnownExploitedVulnerabilities
|
|
41781
|
+
* @instance
|
|
41782
|
+
* @returns {Object.<string,*>} JSON object
|
|
41783
|
+
*/
|
|
41784
|
+
CISAKnownExploitedVulnerabilities.prototype.toJSON = function toJSON() {
|
|
41785
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
41786
|
+
};
|
|
41787
|
+
|
|
41788
|
+
/**
|
|
41789
|
+
* Gets the default type url for CISAKnownExploitedVulnerabilities
|
|
41790
|
+
* @function getTypeUrl
|
|
41791
|
+
* @memberof grafeas.v1.CISAKnownExploitedVulnerabilities
|
|
41792
|
+
* @static
|
|
41793
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
41794
|
+
* @returns {string} The default type url
|
|
41795
|
+
*/
|
|
41796
|
+
CISAKnownExploitedVulnerabilities.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
41797
|
+
if (typeUrlPrefix === undefined) {
|
|
41798
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
41799
|
+
}
|
|
41800
|
+
return typeUrlPrefix + "/grafeas.v1.CISAKnownExploitedVulnerabilities";
|
|
41801
|
+
};
|
|
41802
|
+
|
|
41803
|
+
return CISAKnownExploitedVulnerabilities;
|
|
41804
|
+
})();
|
|
41805
|
+
|
|
41806
|
+
v1.ExploitPredictionScoringSystem = (function() {
|
|
41807
|
+
|
|
41808
|
+
/**
|
|
41809
|
+
* Properties of an ExploitPredictionScoringSystem.
|
|
41810
|
+
* @memberof grafeas.v1
|
|
41811
|
+
* @interface IExploitPredictionScoringSystem
|
|
41812
|
+
* @property {number|null} [percentile] ExploitPredictionScoringSystem percentile
|
|
41813
|
+
* @property {number|null} [score] ExploitPredictionScoringSystem score
|
|
41814
|
+
*/
|
|
41815
|
+
|
|
41816
|
+
/**
|
|
41817
|
+
* Constructs a new ExploitPredictionScoringSystem.
|
|
41818
|
+
* @memberof grafeas.v1
|
|
41819
|
+
* @classdesc Represents an ExploitPredictionScoringSystem.
|
|
41820
|
+
* @implements IExploitPredictionScoringSystem
|
|
41821
|
+
* @constructor
|
|
41822
|
+
* @param {grafeas.v1.IExploitPredictionScoringSystem=} [properties] Properties to set
|
|
41823
|
+
*/
|
|
41824
|
+
function ExploitPredictionScoringSystem(properties) {
|
|
41825
|
+
if (properties)
|
|
41826
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
41827
|
+
if (properties[keys[i]] != null)
|
|
41828
|
+
this[keys[i]] = properties[keys[i]];
|
|
41829
|
+
}
|
|
41830
|
+
|
|
41831
|
+
/**
|
|
41832
|
+
* ExploitPredictionScoringSystem percentile.
|
|
41833
|
+
* @member {number} percentile
|
|
41834
|
+
* @memberof grafeas.v1.ExploitPredictionScoringSystem
|
|
41835
|
+
* @instance
|
|
41836
|
+
*/
|
|
41837
|
+
ExploitPredictionScoringSystem.prototype.percentile = 0;
|
|
41838
|
+
|
|
41839
|
+
/**
|
|
41840
|
+
* ExploitPredictionScoringSystem score.
|
|
41841
|
+
* @member {number} score
|
|
41842
|
+
* @memberof grafeas.v1.ExploitPredictionScoringSystem
|
|
41843
|
+
* @instance
|
|
41844
|
+
*/
|
|
41845
|
+
ExploitPredictionScoringSystem.prototype.score = 0;
|
|
41846
|
+
|
|
41847
|
+
/**
|
|
41848
|
+
* Creates a new ExploitPredictionScoringSystem instance using the specified properties.
|
|
41849
|
+
* @function create
|
|
41850
|
+
* @memberof grafeas.v1.ExploitPredictionScoringSystem
|
|
41851
|
+
* @static
|
|
41852
|
+
* @param {grafeas.v1.IExploitPredictionScoringSystem=} [properties] Properties to set
|
|
41853
|
+
* @returns {grafeas.v1.ExploitPredictionScoringSystem} ExploitPredictionScoringSystem instance
|
|
41854
|
+
*/
|
|
41855
|
+
ExploitPredictionScoringSystem.create = function create(properties) {
|
|
41856
|
+
return new ExploitPredictionScoringSystem(properties);
|
|
41857
|
+
};
|
|
41858
|
+
|
|
41859
|
+
/**
|
|
41860
|
+
* Encodes the specified ExploitPredictionScoringSystem message. Does not implicitly {@link grafeas.v1.ExploitPredictionScoringSystem.verify|verify} messages.
|
|
41861
|
+
* @function encode
|
|
41862
|
+
* @memberof grafeas.v1.ExploitPredictionScoringSystem
|
|
41863
|
+
* @static
|
|
41864
|
+
* @param {grafeas.v1.IExploitPredictionScoringSystem} message ExploitPredictionScoringSystem message or plain object to encode
|
|
41865
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41866
|
+
* @returns {$protobuf.Writer} Writer
|
|
41867
|
+
*/
|
|
41868
|
+
ExploitPredictionScoringSystem.encode = function encode(message, writer) {
|
|
41869
|
+
if (!writer)
|
|
41870
|
+
writer = $Writer.create();
|
|
41871
|
+
if (message.percentile != null && Object.hasOwnProperty.call(message, "percentile"))
|
|
41872
|
+
writer.uint32(/* id 1, wireType 1 =*/9).double(message.percentile);
|
|
41873
|
+
if (message.score != null && Object.hasOwnProperty.call(message, "score"))
|
|
41874
|
+
writer.uint32(/* id 2, wireType 1 =*/17).double(message.score);
|
|
41875
|
+
return writer;
|
|
41876
|
+
};
|
|
41877
|
+
|
|
41878
|
+
/**
|
|
41879
|
+
* Encodes the specified ExploitPredictionScoringSystem message, length delimited. Does not implicitly {@link grafeas.v1.ExploitPredictionScoringSystem.verify|verify} messages.
|
|
41880
|
+
* @function encodeDelimited
|
|
41881
|
+
* @memberof grafeas.v1.ExploitPredictionScoringSystem
|
|
41882
|
+
* @static
|
|
41883
|
+
* @param {grafeas.v1.IExploitPredictionScoringSystem} message ExploitPredictionScoringSystem message or plain object to encode
|
|
41884
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41885
|
+
* @returns {$protobuf.Writer} Writer
|
|
41886
|
+
*/
|
|
41887
|
+
ExploitPredictionScoringSystem.encodeDelimited = function encodeDelimited(message, writer) {
|
|
41888
|
+
return this.encode(message, writer).ldelim();
|
|
41889
|
+
};
|
|
41890
|
+
|
|
41891
|
+
/**
|
|
41892
|
+
* Decodes an ExploitPredictionScoringSystem message from the specified reader or buffer.
|
|
41893
|
+
* @function decode
|
|
41894
|
+
* @memberof grafeas.v1.ExploitPredictionScoringSystem
|
|
41895
|
+
* @static
|
|
41896
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41897
|
+
* @param {number} [length] Message length if known beforehand
|
|
41898
|
+
* @returns {grafeas.v1.ExploitPredictionScoringSystem} ExploitPredictionScoringSystem
|
|
41899
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41900
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41901
|
+
*/
|
|
41902
|
+
ExploitPredictionScoringSystem.decode = function decode(reader, length, error) {
|
|
41903
|
+
if (!(reader instanceof $Reader))
|
|
41904
|
+
reader = $Reader.create(reader);
|
|
41905
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.grafeas.v1.ExploitPredictionScoringSystem();
|
|
41906
|
+
while (reader.pos < end) {
|
|
41907
|
+
var tag = reader.uint32();
|
|
41908
|
+
if (tag === error)
|
|
41909
|
+
break;
|
|
41910
|
+
switch (tag >>> 3) {
|
|
41911
|
+
case 1: {
|
|
41912
|
+
message.percentile = reader.double();
|
|
41913
|
+
break;
|
|
41914
|
+
}
|
|
41915
|
+
case 2: {
|
|
41916
|
+
message.score = reader.double();
|
|
41917
|
+
break;
|
|
41918
|
+
}
|
|
41919
|
+
default:
|
|
41920
|
+
reader.skipType(tag & 7);
|
|
41921
|
+
break;
|
|
41922
|
+
}
|
|
41923
|
+
}
|
|
41924
|
+
return message;
|
|
41925
|
+
};
|
|
41926
|
+
|
|
41927
|
+
/**
|
|
41928
|
+
* Decodes an ExploitPredictionScoringSystem message from the specified reader or buffer, length delimited.
|
|
41929
|
+
* @function decodeDelimited
|
|
41930
|
+
* @memberof grafeas.v1.ExploitPredictionScoringSystem
|
|
41931
|
+
* @static
|
|
41932
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41933
|
+
* @returns {grafeas.v1.ExploitPredictionScoringSystem} ExploitPredictionScoringSystem
|
|
41934
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41935
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41936
|
+
*/
|
|
41937
|
+
ExploitPredictionScoringSystem.decodeDelimited = function decodeDelimited(reader) {
|
|
41938
|
+
if (!(reader instanceof $Reader))
|
|
41939
|
+
reader = new $Reader(reader);
|
|
41940
|
+
return this.decode(reader, reader.uint32());
|
|
41941
|
+
};
|
|
41942
|
+
|
|
41943
|
+
/**
|
|
41944
|
+
* Verifies an ExploitPredictionScoringSystem message.
|
|
41945
|
+
* @function verify
|
|
41946
|
+
* @memberof grafeas.v1.ExploitPredictionScoringSystem
|
|
41947
|
+
* @static
|
|
41948
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
41949
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
41950
|
+
*/
|
|
41951
|
+
ExploitPredictionScoringSystem.verify = function verify(message) {
|
|
41952
|
+
if (typeof message !== "object" || message === null)
|
|
41953
|
+
return "object expected";
|
|
41954
|
+
if (message.percentile != null && message.hasOwnProperty("percentile"))
|
|
41955
|
+
if (typeof message.percentile !== "number")
|
|
41956
|
+
return "percentile: number expected";
|
|
41957
|
+
if (message.score != null && message.hasOwnProperty("score"))
|
|
41958
|
+
if (typeof message.score !== "number")
|
|
41959
|
+
return "score: number expected";
|
|
41960
|
+
return null;
|
|
41961
|
+
};
|
|
41962
|
+
|
|
41963
|
+
/**
|
|
41964
|
+
* Creates an ExploitPredictionScoringSystem message from a plain object. Also converts values to their respective internal types.
|
|
41965
|
+
* @function fromObject
|
|
41966
|
+
* @memberof grafeas.v1.ExploitPredictionScoringSystem
|
|
41967
|
+
* @static
|
|
41968
|
+
* @param {Object.<string,*>} object Plain object
|
|
41969
|
+
* @returns {grafeas.v1.ExploitPredictionScoringSystem} ExploitPredictionScoringSystem
|
|
41970
|
+
*/
|
|
41971
|
+
ExploitPredictionScoringSystem.fromObject = function fromObject(object) {
|
|
41972
|
+
if (object instanceof $root.grafeas.v1.ExploitPredictionScoringSystem)
|
|
41973
|
+
return object;
|
|
41974
|
+
var message = new $root.grafeas.v1.ExploitPredictionScoringSystem();
|
|
41975
|
+
if (object.percentile != null)
|
|
41976
|
+
message.percentile = Number(object.percentile);
|
|
41977
|
+
if (object.score != null)
|
|
41978
|
+
message.score = Number(object.score);
|
|
41979
|
+
return message;
|
|
41980
|
+
};
|
|
41981
|
+
|
|
41982
|
+
/**
|
|
41983
|
+
* Creates a plain object from an ExploitPredictionScoringSystem message. Also converts values to other types if specified.
|
|
41984
|
+
* @function toObject
|
|
41985
|
+
* @memberof grafeas.v1.ExploitPredictionScoringSystem
|
|
41986
|
+
* @static
|
|
41987
|
+
* @param {grafeas.v1.ExploitPredictionScoringSystem} message ExploitPredictionScoringSystem
|
|
41988
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
41989
|
+
* @returns {Object.<string,*>} Plain object
|
|
41990
|
+
*/
|
|
41991
|
+
ExploitPredictionScoringSystem.toObject = function toObject(message, options) {
|
|
41992
|
+
if (!options)
|
|
41993
|
+
options = {};
|
|
41994
|
+
var object = {};
|
|
41995
|
+
if (options.defaults) {
|
|
41996
|
+
object.percentile = 0;
|
|
41997
|
+
object.score = 0;
|
|
41998
|
+
}
|
|
41999
|
+
if (message.percentile != null && message.hasOwnProperty("percentile"))
|
|
42000
|
+
object.percentile = options.json && !isFinite(message.percentile) ? String(message.percentile) : message.percentile;
|
|
42001
|
+
if (message.score != null && message.hasOwnProperty("score"))
|
|
42002
|
+
object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score;
|
|
42003
|
+
return object;
|
|
42004
|
+
};
|
|
42005
|
+
|
|
42006
|
+
/**
|
|
42007
|
+
* Converts this ExploitPredictionScoringSystem to JSON.
|
|
42008
|
+
* @function toJSON
|
|
42009
|
+
* @memberof grafeas.v1.ExploitPredictionScoringSystem
|
|
42010
|
+
* @instance
|
|
42011
|
+
* @returns {Object.<string,*>} JSON object
|
|
42012
|
+
*/
|
|
42013
|
+
ExploitPredictionScoringSystem.prototype.toJSON = function toJSON() {
|
|
42014
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
42015
|
+
};
|
|
42016
|
+
|
|
42017
|
+
/**
|
|
42018
|
+
* Gets the default type url for ExploitPredictionScoringSystem
|
|
42019
|
+
* @function getTypeUrl
|
|
42020
|
+
* @memberof grafeas.v1.ExploitPredictionScoringSystem
|
|
42021
|
+
* @static
|
|
42022
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
42023
|
+
* @returns {string} The default type url
|
|
42024
|
+
*/
|
|
42025
|
+
ExploitPredictionScoringSystem.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
42026
|
+
if (typeUrlPrefix === undefined) {
|
|
42027
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
42028
|
+
}
|
|
42029
|
+
return typeUrlPrefix + "/grafeas.v1.ExploitPredictionScoringSystem";
|
|
42030
|
+
};
|
|
42031
|
+
|
|
42032
|
+
return ExploitPredictionScoringSystem;
|
|
42033
|
+
})();
|
|
42034
|
+
|
|
40702
42035
|
return v1;
|
|
40703
42036
|
})();
|
|
40704
42037
|
|