@google-cloud/dlp 3.2.1 → 3.3.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.
@@ -4509,6 +4509,7 @@
4509
4509
  * @property {Object.<string,string>|null} [labels] Finding labels
4510
4510
  * @property {google.protobuf.ITimestamp|null} [jobCreateTime] Finding jobCreateTime
4511
4511
  * @property {string|null} [jobName] Finding jobName
4512
+ * @property {string|null} [findingId] Finding findingId
4512
4513
  */
4513
4514
 
4514
4515
  /**
@@ -4623,6 +4624,14 @@
4623
4624
  */
4624
4625
  Finding.prototype.jobName = "";
4625
4626
 
4627
+ /**
4628
+ * Finding findingId.
4629
+ * @member {string} findingId
4630
+ * @memberof google.privacy.dlp.v2.Finding
4631
+ * @instance
4632
+ */
4633
+ Finding.prototype.findingId = "";
4634
+
4626
4635
  /**
4627
4636
  * Creates a new Finding instance using the specified properties.
4628
4637
  * @function create
@@ -4672,6 +4681,8 @@
4672
4681
  writer.uint32(/* id 13, wireType 2 =*/106).string(message.jobName);
4673
4682
  if (message.name != null && Object.hasOwnProperty.call(message, "name"))
4674
4683
  writer.uint32(/* id 14, wireType 2 =*/114).string(message.name);
4684
+ if (message.findingId != null && Object.hasOwnProperty.call(message, "findingId"))
4685
+ writer.uint32(/* id 15, wireType 2 =*/122).string(message.findingId);
4675
4686
  return writer;
4676
4687
  };
4677
4688
 
@@ -4761,6 +4772,9 @@
4761
4772
  case 13:
4762
4773
  message.jobName = reader.string();
4763
4774
  break;
4775
+ case 15:
4776
+ message.findingId = reader.string();
4777
+ break;
4764
4778
  default:
4765
4779
  reader.skipType(tag & 7);
4766
4780
  break;
@@ -4856,6 +4870,9 @@
4856
4870
  if (message.jobName != null && message.hasOwnProperty("jobName"))
4857
4871
  if (!$util.isString(message.jobName))
4858
4872
  return "jobName: string expected";
4873
+ if (message.findingId != null && message.hasOwnProperty("findingId"))
4874
+ if (!$util.isString(message.findingId))
4875
+ return "findingId: string expected";
4859
4876
  return null;
4860
4877
  };
4861
4878
 
@@ -4939,6 +4956,8 @@
4939
4956
  }
4940
4957
  if (object.jobName != null)
4941
4958
  message.jobName = String(object.jobName);
4959
+ if (object.findingId != null)
4960
+ message.findingId = String(object.findingId);
4942
4961
  return message;
4943
4962
  };
4944
4963
 
@@ -4969,6 +4988,7 @@
4969
4988
  object.jobCreateTime = null;
4970
4989
  object.jobName = "";
4971
4990
  object.name = "";
4991
+ object.findingId = "";
4972
4992
  }
4973
4993
  if (message.quote != null && message.hasOwnProperty("quote"))
4974
4994
  object.quote = message.quote;
@@ -4998,6 +5018,8 @@
4998
5018
  object.jobName = message.jobName;
4999
5019
  if (message.name != null && message.hasOwnProperty("name"))
5000
5020
  object.name = message.name;
5021
+ if (message.findingId != null && message.hasOwnProperty("findingId"))
5022
+ object.findingId = message.findingId;
5001
5023
  return object;
5002
5024
  };
5003
5025
 
@@ -23391,6 +23413,7 @@
23391
23413
  * @property {google.privacy.dlp.v2.ICryptoHashConfig|null} [cryptoHashConfig] PrimitiveTransformation cryptoHashConfig
23392
23414
  * @property {google.privacy.dlp.v2.IDateShiftConfig|null} [dateShiftConfig] PrimitiveTransformation dateShiftConfig
23393
23415
  * @property {google.privacy.dlp.v2.ICryptoDeterministicConfig|null} [cryptoDeterministicConfig] PrimitiveTransformation cryptoDeterministicConfig
23416
+ * @property {google.privacy.dlp.v2.IReplaceDictionaryConfig|null} [replaceDictionaryConfig] PrimitiveTransformation replaceDictionaryConfig
23394
23417
  */
23395
23418
 
23396
23419
  /**
@@ -23496,17 +23519,25 @@
23496
23519
  */
23497
23520
  PrimitiveTransformation.prototype.cryptoDeterministicConfig = null;
23498
23521
 
23522
+ /**
23523
+ * PrimitiveTransformation replaceDictionaryConfig.
23524
+ * @member {google.privacy.dlp.v2.IReplaceDictionaryConfig|null|undefined} replaceDictionaryConfig
23525
+ * @memberof google.privacy.dlp.v2.PrimitiveTransformation
23526
+ * @instance
23527
+ */
23528
+ PrimitiveTransformation.prototype.replaceDictionaryConfig = null;
23529
+
23499
23530
  // OneOf field names bound to virtual getters and setters
23500
23531
  var $oneOfFields;
23501
23532
 
23502
23533
  /**
23503
23534
  * PrimitiveTransformation transformation.
23504
- * @member {"replaceConfig"|"redactConfig"|"characterMaskConfig"|"cryptoReplaceFfxFpeConfig"|"fixedSizeBucketingConfig"|"bucketingConfig"|"replaceWithInfoTypeConfig"|"timePartConfig"|"cryptoHashConfig"|"dateShiftConfig"|"cryptoDeterministicConfig"|undefined} transformation
23535
+ * @member {"replaceConfig"|"redactConfig"|"characterMaskConfig"|"cryptoReplaceFfxFpeConfig"|"fixedSizeBucketingConfig"|"bucketingConfig"|"replaceWithInfoTypeConfig"|"timePartConfig"|"cryptoHashConfig"|"dateShiftConfig"|"cryptoDeterministicConfig"|"replaceDictionaryConfig"|undefined} transformation
23505
23536
  * @memberof google.privacy.dlp.v2.PrimitiveTransformation
23506
23537
  * @instance
23507
23538
  */
23508
23539
  Object.defineProperty(PrimitiveTransformation.prototype, "transformation", {
23509
- get: $util.oneOfGetter($oneOfFields = ["replaceConfig", "redactConfig", "characterMaskConfig", "cryptoReplaceFfxFpeConfig", "fixedSizeBucketingConfig", "bucketingConfig", "replaceWithInfoTypeConfig", "timePartConfig", "cryptoHashConfig", "dateShiftConfig", "cryptoDeterministicConfig"]),
23540
+ get: $util.oneOfGetter($oneOfFields = ["replaceConfig", "redactConfig", "characterMaskConfig", "cryptoReplaceFfxFpeConfig", "fixedSizeBucketingConfig", "bucketingConfig", "replaceWithInfoTypeConfig", "timePartConfig", "cryptoHashConfig", "dateShiftConfig", "cryptoDeterministicConfig", "replaceDictionaryConfig"]),
23510
23541
  set: $util.oneOfSetter($oneOfFields)
23511
23542
  });
23512
23543
 
@@ -23556,6 +23587,8 @@
23556
23587
  $root.google.privacy.dlp.v2.DateShiftConfig.encode(message.dateShiftConfig, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
23557
23588
  if (message.cryptoDeterministicConfig != null && Object.hasOwnProperty.call(message, "cryptoDeterministicConfig"))
23558
23589
  $root.google.privacy.dlp.v2.CryptoDeterministicConfig.encode(message.cryptoDeterministicConfig, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
23590
+ if (message.replaceDictionaryConfig != null && Object.hasOwnProperty.call(message, "replaceDictionaryConfig"))
23591
+ $root.google.privacy.dlp.v2.ReplaceDictionaryConfig.encode(message.replaceDictionaryConfig, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
23559
23592
  return writer;
23560
23593
  };
23561
23594
 
@@ -23623,6 +23656,9 @@
23623
23656
  case 12:
23624
23657
  message.cryptoDeterministicConfig = $root.google.privacy.dlp.v2.CryptoDeterministicConfig.decode(reader, reader.uint32());
23625
23658
  break;
23659
+ case 13:
23660
+ message.replaceDictionaryConfig = $root.google.privacy.dlp.v2.ReplaceDictionaryConfig.decode(reader, reader.uint32());
23661
+ break;
23626
23662
  default:
23627
23663
  reader.skipType(tag & 7);
23628
23664
  break;
@@ -23767,6 +23803,16 @@
23767
23803
  return "cryptoDeterministicConfig." + error;
23768
23804
  }
23769
23805
  }
23806
+ if (message.replaceDictionaryConfig != null && message.hasOwnProperty("replaceDictionaryConfig")) {
23807
+ if (properties.transformation === 1)
23808
+ return "transformation: multiple values";
23809
+ properties.transformation = 1;
23810
+ {
23811
+ var error = $root.google.privacy.dlp.v2.ReplaceDictionaryConfig.verify(message.replaceDictionaryConfig);
23812
+ if (error)
23813
+ return "replaceDictionaryConfig." + error;
23814
+ }
23815
+ }
23770
23816
  return null;
23771
23817
  };
23772
23818
 
@@ -23837,6 +23883,11 @@
23837
23883
  throw TypeError(".google.privacy.dlp.v2.PrimitiveTransformation.cryptoDeterministicConfig: object expected");
23838
23884
  message.cryptoDeterministicConfig = $root.google.privacy.dlp.v2.CryptoDeterministicConfig.fromObject(object.cryptoDeterministicConfig);
23839
23885
  }
23886
+ if (object.replaceDictionaryConfig != null) {
23887
+ if (typeof object.replaceDictionaryConfig !== "object")
23888
+ throw TypeError(".google.privacy.dlp.v2.PrimitiveTransformation.replaceDictionaryConfig: object expected");
23889
+ message.replaceDictionaryConfig = $root.google.privacy.dlp.v2.ReplaceDictionaryConfig.fromObject(object.replaceDictionaryConfig);
23890
+ }
23840
23891
  return message;
23841
23892
  };
23842
23893
 
@@ -23908,6 +23959,11 @@
23908
23959
  if (options.oneofs)
23909
23960
  object.transformation = "cryptoDeterministicConfig";
23910
23961
  }
23962
+ if (message.replaceDictionaryConfig != null && message.hasOwnProperty("replaceDictionaryConfig")) {
23963
+ object.replaceDictionaryConfig = $root.google.privacy.dlp.v2.ReplaceDictionaryConfig.toObject(message.replaceDictionaryConfig, options);
23964
+ if (options.oneofs)
23965
+ object.transformation = "replaceDictionaryConfig";
23966
+ }
23911
23967
  return object;
23912
23968
  };
23913
23969
 
@@ -24805,6 +24861,217 @@
24805
24861
  return ReplaceValueConfig;
24806
24862
  })();
24807
24863
 
24864
+ v2.ReplaceDictionaryConfig = (function() {
24865
+
24866
+ /**
24867
+ * Properties of a ReplaceDictionaryConfig.
24868
+ * @memberof google.privacy.dlp.v2
24869
+ * @interface IReplaceDictionaryConfig
24870
+ * @property {google.privacy.dlp.v2.CustomInfoType.Dictionary.IWordList|null} [wordList] ReplaceDictionaryConfig wordList
24871
+ */
24872
+
24873
+ /**
24874
+ * Constructs a new ReplaceDictionaryConfig.
24875
+ * @memberof google.privacy.dlp.v2
24876
+ * @classdesc Represents a ReplaceDictionaryConfig.
24877
+ * @implements IReplaceDictionaryConfig
24878
+ * @constructor
24879
+ * @param {google.privacy.dlp.v2.IReplaceDictionaryConfig=} [properties] Properties to set
24880
+ */
24881
+ function ReplaceDictionaryConfig(properties) {
24882
+ if (properties)
24883
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
24884
+ if (properties[keys[i]] != null)
24885
+ this[keys[i]] = properties[keys[i]];
24886
+ }
24887
+
24888
+ /**
24889
+ * ReplaceDictionaryConfig wordList.
24890
+ * @member {google.privacy.dlp.v2.CustomInfoType.Dictionary.IWordList|null|undefined} wordList
24891
+ * @memberof google.privacy.dlp.v2.ReplaceDictionaryConfig
24892
+ * @instance
24893
+ */
24894
+ ReplaceDictionaryConfig.prototype.wordList = null;
24895
+
24896
+ // OneOf field names bound to virtual getters and setters
24897
+ var $oneOfFields;
24898
+
24899
+ /**
24900
+ * ReplaceDictionaryConfig type.
24901
+ * @member {"wordList"|undefined} type
24902
+ * @memberof google.privacy.dlp.v2.ReplaceDictionaryConfig
24903
+ * @instance
24904
+ */
24905
+ Object.defineProperty(ReplaceDictionaryConfig.prototype, "type", {
24906
+ get: $util.oneOfGetter($oneOfFields = ["wordList"]),
24907
+ set: $util.oneOfSetter($oneOfFields)
24908
+ });
24909
+
24910
+ /**
24911
+ * Creates a new ReplaceDictionaryConfig instance using the specified properties.
24912
+ * @function create
24913
+ * @memberof google.privacy.dlp.v2.ReplaceDictionaryConfig
24914
+ * @static
24915
+ * @param {google.privacy.dlp.v2.IReplaceDictionaryConfig=} [properties] Properties to set
24916
+ * @returns {google.privacy.dlp.v2.ReplaceDictionaryConfig} ReplaceDictionaryConfig instance
24917
+ */
24918
+ ReplaceDictionaryConfig.create = function create(properties) {
24919
+ return new ReplaceDictionaryConfig(properties);
24920
+ };
24921
+
24922
+ /**
24923
+ * Encodes the specified ReplaceDictionaryConfig message. Does not implicitly {@link google.privacy.dlp.v2.ReplaceDictionaryConfig.verify|verify} messages.
24924
+ * @function encode
24925
+ * @memberof google.privacy.dlp.v2.ReplaceDictionaryConfig
24926
+ * @static
24927
+ * @param {google.privacy.dlp.v2.IReplaceDictionaryConfig} message ReplaceDictionaryConfig message or plain object to encode
24928
+ * @param {$protobuf.Writer} [writer] Writer to encode to
24929
+ * @returns {$protobuf.Writer} Writer
24930
+ */
24931
+ ReplaceDictionaryConfig.encode = function encode(message, writer) {
24932
+ if (!writer)
24933
+ writer = $Writer.create();
24934
+ if (message.wordList != null && Object.hasOwnProperty.call(message, "wordList"))
24935
+ $root.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList.encode(message.wordList, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
24936
+ return writer;
24937
+ };
24938
+
24939
+ /**
24940
+ * Encodes the specified ReplaceDictionaryConfig message, length delimited. Does not implicitly {@link google.privacy.dlp.v2.ReplaceDictionaryConfig.verify|verify} messages.
24941
+ * @function encodeDelimited
24942
+ * @memberof google.privacy.dlp.v2.ReplaceDictionaryConfig
24943
+ * @static
24944
+ * @param {google.privacy.dlp.v2.IReplaceDictionaryConfig} message ReplaceDictionaryConfig message or plain object to encode
24945
+ * @param {$protobuf.Writer} [writer] Writer to encode to
24946
+ * @returns {$protobuf.Writer} Writer
24947
+ */
24948
+ ReplaceDictionaryConfig.encodeDelimited = function encodeDelimited(message, writer) {
24949
+ return this.encode(message, writer).ldelim();
24950
+ };
24951
+
24952
+ /**
24953
+ * Decodes a ReplaceDictionaryConfig message from the specified reader or buffer.
24954
+ * @function decode
24955
+ * @memberof google.privacy.dlp.v2.ReplaceDictionaryConfig
24956
+ * @static
24957
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
24958
+ * @param {number} [length] Message length if known beforehand
24959
+ * @returns {google.privacy.dlp.v2.ReplaceDictionaryConfig} ReplaceDictionaryConfig
24960
+ * @throws {Error} If the payload is not a reader or valid buffer
24961
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
24962
+ */
24963
+ ReplaceDictionaryConfig.decode = function decode(reader, length) {
24964
+ if (!(reader instanceof $Reader))
24965
+ reader = $Reader.create(reader);
24966
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.privacy.dlp.v2.ReplaceDictionaryConfig();
24967
+ while (reader.pos < end) {
24968
+ var tag = reader.uint32();
24969
+ switch (tag >>> 3) {
24970
+ case 1:
24971
+ message.wordList = $root.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList.decode(reader, reader.uint32());
24972
+ break;
24973
+ default:
24974
+ reader.skipType(tag & 7);
24975
+ break;
24976
+ }
24977
+ }
24978
+ return message;
24979
+ };
24980
+
24981
+ /**
24982
+ * Decodes a ReplaceDictionaryConfig message from the specified reader or buffer, length delimited.
24983
+ * @function decodeDelimited
24984
+ * @memberof google.privacy.dlp.v2.ReplaceDictionaryConfig
24985
+ * @static
24986
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
24987
+ * @returns {google.privacy.dlp.v2.ReplaceDictionaryConfig} ReplaceDictionaryConfig
24988
+ * @throws {Error} If the payload is not a reader or valid buffer
24989
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
24990
+ */
24991
+ ReplaceDictionaryConfig.decodeDelimited = function decodeDelimited(reader) {
24992
+ if (!(reader instanceof $Reader))
24993
+ reader = new $Reader(reader);
24994
+ return this.decode(reader, reader.uint32());
24995
+ };
24996
+
24997
+ /**
24998
+ * Verifies a ReplaceDictionaryConfig message.
24999
+ * @function verify
25000
+ * @memberof google.privacy.dlp.v2.ReplaceDictionaryConfig
25001
+ * @static
25002
+ * @param {Object.<string,*>} message Plain object to verify
25003
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
25004
+ */
25005
+ ReplaceDictionaryConfig.verify = function verify(message) {
25006
+ if (typeof message !== "object" || message === null)
25007
+ return "object expected";
25008
+ var properties = {};
25009
+ if (message.wordList != null && message.hasOwnProperty("wordList")) {
25010
+ properties.type = 1;
25011
+ {
25012
+ var error = $root.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList.verify(message.wordList);
25013
+ if (error)
25014
+ return "wordList." + error;
25015
+ }
25016
+ }
25017
+ return null;
25018
+ };
25019
+
25020
+ /**
25021
+ * Creates a ReplaceDictionaryConfig message from a plain object. Also converts values to their respective internal types.
25022
+ * @function fromObject
25023
+ * @memberof google.privacy.dlp.v2.ReplaceDictionaryConfig
25024
+ * @static
25025
+ * @param {Object.<string,*>} object Plain object
25026
+ * @returns {google.privacy.dlp.v2.ReplaceDictionaryConfig} ReplaceDictionaryConfig
25027
+ */
25028
+ ReplaceDictionaryConfig.fromObject = function fromObject(object) {
25029
+ if (object instanceof $root.google.privacy.dlp.v2.ReplaceDictionaryConfig)
25030
+ return object;
25031
+ var message = new $root.google.privacy.dlp.v2.ReplaceDictionaryConfig();
25032
+ if (object.wordList != null) {
25033
+ if (typeof object.wordList !== "object")
25034
+ throw TypeError(".google.privacy.dlp.v2.ReplaceDictionaryConfig.wordList: object expected");
25035
+ message.wordList = $root.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList.fromObject(object.wordList);
25036
+ }
25037
+ return message;
25038
+ };
25039
+
25040
+ /**
25041
+ * Creates a plain object from a ReplaceDictionaryConfig message. Also converts values to other types if specified.
25042
+ * @function toObject
25043
+ * @memberof google.privacy.dlp.v2.ReplaceDictionaryConfig
25044
+ * @static
25045
+ * @param {google.privacy.dlp.v2.ReplaceDictionaryConfig} message ReplaceDictionaryConfig
25046
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
25047
+ * @returns {Object.<string,*>} Plain object
25048
+ */
25049
+ ReplaceDictionaryConfig.toObject = function toObject(message, options) {
25050
+ if (!options)
25051
+ options = {};
25052
+ var object = {};
25053
+ if (message.wordList != null && message.hasOwnProperty("wordList")) {
25054
+ object.wordList = $root.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList.toObject(message.wordList, options);
25055
+ if (options.oneofs)
25056
+ object.type = "wordList";
25057
+ }
25058
+ return object;
25059
+ };
25060
+
25061
+ /**
25062
+ * Converts this ReplaceDictionaryConfig to JSON.
25063
+ * @function toJSON
25064
+ * @memberof google.privacy.dlp.v2.ReplaceDictionaryConfig
25065
+ * @instance
25066
+ * @returns {Object.<string,*>} JSON object
25067
+ */
25068
+ ReplaceDictionaryConfig.prototype.toJSON = function toJSON() {
25069
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
25070
+ };
25071
+
25072
+ return ReplaceDictionaryConfig;
25073
+ })();
25074
+
24808
25075
  v2.ReplaceWithInfoTypeConfig = (function() {
24809
25076
 
24810
25077
  /**
@@ -36987,6 +37254,7 @@
36987
37254
  * @property {number|null} [pageSize] ListJobTriggersRequest pageSize
36988
37255
  * @property {string|null} [orderBy] ListJobTriggersRequest orderBy
36989
37256
  * @property {string|null} [filter] ListJobTriggersRequest filter
37257
+ * @property {google.privacy.dlp.v2.DlpJobType|null} [type] ListJobTriggersRequest type
36990
37258
  * @property {string|null} [locationId] ListJobTriggersRequest locationId
36991
37259
  */
36992
37260
 
@@ -37045,6 +37313,14 @@
37045
37313
  */
37046
37314
  ListJobTriggersRequest.prototype.filter = "";
37047
37315
 
37316
+ /**
37317
+ * ListJobTriggersRequest type.
37318
+ * @member {google.privacy.dlp.v2.DlpJobType} type
37319
+ * @memberof google.privacy.dlp.v2.ListJobTriggersRequest
37320
+ * @instance
37321
+ */
37322
+ ListJobTriggersRequest.prototype.type = 0;
37323
+
37048
37324
  /**
37049
37325
  * ListJobTriggersRequest locationId.
37050
37326
  * @member {string} locationId
@@ -37087,6 +37363,8 @@
37087
37363
  writer.uint32(/* id 4, wireType 2 =*/34).string(message.orderBy);
37088
37364
  if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
37089
37365
  writer.uint32(/* id 5, wireType 2 =*/42).string(message.filter);
37366
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
37367
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.type);
37090
37368
  if (message.locationId != null && Object.hasOwnProperty.call(message, "locationId"))
37091
37369
  writer.uint32(/* id 7, wireType 2 =*/58).string(message.locationId);
37092
37370
  return writer;
@@ -37138,6 +37416,9 @@
37138
37416
  case 5:
37139
37417
  message.filter = reader.string();
37140
37418
  break;
37419
+ case 6:
37420
+ message.type = reader.int32();
37421
+ break;
37141
37422
  case 7:
37142
37423
  message.locationId = reader.string();
37143
37424
  break;
@@ -37191,6 +37472,15 @@
37191
37472
  if (message.filter != null && message.hasOwnProperty("filter"))
37192
37473
  if (!$util.isString(message.filter))
37193
37474
  return "filter: string expected";
37475
+ if (message.type != null && message.hasOwnProperty("type"))
37476
+ switch (message.type) {
37477
+ default:
37478
+ return "type: enum value expected";
37479
+ case 0:
37480
+ case 1:
37481
+ case 2:
37482
+ break;
37483
+ }
37194
37484
  if (message.locationId != null && message.hasOwnProperty("locationId"))
37195
37485
  if (!$util.isString(message.locationId))
37196
37486
  return "locationId: string expected";
@@ -37219,6 +37509,20 @@
37219
37509
  message.orderBy = String(object.orderBy);
37220
37510
  if (object.filter != null)
37221
37511
  message.filter = String(object.filter);
37512
+ switch (object.type) {
37513
+ case "DLP_JOB_TYPE_UNSPECIFIED":
37514
+ case 0:
37515
+ message.type = 0;
37516
+ break;
37517
+ case "INSPECT_JOB":
37518
+ case 1:
37519
+ message.type = 1;
37520
+ break;
37521
+ case "RISK_ANALYSIS_JOB":
37522
+ case 2:
37523
+ message.type = 2;
37524
+ break;
37525
+ }
37222
37526
  if (object.locationId != null)
37223
37527
  message.locationId = String(object.locationId);
37224
37528
  return message;
@@ -37243,6 +37547,7 @@
37243
37547
  object.pageSize = 0;
37244
37548
  object.orderBy = "";
37245
37549
  object.filter = "";
37550
+ object.type = options.enums === String ? "DLP_JOB_TYPE_UNSPECIFIED" : 0;
37246
37551
  object.locationId = "";
37247
37552
  }
37248
37553
  if (message.parent != null && message.hasOwnProperty("parent"))
@@ -37255,6 +37560,8 @@
37255
37560
  object.orderBy = message.orderBy;
37256
37561
  if (message.filter != null && message.hasOwnProperty("filter"))
37257
37562
  object.filter = message.filter;
37563
+ if (message.type != null && message.hasOwnProperty("type"))
37564
+ object.type = options.enums === String ? $root.google.privacy.dlp.v2.DlpJobType[message.type] : message.type;
37258
37565
  if (message.locationId != null && message.hasOwnProperty("locationId"))
37259
37566
  object.locationId = message.locationId;
37260
37567
  return object;
@@ -45502,6 +45809,7 @@
45502
45809
  * @memberof google.privacy.dlp.v2
45503
45810
  * @interface IInfoType
45504
45811
  * @property {string|null} [name] InfoType name
45812
+ * @property {string|null} [version] InfoType version
45505
45813
  */
45506
45814
 
45507
45815
  /**
@@ -45527,6 +45835,14 @@
45527
45835
  */
45528
45836
  InfoType.prototype.name = "";
45529
45837
 
45838
+ /**
45839
+ * InfoType version.
45840
+ * @member {string} version
45841
+ * @memberof google.privacy.dlp.v2.InfoType
45842
+ * @instance
45843
+ */
45844
+ InfoType.prototype.version = "";
45845
+
45530
45846
  /**
45531
45847
  * Creates a new InfoType instance using the specified properties.
45532
45848
  * @function create
@@ -45553,6 +45869,8 @@
45553
45869
  writer = $Writer.create();
45554
45870
  if (message.name != null && Object.hasOwnProperty.call(message, "name"))
45555
45871
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
45872
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
45873
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.version);
45556
45874
  return writer;
45557
45875
  };
45558
45876
 
@@ -45590,6 +45908,9 @@
45590
45908
  case 1:
45591
45909
  message.name = reader.string();
45592
45910
  break;
45911
+ case 2:
45912
+ message.version = reader.string();
45913
+ break;
45593
45914
  default:
45594
45915
  reader.skipType(tag & 7);
45595
45916
  break;
@@ -45628,6 +45949,9 @@
45628
45949
  if (message.name != null && message.hasOwnProperty("name"))
45629
45950
  if (!$util.isString(message.name))
45630
45951
  return "name: string expected";
45952
+ if (message.version != null && message.hasOwnProperty("version"))
45953
+ if (!$util.isString(message.version))
45954
+ return "version: string expected";
45631
45955
  return null;
45632
45956
  };
45633
45957
 
@@ -45645,6 +45969,8 @@
45645
45969
  var message = new $root.google.privacy.dlp.v2.InfoType();
45646
45970
  if (object.name != null)
45647
45971
  message.name = String(object.name);
45972
+ if (object.version != null)
45973
+ message.version = String(object.version);
45648
45974
  return message;
45649
45975
  };
45650
45976
 
@@ -45661,10 +45987,14 @@
45661
45987
  if (!options)
45662
45988
  options = {};
45663
45989
  var object = {};
45664
- if (options.defaults)
45990
+ if (options.defaults) {
45665
45991
  object.name = "";
45992
+ object.version = "";
45993
+ }
45666
45994
  if (message.name != null && message.hasOwnProperty("name"))
45667
45995
  object.name = message.name;
45996
+ if (message.version != null && message.hasOwnProperty("version"))
45997
+ object.version = message.version;
45668
45998
  return object;
45669
45999
  };
45670
46000
 
@@ -50281,6 +50611,7 @@
50281
50611
  * @property {number|null} [rowsLimitPercent] BigQueryOptions rowsLimitPercent
50282
50612
  * @property {google.privacy.dlp.v2.BigQueryOptions.SampleMethod|null} [sampleMethod] BigQueryOptions sampleMethod
50283
50613
  * @property {Array.<google.privacy.dlp.v2.IFieldId>|null} [excludedFields] BigQueryOptions excludedFields
50614
+ * @property {Array.<google.privacy.dlp.v2.IFieldId>|null} [includedFields] BigQueryOptions includedFields
50284
50615
  */
50285
50616
 
50286
50617
  /**
@@ -50294,6 +50625,7 @@
50294
50625
  function BigQueryOptions(properties) {
50295
50626
  this.identifyingFields = [];
50296
50627
  this.excludedFields = [];
50628
+ this.includedFields = [];
50297
50629
  if (properties)
50298
50630
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
50299
50631
  if (properties[keys[i]] != null)
@@ -50348,6 +50680,14 @@
50348
50680
  */
50349
50681
  BigQueryOptions.prototype.excludedFields = $util.emptyArray;
50350
50682
 
50683
+ /**
50684
+ * BigQueryOptions includedFields.
50685
+ * @member {Array.<google.privacy.dlp.v2.IFieldId>} includedFields
50686
+ * @memberof google.privacy.dlp.v2.BigQueryOptions
50687
+ * @instance
50688
+ */
50689
+ BigQueryOptions.prototype.includedFields = $util.emptyArray;
50690
+
50351
50691
  /**
50352
50692
  * Creates a new BigQueryOptions instance using the specified properties.
50353
50693
  * @function create
@@ -50386,6 +50726,9 @@
50386
50726
  $root.google.privacy.dlp.v2.FieldId.encode(message.excludedFields[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
50387
50727
  if (message.rowsLimitPercent != null && Object.hasOwnProperty.call(message, "rowsLimitPercent"))
50388
50728
  writer.uint32(/* id 6, wireType 0 =*/48).int32(message.rowsLimitPercent);
50729
+ if (message.includedFields != null && message.includedFields.length)
50730
+ for (var i = 0; i < message.includedFields.length; ++i)
50731
+ $root.google.privacy.dlp.v2.FieldId.encode(message.includedFields[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
50389
50732
  return writer;
50390
50733
  };
50391
50734
 
@@ -50442,6 +50785,11 @@
50442
50785
  message.excludedFields = [];
50443
50786
  message.excludedFields.push($root.google.privacy.dlp.v2.FieldId.decode(reader, reader.uint32()));
50444
50787
  break;
50788
+ case 7:
50789
+ if (!(message.includedFields && message.includedFields.length))
50790
+ message.includedFields = [];
50791
+ message.includedFields.push($root.google.privacy.dlp.v2.FieldId.decode(reader, reader.uint32()));
50792
+ break;
50445
50793
  default:
50446
50794
  reader.skipType(tag & 7);
50447
50795
  break;
@@ -50515,6 +50863,15 @@
50515
50863
  return "excludedFields." + error;
50516
50864
  }
50517
50865
  }
50866
+ if (message.includedFields != null && message.hasOwnProperty("includedFields")) {
50867
+ if (!Array.isArray(message.includedFields))
50868
+ return "includedFields: array expected";
50869
+ for (var i = 0; i < message.includedFields.length; ++i) {
50870
+ var error = $root.google.privacy.dlp.v2.FieldId.verify(message.includedFields[i]);
50871
+ if (error)
50872
+ return "includedFields." + error;
50873
+ }
50874
+ }
50518
50875
  return null;
50519
50876
  };
50520
50877
 
@@ -50580,6 +50937,16 @@
50580
50937
  message.excludedFields[i] = $root.google.privacy.dlp.v2.FieldId.fromObject(object.excludedFields[i]);
50581
50938
  }
50582
50939
  }
50940
+ if (object.includedFields) {
50941
+ if (!Array.isArray(object.includedFields))
50942
+ throw TypeError(".google.privacy.dlp.v2.BigQueryOptions.includedFields: array expected");
50943
+ message.includedFields = [];
50944
+ for (var i = 0; i < object.includedFields.length; ++i) {
50945
+ if (typeof object.includedFields[i] !== "object")
50946
+ throw TypeError(".google.privacy.dlp.v2.BigQueryOptions.includedFields: object expected");
50947
+ message.includedFields[i] = $root.google.privacy.dlp.v2.FieldId.fromObject(object.includedFields[i]);
50948
+ }
50949
+ }
50583
50950
  return message;
50584
50951
  };
50585
50952
 
@@ -50599,6 +50966,7 @@
50599
50966
  if (options.arrays || options.defaults) {
50600
50967
  object.identifyingFields = [];
50601
50968
  object.excludedFields = [];
50969
+ object.includedFields = [];
50602
50970
  }
50603
50971
  if (options.defaults) {
50604
50972
  object.tableReference = null;
@@ -50631,6 +50999,11 @@
50631
50999
  }
50632
51000
  if (message.rowsLimitPercent != null && message.hasOwnProperty("rowsLimitPercent"))
50633
51001
  object.rowsLimitPercent = message.rowsLimitPercent;
51002
+ if (message.includedFields && message.includedFields.length) {
51003
+ object.includedFields = [];
51004
+ for (var j = 0; j < message.includedFields.length; ++j)
51005
+ object.includedFields[j] = $root.google.privacy.dlp.v2.FieldId.toObject(message.includedFields[j], options);
51006
+ }
50634
51007
  return object;
50635
51008
  };
50636
51009