@google-cloud/dlp 6.0.1 → 6.1.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.
@@ -15489,6 +15489,7 @@
15489
15489
  * @property {Array.<google.privacy.dlp.v2.IVersionDescription>|null} [versions] InfoTypeDescription versions
15490
15490
  * @property {Array.<google.privacy.dlp.v2.IInfoTypeCategory>|null} [categories] InfoTypeDescription categories
15491
15491
  * @property {google.privacy.dlp.v2.ISensitivityScore|null} [sensitivityScore] InfoTypeDescription sensitivityScore
15492
+ * @property {Array.<string>|null} [specificInfoTypes] InfoTypeDescription specificInfoTypes
15492
15493
  */
15493
15494
 
15494
15495
  /**
@@ -15503,6 +15504,7 @@
15503
15504
  this.supportedBy = [];
15504
15505
  this.versions = [];
15505
15506
  this.categories = [];
15507
+ this.specificInfoTypes = [];
15506
15508
  if (properties)
15507
15509
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
15508
15510
  if (properties[keys[i]] != null)
@@ -15573,6 +15575,14 @@
15573
15575
  */
15574
15576
  InfoTypeDescription.prototype.sensitivityScore = null;
15575
15577
 
15578
+ /**
15579
+ * InfoTypeDescription specificInfoTypes.
15580
+ * @member {Array.<string>} specificInfoTypes
15581
+ * @memberof google.privacy.dlp.v2.InfoTypeDescription
15582
+ * @instance
15583
+ */
15584
+ InfoTypeDescription.prototype.specificInfoTypes = $util.emptyArray;
15585
+
15576
15586
  /**
15577
15587
  * Creates a new InfoTypeDescription instance using the specified properties.
15578
15588
  * @function create
@@ -15619,6 +15629,9 @@
15619
15629
  $root.google.privacy.dlp.v2.InfoTypeCategory.encode(message.categories[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
15620
15630
  if (message.sensitivityScore != null && Object.hasOwnProperty.call(message, "sensitivityScore"))
15621
15631
  $root.google.privacy.dlp.v2.SensitivityScore.encode(message.sensitivityScore, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
15632
+ if (message.specificInfoTypes != null && message.specificInfoTypes.length)
15633
+ for (var i = 0; i < message.specificInfoTypes.length; ++i)
15634
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.specificInfoTypes[i]);
15622
15635
  return writer;
15623
15636
  };
15624
15637
 
@@ -15696,6 +15709,12 @@
15696
15709
  message.sensitivityScore = $root.google.privacy.dlp.v2.SensitivityScore.decode(reader, reader.uint32());
15697
15710
  break;
15698
15711
  }
15712
+ case 12: {
15713
+ if (!(message.specificInfoTypes && message.specificInfoTypes.length))
15714
+ message.specificInfoTypes = [];
15715
+ message.specificInfoTypes.push(reader.string());
15716
+ break;
15717
+ }
15699
15718
  default:
15700
15719
  reader.skipType(tag & 7);
15701
15720
  break;
@@ -15779,6 +15798,13 @@
15779
15798
  if (error)
15780
15799
  return "sensitivityScore." + error;
15781
15800
  }
15801
+ if (message.specificInfoTypes != null && message.hasOwnProperty("specificInfoTypes")) {
15802
+ if (!Array.isArray(message.specificInfoTypes))
15803
+ return "specificInfoTypes: array expected";
15804
+ for (var i = 0; i < message.specificInfoTypes.length; ++i)
15805
+ if (!$util.isString(message.specificInfoTypes[i]))
15806
+ return "specificInfoTypes: string[] expected";
15807
+ }
15782
15808
  return null;
15783
15809
  };
15784
15810
 
@@ -15852,6 +15878,13 @@
15852
15878
  throw TypeError(".google.privacy.dlp.v2.InfoTypeDescription.sensitivityScore: object expected");
15853
15879
  message.sensitivityScore = $root.google.privacy.dlp.v2.SensitivityScore.fromObject(object.sensitivityScore);
15854
15880
  }
15881
+ if (object.specificInfoTypes) {
15882
+ if (!Array.isArray(object.specificInfoTypes))
15883
+ throw TypeError(".google.privacy.dlp.v2.InfoTypeDescription.specificInfoTypes: array expected");
15884
+ message.specificInfoTypes = [];
15885
+ for (var i = 0; i < object.specificInfoTypes.length; ++i)
15886
+ message.specificInfoTypes[i] = String(object.specificInfoTypes[i]);
15887
+ }
15855
15888
  return message;
15856
15889
  };
15857
15890
 
@@ -15872,6 +15905,7 @@
15872
15905
  object.supportedBy = [];
15873
15906
  object.versions = [];
15874
15907
  object.categories = [];
15908
+ object.specificInfoTypes = [];
15875
15909
  }
15876
15910
  if (options.defaults) {
15877
15911
  object.name = "";
@@ -15905,6 +15939,11 @@
15905
15939
  }
15906
15940
  if (message.sensitivityScore != null && message.hasOwnProperty("sensitivityScore"))
15907
15941
  object.sensitivityScore = $root.google.privacy.dlp.v2.SensitivityScore.toObject(message.sensitivityScore, options);
15942
+ if (message.specificInfoTypes && message.specificInfoTypes.length) {
15943
+ object.specificInfoTypes = [];
15944
+ for (var j = 0; j < message.specificInfoTypes.length; ++j)
15945
+ object.specificInfoTypes[j] = message.specificInfoTypes[j];
15946
+ }
15908
15947
  return object;
15909
15948
  };
15910
15949
 
@@ -16132,6 +16171,7 @@
16132
16171
  case 8:
16133
16172
  case 9:
16134
16173
  case 42:
16174
+ case 52:
16135
16175
  case 10:
16136
16176
  case 11:
16137
16177
  case 12:
@@ -16283,6 +16323,10 @@
16283
16323
  case 42:
16284
16324
  message.locationCategory = 42;
16285
16325
  break;
16326
+ case "CZECHIA":
16327
+ case 52:
16328
+ message.locationCategory = 52;
16329
+ break;
16286
16330
  case "DENMARK":
16287
16331
  case 10:
16288
16332
  message.locationCategory = 10;
@@ -16578,6 +16622,7 @@
16578
16622
  * @property {number} CHINA=8 CHINA value
16579
16623
  * @property {number} COLOMBIA=9 COLOMBIA value
16580
16624
  * @property {number} CROATIA=42 CROATIA value
16625
+ * @property {number} CZECHIA=52 CZECHIA value
16581
16626
  * @property {number} DENMARK=10 DENMARK value
16582
16627
  * @property {number} FRANCE=11 FRANCE value
16583
16628
  * @property {number} FINLAND=12 FINLAND value
@@ -16632,6 +16677,7 @@
16632
16677
  values[valuesById[8] = "CHINA"] = 8;
16633
16678
  values[valuesById[9] = "COLOMBIA"] = 9;
16634
16679
  values[valuesById[42] = "CROATIA"] = 42;
16680
+ values[valuesById[52] = "CZECHIA"] = 52;
16635
16681
  values[valuesById[10] = "DENMARK"] = 10;
16636
16682
  values[valuesById[11] = "FRANCE"] = 11;
16637
16683
  values[valuesById[12] = "FINLAND"] = 12;
@@ -50368,6 +50414,7 @@
50368
50414
  * @memberof google.privacy.dlp.v2.DataProfileAction
50369
50415
  * @interface IExport
50370
50416
  * @property {google.privacy.dlp.v2.IBigQueryTable|null} [profileTable] Export profileTable
50417
+ * @property {google.privacy.dlp.v2.IBigQueryTable|null} [sampleFindingsTable] Export sampleFindingsTable
50371
50418
  */
50372
50419
 
50373
50420
  /**
@@ -50393,6 +50440,14 @@
50393
50440
  */
50394
50441
  Export.prototype.profileTable = null;
50395
50442
 
50443
+ /**
50444
+ * Export sampleFindingsTable.
50445
+ * @member {google.privacy.dlp.v2.IBigQueryTable|null|undefined} sampleFindingsTable
50446
+ * @memberof google.privacy.dlp.v2.DataProfileAction.Export
50447
+ * @instance
50448
+ */
50449
+ Export.prototype.sampleFindingsTable = null;
50450
+
50396
50451
  /**
50397
50452
  * Creates a new Export instance using the specified properties.
50398
50453
  * @function create
@@ -50419,6 +50474,8 @@
50419
50474
  writer = $Writer.create();
50420
50475
  if (message.profileTable != null && Object.hasOwnProperty.call(message, "profileTable"))
50421
50476
  $root.google.privacy.dlp.v2.BigQueryTable.encode(message.profileTable, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
50477
+ if (message.sampleFindingsTable != null && Object.hasOwnProperty.call(message, "sampleFindingsTable"))
50478
+ $root.google.privacy.dlp.v2.BigQueryTable.encode(message.sampleFindingsTable, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
50422
50479
  return writer;
50423
50480
  };
50424
50481
 
@@ -50457,6 +50514,10 @@
50457
50514
  message.profileTable = $root.google.privacy.dlp.v2.BigQueryTable.decode(reader, reader.uint32());
50458
50515
  break;
50459
50516
  }
50517
+ case 2: {
50518
+ message.sampleFindingsTable = $root.google.privacy.dlp.v2.BigQueryTable.decode(reader, reader.uint32());
50519
+ break;
50520
+ }
50460
50521
  default:
50461
50522
  reader.skipType(tag & 7);
50462
50523
  break;
@@ -50497,6 +50558,11 @@
50497
50558
  if (error)
50498
50559
  return "profileTable." + error;
50499
50560
  }
50561
+ if (message.sampleFindingsTable != null && message.hasOwnProperty("sampleFindingsTable")) {
50562
+ var error = $root.google.privacy.dlp.v2.BigQueryTable.verify(message.sampleFindingsTable);
50563
+ if (error)
50564
+ return "sampleFindingsTable." + error;
50565
+ }
50500
50566
  return null;
50501
50567
  };
50502
50568
 
@@ -50517,6 +50583,11 @@
50517
50583
  throw TypeError(".google.privacy.dlp.v2.DataProfileAction.Export.profileTable: object expected");
50518
50584
  message.profileTable = $root.google.privacy.dlp.v2.BigQueryTable.fromObject(object.profileTable);
50519
50585
  }
50586
+ if (object.sampleFindingsTable != null) {
50587
+ if (typeof object.sampleFindingsTable !== "object")
50588
+ throw TypeError(".google.privacy.dlp.v2.DataProfileAction.Export.sampleFindingsTable: object expected");
50589
+ message.sampleFindingsTable = $root.google.privacy.dlp.v2.BigQueryTable.fromObject(object.sampleFindingsTable);
50590
+ }
50520
50591
  return message;
50521
50592
  };
50522
50593
 
@@ -50533,10 +50604,14 @@
50533
50604
  if (!options)
50534
50605
  options = {};
50535
50606
  var object = {};
50536
- if (options.defaults)
50607
+ if (options.defaults) {
50537
50608
  object.profileTable = null;
50609
+ object.sampleFindingsTable = null;
50610
+ }
50538
50611
  if (message.profileTable != null && message.hasOwnProperty("profileTable"))
50539
50612
  object.profileTable = $root.google.privacy.dlp.v2.BigQueryTable.toObject(message.profileTable, options);
50613
+ if (message.sampleFindingsTable != null && message.hasOwnProperty("sampleFindingsTable"))
50614
+ object.sampleFindingsTable = $root.google.privacy.dlp.v2.BigQueryTable.toObject(message.sampleFindingsTable, options);
50540
50615
  return object;
50541
50616
  };
50542
50617
 
@@ -52098,6 +52173,879 @@
52098
52173
  return DataProfileAction;
52099
52174
  })();
52100
52175
 
52176
+ v2.DataProfileFinding = (function() {
52177
+
52178
+ /**
52179
+ * Properties of a DataProfileFinding.
52180
+ * @memberof google.privacy.dlp.v2
52181
+ * @interface IDataProfileFinding
52182
+ * @property {string|null} [quote] DataProfileFinding quote
52183
+ * @property {google.privacy.dlp.v2.IInfoType|null} [infotype] DataProfileFinding infotype
52184
+ * @property {google.privacy.dlp.v2.IQuoteInfo|null} [quoteInfo] DataProfileFinding quoteInfo
52185
+ * @property {string|null} [dataProfileResourceName] DataProfileFinding dataProfileResourceName
52186
+ * @property {string|null} [findingId] DataProfileFinding findingId
52187
+ * @property {google.protobuf.ITimestamp|null} [timestamp] DataProfileFinding timestamp
52188
+ * @property {google.privacy.dlp.v2.IDataProfileFindingLocation|null} [location] DataProfileFinding location
52189
+ * @property {google.privacy.dlp.v2.ResourceVisibility|null} [resourceVisibility] DataProfileFinding resourceVisibility
52190
+ */
52191
+
52192
+ /**
52193
+ * Constructs a new DataProfileFinding.
52194
+ * @memberof google.privacy.dlp.v2
52195
+ * @classdesc Represents a DataProfileFinding.
52196
+ * @implements IDataProfileFinding
52197
+ * @constructor
52198
+ * @param {google.privacy.dlp.v2.IDataProfileFinding=} [properties] Properties to set
52199
+ */
52200
+ function DataProfileFinding(properties) {
52201
+ if (properties)
52202
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
52203
+ if (properties[keys[i]] != null)
52204
+ this[keys[i]] = properties[keys[i]];
52205
+ }
52206
+
52207
+ /**
52208
+ * DataProfileFinding quote.
52209
+ * @member {string} quote
52210
+ * @memberof google.privacy.dlp.v2.DataProfileFinding
52211
+ * @instance
52212
+ */
52213
+ DataProfileFinding.prototype.quote = "";
52214
+
52215
+ /**
52216
+ * DataProfileFinding infotype.
52217
+ * @member {google.privacy.dlp.v2.IInfoType|null|undefined} infotype
52218
+ * @memberof google.privacy.dlp.v2.DataProfileFinding
52219
+ * @instance
52220
+ */
52221
+ DataProfileFinding.prototype.infotype = null;
52222
+
52223
+ /**
52224
+ * DataProfileFinding quoteInfo.
52225
+ * @member {google.privacy.dlp.v2.IQuoteInfo|null|undefined} quoteInfo
52226
+ * @memberof google.privacy.dlp.v2.DataProfileFinding
52227
+ * @instance
52228
+ */
52229
+ DataProfileFinding.prototype.quoteInfo = null;
52230
+
52231
+ /**
52232
+ * DataProfileFinding dataProfileResourceName.
52233
+ * @member {string} dataProfileResourceName
52234
+ * @memberof google.privacy.dlp.v2.DataProfileFinding
52235
+ * @instance
52236
+ */
52237
+ DataProfileFinding.prototype.dataProfileResourceName = "";
52238
+
52239
+ /**
52240
+ * DataProfileFinding findingId.
52241
+ * @member {string} findingId
52242
+ * @memberof google.privacy.dlp.v2.DataProfileFinding
52243
+ * @instance
52244
+ */
52245
+ DataProfileFinding.prototype.findingId = "";
52246
+
52247
+ /**
52248
+ * DataProfileFinding timestamp.
52249
+ * @member {google.protobuf.ITimestamp|null|undefined} timestamp
52250
+ * @memberof google.privacy.dlp.v2.DataProfileFinding
52251
+ * @instance
52252
+ */
52253
+ DataProfileFinding.prototype.timestamp = null;
52254
+
52255
+ /**
52256
+ * DataProfileFinding location.
52257
+ * @member {google.privacy.dlp.v2.IDataProfileFindingLocation|null|undefined} location
52258
+ * @memberof google.privacy.dlp.v2.DataProfileFinding
52259
+ * @instance
52260
+ */
52261
+ DataProfileFinding.prototype.location = null;
52262
+
52263
+ /**
52264
+ * DataProfileFinding resourceVisibility.
52265
+ * @member {google.privacy.dlp.v2.ResourceVisibility} resourceVisibility
52266
+ * @memberof google.privacy.dlp.v2.DataProfileFinding
52267
+ * @instance
52268
+ */
52269
+ DataProfileFinding.prototype.resourceVisibility = 0;
52270
+
52271
+ /**
52272
+ * Creates a new DataProfileFinding instance using the specified properties.
52273
+ * @function create
52274
+ * @memberof google.privacy.dlp.v2.DataProfileFinding
52275
+ * @static
52276
+ * @param {google.privacy.dlp.v2.IDataProfileFinding=} [properties] Properties to set
52277
+ * @returns {google.privacy.dlp.v2.DataProfileFinding} DataProfileFinding instance
52278
+ */
52279
+ DataProfileFinding.create = function create(properties) {
52280
+ return new DataProfileFinding(properties);
52281
+ };
52282
+
52283
+ /**
52284
+ * Encodes the specified DataProfileFinding message. Does not implicitly {@link google.privacy.dlp.v2.DataProfileFinding.verify|verify} messages.
52285
+ * @function encode
52286
+ * @memberof google.privacy.dlp.v2.DataProfileFinding
52287
+ * @static
52288
+ * @param {google.privacy.dlp.v2.IDataProfileFinding} message DataProfileFinding message or plain object to encode
52289
+ * @param {$protobuf.Writer} [writer] Writer to encode to
52290
+ * @returns {$protobuf.Writer} Writer
52291
+ */
52292
+ DataProfileFinding.encode = function encode(message, writer) {
52293
+ if (!writer)
52294
+ writer = $Writer.create();
52295
+ if (message.quote != null && Object.hasOwnProperty.call(message, "quote"))
52296
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.quote);
52297
+ if (message.infotype != null && Object.hasOwnProperty.call(message, "infotype"))
52298
+ $root.google.privacy.dlp.v2.InfoType.encode(message.infotype, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
52299
+ if (message.quoteInfo != null && Object.hasOwnProperty.call(message, "quoteInfo"))
52300
+ $root.google.privacy.dlp.v2.QuoteInfo.encode(message.quoteInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
52301
+ if (message.dataProfileResourceName != null && Object.hasOwnProperty.call(message, "dataProfileResourceName"))
52302
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.dataProfileResourceName);
52303
+ if (message.findingId != null && Object.hasOwnProperty.call(message, "findingId"))
52304
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.findingId);
52305
+ if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
52306
+ $root.google.protobuf.Timestamp.encode(message.timestamp, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
52307
+ if (message.location != null && Object.hasOwnProperty.call(message, "location"))
52308
+ $root.google.privacy.dlp.v2.DataProfileFindingLocation.encode(message.location, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
52309
+ if (message.resourceVisibility != null && Object.hasOwnProperty.call(message, "resourceVisibility"))
52310
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.resourceVisibility);
52311
+ return writer;
52312
+ };
52313
+
52314
+ /**
52315
+ * Encodes the specified DataProfileFinding message, length delimited. Does not implicitly {@link google.privacy.dlp.v2.DataProfileFinding.verify|verify} messages.
52316
+ * @function encodeDelimited
52317
+ * @memberof google.privacy.dlp.v2.DataProfileFinding
52318
+ * @static
52319
+ * @param {google.privacy.dlp.v2.IDataProfileFinding} message DataProfileFinding message or plain object to encode
52320
+ * @param {$protobuf.Writer} [writer] Writer to encode to
52321
+ * @returns {$protobuf.Writer} Writer
52322
+ */
52323
+ DataProfileFinding.encodeDelimited = function encodeDelimited(message, writer) {
52324
+ return this.encode(message, writer).ldelim();
52325
+ };
52326
+
52327
+ /**
52328
+ * Decodes a DataProfileFinding message from the specified reader or buffer.
52329
+ * @function decode
52330
+ * @memberof google.privacy.dlp.v2.DataProfileFinding
52331
+ * @static
52332
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
52333
+ * @param {number} [length] Message length if known beforehand
52334
+ * @returns {google.privacy.dlp.v2.DataProfileFinding} DataProfileFinding
52335
+ * @throws {Error} If the payload is not a reader or valid buffer
52336
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
52337
+ */
52338
+ DataProfileFinding.decode = function decode(reader, length) {
52339
+ if (!(reader instanceof $Reader))
52340
+ reader = $Reader.create(reader);
52341
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.privacy.dlp.v2.DataProfileFinding();
52342
+ while (reader.pos < end) {
52343
+ var tag = reader.uint32();
52344
+ switch (tag >>> 3) {
52345
+ case 1: {
52346
+ message.quote = reader.string();
52347
+ break;
52348
+ }
52349
+ case 2: {
52350
+ message.infotype = $root.google.privacy.dlp.v2.InfoType.decode(reader, reader.uint32());
52351
+ break;
52352
+ }
52353
+ case 3: {
52354
+ message.quoteInfo = $root.google.privacy.dlp.v2.QuoteInfo.decode(reader, reader.uint32());
52355
+ break;
52356
+ }
52357
+ case 4: {
52358
+ message.dataProfileResourceName = reader.string();
52359
+ break;
52360
+ }
52361
+ case 5: {
52362
+ message.findingId = reader.string();
52363
+ break;
52364
+ }
52365
+ case 6: {
52366
+ message.timestamp = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
52367
+ break;
52368
+ }
52369
+ case 7: {
52370
+ message.location = $root.google.privacy.dlp.v2.DataProfileFindingLocation.decode(reader, reader.uint32());
52371
+ break;
52372
+ }
52373
+ case 8: {
52374
+ message.resourceVisibility = reader.int32();
52375
+ break;
52376
+ }
52377
+ default:
52378
+ reader.skipType(tag & 7);
52379
+ break;
52380
+ }
52381
+ }
52382
+ return message;
52383
+ };
52384
+
52385
+ /**
52386
+ * Decodes a DataProfileFinding message from the specified reader or buffer, length delimited.
52387
+ * @function decodeDelimited
52388
+ * @memberof google.privacy.dlp.v2.DataProfileFinding
52389
+ * @static
52390
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
52391
+ * @returns {google.privacy.dlp.v2.DataProfileFinding} DataProfileFinding
52392
+ * @throws {Error} If the payload is not a reader or valid buffer
52393
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
52394
+ */
52395
+ DataProfileFinding.decodeDelimited = function decodeDelimited(reader) {
52396
+ if (!(reader instanceof $Reader))
52397
+ reader = new $Reader(reader);
52398
+ return this.decode(reader, reader.uint32());
52399
+ };
52400
+
52401
+ /**
52402
+ * Verifies a DataProfileFinding message.
52403
+ * @function verify
52404
+ * @memberof google.privacy.dlp.v2.DataProfileFinding
52405
+ * @static
52406
+ * @param {Object.<string,*>} message Plain object to verify
52407
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
52408
+ */
52409
+ DataProfileFinding.verify = function verify(message) {
52410
+ if (typeof message !== "object" || message === null)
52411
+ return "object expected";
52412
+ if (message.quote != null && message.hasOwnProperty("quote"))
52413
+ if (!$util.isString(message.quote))
52414
+ return "quote: string expected";
52415
+ if (message.infotype != null && message.hasOwnProperty("infotype")) {
52416
+ var error = $root.google.privacy.dlp.v2.InfoType.verify(message.infotype);
52417
+ if (error)
52418
+ return "infotype." + error;
52419
+ }
52420
+ if (message.quoteInfo != null && message.hasOwnProperty("quoteInfo")) {
52421
+ var error = $root.google.privacy.dlp.v2.QuoteInfo.verify(message.quoteInfo);
52422
+ if (error)
52423
+ return "quoteInfo." + error;
52424
+ }
52425
+ if (message.dataProfileResourceName != null && message.hasOwnProperty("dataProfileResourceName"))
52426
+ if (!$util.isString(message.dataProfileResourceName))
52427
+ return "dataProfileResourceName: string expected";
52428
+ if (message.findingId != null && message.hasOwnProperty("findingId"))
52429
+ if (!$util.isString(message.findingId))
52430
+ return "findingId: string expected";
52431
+ if (message.timestamp != null && message.hasOwnProperty("timestamp")) {
52432
+ var error = $root.google.protobuf.Timestamp.verify(message.timestamp);
52433
+ if (error)
52434
+ return "timestamp." + error;
52435
+ }
52436
+ if (message.location != null && message.hasOwnProperty("location")) {
52437
+ var error = $root.google.privacy.dlp.v2.DataProfileFindingLocation.verify(message.location);
52438
+ if (error)
52439
+ return "location." + error;
52440
+ }
52441
+ if (message.resourceVisibility != null && message.hasOwnProperty("resourceVisibility"))
52442
+ switch (message.resourceVisibility) {
52443
+ default:
52444
+ return "resourceVisibility: enum value expected";
52445
+ case 0:
52446
+ case 10:
52447
+ case 15:
52448
+ case 20:
52449
+ break;
52450
+ }
52451
+ return null;
52452
+ };
52453
+
52454
+ /**
52455
+ * Creates a DataProfileFinding message from a plain object. Also converts values to their respective internal types.
52456
+ * @function fromObject
52457
+ * @memberof google.privacy.dlp.v2.DataProfileFinding
52458
+ * @static
52459
+ * @param {Object.<string,*>} object Plain object
52460
+ * @returns {google.privacy.dlp.v2.DataProfileFinding} DataProfileFinding
52461
+ */
52462
+ DataProfileFinding.fromObject = function fromObject(object) {
52463
+ if (object instanceof $root.google.privacy.dlp.v2.DataProfileFinding)
52464
+ return object;
52465
+ var message = new $root.google.privacy.dlp.v2.DataProfileFinding();
52466
+ if (object.quote != null)
52467
+ message.quote = String(object.quote);
52468
+ if (object.infotype != null) {
52469
+ if (typeof object.infotype !== "object")
52470
+ throw TypeError(".google.privacy.dlp.v2.DataProfileFinding.infotype: object expected");
52471
+ message.infotype = $root.google.privacy.dlp.v2.InfoType.fromObject(object.infotype);
52472
+ }
52473
+ if (object.quoteInfo != null) {
52474
+ if (typeof object.quoteInfo !== "object")
52475
+ throw TypeError(".google.privacy.dlp.v2.DataProfileFinding.quoteInfo: object expected");
52476
+ message.quoteInfo = $root.google.privacy.dlp.v2.QuoteInfo.fromObject(object.quoteInfo);
52477
+ }
52478
+ if (object.dataProfileResourceName != null)
52479
+ message.dataProfileResourceName = String(object.dataProfileResourceName);
52480
+ if (object.findingId != null)
52481
+ message.findingId = String(object.findingId);
52482
+ if (object.timestamp != null) {
52483
+ if (typeof object.timestamp !== "object")
52484
+ throw TypeError(".google.privacy.dlp.v2.DataProfileFinding.timestamp: object expected");
52485
+ message.timestamp = $root.google.protobuf.Timestamp.fromObject(object.timestamp);
52486
+ }
52487
+ if (object.location != null) {
52488
+ if (typeof object.location !== "object")
52489
+ throw TypeError(".google.privacy.dlp.v2.DataProfileFinding.location: object expected");
52490
+ message.location = $root.google.privacy.dlp.v2.DataProfileFindingLocation.fromObject(object.location);
52491
+ }
52492
+ switch (object.resourceVisibility) {
52493
+ default:
52494
+ if (typeof object.resourceVisibility === "number") {
52495
+ message.resourceVisibility = object.resourceVisibility;
52496
+ break;
52497
+ }
52498
+ break;
52499
+ case "RESOURCE_VISIBILITY_UNSPECIFIED":
52500
+ case 0:
52501
+ message.resourceVisibility = 0;
52502
+ break;
52503
+ case "RESOURCE_VISIBILITY_PUBLIC":
52504
+ case 10:
52505
+ message.resourceVisibility = 10;
52506
+ break;
52507
+ case "RESOURCE_VISIBILITY_INCONCLUSIVE":
52508
+ case 15:
52509
+ message.resourceVisibility = 15;
52510
+ break;
52511
+ case "RESOURCE_VISIBILITY_RESTRICTED":
52512
+ case 20:
52513
+ message.resourceVisibility = 20;
52514
+ break;
52515
+ }
52516
+ return message;
52517
+ };
52518
+
52519
+ /**
52520
+ * Creates a plain object from a DataProfileFinding message. Also converts values to other types if specified.
52521
+ * @function toObject
52522
+ * @memberof google.privacy.dlp.v2.DataProfileFinding
52523
+ * @static
52524
+ * @param {google.privacy.dlp.v2.DataProfileFinding} message DataProfileFinding
52525
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
52526
+ * @returns {Object.<string,*>} Plain object
52527
+ */
52528
+ DataProfileFinding.toObject = function toObject(message, options) {
52529
+ if (!options)
52530
+ options = {};
52531
+ var object = {};
52532
+ if (options.defaults) {
52533
+ object.quote = "";
52534
+ object.infotype = null;
52535
+ object.quoteInfo = null;
52536
+ object.dataProfileResourceName = "";
52537
+ object.findingId = "";
52538
+ object.timestamp = null;
52539
+ object.location = null;
52540
+ object.resourceVisibility = options.enums === String ? "RESOURCE_VISIBILITY_UNSPECIFIED" : 0;
52541
+ }
52542
+ if (message.quote != null && message.hasOwnProperty("quote"))
52543
+ object.quote = message.quote;
52544
+ if (message.infotype != null && message.hasOwnProperty("infotype"))
52545
+ object.infotype = $root.google.privacy.dlp.v2.InfoType.toObject(message.infotype, options);
52546
+ if (message.quoteInfo != null && message.hasOwnProperty("quoteInfo"))
52547
+ object.quoteInfo = $root.google.privacy.dlp.v2.QuoteInfo.toObject(message.quoteInfo, options);
52548
+ if (message.dataProfileResourceName != null && message.hasOwnProperty("dataProfileResourceName"))
52549
+ object.dataProfileResourceName = message.dataProfileResourceName;
52550
+ if (message.findingId != null && message.hasOwnProperty("findingId"))
52551
+ object.findingId = message.findingId;
52552
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
52553
+ object.timestamp = $root.google.protobuf.Timestamp.toObject(message.timestamp, options);
52554
+ if (message.location != null && message.hasOwnProperty("location"))
52555
+ object.location = $root.google.privacy.dlp.v2.DataProfileFindingLocation.toObject(message.location, options);
52556
+ if (message.resourceVisibility != null && message.hasOwnProperty("resourceVisibility"))
52557
+ object.resourceVisibility = options.enums === String ? $root.google.privacy.dlp.v2.ResourceVisibility[message.resourceVisibility] === undefined ? message.resourceVisibility : $root.google.privacy.dlp.v2.ResourceVisibility[message.resourceVisibility] : message.resourceVisibility;
52558
+ return object;
52559
+ };
52560
+
52561
+ /**
52562
+ * Converts this DataProfileFinding to JSON.
52563
+ * @function toJSON
52564
+ * @memberof google.privacy.dlp.v2.DataProfileFinding
52565
+ * @instance
52566
+ * @returns {Object.<string,*>} JSON object
52567
+ */
52568
+ DataProfileFinding.prototype.toJSON = function toJSON() {
52569
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
52570
+ };
52571
+
52572
+ /**
52573
+ * Gets the default type url for DataProfileFinding
52574
+ * @function getTypeUrl
52575
+ * @memberof google.privacy.dlp.v2.DataProfileFinding
52576
+ * @static
52577
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
52578
+ * @returns {string} The default type url
52579
+ */
52580
+ DataProfileFinding.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
52581
+ if (typeUrlPrefix === undefined) {
52582
+ typeUrlPrefix = "type.googleapis.com";
52583
+ }
52584
+ return typeUrlPrefix + "/google.privacy.dlp.v2.DataProfileFinding";
52585
+ };
52586
+
52587
+ return DataProfileFinding;
52588
+ })();
52589
+
52590
+ v2.DataProfileFindingLocation = (function() {
52591
+
52592
+ /**
52593
+ * Properties of a DataProfileFindingLocation.
52594
+ * @memberof google.privacy.dlp.v2
52595
+ * @interface IDataProfileFindingLocation
52596
+ * @property {string|null} [containerName] DataProfileFindingLocation containerName
52597
+ * @property {google.privacy.dlp.v2.IDataProfileFindingRecordLocation|null} [dataProfileFindingRecordLocation] DataProfileFindingLocation dataProfileFindingRecordLocation
52598
+ */
52599
+
52600
+ /**
52601
+ * Constructs a new DataProfileFindingLocation.
52602
+ * @memberof google.privacy.dlp.v2
52603
+ * @classdesc Represents a DataProfileFindingLocation.
52604
+ * @implements IDataProfileFindingLocation
52605
+ * @constructor
52606
+ * @param {google.privacy.dlp.v2.IDataProfileFindingLocation=} [properties] Properties to set
52607
+ */
52608
+ function DataProfileFindingLocation(properties) {
52609
+ if (properties)
52610
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
52611
+ if (properties[keys[i]] != null)
52612
+ this[keys[i]] = properties[keys[i]];
52613
+ }
52614
+
52615
+ /**
52616
+ * DataProfileFindingLocation containerName.
52617
+ * @member {string} containerName
52618
+ * @memberof google.privacy.dlp.v2.DataProfileFindingLocation
52619
+ * @instance
52620
+ */
52621
+ DataProfileFindingLocation.prototype.containerName = "";
52622
+
52623
+ /**
52624
+ * DataProfileFindingLocation dataProfileFindingRecordLocation.
52625
+ * @member {google.privacy.dlp.v2.IDataProfileFindingRecordLocation|null|undefined} dataProfileFindingRecordLocation
52626
+ * @memberof google.privacy.dlp.v2.DataProfileFindingLocation
52627
+ * @instance
52628
+ */
52629
+ DataProfileFindingLocation.prototype.dataProfileFindingRecordLocation = null;
52630
+
52631
+ // OneOf field names bound to virtual getters and setters
52632
+ var $oneOfFields;
52633
+
52634
+ /**
52635
+ * DataProfileFindingLocation locationExtraDetails.
52636
+ * @member {"dataProfileFindingRecordLocation"|undefined} locationExtraDetails
52637
+ * @memberof google.privacy.dlp.v2.DataProfileFindingLocation
52638
+ * @instance
52639
+ */
52640
+ Object.defineProperty(DataProfileFindingLocation.prototype, "locationExtraDetails", {
52641
+ get: $util.oneOfGetter($oneOfFields = ["dataProfileFindingRecordLocation"]),
52642
+ set: $util.oneOfSetter($oneOfFields)
52643
+ });
52644
+
52645
+ /**
52646
+ * Creates a new DataProfileFindingLocation instance using the specified properties.
52647
+ * @function create
52648
+ * @memberof google.privacy.dlp.v2.DataProfileFindingLocation
52649
+ * @static
52650
+ * @param {google.privacy.dlp.v2.IDataProfileFindingLocation=} [properties] Properties to set
52651
+ * @returns {google.privacy.dlp.v2.DataProfileFindingLocation} DataProfileFindingLocation instance
52652
+ */
52653
+ DataProfileFindingLocation.create = function create(properties) {
52654
+ return new DataProfileFindingLocation(properties);
52655
+ };
52656
+
52657
+ /**
52658
+ * Encodes the specified DataProfileFindingLocation message. Does not implicitly {@link google.privacy.dlp.v2.DataProfileFindingLocation.verify|verify} messages.
52659
+ * @function encode
52660
+ * @memberof google.privacy.dlp.v2.DataProfileFindingLocation
52661
+ * @static
52662
+ * @param {google.privacy.dlp.v2.IDataProfileFindingLocation} message DataProfileFindingLocation message or plain object to encode
52663
+ * @param {$protobuf.Writer} [writer] Writer to encode to
52664
+ * @returns {$protobuf.Writer} Writer
52665
+ */
52666
+ DataProfileFindingLocation.encode = function encode(message, writer) {
52667
+ if (!writer)
52668
+ writer = $Writer.create();
52669
+ if (message.containerName != null && Object.hasOwnProperty.call(message, "containerName"))
52670
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.containerName);
52671
+ if (message.dataProfileFindingRecordLocation != null && Object.hasOwnProperty.call(message, "dataProfileFindingRecordLocation"))
52672
+ $root.google.privacy.dlp.v2.DataProfileFindingRecordLocation.encode(message.dataProfileFindingRecordLocation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
52673
+ return writer;
52674
+ };
52675
+
52676
+ /**
52677
+ * Encodes the specified DataProfileFindingLocation message, length delimited. Does not implicitly {@link google.privacy.dlp.v2.DataProfileFindingLocation.verify|verify} messages.
52678
+ * @function encodeDelimited
52679
+ * @memberof google.privacy.dlp.v2.DataProfileFindingLocation
52680
+ * @static
52681
+ * @param {google.privacy.dlp.v2.IDataProfileFindingLocation} message DataProfileFindingLocation message or plain object to encode
52682
+ * @param {$protobuf.Writer} [writer] Writer to encode to
52683
+ * @returns {$protobuf.Writer} Writer
52684
+ */
52685
+ DataProfileFindingLocation.encodeDelimited = function encodeDelimited(message, writer) {
52686
+ return this.encode(message, writer).ldelim();
52687
+ };
52688
+
52689
+ /**
52690
+ * Decodes a DataProfileFindingLocation message from the specified reader or buffer.
52691
+ * @function decode
52692
+ * @memberof google.privacy.dlp.v2.DataProfileFindingLocation
52693
+ * @static
52694
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
52695
+ * @param {number} [length] Message length if known beforehand
52696
+ * @returns {google.privacy.dlp.v2.DataProfileFindingLocation} DataProfileFindingLocation
52697
+ * @throws {Error} If the payload is not a reader or valid buffer
52698
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
52699
+ */
52700
+ DataProfileFindingLocation.decode = function decode(reader, length) {
52701
+ if (!(reader instanceof $Reader))
52702
+ reader = $Reader.create(reader);
52703
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.privacy.dlp.v2.DataProfileFindingLocation();
52704
+ while (reader.pos < end) {
52705
+ var tag = reader.uint32();
52706
+ switch (tag >>> 3) {
52707
+ case 1: {
52708
+ message.containerName = reader.string();
52709
+ break;
52710
+ }
52711
+ case 2: {
52712
+ message.dataProfileFindingRecordLocation = $root.google.privacy.dlp.v2.DataProfileFindingRecordLocation.decode(reader, reader.uint32());
52713
+ break;
52714
+ }
52715
+ default:
52716
+ reader.skipType(tag & 7);
52717
+ break;
52718
+ }
52719
+ }
52720
+ return message;
52721
+ };
52722
+
52723
+ /**
52724
+ * Decodes a DataProfileFindingLocation message from the specified reader or buffer, length delimited.
52725
+ * @function decodeDelimited
52726
+ * @memberof google.privacy.dlp.v2.DataProfileFindingLocation
52727
+ * @static
52728
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
52729
+ * @returns {google.privacy.dlp.v2.DataProfileFindingLocation} DataProfileFindingLocation
52730
+ * @throws {Error} If the payload is not a reader or valid buffer
52731
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
52732
+ */
52733
+ DataProfileFindingLocation.decodeDelimited = function decodeDelimited(reader) {
52734
+ if (!(reader instanceof $Reader))
52735
+ reader = new $Reader(reader);
52736
+ return this.decode(reader, reader.uint32());
52737
+ };
52738
+
52739
+ /**
52740
+ * Verifies a DataProfileFindingLocation message.
52741
+ * @function verify
52742
+ * @memberof google.privacy.dlp.v2.DataProfileFindingLocation
52743
+ * @static
52744
+ * @param {Object.<string,*>} message Plain object to verify
52745
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
52746
+ */
52747
+ DataProfileFindingLocation.verify = function verify(message) {
52748
+ if (typeof message !== "object" || message === null)
52749
+ return "object expected";
52750
+ var properties = {};
52751
+ if (message.containerName != null && message.hasOwnProperty("containerName"))
52752
+ if (!$util.isString(message.containerName))
52753
+ return "containerName: string expected";
52754
+ if (message.dataProfileFindingRecordLocation != null && message.hasOwnProperty("dataProfileFindingRecordLocation")) {
52755
+ properties.locationExtraDetails = 1;
52756
+ {
52757
+ var error = $root.google.privacy.dlp.v2.DataProfileFindingRecordLocation.verify(message.dataProfileFindingRecordLocation);
52758
+ if (error)
52759
+ return "dataProfileFindingRecordLocation." + error;
52760
+ }
52761
+ }
52762
+ return null;
52763
+ };
52764
+
52765
+ /**
52766
+ * Creates a DataProfileFindingLocation message from a plain object. Also converts values to their respective internal types.
52767
+ * @function fromObject
52768
+ * @memberof google.privacy.dlp.v2.DataProfileFindingLocation
52769
+ * @static
52770
+ * @param {Object.<string,*>} object Plain object
52771
+ * @returns {google.privacy.dlp.v2.DataProfileFindingLocation} DataProfileFindingLocation
52772
+ */
52773
+ DataProfileFindingLocation.fromObject = function fromObject(object) {
52774
+ if (object instanceof $root.google.privacy.dlp.v2.DataProfileFindingLocation)
52775
+ return object;
52776
+ var message = new $root.google.privacy.dlp.v2.DataProfileFindingLocation();
52777
+ if (object.containerName != null)
52778
+ message.containerName = String(object.containerName);
52779
+ if (object.dataProfileFindingRecordLocation != null) {
52780
+ if (typeof object.dataProfileFindingRecordLocation !== "object")
52781
+ throw TypeError(".google.privacy.dlp.v2.DataProfileFindingLocation.dataProfileFindingRecordLocation: object expected");
52782
+ message.dataProfileFindingRecordLocation = $root.google.privacy.dlp.v2.DataProfileFindingRecordLocation.fromObject(object.dataProfileFindingRecordLocation);
52783
+ }
52784
+ return message;
52785
+ };
52786
+
52787
+ /**
52788
+ * Creates a plain object from a DataProfileFindingLocation message. Also converts values to other types if specified.
52789
+ * @function toObject
52790
+ * @memberof google.privacy.dlp.v2.DataProfileFindingLocation
52791
+ * @static
52792
+ * @param {google.privacy.dlp.v2.DataProfileFindingLocation} message DataProfileFindingLocation
52793
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
52794
+ * @returns {Object.<string,*>} Plain object
52795
+ */
52796
+ DataProfileFindingLocation.toObject = function toObject(message, options) {
52797
+ if (!options)
52798
+ options = {};
52799
+ var object = {};
52800
+ if (options.defaults)
52801
+ object.containerName = "";
52802
+ if (message.containerName != null && message.hasOwnProperty("containerName"))
52803
+ object.containerName = message.containerName;
52804
+ if (message.dataProfileFindingRecordLocation != null && message.hasOwnProperty("dataProfileFindingRecordLocation")) {
52805
+ object.dataProfileFindingRecordLocation = $root.google.privacy.dlp.v2.DataProfileFindingRecordLocation.toObject(message.dataProfileFindingRecordLocation, options);
52806
+ if (options.oneofs)
52807
+ object.locationExtraDetails = "dataProfileFindingRecordLocation";
52808
+ }
52809
+ return object;
52810
+ };
52811
+
52812
+ /**
52813
+ * Converts this DataProfileFindingLocation to JSON.
52814
+ * @function toJSON
52815
+ * @memberof google.privacy.dlp.v2.DataProfileFindingLocation
52816
+ * @instance
52817
+ * @returns {Object.<string,*>} JSON object
52818
+ */
52819
+ DataProfileFindingLocation.prototype.toJSON = function toJSON() {
52820
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
52821
+ };
52822
+
52823
+ /**
52824
+ * Gets the default type url for DataProfileFindingLocation
52825
+ * @function getTypeUrl
52826
+ * @memberof google.privacy.dlp.v2.DataProfileFindingLocation
52827
+ * @static
52828
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
52829
+ * @returns {string} The default type url
52830
+ */
52831
+ DataProfileFindingLocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
52832
+ if (typeUrlPrefix === undefined) {
52833
+ typeUrlPrefix = "type.googleapis.com";
52834
+ }
52835
+ return typeUrlPrefix + "/google.privacy.dlp.v2.DataProfileFindingLocation";
52836
+ };
52837
+
52838
+ return DataProfileFindingLocation;
52839
+ })();
52840
+
52841
+ v2.DataProfileFindingRecordLocation = (function() {
52842
+
52843
+ /**
52844
+ * Properties of a DataProfileFindingRecordLocation.
52845
+ * @memberof google.privacy.dlp.v2
52846
+ * @interface IDataProfileFindingRecordLocation
52847
+ * @property {google.privacy.dlp.v2.IFieldId|null} [field] DataProfileFindingRecordLocation field
52848
+ */
52849
+
52850
+ /**
52851
+ * Constructs a new DataProfileFindingRecordLocation.
52852
+ * @memberof google.privacy.dlp.v2
52853
+ * @classdesc Represents a DataProfileFindingRecordLocation.
52854
+ * @implements IDataProfileFindingRecordLocation
52855
+ * @constructor
52856
+ * @param {google.privacy.dlp.v2.IDataProfileFindingRecordLocation=} [properties] Properties to set
52857
+ */
52858
+ function DataProfileFindingRecordLocation(properties) {
52859
+ if (properties)
52860
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
52861
+ if (properties[keys[i]] != null)
52862
+ this[keys[i]] = properties[keys[i]];
52863
+ }
52864
+
52865
+ /**
52866
+ * DataProfileFindingRecordLocation field.
52867
+ * @member {google.privacy.dlp.v2.IFieldId|null|undefined} field
52868
+ * @memberof google.privacy.dlp.v2.DataProfileFindingRecordLocation
52869
+ * @instance
52870
+ */
52871
+ DataProfileFindingRecordLocation.prototype.field = null;
52872
+
52873
+ /**
52874
+ * Creates a new DataProfileFindingRecordLocation instance using the specified properties.
52875
+ * @function create
52876
+ * @memberof google.privacy.dlp.v2.DataProfileFindingRecordLocation
52877
+ * @static
52878
+ * @param {google.privacy.dlp.v2.IDataProfileFindingRecordLocation=} [properties] Properties to set
52879
+ * @returns {google.privacy.dlp.v2.DataProfileFindingRecordLocation} DataProfileFindingRecordLocation instance
52880
+ */
52881
+ DataProfileFindingRecordLocation.create = function create(properties) {
52882
+ return new DataProfileFindingRecordLocation(properties);
52883
+ };
52884
+
52885
+ /**
52886
+ * Encodes the specified DataProfileFindingRecordLocation message. Does not implicitly {@link google.privacy.dlp.v2.DataProfileFindingRecordLocation.verify|verify} messages.
52887
+ * @function encode
52888
+ * @memberof google.privacy.dlp.v2.DataProfileFindingRecordLocation
52889
+ * @static
52890
+ * @param {google.privacy.dlp.v2.IDataProfileFindingRecordLocation} message DataProfileFindingRecordLocation message or plain object to encode
52891
+ * @param {$protobuf.Writer} [writer] Writer to encode to
52892
+ * @returns {$protobuf.Writer} Writer
52893
+ */
52894
+ DataProfileFindingRecordLocation.encode = function encode(message, writer) {
52895
+ if (!writer)
52896
+ writer = $Writer.create();
52897
+ if (message.field != null && Object.hasOwnProperty.call(message, "field"))
52898
+ $root.google.privacy.dlp.v2.FieldId.encode(message.field, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
52899
+ return writer;
52900
+ };
52901
+
52902
+ /**
52903
+ * Encodes the specified DataProfileFindingRecordLocation message, length delimited. Does not implicitly {@link google.privacy.dlp.v2.DataProfileFindingRecordLocation.verify|verify} messages.
52904
+ * @function encodeDelimited
52905
+ * @memberof google.privacy.dlp.v2.DataProfileFindingRecordLocation
52906
+ * @static
52907
+ * @param {google.privacy.dlp.v2.IDataProfileFindingRecordLocation} message DataProfileFindingRecordLocation message or plain object to encode
52908
+ * @param {$protobuf.Writer} [writer] Writer to encode to
52909
+ * @returns {$protobuf.Writer} Writer
52910
+ */
52911
+ DataProfileFindingRecordLocation.encodeDelimited = function encodeDelimited(message, writer) {
52912
+ return this.encode(message, writer).ldelim();
52913
+ };
52914
+
52915
+ /**
52916
+ * Decodes a DataProfileFindingRecordLocation message from the specified reader or buffer.
52917
+ * @function decode
52918
+ * @memberof google.privacy.dlp.v2.DataProfileFindingRecordLocation
52919
+ * @static
52920
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
52921
+ * @param {number} [length] Message length if known beforehand
52922
+ * @returns {google.privacy.dlp.v2.DataProfileFindingRecordLocation} DataProfileFindingRecordLocation
52923
+ * @throws {Error} If the payload is not a reader or valid buffer
52924
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
52925
+ */
52926
+ DataProfileFindingRecordLocation.decode = function decode(reader, length) {
52927
+ if (!(reader instanceof $Reader))
52928
+ reader = $Reader.create(reader);
52929
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.privacy.dlp.v2.DataProfileFindingRecordLocation();
52930
+ while (reader.pos < end) {
52931
+ var tag = reader.uint32();
52932
+ switch (tag >>> 3) {
52933
+ case 1: {
52934
+ message.field = $root.google.privacy.dlp.v2.FieldId.decode(reader, reader.uint32());
52935
+ break;
52936
+ }
52937
+ default:
52938
+ reader.skipType(tag & 7);
52939
+ break;
52940
+ }
52941
+ }
52942
+ return message;
52943
+ };
52944
+
52945
+ /**
52946
+ * Decodes a DataProfileFindingRecordLocation message from the specified reader or buffer, length delimited.
52947
+ * @function decodeDelimited
52948
+ * @memberof google.privacy.dlp.v2.DataProfileFindingRecordLocation
52949
+ * @static
52950
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
52951
+ * @returns {google.privacy.dlp.v2.DataProfileFindingRecordLocation} DataProfileFindingRecordLocation
52952
+ * @throws {Error} If the payload is not a reader or valid buffer
52953
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
52954
+ */
52955
+ DataProfileFindingRecordLocation.decodeDelimited = function decodeDelimited(reader) {
52956
+ if (!(reader instanceof $Reader))
52957
+ reader = new $Reader(reader);
52958
+ return this.decode(reader, reader.uint32());
52959
+ };
52960
+
52961
+ /**
52962
+ * Verifies a DataProfileFindingRecordLocation message.
52963
+ * @function verify
52964
+ * @memberof google.privacy.dlp.v2.DataProfileFindingRecordLocation
52965
+ * @static
52966
+ * @param {Object.<string,*>} message Plain object to verify
52967
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
52968
+ */
52969
+ DataProfileFindingRecordLocation.verify = function verify(message) {
52970
+ if (typeof message !== "object" || message === null)
52971
+ return "object expected";
52972
+ if (message.field != null && message.hasOwnProperty("field")) {
52973
+ var error = $root.google.privacy.dlp.v2.FieldId.verify(message.field);
52974
+ if (error)
52975
+ return "field." + error;
52976
+ }
52977
+ return null;
52978
+ };
52979
+
52980
+ /**
52981
+ * Creates a DataProfileFindingRecordLocation message from a plain object. Also converts values to their respective internal types.
52982
+ * @function fromObject
52983
+ * @memberof google.privacy.dlp.v2.DataProfileFindingRecordLocation
52984
+ * @static
52985
+ * @param {Object.<string,*>} object Plain object
52986
+ * @returns {google.privacy.dlp.v2.DataProfileFindingRecordLocation} DataProfileFindingRecordLocation
52987
+ */
52988
+ DataProfileFindingRecordLocation.fromObject = function fromObject(object) {
52989
+ if (object instanceof $root.google.privacy.dlp.v2.DataProfileFindingRecordLocation)
52990
+ return object;
52991
+ var message = new $root.google.privacy.dlp.v2.DataProfileFindingRecordLocation();
52992
+ if (object.field != null) {
52993
+ if (typeof object.field !== "object")
52994
+ throw TypeError(".google.privacy.dlp.v2.DataProfileFindingRecordLocation.field: object expected");
52995
+ message.field = $root.google.privacy.dlp.v2.FieldId.fromObject(object.field);
52996
+ }
52997
+ return message;
52998
+ };
52999
+
53000
+ /**
53001
+ * Creates a plain object from a DataProfileFindingRecordLocation message. Also converts values to other types if specified.
53002
+ * @function toObject
53003
+ * @memberof google.privacy.dlp.v2.DataProfileFindingRecordLocation
53004
+ * @static
53005
+ * @param {google.privacy.dlp.v2.DataProfileFindingRecordLocation} message DataProfileFindingRecordLocation
53006
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
53007
+ * @returns {Object.<string,*>} Plain object
53008
+ */
53009
+ DataProfileFindingRecordLocation.toObject = function toObject(message, options) {
53010
+ if (!options)
53011
+ options = {};
53012
+ var object = {};
53013
+ if (options.defaults)
53014
+ object.field = null;
53015
+ if (message.field != null && message.hasOwnProperty("field"))
53016
+ object.field = $root.google.privacy.dlp.v2.FieldId.toObject(message.field, options);
53017
+ return object;
53018
+ };
53019
+
53020
+ /**
53021
+ * Converts this DataProfileFindingRecordLocation to JSON.
53022
+ * @function toJSON
53023
+ * @memberof google.privacy.dlp.v2.DataProfileFindingRecordLocation
53024
+ * @instance
53025
+ * @returns {Object.<string,*>} JSON object
53026
+ */
53027
+ DataProfileFindingRecordLocation.prototype.toJSON = function toJSON() {
53028
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
53029
+ };
53030
+
53031
+ /**
53032
+ * Gets the default type url for DataProfileFindingRecordLocation
53033
+ * @function getTypeUrl
53034
+ * @memberof google.privacy.dlp.v2.DataProfileFindingRecordLocation
53035
+ * @static
53036
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
53037
+ * @returns {string} The default type url
53038
+ */
53039
+ DataProfileFindingRecordLocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
53040
+ if (typeUrlPrefix === undefined) {
53041
+ typeUrlPrefix = "type.googleapis.com";
53042
+ }
53043
+ return typeUrlPrefix + "/google.privacy.dlp.v2.DataProfileFindingRecordLocation";
53044
+ };
53045
+
53046
+ return DataProfileFindingRecordLocation;
53047
+ })();
53048
+
52101
53049
  v2.DataProfileJobConfig = (function() {
52102
53050
 
52103
53051
  /**
@@ -80363,6 +81311,8 @@
80363
81311
  * @property {google.protobuf.ITimestamp|null} [profileLastGenerated] TableDataProfile profileLastGenerated
80364
81312
  * @property {Object.<string,string>|null} [resourceLabels] TableDataProfile resourceLabels
80365
81313
  * @property {google.protobuf.ITimestamp|null} [createTime] TableDataProfile createTime
81314
+ * @property {google.privacy.dlp.v2.IBigQueryTable|null} [sampleFindingsTable] TableDataProfile sampleFindingsTable
81315
+ * @property {Array.<google.privacy.dlp.v2.ITag>|null} [tags] TableDataProfile tags
80366
81316
  * @property {Array.<google.privacy.dlp.v2.IRelatedResource>|null} [relatedResources] TableDataProfile relatedResources
80367
81317
  */
80368
81318
 
@@ -80378,6 +81328,7 @@
80378
81328
  this.predictedInfoTypes = [];
80379
81329
  this.otherInfoTypes = [];
80380
81330
  this.resourceLabels = {};
81331
+ this.tags = [];
80381
81332
  this.relatedResources = [];
80382
81333
  if (properties)
80383
81334
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
@@ -80593,6 +81544,22 @@
80593
81544
  */
80594
81545
  TableDataProfile.prototype.createTime = null;
80595
81546
 
81547
+ /**
81548
+ * TableDataProfile sampleFindingsTable.
81549
+ * @member {google.privacy.dlp.v2.IBigQueryTable|null|undefined} sampleFindingsTable
81550
+ * @memberof google.privacy.dlp.v2.TableDataProfile
81551
+ * @instance
81552
+ */
81553
+ TableDataProfile.prototype.sampleFindingsTable = null;
81554
+
81555
+ /**
81556
+ * TableDataProfile tags.
81557
+ * @member {Array.<google.privacy.dlp.v2.ITag>} tags
81558
+ * @memberof google.privacy.dlp.v2.TableDataProfile
81559
+ * @instance
81560
+ */
81561
+ TableDataProfile.prototype.tags = $util.emptyArray;
81562
+
80596
81563
  /**
80597
81564
  * TableDataProfile relatedResources.
80598
81565
  * @member {Array.<google.privacy.dlp.v2.IRelatedResource>} relatedResources
@@ -80680,6 +81647,11 @@
80680
81647
  writer.uint32(/* id 29, wireType 2 =*/234).string(message.datasetLocation);
80681
81648
  if (message.dataSourceType != null && Object.hasOwnProperty.call(message, "dataSourceType"))
80682
81649
  $root.google.privacy.dlp.v2.DataSourceType.encode(message.dataSourceType, writer.uint32(/* id 36, wireType 2 =*/290).fork()).ldelim();
81650
+ if (message.sampleFindingsTable != null && Object.hasOwnProperty.call(message, "sampleFindingsTable"))
81651
+ $root.google.privacy.dlp.v2.BigQueryTable.encode(message.sampleFindingsTable, writer.uint32(/* id 37, wireType 2 =*/298).fork()).ldelim();
81652
+ if (message.tags != null && message.tags.length)
81653
+ for (var i = 0; i < message.tags.length; ++i)
81654
+ $root.google.privacy.dlp.v2.Tag.encode(message.tags[i], writer.uint32(/* id 39, wireType 2 =*/314).fork()).ldelim();
80683
81655
  if (message.relatedResources != null && message.relatedResources.length)
80684
81656
  for (var i = 0; i < message.relatedResources.length; ++i)
80685
81657
  $root.google.privacy.dlp.v2.RelatedResource.encode(message.relatedResources[i], writer.uint32(/* id 41, wireType 2 =*/330).fork()).ldelim();
@@ -80844,6 +81816,16 @@
80844
81816
  message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
80845
81817
  break;
80846
81818
  }
81819
+ case 37: {
81820
+ message.sampleFindingsTable = $root.google.privacy.dlp.v2.BigQueryTable.decode(reader, reader.uint32());
81821
+ break;
81822
+ }
81823
+ case 39: {
81824
+ if (!(message.tags && message.tags.length))
81825
+ message.tags = [];
81826
+ message.tags.push($root.google.privacy.dlp.v2.Tag.decode(reader, reader.uint32()));
81827
+ break;
81828
+ }
80847
81829
  case 41: {
80848
81830
  if (!(message.relatedResources && message.relatedResources.length))
80849
81831
  message.relatedResources = [];
@@ -81017,6 +81999,20 @@
81017
81999
  if (error)
81018
82000
  return "createTime." + error;
81019
82001
  }
82002
+ if (message.sampleFindingsTable != null && message.hasOwnProperty("sampleFindingsTable")) {
82003
+ var error = $root.google.privacy.dlp.v2.BigQueryTable.verify(message.sampleFindingsTable);
82004
+ if (error)
82005
+ return "sampleFindingsTable." + error;
82006
+ }
82007
+ if (message.tags != null && message.hasOwnProperty("tags")) {
82008
+ if (!Array.isArray(message.tags))
82009
+ return "tags: array expected";
82010
+ for (var i = 0; i < message.tags.length; ++i) {
82011
+ var error = $root.google.privacy.dlp.v2.Tag.verify(message.tags[i]);
82012
+ if (error)
82013
+ return "tags." + error;
82014
+ }
82015
+ }
81020
82016
  if (message.relatedResources != null && message.hasOwnProperty("relatedResources")) {
81021
82017
  if (!Array.isArray(message.relatedResources))
81022
82018
  return "relatedResources: array expected";
@@ -81227,6 +82223,21 @@
81227
82223
  throw TypeError(".google.privacy.dlp.v2.TableDataProfile.createTime: object expected");
81228
82224
  message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
81229
82225
  }
82226
+ if (object.sampleFindingsTable != null) {
82227
+ if (typeof object.sampleFindingsTable !== "object")
82228
+ throw TypeError(".google.privacy.dlp.v2.TableDataProfile.sampleFindingsTable: object expected");
82229
+ message.sampleFindingsTable = $root.google.privacy.dlp.v2.BigQueryTable.fromObject(object.sampleFindingsTable);
82230
+ }
82231
+ if (object.tags) {
82232
+ if (!Array.isArray(object.tags))
82233
+ throw TypeError(".google.privacy.dlp.v2.TableDataProfile.tags: array expected");
82234
+ message.tags = [];
82235
+ for (var i = 0; i < object.tags.length; ++i) {
82236
+ if (typeof object.tags[i] !== "object")
82237
+ throw TypeError(".google.privacy.dlp.v2.TableDataProfile.tags: object expected");
82238
+ message.tags[i] = $root.google.privacy.dlp.v2.Tag.fromObject(object.tags[i]);
82239
+ }
82240
+ }
81230
82241
  if (object.relatedResources) {
81231
82242
  if (!Array.isArray(object.relatedResources))
81232
82243
  throw TypeError(".google.privacy.dlp.v2.TableDataProfile.relatedResources: array expected");
@@ -81256,6 +82267,7 @@
81256
82267
  if (options.arrays || options.defaults) {
81257
82268
  object.predictedInfoTypes = [];
81258
82269
  object.otherInfoTypes = [];
82270
+ object.tags = [];
81259
82271
  object.relatedResources = [];
81260
82272
  }
81261
82273
  if (options.objects || options.defaults)
@@ -81300,6 +82312,7 @@
81300
82312
  object.tableId = "";
81301
82313
  object.datasetLocation = "";
81302
82314
  object.dataSourceType = null;
82315
+ object.sampleFindingsTable = null;
81303
82316
  }
81304
82317
  if (message.name != null && message.hasOwnProperty("name"))
81305
82318
  object.name = message.name;
@@ -81375,6 +82388,13 @@
81375
82388
  object.datasetLocation = message.datasetLocation;
81376
82389
  if (message.dataSourceType != null && message.hasOwnProperty("dataSourceType"))
81377
82390
  object.dataSourceType = $root.google.privacy.dlp.v2.DataSourceType.toObject(message.dataSourceType, options);
82391
+ if (message.sampleFindingsTable != null && message.hasOwnProperty("sampleFindingsTable"))
82392
+ object.sampleFindingsTable = $root.google.privacy.dlp.v2.BigQueryTable.toObject(message.sampleFindingsTable, options);
82393
+ if (message.tags && message.tags.length) {
82394
+ object.tags = [];
82395
+ for (var j = 0; j < message.tags.length; ++j)
82396
+ object.tags[j] = $root.google.privacy.dlp.v2.Tag.toObject(message.tags[j], options);
82397
+ }
81378
82398
  if (message.relatedResources && message.relatedResources.length) {
81379
82399
  object.relatedResources = [];
81380
82400
  for (var j = 0; j < message.relatedResources.length; ++j)
@@ -83210,7 +84230,9 @@
83210
84230
  * @property {Object.<string,google.privacy.dlp.v2.IValue>|null} [resourceAttributes] FileStoreDataProfile resourceAttributes
83211
84231
  * @property {Object.<string,string>|null} [resourceLabels] FileStoreDataProfile resourceLabels
83212
84232
  * @property {Array.<google.privacy.dlp.v2.IFileStoreInfoTypeSummary>|null} [fileStoreInfoTypeSummaries] FileStoreDataProfile fileStoreInfoTypeSummaries
84233
+ * @property {google.privacy.dlp.v2.IBigQueryTable|null} [sampleFindingsTable] FileStoreDataProfile sampleFindingsTable
83213
84234
  * @property {boolean|null} [fileStoreIsEmpty] FileStoreDataProfile fileStoreIsEmpty
84235
+ * @property {Array.<google.privacy.dlp.v2.ITag>|null} [tags] FileStoreDataProfile tags
83214
84236
  * @property {Array.<google.privacy.dlp.v2.IRelatedResource>|null} [relatedResources] FileStoreDataProfile relatedResources
83215
84237
  */
83216
84238
 
@@ -83228,6 +84250,7 @@
83228
84250
  this.resourceAttributes = {};
83229
84251
  this.resourceLabels = {};
83230
84252
  this.fileStoreInfoTypeSummaries = [];
84253
+ this.tags = [];
83231
84254
  this.relatedResources = [];
83232
84255
  if (properties)
83233
84256
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
@@ -83411,6 +84434,14 @@
83411
84434
  */
83412
84435
  FileStoreDataProfile.prototype.fileStoreInfoTypeSummaries = $util.emptyArray;
83413
84436
 
84437
+ /**
84438
+ * FileStoreDataProfile sampleFindingsTable.
84439
+ * @member {google.privacy.dlp.v2.IBigQueryTable|null|undefined} sampleFindingsTable
84440
+ * @memberof google.privacy.dlp.v2.FileStoreDataProfile
84441
+ * @instance
84442
+ */
84443
+ FileStoreDataProfile.prototype.sampleFindingsTable = null;
84444
+
83414
84445
  /**
83415
84446
  * FileStoreDataProfile fileStoreIsEmpty.
83416
84447
  * @member {boolean} fileStoreIsEmpty
@@ -83419,6 +84450,14 @@
83419
84450
  */
83420
84451
  FileStoreDataProfile.prototype.fileStoreIsEmpty = false;
83421
84452
 
84453
+ /**
84454
+ * FileStoreDataProfile tags.
84455
+ * @member {Array.<google.privacy.dlp.v2.ITag>} tags
84456
+ * @memberof google.privacy.dlp.v2.FileStoreDataProfile
84457
+ * @instance
84458
+ */
84459
+ FileStoreDataProfile.prototype.tags = $util.emptyArray;
84460
+
83422
84461
  /**
83423
84462
  * FileStoreDataProfile relatedResources.
83424
84463
  * @member {Array.<google.privacy.dlp.v2.IRelatedResource>} relatedResources
@@ -83500,10 +84539,15 @@
83500
84539
  if (message.fileStoreInfoTypeSummaries != null && message.fileStoreInfoTypeSummaries.length)
83501
84540
  for (var i = 0; i < message.fileStoreInfoTypeSummaries.length; ++i)
83502
84541
  $root.google.privacy.dlp.v2.FileStoreInfoTypeSummary.encode(message.fileStoreInfoTypeSummaries[i], writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
84542
+ if (message.sampleFindingsTable != null && Object.hasOwnProperty.call(message, "sampleFindingsTable"))
84543
+ $root.google.privacy.dlp.v2.BigQueryTable.encode(message.sampleFindingsTable, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
83503
84544
  if (message.fileStoreIsEmpty != null && Object.hasOwnProperty.call(message, "fileStoreIsEmpty"))
83504
84545
  writer.uint32(/* id 23, wireType 0 =*/184).bool(message.fileStoreIsEmpty);
83505
84546
  if (message.fullResource != null && Object.hasOwnProperty.call(message, "fullResource"))
83506
84547
  writer.uint32(/* id 24, wireType 2 =*/194).string(message.fullResource);
84548
+ if (message.tags != null && message.tags.length)
84549
+ for (var i = 0; i < message.tags.length; ++i)
84550
+ $root.google.privacy.dlp.v2.Tag.encode(message.tags[i], writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim();
83507
84551
  if (message.relatedResources != null && message.relatedResources.length)
83508
84552
  for (var i = 0; i < message.relatedResources.length; ++i)
83509
84553
  $root.google.privacy.dlp.v2.RelatedResource.encode(message.relatedResources[i], writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
@@ -83673,10 +84717,20 @@
83673
84717
  message.fileStoreInfoTypeSummaries.push($root.google.privacy.dlp.v2.FileStoreInfoTypeSummary.decode(reader, reader.uint32()));
83674
84718
  break;
83675
84719
  }
84720
+ case 22: {
84721
+ message.sampleFindingsTable = $root.google.privacy.dlp.v2.BigQueryTable.decode(reader, reader.uint32());
84722
+ break;
84723
+ }
83676
84724
  case 23: {
83677
84725
  message.fileStoreIsEmpty = reader.bool();
83678
84726
  break;
83679
84727
  }
84728
+ case 25: {
84729
+ if (!(message.tags && message.tags.length))
84730
+ message.tags = [];
84731
+ message.tags.push($root.google.privacy.dlp.v2.Tag.decode(reader, reader.uint32()));
84732
+ break;
84733
+ }
83680
84734
  case 26: {
83681
84735
  if (!(message.relatedResources && message.relatedResources.length))
83682
84736
  message.relatedResources = [];
@@ -83841,9 +84895,23 @@
83841
84895
  return "fileStoreInfoTypeSummaries." + error;
83842
84896
  }
83843
84897
  }
84898
+ if (message.sampleFindingsTable != null && message.hasOwnProperty("sampleFindingsTable")) {
84899
+ var error = $root.google.privacy.dlp.v2.BigQueryTable.verify(message.sampleFindingsTable);
84900
+ if (error)
84901
+ return "sampleFindingsTable." + error;
84902
+ }
83844
84903
  if (message.fileStoreIsEmpty != null && message.hasOwnProperty("fileStoreIsEmpty"))
83845
84904
  if (typeof message.fileStoreIsEmpty !== "boolean")
83846
84905
  return "fileStoreIsEmpty: boolean expected";
84906
+ if (message.tags != null && message.hasOwnProperty("tags")) {
84907
+ if (!Array.isArray(message.tags))
84908
+ return "tags: array expected";
84909
+ for (var i = 0; i < message.tags.length; ++i) {
84910
+ var error = $root.google.privacy.dlp.v2.Tag.verify(message.tags[i]);
84911
+ if (error)
84912
+ return "tags." + error;
84913
+ }
84914
+ }
83847
84915
  if (message.relatedResources != null && message.hasOwnProperty("relatedResources")) {
83848
84916
  if (!Array.isArray(message.relatedResources))
83849
84917
  return "relatedResources: array expected";
@@ -84010,8 +85078,23 @@
84010
85078
  message.fileStoreInfoTypeSummaries[i] = $root.google.privacy.dlp.v2.FileStoreInfoTypeSummary.fromObject(object.fileStoreInfoTypeSummaries[i]);
84011
85079
  }
84012
85080
  }
85081
+ if (object.sampleFindingsTable != null) {
85082
+ if (typeof object.sampleFindingsTable !== "object")
85083
+ throw TypeError(".google.privacy.dlp.v2.FileStoreDataProfile.sampleFindingsTable: object expected");
85084
+ message.sampleFindingsTable = $root.google.privacy.dlp.v2.BigQueryTable.fromObject(object.sampleFindingsTable);
85085
+ }
84013
85086
  if (object.fileStoreIsEmpty != null)
84014
85087
  message.fileStoreIsEmpty = Boolean(object.fileStoreIsEmpty);
85088
+ if (object.tags) {
85089
+ if (!Array.isArray(object.tags))
85090
+ throw TypeError(".google.privacy.dlp.v2.FileStoreDataProfile.tags: array expected");
85091
+ message.tags = [];
85092
+ for (var i = 0; i < object.tags.length; ++i) {
85093
+ if (typeof object.tags[i] !== "object")
85094
+ throw TypeError(".google.privacy.dlp.v2.FileStoreDataProfile.tags: object expected");
85095
+ message.tags[i] = $root.google.privacy.dlp.v2.Tag.fromObject(object.tags[i]);
85096
+ }
85097
+ }
84015
85098
  if (object.relatedResources) {
84016
85099
  if (!Array.isArray(object.relatedResources))
84017
85100
  throw TypeError(".google.privacy.dlp.v2.FileStoreDataProfile.relatedResources: array expected");
@@ -84042,6 +85125,7 @@
84042
85125
  object.fileClusterSummaries = [];
84043
85126
  object.dataStorageLocations = [];
84044
85127
  object.fileStoreInfoTypeSummaries = [];
85128
+ object.tags = [];
84045
85129
  object.relatedResources = [];
84046
85130
  }
84047
85131
  if (options.objects || options.defaults) {
@@ -84065,6 +85149,7 @@
84065
85149
  object.createTime = null;
84066
85150
  object.lastModifiedTime = null;
84067
85151
  object.locationType = "";
85152
+ object.sampleFindingsTable = null;
84068
85153
  object.fileStoreIsEmpty = false;
84069
85154
  object.fullResource = "";
84070
85155
  }
@@ -84126,10 +85211,17 @@
84126
85211
  for (var j = 0; j < message.fileStoreInfoTypeSummaries.length; ++j)
84127
85212
  object.fileStoreInfoTypeSummaries[j] = $root.google.privacy.dlp.v2.FileStoreInfoTypeSummary.toObject(message.fileStoreInfoTypeSummaries[j], options);
84128
85213
  }
85214
+ if (message.sampleFindingsTable != null && message.hasOwnProperty("sampleFindingsTable"))
85215
+ object.sampleFindingsTable = $root.google.privacy.dlp.v2.BigQueryTable.toObject(message.sampleFindingsTable, options);
84129
85216
  if (message.fileStoreIsEmpty != null && message.hasOwnProperty("fileStoreIsEmpty"))
84130
85217
  object.fileStoreIsEmpty = message.fileStoreIsEmpty;
84131
85218
  if (message.fullResource != null && message.hasOwnProperty("fullResource"))
84132
85219
  object.fullResource = message.fullResource;
85220
+ if (message.tags && message.tags.length) {
85221
+ object.tags = [];
85222
+ for (var j = 0; j < message.tags.length; ++j)
85223
+ object.tags[j] = $root.google.privacy.dlp.v2.Tag.toObject(message.tags[j], options);
85224
+ }
84133
85225
  if (message.relatedResources && message.relatedResources.length) {
84134
85226
  object.relatedResources = [];
84135
85227
  for (var j = 0; j < message.relatedResources.length; ++j)
@@ -84183,6 +85275,256 @@
84183
85275
  return FileStoreDataProfile;
84184
85276
  })();
84185
85277
 
85278
+ v2.Tag = (function() {
85279
+
85280
+ /**
85281
+ * Properties of a Tag.
85282
+ * @memberof google.privacy.dlp.v2
85283
+ * @interface ITag
85284
+ * @property {string|null} [namespacedTagValue] Tag namespacedTagValue
85285
+ * @property {string|null} [key] Tag key
85286
+ * @property {string|null} [value] Tag value
85287
+ */
85288
+
85289
+ /**
85290
+ * Constructs a new Tag.
85291
+ * @memberof google.privacy.dlp.v2
85292
+ * @classdesc Represents a Tag.
85293
+ * @implements ITag
85294
+ * @constructor
85295
+ * @param {google.privacy.dlp.v2.ITag=} [properties] Properties to set
85296
+ */
85297
+ function Tag(properties) {
85298
+ if (properties)
85299
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
85300
+ if (properties[keys[i]] != null)
85301
+ this[keys[i]] = properties[keys[i]];
85302
+ }
85303
+
85304
+ /**
85305
+ * Tag namespacedTagValue.
85306
+ * @member {string} namespacedTagValue
85307
+ * @memberof google.privacy.dlp.v2.Tag
85308
+ * @instance
85309
+ */
85310
+ Tag.prototype.namespacedTagValue = "";
85311
+
85312
+ /**
85313
+ * Tag key.
85314
+ * @member {string} key
85315
+ * @memberof google.privacy.dlp.v2.Tag
85316
+ * @instance
85317
+ */
85318
+ Tag.prototype.key = "";
85319
+
85320
+ /**
85321
+ * Tag value.
85322
+ * @member {string} value
85323
+ * @memberof google.privacy.dlp.v2.Tag
85324
+ * @instance
85325
+ */
85326
+ Tag.prototype.value = "";
85327
+
85328
+ /**
85329
+ * Creates a new Tag instance using the specified properties.
85330
+ * @function create
85331
+ * @memberof google.privacy.dlp.v2.Tag
85332
+ * @static
85333
+ * @param {google.privacy.dlp.v2.ITag=} [properties] Properties to set
85334
+ * @returns {google.privacy.dlp.v2.Tag} Tag instance
85335
+ */
85336
+ Tag.create = function create(properties) {
85337
+ return new Tag(properties);
85338
+ };
85339
+
85340
+ /**
85341
+ * Encodes the specified Tag message. Does not implicitly {@link google.privacy.dlp.v2.Tag.verify|verify} messages.
85342
+ * @function encode
85343
+ * @memberof google.privacy.dlp.v2.Tag
85344
+ * @static
85345
+ * @param {google.privacy.dlp.v2.ITag} message Tag message or plain object to encode
85346
+ * @param {$protobuf.Writer} [writer] Writer to encode to
85347
+ * @returns {$protobuf.Writer} Writer
85348
+ */
85349
+ Tag.encode = function encode(message, writer) {
85350
+ if (!writer)
85351
+ writer = $Writer.create();
85352
+ if (message.namespacedTagValue != null && Object.hasOwnProperty.call(message, "namespacedTagValue"))
85353
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.namespacedTagValue);
85354
+ if (message.key != null && Object.hasOwnProperty.call(message, "key"))
85355
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.key);
85356
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
85357
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.value);
85358
+ return writer;
85359
+ };
85360
+
85361
+ /**
85362
+ * Encodes the specified Tag message, length delimited. Does not implicitly {@link google.privacy.dlp.v2.Tag.verify|verify} messages.
85363
+ * @function encodeDelimited
85364
+ * @memberof google.privacy.dlp.v2.Tag
85365
+ * @static
85366
+ * @param {google.privacy.dlp.v2.ITag} message Tag message or plain object to encode
85367
+ * @param {$protobuf.Writer} [writer] Writer to encode to
85368
+ * @returns {$protobuf.Writer} Writer
85369
+ */
85370
+ Tag.encodeDelimited = function encodeDelimited(message, writer) {
85371
+ return this.encode(message, writer).ldelim();
85372
+ };
85373
+
85374
+ /**
85375
+ * Decodes a Tag message from the specified reader or buffer.
85376
+ * @function decode
85377
+ * @memberof google.privacy.dlp.v2.Tag
85378
+ * @static
85379
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
85380
+ * @param {number} [length] Message length if known beforehand
85381
+ * @returns {google.privacy.dlp.v2.Tag} Tag
85382
+ * @throws {Error} If the payload is not a reader or valid buffer
85383
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
85384
+ */
85385
+ Tag.decode = function decode(reader, length) {
85386
+ if (!(reader instanceof $Reader))
85387
+ reader = $Reader.create(reader);
85388
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.privacy.dlp.v2.Tag();
85389
+ while (reader.pos < end) {
85390
+ var tag = reader.uint32();
85391
+ switch (tag >>> 3) {
85392
+ case 1: {
85393
+ message.namespacedTagValue = reader.string();
85394
+ break;
85395
+ }
85396
+ case 2: {
85397
+ message.key = reader.string();
85398
+ break;
85399
+ }
85400
+ case 3: {
85401
+ message.value = reader.string();
85402
+ break;
85403
+ }
85404
+ default:
85405
+ reader.skipType(tag & 7);
85406
+ break;
85407
+ }
85408
+ }
85409
+ return message;
85410
+ };
85411
+
85412
+ /**
85413
+ * Decodes a Tag message from the specified reader or buffer, length delimited.
85414
+ * @function decodeDelimited
85415
+ * @memberof google.privacy.dlp.v2.Tag
85416
+ * @static
85417
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
85418
+ * @returns {google.privacy.dlp.v2.Tag} Tag
85419
+ * @throws {Error} If the payload is not a reader or valid buffer
85420
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
85421
+ */
85422
+ Tag.decodeDelimited = function decodeDelimited(reader) {
85423
+ if (!(reader instanceof $Reader))
85424
+ reader = new $Reader(reader);
85425
+ return this.decode(reader, reader.uint32());
85426
+ };
85427
+
85428
+ /**
85429
+ * Verifies a Tag message.
85430
+ * @function verify
85431
+ * @memberof google.privacy.dlp.v2.Tag
85432
+ * @static
85433
+ * @param {Object.<string,*>} message Plain object to verify
85434
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
85435
+ */
85436
+ Tag.verify = function verify(message) {
85437
+ if (typeof message !== "object" || message === null)
85438
+ return "object expected";
85439
+ if (message.namespacedTagValue != null && message.hasOwnProperty("namespacedTagValue"))
85440
+ if (!$util.isString(message.namespacedTagValue))
85441
+ return "namespacedTagValue: string expected";
85442
+ if (message.key != null && message.hasOwnProperty("key"))
85443
+ if (!$util.isString(message.key))
85444
+ return "key: string expected";
85445
+ if (message.value != null && message.hasOwnProperty("value"))
85446
+ if (!$util.isString(message.value))
85447
+ return "value: string expected";
85448
+ return null;
85449
+ };
85450
+
85451
+ /**
85452
+ * Creates a Tag message from a plain object. Also converts values to their respective internal types.
85453
+ * @function fromObject
85454
+ * @memberof google.privacy.dlp.v2.Tag
85455
+ * @static
85456
+ * @param {Object.<string,*>} object Plain object
85457
+ * @returns {google.privacy.dlp.v2.Tag} Tag
85458
+ */
85459
+ Tag.fromObject = function fromObject(object) {
85460
+ if (object instanceof $root.google.privacy.dlp.v2.Tag)
85461
+ return object;
85462
+ var message = new $root.google.privacy.dlp.v2.Tag();
85463
+ if (object.namespacedTagValue != null)
85464
+ message.namespacedTagValue = String(object.namespacedTagValue);
85465
+ if (object.key != null)
85466
+ message.key = String(object.key);
85467
+ if (object.value != null)
85468
+ message.value = String(object.value);
85469
+ return message;
85470
+ };
85471
+
85472
+ /**
85473
+ * Creates a plain object from a Tag message. Also converts values to other types if specified.
85474
+ * @function toObject
85475
+ * @memberof google.privacy.dlp.v2.Tag
85476
+ * @static
85477
+ * @param {google.privacy.dlp.v2.Tag} message Tag
85478
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
85479
+ * @returns {Object.<string,*>} Plain object
85480
+ */
85481
+ Tag.toObject = function toObject(message, options) {
85482
+ if (!options)
85483
+ options = {};
85484
+ var object = {};
85485
+ if (options.defaults) {
85486
+ object.namespacedTagValue = "";
85487
+ object.key = "";
85488
+ object.value = "";
85489
+ }
85490
+ if (message.namespacedTagValue != null && message.hasOwnProperty("namespacedTagValue"))
85491
+ object.namespacedTagValue = message.namespacedTagValue;
85492
+ if (message.key != null && message.hasOwnProperty("key"))
85493
+ object.key = message.key;
85494
+ if (message.value != null && message.hasOwnProperty("value"))
85495
+ object.value = message.value;
85496
+ return object;
85497
+ };
85498
+
85499
+ /**
85500
+ * Converts this Tag to JSON.
85501
+ * @function toJSON
85502
+ * @memberof google.privacy.dlp.v2.Tag
85503
+ * @instance
85504
+ * @returns {Object.<string,*>} JSON object
85505
+ */
85506
+ Tag.prototype.toJSON = function toJSON() {
85507
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
85508
+ };
85509
+
85510
+ /**
85511
+ * Gets the default type url for Tag
85512
+ * @function getTypeUrl
85513
+ * @memberof google.privacy.dlp.v2.Tag
85514
+ * @static
85515
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
85516
+ * @returns {string} The default type url
85517
+ */
85518
+ Tag.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
85519
+ if (typeUrlPrefix === undefined) {
85520
+ typeUrlPrefix = "type.googleapis.com";
85521
+ }
85522
+ return typeUrlPrefix + "/google.privacy.dlp.v2.Tag";
85523
+ };
85524
+
85525
+ return Tag;
85526
+ })();
85527
+
84186
85528
  v2.RelatedResource = (function() {
84187
85529
 
84188
85530
  /**