@google-cloud/dlp 6.0.1 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/README.md +2 -2
- package/build/protos/google/privacy/dlp/v2/dlp.proto +210 -17
- package/build/protos/google/privacy/dlp/v2/storage.proto +5 -0
- package/build/protos/protos.d.ts +610 -1
- package/build/protos/protos.js +1796 -142
- package/build/protos/protos.json +148 -5
- package/build/src/v2/dlp_service_client.d.ts +3 -0
- package/build/src/v2/dlp_service_client.js +3 -1
- package/package.json +1 -1
package/build/protos/protos.js
CHANGED
|
@@ -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;
|
|
@@ -50008,6 +50054,7 @@
|
|
|
50008
50054
|
* @property {google.privacy.dlp.v2.DataProfileAction.IPublishToChronicle|null} [publishToChronicle] DataProfileAction publishToChronicle
|
|
50009
50055
|
* @property {google.privacy.dlp.v2.DataProfileAction.IPublishToSecurityCommandCenter|null} [publishToScc] DataProfileAction publishToScc
|
|
50010
50056
|
* @property {google.privacy.dlp.v2.DataProfileAction.ITagResources|null} [tagResources] DataProfileAction tagResources
|
|
50057
|
+
* @property {google.privacy.dlp.v2.DataProfileAction.IPublishToDataplexCatalog|null} [publishToDataplexCatalog] DataProfileAction publishToDataplexCatalog
|
|
50011
50058
|
*/
|
|
50012
50059
|
|
|
50013
50060
|
/**
|
|
@@ -50065,17 +50112,25 @@
|
|
|
50065
50112
|
*/
|
|
50066
50113
|
DataProfileAction.prototype.tagResources = null;
|
|
50067
50114
|
|
|
50115
|
+
/**
|
|
50116
|
+
* DataProfileAction publishToDataplexCatalog.
|
|
50117
|
+
* @member {google.privacy.dlp.v2.DataProfileAction.IPublishToDataplexCatalog|null|undefined} publishToDataplexCatalog
|
|
50118
|
+
* @memberof google.privacy.dlp.v2.DataProfileAction
|
|
50119
|
+
* @instance
|
|
50120
|
+
*/
|
|
50121
|
+
DataProfileAction.prototype.publishToDataplexCatalog = null;
|
|
50122
|
+
|
|
50068
50123
|
// OneOf field names bound to virtual getters and setters
|
|
50069
50124
|
var $oneOfFields;
|
|
50070
50125
|
|
|
50071
50126
|
/**
|
|
50072
50127
|
* DataProfileAction action.
|
|
50073
|
-
* @member {"exportData"|"pubSubNotification"|"publishToChronicle"|"publishToScc"|"tagResources"|undefined} action
|
|
50128
|
+
* @member {"exportData"|"pubSubNotification"|"publishToChronicle"|"publishToScc"|"tagResources"|"publishToDataplexCatalog"|undefined} action
|
|
50074
50129
|
* @memberof google.privacy.dlp.v2.DataProfileAction
|
|
50075
50130
|
* @instance
|
|
50076
50131
|
*/
|
|
50077
50132
|
Object.defineProperty(DataProfileAction.prototype, "action", {
|
|
50078
|
-
get: $util.oneOfGetter($oneOfFields = ["exportData", "pubSubNotification", "publishToChronicle", "publishToScc", "tagResources"]),
|
|
50133
|
+
get: $util.oneOfGetter($oneOfFields = ["exportData", "pubSubNotification", "publishToChronicle", "publishToScc", "tagResources", "publishToDataplexCatalog"]),
|
|
50079
50134
|
set: $util.oneOfSetter($oneOfFields)
|
|
50080
50135
|
});
|
|
50081
50136
|
|
|
@@ -50113,6 +50168,8 @@
|
|
|
50113
50168
|
$root.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter.encode(message.publishToScc, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
50114
50169
|
if (message.tagResources != null && Object.hasOwnProperty.call(message, "tagResources"))
|
|
50115
50170
|
$root.google.privacy.dlp.v2.DataProfileAction.TagResources.encode(message.tagResources, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
50171
|
+
if (message.publishToDataplexCatalog != null && Object.hasOwnProperty.call(message, "publishToDataplexCatalog"))
|
|
50172
|
+
$root.google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog.encode(message.publishToDataplexCatalog, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
50116
50173
|
return writer;
|
|
50117
50174
|
};
|
|
50118
50175
|
|
|
@@ -50167,6 +50224,10 @@
|
|
|
50167
50224
|
message.tagResources = $root.google.privacy.dlp.v2.DataProfileAction.TagResources.decode(reader, reader.uint32());
|
|
50168
50225
|
break;
|
|
50169
50226
|
}
|
|
50227
|
+
case 9: {
|
|
50228
|
+
message.publishToDataplexCatalog = $root.google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog.decode(reader, reader.uint32());
|
|
50229
|
+
break;
|
|
50230
|
+
}
|
|
50170
50231
|
default:
|
|
50171
50232
|
reader.skipType(tag & 7);
|
|
50172
50233
|
break;
|
|
@@ -50251,6 +50312,16 @@
|
|
|
50251
50312
|
return "tagResources." + error;
|
|
50252
50313
|
}
|
|
50253
50314
|
}
|
|
50315
|
+
if (message.publishToDataplexCatalog != null && message.hasOwnProperty("publishToDataplexCatalog")) {
|
|
50316
|
+
if (properties.action === 1)
|
|
50317
|
+
return "action: multiple values";
|
|
50318
|
+
properties.action = 1;
|
|
50319
|
+
{
|
|
50320
|
+
var error = $root.google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog.verify(message.publishToDataplexCatalog);
|
|
50321
|
+
if (error)
|
|
50322
|
+
return "publishToDataplexCatalog." + error;
|
|
50323
|
+
}
|
|
50324
|
+
}
|
|
50254
50325
|
return null;
|
|
50255
50326
|
};
|
|
50256
50327
|
|
|
@@ -50291,6 +50362,11 @@
|
|
|
50291
50362
|
throw TypeError(".google.privacy.dlp.v2.DataProfileAction.tagResources: object expected");
|
|
50292
50363
|
message.tagResources = $root.google.privacy.dlp.v2.DataProfileAction.TagResources.fromObject(object.tagResources);
|
|
50293
50364
|
}
|
|
50365
|
+
if (object.publishToDataplexCatalog != null) {
|
|
50366
|
+
if (typeof object.publishToDataplexCatalog !== "object")
|
|
50367
|
+
throw TypeError(".google.privacy.dlp.v2.DataProfileAction.publishToDataplexCatalog: object expected");
|
|
50368
|
+
message.publishToDataplexCatalog = $root.google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog.fromObject(object.publishToDataplexCatalog);
|
|
50369
|
+
}
|
|
50294
50370
|
return message;
|
|
50295
50371
|
};
|
|
50296
50372
|
|
|
@@ -50332,6 +50408,11 @@
|
|
|
50332
50408
|
if (options.oneofs)
|
|
50333
50409
|
object.action = "tagResources";
|
|
50334
50410
|
}
|
|
50411
|
+
if (message.publishToDataplexCatalog != null && message.hasOwnProperty("publishToDataplexCatalog")) {
|
|
50412
|
+
object.publishToDataplexCatalog = $root.google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog.toObject(message.publishToDataplexCatalog, options);
|
|
50413
|
+
if (options.oneofs)
|
|
50414
|
+
object.action = "publishToDataplexCatalog";
|
|
50415
|
+
}
|
|
50335
50416
|
return object;
|
|
50336
50417
|
};
|
|
50337
50418
|
|
|
@@ -50368,6 +50449,7 @@
|
|
|
50368
50449
|
* @memberof google.privacy.dlp.v2.DataProfileAction
|
|
50369
50450
|
* @interface IExport
|
|
50370
50451
|
* @property {google.privacy.dlp.v2.IBigQueryTable|null} [profileTable] Export profileTable
|
|
50452
|
+
* @property {google.privacy.dlp.v2.IBigQueryTable|null} [sampleFindingsTable] Export sampleFindingsTable
|
|
50371
50453
|
*/
|
|
50372
50454
|
|
|
50373
50455
|
/**
|
|
@@ -50393,6 +50475,14 @@
|
|
|
50393
50475
|
*/
|
|
50394
50476
|
Export.prototype.profileTable = null;
|
|
50395
50477
|
|
|
50478
|
+
/**
|
|
50479
|
+
* Export sampleFindingsTable.
|
|
50480
|
+
* @member {google.privacy.dlp.v2.IBigQueryTable|null|undefined} sampleFindingsTable
|
|
50481
|
+
* @memberof google.privacy.dlp.v2.DataProfileAction.Export
|
|
50482
|
+
* @instance
|
|
50483
|
+
*/
|
|
50484
|
+
Export.prototype.sampleFindingsTable = null;
|
|
50485
|
+
|
|
50396
50486
|
/**
|
|
50397
50487
|
* Creates a new Export instance using the specified properties.
|
|
50398
50488
|
* @function create
|
|
@@ -50419,6 +50509,8 @@
|
|
|
50419
50509
|
writer = $Writer.create();
|
|
50420
50510
|
if (message.profileTable != null && Object.hasOwnProperty.call(message, "profileTable"))
|
|
50421
50511
|
$root.google.privacy.dlp.v2.BigQueryTable.encode(message.profileTable, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
50512
|
+
if (message.sampleFindingsTable != null && Object.hasOwnProperty.call(message, "sampleFindingsTable"))
|
|
50513
|
+
$root.google.privacy.dlp.v2.BigQueryTable.encode(message.sampleFindingsTable, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
50422
50514
|
return writer;
|
|
50423
50515
|
};
|
|
50424
50516
|
|
|
@@ -50457,6 +50549,10 @@
|
|
|
50457
50549
|
message.profileTable = $root.google.privacy.dlp.v2.BigQueryTable.decode(reader, reader.uint32());
|
|
50458
50550
|
break;
|
|
50459
50551
|
}
|
|
50552
|
+
case 2: {
|
|
50553
|
+
message.sampleFindingsTable = $root.google.privacy.dlp.v2.BigQueryTable.decode(reader, reader.uint32());
|
|
50554
|
+
break;
|
|
50555
|
+
}
|
|
50460
50556
|
default:
|
|
50461
50557
|
reader.skipType(tag & 7);
|
|
50462
50558
|
break;
|
|
@@ -50497,6 +50593,11 @@
|
|
|
50497
50593
|
if (error)
|
|
50498
50594
|
return "profileTable." + error;
|
|
50499
50595
|
}
|
|
50596
|
+
if (message.sampleFindingsTable != null && message.hasOwnProperty("sampleFindingsTable")) {
|
|
50597
|
+
var error = $root.google.privacy.dlp.v2.BigQueryTable.verify(message.sampleFindingsTable);
|
|
50598
|
+
if (error)
|
|
50599
|
+
return "sampleFindingsTable." + error;
|
|
50600
|
+
}
|
|
50500
50601
|
return null;
|
|
50501
50602
|
};
|
|
50502
50603
|
|
|
@@ -50517,6 +50618,11 @@
|
|
|
50517
50618
|
throw TypeError(".google.privacy.dlp.v2.DataProfileAction.Export.profileTable: object expected");
|
|
50518
50619
|
message.profileTable = $root.google.privacy.dlp.v2.BigQueryTable.fromObject(object.profileTable);
|
|
50519
50620
|
}
|
|
50621
|
+
if (object.sampleFindingsTable != null) {
|
|
50622
|
+
if (typeof object.sampleFindingsTable !== "object")
|
|
50623
|
+
throw TypeError(".google.privacy.dlp.v2.DataProfileAction.Export.sampleFindingsTable: object expected");
|
|
50624
|
+
message.sampleFindingsTable = $root.google.privacy.dlp.v2.BigQueryTable.fromObject(object.sampleFindingsTable);
|
|
50625
|
+
}
|
|
50520
50626
|
return message;
|
|
50521
50627
|
};
|
|
50522
50628
|
|
|
@@ -50533,10 +50639,14 @@
|
|
|
50533
50639
|
if (!options)
|
|
50534
50640
|
options = {};
|
|
50535
50641
|
var object = {};
|
|
50536
|
-
if (options.defaults)
|
|
50642
|
+
if (options.defaults) {
|
|
50537
50643
|
object.profileTable = null;
|
|
50644
|
+
object.sampleFindingsTable = null;
|
|
50645
|
+
}
|
|
50538
50646
|
if (message.profileTable != null && message.hasOwnProperty("profileTable"))
|
|
50539
50647
|
object.profileTable = $root.google.privacy.dlp.v2.BigQueryTable.toObject(message.profileTable, options);
|
|
50648
|
+
if (message.sampleFindingsTable != null && message.hasOwnProperty("sampleFindingsTable"))
|
|
50649
|
+
object.sampleFindingsTable = $root.google.privacy.dlp.v2.BigQueryTable.toObject(message.sampleFindingsTable, options);
|
|
50540
50650
|
return object;
|
|
50541
50651
|
};
|
|
50542
50652
|
|
|
@@ -51298,6 +51408,209 @@
|
|
|
51298
51408
|
return PublishToSecurityCommandCenter;
|
|
51299
51409
|
})();
|
|
51300
51410
|
|
|
51411
|
+
DataProfileAction.PublishToDataplexCatalog = (function() {
|
|
51412
|
+
|
|
51413
|
+
/**
|
|
51414
|
+
* Properties of a PublishToDataplexCatalog.
|
|
51415
|
+
* @memberof google.privacy.dlp.v2.DataProfileAction
|
|
51416
|
+
* @interface IPublishToDataplexCatalog
|
|
51417
|
+
* @property {boolean|null} [lowerDataRiskToLow] PublishToDataplexCatalog lowerDataRiskToLow
|
|
51418
|
+
*/
|
|
51419
|
+
|
|
51420
|
+
/**
|
|
51421
|
+
* Constructs a new PublishToDataplexCatalog.
|
|
51422
|
+
* @memberof google.privacy.dlp.v2.DataProfileAction
|
|
51423
|
+
* @classdesc Represents a PublishToDataplexCatalog.
|
|
51424
|
+
* @implements IPublishToDataplexCatalog
|
|
51425
|
+
* @constructor
|
|
51426
|
+
* @param {google.privacy.dlp.v2.DataProfileAction.IPublishToDataplexCatalog=} [properties] Properties to set
|
|
51427
|
+
*/
|
|
51428
|
+
function PublishToDataplexCatalog(properties) {
|
|
51429
|
+
if (properties)
|
|
51430
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
51431
|
+
if (properties[keys[i]] != null)
|
|
51432
|
+
this[keys[i]] = properties[keys[i]];
|
|
51433
|
+
}
|
|
51434
|
+
|
|
51435
|
+
/**
|
|
51436
|
+
* PublishToDataplexCatalog lowerDataRiskToLow.
|
|
51437
|
+
* @member {boolean} lowerDataRiskToLow
|
|
51438
|
+
* @memberof google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog
|
|
51439
|
+
* @instance
|
|
51440
|
+
*/
|
|
51441
|
+
PublishToDataplexCatalog.prototype.lowerDataRiskToLow = false;
|
|
51442
|
+
|
|
51443
|
+
/**
|
|
51444
|
+
* Creates a new PublishToDataplexCatalog instance using the specified properties.
|
|
51445
|
+
* @function create
|
|
51446
|
+
* @memberof google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog
|
|
51447
|
+
* @static
|
|
51448
|
+
* @param {google.privacy.dlp.v2.DataProfileAction.IPublishToDataplexCatalog=} [properties] Properties to set
|
|
51449
|
+
* @returns {google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog} PublishToDataplexCatalog instance
|
|
51450
|
+
*/
|
|
51451
|
+
PublishToDataplexCatalog.create = function create(properties) {
|
|
51452
|
+
return new PublishToDataplexCatalog(properties);
|
|
51453
|
+
};
|
|
51454
|
+
|
|
51455
|
+
/**
|
|
51456
|
+
* Encodes the specified PublishToDataplexCatalog message. Does not implicitly {@link google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog.verify|verify} messages.
|
|
51457
|
+
* @function encode
|
|
51458
|
+
* @memberof google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog
|
|
51459
|
+
* @static
|
|
51460
|
+
* @param {google.privacy.dlp.v2.DataProfileAction.IPublishToDataplexCatalog} message PublishToDataplexCatalog message or plain object to encode
|
|
51461
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
51462
|
+
* @returns {$protobuf.Writer} Writer
|
|
51463
|
+
*/
|
|
51464
|
+
PublishToDataplexCatalog.encode = function encode(message, writer) {
|
|
51465
|
+
if (!writer)
|
|
51466
|
+
writer = $Writer.create();
|
|
51467
|
+
if (message.lowerDataRiskToLow != null && Object.hasOwnProperty.call(message, "lowerDataRiskToLow"))
|
|
51468
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.lowerDataRiskToLow);
|
|
51469
|
+
return writer;
|
|
51470
|
+
};
|
|
51471
|
+
|
|
51472
|
+
/**
|
|
51473
|
+
* Encodes the specified PublishToDataplexCatalog message, length delimited. Does not implicitly {@link google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog.verify|verify} messages.
|
|
51474
|
+
* @function encodeDelimited
|
|
51475
|
+
* @memberof google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog
|
|
51476
|
+
* @static
|
|
51477
|
+
* @param {google.privacy.dlp.v2.DataProfileAction.IPublishToDataplexCatalog} message PublishToDataplexCatalog message or plain object to encode
|
|
51478
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
51479
|
+
* @returns {$protobuf.Writer} Writer
|
|
51480
|
+
*/
|
|
51481
|
+
PublishToDataplexCatalog.encodeDelimited = function encodeDelimited(message, writer) {
|
|
51482
|
+
return this.encode(message, writer).ldelim();
|
|
51483
|
+
};
|
|
51484
|
+
|
|
51485
|
+
/**
|
|
51486
|
+
* Decodes a PublishToDataplexCatalog message from the specified reader or buffer.
|
|
51487
|
+
* @function decode
|
|
51488
|
+
* @memberof google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog
|
|
51489
|
+
* @static
|
|
51490
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
51491
|
+
* @param {number} [length] Message length if known beforehand
|
|
51492
|
+
* @returns {google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog} PublishToDataplexCatalog
|
|
51493
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
51494
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
51495
|
+
*/
|
|
51496
|
+
PublishToDataplexCatalog.decode = function decode(reader, length) {
|
|
51497
|
+
if (!(reader instanceof $Reader))
|
|
51498
|
+
reader = $Reader.create(reader);
|
|
51499
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog();
|
|
51500
|
+
while (reader.pos < end) {
|
|
51501
|
+
var tag = reader.uint32();
|
|
51502
|
+
switch (tag >>> 3) {
|
|
51503
|
+
case 1: {
|
|
51504
|
+
message.lowerDataRiskToLow = reader.bool();
|
|
51505
|
+
break;
|
|
51506
|
+
}
|
|
51507
|
+
default:
|
|
51508
|
+
reader.skipType(tag & 7);
|
|
51509
|
+
break;
|
|
51510
|
+
}
|
|
51511
|
+
}
|
|
51512
|
+
return message;
|
|
51513
|
+
};
|
|
51514
|
+
|
|
51515
|
+
/**
|
|
51516
|
+
* Decodes a PublishToDataplexCatalog message from the specified reader or buffer, length delimited.
|
|
51517
|
+
* @function decodeDelimited
|
|
51518
|
+
* @memberof google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog
|
|
51519
|
+
* @static
|
|
51520
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
51521
|
+
* @returns {google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog} PublishToDataplexCatalog
|
|
51522
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
51523
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
51524
|
+
*/
|
|
51525
|
+
PublishToDataplexCatalog.decodeDelimited = function decodeDelimited(reader) {
|
|
51526
|
+
if (!(reader instanceof $Reader))
|
|
51527
|
+
reader = new $Reader(reader);
|
|
51528
|
+
return this.decode(reader, reader.uint32());
|
|
51529
|
+
};
|
|
51530
|
+
|
|
51531
|
+
/**
|
|
51532
|
+
* Verifies a PublishToDataplexCatalog message.
|
|
51533
|
+
* @function verify
|
|
51534
|
+
* @memberof google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog
|
|
51535
|
+
* @static
|
|
51536
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
51537
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
51538
|
+
*/
|
|
51539
|
+
PublishToDataplexCatalog.verify = function verify(message) {
|
|
51540
|
+
if (typeof message !== "object" || message === null)
|
|
51541
|
+
return "object expected";
|
|
51542
|
+
if (message.lowerDataRiskToLow != null && message.hasOwnProperty("lowerDataRiskToLow"))
|
|
51543
|
+
if (typeof message.lowerDataRiskToLow !== "boolean")
|
|
51544
|
+
return "lowerDataRiskToLow: boolean expected";
|
|
51545
|
+
return null;
|
|
51546
|
+
};
|
|
51547
|
+
|
|
51548
|
+
/**
|
|
51549
|
+
* Creates a PublishToDataplexCatalog message from a plain object. Also converts values to their respective internal types.
|
|
51550
|
+
* @function fromObject
|
|
51551
|
+
* @memberof google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog
|
|
51552
|
+
* @static
|
|
51553
|
+
* @param {Object.<string,*>} object Plain object
|
|
51554
|
+
* @returns {google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog} PublishToDataplexCatalog
|
|
51555
|
+
*/
|
|
51556
|
+
PublishToDataplexCatalog.fromObject = function fromObject(object) {
|
|
51557
|
+
if (object instanceof $root.google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog)
|
|
51558
|
+
return object;
|
|
51559
|
+
var message = new $root.google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog();
|
|
51560
|
+
if (object.lowerDataRiskToLow != null)
|
|
51561
|
+
message.lowerDataRiskToLow = Boolean(object.lowerDataRiskToLow);
|
|
51562
|
+
return message;
|
|
51563
|
+
};
|
|
51564
|
+
|
|
51565
|
+
/**
|
|
51566
|
+
* Creates a plain object from a PublishToDataplexCatalog message. Also converts values to other types if specified.
|
|
51567
|
+
* @function toObject
|
|
51568
|
+
* @memberof google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog
|
|
51569
|
+
* @static
|
|
51570
|
+
* @param {google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog} message PublishToDataplexCatalog
|
|
51571
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
51572
|
+
* @returns {Object.<string,*>} Plain object
|
|
51573
|
+
*/
|
|
51574
|
+
PublishToDataplexCatalog.toObject = function toObject(message, options) {
|
|
51575
|
+
if (!options)
|
|
51576
|
+
options = {};
|
|
51577
|
+
var object = {};
|
|
51578
|
+
if (options.defaults)
|
|
51579
|
+
object.lowerDataRiskToLow = false;
|
|
51580
|
+
if (message.lowerDataRiskToLow != null && message.hasOwnProperty("lowerDataRiskToLow"))
|
|
51581
|
+
object.lowerDataRiskToLow = message.lowerDataRiskToLow;
|
|
51582
|
+
return object;
|
|
51583
|
+
};
|
|
51584
|
+
|
|
51585
|
+
/**
|
|
51586
|
+
* Converts this PublishToDataplexCatalog to JSON.
|
|
51587
|
+
* @function toJSON
|
|
51588
|
+
* @memberof google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog
|
|
51589
|
+
* @instance
|
|
51590
|
+
* @returns {Object.<string,*>} JSON object
|
|
51591
|
+
*/
|
|
51592
|
+
PublishToDataplexCatalog.prototype.toJSON = function toJSON() {
|
|
51593
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
51594
|
+
};
|
|
51595
|
+
|
|
51596
|
+
/**
|
|
51597
|
+
* Gets the default type url for PublishToDataplexCatalog
|
|
51598
|
+
* @function getTypeUrl
|
|
51599
|
+
* @memberof google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog
|
|
51600
|
+
* @static
|
|
51601
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
51602
|
+
* @returns {string} The default type url
|
|
51603
|
+
*/
|
|
51604
|
+
PublishToDataplexCatalog.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
51605
|
+
if (typeUrlPrefix === undefined) {
|
|
51606
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
51607
|
+
}
|
|
51608
|
+
return typeUrlPrefix + "/google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog";
|
|
51609
|
+
};
|
|
51610
|
+
|
|
51611
|
+
return PublishToDataplexCatalog;
|
|
51612
|
+
})();
|
|
51613
|
+
|
|
51301
51614
|
DataProfileAction.TagResources = (function() {
|
|
51302
51615
|
|
|
51303
51616
|
/**
|
|
@@ -51946,156 +52259,1080 @@
|
|
|
51946
52259
|
return writer;
|
|
51947
52260
|
};
|
|
51948
52261
|
|
|
51949
|
-
/**
|
|
51950
|
-
* Encodes the specified TagValue message, length delimited. Does not implicitly {@link google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue.verify|verify} messages.
|
|
51951
|
-
* @function encodeDelimited
|
|
51952
|
-
* @memberof google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue
|
|
51953
|
-
* @static
|
|
51954
|
-
* @param {google.privacy.dlp.v2.DataProfileAction.TagResources.ITagValue} message TagValue message or plain object to encode
|
|
51955
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
51956
|
-
* @returns {$protobuf.Writer} Writer
|
|
51957
|
-
*/
|
|
51958
|
-
TagValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
51959
|
-
return this.encode(message, writer).ldelim();
|
|
51960
|
-
};
|
|
52262
|
+
/**
|
|
52263
|
+
* Encodes the specified TagValue message, length delimited. Does not implicitly {@link google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue.verify|verify} messages.
|
|
52264
|
+
* @function encodeDelimited
|
|
52265
|
+
* @memberof google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue
|
|
52266
|
+
* @static
|
|
52267
|
+
* @param {google.privacy.dlp.v2.DataProfileAction.TagResources.ITagValue} message TagValue message or plain object to encode
|
|
52268
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
52269
|
+
* @returns {$protobuf.Writer} Writer
|
|
52270
|
+
*/
|
|
52271
|
+
TagValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
52272
|
+
return this.encode(message, writer).ldelim();
|
|
52273
|
+
};
|
|
52274
|
+
|
|
52275
|
+
/**
|
|
52276
|
+
* Decodes a TagValue message from the specified reader or buffer.
|
|
52277
|
+
* @function decode
|
|
52278
|
+
* @memberof google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue
|
|
52279
|
+
* @static
|
|
52280
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
52281
|
+
* @param {number} [length] Message length if known beforehand
|
|
52282
|
+
* @returns {google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue} TagValue
|
|
52283
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
52284
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
52285
|
+
*/
|
|
52286
|
+
TagValue.decode = function decode(reader, length) {
|
|
52287
|
+
if (!(reader instanceof $Reader))
|
|
52288
|
+
reader = $Reader.create(reader);
|
|
52289
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue();
|
|
52290
|
+
while (reader.pos < end) {
|
|
52291
|
+
var tag = reader.uint32();
|
|
52292
|
+
switch (tag >>> 3) {
|
|
52293
|
+
case 1: {
|
|
52294
|
+
message.namespacedValue = reader.string();
|
|
52295
|
+
break;
|
|
52296
|
+
}
|
|
52297
|
+
default:
|
|
52298
|
+
reader.skipType(tag & 7);
|
|
52299
|
+
break;
|
|
52300
|
+
}
|
|
52301
|
+
}
|
|
52302
|
+
return message;
|
|
52303
|
+
};
|
|
52304
|
+
|
|
52305
|
+
/**
|
|
52306
|
+
* Decodes a TagValue message from the specified reader or buffer, length delimited.
|
|
52307
|
+
* @function decodeDelimited
|
|
52308
|
+
* @memberof google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue
|
|
52309
|
+
* @static
|
|
52310
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
52311
|
+
* @returns {google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue} TagValue
|
|
52312
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
52313
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
52314
|
+
*/
|
|
52315
|
+
TagValue.decodeDelimited = function decodeDelimited(reader) {
|
|
52316
|
+
if (!(reader instanceof $Reader))
|
|
52317
|
+
reader = new $Reader(reader);
|
|
52318
|
+
return this.decode(reader, reader.uint32());
|
|
52319
|
+
};
|
|
52320
|
+
|
|
52321
|
+
/**
|
|
52322
|
+
* Verifies a TagValue message.
|
|
52323
|
+
* @function verify
|
|
52324
|
+
* @memberof google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue
|
|
52325
|
+
* @static
|
|
52326
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
52327
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
52328
|
+
*/
|
|
52329
|
+
TagValue.verify = function verify(message) {
|
|
52330
|
+
if (typeof message !== "object" || message === null)
|
|
52331
|
+
return "object expected";
|
|
52332
|
+
var properties = {};
|
|
52333
|
+
if (message.namespacedValue != null && message.hasOwnProperty("namespacedValue")) {
|
|
52334
|
+
properties.format = 1;
|
|
52335
|
+
if (!$util.isString(message.namespacedValue))
|
|
52336
|
+
return "namespacedValue: string expected";
|
|
52337
|
+
}
|
|
52338
|
+
return null;
|
|
52339
|
+
};
|
|
52340
|
+
|
|
52341
|
+
/**
|
|
52342
|
+
* Creates a TagValue message from a plain object. Also converts values to their respective internal types.
|
|
52343
|
+
* @function fromObject
|
|
52344
|
+
* @memberof google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue
|
|
52345
|
+
* @static
|
|
52346
|
+
* @param {Object.<string,*>} object Plain object
|
|
52347
|
+
* @returns {google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue} TagValue
|
|
52348
|
+
*/
|
|
52349
|
+
TagValue.fromObject = function fromObject(object) {
|
|
52350
|
+
if (object instanceof $root.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue)
|
|
52351
|
+
return object;
|
|
52352
|
+
var message = new $root.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue();
|
|
52353
|
+
if (object.namespacedValue != null)
|
|
52354
|
+
message.namespacedValue = String(object.namespacedValue);
|
|
52355
|
+
return message;
|
|
52356
|
+
};
|
|
52357
|
+
|
|
52358
|
+
/**
|
|
52359
|
+
* Creates a plain object from a TagValue message. Also converts values to other types if specified.
|
|
52360
|
+
* @function toObject
|
|
52361
|
+
* @memberof google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue
|
|
52362
|
+
* @static
|
|
52363
|
+
* @param {google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue} message TagValue
|
|
52364
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
52365
|
+
* @returns {Object.<string,*>} Plain object
|
|
52366
|
+
*/
|
|
52367
|
+
TagValue.toObject = function toObject(message, options) {
|
|
52368
|
+
if (!options)
|
|
52369
|
+
options = {};
|
|
52370
|
+
var object = {};
|
|
52371
|
+
if (message.namespacedValue != null && message.hasOwnProperty("namespacedValue")) {
|
|
52372
|
+
object.namespacedValue = message.namespacedValue;
|
|
52373
|
+
if (options.oneofs)
|
|
52374
|
+
object.format = "namespacedValue";
|
|
52375
|
+
}
|
|
52376
|
+
return object;
|
|
52377
|
+
};
|
|
52378
|
+
|
|
52379
|
+
/**
|
|
52380
|
+
* Converts this TagValue to JSON.
|
|
52381
|
+
* @function toJSON
|
|
52382
|
+
* @memberof google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue
|
|
52383
|
+
* @instance
|
|
52384
|
+
* @returns {Object.<string,*>} JSON object
|
|
52385
|
+
*/
|
|
52386
|
+
TagValue.prototype.toJSON = function toJSON() {
|
|
52387
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
52388
|
+
};
|
|
52389
|
+
|
|
52390
|
+
/**
|
|
52391
|
+
* Gets the default type url for TagValue
|
|
52392
|
+
* @function getTypeUrl
|
|
52393
|
+
* @memberof google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue
|
|
52394
|
+
* @static
|
|
52395
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
52396
|
+
* @returns {string} The default type url
|
|
52397
|
+
*/
|
|
52398
|
+
TagValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
52399
|
+
if (typeUrlPrefix === undefined) {
|
|
52400
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
52401
|
+
}
|
|
52402
|
+
return typeUrlPrefix + "/google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue";
|
|
52403
|
+
};
|
|
52404
|
+
|
|
52405
|
+
return TagValue;
|
|
52406
|
+
})();
|
|
52407
|
+
|
|
52408
|
+
return TagResources;
|
|
52409
|
+
})();
|
|
52410
|
+
|
|
52411
|
+
return DataProfileAction;
|
|
52412
|
+
})();
|
|
52413
|
+
|
|
52414
|
+
v2.DataProfileFinding = (function() {
|
|
52415
|
+
|
|
52416
|
+
/**
|
|
52417
|
+
* Properties of a DataProfileFinding.
|
|
52418
|
+
* @memberof google.privacy.dlp.v2
|
|
52419
|
+
* @interface IDataProfileFinding
|
|
52420
|
+
* @property {string|null} [quote] DataProfileFinding quote
|
|
52421
|
+
* @property {google.privacy.dlp.v2.IInfoType|null} [infotype] DataProfileFinding infotype
|
|
52422
|
+
* @property {google.privacy.dlp.v2.IQuoteInfo|null} [quoteInfo] DataProfileFinding quoteInfo
|
|
52423
|
+
* @property {string|null} [dataProfileResourceName] DataProfileFinding dataProfileResourceName
|
|
52424
|
+
* @property {string|null} [findingId] DataProfileFinding findingId
|
|
52425
|
+
* @property {google.protobuf.ITimestamp|null} [timestamp] DataProfileFinding timestamp
|
|
52426
|
+
* @property {google.privacy.dlp.v2.IDataProfileFindingLocation|null} [location] DataProfileFinding location
|
|
52427
|
+
* @property {google.privacy.dlp.v2.ResourceVisibility|null} [resourceVisibility] DataProfileFinding resourceVisibility
|
|
52428
|
+
* @property {string|null} [fullResourceName] DataProfileFinding fullResourceName
|
|
52429
|
+
* @property {google.privacy.dlp.v2.IDataSourceType|null} [dataSourceType] DataProfileFinding dataSourceType
|
|
52430
|
+
*/
|
|
52431
|
+
|
|
52432
|
+
/**
|
|
52433
|
+
* Constructs a new DataProfileFinding.
|
|
52434
|
+
* @memberof google.privacy.dlp.v2
|
|
52435
|
+
* @classdesc Represents a DataProfileFinding.
|
|
52436
|
+
* @implements IDataProfileFinding
|
|
52437
|
+
* @constructor
|
|
52438
|
+
* @param {google.privacy.dlp.v2.IDataProfileFinding=} [properties] Properties to set
|
|
52439
|
+
*/
|
|
52440
|
+
function DataProfileFinding(properties) {
|
|
52441
|
+
if (properties)
|
|
52442
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
52443
|
+
if (properties[keys[i]] != null)
|
|
52444
|
+
this[keys[i]] = properties[keys[i]];
|
|
52445
|
+
}
|
|
52446
|
+
|
|
52447
|
+
/**
|
|
52448
|
+
* DataProfileFinding quote.
|
|
52449
|
+
* @member {string} quote
|
|
52450
|
+
* @memberof google.privacy.dlp.v2.DataProfileFinding
|
|
52451
|
+
* @instance
|
|
52452
|
+
*/
|
|
52453
|
+
DataProfileFinding.prototype.quote = "";
|
|
52454
|
+
|
|
52455
|
+
/**
|
|
52456
|
+
* DataProfileFinding infotype.
|
|
52457
|
+
* @member {google.privacy.dlp.v2.IInfoType|null|undefined} infotype
|
|
52458
|
+
* @memberof google.privacy.dlp.v2.DataProfileFinding
|
|
52459
|
+
* @instance
|
|
52460
|
+
*/
|
|
52461
|
+
DataProfileFinding.prototype.infotype = null;
|
|
52462
|
+
|
|
52463
|
+
/**
|
|
52464
|
+
* DataProfileFinding quoteInfo.
|
|
52465
|
+
* @member {google.privacy.dlp.v2.IQuoteInfo|null|undefined} quoteInfo
|
|
52466
|
+
* @memberof google.privacy.dlp.v2.DataProfileFinding
|
|
52467
|
+
* @instance
|
|
52468
|
+
*/
|
|
52469
|
+
DataProfileFinding.prototype.quoteInfo = null;
|
|
52470
|
+
|
|
52471
|
+
/**
|
|
52472
|
+
* DataProfileFinding dataProfileResourceName.
|
|
52473
|
+
* @member {string} dataProfileResourceName
|
|
52474
|
+
* @memberof google.privacy.dlp.v2.DataProfileFinding
|
|
52475
|
+
* @instance
|
|
52476
|
+
*/
|
|
52477
|
+
DataProfileFinding.prototype.dataProfileResourceName = "";
|
|
52478
|
+
|
|
52479
|
+
/**
|
|
52480
|
+
* DataProfileFinding findingId.
|
|
52481
|
+
* @member {string} findingId
|
|
52482
|
+
* @memberof google.privacy.dlp.v2.DataProfileFinding
|
|
52483
|
+
* @instance
|
|
52484
|
+
*/
|
|
52485
|
+
DataProfileFinding.prototype.findingId = "";
|
|
52486
|
+
|
|
52487
|
+
/**
|
|
52488
|
+
* DataProfileFinding timestamp.
|
|
52489
|
+
* @member {google.protobuf.ITimestamp|null|undefined} timestamp
|
|
52490
|
+
* @memberof google.privacy.dlp.v2.DataProfileFinding
|
|
52491
|
+
* @instance
|
|
52492
|
+
*/
|
|
52493
|
+
DataProfileFinding.prototype.timestamp = null;
|
|
52494
|
+
|
|
52495
|
+
/**
|
|
52496
|
+
* DataProfileFinding location.
|
|
52497
|
+
* @member {google.privacy.dlp.v2.IDataProfileFindingLocation|null|undefined} location
|
|
52498
|
+
* @memberof google.privacy.dlp.v2.DataProfileFinding
|
|
52499
|
+
* @instance
|
|
52500
|
+
*/
|
|
52501
|
+
DataProfileFinding.prototype.location = null;
|
|
52502
|
+
|
|
52503
|
+
/**
|
|
52504
|
+
* DataProfileFinding resourceVisibility.
|
|
52505
|
+
* @member {google.privacy.dlp.v2.ResourceVisibility} resourceVisibility
|
|
52506
|
+
* @memberof google.privacy.dlp.v2.DataProfileFinding
|
|
52507
|
+
* @instance
|
|
52508
|
+
*/
|
|
52509
|
+
DataProfileFinding.prototype.resourceVisibility = 0;
|
|
52510
|
+
|
|
52511
|
+
/**
|
|
52512
|
+
* DataProfileFinding fullResourceName.
|
|
52513
|
+
* @member {string} fullResourceName
|
|
52514
|
+
* @memberof google.privacy.dlp.v2.DataProfileFinding
|
|
52515
|
+
* @instance
|
|
52516
|
+
*/
|
|
52517
|
+
DataProfileFinding.prototype.fullResourceName = "";
|
|
52518
|
+
|
|
52519
|
+
/**
|
|
52520
|
+
* DataProfileFinding dataSourceType.
|
|
52521
|
+
* @member {google.privacy.dlp.v2.IDataSourceType|null|undefined} dataSourceType
|
|
52522
|
+
* @memberof google.privacy.dlp.v2.DataProfileFinding
|
|
52523
|
+
* @instance
|
|
52524
|
+
*/
|
|
52525
|
+
DataProfileFinding.prototype.dataSourceType = null;
|
|
52526
|
+
|
|
52527
|
+
/**
|
|
52528
|
+
* Creates a new DataProfileFinding instance using the specified properties.
|
|
52529
|
+
* @function create
|
|
52530
|
+
* @memberof google.privacy.dlp.v2.DataProfileFinding
|
|
52531
|
+
* @static
|
|
52532
|
+
* @param {google.privacy.dlp.v2.IDataProfileFinding=} [properties] Properties to set
|
|
52533
|
+
* @returns {google.privacy.dlp.v2.DataProfileFinding} DataProfileFinding instance
|
|
52534
|
+
*/
|
|
52535
|
+
DataProfileFinding.create = function create(properties) {
|
|
52536
|
+
return new DataProfileFinding(properties);
|
|
52537
|
+
};
|
|
52538
|
+
|
|
52539
|
+
/**
|
|
52540
|
+
* Encodes the specified DataProfileFinding message. Does not implicitly {@link google.privacy.dlp.v2.DataProfileFinding.verify|verify} messages.
|
|
52541
|
+
* @function encode
|
|
52542
|
+
* @memberof google.privacy.dlp.v2.DataProfileFinding
|
|
52543
|
+
* @static
|
|
52544
|
+
* @param {google.privacy.dlp.v2.IDataProfileFinding} message DataProfileFinding message or plain object to encode
|
|
52545
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
52546
|
+
* @returns {$protobuf.Writer} Writer
|
|
52547
|
+
*/
|
|
52548
|
+
DataProfileFinding.encode = function encode(message, writer) {
|
|
52549
|
+
if (!writer)
|
|
52550
|
+
writer = $Writer.create();
|
|
52551
|
+
if (message.quote != null && Object.hasOwnProperty.call(message, "quote"))
|
|
52552
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.quote);
|
|
52553
|
+
if (message.infotype != null && Object.hasOwnProperty.call(message, "infotype"))
|
|
52554
|
+
$root.google.privacy.dlp.v2.InfoType.encode(message.infotype, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
52555
|
+
if (message.quoteInfo != null && Object.hasOwnProperty.call(message, "quoteInfo"))
|
|
52556
|
+
$root.google.privacy.dlp.v2.QuoteInfo.encode(message.quoteInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
52557
|
+
if (message.dataProfileResourceName != null && Object.hasOwnProperty.call(message, "dataProfileResourceName"))
|
|
52558
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.dataProfileResourceName);
|
|
52559
|
+
if (message.findingId != null && Object.hasOwnProperty.call(message, "findingId"))
|
|
52560
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.findingId);
|
|
52561
|
+
if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
|
|
52562
|
+
$root.google.protobuf.Timestamp.encode(message.timestamp, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
52563
|
+
if (message.location != null && Object.hasOwnProperty.call(message, "location"))
|
|
52564
|
+
$root.google.privacy.dlp.v2.DataProfileFindingLocation.encode(message.location, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
52565
|
+
if (message.resourceVisibility != null && Object.hasOwnProperty.call(message, "resourceVisibility"))
|
|
52566
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.resourceVisibility);
|
|
52567
|
+
if (message.fullResourceName != null && Object.hasOwnProperty.call(message, "fullResourceName"))
|
|
52568
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.fullResourceName);
|
|
52569
|
+
if (message.dataSourceType != null && Object.hasOwnProperty.call(message, "dataSourceType"))
|
|
52570
|
+
$root.google.privacy.dlp.v2.DataSourceType.encode(message.dataSourceType, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
52571
|
+
return writer;
|
|
52572
|
+
};
|
|
52573
|
+
|
|
52574
|
+
/**
|
|
52575
|
+
* Encodes the specified DataProfileFinding message, length delimited. Does not implicitly {@link google.privacy.dlp.v2.DataProfileFinding.verify|verify} messages.
|
|
52576
|
+
* @function encodeDelimited
|
|
52577
|
+
* @memberof google.privacy.dlp.v2.DataProfileFinding
|
|
52578
|
+
* @static
|
|
52579
|
+
* @param {google.privacy.dlp.v2.IDataProfileFinding} message DataProfileFinding message or plain object to encode
|
|
52580
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
52581
|
+
* @returns {$protobuf.Writer} Writer
|
|
52582
|
+
*/
|
|
52583
|
+
DataProfileFinding.encodeDelimited = function encodeDelimited(message, writer) {
|
|
52584
|
+
return this.encode(message, writer).ldelim();
|
|
52585
|
+
};
|
|
52586
|
+
|
|
52587
|
+
/**
|
|
52588
|
+
* Decodes a DataProfileFinding message from the specified reader or buffer.
|
|
52589
|
+
* @function decode
|
|
52590
|
+
* @memberof google.privacy.dlp.v2.DataProfileFinding
|
|
52591
|
+
* @static
|
|
52592
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
52593
|
+
* @param {number} [length] Message length if known beforehand
|
|
52594
|
+
* @returns {google.privacy.dlp.v2.DataProfileFinding} DataProfileFinding
|
|
52595
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
52596
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
52597
|
+
*/
|
|
52598
|
+
DataProfileFinding.decode = function decode(reader, length) {
|
|
52599
|
+
if (!(reader instanceof $Reader))
|
|
52600
|
+
reader = $Reader.create(reader);
|
|
52601
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.privacy.dlp.v2.DataProfileFinding();
|
|
52602
|
+
while (reader.pos < end) {
|
|
52603
|
+
var tag = reader.uint32();
|
|
52604
|
+
switch (tag >>> 3) {
|
|
52605
|
+
case 1: {
|
|
52606
|
+
message.quote = reader.string();
|
|
52607
|
+
break;
|
|
52608
|
+
}
|
|
52609
|
+
case 2: {
|
|
52610
|
+
message.infotype = $root.google.privacy.dlp.v2.InfoType.decode(reader, reader.uint32());
|
|
52611
|
+
break;
|
|
52612
|
+
}
|
|
52613
|
+
case 3: {
|
|
52614
|
+
message.quoteInfo = $root.google.privacy.dlp.v2.QuoteInfo.decode(reader, reader.uint32());
|
|
52615
|
+
break;
|
|
52616
|
+
}
|
|
52617
|
+
case 4: {
|
|
52618
|
+
message.dataProfileResourceName = reader.string();
|
|
52619
|
+
break;
|
|
52620
|
+
}
|
|
52621
|
+
case 5: {
|
|
52622
|
+
message.findingId = reader.string();
|
|
52623
|
+
break;
|
|
52624
|
+
}
|
|
52625
|
+
case 6: {
|
|
52626
|
+
message.timestamp = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
52627
|
+
break;
|
|
52628
|
+
}
|
|
52629
|
+
case 7: {
|
|
52630
|
+
message.location = $root.google.privacy.dlp.v2.DataProfileFindingLocation.decode(reader, reader.uint32());
|
|
52631
|
+
break;
|
|
52632
|
+
}
|
|
52633
|
+
case 8: {
|
|
52634
|
+
message.resourceVisibility = reader.int32();
|
|
52635
|
+
break;
|
|
52636
|
+
}
|
|
52637
|
+
case 9: {
|
|
52638
|
+
message.fullResourceName = reader.string();
|
|
52639
|
+
break;
|
|
52640
|
+
}
|
|
52641
|
+
case 10: {
|
|
52642
|
+
message.dataSourceType = $root.google.privacy.dlp.v2.DataSourceType.decode(reader, reader.uint32());
|
|
52643
|
+
break;
|
|
52644
|
+
}
|
|
52645
|
+
default:
|
|
52646
|
+
reader.skipType(tag & 7);
|
|
52647
|
+
break;
|
|
52648
|
+
}
|
|
52649
|
+
}
|
|
52650
|
+
return message;
|
|
52651
|
+
};
|
|
52652
|
+
|
|
52653
|
+
/**
|
|
52654
|
+
* Decodes a DataProfileFinding message from the specified reader or buffer, length delimited.
|
|
52655
|
+
* @function decodeDelimited
|
|
52656
|
+
* @memberof google.privacy.dlp.v2.DataProfileFinding
|
|
52657
|
+
* @static
|
|
52658
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
52659
|
+
* @returns {google.privacy.dlp.v2.DataProfileFinding} DataProfileFinding
|
|
52660
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
52661
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
52662
|
+
*/
|
|
52663
|
+
DataProfileFinding.decodeDelimited = function decodeDelimited(reader) {
|
|
52664
|
+
if (!(reader instanceof $Reader))
|
|
52665
|
+
reader = new $Reader(reader);
|
|
52666
|
+
return this.decode(reader, reader.uint32());
|
|
52667
|
+
};
|
|
52668
|
+
|
|
52669
|
+
/**
|
|
52670
|
+
* Verifies a DataProfileFinding message.
|
|
52671
|
+
* @function verify
|
|
52672
|
+
* @memberof google.privacy.dlp.v2.DataProfileFinding
|
|
52673
|
+
* @static
|
|
52674
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
52675
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
52676
|
+
*/
|
|
52677
|
+
DataProfileFinding.verify = function verify(message) {
|
|
52678
|
+
if (typeof message !== "object" || message === null)
|
|
52679
|
+
return "object expected";
|
|
52680
|
+
if (message.quote != null && message.hasOwnProperty("quote"))
|
|
52681
|
+
if (!$util.isString(message.quote))
|
|
52682
|
+
return "quote: string expected";
|
|
52683
|
+
if (message.infotype != null && message.hasOwnProperty("infotype")) {
|
|
52684
|
+
var error = $root.google.privacy.dlp.v2.InfoType.verify(message.infotype);
|
|
52685
|
+
if (error)
|
|
52686
|
+
return "infotype." + error;
|
|
52687
|
+
}
|
|
52688
|
+
if (message.quoteInfo != null && message.hasOwnProperty("quoteInfo")) {
|
|
52689
|
+
var error = $root.google.privacy.dlp.v2.QuoteInfo.verify(message.quoteInfo);
|
|
52690
|
+
if (error)
|
|
52691
|
+
return "quoteInfo." + error;
|
|
52692
|
+
}
|
|
52693
|
+
if (message.dataProfileResourceName != null && message.hasOwnProperty("dataProfileResourceName"))
|
|
52694
|
+
if (!$util.isString(message.dataProfileResourceName))
|
|
52695
|
+
return "dataProfileResourceName: string expected";
|
|
52696
|
+
if (message.findingId != null && message.hasOwnProperty("findingId"))
|
|
52697
|
+
if (!$util.isString(message.findingId))
|
|
52698
|
+
return "findingId: string expected";
|
|
52699
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp")) {
|
|
52700
|
+
var error = $root.google.protobuf.Timestamp.verify(message.timestamp);
|
|
52701
|
+
if (error)
|
|
52702
|
+
return "timestamp." + error;
|
|
52703
|
+
}
|
|
52704
|
+
if (message.location != null && message.hasOwnProperty("location")) {
|
|
52705
|
+
var error = $root.google.privacy.dlp.v2.DataProfileFindingLocation.verify(message.location);
|
|
52706
|
+
if (error)
|
|
52707
|
+
return "location." + error;
|
|
52708
|
+
}
|
|
52709
|
+
if (message.resourceVisibility != null && message.hasOwnProperty("resourceVisibility"))
|
|
52710
|
+
switch (message.resourceVisibility) {
|
|
52711
|
+
default:
|
|
52712
|
+
return "resourceVisibility: enum value expected";
|
|
52713
|
+
case 0:
|
|
52714
|
+
case 10:
|
|
52715
|
+
case 15:
|
|
52716
|
+
case 20:
|
|
52717
|
+
break;
|
|
52718
|
+
}
|
|
52719
|
+
if (message.fullResourceName != null && message.hasOwnProperty("fullResourceName"))
|
|
52720
|
+
if (!$util.isString(message.fullResourceName))
|
|
52721
|
+
return "fullResourceName: string expected";
|
|
52722
|
+
if (message.dataSourceType != null && message.hasOwnProperty("dataSourceType")) {
|
|
52723
|
+
var error = $root.google.privacy.dlp.v2.DataSourceType.verify(message.dataSourceType);
|
|
52724
|
+
if (error)
|
|
52725
|
+
return "dataSourceType." + error;
|
|
52726
|
+
}
|
|
52727
|
+
return null;
|
|
52728
|
+
};
|
|
52729
|
+
|
|
52730
|
+
/**
|
|
52731
|
+
* Creates a DataProfileFinding message from a plain object. Also converts values to their respective internal types.
|
|
52732
|
+
* @function fromObject
|
|
52733
|
+
* @memberof google.privacy.dlp.v2.DataProfileFinding
|
|
52734
|
+
* @static
|
|
52735
|
+
* @param {Object.<string,*>} object Plain object
|
|
52736
|
+
* @returns {google.privacy.dlp.v2.DataProfileFinding} DataProfileFinding
|
|
52737
|
+
*/
|
|
52738
|
+
DataProfileFinding.fromObject = function fromObject(object) {
|
|
52739
|
+
if (object instanceof $root.google.privacy.dlp.v2.DataProfileFinding)
|
|
52740
|
+
return object;
|
|
52741
|
+
var message = new $root.google.privacy.dlp.v2.DataProfileFinding();
|
|
52742
|
+
if (object.quote != null)
|
|
52743
|
+
message.quote = String(object.quote);
|
|
52744
|
+
if (object.infotype != null) {
|
|
52745
|
+
if (typeof object.infotype !== "object")
|
|
52746
|
+
throw TypeError(".google.privacy.dlp.v2.DataProfileFinding.infotype: object expected");
|
|
52747
|
+
message.infotype = $root.google.privacy.dlp.v2.InfoType.fromObject(object.infotype);
|
|
52748
|
+
}
|
|
52749
|
+
if (object.quoteInfo != null) {
|
|
52750
|
+
if (typeof object.quoteInfo !== "object")
|
|
52751
|
+
throw TypeError(".google.privacy.dlp.v2.DataProfileFinding.quoteInfo: object expected");
|
|
52752
|
+
message.quoteInfo = $root.google.privacy.dlp.v2.QuoteInfo.fromObject(object.quoteInfo);
|
|
52753
|
+
}
|
|
52754
|
+
if (object.dataProfileResourceName != null)
|
|
52755
|
+
message.dataProfileResourceName = String(object.dataProfileResourceName);
|
|
52756
|
+
if (object.findingId != null)
|
|
52757
|
+
message.findingId = String(object.findingId);
|
|
52758
|
+
if (object.timestamp != null) {
|
|
52759
|
+
if (typeof object.timestamp !== "object")
|
|
52760
|
+
throw TypeError(".google.privacy.dlp.v2.DataProfileFinding.timestamp: object expected");
|
|
52761
|
+
message.timestamp = $root.google.protobuf.Timestamp.fromObject(object.timestamp);
|
|
52762
|
+
}
|
|
52763
|
+
if (object.location != null) {
|
|
52764
|
+
if (typeof object.location !== "object")
|
|
52765
|
+
throw TypeError(".google.privacy.dlp.v2.DataProfileFinding.location: object expected");
|
|
52766
|
+
message.location = $root.google.privacy.dlp.v2.DataProfileFindingLocation.fromObject(object.location);
|
|
52767
|
+
}
|
|
52768
|
+
switch (object.resourceVisibility) {
|
|
52769
|
+
default:
|
|
52770
|
+
if (typeof object.resourceVisibility === "number") {
|
|
52771
|
+
message.resourceVisibility = object.resourceVisibility;
|
|
52772
|
+
break;
|
|
52773
|
+
}
|
|
52774
|
+
break;
|
|
52775
|
+
case "RESOURCE_VISIBILITY_UNSPECIFIED":
|
|
52776
|
+
case 0:
|
|
52777
|
+
message.resourceVisibility = 0;
|
|
52778
|
+
break;
|
|
52779
|
+
case "RESOURCE_VISIBILITY_PUBLIC":
|
|
52780
|
+
case 10:
|
|
52781
|
+
message.resourceVisibility = 10;
|
|
52782
|
+
break;
|
|
52783
|
+
case "RESOURCE_VISIBILITY_INCONCLUSIVE":
|
|
52784
|
+
case 15:
|
|
52785
|
+
message.resourceVisibility = 15;
|
|
52786
|
+
break;
|
|
52787
|
+
case "RESOURCE_VISIBILITY_RESTRICTED":
|
|
52788
|
+
case 20:
|
|
52789
|
+
message.resourceVisibility = 20;
|
|
52790
|
+
break;
|
|
52791
|
+
}
|
|
52792
|
+
if (object.fullResourceName != null)
|
|
52793
|
+
message.fullResourceName = String(object.fullResourceName);
|
|
52794
|
+
if (object.dataSourceType != null) {
|
|
52795
|
+
if (typeof object.dataSourceType !== "object")
|
|
52796
|
+
throw TypeError(".google.privacy.dlp.v2.DataProfileFinding.dataSourceType: object expected");
|
|
52797
|
+
message.dataSourceType = $root.google.privacy.dlp.v2.DataSourceType.fromObject(object.dataSourceType);
|
|
52798
|
+
}
|
|
52799
|
+
return message;
|
|
52800
|
+
};
|
|
52801
|
+
|
|
52802
|
+
/**
|
|
52803
|
+
* Creates a plain object from a DataProfileFinding message. Also converts values to other types if specified.
|
|
52804
|
+
* @function toObject
|
|
52805
|
+
* @memberof google.privacy.dlp.v2.DataProfileFinding
|
|
52806
|
+
* @static
|
|
52807
|
+
* @param {google.privacy.dlp.v2.DataProfileFinding} message DataProfileFinding
|
|
52808
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
52809
|
+
* @returns {Object.<string,*>} Plain object
|
|
52810
|
+
*/
|
|
52811
|
+
DataProfileFinding.toObject = function toObject(message, options) {
|
|
52812
|
+
if (!options)
|
|
52813
|
+
options = {};
|
|
52814
|
+
var object = {};
|
|
52815
|
+
if (options.defaults) {
|
|
52816
|
+
object.quote = "";
|
|
52817
|
+
object.infotype = null;
|
|
52818
|
+
object.quoteInfo = null;
|
|
52819
|
+
object.dataProfileResourceName = "";
|
|
52820
|
+
object.findingId = "";
|
|
52821
|
+
object.timestamp = null;
|
|
52822
|
+
object.location = null;
|
|
52823
|
+
object.resourceVisibility = options.enums === String ? "RESOURCE_VISIBILITY_UNSPECIFIED" : 0;
|
|
52824
|
+
object.fullResourceName = "";
|
|
52825
|
+
object.dataSourceType = null;
|
|
52826
|
+
}
|
|
52827
|
+
if (message.quote != null && message.hasOwnProperty("quote"))
|
|
52828
|
+
object.quote = message.quote;
|
|
52829
|
+
if (message.infotype != null && message.hasOwnProperty("infotype"))
|
|
52830
|
+
object.infotype = $root.google.privacy.dlp.v2.InfoType.toObject(message.infotype, options);
|
|
52831
|
+
if (message.quoteInfo != null && message.hasOwnProperty("quoteInfo"))
|
|
52832
|
+
object.quoteInfo = $root.google.privacy.dlp.v2.QuoteInfo.toObject(message.quoteInfo, options);
|
|
52833
|
+
if (message.dataProfileResourceName != null && message.hasOwnProperty("dataProfileResourceName"))
|
|
52834
|
+
object.dataProfileResourceName = message.dataProfileResourceName;
|
|
52835
|
+
if (message.findingId != null && message.hasOwnProperty("findingId"))
|
|
52836
|
+
object.findingId = message.findingId;
|
|
52837
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
52838
|
+
object.timestamp = $root.google.protobuf.Timestamp.toObject(message.timestamp, options);
|
|
52839
|
+
if (message.location != null && message.hasOwnProperty("location"))
|
|
52840
|
+
object.location = $root.google.privacy.dlp.v2.DataProfileFindingLocation.toObject(message.location, options);
|
|
52841
|
+
if (message.resourceVisibility != null && message.hasOwnProperty("resourceVisibility"))
|
|
52842
|
+
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;
|
|
52843
|
+
if (message.fullResourceName != null && message.hasOwnProperty("fullResourceName"))
|
|
52844
|
+
object.fullResourceName = message.fullResourceName;
|
|
52845
|
+
if (message.dataSourceType != null && message.hasOwnProperty("dataSourceType"))
|
|
52846
|
+
object.dataSourceType = $root.google.privacy.dlp.v2.DataSourceType.toObject(message.dataSourceType, options);
|
|
52847
|
+
return object;
|
|
52848
|
+
};
|
|
52849
|
+
|
|
52850
|
+
/**
|
|
52851
|
+
* Converts this DataProfileFinding to JSON.
|
|
52852
|
+
* @function toJSON
|
|
52853
|
+
* @memberof google.privacy.dlp.v2.DataProfileFinding
|
|
52854
|
+
* @instance
|
|
52855
|
+
* @returns {Object.<string,*>} JSON object
|
|
52856
|
+
*/
|
|
52857
|
+
DataProfileFinding.prototype.toJSON = function toJSON() {
|
|
52858
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
52859
|
+
};
|
|
52860
|
+
|
|
52861
|
+
/**
|
|
52862
|
+
* Gets the default type url for DataProfileFinding
|
|
52863
|
+
* @function getTypeUrl
|
|
52864
|
+
* @memberof google.privacy.dlp.v2.DataProfileFinding
|
|
52865
|
+
* @static
|
|
52866
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
52867
|
+
* @returns {string} The default type url
|
|
52868
|
+
*/
|
|
52869
|
+
DataProfileFinding.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
52870
|
+
if (typeUrlPrefix === undefined) {
|
|
52871
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
52872
|
+
}
|
|
52873
|
+
return typeUrlPrefix + "/google.privacy.dlp.v2.DataProfileFinding";
|
|
52874
|
+
};
|
|
52875
|
+
|
|
52876
|
+
return DataProfileFinding;
|
|
52877
|
+
})();
|
|
52878
|
+
|
|
52879
|
+
v2.DataProfileFindingLocation = (function() {
|
|
52880
|
+
|
|
52881
|
+
/**
|
|
52882
|
+
* Properties of a DataProfileFindingLocation.
|
|
52883
|
+
* @memberof google.privacy.dlp.v2
|
|
52884
|
+
* @interface IDataProfileFindingLocation
|
|
52885
|
+
* @property {string|null} [containerName] DataProfileFindingLocation containerName
|
|
52886
|
+
* @property {google.privacy.dlp.v2.IDataProfileFindingRecordLocation|null} [dataProfileFindingRecordLocation] DataProfileFindingLocation dataProfileFindingRecordLocation
|
|
52887
|
+
*/
|
|
52888
|
+
|
|
52889
|
+
/**
|
|
52890
|
+
* Constructs a new DataProfileFindingLocation.
|
|
52891
|
+
* @memberof google.privacy.dlp.v2
|
|
52892
|
+
* @classdesc Represents a DataProfileFindingLocation.
|
|
52893
|
+
* @implements IDataProfileFindingLocation
|
|
52894
|
+
* @constructor
|
|
52895
|
+
* @param {google.privacy.dlp.v2.IDataProfileFindingLocation=} [properties] Properties to set
|
|
52896
|
+
*/
|
|
52897
|
+
function DataProfileFindingLocation(properties) {
|
|
52898
|
+
if (properties)
|
|
52899
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
52900
|
+
if (properties[keys[i]] != null)
|
|
52901
|
+
this[keys[i]] = properties[keys[i]];
|
|
52902
|
+
}
|
|
52903
|
+
|
|
52904
|
+
/**
|
|
52905
|
+
* DataProfileFindingLocation containerName.
|
|
52906
|
+
* @member {string} containerName
|
|
52907
|
+
* @memberof google.privacy.dlp.v2.DataProfileFindingLocation
|
|
52908
|
+
* @instance
|
|
52909
|
+
*/
|
|
52910
|
+
DataProfileFindingLocation.prototype.containerName = "";
|
|
52911
|
+
|
|
52912
|
+
/**
|
|
52913
|
+
* DataProfileFindingLocation dataProfileFindingRecordLocation.
|
|
52914
|
+
* @member {google.privacy.dlp.v2.IDataProfileFindingRecordLocation|null|undefined} dataProfileFindingRecordLocation
|
|
52915
|
+
* @memberof google.privacy.dlp.v2.DataProfileFindingLocation
|
|
52916
|
+
* @instance
|
|
52917
|
+
*/
|
|
52918
|
+
DataProfileFindingLocation.prototype.dataProfileFindingRecordLocation = null;
|
|
52919
|
+
|
|
52920
|
+
// OneOf field names bound to virtual getters and setters
|
|
52921
|
+
var $oneOfFields;
|
|
52922
|
+
|
|
52923
|
+
/**
|
|
52924
|
+
* DataProfileFindingLocation locationExtraDetails.
|
|
52925
|
+
* @member {"dataProfileFindingRecordLocation"|undefined} locationExtraDetails
|
|
52926
|
+
* @memberof google.privacy.dlp.v2.DataProfileFindingLocation
|
|
52927
|
+
* @instance
|
|
52928
|
+
*/
|
|
52929
|
+
Object.defineProperty(DataProfileFindingLocation.prototype, "locationExtraDetails", {
|
|
52930
|
+
get: $util.oneOfGetter($oneOfFields = ["dataProfileFindingRecordLocation"]),
|
|
52931
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
52932
|
+
});
|
|
52933
|
+
|
|
52934
|
+
/**
|
|
52935
|
+
* Creates a new DataProfileFindingLocation instance using the specified properties.
|
|
52936
|
+
* @function create
|
|
52937
|
+
* @memberof google.privacy.dlp.v2.DataProfileFindingLocation
|
|
52938
|
+
* @static
|
|
52939
|
+
* @param {google.privacy.dlp.v2.IDataProfileFindingLocation=} [properties] Properties to set
|
|
52940
|
+
* @returns {google.privacy.dlp.v2.DataProfileFindingLocation} DataProfileFindingLocation instance
|
|
52941
|
+
*/
|
|
52942
|
+
DataProfileFindingLocation.create = function create(properties) {
|
|
52943
|
+
return new DataProfileFindingLocation(properties);
|
|
52944
|
+
};
|
|
52945
|
+
|
|
52946
|
+
/**
|
|
52947
|
+
* Encodes the specified DataProfileFindingLocation message. Does not implicitly {@link google.privacy.dlp.v2.DataProfileFindingLocation.verify|verify} messages.
|
|
52948
|
+
* @function encode
|
|
52949
|
+
* @memberof google.privacy.dlp.v2.DataProfileFindingLocation
|
|
52950
|
+
* @static
|
|
52951
|
+
* @param {google.privacy.dlp.v2.IDataProfileFindingLocation} message DataProfileFindingLocation message or plain object to encode
|
|
52952
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
52953
|
+
* @returns {$protobuf.Writer} Writer
|
|
52954
|
+
*/
|
|
52955
|
+
DataProfileFindingLocation.encode = function encode(message, writer) {
|
|
52956
|
+
if (!writer)
|
|
52957
|
+
writer = $Writer.create();
|
|
52958
|
+
if (message.containerName != null && Object.hasOwnProperty.call(message, "containerName"))
|
|
52959
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.containerName);
|
|
52960
|
+
if (message.dataProfileFindingRecordLocation != null && Object.hasOwnProperty.call(message, "dataProfileFindingRecordLocation"))
|
|
52961
|
+
$root.google.privacy.dlp.v2.DataProfileFindingRecordLocation.encode(message.dataProfileFindingRecordLocation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
52962
|
+
return writer;
|
|
52963
|
+
};
|
|
52964
|
+
|
|
52965
|
+
/**
|
|
52966
|
+
* Encodes the specified DataProfileFindingLocation message, length delimited. Does not implicitly {@link google.privacy.dlp.v2.DataProfileFindingLocation.verify|verify} messages.
|
|
52967
|
+
* @function encodeDelimited
|
|
52968
|
+
* @memberof google.privacy.dlp.v2.DataProfileFindingLocation
|
|
52969
|
+
* @static
|
|
52970
|
+
* @param {google.privacy.dlp.v2.IDataProfileFindingLocation} message DataProfileFindingLocation message or plain object to encode
|
|
52971
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
52972
|
+
* @returns {$protobuf.Writer} Writer
|
|
52973
|
+
*/
|
|
52974
|
+
DataProfileFindingLocation.encodeDelimited = function encodeDelimited(message, writer) {
|
|
52975
|
+
return this.encode(message, writer).ldelim();
|
|
52976
|
+
};
|
|
52977
|
+
|
|
52978
|
+
/**
|
|
52979
|
+
* Decodes a DataProfileFindingLocation message from the specified reader or buffer.
|
|
52980
|
+
* @function decode
|
|
52981
|
+
* @memberof google.privacy.dlp.v2.DataProfileFindingLocation
|
|
52982
|
+
* @static
|
|
52983
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
52984
|
+
* @param {number} [length] Message length if known beforehand
|
|
52985
|
+
* @returns {google.privacy.dlp.v2.DataProfileFindingLocation} DataProfileFindingLocation
|
|
52986
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
52987
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
52988
|
+
*/
|
|
52989
|
+
DataProfileFindingLocation.decode = function decode(reader, length) {
|
|
52990
|
+
if (!(reader instanceof $Reader))
|
|
52991
|
+
reader = $Reader.create(reader);
|
|
52992
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.privacy.dlp.v2.DataProfileFindingLocation();
|
|
52993
|
+
while (reader.pos < end) {
|
|
52994
|
+
var tag = reader.uint32();
|
|
52995
|
+
switch (tag >>> 3) {
|
|
52996
|
+
case 1: {
|
|
52997
|
+
message.containerName = reader.string();
|
|
52998
|
+
break;
|
|
52999
|
+
}
|
|
53000
|
+
case 2: {
|
|
53001
|
+
message.dataProfileFindingRecordLocation = $root.google.privacy.dlp.v2.DataProfileFindingRecordLocation.decode(reader, reader.uint32());
|
|
53002
|
+
break;
|
|
53003
|
+
}
|
|
53004
|
+
default:
|
|
53005
|
+
reader.skipType(tag & 7);
|
|
53006
|
+
break;
|
|
53007
|
+
}
|
|
53008
|
+
}
|
|
53009
|
+
return message;
|
|
53010
|
+
};
|
|
53011
|
+
|
|
53012
|
+
/**
|
|
53013
|
+
* Decodes a DataProfileFindingLocation message from the specified reader or buffer, length delimited.
|
|
53014
|
+
* @function decodeDelimited
|
|
53015
|
+
* @memberof google.privacy.dlp.v2.DataProfileFindingLocation
|
|
53016
|
+
* @static
|
|
53017
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
53018
|
+
* @returns {google.privacy.dlp.v2.DataProfileFindingLocation} DataProfileFindingLocation
|
|
53019
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
53020
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
53021
|
+
*/
|
|
53022
|
+
DataProfileFindingLocation.decodeDelimited = function decodeDelimited(reader) {
|
|
53023
|
+
if (!(reader instanceof $Reader))
|
|
53024
|
+
reader = new $Reader(reader);
|
|
53025
|
+
return this.decode(reader, reader.uint32());
|
|
53026
|
+
};
|
|
53027
|
+
|
|
53028
|
+
/**
|
|
53029
|
+
* Verifies a DataProfileFindingLocation message.
|
|
53030
|
+
* @function verify
|
|
53031
|
+
* @memberof google.privacy.dlp.v2.DataProfileFindingLocation
|
|
53032
|
+
* @static
|
|
53033
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
53034
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
53035
|
+
*/
|
|
53036
|
+
DataProfileFindingLocation.verify = function verify(message) {
|
|
53037
|
+
if (typeof message !== "object" || message === null)
|
|
53038
|
+
return "object expected";
|
|
53039
|
+
var properties = {};
|
|
53040
|
+
if (message.containerName != null && message.hasOwnProperty("containerName"))
|
|
53041
|
+
if (!$util.isString(message.containerName))
|
|
53042
|
+
return "containerName: string expected";
|
|
53043
|
+
if (message.dataProfileFindingRecordLocation != null && message.hasOwnProperty("dataProfileFindingRecordLocation")) {
|
|
53044
|
+
properties.locationExtraDetails = 1;
|
|
53045
|
+
{
|
|
53046
|
+
var error = $root.google.privacy.dlp.v2.DataProfileFindingRecordLocation.verify(message.dataProfileFindingRecordLocation);
|
|
53047
|
+
if (error)
|
|
53048
|
+
return "dataProfileFindingRecordLocation." + error;
|
|
53049
|
+
}
|
|
53050
|
+
}
|
|
53051
|
+
return null;
|
|
53052
|
+
};
|
|
53053
|
+
|
|
53054
|
+
/**
|
|
53055
|
+
* Creates a DataProfileFindingLocation message from a plain object. Also converts values to their respective internal types.
|
|
53056
|
+
* @function fromObject
|
|
53057
|
+
* @memberof google.privacy.dlp.v2.DataProfileFindingLocation
|
|
53058
|
+
* @static
|
|
53059
|
+
* @param {Object.<string,*>} object Plain object
|
|
53060
|
+
* @returns {google.privacy.dlp.v2.DataProfileFindingLocation} DataProfileFindingLocation
|
|
53061
|
+
*/
|
|
53062
|
+
DataProfileFindingLocation.fromObject = function fromObject(object) {
|
|
53063
|
+
if (object instanceof $root.google.privacy.dlp.v2.DataProfileFindingLocation)
|
|
53064
|
+
return object;
|
|
53065
|
+
var message = new $root.google.privacy.dlp.v2.DataProfileFindingLocation();
|
|
53066
|
+
if (object.containerName != null)
|
|
53067
|
+
message.containerName = String(object.containerName);
|
|
53068
|
+
if (object.dataProfileFindingRecordLocation != null) {
|
|
53069
|
+
if (typeof object.dataProfileFindingRecordLocation !== "object")
|
|
53070
|
+
throw TypeError(".google.privacy.dlp.v2.DataProfileFindingLocation.dataProfileFindingRecordLocation: object expected");
|
|
53071
|
+
message.dataProfileFindingRecordLocation = $root.google.privacy.dlp.v2.DataProfileFindingRecordLocation.fromObject(object.dataProfileFindingRecordLocation);
|
|
53072
|
+
}
|
|
53073
|
+
return message;
|
|
53074
|
+
};
|
|
53075
|
+
|
|
53076
|
+
/**
|
|
53077
|
+
* Creates a plain object from a DataProfileFindingLocation message. Also converts values to other types if specified.
|
|
53078
|
+
* @function toObject
|
|
53079
|
+
* @memberof google.privacy.dlp.v2.DataProfileFindingLocation
|
|
53080
|
+
* @static
|
|
53081
|
+
* @param {google.privacy.dlp.v2.DataProfileFindingLocation} message DataProfileFindingLocation
|
|
53082
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
53083
|
+
* @returns {Object.<string,*>} Plain object
|
|
53084
|
+
*/
|
|
53085
|
+
DataProfileFindingLocation.toObject = function toObject(message, options) {
|
|
53086
|
+
if (!options)
|
|
53087
|
+
options = {};
|
|
53088
|
+
var object = {};
|
|
53089
|
+
if (options.defaults)
|
|
53090
|
+
object.containerName = "";
|
|
53091
|
+
if (message.containerName != null && message.hasOwnProperty("containerName"))
|
|
53092
|
+
object.containerName = message.containerName;
|
|
53093
|
+
if (message.dataProfileFindingRecordLocation != null && message.hasOwnProperty("dataProfileFindingRecordLocation")) {
|
|
53094
|
+
object.dataProfileFindingRecordLocation = $root.google.privacy.dlp.v2.DataProfileFindingRecordLocation.toObject(message.dataProfileFindingRecordLocation, options);
|
|
53095
|
+
if (options.oneofs)
|
|
53096
|
+
object.locationExtraDetails = "dataProfileFindingRecordLocation";
|
|
53097
|
+
}
|
|
53098
|
+
return object;
|
|
53099
|
+
};
|
|
53100
|
+
|
|
53101
|
+
/**
|
|
53102
|
+
* Converts this DataProfileFindingLocation to JSON.
|
|
53103
|
+
* @function toJSON
|
|
53104
|
+
* @memberof google.privacy.dlp.v2.DataProfileFindingLocation
|
|
53105
|
+
* @instance
|
|
53106
|
+
* @returns {Object.<string,*>} JSON object
|
|
53107
|
+
*/
|
|
53108
|
+
DataProfileFindingLocation.prototype.toJSON = function toJSON() {
|
|
53109
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
53110
|
+
};
|
|
53111
|
+
|
|
53112
|
+
/**
|
|
53113
|
+
* Gets the default type url for DataProfileFindingLocation
|
|
53114
|
+
* @function getTypeUrl
|
|
53115
|
+
* @memberof google.privacy.dlp.v2.DataProfileFindingLocation
|
|
53116
|
+
* @static
|
|
53117
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
53118
|
+
* @returns {string} The default type url
|
|
53119
|
+
*/
|
|
53120
|
+
DataProfileFindingLocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
53121
|
+
if (typeUrlPrefix === undefined) {
|
|
53122
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
53123
|
+
}
|
|
53124
|
+
return typeUrlPrefix + "/google.privacy.dlp.v2.DataProfileFindingLocation";
|
|
53125
|
+
};
|
|
53126
|
+
|
|
53127
|
+
return DataProfileFindingLocation;
|
|
53128
|
+
})();
|
|
53129
|
+
|
|
53130
|
+
v2.DataProfileFindingRecordLocation = (function() {
|
|
53131
|
+
|
|
53132
|
+
/**
|
|
53133
|
+
* Properties of a DataProfileFindingRecordLocation.
|
|
53134
|
+
* @memberof google.privacy.dlp.v2
|
|
53135
|
+
* @interface IDataProfileFindingRecordLocation
|
|
53136
|
+
* @property {google.privacy.dlp.v2.IFieldId|null} [field] DataProfileFindingRecordLocation field
|
|
53137
|
+
*/
|
|
53138
|
+
|
|
53139
|
+
/**
|
|
53140
|
+
* Constructs a new DataProfileFindingRecordLocation.
|
|
53141
|
+
* @memberof google.privacy.dlp.v2
|
|
53142
|
+
* @classdesc Represents a DataProfileFindingRecordLocation.
|
|
53143
|
+
* @implements IDataProfileFindingRecordLocation
|
|
53144
|
+
* @constructor
|
|
53145
|
+
* @param {google.privacy.dlp.v2.IDataProfileFindingRecordLocation=} [properties] Properties to set
|
|
53146
|
+
*/
|
|
53147
|
+
function DataProfileFindingRecordLocation(properties) {
|
|
53148
|
+
if (properties)
|
|
53149
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
53150
|
+
if (properties[keys[i]] != null)
|
|
53151
|
+
this[keys[i]] = properties[keys[i]];
|
|
53152
|
+
}
|
|
51961
53153
|
|
|
51962
|
-
|
|
51963
|
-
|
|
51964
|
-
|
|
51965
|
-
|
|
51966
|
-
|
|
51967
|
-
|
|
51968
|
-
|
|
51969
|
-
* @returns {google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue} TagValue
|
|
51970
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
51971
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
51972
|
-
*/
|
|
51973
|
-
TagValue.decode = function decode(reader, length) {
|
|
51974
|
-
if (!(reader instanceof $Reader))
|
|
51975
|
-
reader = $Reader.create(reader);
|
|
51976
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue();
|
|
51977
|
-
while (reader.pos < end) {
|
|
51978
|
-
var tag = reader.uint32();
|
|
51979
|
-
switch (tag >>> 3) {
|
|
51980
|
-
case 1: {
|
|
51981
|
-
message.namespacedValue = reader.string();
|
|
51982
|
-
break;
|
|
51983
|
-
}
|
|
51984
|
-
default:
|
|
51985
|
-
reader.skipType(tag & 7);
|
|
51986
|
-
break;
|
|
51987
|
-
}
|
|
51988
|
-
}
|
|
51989
|
-
return message;
|
|
51990
|
-
};
|
|
53154
|
+
/**
|
|
53155
|
+
* DataProfileFindingRecordLocation field.
|
|
53156
|
+
* @member {google.privacy.dlp.v2.IFieldId|null|undefined} field
|
|
53157
|
+
* @memberof google.privacy.dlp.v2.DataProfileFindingRecordLocation
|
|
53158
|
+
* @instance
|
|
53159
|
+
*/
|
|
53160
|
+
DataProfileFindingRecordLocation.prototype.field = null;
|
|
51991
53161
|
|
|
51992
|
-
|
|
51993
|
-
|
|
51994
|
-
|
|
51995
|
-
|
|
51996
|
-
|
|
51997
|
-
|
|
51998
|
-
|
|
51999
|
-
|
|
52000
|
-
|
|
52001
|
-
|
|
52002
|
-
|
|
52003
|
-
if (!(reader instanceof $Reader))
|
|
52004
|
-
reader = new $Reader(reader);
|
|
52005
|
-
return this.decode(reader, reader.uint32());
|
|
52006
|
-
};
|
|
53162
|
+
/**
|
|
53163
|
+
* Creates a new DataProfileFindingRecordLocation instance using the specified properties.
|
|
53164
|
+
* @function create
|
|
53165
|
+
* @memberof google.privacy.dlp.v2.DataProfileFindingRecordLocation
|
|
53166
|
+
* @static
|
|
53167
|
+
* @param {google.privacy.dlp.v2.IDataProfileFindingRecordLocation=} [properties] Properties to set
|
|
53168
|
+
* @returns {google.privacy.dlp.v2.DataProfileFindingRecordLocation} DataProfileFindingRecordLocation instance
|
|
53169
|
+
*/
|
|
53170
|
+
DataProfileFindingRecordLocation.create = function create(properties) {
|
|
53171
|
+
return new DataProfileFindingRecordLocation(properties);
|
|
53172
|
+
};
|
|
52007
53173
|
|
|
52008
|
-
|
|
52009
|
-
|
|
52010
|
-
|
|
52011
|
-
|
|
52012
|
-
|
|
52013
|
-
|
|
52014
|
-
|
|
52015
|
-
|
|
52016
|
-
|
|
52017
|
-
|
|
52018
|
-
|
|
52019
|
-
|
|
52020
|
-
|
|
52021
|
-
|
|
52022
|
-
|
|
52023
|
-
|
|
52024
|
-
}
|
|
52025
|
-
return null;
|
|
52026
|
-
};
|
|
53174
|
+
/**
|
|
53175
|
+
* Encodes the specified DataProfileFindingRecordLocation message. Does not implicitly {@link google.privacy.dlp.v2.DataProfileFindingRecordLocation.verify|verify} messages.
|
|
53176
|
+
* @function encode
|
|
53177
|
+
* @memberof google.privacy.dlp.v2.DataProfileFindingRecordLocation
|
|
53178
|
+
* @static
|
|
53179
|
+
* @param {google.privacy.dlp.v2.IDataProfileFindingRecordLocation} message DataProfileFindingRecordLocation message or plain object to encode
|
|
53180
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
53181
|
+
* @returns {$protobuf.Writer} Writer
|
|
53182
|
+
*/
|
|
53183
|
+
DataProfileFindingRecordLocation.encode = function encode(message, writer) {
|
|
53184
|
+
if (!writer)
|
|
53185
|
+
writer = $Writer.create();
|
|
53186
|
+
if (message.field != null && Object.hasOwnProperty.call(message, "field"))
|
|
53187
|
+
$root.google.privacy.dlp.v2.FieldId.encode(message.field, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
53188
|
+
return writer;
|
|
53189
|
+
};
|
|
52027
53190
|
|
|
52028
|
-
|
|
52029
|
-
|
|
52030
|
-
|
|
52031
|
-
|
|
52032
|
-
|
|
52033
|
-
|
|
52034
|
-
|
|
52035
|
-
|
|
52036
|
-
|
|
52037
|
-
|
|
52038
|
-
|
|
52039
|
-
|
|
52040
|
-
if (object.namespacedValue != null)
|
|
52041
|
-
message.namespacedValue = String(object.namespacedValue);
|
|
52042
|
-
return message;
|
|
52043
|
-
};
|
|
53191
|
+
/**
|
|
53192
|
+
* Encodes the specified DataProfileFindingRecordLocation message, length delimited. Does not implicitly {@link google.privacy.dlp.v2.DataProfileFindingRecordLocation.verify|verify} messages.
|
|
53193
|
+
* @function encodeDelimited
|
|
53194
|
+
* @memberof google.privacy.dlp.v2.DataProfileFindingRecordLocation
|
|
53195
|
+
* @static
|
|
53196
|
+
* @param {google.privacy.dlp.v2.IDataProfileFindingRecordLocation} message DataProfileFindingRecordLocation message or plain object to encode
|
|
53197
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
53198
|
+
* @returns {$protobuf.Writer} Writer
|
|
53199
|
+
*/
|
|
53200
|
+
DataProfileFindingRecordLocation.encodeDelimited = function encodeDelimited(message, writer) {
|
|
53201
|
+
return this.encode(message, writer).ldelim();
|
|
53202
|
+
};
|
|
52044
53203
|
|
|
52045
|
-
|
|
52046
|
-
|
|
52047
|
-
|
|
52048
|
-
|
|
52049
|
-
|
|
52050
|
-
|
|
52051
|
-
|
|
52052
|
-
|
|
52053
|
-
|
|
52054
|
-
|
|
52055
|
-
|
|
52056
|
-
|
|
52057
|
-
|
|
52058
|
-
|
|
52059
|
-
|
|
52060
|
-
|
|
52061
|
-
|
|
53204
|
+
/**
|
|
53205
|
+
* Decodes a DataProfileFindingRecordLocation message from the specified reader or buffer.
|
|
53206
|
+
* @function decode
|
|
53207
|
+
* @memberof google.privacy.dlp.v2.DataProfileFindingRecordLocation
|
|
53208
|
+
* @static
|
|
53209
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
53210
|
+
* @param {number} [length] Message length if known beforehand
|
|
53211
|
+
* @returns {google.privacy.dlp.v2.DataProfileFindingRecordLocation} DataProfileFindingRecordLocation
|
|
53212
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
53213
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
53214
|
+
*/
|
|
53215
|
+
DataProfileFindingRecordLocation.decode = function decode(reader, length) {
|
|
53216
|
+
if (!(reader instanceof $Reader))
|
|
53217
|
+
reader = $Reader.create(reader);
|
|
53218
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.privacy.dlp.v2.DataProfileFindingRecordLocation();
|
|
53219
|
+
while (reader.pos < end) {
|
|
53220
|
+
var tag = reader.uint32();
|
|
53221
|
+
switch (tag >>> 3) {
|
|
53222
|
+
case 1: {
|
|
53223
|
+
message.field = $root.google.privacy.dlp.v2.FieldId.decode(reader, reader.uint32());
|
|
53224
|
+
break;
|
|
52062
53225
|
}
|
|
52063
|
-
|
|
52064
|
-
|
|
53226
|
+
default:
|
|
53227
|
+
reader.skipType(tag & 7);
|
|
53228
|
+
break;
|
|
53229
|
+
}
|
|
53230
|
+
}
|
|
53231
|
+
return message;
|
|
53232
|
+
};
|
|
52065
53233
|
|
|
52066
|
-
|
|
52067
|
-
|
|
52068
|
-
|
|
52069
|
-
|
|
52070
|
-
|
|
52071
|
-
|
|
52072
|
-
|
|
52073
|
-
|
|
52074
|
-
|
|
52075
|
-
|
|
53234
|
+
/**
|
|
53235
|
+
* Decodes a DataProfileFindingRecordLocation message from the specified reader or buffer, length delimited.
|
|
53236
|
+
* @function decodeDelimited
|
|
53237
|
+
* @memberof google.privacy.dlp.v2.DataProfileFindingRecordLocation
|
|
53238
|
+
* @static
|
|
53239
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
53240
|
+
* @returns {google.privacy.dlp.v2.DataProfileFindingRecordLocation} DataProfileFindingRecordLocation
|
|
53241
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
53242
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
53243
|
+
*/
|
|
53244
|
+
DataProfileFindingRecordLocation.decodeDelimited = function decodeDelimited(reader) {
|
|
53245
|
+
if (!(reader instanceof $Reader))
|
|
53246
|
+
reader = new $Reader(reader);
|
|
53247
|
+
return this.decode(reader, reader.uint32());
|
|
53248
|
+
};
|
|
52076
53249
|
|
|
52077
|
-
|
|
52078
|
-
|
|
52079
|
-
|
|
52080
|
-
|
|
52081
|
-
|
|
52082
|
-
|
|
52083
|
-
|
|
52084
|
-
|
|
52085
|
-
|
|
52086
|
-
|
|
52087
|
-
|
|
52088
|
-
|
|
52089
|
-
|
|
52090
|
-
|
|
53250
|
+
/**
|
|
53251
|
+
* Verifies a DataProfileFindingRecordLocation message.
|
|
53252
|
+
* @function verify
|
|
53253
|
+
* @memberof google.privacy.dlp.v2.DataProfileFindingRecordLocation
|
|
53254
|
+
* @static
|
|
53255
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
53256
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
53257
|
+
*/
|
|
53258
|
+
DataProfileFindingRecordLocation.verify = function verify(message) {
|
|
53259
|
+
if (typeof message !== "object" || message === null)
|
|
53260
|
+
return "object expected";
|
|
53261
|
+
if (message.field != null && message.hasOwnProperty("field")) {
|
|
53262
|
+
var error = $root.google.privacy.dlp.v2.FieldId.verify(message.field);
|
|
53263
|
+
if (error)
|
|
53264
|
+
return "field." + error;
|
|
53265
|
+
}
|
|
53266
|
+
return null;
|
|
53267
|
+
};
|
|
52091
53268
|
|
|
52092
|
-
|
|
52093
|
-
|
|
53269
|
+
/**
|
|
53270
|
+
* Creates a DataProfileFindingRecordLocation message from a plain object. Also converts values to their respective internal types.
|
|
53271
|
+
* @function fromObject
|
|
53272
|
+
* @memberof google.privacy.dlp.v2.DataProfileFindingRecordLocation
|
|
53273
|
+
* @static
|
|
53274
|
+
* @param {Object.<string,*>} object Plain object
|
|
53275
|
+
* @returns {google.privacy.dlp.v2.DataProfileFindingRecordLocation} DataProfileFindingRecordLocation
|
|
53276
|
+
*/
|
|
53277
|
+
DataProfileFindingRecordLocation.fromObject = function fromObject(object) {
|
|
53278
|
+
if (object instanceof $root.google.privacy.dlp.v2.DataProfileFindingRecordLocation)
|
|
53279
|
+
return object;
|
|
53280
|
+
var message = new $root.google.privacy.dlp.v2.DataProfileFindingRecordLocation();
|
|
53281
|
+
if (object.field != null) {
|
|
53282
|
+
if (typeof object.field !== "object")
|
|
53283
|
+
throw TypeError(".google.privacy.dlp.v2.DataProfileFindingRecordLocation.field: object expected");
|
|
53284
|
+
message.field = $root.google.privacy.dlp.v2.FieldId.fromObject(object.field);
|
|
53285
|
+
}
|
|
53286
|
+
return message;
|
|
53287
|
+
};
|
|
52094
53288
|
|
|
52095
|
-
|
|
52096
|
-
|
|
53289
|
+
/**
|
|
53290
|
+
* Creates a plain object from a DataProfileFindingRecordLocation message. Also converts values to other types if specified.
|
|
53291
|
+
* @function toObject
|
|
53292
|
+
* @memberof google.privacy.dlp.v2.DataProfileFindingRecordLocation
|
|
53293
|
+
* @static
|
|
53294
|
+
* @param {google.privacy.dlp.v2.DataProfileFindingRecordLocation} message DataProfileFindingRecordLocation
|
|
53295
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
53296
|
+
* @returns {Object.<string,*>} Plain object
|
|
53297
|
+
*/
|
|
53298
|
+
DataProfileFindingRecordLocation.toObject = function toObject(message, options) {
|
|
53299
|
+
if (!options)
|
|
53300
|
+
options = {};
|
|
53301
|
+
var object = {};
|
|
53302
|
+
if (options.defaults)
|
|
53303
|
+
object.field = null;
|
|
53304
|
+
if (message.field != null && message.hasOwnProperty("field"))
|
|
53305
|
+
object.field = $root.google.privacy.dlp.v2.FieldId.toObject(message.field, options);
|
|
53306
|
+
return object;
|
|
53307
|
+
};
|
|
52097
53308
|
|
|
52098
|
-
|
|
53309
|
+
/**
|
|
53310
|
+
* Converts this DataProfileFindingRecordLocation to JSON.
|
|
53311
|
+
* @function toJSON
|
|
53312
|
+
* @memberof google.privacy.dlp.v2.DataProfileFindingRecordLocation
|
|
53313
|
+
* @instance
|
|
53314
|
+
* @returns {Object.<string,*>} JSON object
|
|
53315
|
+
*/
|
|
53316
|
+
DataProfileFindingRecordLocation.prototype.toJSON = function toJSON() {
|
|
53317
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
53318
|
+
};
|
|
53319
|
+
|
|
53320
|
+
/**
|
|
53321
|
+
* Gets the default type url for DataProfileFindingRecordLocation
|
|
53322
|
+
* @function getTypeUrl
|
|
53323
|
+
* @memberof google.privacy.dlp.v2.DataProfileFindingRecordLocation
|
|
53324
|
+
* @static
|
|
53325
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
53326
|
+
* @returns {string} The default type url
|
|
53327
|
+
*/
|
|
53328
|
+
DataProfileFindingRecordLocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
53329
|
+
if (typeUrlPrefix === undefined) {
|
|
53330
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
53331
|
+
}
|
|
53332
|
+
return typeUrlPrefix + "/google.privacy.dlp.v2.DataProfileFindingRecordLocation";
|
|
53333
|
+
};
|
|
53334
|
+
|
|
53335
|
+
return DataProfileFindingRecordLocation;
|
|
52099
53336
|
})();
|
|
52100
53337
|
|
|
52101
53338
|
v2.DataProfileJobConfig = (function() {
|
|
@@ -80363,6 +81600,8 @@
|
|
|
80363
81600
|
* @property {google.protobuf.ITimestamp|null} [profileLastGenerated] TableDataProfile profileLastGenerated
|
|
80364
81601
|
* @property {Object.<string,string>|null} [resourceLabels] TableDataProfile resourceLabels
|
|
80365
81602
|
* @property {google.protobuf.ITimestamp|null} [createTime] TableDataProfile createTime
|
|
81603
|
+
* @property {google.privacy.dlp.v2.IBigQueryTable|null} [sampleFindingsTable] TableDataProfile sampleFindingsTable
|
|
81604
|
+
* @property {Array.<google.privacy.dlp.v2.ITag>|null} [tags] TableDataProfile tags
|
|
80366
81605
|
* @property {Array.<google.privacy.dlp.v2.IRelatedResource>|null} [relatedResources] TableDataProfile relatedResources
|
|
80367
81606
|
*/
|
|
80368
81607
|
|
|
@@ -80378,6 +81617,7 @@
|
|
|
80378
81617
|
this.predictedInfoTypes = [];
|
|
80379
81618
|
this.otherInfoTypes = [];
|
|
80380
81619
|
this.resourceLabels = {};
|
|
81620
|
+
this.tags = [];
|
|
80381
81621
|
this.relatedResources = [];
|
|
80382
81622
|
if (properties)
|
|
80383
81623
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -80593,6 +81833,22 @@
|
|
|
80593
81833
|
*/
|
|
80594
81834
|
TableDataProfile.prototype.createTime = null;
|
|
80595
81835
|
|
|
81836
|
+
/**
|
|
81837
|
+
* TableDataProfile sampleFindingsTable.
|
|
81838
|
+
* @member {google.privacy.dlp.v2.IBigQueryTable|null|undefined} sampleFindingsTable
|
|
81839
|
+
* @memberof google.privacy.dlp.v2.TableDataProfile
|
|
81840
|
+
* @instance
|
|
81841
|
+
*/
|
|
81842
|
+
TableDataProfile.prototype.sampleFindingsTable = null;
|
|
81843
|
+
|
|
81844
|
+
/**
|
|
81845
|
+
* TableDataProfile tags.
|
|
81846
|
+
* @member {Array.<google.privacy.dlp.v2.ITag>} tags
|
|
81847
|
+
* @memberof google.privacy.dlp.v2.TableDataProfile
|
|
81848
|
+
* @instance
|
|
81849
|
+
*/
|
|
81850
|
+
TableDataProfile.prototype.tags = $util.emptyArray;
|
|
81851
|
+
|
|
80596
81852
|
/**
|
|
80597
81853
|
* TableDataProfile relatedResources.
|
|
80598
81854
|
* @member {Array.<google.privacy.dlp.v2.IRelatedResource>} relatedResources
|
|
@@ -80680,6 +81936,11 @@
|
|
|
80680
81936
|
writer.uint32(/* id 29, wireType 2 =*/234).string(message.datasetLocation);
|
|
80681
81937
|
if (message.dataSourceType != null && Object.hasOwnProperty.call(message, "dataSourceType"))
|
|
80682
81938
|
$root.google.privacy.dlp.v2.DataSourceType.encode(message.dataSourceType, writer.uint32(/* id 36, wireType 2 =*/290).fork()).ldelim();
|
|
81939
|
+
if (message.sampleFindingsTable != null && Object.hasOwnProperty.call(message, "sampleFindingsTable"))
|
|
81940
|
+
$root.google.privacy.dlp.v2.BigQueryTable.encode(message.sampleFindingsTable, writer.uint32(/* id 37, wireType 2 =*/298).fork()).ldelim();
|
|
81941
|
+
if (message.tags != null && message.tags.length)
|
|
81942
|
+
for (var i = 0; i < message.tags.length; ++i)
|
|
81943
|
+
$root.google.privacy.dlp.v2.Tag.encode(message.tags[i], writer.uint32(/* id 39, wireType 2 =*/314).fork()).ldelim();
|
|
80683
81944
|
if (message.relatedResources != null && message.relatedResources.length)
|
|
80684
81945
|
for (var i = 0; i < message.relatedResources.length; ++i)
|
|
80685
81946
|
$root.google.privacy.dlp.v2.RelatedResource.encode(message.relatedResources[i], writer.uint32(/* id 41, wireType 2 =*/330).fork()).ldelim();
|
|
@@ -80844,6 +82105,16 @@
|
|
|
80844
82105
|
message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
80845
82106
|
break;
|
|
80846
82107
|
}
|
|
82108
|
+
case 37: {
|
|
82109
|
+
message.sampleFindingsTable = $root.google.privacy.dlp.v2.BigQueryTable.decode(reader, reader.uint32());
|
|
82110
|
+
break;
|
|
82111
|
+
}
|
|
82112
|
+
case 39: {
|
|
82113
|
+
if (!(message.tags && message.tags.length))
|
|
82114
|
+
message.tags = [];
|
|
82115
|
+
message.tags.push($root.google.privacy.dlp.v2.Tag.decode(reader, reader.uint32()));
|
|
82116
|
+
break;
|
|
82117
|
+
}
|
|
80847
82118
|
case 41: {
|
|
80848
82119
|
if (!(message.relatedResources && message.relatedResources.length))
|
|
80849
82120
|
message.relatedResources = [];
|
|
@@ -81017,6 +82288,20 @@
|
|
|
81017
82288
|
if (error)
|
|
81018
82289
|
return "createTime." + error;
|
|
81019
82290
|
}
|
|
82291
|
+
if (message.sampleFindingsTable != null && message.hasOwnProperty("sampleFindingsTable")) {
|
|
82292
|
+
var error = $root.google.privacy.dlp.v2.BigQueryTable.verify(message.sampleFindingsTable);
|
|
82293
|
+
if (error)
|
|
82294
|
+
return "sampleFindingsTable." + error;
|
|
82295
|
+
}
|
|
82296
|
+
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
82297
|
+
if (!Array.isArray(message.tags))
|
|
82298
|
+
return "tags: array expected";
|
|
82299
|
+
for (var i = 0; i < message.tags.length; ++i) {
|
|
82300
|
+
var error = $root.google.privacy.dlp.v2.Tag.verify(message.tags[i]);
|
|
82301
|
+
if (error)
|
|
82302
|
+
return "tags." + error;
|
|
82303
|
+
}
|
|
82304
|
+
}
|
|
81020
82305
|
if (message.relatedResources != null && message.hasOwnProperty("relatedResources")) {
|
|
81021
82306
|
if (!Array.isArray(message.relatedResources))
|
|
81022
82307
|
return "relatedResources: array expected";
|
|
@@ -81227,6 +82512,21 @@
|
|
|
81227
82512
|
throw TypeError(".google.privacy.dlp.v2.TableDataProfile.createTime: object expected");
|
|
81228
82513
|
message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
|
|
81229
82514
|
}
|
|
82515
|
+
if (object.sampleFindingsTable != null) {
|
|
82516
|
+
if (typeof object.sampleFindingsTable !== "object")
|
|
82517
|
+
throw TypeError(".google.privacy.dlp.v2.TableDataProfile.sampleFindingsTable: object expected");
|
|
82518
|
+
message.sampleFindingsTable = $root.google.privacy.dlp.v2.BigQueryTable.fromObject(object.sampleFindingsTable);
|
|
82519
|
+
}
|
|
82520
|
+
if (object.tags) {
|
|
82521
|
+
if (!Array.isArray(object.tags))
|
|
82522
|
+
throw TypeError(".google.privacy.dlp.v2.TableDataProfile.tags: array expected");
|
|
82523
|
+
message.tags = [];
|
|
82524
|
+
for (var i = 0; i < object.tags.length; ++i) {
|
|
82525
|
+
if (typeof object.tags[i] !== "object")
|
|
82526
|
+
throw TypeError(".google.privacy.dlp.v2.TableDataProfile.tags: object expected");
|
|
82527
|
+
message.tags[i] = $root.google.privacy.dlp.v2.Tag.fromObject(object.tags[i]);
|
|
82528
|
+
}
|
|
82529
|
+
}
|
|
81230
82530
|
if (object.relatedResources) {
|
|
81231
82531
|
if (!Array.isArray(object.relatedResources))
|
|
81232
82532
|
throw TypeError(".google.privacy.dlp.v2.TableDataProfile.relatedResources: array expected");
|
|
@@ -81256,6 +82556,7 @@
|
|
|
81256
82556
|
if (options.arrays || options.defaults) {
|
|
81257
82557
|
object.predictedInfoTypes = [];
|
|
81258
82558
|
object.otherInfoTypes = [];
|
|
82559
|
+
object.tags = [];
|
|
81259
82560
|
object.relatedResources = [];
|
|
81260
82561
|
}
|
|
81261
82562
|
if (options.objects || options.defaults)
|
|
@@ -81300,6 +82601,7 @@
|
|
|
81300
82601
|
object.tableId = "";
|
|
81301
82602
|
object.datasetLocation = "";
|
|
81302
82603
|
object.dataSourceType = null;
|
|
82604
|
+
object.sampleFindingsTable = null;
|
|
81303
82605
|
}
|
|
81304
82606
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
81305
82607
|
object.name = message.name;
|
|
@@ -81375,6 +82677,13 @@
|
|
|
81375
82677
|
object.datasetLocation = message.datasetLocation;
|
|
81376
82678
|
if (message.dataSourceType != null && message.hasOwnProperty("dataSourceType"))
|
|
81377
82679
|
object.dataSourceType = $root.google.privacy.dlp.v2.DataSourceType.toObject(message.dataSourceType, options);
|
|
82680
|
+
if (message.sampleFindingsTable != null && message.hasOwnProperty("sampleFindingsTable"))
|
|
82681
|
+
object.sampleFindingsTable = $root.google.privacy.dlp.v2.BigQueryTable.toObject(message.sampleFindingsTable, options);
|
|
82682
|
+
if (message.tags && message.tags.length) {
|
|
82683
|
+
object.tags = [];
|
|
82684
|
+
for (var j = 0; j < message.tags.length; ++j)
|
|
82685
|
+
object.tags[j] = $root.google.privacy.dlp.v2.Tag.toObject(message.tags[j], options);
|
|
82686
|
+
}
|
|
81378
82687
|
if (message.relatedResources && message.relatedResources.length) {
|
|
81379
82688
|
object.relatedResources = [];
|
|
81380
82689
|
for (var j = 0; j < message.relatedResources.length; ++j)
|
|
@@ -83210,7 +84519,9 @@
|
|
|
83210
84519
|
* @property {Object.<string,google.privacy.dlp.v2.IValue>|null} [resourceAttributes] FileStoreDataProfile resourceAttributes
|
|
83211
84520
|
* @property {Object.<string,string>|null} [resourceLabels] FileStoreDataProfile resourceLabels
|
|
83212
84521
|
* @property {Array.<google.privacy.dlp.v2.IFileStoreInfoTypeSummary>|null} [fileStoreInfoTypeSummaries] FileStoreDataProfile fileStoreInfoTypeSummaries
|
|
84522
|
+
* @property {google.privacy.dlp.v2.IBigQueryTable|null} [sampleFindingsTable] FileStoreDataProfile sampleFindingsTable
|
|
83213
84523
|
* @property {boolean|null} [fileStoreIsEmpty] FileStoreDataProfile fileStoreIsEmpty
|
|
84524
|
+
* @property {Array.<google.privacy.dlp.v2.ITag>|null} [tags] FileStoreDataProfile tags
|
|
83214
84525
|
* @property {Array.<google.privacy.dlp.v2.IRelatedResource>|null} [relatedResources] FileStoreDataProfile relatedResources
|
|
83215
84526
|
*/
|
|
83216
84527
|
|
|
@@ -83228,6 +84539,7 @@
|
|
|
83228
84539
|
this.resourceAttributes = {};
|
|
83229
84540
|
this.resourceLabels = {};
|
|
83230
84541
|
this.fileStoreInfoTypeSummaries = [];
|
|
84542
|
+
this.tags = [];
|
|
83231
84543
|
this.relatedResources = [];
|
|
83232
84544
|
if (properties)
|
|
83233
84545
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -83411,6 +84723,14 @@
|
|
|
83411
84723
|
*/
|
|
83412
84724
|
FileStoreDataProfile.prototype.fileStoreInfoTypeSummaries = $util.emptyArray;
|
|
83413
84725
|
|
|
84726
|
+
/**
|
|
84727
|
+
* FileStoreDataProfile sampleFindingsTable.
|
|
84728
|
+
* @member {google.privacy.dlp.v2.IBigQueryTable|null|undefined} sampleFindingsTable
|
|
84729
|
+
* @memberof google.privacy.dlp.v2.FileStoreDataProfile
|
|
84730
|
+
* @instance
|
|
84731
|
+
*/
|
|
84732
|
+
FileStoreDataProfile.prototype.sampleFindingsTable = null;
|
|
84733
|
+
|
|
83414
84734
|
/**
|
|
83415
84735
|
* FileStoreDataProfile fileStoreIsEmpty.
|
|
83416
84736
|
* @member {boolean} fileStoreIsEmpty
|
|
@@ -83419,6 +84739,14 @@
|
|
|
83419
84739
|
*/
|
|
83420
84740
|
FileStoreDataProfile.prototype.fileStoreIsEmpty = false;
|
|
83421
84741
|
|
|
84742
|
+
/**
|
|
84743
|
+
* FileStoreDataProfile tags.
|
|
84744
|
+
* @member {Array.<google.privacy.dlp.v2.ITag>} tags
|
|
84745
|
+
* @memberof google.privacy.dlp.v2.FileStoreDataProfile
|
|
84746
|
+
* @instance
|
|
84747
|
+
*/
|
|
84748
|
+
FileStoreDataProfile.prototype.tags = $util.emptyArray;
|
|
84749
|
+
|
|
83422
84750
|
/**
|
|
83423
84751
|
* FileStoreDataProfile relatedResources.
|
|
83424
84752
|
* @member {Array.<google.privacy.dlp.v2.IRelatedResource>} relatedResources
|
|
@@ -83500,10 +84828,15 @@
|
|
|
83500
84828
|
if (message.fileStoreInfoTypeSummaries != null && message.fileStoreInfoTypeSummaries.length)
|
|
83501
84829
|
for (var i = 0; i < message.fileStoreInfoTypeSummaries.length; ++i)
|
|
83502
84830
|
$root.google.privacy.dlp.v2.FileStoreInfoTypeSummary.encode(message.fileStoreInfoTypeSummaries[i], writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
|
|
84831
|
+
if (message.sampleFindingsTable != null && Object.hasOwnProperty.call(message, "sampleFindingsTable"))
|
|
84832
|
+
$root.google.privacy.dlp.v2.BigQueryTable.encode(message.sampleFindingsTable, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
|
|
83503
84833
|
if (message.fileStoreIsEmpty != null && Object.hasOwnProperty.call(message, "fileStoreIsEmpty"))
|
|
83504
84834
|
writer.uint32(/* id 23, wireType 0 =*/184).bool(message.fileStoreIsEmpty);
|
|
83505
84835
|
if (message.fullResource != null && Object.hasOwnProperty.call(message, "fullResource"))
|
|
83506
84836
|
writer.uint32(/* id 24, wireType 2 =*/194).string(message.fullResource);
|
|
84837
|
+
if (message.tags != null && message.tags.length)
|
|
84838
|
+
for (var i = 0; i < message.tags.length; ++i)
|
|
84839
|
+
$root.google.privacy.dlp.v2.Tag.encode(message.tags[i], writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim();
|
|
83507
84840
|
if (message.relatedResources != null && message.relatedResources.length)
|
|
83508
84841
|
for (var i = 0; i < message.relatedResources.length; ++i)
|
|
83509
84842
|
$root.google.privacy.dlp.v2.RelatedResource.encode(message.relatedResources[i], writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
|
|
@@ -83673,10 +85006,20 @@
|
|
|
83673
85006
|
message.fileStoreInfoTypeSummaries.push($root.google.privacy.dlp.v2.FileStoreInfoTypeSummary.decode(reader, reader.uint32()));
|
|
83674
85007
|
break;
|
|
83675
85008
|
}
|
|
85009
|
+
case 22: {
|
|
85010
|
+
message.sampleFindingsTable = $root.google.privacy.dlp.v2.BigQueryTable.decode(reader, reader.uint32());
|
|
85011
|
+
break;
|
|
85012
|
+
}
|
|
83676
85013
|
case 23: {
|
|
83677
85014
|
message.fileStoreIsEmpty = reader.bool();
|
|
83678
85015
|
break;
|
|
83679
85016
|
}
|
|
85017
|
+
case 25: {
|
|
85018
|
+
if (!(message.tags && message.tags.length))
|
|
85019
|
+
message.tags = [];
|
|
85020
|
+
message.tags.push($root.google.privacy.dlp.v2.Tag.decode(reader, reader.uint32()));
|
|
85021
|
+
break;
|
|
85022
|
+
}
|
|
83680
85023
|
case 26: {
|
|
83681
85024
|
if (!(message.relatedResources && message.relatedResources.length))
|
|
83682
85025
|
message.relatedResources = [];
|
|
@@ -83841,9 +85184,23 @@
|
|
|
83841
85184
|
return "fileStoreInfoTypeSummaries." + error;
|
|
83842
85185
|
}
|
|
83843
85186
|
}
|
|
85187
|
+
if (message.sampleFindingsTable != null && message.hasOwnProperty("sampleFindingsTable")) {
|
|
85188
|
+
var error = $root.google.privacy.dlp.v2.BigQueryTable.verify(message.sampleFindingsTable);
|
|
85189
|
+
if (error)
|
|
85190
|
+
return "sampleFindingsTable." + error;
|
|
85191
|
+
}
|
|
83844
85192
|
if (message.fileStoreIsEmpty != null && message.hasOwnProperty("fileStoreIsEmpty"))
|
|
83845
85193
|
if (typeof message.fileStoreIsEmpty !== "boolean")
|
|
83846
85194
|
return "fileStoreIsEmpty: boolean expected";
|
|
85195
|
+
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
85196
|
+
if (!Array.isArray(message.tags))
|
|
85197
|
+
return "tags: array expected";
|
|
85198
|
+
for (var i = 0; i < message.tags.length; ++i) {
|
|
85199
|
+
var error = $root.google.privacy.dlp.v2.Tag.verify(message.tags[i]);
|
|
85200
|
+
if (error)
|
|
85201
|
+
return "tags." + error;
|
|
85202
|
+
}
|
|
85203
|
+
}
|
|
83847
85204
|
if (message.relatedResources != null && message.hasOwnProperty("relatedResources")) {
|
|
83848
85205
|
if (!Array.isArray(message.relatedResources))
|
|
83849
85206
|
return "relatedResources: array expected";
|
|
@@ -84010,8 +85367,23 @@
|
|
|
84010
85367
|
message.fileStoreInfoTypeSummaries[i] = $root.google.privacy.dlp.v2.FileStoreInfoTypeSummary.fromObject(object.fileStoreInfoTypeSummaries[i]);
|
|
84011
85368
|
}
|
|
84012
85369
|
}
|
|
85370
|
+
if (object.sampleFindingsTable != null) {
|
|
85371
|
+
if (typeof object.sampleFindingsTable !== "object")
|
|
85372
|
+
throw TypeError(".google.privacy.dlp.v2.FileStoreDataProfile.sampleFindingsTable: object expected");
|
|
85373
|
+
message.sampleFindingsTable = $root.google.privacy.dlp.v2.BigQueryTable.fromObject(object.sampleFindingsTable);
|
|
85374
|
+
}
|
|
84013
85375
|
if (object.fileStoreIsEmpty != null)
|
|
84014
85376
|
message.fileStoreIsEmpty = Boolean(object.fileStoreIsEmpty);
|
|
85377
|
+
if (object.tags) {
|
|
85378
|
+
if (!Array.isArray(object.tags))
|
|
85379
|
+
throw TypeError(".google.privacy.dlp.v2.FileStoreDataProfile.tags: array expected");
|
|
85380
|
+
message.tags = [];
|
|
85381
|
+
for (var i = 0; i < object.tags.length; ++i) {
|
|
85382
|
+
if (typeof object.tags[i] !== "object")
|
|
85383
|
+
throw TypeError(".google.privacy.dlp.v2.FileStoreDataProfile.tags: object expected");
|
|
85384
|
+
message.tags[i] = $root.google.privacy.dlp.v2.Tag.fromObject(object.tags[i]);
|
|
85385
|
+
}
|
|
85386
|
+
}
|
|
84015
85387
|
if (object.relatedResources) {
|
|
84016
85388
|
if (!Array.isArray(object.relatedResources))
|
|
84017
85389
|
throw TypeError(".google.privacy.dlp.v2.FileStoreDataProfile.relatedResources: array expected");
|
|
@@ -84042,6 +85414,7 @@
|
|
|
84042
85414
|
object.fileClusterSummaries = [];
|
|
84043
85415
|
object.dataStorageLocations = [];
|
|
84044
85416
|
object.fileStoreInfoTypeSummaries = [];
|
|
85417
|
+
object.tags = [];
|
|
84045
85418
|
object.relatedResources = [];
|
|
84046
85419
|
}
|
|
84047
85420
|
if (options.objects || options.defaults) {
|
|
@@ -84065,6 +85438,7 @@
|
|
|
84065
85438
|
object.createTime = null;
|
|
84066
85439
|
object.lastModifiedTime = null;
|
|
84067
85440
|
object.locationType = "";
|
|
85441
|
+
object.sampleFindingsTable = null;
|
|
84068
85442
|
object.fileStoreIsEmpty = false;
|
|
84069
85443
|
object.fullResource = "";
|
|
84070
85444
|
}
|
|
@@ -84126,10 +85500,17 @@
|
|
|
84126
85500
|
for (var j = 0; j < message.fileStoreInfoTypeSummaries.length; ++j)
|
|
84127
85501
|
object.fileStoreInfoTypeSummaries[j] = $root.google.privacy.dlp.v2.FileStoreInfoTypeSummary.toObject(message.fileStoreInfoTypeSummaries[j], options);
|
|
84128
85502
|
}
|
|
85503
|
+
if (message.sampleFindingsTable != null && message.hasOwnProperty("sampleFindingsTable"))
|
|
85504
|
+
object.sampleFindingsTable = $root.google.privacy.dlp.v2.BigQueryTable.toObject(message.sampleFindingsTable, options);
|
|
84129
85505
|
if (message.fileStoreIsEmpty != null && message.hasOwnProperty("fileStoreIsEmpty"))
|
|
84130
85506
|
object.fileStoreIsEmpty = message.fileStoreIsEmpty;
|
|
84131
85507
|
if (message.fullResource != null && message.hasOwnProperty("fullResource"))
|
|
84132
85508
|
object.fullResource = message.fullResource;
|
|
85509
|
+
if (message.tags && message.tags.length) {
|
|
85510
|
+
object.tags = [];
|
|
85511
|
+
for (var j = 0; j < message.tags.length; ++j)
|
|
85512
|
+
object.tags[j] = $root.google.privacy.dlp.v2.Tag.toObject(message.tags[j], options);
|
|
85513
|
+
}
|
|
84133
85514
|
if (message.relatedResources && message.relatedResources.length) {
|
|
84134
85515
|
object.relatedResources = [];
|
|
84135
85516
|
for (var j = 0; j < message.relatedResources.length; ++j)
|
|
@@ -84183,6 +85564,256 @@
|
|
|
84183
85564
|
return FileStoreDataProfile;
|
|
84184
85565
|
})();
|
|
84185
85566
|
|
|
85567
|
+
v2.Tag = (function() {
|
|
85568
|
+
|
|
85569
|
+
/**
|
|
85570
|
+
* Properties of a Tag.
|
|
85571
|
+
* @memberof google.privacy.dlp.v2
|
|
85572
|
+
* @interface ITag
|
|
85573
|
+
* @property {string|null} [namespacedTagValue] Tag namespacedTagValue
|
|
85574
|
+
* @property {string|null} [key] Tag key
|
|
85575
|
+
* @property {string|null} [value] Tag value
|
|
85576
|
+
*/
|
|
85577
|
+
|
|
85578
|
+
/**
|
|
85579
|
+
* Constructs a new Tag.
|
|
85580
|
+
* @memberof google.privacy.dlp.v2
|
|
85581
|
+
* @classdesc Represents a Tag.
|
|
85582
|
+
* @implements ITag
|
|
85583
|
+
* @constructor
|
|
85584
|
+
* @param {google.privacy.dlp.v2.ITag=} [properties] Properties to set
|
|
85585
|
+
*/
|
|
85586
|
+
function Tag(properties) {
|
|
85587
|
+
if (properties)
|
|
85588
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
85589
|
+
if (properties[keys[i]] != null)
|
|
85590
|
+
this[keys[i]] = properties[keys[i]];
|
|
85591
|
+
}
|
|
85592
|
+
|
|
85593
|
+
/**
|
|
85594
|
+
* Tag namespacedTagValue.
|
|
85595
|
+
* @member {string} namespacedTagValue
|
|
85596
|
+
* @memberof google.privacy.dlp.v2.Tag
|
|
85597
|
+
* @instance
|
|
85598
|
+
*/
|
|
85599
|
+
Tag.prototype.namespacedTagValue = "";
|
|
85600
|
+
|
|
85601
|
+
/**
|
|
85602
|
+
* Tag key.
|
|
85603
|
+
* @member {string} key
|
|
85604
|
+
* @memberof google.privacy.dlp.v2.Tag
|
|
85605
|
+
* @instance
|
|
85606
|
+
*/
|
|
85607
|
+
Tag.prototype.key = "";
|
|
85608
|
+
|
|
85609
|
+
/**
|
|
85610
|
+
* Tag value.
|
|
85611
|
+
* @member {string} value
|
|
85612
|
+
* @memberof google.privacy.dlp.v2.Tag
|
|
85613
|
+
* @instance
|
|
85614
|
+
*/
|
|
85615
|
+
Tag.prototype.value = "";
|
|
85616
|
+
|
|
85617
|
+
/**
|
|
85618
|
+
* Creates a new Tag instance using the specified properties.
|
|
85619
|
+
* @function create
|
|
85620
|
+
* @memberof google.privacy.dlp.v2.Tag
|
|
85621
|
+
* @static
|
|
85622
|
+
* @param {google.privacy.dlp.v2.ITag=} [properties] Properties to set
|
|
85623
|
+
* @returns {google.privacy.dlp.v2.Tag} Tag instance
|
|
85624
|
+
*/
|
|
85625
|
+
Tag.create = function create(properties) {
|
|
85626
|
+
return new Tag(properties);
|
|
85627
|
+
};
|
|
85628
|
+
|
|
85629
|
+
/**
|
|
85630
|
+
* Encodes the specified Tag message. Does not implicitly {@link google.privacy.dlp.v2.Tag.verify|verify} messages.
|
|
85631
|
+
* @function encode
|
|
85632
|
+
* @memberof google.privacy.dlp.v2.Tag
|
|
85633
|
+
* @static
|
|
85634
|
+
* @param {google.privacy.dlp.v2.ITag} message Tag message or plain object to encode
|
|
85635
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
85636
|
+
* @returns {$protobuf.Writer} Writer
|
|
85637
|
+
*/
|
|
85638
|
+
Tag.encode = function encode(message, writer) {
|
|
85639
|
+
if (!writer)
|
|
85640
|
+
writer = $Writer.create();
|
|
85641
|
+
if (message.namespacedTagValue != null && Object.hasOwnProperty.call(message, "namespacedTagValue"))
|
|
85642
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.namespacedTagValue);
|
|
85643
|
+
if (message.key != null && Object.hasOwnProperty.call(message, "key"))
|
|
85644
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.key);
|
|
85645
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
85646
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.value);
|
|
85647
|
+
return writer;
|
|
85648
|
+
};
|
|
85649
|
+
|
|
85650
|
+
/**
|
|
85651
|
+
* Encodes the specified Tag message, length delimited. Does not implicitly {@link google.privacy.dlp.v2.Tag.verify|verify} messages.
|
|
85652
|
+
* @function encodeDelimited
|
|
85653
|
+
* @memberof google.privacy.dlp.v2.Tag
|
|
85654
|
+
* @static
|
|
85655
|
+
* @param {google.privacy.dlp.v2.ITag} message Tag message or plain object to encode
|
|
85656
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
85657
|
+
* @returns {$protobuf.Writer} Writer
|
|
85658
|
+
*/
|
|
85659
|
+
Tag.encodeDelimited = function encodeDelimited(message, writer) {
|
|
85660
|
+
return this.encode(message, writer).ldelim();
|
|
85661
|
+
};
|
|
85662
|
+
|
|
85663
|
+
/**
|
|
85664
|
+
* Decodes a Tag message from the specified reader or buffer.
|
|
85665
|
+
* @function decode
|
|
85666
|
+
* @memberof google.privacy.dlp.v2.Tag
|
|
85667
|
+
* @static
|
|
85668
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
85669
|
+
* @param {number} [length] Message length if known beforehand
|
|
85670
|
+
* @returns {google.privacy.dlp.v2.Tag} Tag
|
|
85671
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
85672
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
85673
|
+
*/
|
|
85674
|
+
Tag.decode = function decode(reader, length) {
|
|
85675
|
+
if (!(reader instanceof $Reader))
|
|
85676
|
+
reader = $Reader.create(reader);
|
|
85677
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.privacy.dlp.v2.Tag();
|
|
85678
|
+
while (reader.pos < end) {
|
|
85679
|
+
var tag = reader.uint32();
|
|
85680
|
+
switch (tag >>> 3) {
|
|
85681
|
+
case 1: {
|
|
85682
|
+
message.namespacedTagValue = reader.string();
|
|
85683
|
+
break;
|
|
85684
|
+
}
|
|
85685
|
+
case 2: {
|
|
85686
|
+
message.key = reader.string();
|
|
85687
|
+
break;
|
|
85688
|
+
}
|
|
85689
|
+
case 3: {
|
|
85690
|
+
message.value = reader.string();
|
|
85691
|
+
break;
|
|
85692
|
+
}
|
|
85693
|
+
default:
|
|
85694
|
+
reader.skipType(tag & 7);
|
|
85695
|
+
break;
|
|
85696
|
+
}
|
|
85697
|
+
}
|
|
85698
|
+
return message;
|
|
85699
|
+
};
|
|
85700
|
+
|
|
85701
|
+
/**
|
|
85702
|
+
* Decodes a Tag message from the specified reader or buffer, length delimited.
|
|
85703
|
+
* @function decodeDelimited
|
|
85704
|
+
* @memberof google.privacy.dlp.v2.Tag
|
|
85705
|
+
* @static
|
|
85706
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
85707
|
+
* @returns {google.privacy.dlp.v2.Tag} Tag
|
|
85708
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
85709
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
85710
|
+
*/
|
|
85711
|
+
Tag.decodeDelimited = function decodeDelimited(reader) {
|
|
85712
|
+
if (!(reader instanceof $Reader))
|
|
85713
|
+
reader = new $Reader(reader);
|
|
85714
|
+
return this.decode(reader, reader.uint32());
|
|
85715
|
+
};
|
|
85716
|
+
|
|
85717
|
+
/**
|
|
85718
|
+
* Verifies a Tag message.
|
|
85719
|
+
* @function verify
|
|
85720
|
+
* @memberof google.privacy.dlp.v2.Tag
|
|
85721
|
+
* @static
|
|
85722
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
85723
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
85724
|
+
*/
|
|
85725
|
+
Tag.verify = function verify(message) {
|
|
85726
|
+
if (typeof message !== "object" || message === null)
|
|
85727
|
+
return "object expected";
|
|
85728
|
+
if (message.namespacedTagValue != null && message.hasOwnProperty("namespacedTagValue"))
|
|
85729
|
+
if (!$util.isString(message.namespacedTagValue))
|
|
85730
|
+
return "namespacedTagValue: string expected";
|
|
85731
|
+
if (message.key != null && message.hasOwnProperty("key"))
|
|
85732
|
+
if (!$util.isString(message.key))
|
|
85733
|
+
return "key: string expected";
|
|
85734
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
85735
|
+
if (!$util.isString(message.value))
|
|
85736
|
+
return "value: string expected";
|
|
85737
|
+
return null;
|
|
85738
|
+
};
|
|
85739
|
+
|
|
85740
|
+
/**
|
|
85741
|
+
* Creates a Tag message from a plain object. Also converts values to their respective internal types.
|
|
85742
|
+
* @function fromObject
|
|
85743
|
+
* @memberof google.privacy.dlp.v2.Tag
|
|
85744
|
+
* @static
|
|
85745
|
+
* @param {Object.<string,*>} object Plain object
|
|
85746
|
+
* @returns {google.privacy.dlp.v2.Tag} Tag
|
|
85747
|
+
*/
|
|
85748
|
+
Tag.fromObject = function fromObject(object) {
|
|
85749
|
+
if (object instanceof $root.google.privacy.dlp.v2.Tag)
|
|
85750
|
+
return object;
|
|
85751
|
+
var message = new $root.google.privacy.dlp.v2.Tag();
|
|
85752
|
+
if (object.namespacedTagValue != null)
|
|
85753
|
+
message.namespacedTagValue = String(object.namespacedTagValue);
|
|
85754
|
+
if (object.key != null)
|
|
85755
|
+
message.key = String(object.key);
|
|
85756
|
+
if (object.value != null)
|
|
85757
|
+
message.value = String(object.value);
|
|
85758
|
+
return message;
|
|
85759
|
+
};
|
|
85760
|
+
|
|
85761
|
+
/**
|
|
85762
|
+
* Creates a plain object from a Tag message. Also converts values to other types if specified.
|
|
85763
|
+
* @function toObject
|
|
85764
|
+
* @memberof google.privacy.dlp.v2.Tag
|
|
85765
|
+
* @static
|
|
85766
|
+
* @param {google.privacy.dlp.v2.Tag} message Tag
|
|
85767
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
85768
|
+
* @returns {Object.<string,*>} Plain object
|
|
85769
|
+
*/
|
|
85770
|
+
Tag.toObject = function toObject(message, options) {
|
|
85771
|
+
if (!options)
|
|
85772
|
+
options = {};
|
|
85773
|
+
var object = {};
|
|
85774
|
+
if (options.defaults) {
|
|
85775
|
+
object.namespacedTagValue = "";
|
|
85776
|
+
object.key = "";
|
|
85777
|
+
object.value = "";
|
|
85778
|
+
}
|
|
85779
|
+
if (message.namespacedTagValue != null && message.hasOwnProperty("namespacedTagValue"))
|
|
85780
|
+
object.namespacedTagValue = message.namespacedTagValue;
|
|
85781
|
+
if (message.key != null && message.hasOwnProperty("key"))
|
|
85782
|
+
object.key = message.key;
|
|
85783
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
85784
|
+
object.value = message.value;
|
|
85785
|
+
return object;
|
|
85786
|
+
};
|
|
85787
|
+
|
|
85788
|
+
/**
|
|
85789
|
+
* Converts this Tag to JSON.
|
|
85790
|
+
* @function toJSON
|
|
85791
|
+
* @memberof google.privacy.dlp.v2.Tag
|
|
85792
|
+
* @instance
|
|
85793
|
+
* @returns {Object.<string,*>} JSON object
|
|
85794
|
+
*/
|
|
85795
|
+
Tag.prototype.toJSON = function toJSON() {
|
|
85796
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
85797
|
+
};
|
|
85798
|
+
|
|
85799
|
+
/**
|
|
85800
|
+
* Gets the default type url for Tag
|
|
85801
|
+
* @function getTypeUrl
|
|
85802
|
+
* @memberof google.privacy.dlp.v2.Tag
|
|
85803
|
+
* @static
|
|
85804
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
85805
|
+
* @returns {string} The default type url
|
|
85806
|
+
*/
|
|
85807
|
+
Tag.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
85808
|
+
if (typeUrlPrefix === undefined) {
|
|
85809
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
85810
|
+
}
|
|
85811
|
+
return typeUrlPrefix + "/google.privacy.dlp.v2.Tag";
|
|
85812
|
+
};
|
|
85813
|
+
|
|
85814
|
+
return Tag;
|
|
85815
|
+
})();
|
|
85816
|
+
|
|
84186
85817
|
v2.RelatedResource = (function() {
|
|
84187
85818
|
|
|
84188
85819
|
/**
|
|
@@ -101047,6 +102678,7 @@
|
|
|
101047
102678
|
* @interface ITableReference
|
|
101048
102679
|
* @property {string|null} [datasetId] TableReference datasetId
|
|
101049
102680
|
* @property {string|null} [tableId] TableReference tableId
|
|
102681
|
+
* @property {string|null} [projectId] TableReference projectId
|
|
101050
102682
|
*/
|
|
101051
102683
|
|
|
101052
102684
|
/**
|
|
@@ -101080,6 +102712,14 @@
|
|
|
101080
102712
|
*/
|
|
101081
102713
|
TableReference.prototype.tableId = "";
|
|
101082
102714
|
|
|
102715
|
+
/**
|
|
102716
|
+
* TableReference projectId.
|
|
102717
|
+
* @member {string} projectId
|
|
102718
|
+
* @memberof google.privacy.dlp.v2.TableReference
|
|
102719
|
+
* @instance
|
|
102720
|
+
*/
|
|
102721
|
+
TableReference.prototype.projectId = "";
|
|
102722
|
+
|
|
101083
102723
|
/**
|
|
101084
102724
|
* Creates a new TableReference instance using the specified properties.
|
|
101085
102725
|
* @function create
|
|
@@ -101108,6 +102748,8 @@
|
|
|
101108
102748
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.datasetId);
|
|
101109
102749
|
if (message.tableId != null && Object.hasOwnProperty.call(message, "tableId"))
|
|
101110
102750
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.tableId);
|
|
102751
|
+
if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
|
|
102752
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.projectId);
|
|
101111
102753
|
return writer;
|
|
101112
102754
|
};
|
|
101113
102755
|
|
|
@@ -101150,6 +102792,10 @@
|
|
|
101150
102792
|
message.tableId = reader.string();
|
|
101151
102793
|
break;
|
|
101152
102794
|
}
|
|
102795
|
+
case 3: {
|
|
102796
|
+
message.projectId = reader.string();
|
|
102797
|
+
break;
|
|
102798
|
+
}
|
|
101153
102799
|
default:
|
|
101154
102800
|
reader.skipType(tag & 7);
|
|
101155
102801
|
break;
|
|
@@ -101191,6 +102837,9 @@
|
|
|
101191
102837
|
if (message.tableId != null && message.hasOwnProperty("tableId"))
|
|
101192
102838
|
if (!$util.isString(message.tableId))
|
|
101193
102839
|
return "tableId: string expected";
|
|
102840
|
+
if (message.projectId != null && message.hasOwnProperty("projectId"))
|
|
102841
|
+
if (!$util.isString(message.projectId))
|
|
102842
|
+
return "projectId: string expected";
|
|
101194
102843
|
return null;
|
|
101195
102844
|
};
|
|
101196
102845
|
|
|
@@ -101210,6 +102859,8 @@
|
|
|
101210
102859
|
message.datasetId = String(object.datasetId);
|
|
101211
102860
|
if (object.tableId != null)
|
|
101212
102861
|
message.tableId = String(object.tableId);
|
|
102862
|
+
if (object.projectId != null)
|
|
102863
|
+
message.projectId = String(object.projectId);
|
|
101213
102864
|
return message;
|
|
101214
102865
|
};
|
|
101215
102866
|
|
|
@@ -101229,11 +102880,14 @@
|
|
|
101229
102880
|
if (options.defaults) {
|
|
101230
102881
|
object.datasetId = "";
|
|
101231
102882
|
object.tableId = "";
|
|
102883
|
+
object.projectId = "";
|
|
101232
102884
|
}
|
|
101233
102885
|
if (message.datasetId != null && message.hasOwnProperty("datasetId"))
|
|
101234
102886
|
object.datasetId = message.datasetId;
|
|
101235
102887
|
if (message.tableId != null && message.hasOwnProperty("tableId"))
|
|
101236
102888
|
object.tableId = message.tableId;
|
|
102889
|
+
if (message.projectId != null && message.hasOwnProperty("projectId"))
|
|
102890
|
+
object.projectId = message.projectId;
|
|
101237
102891
|
return object;
|
|
101238
102892
|
};
|
|
101239
102893
|
|