@google-cloud/containeranalysis 6.1.0 → 6.2.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.
@@ -61201,9 +61201,671 @@
61201
61201
  * @variation 2
61202
61202
  */
61203
61203
 
61204
+ /**
61205
+ * Callback as used by {@link google.devtools.containeranalysis.v1.ContainerAnalysis|exportSBOM}.
61206
+ * @memberof google.devtools.containeranalysis.v1.ContainerAnalysis
61207
+ * @typedef ExportSBOMCallback
61208
+ * @type {function}
61209
+ * @param {Error|null} error Error, if any
61210
+ * @param {google.devtools.containeranalysis.v1.ExportSBOMResponse} [response] ExportSBOMResponse
61211
+ */
61212
+
61213
+ /**
61214
+ * Calls ExportSBOM.
61215
+ * @function exportSBOM
61216
+ * @memberof google.devtools.containeranalysis.v1.ContainerAnalysis
61217
+ * @instance
61218
+ * @param {google.devtools.containeranalysis.v1.IExportSBOMRequest} request ExportSBOMRequest message or plain object
61219
+ * @param {google.devtools.containeranalysis.v1.ContainerAnalysis.ExportSBOMCallback} callback Node-style callback called with the error, if any, and ExportSBOMResponse
61220
+ * @returns {undefined}
61221
+ * @variation 1
61222
+ */
61223
+ Object.defineProperty(ContainerAnalysis.prototype.exportSBOM = function exportSBOM(request, callback) {
61224
+ return this.rpcCall(exportSBOM, $root.google.devtools.containeranalysis.v1.ExportSBOMRequest, $root.google.devtools.containeranalysis.v1.ExportSBOMResponse, request, callback);
61225
+ }, "name", { value: "ExportSBOM" });
61226
+
61227
+ /**
61228
+ * Calls ExportSBOM.
61229
+ * @function exportSBOM
61230
+ * @memberof google.devtools.containeranalysis.v1.ContainerAnalysis
61231
+ * @instance
61232
+ * @param {google.devtools.containeranalysis.v1.IExportSBOMRequest} request ExportSBOMRequest message or plain object
61233
+ * @returns {Promise<google.devtools.containeranalysis.v1.ExportSBOMResponse>} Promise
61234
+ * @variation 2
61235
+ */
61236
+
61204
61237
  return ContainerAnalysis;
61205
61238
  })();
61206
61239
 
61240
+ v1.ExportSBOMRequest = (function() {
61241
+
61242
+ /**
61243
+ * Properties of an ExportSBOMRequest.
61244
+ * @memberof google.devtools.containeranalysis.v1
61245
+ * @interface IExportSBOMRequest
61246
+ * @property {string|null} [name] ExportSBOMRequest name
61247
+ * @property {google.devtools.containeranalysis.v1.ExportSBOMRequest.ICloudStorageLocation|null} [cloudStorageLocation] ExportSBOMRequest cloudStorageLocation
61248
+ */
61249
+
61250
+ /**
61251
+ * Constructs a new ExportSBOMRequest.
61252
+ * @memberof google.devtools.containeranalysis.v1
61253
+ * @classdesc Represents an ExportSBOMRequest.
61254
+ * @implements IExportSBOMRequest
61255
+ * @constructor
61256
+ * @param {google.devtools.containeranalysis.v1.IExportSBOMRequest=} [properties] Properties to set
61257
+ */
61258
+ function ExportSBOMRequest(properties) {
61259
+ if (properties)
61260
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
61261
+ if (properties[keys[i]] != null)
61262
+ this[keys[i]] = properties[keys[i]];
61263
+ }
61264
+
61265
+ /**
61266
+ * ExportSBOMRequest name.
61267
+ * @member {string} name
61268
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMRequest
61269
+ * @instance
61270
+ */
61271
+ ExportSBOMRequest.prototype.name = "";
61272
+
61273
+ /**
61274
+ * ExportSBOMRequest cloudStorageLocation.
61275
+ * @member {google.devtools.containeranalysis.v1.ExportSBOMRequest.ICloudStorageLocation|null|undefined} cloudStorageLocation
61276
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMRequest
61277
+ * @instance
61278
+ */
61279
+ ExportSBOMRequest.prototype.cloudStorageLocation = null;
61280
+
61281
+ // OneOf field names bound to virtual getters and setters
61282
+ var $oneOfFields;
61283
+
61284
+ /**
61285
+ * ExportSBOMRequest target.
61286
+ * @member {"cloudStorageLocation"|undefined} target
61287
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMRequest
61288
+ * @instance
61289
+ */
61290
+ Object.defineProperty(ExportSBOMRequest.prototype, "target", {
61291
+ get: $util.oneOfGetter($oneOfFields = ["cloudStorageLocation"]),
61292
+ set: $util.oneOfSetter($oneOfFields)
61293
+ });
61294
+
61295
+ /**
61296
+ * Creates a new ExportSBOMRequest instance using the specified properties.
61297
+ * @function create
61298
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMRequest
61299
+ * @static
61300
+ * @param {google.devtools.containeranalysis.v1.IExportSBOMRequest=} [properties] Properties to set
61301
+ * @returns {google.devtools.containeranalysis.v1.ExportSBOMRequest} ExportSBOMRequest instance
61302
+ */
61303
+ ExportSBOMRequest.create = function create(properties) {
61304
+ return new ExportSBOMRequest(properties);
61305
+ };
61306
+
61307
+ /**
61308
+ * Encodes the specified ExportSBOMRequest message. Does not implicitly {@link google.devtools.containeranalysis.v1.ExportSBOMRequest.verify|verify} messages.
61309
+ * @function encode
61310
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMRequest
61311
+ * @static
61312
+ * @param {google.devtools.containeranalysis.v1.IExportSBOMRequest} message ExportSBOMRequest message or plain object to encode
61313
+ * @param {$protobuf.Writer} [writer] Writer to encode to
61314
+ * @returns {$protobuf.Writer} Writer
61315
+ */
61316
+ ExportSBOMRequest.encode = function encode(message, writer) {
61317
+ if (!writer)
61318
+ writer = $Writer.create();
61319
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
61320
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
61321
+ if (message.cloudStorageLocation != null && Object.hasOwnProperty.call(message, "cloudStorageLocation"))
61322
+ $root.google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation.encode(message.cloudStorageLocation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
61323
+ return writer;
61324
+ };
61325
+
61326
+ /**
61327
+ * Encodes the specified ExportSBOMRequest message, length delimited. Does not implicitly {@link google.devtools.containeranalysis.v1.ExportSBOMRequest.verify|verify} messages.
61328
+ * @function encodeDelimited
61329
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMRequest
61330
+ * @static
61331
+ * @param {google.devtools.containeranalysis.v1.IExportSBOMRequest} message ExportSBOMRequest message or plain object to encode
61332
+ * @param {$protobuf.Writer} [writer] Writer to encode to
61333
+ * @returns {$protobuf.Writer} Writer
61334
+ */
61335
+ ExportSBOMRequest.encodeDelimited = function encodeDelimited(message, writer) {
61336
+ return this.encode(message, writer).ldelim();
61337
+ };
61338
+
61339
+ /**
61340
+ * Decodes an ExportSBOMRequest message from the specified reader or buffer.
61341
+ * @function decode
61342
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMRequest
61343
+ * @static
61344
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
61345
+ * @param {number} [length] Message length if known beforehand
61346
+ * @returns {google.devtools.containeranalysis.v1.ExportSBOMRequest} ExportSBOMRequest
61347
+ * @throws {Error} If the payload is not a reader or valid buffer
61348
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
61349
+ */
61350
+ ExportSBOMRequest.decode = function decode(reader, length) {
61351
+ if (!(reader instanceof $Reader))
61352
+ reader = $Reader.create(reader);
61353
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.containeranalysis.v1.ExportSBOMRequest();
61354
+ while (reader.pos < end) {
61355
+ var tag = reader.uint32();
61356
+ switch (tag >>> 3) {
61357
+ case 1: {
61358
+ message.name = reader.string();
61359
+ break;
61360
+ }
61361
+ case 2: {
61362
+ message.cloudStorageLocation = $root.google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation.decode(reader, reader.uint32());
61363
+ break;
61364
+ }
61365
+ default:
61366
+ reader.skipType(tag & 7);
61367
+ break;
61368
+ }
61369
+ }
61370
+ return message;
61371
+ };
61372
+
61373
+ /**
61374
+ * Decodes an ExportSBOMRequest message from the specified reader or buffer, length delimited.
61375
+ * @function decodeDelimited
61376
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMRequest
61377
+ * @static
61378
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
61379
+ * @returns {google.devtools.containeranalysis.v1.ExportSBOMRequest} ExportSBOMRequest
61380
+ * @throws {Error} If the payload is not a reader or valid buffer
61381
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
61382
+ */
61383
+ ExportSBOMRequest.decodeDelimited = function decodeDelimited(reader) {
61384
+ if (!(reader instanceof $Reader))
61385
+ reader = new $Reader(reader);
61386
+ return this.decode(reader, reader.uint32());
61387
+ };
61388
+
61389
+ /**
61390
+ * Verifies an ExportSBOMRequest message.
61391
+ * @function verify
61392
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMRequest
61393
+ * @static
61394
+ * @param {Object.<string,*>} message Plain object to verify
61395
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
61396
+ */
61397
+ ExportSBOMRequest.verify = function verify(message) {
61398
+ if (typeof message !== "object" || message === null)
61399
+ return "object expected";
61400
+ var properties = {};
61401
+ if (message.name != null && message.hasOwnProperty("name"))
61402
+ if (!$util.isString(message.name))
61403
+ return "name: string expected";
61404
+ if (message.cloudStorageLocation != null && message.hasOwnProperty("cloudStorageLocation")) {
61405
+ properties.target = 1;
61406
+ {
61407
+ var error = $root.google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation.verify(message.cloudStorageLocation);
61408
+ if (error)
61409
+ return "cloudStorageLocation." + error;
61410
+ }
61411
+ }
61412
+ return null;
61413
+ };
61414
+
61415
+ /**
61416
+ * Creates an ExportSBOMRequest message from a plain object. Also converts values to their respective internal types.
61417
+ * @function fromObject
61418
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMRequest
61419
+ * @static
61420
+ * @param {Object.<string,*>} object Plain object
61421
+ * @returns {google.devtools.containeranalysis.v1.ExportSBOMRequest} ExportSBOMRequest
61422
+ */
61423
+ ExportSBOMRequest.fromObject = function fromObject(object) {
61424
+ if (object instanceof $root.google.devtools.containeranalysis.v1.ExportSBOMRequest)
61425
+ return object;
61426
+ var message = new $root.google.devtools.containeranalysis.v1.ExportSBOMRequest();
61427
+ if (object.name != null)
61428
+ message.name = String(object.name);
61429
+ if (object.cloudStorageLocation != null) {
61430
+ if (typeof object.cloudStorageLocation !== "object")
61431
+ throw TypeError(".google.devtools.containeranalysis.v1.ExportSBOMRequest.cloudStorageLocation: object expected");
61432
+ message.cloudStorageLocation = $root.google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation.fromObject(object.cloudStorageLocation);
61433
+ }
61434
+ return message;
61435
+ };
61436
+
61437
+ /**
61438
+ * Creates a plain object from an ExportSBOMRequest message. Also converts values to other types if specified.
61439
+ * @function toObject
61440
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMRequest
61441
+ * @static
61442
+ * @param {google.devtools.containeranalysis.v1.ExportSBOMRequest} message ExportSBOMRequest
61443
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
61444
+ * @returns {Object.<string,*>} Plain object
61445
+ */
61446
+ ExportSBOMRequest.toObject = function toObject(message, options) {
61447
+ if (!options)
61448
+ options = {};
61449
+ var object = {};
61450
+ if (options.defaults)
61451
+ object.name = "";
61452
+ if (message.name != null && message.hasOwnProperty("name"))
61453
+ object.name = message.name;
61454
+ if (message.cloudStorageLocation != null && message.hasOwnProperty("cloudStorageLocation")) {
61455
+ object.cloudStorageLocation = $root.google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation.toObject(message.cloudStorageLocation, options);
61456
+ if (options.oneofs)
61457
+ object.target = "cloudStorageLocation";
61458
+ }
61459
+ return object;
61460
+ };
61461
+
61462
+ /**
61463
+ * Converts this ExportSBOMRequest to JSON.
61464
+ * @function toJSON
61465
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMRequest
61466
+ * @instance
61467
+ * @returns {Object.<string,*>} JSON object
61468
+ */
61469
+ ExportSBOMRequest.prototype.toJSON = function toJSON() {
61470
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
61471
+ };
61472
+
61473
+ /**
61474
+ * Gets the default type url for ExportSBOMRequest
61475
+ * @function getTypeUrl
61476
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMRequest
61477
+ * @static
61478
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
61479
+ * @returns {string} The default type url
61480
+ */
61481
+ ExportSBOMRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
61482
+ if (typeUrlPrefix === undefined) {
61483
+ typeUrlPrefix = "type.googleapis.com";
61484
+ }
61485
+ return typeUrlPrefix + "/google.devtools.containeranalysis.v1.ExportSBOMRequest";
61486
+ };
61487
+
61488
+ ExportSBOMRequest.CloudStorageLocation = (function() {
61489
+
61490
+ /**
61491
+ * Properties of a CloudStorageLocation.
61492
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMRequest
61493
+ * @interface ICloudStorageLocation
61494
+ */
61495
+
61496
+ /**
61497
+ * Constructs a new CloudStorageLocation.
61498
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMRequest
61499
+ * @classdesc Represents a CloudStorageLocation.
61500
+ * @implements ICloudStorageLocation
61501
+ * @constructor
61502
+ * @param {google.devtools.containeranalysis.v1.ExportSBOMRequest.ICloudStorageLocation=} [properties] Properties to set
61503
+ */
61504
+ function CloudStorageLocation(properties) {
61505
+ if (properties)
61506
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
61507
+ if (properties[keys[i]] != null)
61508
+ this[keys[i]] = properties[keys[i]];
61509
+ }
61510
+
61511
+ /**
61512
+ * Creates a new CloudStorageLocation instance using the specified properties.
61513
+ * @function create
61514
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation
61515
+ * @static
61516
+ * @param {google.devtools.containeranalysis.v1.ExportSBOMRequest.ICloudStorageLocation=} [properties] Properties to set
61517
+ * @returns {google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation} CloudStorageLocation instance
61518
+ */
61519
+ CloudStorageLocation.create = function create(properties) {
61520
+ return new CloudStorageLocation(properties);
61521
+ };
61522
+
61523
+ /**
61524
+ * Encodes the specified CloudStorageLocation message. Does not implicitly {@link google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation.verify|verify} messages.
61525
+ * @function encode
61526
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation
61527
+ * @static
61528
+ * @param {google.devtools.containeranalysis.v1.ExportSBOMRequest.ICloudStorageLocation} message CloudStorageLocation message or plain object to encode
61529
+ * @param {$protobuf.Writer} [writer] Writer to encode to
61530
+ * @returns {$protobuf.Writer} Writer
61531
+ */
61532
+ CloudStorageLocation.encode = function encode(message, writer) {
61533
+ if (!writer)
61534
+ writer = $Writer.create();
61535
+ return writer;
61536
+ };
61537
+
61538
+ /**
61539
+ * Encodes the specified CloudStorageLocation message, length delimited. Does not implicitly {@link google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation.verify|verify} messages.
61540
+ * @function encodeDelimited
61541
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation
61542
+ * @static
61543
+ * @param {google.devtools.containeranalysis.v1.ExportSBOMRequest.ICloudStorageLocation} message CloudStorageLocation message or plain object to encode
61544
+ * @param {$protobuf.Writer} [writer] Writer to encode to
61545
+ * @returns {$protobuf.Writer} Writer
61546
+ */
61547
+ CloudStorageLocation.encodeDelimited = function encodeDelimited(message, writer) {
61548
+ return this.encode(message, writer).ldelim();
61549
+ };
61550
+
61551
+ /**
61552
+ * Decodes a CloudStorageLocation message from the specified reader or buffer.
61553
+ * @function decode
61554
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation
61555
+ * @static
61556
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
61557
+ * @param {number} [length] Message length if known beforehand
61558
+ * @returns {google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation} CloudStorageLocation
61559
+ * @throws {Error} If the payload is not a reader or valid buffer
61560
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
61561
+ */
61562
+ CloudStorageLocation.decode = function decode(reader, length) {
61563
+ if (!(reader instanceof $Reader))
61564
+ reader = $Reader.create(reader);
61565
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation();
61566
+ while (reader.pos < end) {
61567
+ var tag = reader.uint32();
61568
+ switch (tag >>> 3) {
61569
+ default:
61570
+ reader.skipType(tag & 7);
61571
+ break;
61572
+ }
61573
+ }
61574
+ return message;
61575
+ };
61576
+
61577
+ /**
61578
+ * Decodes a CloudStorageLocation message from the specified reader or buffer, length delimited.
61579
+ * @function decodeDelimited
61580
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation
61581
+ * @static
61582
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
61583
+ * @returns {google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation} CloudStorageLocation
61584
+ * @throws {Error} If the payload is not a reader or valid buffer
61585
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
61586
+ */
61587
+ CloudStorageLocation.decodeDelimited = function decodeDelimited(reader) {
61588
+ if (!(reader instanceof $Reader))
61589
+ reader = new $Reader(reader);
61590
+ return this.decode(reader, reader.uint32());
61591
+ };
61592
+
61593
+ /**
61594
+ * Verifies a CloudStorageLocation message.
61595
+ * @function verify
61596
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation
61597
+ * @static
61598
+ * @param {Object.<string,*>} message Plain object to verify
61599
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
61600
+ */
61601
+ CloudStorageLocation.verify = function verify(message) {
61602
+ if (typeof message !== "object" || message === null)
61603
+ return "object expected";
61604
+ return null;
61605
+ };
61606
+
61607
+ /**
61608
+ * Creates a CloudStorageLocation message from a plain object. Also converts values to their respective internal types.
61609
+ * @function fromObject
61610
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation
61611
+ * @static
61612
+ * @param {Object.<string,*>} object Plain object
61613
+ * @returns {google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation} CloudStorageLocation
61614
+ */
61615
+ CloudStorageLocation.fromObject = function fromObject(object) {
61616
+ if (object instanceof $root.google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation)
61617
+ return object;
61618
+ return new $root.google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation();
61619
+ };
61620
+
61621
+ /**
61622
+ * Creates a plain object from a CloudStorageLocation message. Also converts values to other types if specified.
61623
+ * @function toObject
61624
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation
61625
+ * @static
61626
+ * @param {google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation} message CloudStorageLocation
61627
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
61628
+ * @returns {Object.<string,*>} Plain object
61629
+ */
61630
+ CloudStorageLocation.toObject = function toObject() {
61631
+ return {};
61632
+ };
61633
+
61634
+ /**
61635
+ * Converts this CloudStorageLocation to JSON.
61636
+ * @function toJSON
61637
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation
61638
+ * @instance
61639
+ * @returns {Object.<string,*>} JSON object
61640
+ */
61641
+ CloudStorageLocation.prototype.toJSON = function toJSON() {
61642
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
61643
+ };
61644
+
61645
+ /**
61646
+ * Gets the default type url for CloudStorageLocation
61647
+ * @function getTypeUrl
61648
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation
61649
+ * @static
61650
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
61651
+ * @returns {string} The default type url
61652
+ */
61653
+ CloudStorageLocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
61654
+ if (typeUrlPrefix === undefined) {
61655
+ typeUrlPrefix = "type.googleapis.com";
61656
+ }
61657
+ return typeUrlPrefix + "/google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation";
61658
+ };
61659
+
61660
+ return CloudStorageLocation;
61661
+ })();
61662
+
61663
+ return ExportSBOMRequest;
61664
+ })();
61665
+
61666
+ v1.ExportSBOMResponse = (function() {
61667
+
61668
+ /**
61669
+ * Properties of an ExportSBOMResponse.
61670
+ * @memberof google.devtools.containeranalysis.v1
61671
+ * @interface IExportSBOMResponse
61672
+ * @property {string|null} [discoveryOccurrence] ExportSBOMResponse discoveryOccurrence
61673
+ */
61674
+
61675
+ /**
61676
+ * Constructs a new ExportSBOMResponse.
61677
+ * @memberof google.devtools.containeranalysis.v1
61678
+ * @classdesc Represents an ExportSBOMResponse.
61679
+ * @implements IExportSBOMResponse
61680
+ * @constructor
61681
+ * @param {google.devtools.containeranalysis.v1.IExportSBOMResponse=} [properties] Properties to set
61682
+ */
61683
+ function ExportSBOMResponse(properties) {
61684
+ if (properties)
61685
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
61686
+ if (properties[keys[i]] != null)
61687
+ this[keys[i]] = properties[keys[i]];
61688
+ }
61689
+
61690
+ /**
61691
+ * ExportSBOMResponse discoveryOccurrence.
61692
+ * @member {string} discoveryOccurrence
61693
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMResponse
61694
+ * @instance
61695
+ */
61696
+ ExportSBOMResponse.prototype.discoveryOccurrence = "";
61697
+
61698
+ /**
61699
+ * Creates a new ExportSBOMResponse instance using the specified properties.
61700
+ * @function create
61701
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMResponse
61702
+ * @static
61703
+ * @param {google.devtools.containeranalysis.v1.IExportSBOMResponse=} [properties] Properties to set
61704
+ * @returns {google.devtools.containeranalysis.v1.ExportSBOMResponse} ExportSBOMResponse instance
61705
+ */
61706
+ ExportSBOMResponse.create = function create(properties) {
61707
+ return new ExportSBOMResponse(properties);
61708
+ };
61709
+
61710
+ /**
61711
+ * Encodes the specified ExportSBOMResponse message. Does not implicitly {@link google.devtools.containeranalysis.v1.ExportSBOMResponse.verify|verify} messages.
61712
+ * @function encode
61713
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMResponse
61714
+ * @static
61715
+ * @param {google.devtools.containeranalysis.v1.IExportSBOMResponse} message ExportSBOMResponse message or plain object to encode
61716
+ * @param {$protobuf.Writer} [writer] Writer to encode to
61717
+ * @returns {$protobuf.Writer} Writer
61718
+ */
61719
+ ExportSBOMResponse.encode = function encode(message, writer) {
61720
+ if (!writer)
61721
+ writer = $Writer.create();
61722
+ if (message.discoveryOccurrence != null && Object.hasOwnProperty.call(message, "discoveryOccurrence"))
61723
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.discoveryOccurrence);
61724
+ return writer;
61725
+ };
61726
+
61727
+ /**
61728
+ * Encodes the specified ExportSBOMResponse message, length delimited. Does not implicitly {@link google.devtools.containeranalysis.v1.ExportSBOMResponse.verify|verify} messages.
61729
+ * @function encodeDelimited
61730
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMResponse
61731
+ * @static
61732
+ * @param {google.devtools.containeranalysis.v1.IExportSBOMResponse} message ExportSBOMResponse message or plain object to encode
61733
+ * @param {$protobuf.Writer} [writer] Writer to encode to
61734
+ * @returns {$protobuf.Writer} Writer
61735
+ */
61736
+ ExportSBOMResponse.encodeDelimited = function encodeDelimited(message, writer) {
61737
+ return this.encode(message, writer).ldelim();
61738
+ };
61739
+
61740
+ /**
61741
+ * Decodes an ExportSBOMResponse message from the specified reader or buffer.
61742
+ * @function decode
61743
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMResponse
61744
+ * @static
61745
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
61746
+ * @param {number} [length] Message length if known beforehand
61747
+ * @returns {google.devtools.containeranalysis.v1.ExportSBOMResponse} ExportSBOMResponse
61748
+ * @throws {Error} If the payload is not a reader or valid buffer
61749
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
61750
+ */
61751
+ ExportSBOMResponse.decode = function decode(reader, length) {
61752
+ if (!(reader instanceof $Reader))
61753
+ reader = $Reader.create(reader);
61754
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.containeranalysis.v1.ExportSBOMResponse();
61755
+ while (reader.pos < end) {
61756
+ var tag = reader.uint32();
61757
+ switch (tag >>> 3) {
61758
+ case 1: {
61759
+ message.discoveryOccurrence = reader.string();
61760
+ break;
61761
+ }
61762
+ default:
61763
+ reader.skipType(tag & 7);
61764
+ break;
61765
+ }
61766
+ }
61767
+ return message;
61768
+ };
61769
+
61770
+ /**
61771
+ * Decodes an ExportSBOMResponse message from the specified reader or buffer, length delimited.
61772
+ * @function decodeDelimited
61773
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMResponse
61774
+ * @static
61775
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
61776
+ * @returns {google.devtools.containeranalysis.v1.ExportSBOMResponse} ExportSBOMResponse
61777
+ * @throws {Error} If the payload is not a reader or valid buffer
61778
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
61779
+ */
61780
+ ExportSBOMResponse.decodeDelimited = function decodeDelimited(reader) {
61781
+ if (!(reader instanceof $Reader))
61782
+ reader = new $Reader(reader);
61783
+ return this.decode(reader, reader.uint32());
61784
+ };
61785
+
61786
+ /**
61787
+ * Verifies an ExportSBOMResponse message.
61788
+ * @function verify
61789
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMResponse
61790
+ * @static
61791
+ * @param {Object.<string,*>} message Plain object to verify
61792
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
61793
+ */
61794
+ ExportSBOMResponse.verify = function verify(message) {
61795
+ if (typeof message !== "object" || message === null)
61796
+ return "object expected";
61797
+ if (message.discoveryOccurrence != null && message.hasOwnProperty("discoveryOccurrence"))
61798
+ if (!$util.isString(message.discoveryOccurrence))
61799
+ return "discoveryOccurrence: string expected";
61800
+ return null;
61801
+ };
61802
+
61803
+ /**
61804
+ * Creates an ExportSBOMResponse message from a plain object. Also converts values to their respective internal types.
61805
+ * @function fromObject
61806
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMResponse
61807
+ * @static
61808
+ * @param {Object.<string,*>} object Plain object
61809
+ * @returns {google.devtools.containeranalysis.v1.ExportSBOMResponse} ExportSBOMResponse
61810
+ */
61811
+ ExportSBOMResponse.fromObject = function fromObject(object) {
61812
+ if (object instanceof $root.google.devtools.containeranalysis.v1.ExportSBOMResponse)
61813
+ return object;
61814
+ var message = new $root.google.devtools.containeranalysis.v1.ExportSBOMResponse();
61815
+ if (object.discoveryOccurrence != null)
61816
+ message.discoveryOccurrence = String(object.discoveryOccurrence);
61817
+ return message;
61818
+ };
61819
+
61820
+ /**
61821
+ * Creates a plain object from an ExportSBOMResponse message. Also converts values to other types if specified.
61822
+ * @function toObject
61823
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMResponse
61824
+ * @static
61825
+ * @param {google.devtools.containeranalysis.v1.ExportSBOMResponse} message ExportSBOMResponse
61826
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
61827
+ * @returns {Object.<string,*>} Plain object
61828
+ */
61829
+ ExportSBOMResponse.toObject = function toObject(message, options) {
61830
+ if (!options)
61831
+ options = {};
61832
+ var object = {};
61833
+ if (options.defaults)
61834
+ object.discoveryOccurrence = "";
61835
+ if (message.discoveryOccurrence != null && message.hasOwnProperty("discoveryOccurrence"))
61836
+ object.discoveryOccurrence = message.discoveryOccurrence;
61837
+ return object;
61838
+ };
61839
+
61840
+ /**
61841
+ * Converts this ExportSBOMResponse to JSON.
61842
+ * @function toJSON
61843
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMResponse
61844
+ * @instance
61845
+ * @returns {Object.<string,*>} JSON object
61846
+ */
61847
+ ExportSBOMResponse.prototype.toJSON = function toJSON() {
61848
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
61849
+ };
61850
+
61851
+ /**
61852
+ * Gets the default type url for ExportSBOMResponse
61853
+ * @function getTypeUrl
61854
+ * @memberof google.devtools.containeranalysis.v1.ExportSBOMResponse
61855
+ * @static
61856
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
61857
+ * @returns {string} The default type url
61858
+ */
61859
+ ExportSBOMResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
61860
+ if (typeUrlPrefix === undefined) {
61861
+ typeUrlPrefix = "type.googleapis.com";
61862
+ }
61863
+ return typeUrlPrefix + "/google.devtools.containeranalysis.v1.ExportSBOMResponse";
61864
+ };
61865
+
61866
+ return ExportSBOMResponse;
61867
+ })();
61868
+
61207
61869
  v1.GetVulnerabilityOccurrencesSummaryRequest = (function() {
61208
61870
 
61209
61871
  /**