@google-cloud/dlp 3.5.0 → 4.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.
- package/CHANGELOG.md +37 -0
- package/build/protos/google/privacy/dlp/v2/dlp.proto +196 -1
- package/build/protos/google/privacy/dlp/v2/storage.proto +18 -9
- package/build/protos/protos.d.ts +185 -0
- package/build/protos/protos.js +738 -1
- package/build/protos/protos.json +104 -0
- package/build/src/v2/dlp_service_client.d.ts +175 -40
- package/build/src/v2/dlp_service_client.js +5 -6
- package/build/src/v2/dlp_service_client.js.map +1 -1
- package/build/src/v2/index.js +1 -0
- package/build/src/v2/index.js.map +1 -1
- package/package.json +11 -12
package/build/protos/protos.js
CHANGED
|
@@ -12050,6 +12050,7 @@
|
|
|
12050
12050
|
* @property {string|null} [displayName] InfoTypeDescription displayName
|
|
12051
12051
|
* @property {Array.<google.privacy.dlp.v2.InfoTypeSupportedBy>|null} [supportedBy] InfoTypeDescription supportedBy
|
|
12052
12052
|
* @property {string|null} [description] InfoTypeDescription description
|
|
12053
|
+
* @property {Array.<google.privacy.dlp.v2.IInfoTypeCategory>|null} [categories] InfoTypeDescription categories
|
|
12053
12054
|
*/
|
|
12054
12055
|
|
|
12055
12056
|
/**
|
|
@@ -12062,6 +12063,7 @@
|
|
|
12062
12063
|
*/
|
|
12063
12064
|
function InfoTypeDescription(properties) {
|
|
12064
12065
|
this.supportedBy = [];
|
|
12066
|
+
this.categories = [];
|
|
12065
12067
|
if (properties)
|
|
12066
12068
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12067
12069
|
if (properties[keys[i]] != null)
|
|
@@ -12100,6 +12102,14 @@
|
|
|
12100
12102
|
*/
|
|
12101
12103
|
InfoTypeDescription.prototype.description = "";
|
|
12102
12104
|
|
|
12105
|
+
/**
|
|
12106
|
+
* InfoTypeDescription categories.
|
|
12107
|
+
* @member {Array.<google.privacy.dlp.v2.IInfoTypeCategory>} categories
|
|
12108
|
+
* @memberof google.privacy.dlp.v2.InfoTypeDescription
|
|
12109
|
+
* @instance
|
|
12110
|
+
*/
|
|
12111
|
+
InfoTypeDescription.prototype.categories = $util.emptyArray;
|
|
12112
|
+
|
|
12103
12113
|
/**
|
|
12104
12114
|
* Creates a new InfoTypeDescription instance using the specified properties.
|
|
12105
12115
|
* @function create
|
|
@@ -12136,6 +12146,9 @@
|
|
|
12136
12146
|
}
|
|
12137
12147
|
if (message.description != null && Object.hasOwnProperty.call(message, "description"))
|
|
12138
12148
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.description);
|
|
12149
|
+
if (message.categories != null && message.categories.length)
|
|
12150
|
+
for (var i = 0; i < message.categories.length; ++i)
|
|
12151
|
+
$root.google.privacy.dlp.v2.InfoTypeCategory.encode(message.categories[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
12139
12152
|
return writer;
|
|
12140
12153
|
};
|
|
12141
12154
|
|
|
@@ -12189,6 +12202,11 @@
|
|
|
12189
12202
|
case 4:
|
|
12190
12203
|
message.description = reader.string();
|
|
12191
12204
|
break;
|
|
12205
|
+
case 10:
|
|
12206
|
+
if (!(message.categories && message.categories.length))
|
|
12207
|
+
message.categories = [];
|
|
12208
|
+
message.categories.push($root.google.privacy.dlp.v2.InfoTypeCategory.decode(reader, reader.uint32()));
|
|
12209
|
+
break;
|
|
12192
12210
|
default:
|
|
12193
12211
|
reader.skipType(tag & 7);
|
|
12194
12212
|
break;
|
|
@@ -12246,6 +12264,15 @@
|
|
|
12246
12264
|
if (message.description != null && message.hasOwnProperty("description"))
|
|
12247
12265
|
if (!$util.isString(message.description))
|
|
12248
12266
|
return "description: string expected";
|
|
12267
|
+
if (message.categories != null && message.hasOwnProperty("categories")) {
|
|
12268
|
+
if (!Array.isArray(message.categories))
|
|
12269
|
+
return "categories: array expected";
|
|
12270
|
+
for (var i = 0; i < message.categories.length; ++i) {
|
|
12271
|
+
var error = $root.google.privacy.dlp.v2.InfoTypeCategory.verify(message.categories[i]);
|
|
12272
|
+
if (error)
|
|
12273
|
+
return "categories." + error;
|
|
12274
|
+
}
|
|
12275
|
+
}
|
|
12249
12276
|
return null;
|
|
12250
12277
|
};
|
|
12251
12278
|
|
|
@@ -12288,6 +12315,16 @@
|
|
|
12288
12315
|
}
|
|
12289
12316
|
if (object.description != null)
|
|
12290
12317
|
message.description = String(object.description);
|
|
12318
|
+
if (object.categories) {
|
|
12319
|
+
if (!Array.isArray(object.categories))
|
|
12320
|
+
throw TypeError(".google.privacy.dlp.v2.InfoTypeDescription.categories: array expected");
|
|
12321
|
+
message.categories = [];
|
|
12322
|
+
for (var i = 0; i < object.categories.length; ++i) {
|
|
12323
|
+
if (typeof object.categories[i] !== "object")
|
|
12324
|
+
throw TypeError(".google.privacy.dlp.v2.InfoTypeDescription.categories: object expected");
|
|
12325
|
+
message.categories[i] = $root.google.privacy.dlp.v2.InfoTypeCategory.fromObject(object.categories[i]);
|
|
12326
|
+
}
|
|
12327
|
+
}
|
|
12291
12328
|
return message;
|
|
12292
12329
|
};
|
|
12293
12330
|
|
|
@@ -12304,8 +12341,10 @@
|
|
|
12304
12341
|
if (!options)
|
|
12305
12342
|
options = {};
|
|
12306
12343
|
var object = {};
|
|
12307
|
-
if (options.arrays || options.defaults)
|
|
12344
|
+
if (options.arrays || options.defaults) {
|
|
12308
12345
|
object.supportedBy = [];
|
|
12346
|
+
object.categories = [];
|
|
12347
|
+
}
|
|
12309
12348
|
if (options.defaults) {
|
|
12310
12349
|
object.name = "";
|
|
12311
12350
|
object.displayName = "";
|
|
@@ -12322,6 +12361,11 @@
|
|
|
12322
12361
|
}
|
|
12323
12362
|
if (message.description != null && message.hasOwnProperty("description"))
|
|
12324
12363
|
object.description = message.description;
|
|
12364
|
+
if (message.categories && message.categories.length) {
|
|
12365
|
+
object.categories = [];
|
|
12366
|
+
for (var j = 0; j < message.categories.length; ++j)
|
|
12367
|
+
object.categories[j] = $root.google.privacy.dlp.v2.InfoTypeCategory.toObject(message.categories[j], options);
|
|
12368
|
+
}
|
|
12325
12369
|
return object;
|
|
12326
12370
|
};
|
|
12327
12371
|
|
|
@@ -12339,6 +12383,677 @@
|
|
|
12339
12383
|
return InfoTypeDescription;
|
|
12340
12384
|
})();
|
|
12341
12385
|
|
|
12386
|
+
v2.InfoTypeCategory = (function() {
|
|
12387
|
+
|
|
12388
|
+
/**
|
|
12389
|
+
* Properties of an InfoTypeCategory.
|
|
12390
|
+
* @memberof google.privacy.dlp.v2
|
|
12391
|
+
* @interface IInfoTypeCategory
|
|
12392
|
+
* @property {google.privacy.dlp.v2.InfoTypeCategory.LocationCategory|null} [locationCategory] InfoTypeCategory locationCategory
|
|
12393
|
+
* @property {google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory|null} [industryCategory] InfoTypeCategory industryCategory
|
|
12394
|
+
* @property {google.privacy.dlp.v2.InfoTypeCategory.TypeCategory|null} [typeCategory] InfoTypeCategory typeCategory
|
|
12395
|
+
*/
|
|
12396
|
+
|
|
12397
|
+
/**
|
|
12398
|
+
* Constructs a new InfoTypeCategory.
|
|
12399
|
+
* @memberof google.privacy.dlp.v2
|
|
12400
|
+
* @classdesc Represents an InfoTypeCategory.
|
|
12401
|
+
* @implements IInfoTypeCategory
|
|
12402
|
+
* @constructor
|
|
12403
|
+
* @param {google.privacy.dlp.v2.IInfoTypeCategory=} [properties] Properties to set
|
|
12404
|
+
*/
|
|
12405
|
+
function InfoTypeCategory(properties) {
|
|
12406
|
+
if (properties)
|
|
12407
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12408
|
+
if (properties[keys[i]] != null)
|
|
12409
|
+
this[keys[i]] = properties[keys[i]];
|
|
12410
|
+
}
|
|
12411
|
+
|
|
12412
|
+
/**
|
|
12413
|
+
* InfoTypeCategory locationCategory.
|
|
12414
|
+
* @member {google.privacy.dlp.v2.InfoTypeCategory.LocationCategory|null|undefined} locationCategory
|
|
12415
|
+
* @memberof google.privacy.dlp.v2.InfoTypeCategory
|
|
12416
|
+
* @instance
|
|
12417
|
+
*/
|
|
12418
|
+
InfoTypeCategory.prototype.locationCategory = null;
|
|
12419
|
+
|
|
12420
|
+
/**
|
|
12421
|
+
* InfoTypeCategory industryCategory.
|
|
12422
|
+
* @member {google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory|null|undefined} industryCategory
|
|
12423
|
+
* @memberof google.privacy.dlp.v2.InfoTypeCategory
|
|
12424
|
+
* @instance
|
|
12425
|
+
*/
|
|
12426
|
+
InfoTypeCategory.prototype.industryCategory = null;
|
|
12427
|
+
|
|
12428
|
+
/**
|
|
12429
|
+
* InfoTypeCategory typeCategory.
|
|
12430
|
+
* @member {google.privacy.dlp.v2.InfoTypeCategory.TypeCategory|null|undefined} typeCategory
|
|
12431
|
+
* @memberof google.privacy.dlp.v2.InfoTypeCategory
|
|
12432
|
+
* @instance
|
|
12433
|
+
*/
|
|
12434
|
+
InfoTypeCategory.prototype.typeCategory = null;
|
|
12435
|
+
|
|
12436
|
+
// OneOf field names bound to virtual getters and setters
|
|
12437
|
+
var $oneOfFields;
|
|
12438
|
+
|
|
12439
|
+
/**
|
|
12440
|
+
* InfoTypeCategory category.
|
|
12441
|
+
* @member {"locationCategory"|"industryCategory"|"typeCategory"|undefined} category
|
|
12442
|
+
* @memberof google.privacy.dlp.v2.InfoTypeCategory
|
|
12443
|
+
* @instance
|
|
12444
|
+
*/
|
|
12445
|
+
Object.defineProperty(InfoTypeCategory.prototype, "category", {
|
|
12446
|
+
get: $util.oneOfGetter($oneOfFields = ["locationCategory", "industryCategory", "typeCategory"]),
|
|
12447
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
12448
|
+
});
|
|
12449
|
+
|
|
12450
|
+
/**
|
|
12451
|
+
* Creates a new InfoTypeCategory instance using the specified properties.
|
|
12452
|
+
* @function create
|
|
12453
|
+
* @memberof google.privacy.dlp.v2.InfoTypeCategory
|
|
12454
|
+
* @static
|
|
12455
|
+
* @param {google.privacy.dlp.v2.IInfoTypeCategory=} [properties] Properties to set
|
|
12456
|
+
* @returns {google.privacy.dlp.v2.InfoTypeCategory} InfoTypeCategory instance
|
|
12457
|
+
*/
|
|
12458
|
+
InfoTypeCategory.create = function create(properties) {
|
|
12459
|
+
return new InfoTypeCategory(properties);
|
|
12460
|
+
};
|
|
12461
|
+
|
|
12462
|
+
/**
|
|
12463
|
+
* Encodes the specified InfoTypeCategory message. Does not implicitly {@link google.privacy.dlp.v2.InfoTypeCategory.verify|verify} messages.
|
|
12464
|
+
* @function encode
|
|
12465
|
+
* @memberof google.privacy.dlp.v2.InfoTypeCategory
|
|
12466
|
+
* @static
|
|
12467
|
+
* @param {google.privacy.dlp.v2.IInfoTypeCategory} message InfoTypeCategory message or plain object to encode
|
|
12468
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12469
|
+
* @returns {$protobuf.Writer} Writer
|
|
12470
|
+
*/
|
|
12471
|
+
InfoTypeCategory.encode = function encode(message, writer) {
|
|
12472
|
+
if (!writer)
|
|
12473
|
+
writer = $Writer.create();
|
|
12474
|
+
if (message.locationCategory != null && Object.hasOwnProperty.call(message, "locationCategory"))
|
|
12475
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.locationCategory);
|
|
12476
|
+
if (message.industryCategory != null && Object.hasOwnProperty.call(message, "industryCategory"))
|
|
12477
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.industryCategory);
|
|
12478
|
+
if (message.typeCategory != null && Object.hasOwnProperty.call(message, "typeCategory"))
|
|
12479
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.typeCategory);
|
|
12480
|
+
return writer;
|
|
12481
|
+
};
|
|
12482
|
+
|
|
12483
|
+
/**
|
|
12484
|
+
* Encodes the specified InfoTypeCategory message, length delimited. Does not implicitly {@link google.privacy.dlp.v2.InfoTypeCategory.verify|verify} messages.
|
|
12485
|
+
* @function encodeDelimited
|
|
12486
|
+
* @memberof google.privacy.dlp.v2.InfoTypeCategory
|
|
12487
|
+
* @static
|
|
12488
|
+
* @param {google.privacy.dlp.v2.IInfoTypeCategory} message InfoTypeCategory message or plain object to encode
|
|
12489
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12490
|
+
* @returns {$protobuf.Writer} Writer
|
|
12491
|
+
*/
|
|
12492
|
+
InfoTypeCategory.encodeDelimited = function encodeDelimited(message, writer) {
|
|
12493
|
+
return this.encode(message, writer).ldelim();
|
|
12494
|
+
};
|
|
12495
|
+
|
|
12496
|
+
/**
|
|
12497
|
+
* Decodes an InfoTypeCategory message from the specified reader or buffer.
|
|
12498
|
+
* @function decode
|
|
12499
|
+
* @memberof google.privacy.dlp.v2.InfoTypeCategory
|
|
12500
|
+
* @static
|
|
12501
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12502
|
+
* @param {number} [length] Message length if known beforehand
|
|
12503
|
+
* @returns {google.privacy.dlp.v2.InfoTypeCategory} InfoTypeCategory
|
|
12504
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12505
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12506
|
+
*/
|
|
12507
|
+
InfoTypeCategory.decode = function decode(reader, length) {
|
|
12508
|
+
if (!(reader instanceof $Reader))
|
|
12509
|
+
reader = $Reader.create(reader);
|
|
12510
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.privacy.dlp.v2.InfoTypeCategory();
|
|
12511
|
+
while (reader.pos < end) {
|
|
12512
|
+
var tag = reader.uint32();
|
|
12513
|
+
switch (tag >>> 3) {
|
|
12514
|
+
case 1:
|
|
12515
|
+
message.locationCategory = reader.int32();
|
|
12516
|
+
break;
|
|
12517
|
+
case 2:
|
|
12518
|
+
message.industryCategory = reader.int32();
|
|
12519
|
+
break;
|
|
12520
|
+
case 3:
|
|
12521
|
+
message.typeCategory = reader.int32();
|
|
12522
|
+
break;
|
|
12523
|
+
default:
|
|
12524
|
+
reader.skipType(tag & 7);
|
|
12525
|
+
break;
|
|
12526
|
+
}
|
|
12527
|
+
}
|
|
12528
|
+
return message;
|
|
12529
|
+
};
|
|
12530
|
+
|
|
12531
|
+
/**
|
|
12532
|
+
* Decodes an InfoTypeCategory message from the specified reader or buffer, length delimited.
|
|
12533
|
+
* @function decodeDelimited
|
|
12534
|
+
* @memberof google.privacy.dlp.v2.InfoTypeCategory
|
|
12535
|
+
* @static
|
|
12536
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12537
|
+
* @returns {google.privacy.dlp.v2.InfoTypeCategory} InfoTypeCategory
|
|
12538
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12539
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12540
|
+
*/
|
|
12541
|
+
InfoTypeCategory.decodeDelimited = function decodeDelimited(reader) {
|
|
12542
|
+
if (!(reader instanceof $Reader))
|
|
12543
|
+
reader = new $Reader(reader);
|
|
12544
|
+
return this.decode(reader, reader.uint32());
|
|
12545
|
+
};
|
|
12546
|
+
|
|
12547
|
+
/**
|
|
12548
|
+
* Verifies an InfoTypeCategory message.
|
|
12549
|
+
* @function verify
|
|
12550
|
+
* @memberof google.privacy.dlp.v2.InfoTypeCategory
|
|
12551
|
+
* @static
|
|
12552
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
12553
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
12554
|
+
*/
|
|
12555
|
+
InfoTypeCategory.verify = function verify(message) {
|
|
12556
|
+
if (typeof message !== "object" || message === null)
|
|
12557
|
+
return "object expected";
|
|
12558
|
+
var properties = {};
|
|
12559
|
+
if (message.locationCategory != null && message.hasOwnProperty("locationCategory")) {
|
|
12560
|
+
properties.category = 1;
|
|
12561
|
+
switch (message.locationCategory) {
|
|
12562
|
+
default:
|
|
12563
|
+
return "locationCategory: enum value expected";
|
|
12564
|
+
case 0:
|
|
12565
|
+
case 1:
|
|
12566
|
+
case 2:
|
|
12567
|
+
case 3:
|
|
12568
|
+
case 4:
|
|
12569
|
+
case 5:
|
|
12570
|
+
case 6:
|
|
12571
|
+
case 7:
|
|
12572
|
+
case 8:
|
|
12573
|
+
case 9:
|
|
12574
|
+
case 10:
|
|
12575
|
+
case 11:
|
|
12576
|
+
case 12:
|
|
12577
|
+
case 13:
|
|
12578
|
+
case 14:
|
|
12579
|
+
case 15:
|
|
12580
|
+
case 16:
|
|
12581
|
+
case 17:
|
|
12582
|
+
case 18:
|
|
12583
|
+
case 19:
|
|
12584
|
+
case 20:
|
|
12585
|
+
case 21:
|
|
12586
|
+
case 22:
|
|
12587
|
+
case 23:
|
|
12588
|
+
case 24:
|
|
12589
|
+
case 25:
|
|
12590
|
+
case 26:
|
|
12591
|
+
case 27:
|
|
12592
|
+
case 28:
|
|
12593
|
+
case 29:
|
|
12594
|
+
case 30:
|
|
12595
|
+
case 31:
|
|
12596
|
+
case 32:
|
|
12597
|
+
case 33:
|
|
12598
|
+
case 34:
|
|
12599
|
+
case 35:
|
|
12600
|
+
case 36:
|
|
12601
|
+
case 37:
|
|
12602
|
+
case 38:
|
|
12603
|
+
case 39:
|
|
12604
|
+
case 40:
|
|
12605
|
+
break;
|
|
12606
|
+
}
|
|
12607
|
+
}
|
|
12608
|
+
if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) {
|
|
12609
|
+
if (properties.category === 1)
|
|
12610
|
+
return "category: multiple values";
|
|
12611
|
+
properties.category = 1;
|
|
12612
|
+
switch (message.industryCategory) {
|
|
12613
|
+
default:
|
|
12614
|
+
return "industryCategory: enum value expected";
|
|
12615
|
+
case 0:
|
|
12616
|
+
case 1:
|
|
12617
|
+
case 2:
|
|
12618
|
+
case 3:
|
|
12619
|
+
break;
|
|
12620
|
+
}
|
|
12621
|
+
}
|
|
12622
|
+
if (message.typeCategory != null && message.hasOwnProperty("typeCategory")) {
|
|
12623
|
+
if (properties.category === 1)
|
|
12624
|
+
return "category: multiple values";
|
|
12625
|
+
properties.category = 1;
|
|
12626
|
+
switch (message.typeCategory) {
|
|
12627
|
+
default:
|
|
12628
|
+
return "typeCategory: enum value expected";
|
|
12629
|
+
case 0:
|
|
12630
|
+
case 1:
|
|
12631
|
+
case 2:
|
|
12632
|
+
case 3:
|
|
12633
|
+
case 4:
|
|
12634
|
+
case 5:
|
|
12635
|
+
case 6:
|
|
12636
|
+
case 7:
|
|
12637
|
+
break;
|
|
12638
|
+
}
|
|
12639
|
+
}
|
|
12640
|
+
return null;
|
|
12641
|
+
};
|
|
12642
|
+
|
|
12643
|
+
/**
|
|
12644
|
+
* Creates an InfoTypeCategory message from a plain object. Also converts values to their respective internal types.
|
|
12645
|
+
* @function fromObject
|
|
12646
|
+
* @memberof google.privacy.dlp.v2.InfoTypeCategory
|
|
12647
|
+
* @static
|
|
12648
|
+
* @param {Object.<string,*>} object Plain object
|
|
12649
|
+
* @returns {google.privacy.dlp.v2.InfoTypeCategory} InfoTypeCategory
|
|
12650
|
+
*/
|
|
12651
|
+
InfoTypeCategory.fromObject = function fromObject(object) {
|
|
12652
|
+
if (object instanceof $root.google.privacy.dlp.v2.InfoTypeCategory)
|
|
12653
|
+
return object;
|
|
12654
|
+
var message = new $root.google.privacy.dlp.v2.InfoTypeCategory();
|
|
12655
|
+
switch (object.locationCategory) {
|
|
12656
|
+
case "LOCATION_UNSPECIFIED":
|
|
12657
|
+
case 0:
|
|
12658
|
+
message.locationCategory = 0;
|
|
12659
|
+
break;
|
|
12660
|
+
case "GLOBAL":
|
|
12661
|
+
case 1:
|
|
12662
|
+
message.locationCategory = 1;
|
|
12663
|
+
break;
|
|
12664
|
+
case "ARGENTINA":
|
|
12665
|
+
case 2:
|
|
12666
|
+
message.locationCategory = 2;
|
|
12667
|
+
break;
|
|
12668
|
+
case "AUSTRALIA":
|
|
12669
|
+
case 3:
|
|
12670
|
+
message.locationCategory = 3;
|
|
12671
|
+
break;
|
|
12672
|
+
case "BELGIUM":
|
|
12673
|
+
case 4:
|
|
12674
|
+
message.locationCategory = 4;
|
|
12675
|
+
break;
|
|
12676
|
+
case "BRAZIL":
|
|
12677
|
+
case 5:
|
|
12678
|
+
message.locationCategory = 5;
|
|
12679
|
+
break;
|
|
12680
|
+
case "CANADA":
|
|
12681
|
+
case 6:
|
|
12682
|
+
message.locationCategory = 6;
|
|
12683
|
+
break;
|
|
12684
|
+
case "CHILE":
|
|
12685
|
+
case 7:
|
|
12686
|
+
message.locationCategory = 7;
|
|
12687
|
+
break;
|
|
12688
|
+
case "CHINA":
|
|
12689
|
+
case 8:
|
|
12690
|
+
message.locationCategory = 8;
|
|
12691
|
+
break;
|
|
12692
|
+
case "COLOMBIA":
|
|
12693
|
+
case 9:
|
|
12694
|
+
message.locationCategory = 9;
|
|
12695
|
+
break;
|
|
12696
|
+
case "DENMARK":
|
|
12697
|
+
case 10:
|
|
12698
|
+
message.locationCategory = 10;
|
|
12699
|
+
break;
|
|
12700
|
+
case "FRANCE":
|
|
12701
|
+
case 11:
|
|
12702
|
+
message.locationCategory = 11;
|
|
12703
|
+
break;
|
|
12704
|
+
case "FINLAND":
|
|
12705
|
+
case 12:
|
|
12706
|
+
message.locationCategory = 12;
|
|
12707
|
+
break;
|
|
12708
|
+
case "GERMANY":
|
|
12709
|
+
case 13:
|
|
12710
|
+
message.locationCategory = 13;
|
|
12711
|
+
break;
|
|
12712
|
+
case "HONG_KONG":
|
|
12713
|
+
case 14:
|
|
12714
|
+
message.locationCategory = 14;
|
|
12715
|
+
break;
|
|
12716
|
+
case "INDIA":
|
|
12717
|
+
case 15:
|
|
12718
|
+
message.locationCategory = 15;
|
|
12719
|
+
break;
|
|
12720
|
+
case "INDONESIA":
|
|
12721
|
+
case 16:
|
|
12722
|
+
message.locationCategory = 16;
|
|
12723
|
+
break;
|
|
12724
|
+
case "IRELAND":
|
|
12725
|
+
case 17:
|
|
12726
|
+
message.locationCategory = 17;
|
|
12727
|
+
break;
|
|
12728
|
+
case "ISRAEL":
|
|
12729
|
+
case 18:
|
|
12730
|
+
message.locationCategory = 18;
|
|
12731
|
+
break;
|
|
12732
|
+
case "ITALY":
|
|
12733
|
+
case 19:
|
|
12734
|
+
message.locationCategory = 19;
|
|
12735
|
+
break;
|
|
12736
|
+
case "JAPAN":
|
|
12737
|
+
case 20:
|
|
12738
|
+
message.locationCategory = 20;
|
|
12739
|
+
break;
|
|
12740
|
+
case "KOREA":
|
|
12741
|
+
case 21:
|
|
12742
|
+
message.locationCategory = 21;
|
|
12743
|
+
break;
|
|
12744
|
+
case "MEXICO":
|
|
12745
|
+
case 22:
|
|
12746
|
+
message.locationCategory = 22;
|
|
12747
|
+
break;
|
|
12748
|
+
case "THE_NETHERLANDS":
|
|
12749
|
+
case 23:
|
|
12750
|
+
message.locationCategory = 23;
|
|
12751
|
+
break;
|
|
12752
|
+
case "NORWAY":
|
|
12753
|
+
case 24:
|
|
12754
|
+
message.locationCategory = 24;
|
|
12755
|
+
break;
|
|
12756
|
+
case "PARAGUAY":
|
|
12757
|
+
case 25:
|
|
12758
|
+
message.locationCategory = 25;
|
|
12759
|
+
break;
|
|
12760
|
+
case "PERU":
|
|
12761
|
+
case 26:
|
|
12762
|
+
message.locationCategory = 26;
|
|
12763
|
+
break;
|
|
12764
|
+
case "POLAND":
|
|
12765
|
+
case 27:
|
|
12766
|
+
message.locationCategory = 27;
|
|
12767
|
+
break;
|
|
12768
|
+
case "PORTUGAL":
|
|
12769
|
+
case 28:
|
|
12770
|
+
message.locationCategory = 28;
|
|
12771
|
+
break;
|
|
12772
|
+
case "SINGAPORE":
|
|
12773
|
+
case 29:
|
|
12774
|
+
message.locationCategory = 29;
|
|
12775
|
+
break;
|
|
12776
|
+
case "SOUTH_AFRICA":
|
|
12777
|
+
case 30:
|
|
12778
|
+
message.locationCategory = 30;
|
|
12779
|
+
break;
|
|
12780
|
+
case "SPAIN":
|
|
12781
|
+
case 31:
|
|
12782
|
+
message.locationCategory = 31;
|
|
12783
|
+
break;
|
|
12784
|
+
case "SWEDEN":
|
|
12785
|
+
case 32:
|
|
12786
|
+
message.locationCategory = 32;
|
|
12787
|
+
break;
|
|
12788
|
+
case "TAIWAN":
|
|
12789
|
+
case 33:
|
|
12790
|
+
message.locationCategory = 33;
|
|
12791
|
+
break;
|
|
12792
|
+
case "THAILAND":
|
|
12793
|
+
case 34:
|
|
12794
|
+
message.locationCategory = 34;
|
|
12795
|
+
break;
|
|
12796
|
+
case "TURKEY":
|
|
12797
|
+
case 35:
|
|
12798
|
+
message.locationCategory = 35;
|
|
12799
|
+
break;
|
|
12800
|
+
case "UNITED_KINGDOM":
|
|
12801
|
+
case 36:
|
|
12802
|
+
message.locationCategory = 36;
|
|
12803
|
+
break;
|
|
12804
|
+
case "UNITED_STATES":
|
|
12805
|
+
case 37:
|
|
12806
|
+
message.locationCategory = 37;
|
|
12807
|
+
break;
|
|
12808
|
+
case "URUGUAY":
|
|
12809
|
+
case 38:
|
|
12810
|
+
message.locationCategory = 38;
|
|
12811
|
+
break;
|
|
12812
|
+
case "VENEZUELA":
|
|
12813
|
+
case 39:
|
|
12814
|
+
message.locationCategory = 39;
|
|
12815
|
+
break;
|
|
12816
|
+
case "INTERNAL":
|
|
12817
|
+
case 40:
|
|
12818
|
+
message.locationCategory = 40;
|
|
12819
|
+
break;
|
|
12820
|
+
}
|
|
12821
|
+
switch (object.industryCategory) {
|
|
12822
|
+
case "INDUSTRY_UNSPECIFIED":
|
|
12823
|
+
case 0:
|
|
12824
|
+
message.industryCategory = 0;
|
|
12825
|
+
break;
|
|
12826
|
+
case "FINANCE":
|
|
12827
|
+
case 1:
|
|
12828
|
+
message.industryCategory = 1;
|
|
12829
|
+
break;
|
|
12830
|
+
case "HEALTH":
|
|
12831
|
+
case 2:
|
|
12832
|
+
message.industryCategory = 2;
|
|
12833
|
+
break;
|
|
12834
|
+
case "TELECOMMUNICATIONS":
|
|
12835
|
+
case 3:
|
|
12836
|
+
message.industryCategory = 3;
|
|
12837
|
+
break;
|
|
12838
|
+
}
|
|
12839
|
+
switch (object.typeCategory) {
|
|
12840
|
+
case "TYPE_UNSPECIFIED":
|
|
12841
|
+
case 0:
|
|
12842
|
+
message.typeCategory = 0;
|
|
12843
|
+
break;
|
|
12844
|
+
case "PII":
|
|
12845
|
+
case 1:
|
|
12846
|
+
message.typeCategory = 1;
|
|
12847
|
+
break;
|
|
12848
|
+
case "SPII":
|
|
12849
|
+
case 2:
|
|
12850
|
+
message.typeCategory = 2;
|
|
12851
|
+
break;
|
|
12852
|
+
case "DEMOGRAPHIC":
|
|
12853
|
+
case 3:
|
|
12854
|
+
message.typeCategory = 3;
|
|
12855
|
+
break;
|
|
12856
|
+
case "CREDENTIAL":
|
|
12857
|
+
case 4:
|
|
12858
|
+
message.typeCategory = 4;
|
|
12859
|
+
break;
|
|
12860
|
+
case "GOVERNMENT_ID":
|
|
12861
|
+
case 5:
|
|
12862
|
+
message.typeCategory = 5;
|
|
12863
|
+
break;
|
|
12864
|
+
case "DOCUMENT":
|
|
12865
|
+
case 6:
|
|
12866
|
+
message.typeCategory = 6;
|
|
12867
|
+
break;
|
|
12868
|
+
case "CONTEXTUAL_INFORMATION":
|
|
12869
|
+
case 7:
|
|
12870
|
+
message.typeCategory = 7;
|
|
12871
|
+
break;
|
|
12872
|
+
}
|
|
12873
|
+
return message;
|
|
12874
|
+
};
|
|
12875
|
+
|
|
12876
|
+
/**
|
|
12877
|
+
* Creates a plain object from an InfoTypeCategory message. Also converts values to other types if specified.
|
|
12878
|
+
* @function toObject
|
|
12879
|
+
* @memberof google.privacy.dlp.v2.InfoTypeCategory
|
|
12880
|
+
* @static
|
|
12881
|
+
* @param {google.privacy.dlp.v2.InfoTypeCategory} message InfoTypeCategory
|
|
12882
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
12883
|
+
* @returns {Object.<string,*>} Plain object
|
|
12884
|
+
*/
|
|
12885
|
+
InfoTypeCategory.toObject = function toObject(message, options) {
|
|
12886
|
+
if (!options)
|
|
12887
|
+
options = {};
|
|
12888
|
+
var object = {};
|
|
12889
|
+
if (message.locationCategory != null && message.hasOwnProperty("locationCategory")) {
|
|
12890
|
+
object.locationCategory = options.enums === String ? $root.google.privacy.dlp.v2.InfoTypeCategory.LocationCategory[message.locationCategory] : message.locationCategory;
|
|
12891
|
+
if (options.oneofs)
|
|
12892
|
+
object.category = "locationCategory";
|
|
12893
|
+
}
|
|
12894
|
+
if (message.industryCategory != null && message.hasOwnProperty("industryCategory")) {
|
|
12895
|
+
object.industryCategory = options.enums === String ? $root.google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory[message.industryCategory] : message.industryCategory;
|
|
12896
|
+
if (options.oneofs)
|
|
12897
|
+
object.category = "industryCategory";
|
|
12898
|
+
}
|
|
12899
|
+
if (message.typeCategory != null && message.hasOwnProperty("typeCategory")) {
|
|
12900
|
+
object.typeCategory = options.enums === String ? $root.google.privacy.dlp.v2.InfoTypeCategory.TypeCategory[message.typeCategory] : message.typeCategory;
|
|
12901
|
+
if (options.oneofs)
|
|
12902
|
+
object.category = "typeCategory";
|
|
12903
|
+
}
|
|
12904
|
+
return object;
|
|
12905
|
+
};
|
|
12906
|
+
|
|
12907
|
+
/**
|
|
12908
|
+
* Converts this InfoTypeCategory to JSON.
|
|
12909
|
+
* @function toJSON
|
|
12910
|
+
* @memberof google.privacy.dlp.v2.InfoTypeCategory
|
|
12911
|
+
* @instance
|
|
12912
|
+
* @returns {Object.<string,*>} JSON object
|
|
12913
|
+
*/
|
|
12914
|
+
InfoTypeCategory.prototype.toJSON = function toJSON() {
|
|
12915
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
12916
|
+
};
|
|
12917
|
+
|
|
12918
|
+
/**
|
|
12919
|
+
* LocationCategory enum.
|
|
12920
|
+
* @name google.privacy.dlp.v2.InfoTypeCategory.LocationCategory
|
|
12921
|
+
* @enum {number}
|
|
12922
|
+
* @property {number} LOCATION_UNSPECIFIED=0 LOCATION_UNSPECIFIED value
|
|
12923
|
+
* @property {number} GLOBAL=1 GLOBAL value
|
|
12924
|
+
* @property {number} ARGENTINA=2 ARGENTINA value
|
|
12925
|
+
* @property {number} AUSTRALIA=3 AUSTRALIA value
|
|
12926
|
+
* @property {number} BELGIUM=4 BELGIUM value
|
|
12927
|
+
* @property {number} BRAZIL=5 BRAZIL value
|
|
12928
|
+
* @property {number} CANADA=6 CANADA value
|
|
12929
|
+
* @property {number} CHILE=7 CHILE value
|
|
12930
|
+
* @property {number} CHINA=8 CHINA value
|
|
12931
|
+
* @property {number} COLOMBIA=9 COLOMBIA value
|
|
12932
|
+
* @property {number} DENMARK=10 DENMARK value
|
|
12933
|
+
* @property {number} FRANCE=11 FRANCE value
|
|
12934
|
+
* @property {number} FINLAND=12 FINLAND value
|
|
12935
|
+
* @property {number} GERMANY=13 GERMANY value
|
|
12936
|
+
* @property {number} HONG_KONG=14 HONG_KONG value
|
|
12937
|
+
* @property {number} INDIA=15 INDIA value
|
|
12938
|
+
* @property {number} INDONESIA=16 INDONESIA value
|
|
12939
|
+
* @property {number} IRELAND=17 IRELAND value
|
|
12940
|
+
* @property {number} ISRAEL=18 ISRAEL value
|
|
12941
|
+
* @property {number} ITALY=19 ITALY value
|
|
12942
|
+
* @property {number} JAPAN=20 JAPAN value
|
|
12943
|
+
* @property {number} KOREA=21 KOREA value
|
|
12944
|
+
* @property {number} MEXICO=22 MEXICO value
|
|
12945
|
+
* @property {number} THE_NETHERLANDS=23 THE_NETHERLANDS value
|
|
12946
|
+
* @property {number} NORWAY=24 NORWAY value
|
|
12947
|
+
* @property {number} PARAGUAY=25 PARAGUAY value
|
|
12948
|
+
* @property {number} PERU=26 PERU value
|
|
12949
|
+
* @property {number} POLAND=27 POLAND value
|
|
12950
|
+
* @property {number} PORTUGAL=28 PORTUGAL value
|
|
12951
|
+
* @property {number} SINGAPORE=29 SINGAPORE value
|
|
12952
|
+
* @property {number} SOUTH_AFRICA=30 SOUTH_AFRICA value
|
|
12953
|
+
* @property {number} SPAIN=31 SPAIN value
|
|
12954
|
+
* @property {number} SWEDEN=32 SWEDEN value
|
|
12955
|
+
* @property {number} TAIWAN=33 TAIWAN value
|
|
12956
|
+
* @property {number} THAILAND=34 THAILAND value
|
|
12957
|
+
* @property {number} TURKEY=35 TURKEY value
|
|
12958
|
+
* @property {number} UNITED_KINGDOM=36 UNITED_KINGDOM value
|
|
12959
|
+
* @property {number} UNITED_STATES=37 UNITED_STATES value
|
|
12960
|
+
* @property {number} URUGUAY=38 URUGUAY value
|
|
12961
|
+
* @property {number} VENEZUELA=39 VENEZUELA value
|
|
12962
|
+
* @property {number} INTERNAL=40 INTERNAL value
|
|
12963
|
+
*/
|
|
12964
|
+
InfoTypeCategory.LocationCategory = (function() {
|
|
12965
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
12966
|
+
values[valuesById[0] = "LOCATION_UNSPECIFIED"] = 0;
|
|
12967
|
+
values[valuesById[1] = "GLOBAL"] = 1;
|
|
12968
|
+
values[valuesById[2] = "ARGENTINA"] = 2;
|
|
12969
|
+
values[valuesById[3] = "AUSTRALIA"] = 3;
|
|
12970
|
+
values[valuesById[4] = "BELGIUM"] = 4;
|
|
12971
|
+
values[valuesById[5] = "BRAZIL"] = 5;
|
|
12972
|
+
values[valuesById[6] = "CANADA"] = 6;
|
|
12973
|
+
values[valuesById[7] = "CHILE"] = 7;
|
|
12974
|
+
values[valuesById[8] = "CHINA"] = 8;
|
|
12975
|
+
values[valuesById[9] = "COLOMBIA"] = 9;
|
|
12976
|
+
values[valuesById[10] = "DENMARK"] = 10;
|
|
12977
|
+
values[valuesById[11] = "FRANCE"] = 11;
|
|
12978
|
+
values[valuesById[12] = "FINLAND"] = 12;
|
|
12979
|
+
values[valuesById[13] = "GERMANY"] = 13;
|
|
12980
|
+
values[valuesById[14] = "HONG_KONG"] = 14;
|
|
12981
|
+
values[valuesById[15] = "INDIA"] = 15;
|
|
12982
|
+
values[valuesById[16] = "INDONESIA"] = 16;
|
|
12983
|
+
values[valuesById[17] = "IRELAND"] = 17;
|
|
12984
|
+
values[valuesById[18] = "ISRAEL"] = 18;
|
|
12985
|
+
values[valuesById[19] = "ITALY"] = 19;
|
|
12986
|
+
values[valuesById[20] = "JAPAN"] = 20;
|
|
12987
|
+
values[valuesById[21] = "KOREA"] = 21;
|
|
12988
|
+
values[valuesById[22] = "MEXICO"] = 22;
|
|
12989
|
+
values[valuesById[23] = "THE_NETHERLANDS"] = 23;
|
|
12990
|
+
values[valuesById[24] = "NORWAY"] = 24;
|
|
12991
|
+
values[valuesById[25] = "PARAGUAY"] = 25;
|
|
12992
|
+
values[valuesById[26] = "PERU"] = 26;
|
|
12993
|
+
values[valuesById[27] = "POLAND"] = 27;
|
|
12994
|
+
values[valuesById[28] = "PORTUGAL"] = 28;
|
|
12995
|
+
values[valuesById[29] = "SINGAPORE"] = 29;
|
|
12996
|
+
values[valuesById[30] = "SOUTH_AFRICA"] = 30;
|
|
12997
|
+
values[valuesById[31] = "SPAIN"] = 31;
|
|
12998
|
+
values[valuesById[32] = "SWEDEN"] = 32;
|
|
12999
|
+
values[valuesById[33] = "TAIWAN"] = 33;
|
|
13000
|
+
values[valuesById[34] = "THAILAND"] = 34;
|
|
13001
|
+
values[valuesById[35] = "TURKEY"] = 35;
|
|
13002
|
+
values[valuesById[36] = "UNITED_KINGDOM"] = 36;
|
|
13003
|
+
values[valuesById[37] = "UNITED_STATES"] = 37;
|
|
13004
|
+
values[valuesById[38] = "URUGUAY"] = 38;
|
|
13005
|
+
values[valuesById[39] = "VENEZUELA"] = 39;
|
|
13006
|
+
values[valuesById[40] = "INTERNAL"] = 40;
|
|
13007
|
+
return values;
|
|
13008
|
+
})();
|
|
13009
|
+
|
|
13010
|
+
/**
|
|
13011
|
+
* IndustryCategory enum.
|
|
13012
|
+
* @name google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory
|
|
13013
|
+
* @enum {number}
|
|
13014
|
+
* @property {number} INDUSTRY_UNSPECIFIED=0 INDUSTRY_UNSPECIFIED value
|
|
13015
|
+
* @property {number} FINANCE=1 FINANCE value
|
|
13016
|
+
* @property {number} HEALTH=2 HEALTH value
|
|
13017
|
+
* @property {number} TELECOMMUNICATIONS=3 TELECOMMUNICATIONS value
|
|
13018
|
+
*/
|
|
13019
|
+
InfoTypeCategory.IndustryCategory = (function() {
|
|
13020
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
13021
|
+
values[valuesById[0] = "INDUSTRY_UNSPECIFIED"] = 0;
|
|
13022
|
+
values[valuesById[1] = "FINANCE"] = 1;
|
|
13023
|
+
values[valuesById[2] = "HEALTH"] = 2;
|
|
13024
|
+
values[valuesById[3] = "TELECOMMUNICATIONS"] = 3;
|
|
13025
|
+
return values;
|
|
13026
|
+
})();
|
|
13027
|
+
|
|
13028
|
+
/**
|
|
13029
|
+
* TypeCategory enum.
|
|
13030
|
+
* @name google.privacy.dlp.v2.InfoTypeCategory.TypeCategory
|
|
13031
|
+
* @enum {number}
|
|
13032
|
+
* @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value
|
|
13033
|
+
* @property {number} PII=1 PII value
|
|
13034
|
+
* @property {number} SPII=2 SPII value
|
|
13035
|
+
* @property {number} DEMOGRAPHIC=3 DEMOGRAPHIC value
|
|
13036
|
+
* @property {number} CREDENTIAL=4 CREDENTIAL value
|
|
13037
|
+
* @property {number} GOVERNMENT_ID=5 GOVERNMENT_ID value
|
|
13038
|
+
* @property {number} DOCUMENT=6 DOCUMENT value
|
|
13039
|
+
* @property {number} CONTEXTUAL_INFORMATION=7 CONTEXTUAL_INFORMATION value
|
|
13040
|
+
*/
|
|
13041
|
+
InfoTypeCategory.TypeCategory = (function() {
|
|
13042
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
13043
|
+
values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0;
|
|
13044
|
+
values[valuesById[1] = "PII"] = 1;
|
|
13045
|
+
values[valuesById[2] = "SPII"] = 2;
|
|
13046
|
+
values[valuesById[3] = "DEMOGRAPHIC"] = 3;
|
|
13047
|
+
values[valuesById[4] = "CREDENTIAL"] = 4;
|
|
13048
|
+
values[valuesById[5] = "GOVERNMENT_ID"] = 5;
|
|
13049
|
+
values[valuesById[6] = "DOCUMENT"] = 6;
|
|
13050
|
+
values[valuesById[7] = "CONTEXTUAL_INFORMATION"] = 7;
|
|
13051
|
+
return values;
|
|
13052
|
+
})();
|
|
13053
|
+
|
|
13054
|
+
return InfoTypeCategory;
|
|
13055
|
+
})();
|
|
13056
|
+
|
|
12342
13057
|
v2.ListInfoTypesRequest = (function() {
|
|
12343
13058
|
|
|
12344
13059
|
/**
|
|
@@ -65474,6 +66189,7 @@
|
|
|
65474
66189
|
* @property {boolean|null} [packed] FieldOptions packed
|
|
65475
66190
|
* @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype
|
|
65476
66191
|
* @property {boolean|null} [lazy] FieldOptions lazy
|
|
66192
|
+
* @property {boolean|null} [unverifiedLazy] FieldOptions unverifiedLazy
|
|
65477
66193
|
* @property {boolean|null} [deprecated] FieldOptions deprecated
|
|
65478
66194
|
* @property {boolean|null} [weak] FieldOptions weak
|
|
65479
66195
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FieldOptions uninterpretedOption
|
|
@@ -65530,6 +66246,14 @@
|
|
|
65530
66246
|
*/
|
|
65531
66247
|
FieldOptions.prototype.lazy = false;
|
|
65532
66248
|
|
|
66249
|
+
/**
|
|
66250
|
+
* FieldOptions unverifiedLazy.
|
|
66251
|
+
* @member {boolean} unverifiedLazy
|
|
66252
|
+
* @memberof google.protobuf.FieldOptions
|
|
66253
|
+
* @instance
|
|
66254
|
+
*/
|
|
66255
|
+
FieldOptions.prototype.unverifiedLazy = false;
|
|
66256
|
+
|
|
65533
66257
|
/**
|
|
65534
66258
|
* FieldOptions deprecated.
|
|
65535
66259
|
* @member {boolean} deprecated
|
|
@@ -65606,6 +66330,8 @@
|
|
|
65606
66330
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype);
|
|
65607
66331
|
if (message.weak != null && Object.hasOwnProperty.call(message, "weak"))
|
|
65608
66332
|
writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak);
|
|
66333
|
+
if (message.unverifiedLazy != null && Object.hasOwnProperty.call(message, "unverifiedLazy"))
|
|
66334
|
+
writer.uint32(/* id 15, wireType 0 =*/120).bool(message.unverifiedLazy);
|
|
65609
66335
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
|
65610
66336
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
|
65611
66337
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
@@ -65663,6 +66389,9 @@
|
|
|
65663
66389
|
case 5:
|
|
65664
66390
|
message.lazy = reader.bool();
|
|
65665
66391
|
break;
|
|
66392
|
+
case 15:
|
|
66393
|
+
message.unverifiedLazy = reader.bool();
|
|
66394
|
+
break;
|
|
65666
66395
|
case 3:
|
|
65667
66396
|
message.deprecated = reader.bool();
|
|
65668
66397
|
break;
|
|
@@ -65746,6 +66475,9 @@
|
|
|
65746
66475
|
if (message.lazy != null && message.hasOwnProperty("lazy"))
|
|
65747
66476
|
if (typeof message.lazy !== "boolean")
|
|
65748
66477
|
return "lazy: boolean expected";
|
|
66478
|
+
if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy"))
|
|
66479
|
+
if (typeof message.unverifiedLazy !== "boolean")
|
|
66480
|
+
return "unverifiedLazy: boolean expected";
|
|
65749
66481
|
if (message.deprecated != null && message.hasOwnProperty("deprecated"))
|
|
65750
66482
|
if (typeof message.deprecated !== "boolean")
|
|
65751
66483
|
return "deprecated: boolean expected";
|
|
@@ -65831,6 +66563,8 @@
|
|
|
65831
66563
|
}
|
|
65832
66564
|
if (object.lazy != null)
|
|
65833
66565
|
message.lazy = Boolean(object.lazy);
|
|
66566
|
+
if (object.unverifiedLazy != null)
|
|
66567
|
+
message.unverifiedLazy = Boolean(object.unverifiedLazy);
|
|
65834
66568
|
if (object.deprecated != null)
|
|
65835
66569
|
message.deprecated = Boolean(object.deprecated);
|
|
65836
66570
|
if (object.weak != null)
|
|
@@ -65918,6 +66652,7 @@
|
|
|
65918
66652
|
object.lazy = false;
|
|
65919
66653
|
object.jstype = options.enums === String ? "JS_NORMAL" : 0;
|
|
65920
66654
|
object.weak = false;
|
|
66655
|
+
object.unverifiedLazy = false;
|
|
65921
66656
|
object[".google.api.resourceReference"] = null;
|
|
65922
66657
|
}
|
|
65923
66658
|
if (message.ctype != null && message.hasOwnProperty("ctype"))
|
|
@@ -65932,6 +66667,8 @@
|
|
|
65932
66667
|
object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype;
|
|
65933
66668
|
if (message.weak != null && message.hasOwnProperty("weak"))
|
|
65934
66669
|
object.weak = message.weak;
|
|
66670
|
+
if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy"))
|
|
66671
|
+
object.unverifiedLazy = message.unverifiedLazy;
|
|
65935
66672
|
if (message.uninterpretedOption && message.uninterpretedOption.length) {
|
|
65936
66673
|
object.uninterpretedOption = [];
|
|
65937
66674
|
for (var j = 0; j < message.uninterpretedOption.length; ++j)
|