@google-cloud/dlp 6.3.0 → 6.5.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/README.md +83 -167
- package/build/protos/google/privacy/dlp/v2/dlp.proto +305 -74
- package/build/protos/protos.d.ts +691 -2
- package/build/protos/protos.js +1842 -5
- package/build/protos/protos.json +147 -1
- package/build/src/v2/dlp_service_client.d.ts +248 -126
- package/build/src/v2/dlp_service_client.js +154 -84
- package/package.json +1 -1
package/build/protos/protos.js
CHANGED
|
@@ -9680,6 +9680,8 @@
|
|
|
9680
9680
|
* @property {Array.<google.privacy.dlp.v2.RedactImageRequest.IImageRedactionConfig>|null} [imageRedactionConfigs] RedactImageRequest imageRedactionConfigs
|
|
9681
9681
|
* @property {boolean|null} [includeFindings] RedactImageRequest includeFindings
|
|
9682
9682
|
* @property {google.privacy.dlp.v2.IByteContentItem|null} [byteItem] RedactImageRequest byteItem
|
|
9683
|
+
* @property {string|null} [inspectTemplate] RedactImageRequest inspectTemplate
|
|
9684
|
+
* @property {string|null} [deidentifyTemplate] RedactImageRequest deidentifyTemplate
|
|
9683
9685
|
*/
|
|
9684
9686
|
|
|
9685
9687
|
/**
|
|
@@ -9746,6 +9748,22 @@
|
|
|
9746
9748
|
*/
|
|
9747
9749
|
RedactImageRequest.prototype.byteItem = null;
|
|
9748
9750
|
|
|
9751
|
+
/**
|
|
9752
|
+
* RedactImageRequest inspectTemplate.
|
|
9753
|
+
* @member {string} inspectTemplate
|
|
9754
|
+
* @memberof google.privacy.dlp.v2.RedactImageRequest
|
|
9755
|
+
* @instance
|
|
9756
|
+
*/
|
|
9757
|
+
RedactImageRequest.prototype.inspectTemplate = "";
|
|
9758
|
+
|
|
9759
|
+
/**
|
|
9760
|
+
* RedactImageRequest deidentifyTemplate.
|
|
9761
|
+
* @member {string} deidentifyTemplate
|
|
9762
|
+
* @memberof google.privacy.dlp.v2.RedactImageRequest
|
|
9763
|
+
* @instance
|
|
9764
|
+
*/
|
|
9765
|
+
RedactImageRequest.prototype.deidentifyTemplate = "";
|
|
9766
|
+
|
|
9749
9767
|
/**
|
|
9750
9768
|
* Creates a new RedactImageRequest instance using the specified properties.
|
|
9751
9769
|
* @function create
|
|
@@ -9783,6 +9801,10 @@
|
|
|
9783
9801
|
$root.google.privacy.dlp.v2.ByteContentItem.encode(message.byteItem, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
9784
9802
|
if (message.locationId != null && Object.hasOwnProperty.call(message, "locationId"))
|
|
9785
9803
|
writer.uint32(/* id 8, wireType 2 =*/66).string(message.locationId);
|
|
9804
|
+
if (message.inspectTemplate != null && Object.hasOwnProperty.call(message, "inspectTemplate"))
|
|
9805
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.inspectTemplate);
|
|
9806
|
+
if (message.deidentifyTemplate != null && Object.hasOwnProperty.call(message, "deidentifyTemplate"))
|
|
9807
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.deidentifyTemplate);
|
|
9786
9808
|
return writer;
|
|
9787
9809
|
};
|
|
9788
9810
|
|
|
@@ -9845,6 +9867,14 @@
|
|
|
9845
9867
|
message.byteItem = $root.google.privacy.dlp.v2.ByteContentItem.decode(reader, reader.uint32());
|
|
9846
9868
|
break;
|
|
9847
9869
|
}
|
|
9870
|
+
case 9: {
|
|
9871
|
+
message.inspectTemplate = reader.string();
|
|
9872
|
+
break;
|
|
9873
|
+
}
|
|
9874
|
+
case 10: {
|
|
9875
|
+
message.deidentifyTemplate = reader.string();
|
|
9876
|
+
break;
|
|
9877
|
+
}
|
|
9848
9878
|
default:
|
|
9849
9879
|
reader.skipType(tag & 7);
|
|
9850
9880
|
break;
|
|
@@ -9908,6 +9938,12 @@
|
|
|
9908
9938
|
if (error)
|
|
9909
9939
|
return "byteItem." + error;
|
|
9910
9940
|
}
|
|
9941
|
+
if (message.inspectTemplate != null && message.hasOwnProperty("inspectTemplate"))
|
|
9942
|
+
if (!$util.isString(message.inspectTemplate))
|
|
9943
|
+
return "inspectTemplate: string expected";
|
|
9944
|
+
if (message.deidentifyTemplate != null && message.hasOwnProperty("deidentifyTemplate"))
|
|
9945
|
+
if (!$util.isString(message.deidentifyTemplate))
|
|
9946
|
+
return "deidentifyTemplate: string expected";
|
|
9911
9947
|
return null;
|
|
9912
9948
|
};
|
|
9913
9949
|
|
|
@@ -9949,6 +9985,10 @@
|
|
|
9949
9985
|
throw TypeError(".google.privacy.dlp.v2.RedactImageRequest.byteItem: object expected");
|
|
9950
9986
|
message.byteItem = $root.google.privacy.dlp.v2.ByteContentItem.fromObject(object.byteItem);
|
|
9951
9987
|
}
|
|
9988
|
+
if (object.inspectTemplate != null)
|
|
9989
|
+
message.inspectTemplate = String(object.inspectTemplate);
|
|
9990
|
+
if (object.deidentifyTemplate != null)
|
|
9991
|
+
message.deidentifyTemplate = String(object.deidentifyTemplate);
|
|
9952
9992
|
return message;
|
|
9953
9993
|
};
|
|
9954
9994
|
|
|
@@ -9973,6 +10013,8 @@
|
|
|
9973
10013
|
object.includeFindings = false;
|
|
9974
10014
|
object.byteItem = null;
|
|
9975
10015
|
object.locationId = "";
|
|
10016
|
+
object.inspectTemplate = "";
|
|
10017
|
+
object.deidentifyTemplate = "";
|
|
9976
10018
|
}
|
|
9977
10019
|
if (message.parent != null && message.hasOwnProperty("parent"))
|
|
9978
10020
|
object.parent = message.parent;
|
|
@@ -9989,6 +10031,10 @@
|
|
|
9989
10031
|
object.byteItem = $root.google.privacy.dlp.v2.ByteContentItem.toObject(message.byteItem, options);
|
|
9990
10032
|
if (message.locationId != null && message.hasOwnProperty("locationId"))
|
|
9991
10033
|
object.locationId = message.locationId;
|
|
10034
|
+
if (message.inspectTemplate != null && message.hasOwnProperty("inspectTemplate"))
|
|
10035
|
+
object.inspectTemplate = message.inspectTemplate;
|
|
10036
|
+
if (message.deidentifyTemplate != null && message.hasOwnProperty("deidentifyTemplate"))
|
|
10037
|
+
object.deidentifyTemplate = message.deidentifyTemplate;
|
|
9992
10038
|
return object;
|
|
9993
10039
|
};
|
|
9994
10040
|
|
|
@@ -12547,6 +12593,7 @@
|
|
|
12547
12593
|
* @memberof google.privacy.dlp.v2
|
|
12548
12594
|
* @interface IOutputStorageConfig
|
|
12549
12595
|
* @property {google.privacy.dlp.v2.IBigQueryTable|null} [table] OutputStorageConfig table
|
|
12596
|
+
* @property {google.privacy.dlp.v2.ICloudStoragePath|null} [storagePath] OutputStorageConfig storagePath
|
|
12550
12597
|
* @property {google.privacy.dlp.v2.OutputStorageConfig.OutputSchema|null} [outputSchema] OutputStorageConfig outputSchema
|
|
12551
12598
|
*/
|
|
12552
12599
|
|
|
@@ -12573,6 +12620,14 @@
|
|
|
12573
12620
|
*/
|
|
12574
12621
|
OutputStorageConfig.prototype.table = null;
|
|
12575
12622
|
|
|
12623
|
+
/**
|
|
12624
|
+
* OutputStorageConfig storagePath.
|
|
12625
|
+
* @member {google.privacy.dlp.v2.ICloudStoragePath|null|undefined} storagePath
|
|
12626
|
+
* @memberof google.privacy.dlp.v2.OutputStorageConfig
|
|
12627
|
+
* @instance
|
|
12628
|
+
*/
|
|
12629
|
+
OutputStorageConfig.prototype.storagePath = null;
|
|
12630
|
+
|
|
12576
12631
|
/**
|
|
12577
12632
|
* OutputStorageConfig outputSchema.
|
|
12578
12633
|
* @member {google.privacy.dlp.v2.OutputStorageConfig.OutputSchema} outputSchema
|
|
@@ -12586,12 +12641,12 @@
|
|
|
12586
12641
|
|
|
12587
12642
|
/**
|
|
12588
12643
|
* OutputStorageConfig type.
|
|
12589
|
-
* @member {"table"|undefined} type
|
|
12644
|
+
* @member {"table"|"storagePath"|undefined} type
|
|
12590
12645
|
* @memberof google.privacy.dlp.v2.OutputStorageConfig
|
|
12591
12646
|
* @instance
|
|
12592
12647
|
*/
|
|
12593
12648
|
Object.defineProperty(OutputStorageConfig.prototype, "type", {
|
|
12594
|
-
get: $util.oneOfGetter($oneOfFields = ["table"]),
|
|
12649
|
+
get: $util.oneOfGetter($oneOfFields = ["table", "storagePath"]),
|
|
12595
12650
|
set: $util.oneOfSetter($oneOfFields)
|
|
12596
12651
|
});
|
|
12597
12652
|
|
|
@@ -12623,6 +12678,8 @@
|
|
|
12623
12678
|
$root.google.privacy.dlp.v2.BigQueryTable.encode(message.table, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
12624
12679
|
if (message.outputSchema != null && Object.hasOwnProperty.call(message, "outputSchema"))
|
|
12625
12680
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.outputSchema);
|
|
12681
|
+
if (message.storagePath != null && Object.hasOwnProperty.call(message, "storagePath"))
|
|
12682
|
+
$root.google.privacy.dlp.v2.CloudStoragePath.encode(message.storagePath, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
12626
12683
|
return writer;
|
|
12627
12684
|
};
|
|
12628
12685
|
|
|
@@ -12663,6 +12720,10 @@
|
|
|
12663
12720
|
message.table = $root.google.privacy.dlp.v2.BigQueryTable.decode(reader, reader.uint32());
|
|
12664
12721
|
break;
|
|
12665
12722
|
}
|
|
12723
|
+
case 5: {
|
|
12724
|
+
message.storagePath = $root.google.privacy.dlp.v2.CloudStoragePath.decode(reader, reader.uint32());
|
|
12725
|
+
break;
|
|
12726
|
+
}
|
|
12666
12727
|
case 3: {
|
|
12667
12728
|
message.outputSchema = reader.int32();
|
|
12668
12729
|
break;
|
|
@@ -12711,6 +12772,16 @@
|
|
|
12711
12772
|
return "table." + error;
|
|
12712
12773
|
}
|
|
12713
12774
|
}
|
|
12775
|
+
if (message.storagePath != null && message.hasOwnProperty("storagePath")) {
|
|
12776
|
+
if (properties.type === 1)
|
|
12777
|
+
return "type: multiple values";
|
|
12778
|
+
properties.type = 1;
|
|
12779
|
+
{
|
|
12780
|
+
var error = $root.google.privacy.dlp.v2.CloudStoragePath.verify(message.storagePath);
|
|
12781
|
+
if (error)
|
|
12782
|
+
return "storagePath." + error;
|
|
12783
|
+
}
|
|
12784
|
+
}
|
|
12714
12785
|
if (message.outputSchema != null && message.hasOwnProperty("outputSchema"))
|
|
12715
12786
|
switch (message.outputSchema) {
|
|
12716
12787
|
default:
|
|
@@ -12743,6 +12814,11 @@
|
|
|
12743
12814
|
throw TypeError(".google.privacy.dlp.v2.OutputStorageConfig.table: object expected");
|
|
12744
12815
|
message.table = $root.google.privacy.dlp.v2.BigQueryTable.fromObject(object.table);
|
|
12745
12816
|
}
|
|
12817
|
+
if (object.storagePath != null) {
|
|
12818
|
+
if (typeof object.storagePath !== "object")
|
|
12819
|
+
throw TypeError(".google.privacy.dlp.v2.OutputStorageConfig.storagePath: object expected");
|
|
12820
|
+
message.storagePath = $root.google.privacy.dlp.v2.CloudStoragePath.fromObject(object.storagePath);
|
|
12821
|
+
}
|
|
12746
12822
|
switch (object.outputSchema) {
|
|
12747
12823
|
default:
|
|
12748
12824
|
if (typeof object.outputSchema === "number") {
|
|
@@ -12800,6 +12876,11 @@
|
|
|
12800
12876
|
}
|
|
12801
12877
|
if (message.outputSchema != null && message.hasOwnProperty("outputSchema"))
|
|
12802
12878
|
object.outputSchema = options.enums === String ? $root.google.privacy.dlp.v2.OutputStorageConfig.OutputSchema[message.outputSchema] === undefined ? message.outputSchema : $root.google.privacy.dlp.v2.OutputStorageConfig.OutputSchema[message.outputSchema] : message.outputSchema;
|
|
12879
|
+
if (message.storagePath != null && message.hasOwnProperty("storagePath")) {
|
|
12880
|
+
object.storagePath = $root.google.privacy.dlp.v2.CloudStoragePath.toObject(message.storagePath, options);
|
|
12881
|
+
if (options.oneofs)
|
|
12882
|
+
object.type = "storagePath";
|
|
12883
|
+
}
|
|
12803
12884
|
return object;
|
|
12804
12885
|
};
|
|
12805
12886
|
|
|
@@ -15569,6 +15650,291 @@
|
|
|
15569
15650
|
return DeidentifyDataSourceDetails;
|
|
15570
15651
|
})();
|
|
15571
15652
|
|
|
15653
|
+
v2.LocationSupport = (function() {
|
|
15654
|
+
|
|
15655
|
+
/**
|
|
15656
|
+
* Properties of a LocationSupport.
|
|
15657
|
+
* @memberof google.privacy.dlp.v2
|
|
15658
|
+
* @interface ILocationSupport
|
|
15659
|
+
* @property {google.privacy.dlp.v2.LocationSupport.RegionalizationScope|null} [regionalizationScope] LocationSupport regionalizationScope
|
|
15660
|
+
* @property {Array.<string>|null} [locations] LocationSupport locations
|
|
15661
|
+
*/
|
|
15662
|
+
|
|
15663
|
+
/**
|
|
15664
|
+
* Constructs a new LocationSupport.
|
|
15665
|
+
* @memberof google.privacy.dlp.v2
|
|
15666
|
+
* @classdesc Represents a LocationSupport.
|
|
15667
|
+
* @implements ILocationSupport
|
|
15668
|
+
* @constructor
|
|
15669
|
+
* @param {google.privacy.dlp.v2.ILocationSupport=} [properties] Properties to set
|
|
15670
|
+
*/
|
|
15671
|
+
function LocationSupport(properties) {
|
|
15672
|
+
this.locations = [];
|
|
15673
|
+
if (properties)
|
|
15674
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15675
|
+
if (properties[keys[i]] != null)
|
|
15676
|
+
this[keys[i]] = properties[keys[i]];
|
|
15677
|
+
}
|
|
15678
|
+
|
|
15679
|
+
/**
|
|
15680
|
+
* LocationSupport regionalizationScope.
|
|
15681
|
+
* @member {google.privacy.dlp.v2.LocationSupport.RegionalizationScope} regionalizationScope
|
|
15682
|
+
* @memberof google.privacy.dlp.v2.LocationSupport
|
|
15683
|
+
* @instance
|
|
15684
|
+
*/
|
|
15685
|
+
LocationSupport.prototype.regionalizationScope = 0;
|
|
15686
|
+
|
|
15687
|
+
/**
|
|
15688
|
+
* LocationSupport locations.
|
|
15689
|
+
* @member {Array.<string>} locations
|
|
15690
|
+
* @memberof google.privacy.dlp.v2.LocationSupport
|
|
15691
|
+
* @instance
|
|
15692
|
+
*/
|
|
15693
|
+
LocationSupport.prototype.locations = $util.emptyArray;
|
|
15694
|
+
|
|
15695
|
+
/**
|
|
15696
|
+
* Creates a new LocationSupport instance using the specified properties.
|
|
15697
|
+
* @function create
|
|
15698
|
+
* @memberof google.privacy.dlp.v2.LocationSupport
|
|
15699
|
+
* @static
|
|
15700
|
+
* @param {google.privacy.dlp.v2.ILocationSupport=} [properties] Properties to set
|
|
15701
|
+
* @returns {google.privacy.dlp.v2.LocationSupport} LocationSupport instance
|
|
15702
|
+
*/
|
|
15703
|
+
LocationSupport.create = function create(properties) {
|
|
15704
|
+
return new LocationSupport(properties);
|
|
15705
|
+
};
|
|
15706
|
+
|
|
15707
|
+
/**
|
|
15708
|
+
* Encodes the specified LocationSupport message. Does not implicitly {@link google.privacy.dlp.v2.LocationSupport.verify|verify} messages.
|
|
15709
|
+
* @function encode
|
|
15710
|
+
* @memberof google.privacy.dlp.v2.LocationSupport
|
|
15711
|
+
* @static
|
|
15712
|
+
* @param {google.privacy.dlp.v2.ILocationSupport} message LocationSupport message or plain object to encode
|
|
15713
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15714
|
+
* @returns {$protobuf.Writer} Writer
|
|
15715
|
+
*/
|
|
15716
|
+
LocationSupport.encode = function encode(message, writer) {
|
|
15717
|
+
if (!writer)
|
|
15718
|
+
writer = $Writer.create();
|
|
15719
|
+
if (message.regionalizationScope != null && Object.hasOwnProperty.call(message, "regionalizationScope"))
|
|
15720
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.regionalizationScope);
|
|
15721
|
+
if (message.locations != null && message.locations.length)
|
|
15722
|
+
for (var i = 0; i < message.locations.length; ++i)
|
|
15723
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.locations[i]);
|
|
15724
|
+
return writer;
|
|
15725
|
+
};
|
|
15726
|
+
|
|
15727
|
+
/**
|
|
15728
|
+
* Encodes the specified LocationSupport message, length delimited. Does not implicitly {@link google.privacy.dlp.v2.LocationSupport.verify|verify} messages.
|
|
15729
|
+
* @function encodeDelimited
|
|
15730
|
+
* @memberof google.privacy.dlp.v2.LocationSupport
|
|
15731
|
+
* @static
|
|
15732
|
+
* @param {google.privacy.dlp.v2.ILocationSupport} message LocationSupport message or plain object to encode
|
|
15733
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15734
|
+
* @returns {$protobuf.Writer} Writer
|
|
15735
|
+
*/
|
|
15736
|
+
LocationSupport.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15737
|
+
return this.encode(message, writer).ldelim();
|
|
15738
|
+
};
|
|
15739
|
+
|
|
15740
|
+
/**
|
|
15741
|
+
* Decodes a LocationSupport message from the specified reader or buffer.
|
|
15742
|
+
* @function decode
|
|
15743
|
+
* @memberof google.privacy.dlp.v2.LocationSupport
|
|
15744
|
+
* @static
|
|
15745
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15746
|
+
* @param {number} [length] Message length if known beforehand
|
|
15747
|
+
* @returns {google.privacy.dlp.v2.LocationSupport} LocationSupport
|
|
15748
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15749
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15750
|
+
*/
|
|
15751
|
+
LocationSupport.decode = function decode(reader, length, error) {
|
|
15752
|
+
if (!(reader instanceof $Reader))
|
|
15753
|
+
reader = $Reader.create(reader);
|
|
15754
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.privacy.dlp.v2.LocationSupport();
|
|
15755
|
+
while (reader.pos < end) {
|
|
15756
|
+
var tag = reader.uint32();
|
|
15757
|
+
if (tag === error)
|
|
15758
|
+
break;
|
|
15759
|
+
switch (tag >>> 3) {
|
|
15760
|
+
case 1: {
|
|
15761
|
+
message.regionalizationScope = reader.int32();
|
|
15762
|
+
break;
|
|
15763
|
+
}
|
|
15764
|
+
case 2: {
|
|
15765
|
+
if (!(message.locations && message.locations.length))
|
|
15766
|
+
message.locations = [];
|
|
15767
|
+
message.locations.push(reader.string());
|
|
15768
|
+
break;
|
|
15769
|
+
}
|
|
15770
|
+
default:
|
|
15771
|
+
reader.skipType(tag & 7);
|
|
15772
|
+
break;
|
|
15773
|
+
}
|
|
15774
|
+
}
|
|
15775
|
+
return message;
|
|
15776
|
+
};
|
|
15777
|
+
|
|
15778
|
+
/**
|
|
15779
|
+
* Decodes a LocationSupport message from the specified reader or buffer, length delimited.
|
|
15780
|
+
* @function decodeDelimited
|
|
15781
|
+
* @memberof google.privacy.dlp.v2.LocationSupport
|
|
15782
|
+
* @static
|
|
15783
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15784
|
+
* @returns {google.privacy.dlp.v2.LocationSupport} LocationSupport
|
|
15785
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15786
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15787
|
+
*/
|
|
15788
|
+
LocationSupport.decodeDelimited = function decodeDelimited(reader) {
|
|
15789
|
+
if (!(reader instanceof $Reader))
|
|
15790
|
+
reader = new $Reader(reader);
|
|
15791
|
+
return this.decode(reader, reader.uint32());
|
|
15792
|
+
};
|
|
15793
|
+
|
|
15794
|
+
/**
|
|
15795
|
+
* Verifies a LocationSupport message.
|
|
15796
|
+
* @function verify
|
|
15797
|
+
* @memberof google.privacy.dlp.v2.LocationSupport
|
|
15798
|
+
* @static
|
|
15799
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
15800
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
15801
|
+
*/
|
|
15802
|
+
LocationSupport.verify = function verify(message) {
|
|
15803
|
+
if (typeof message !== "object" || message === null)
|
|
15804
|
+
return "object expected";
|
|
15805
|
+
if (message.regionalizationScope != null && message.hasOwnProperty("regionalizationScope"))
|
|
15806
|
+
switch (message.regionalizationScope) {
|
|
15807
|
+
default:
|
|
15808
|
+
return "regionalizationScope: enum value expected";
|
|
15809
|
+
case 0:
|
|
15810
|
+
case 1:
|
|
15811
|
+
case 2:
|
|
15812
|
+
break;
|
|
15813
|
+
}
|
|
15814
|
+
if (message.locations != null && message.hasOwnProperty("locations")) {
|
|
15815
|
+
if (!Array.isArray(message.locations))
|
|
15816
|
+
return "locations: array expected";
|
|
15817
|
+
for (var i = 0; i < message.locations.length; ++i)
|
|
15818
|
+
if (!$util.isString(message.locations[i]))
|
|
15819
|
+
return "locations: string[] expected";
|
|
15820
|
+
}
|
|
15821
|
+
return null;
|
|
15822
|
+
};
|
|
15823
|
+
|
|
15824
|
+
/**
|
|
15825
|
+
* Creates a LocationSupport message from a plain object. Also converts values to their respective internal types.
|
|
15826
|
+
* @function fromObject
|
|
15827
|
+
* @memberof google.privacy.dlp.v2.LocationSupport
|
|
15828
|
+
* @static
|
|
15829
|
+
* @param {Object.<string,*>} object Plain object
|
|
15830
|
+
* @returns {google.privacy.dlp.v2.LocationSupport} LocationSupport
|
|
15831
|
+
*/
|
|
15832
|
+
LocationSupport.fromObject = function fromObject(object) {
|
|
15833
|
+
if (object instanceof $root.google.privacy.dlp.v2.LocationSupport)
|
|
15834
|
+
return object;
|
|
15835
|
+
var message = new $root.google.privacy.dlp.v2.LocationSupport();
|
|
15836
|
+
switch (object.regionalizationScope) {
|
|
15837
|
+
default:
|
|
15838
|
+
if (typeof object.regionalizationScope === "number") {
|
|
15839
|
+
message.regionalizationScope = object.regionalizationScope;
|
|
15840
|
+
break;
|
|
15841
|
+
}
|
|
15842
|
+
break;
|
|
15843
|
+
case "REGIONALIZATION_SCOPE_UNSPECIFIED":
|
|
15844
|
+
case 0:
|
|
15845
|
+
message.regionalizationScope = 0;
|
|
15846
|
+
break;
|
|
15847
|
+
case "REGIONAL":
|
|
15848
|
+
case 1:
|
|
15849
|
+
message.regionalizationScope = 1;
|
|
15850
|
+
break;
|
|
15851
|
+
case "ANY_LOCATION":
|
|
15852
|
+
case 2:
|
|
15853
|
+
message.regionalizationScope = 2;
|
|
15854
|
+
break;
|
|
15855
|
+
}
|
|
15856
|
+
if (object.locations) {
|
|
15857
|
+
if (!Array.isArray(object.locations))
|
|
15858
|
+
throw TypeError(".google.privacy.dlp.v2.LocationSupport.locations: array expected");
|
|
15859
|
+
message.locations = [];
|
|
15860
|
+
for (var i = 0; i < object.locations.length; ++i)
|
|
15861
|
+
message.locations[i] = String(object.locations[i]);
|
|
15862
|
+
}
|
|
15863
|
+
return message;
|
|
15864
|
+
};
|
|
15865
|
+
|
|
15866
|
+
/**
|
|
15867
|
+
* Creates a plain object from a LocationSupport message. Also converts values to other types if specified.
|
|
15868
|
+
* @function toObject
|
|
15869
|
+
* @memberof google.privacy.dlp.v2.LocationSupport
|
|
15870
|
+
* @static
|
|
15871
|
+
* @param {google.privacy.dlp.v2.LocationSupport} message LocationSupport
|
|
15872
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
15873
|
+
* @returns {Object.<string,*>} Plain object
|
|
15874
|
+
*/
|
|
15875
|
+
LocationSupport.toObject = function toObject(message, options) {
|
|
15876
|
+
if (!options)
|
|
15877
|
+
options = {};
|
|
15878
|
+
var object = {};
|
|
15879
|
+
if (options.arrays || options.defaults)
|
|
15880
|
+
object.locations = [];
|
|
15881
|
+
if (options.defaults)
|
|
15882
|
+
object.regionalizationScope = options.enums === String ? "REGIONALIZATION_SCOPE_UNSPECIFIED" : 0;
|
|
15883
|
+
if (message.regionalizationScope != null && message.hasOwnProperty("regionalizationScope"))
|
|
15884
|
+
object.regionalizationScope = options.enums === String ? $root.google.privacy.dlp.v2.LocationSupport.RegionalizationScope[message.regionalizationScope] === undefined ? message.regionalizationScope : $root.google.privacy.dlp.v2.LocationSupport.RegionalizationScope[message.regionalizationScope] : message.regionalizationScope;
|
|
15885
|
+
if (message.locations && message.locations.length) {
|
|
15886
|
+
object.locations = [];
|
|
15887
|
+
for (var j = 0; j < message.locations.length; ++j)
|
|
15888
|
+
object.locations[j] = message.locations[j];
|
|
15889
|
+
}
|
|
15890
|
+
return object;
|
|
15891
|
+
};
|
|
15892
|
+
|
|
15893
|
+
/**
|
|
15894
|
+
* Converts this LocationSupport to JSON.
|
|
15895
|
+
* @function toJSON
|
|
15896
|
+
* @memberof google.privacy.dlp.v2.LocationSupport
|
|
15897
|
+
* @instance
|
|
15898
|
+
* @returns {Object.<string,*>} JSON object
|
|
15899
|
+
*/
|
|
15900
|
+
LocationSupport.prototype.toJSON = function toJSON() {
|
|
15901
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
15902
|
+
};
|
|
15903
|
+
|
|
15904
|
+
/**
|
|
15905
|
+
* Gets the default type url for LocationSupport
|
|
15906
|
+
* @function getTypeUrl
|
|
15907
|
+
* @memberof google.privacy.dlp.v2.LocationSupport
|
|
15908
|
+
* @static
|
|
15909
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
15910
|
+
* @returns {string} The default type url
|
|
15911
|
+
*/
|
|
15912
|
+
LocationSupport.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
15913
|
+
if (typeUrlPrefix === undefined) {
|
|
15914
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
15915
|
+
}
|
|
15916
|
+
return typeUrlPrefix + "/google.privacy.dlp.v2.LocationSupport";
|
|
15917
|
+
};
|
|
15918
|
+
|
|
15919
|
+
/**
|
|
15920
|
+
* RegionalizationScope enum.
|
|
15921
|
+
* @name google.privacy.dlp.v2.LocationSupport.RegionalizationScope
|
|
15922
|
+
* @enum {number}
|
|
15923
|
+
* @property {number} REGIONALIZATION_SCOPE_UNSPECIFIED=0 REGIONALIZATION_SCOPE_UNSPECIFIED value
|
|
15924
|
+
* @property {number} REGIONAL=1 REGIONAL value
|
|
15925
|
+
* @property {number} ANY_LOCATION=2 ANY_LOCATION value
|
|
15926
|
+
*/
|
|
15927
|
+
LocationSupport.RegionalizationScope = (function() {
|
|
15928
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
15929
|
+
values[valuesById[0] = "REGIONALIZATION_SCOPE_UNSPECIFIED"] = 0;
|
|
15930
|
+
values[valuesById[1] = "REGIONAL"] = 1;
|
|
15931
|
+
values[valuesById[2] = "ANY_LOCATION"] = 2;
|
|
15932
|
+
return values;
|
|
15933
|
+
})();
|
|
15934
|
+
|
|
15935
|
+
return LocationSupport;
|
|
15936
|
+
})();
|
|
15937
|
+
|
|
15572
15938
|
v2.InfoTypeDescription = (function() {
|
|
15573
15939
|
|
|
15574
15940
|
/**
|
|
@@ -15579,6 +15945,7 @@
|
|
|
15579
15945
|
* @property {string|null} [displayName] InfoTypeDescription displayName
|
|
15580
15946
|
* @property {Array.<google.privacy.dlp.v2.InfoTypeSupportedBy>|null} [supportedBy] InfoTypeDescription supportedBy
|
|
15581
15947
|
* @property {string|null} [description] InfoTypeDescription description
|
|
15948
|
+
* @property {google.privacy.dlp.v2.ILocationSupport|null} [locationSupport] InfoTypeDescription locationSupport
|
|
15582
15949
|
* @property {string|null} [example] InfoTypeDescription example
|
|
15583
15950
|
* @property {Array.<google.privacy.dlp.v2.IVersionDescription>|null} [versions] InfoTypeDescription versions
|
|
15584
15951
|
* @property {Array.<google.privacy.dlp.v2.IInfoTypeCategory>|null} [categories] InfoTypeDescription categories
|
|
@@ -15637,6 +16004,14 @@
|
|
|
15637
16004
|
*/
|
|
15638
16005
|
InfoTypeDescription.prototype.description = "";
|
|
15639
16006
|
|
|
16007
|
+
/**
|
|
16008
|
+
* InfoTypeDescription locationSupport.
|
|
16009
|
+
* @member {google.privacy.dlp.v2.ILocationSupport|null|undefined} locationSupport
|
|
16010
|
+
* @memberof google.privacy.dlp.v2.InfoTypeDescription
|
|
16011
|
+
* @instance
|
|
16012
|
+
*/
|
|
16013
|
+
InfoTypeDescription.prototype.locationSupport = null;
|
|
16014
|
+
|
|
15640
16015
|
/**
|
|
15641
16016
|
* InfoTypeDescription example.
|
|
15642
16017
|
* @member {string} example
|
|
@@ -15713,6 +16088,8 @@
|
|
|
15713
16088
|
}
|
|
15714
16089
|
if (message.description != null && Object.hasOwnProperty.call(message, "description"))
|
|
15715
16090
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.description);
|
|
16091
|
+
if (message.locationSupport != null && Object.hasOwnProperty.call(message, "locationSupport"))
|
|
16092
|
+
$root.google.privacy.dlp.v2.LocationSupport.encode(message.locationSupport, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
15716
16093
|
if (message.example != null && Object.hasOwnProperty.call(message, "example"))
|
|
15717
16094
|
writer.uint32(/* id 8, wireType 2 =*/66).string(message.example);
|
|
15718
16095
|
if (message.versions != null && message.versions.length)
|
|
@@ -15785,6 +16162,10 @@
|
|
|
15785
16162
|
message.description = reader.string();
|
|
15786
16163
|
break;
|
|
15787
16164
|
}
|
|
16165
|
+
case 6: {
|
|
16166
|
+
message.locationSupport = $root.google.privacy.dlp.v2.LocationSupport.decode(reader, reader.uint32());
|
|
16167
|
+
break;
|
|
16168
|
+
}
|
|
15788
16169
|
case 8: {
|
|
15789
16170
|
message.example = reader.string();
|
|
15790
16171
|
break;
|
|
@@ -15868,6 +16249,11 @@
|
|
|
15868
16249
|
if (message.description != null && message.hasOwnProperty("description"))
|
|
15869
16250
|
if (!$util.isString(message.description))
|
|
15870
16251
|
return "description: string expected";
|
|
16252
|
+
if (message.locationSupport != null && message.hasOwnProperty("locationSupport")) {
|
|
16253
|
+
var error = $root.google.privacy.dlp.v2.LocationSupport.verify(message.locationSupport);
|
|
16254
|
+
if (error)
|
|
16255
|
+
return "locationSupport." + error;
|
|
16256
|
+
}
|
|
15871
16257
|
if (message.example != null && message.hasOwnProperty("example"))
|
|
15872
16258
|
if (!$util.isString(message.example))
|
|
15873
16259
|
return "example: string expected";
|
|
@@ -15947,6 +16333,11 @@
|
|
|
15947
16333
|
}
|
|
15948
16334
|
if (object.description != null)
|
|
15949
16335
|
message.description = String(object.description);
|
|
16336
|
+
if (object.locationSupport != null) {
|
|
16337
|
+
if (typeof object.locationSupport !== "object")
|
|
16338
|
+
throw TypeError(".google.privacy.dlp.v2.InfoTypeDescription.locationSupport: object expected");
|
|
16339
|
+
message.locationSupport = $root.google.privacy.dlp.v2.LocationSupport.fromObject(object.locationSupport);
|
|
16340
|
+
}
|
|
15950
16341
|
if (object.example != null)
|
|
15951
16342
|
message.example = String(object.example);
|
|
15952
16343
|
if (object.versions) {
|
|
@@ -16007,6 +16398,7 @@
|
|
|
16007
16398
|
object.name = "";
|
|
16008
16399
|
object.displayName = "";
|
|
16009
16400
|
object.description = "";
|
|
16401
|
+
object.locationSupport = null;
|
|
16010
16402
|
object.example = "";
|
|
16011
16403
|
object.sensitivityScore = null;
|
|
16012
16404
|
}
|
|
@@ -16021,6 +16413,8 @@
|
|
|
16021
16413
|
}
|
|
16022
16414
|
if (message.description != null && message.hasOwnProperty("description"))
|
|
16023
16415
|
object.description = message.description;
|
|
16416
|
+
if (message.locationSupport != null && message.hasOwnProperty("locationSupport"))
|
|
16417
|
+
object.locationSupport = $root.google.privacy.dlp.v2.LocationSupport.toObject(message.locationSupport, options);
|
|
16024
16418
|
if (message.example != null && message.hasOwnProperty("example"))
|
|
16025
16419
|
object.example = message.example;
|
|
16026
16420
|
if (message.versions && message.versions.length) {
|
|
@@ -16260,6 +16654,7 @@
|
|
|
16260
16654
|
case 2:
|
|
16261
16655
|
case 51:
|
|
16262
16656
|
case 3:
|
|
16657
|
+
case 53:
|
|
16263
16658
|
case 48:
|
|
16264
16659
|
case 50:
|
|
16265
16660
|
case 4:
|
|
@@ -16385,6 +16780,10 @@
|
|
|
16385
16780
|
case 3:
|
|
16386
16781
|
message.locationCategory = 3;
|
|
16387
16782
|
break;
|
|
16783
|
+
case "AUSTRIA":
|
|
16784
|
+
case 53:
|
|
16785
|
+
message.locationCategory = 53;
|
|
16786
|
+
break;
|
|
16388
16787
|
case "AZERBAIJAN":
|
|
16389
16788
|
case 48:
|
|
16390
16789
|
message.locationCategory = 48;
|
|
@@ -16711,6 +17110,7 @@
|
|
|
16711
17110
|
* @property {number} ARGENTINA=2 ARGENTINA value
|
|
16712
17111
|
* @property {number} ARMENIA=51 ARMENIA value
|
|
16713
17112
|
* @property {number} AUSTRALIA=3 AUSTRALIA value
|
|
17113
|
+
* @property {number} AUSTRIA=53 AUSTRIA value
|
|
16714
17114
|
* @property {number} AZERBAIJAN=48 AZERBAIJAN value
|
|
16715
17115
|
* @property {number} BELARUS=50 BELARUS value
|
|
16716
17116
|
* @property {number} BELGIUM=4 BELGIUM value
|
|
@@ -16766,6 +17166,7 @@
|
|
|
16766
17166
|
values[valuesById[2] = "ARGENTINA"] = 2;
|
|
16767
17167
|
values[valuesById[51] = "ARMENIA"] = 51;
|
|
16768
17168
|
values[valuesById[3] = "AUSTRALIA"] = 3;
|
|
17169
|
+
values[valuesById[53] = "AUSTRIA"] = 53;
|
|
16769
17170
|
values[valuesById[48] = "AZERBAIJAN"] = 48;
|
|
16770
17171
|
values[valuesById[50] = "BELARUS"] = 50;
|
|
16771
17172
|
values[valuesById[4] = "BELGIUM"] = 4;
|
|
@@ -42801,6 +43202,7 @@
|
|
|
42801
43202
|
* @property {google.privacy.dlp.v2.Action.IPublishToPubSub|null} [pubSub] Action pubSub
|
|
42802
43203
|
* @property {google.privacy.dlp.v2.Action.IPublishSummaryToCscc|null} [publishSummaryToCscc] Action publishSummaryToCscc
|
|
42803
43204
|
* @property {google.privacy.dlp.v2.Action.IPublishFindingsToCloudDataCatalog|null} [publishFindingsToCloudDataCatalog] Action publishFindingsToCloudDataCatalog
|
|
43205
|
+
* @property {google.privacy.dlp.v2.Action.IPublishFindingsToDataplexCatalog|null} [publishFindingsToDataplexCatalog] Action publishFindingsToDataplexCatalog
|
|
42804
43206
|
* @property {google.privacy.dlp.v2.Action.IDeidentify|null} [deidentify] Action deidentify
|
|
42805
43207
|
* @property {google.privacy.dlp.v2.Action.IJobNotificationEmails|null} [jobNotificationEmails] Action jobNotificationEmails
|
|
42806
43208
|
* @property {google.privacy.dlp.v2.Action.IPublishToStackdriver|null} [publishToStackdriver] Action publishToStackdriver
|
|
@@ -42853,6 +43255,14 @@
|
|
|
42853
43255
|
*/
|
|
42854
43256
|
Action.prototype.publishFindingsToCloudDataCatalog = null;
|
|
42855
43257
|
|
|
43258
|
+
/**
|
|
43259
|
+
* Action publishFindingsToDataplexCatalog.
|
|
43260
|
+
* @member {google.privacy.dlp.v2.Action.IPublishFindingsToDataplexCatalog|null|undefined} publishFindingsToDataplexCatalog
|
|
43261
|
+
* @memberof google.privacy.dlp.v2.Action
|
|
43262
|
+
* @instance
|
|
43263
|
+
*/
|
|
43264
|
+
Action.prototype.publishFindingsToDataplexCatalog = null;
|
|
43265
|
+
|
|
42856
43266
|
/**
|
|
42857
43267
|
* Action deidentify.
|
|
42858
43268
|
* @member {google.privacy.dlp.v2.Action.IDeidentify|null|undefined} deidentify
|
|
@@ -42882,12 +43292,12 @@
|
|
|
42882
43292
|
|
|
42883
43293
|
/**
|
|
42884
43294
|
* Action action.
|
|
42885
|
-
* @member {"saveFindings"|"pubSub"|"publishSummaryToCscc"|"publishFindingsToCloudDataCatalog"|"deidentify"|"jobNotificationEmails"|"publishToStackdriver"|undefined} action
|
|
43295
|
+
* @member {"saveFindings"|"pubSub"|"publishSummaryToCscc"|"publishFindingsToCloudDataCatalog"|"publishFindingsToDataplexCatalog"|"deidentify"|"jobNotificationEmails"|"publishToStackdriver"|undefined} action
|
|
42886
43296
|
* @memberof google.privacy.dlp.v2.Action
|
|
42887
43297
|
* @instance
|
|
42888
43298
|
*/
|
|
42889
43299
|
Object.defineProperty(Action.prototype, "action", {
|
|
42890
|
-
get: $util.oneOfGetter($oneOfFields = ["saveFindings", "pubSub", "publishSummaryToCscc", "publishFindingsToCloudDataCatalog", "deidentify", "jobNotificationEmails", "publishToStackdriver"]),
|
|
43300
|
+
get: $util.oneOfGetter($oneOfFields = ["saveFindings", "pubSub", "publishSummaryToCscc", "publishFindingsToCloudDataCatalog", "publishFindingsToDataplexCatalog", "deidentify", "jobNotificationEmails", "publishToStackdriver"]),
|
|
42891
43301
|
set: $util.oneOfSetter($oneOfFields)
|
|
42892
43302
|
});
|
|
42893
43303
|
|
|
@@ -42929,6 +43339,8 @@
|
|
|
42929
43339
|
$root.google.privacy.dlp.v2.Action.JobNotificationEmails.encode(message.jobNotificationEmails, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
42930
43340
|
if (message.publishToStackdriver != null && Object.hasOwnProperty.call(message, "publishToStackdriver"))
|
|
42931
43341
|
$root.google.privacy.dlp.v2.Action.PublishToStackdriver.encode(message.publishToStackdriver, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
43342
|
+
if (message.publishFindingsToDataplexCatalog != null && Object.hasOwnProperty.call(message, "publishFindingsToDataplexCatalog"))
|
|
43343
|
+
$root.google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog.encode(message.publishFindingsToDataplexCatalog, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
42932
43344
|
return writer;
|
|
42933
43345
|
};
|
|
42934
43346
|
|
|
@@ -42981,6 +43393,10 @@
|
|
|
42981
43393
|
message.publishFindingsToCloudDataCatalog = $root.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.decode(reader, reader.uint32());
|
|
42982
43394
|
break;
|
|
42983
43395
|
}
|
|
43396
|
+
case 10: {
|
|
43397
|
+
message.publishFindingsToDataplexCatalog = $root.google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog.decode(reader, reader.uint32());
|
|
43398
|
+
break;
|
|
43399
|
+
}
|
|
42984
43400
|
case 7: {
|
|
42985
43401
|
message.deidentify = $root.google.privacy.dlp.v2.Action.Deidentify.decode(reader, reader.uint32());
|
|
42986
43402
|
break;
|
|
@@ -43067,6 +43483,16 @@
|
|
|
43067
43483
|
return "publishFindingsToCloudDataCatalog." + error;
|
|
43068
43484
|
}
|
|
43069
43485
|
}
|
|
43486
|
+
if (message.publishFindingsToDataplexCatalog != null && message.hasOwnProperty("publishFindingsToDataplexCatalog")) {
|
|
43487
|
+
if (properties.action === 1)
|
|
43488
|
+
return "action: multiple values";
|
|
43489
|
+
properties.action = 1;
|
|
43490
|
+
{
|
|
43491
|
+
var error = $root.google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog.verify(message.publishFindingsToDataplexCatalog);
|
|
43492
|
+
if (error)
|
|
43493
|
+
return "publishFindingsToDataplexCatalog." + error;
|
|
43494
|
+
}
|
|
43495
|
+
}
|
|
43070
43496
|
if (message.deidentify != null && message.hasOwnProperty("deidentify")) {
|
|
43071
43497
|
if (properties.action === 1)
|
|
43072
43498
|
return "action: multiple values";
|
|
@@ -43132,6 +43558,11 @@
|
|
|
43132
43558
|
throw TypeError(".google.privacy.dlp.v2.Action.publishFindingsToCloudDataCatalog: object expected");
|
|
43133
43559
|
message.publishFindingsToCloudDataCatalog = $root.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.fromObject(object.publishFindingsToCloudDataCatalog);
|
|
43134
43560
|
}
|
|
43561
|
+
if (object.publishFindingsToDataplexCatalog != null) {
|
|
43562
|
+
if (typeof object.publishFindingsToDataplexCatalog !== "object")
|
|
43563
|
+
throw TypeError(".google.privacy.dlp.v2.Action.publishFindingsToDataplexCatalog: object expected");
|
|
43564
|
+
message.publishFindingsToDataplexCatalog = $root.google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog.fromObject(object.publishFindingsToDataplexCatalog);
|
|
43565
|
+
}
|
|
43135
43566
|
if (object.deidentify != null) {
|
|
43136
43567
|
if (typeof object.deidentify !== "object")
|
|
43137
43568
|
throw TypeError(".google.privacy.dlp.v2.Action.deidentify: object expected");
|
|
@@ -43198,6 +43629,11 @@
|
|
|
43198
43629
|
if (options.oneofs)
|
|
43199
43630
|
object.action = "publishToStackdriver";
|
|
43200
43631
|
}
|
|
43632
|
+
if (message.publishFindingsToDataplexCatalog != null && message.hasOwnProperty("publishFindingsToDataplexCatalog")) {
|
|
43633
|
+
object.publishFindingsToDataplexCatalog = $root.google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog.toObject(message.publishFindingsToDataplexCatalog, options);
|
|
43634
|
+
if (options.oneofs)
|
|
43635
|
+
object.action = "publishFindingsToDataplexCatalog";
|
|
43636
|
+
}
|
|
43201
43637
|
return object;
|
|
43202
43638
|
};
|
|
43203
43639
|
|
|
@@ -43996,6 +44432,183 @@
|
|
|
43996
44432
|
return PublishFindingsToCloudDataCatalog;
|
|
43997
44433
|
})();
|
|
43998
44434
|
|
|
44435
|
+
Action.PublishFindingsToDataplexCatalog = (function() {
|
|
44436
|
+
|
|
44437
|
+
/**
|
|
44438
|
+
* Properties of a PublishFindingsToDataplexCatalog.
|
|
44439
|
+
* @memberof google.privacy.dlp.v2.Action
|
|
44440
|
+
* @interface IPublishFindingsToDataplexCatalog
|
|
44441
|
+
*/
|
|
44442
|
+
|
|
44443
|
+
/**
|
|
44444
|
+
* Constructs a new PublishFindingsToDataplexCatalog.
|
|
44445
|
+
* @memberof google.privacy.dlp.v2.Action
|
|
44446
|
+
* @classdesc Represents a PublishFindingsToDataplexCatalog.
|
|
44447
|
+
* @implements IPublishFindingsToDataplexCatalog
|
|
44448
|
+
* @constructor
|
|
44449
|
+
* @param {google.privacy.dlp.v2.Action.IPublishFindingsToDataplexCatalog=} [properties] Properties to set
|
|
44450
|
+
*/
|
|
44451
|
+
function PublishFindingsToDataplexCatalog(properties) {
|
|
44452
|
+
if (properties)
|
|
44453
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
44454
|
+
if (properties[keys[i]] != null)
|
|
44455
|
+
this[keys[i]] = properties[keys[i]];
|
|
44456
|
+
}
|
|
44457
|
+
|
|
44458
|
+
/**
|
|
44459
|
+
* Creates a new PublishFindingsToDataplexCatalog instance using the specified properties.
|
|
44460
|
+
* @function create
|
|
44461
|
+
* @memberof google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog
|
|
44462
|
+
* @static
|
|
44463
|
+
* @param {google.privacy.dlp.v2.Action.IPublishFindingsToDataplexCatalog=} [properties] Properties to set
|
|
44464
|
+
* @returns {google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog} PublishFindingsToDataplexCatalog instance
|
|
44465
|
+
*/
|
|
44466
|
+
PublishFindingsToDataplexCatalog.create = function create(properties) {
|
|
44467
|
+
return new PublishFindingsToDataplexCatalog(properties);
|
|
44468
|
+
};
|
|
44469
|
+
|
|
44470
|
+
/**
|
|
44471
|
+
* Encodes the specified PublishFindingsToDataplexCatalog message. Does not implicitly {@link google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog.verify|verify} messages.
|
|
44472
|
+
* @function encode
|
|
44473
|
+
* @memberof google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog
|
|
44474
|
+
* @static
|
|
44475
|
+
* @param {google.privacy.dlp.v2.Action.IPublishFindingsToDataplexCatalog} message PublishFindingsToDataplexCatalog message or plain object to encode
|
|
44476
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
44477
|
+
* @returns {$protobuf.Writer} Writer
|
|
44478
|
+
*/
|
|
44479
|
+
PublishFindingsToDataplexCatalog.encode = function encode(message, writer) {
|
|
44480
|
+
if (!writer)
|
|
44481
|
+
writer = $Writer.create();
|
|
44482
|
+
return writer;
|
|
44483
|
+
};
|
|
44484
|
+
|
|
44485
|
+
/**
|
|
44486
|
+
* Encodes the specified PublishFindingsToDataplexCatalog message, length delimited. Does not implicitly {@link google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog.verify|verify} messages.
|
|
44487
|
+
* @function encodeDelimited
|
|
44488
|
+
* @memberof google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog
|
|
44489
|
+
* @static
|
|
44490
|
+
* @param {google.privacy.dlp.v2.Action.IPublishFindingsToDataplexCatalog} message PublishFindingsToDataplexCatalog message or plain object to encode
|
|
44491
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
44492
|
+
* @returns {$protobuf.Writer} Writer
|
|
44493
|
+
*/
|
|
44494
|
+
PublishFindingsToDataplexCatalog.encodeDelimited = function encodeDelimited(message, writer) {
|
|
44495
|
+
return this.encode(message, writer).ldelim();
|
|
44496
|
+
};
|
|
44497
|
+
|
|
44498
|
+
/**
|
|
44499
|
+
* Decodes a PublishFindingsToDataplexCatalog message from the specified reader or buffer.
|
|
44500
|
+
* @function decode
|
|
44501
|
+
* @memberof google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog
|
|
44502
|
+
* @static
|
|
44503
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
44504
|
+
* @param {number} [length] Message length if known beforehand
|
|
44505
|
+
* @returns {google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog} PublishFindingsToDataplexCatalog
|
|
44506
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
44507
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
44508
|
+
*/
|
|
44509
|
+
PublishFindingsToDataplexCatalog.decode = function decode(reader, length, error) {
|
|
44510
|
+
if (!(reader instanceof $Reader))
|
|
44511
|
+
reader = $Reader.create(reader);
|
|
44512
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog();
|
|
44513
|
+
while (reader.pos < end) {
|
|
44514
|
+
var tag = reader.uint32();
|
|
44515
|
+
if (tag === error)
|
|
44516
|
+
break;
|
|
44517
|
+
switch (tag >>> 3) {
|
|
44518
|
+
default:
|
|
44519
|
+
reader.skipType(tag & 7);
|
|
44520
|
+
break;
|
|
44521
|
+
}
|
|
44522
|
+
}
|
|
44523
|
+
return message;
|
|
44524
|
+
};
|
|
44525
|
+
|
|
44526
|
+
/**
|
|
44527
|
+
* Decodes a PublishFindingsToDataplexCatalog message from the specified reader or buffer, length delimited.
|
|
44528
|
+
* @function decodeDelimited
|
|
44529
|
+
* @memberof google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog
|
|
44530
|
+
* @static
|
|
44531
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
44532
|
+
* @returns {google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog} PublishFindingsToDataplexCatalog
|
|
44533
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
44534
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
44535
|
+
*/
|
|
44536
|
+
PublishFindingsToDataplexCatalog.decodeDelimited = function decodeDelimited(reader) {
|
|
44537
|
+
if (!(reader instanceof $Reader))
|
|
44538
|
+
reader = new $Reader(reader);
|
|
44539
|
+
return this.decode(reader, reader.uint32());
|
|
44540
|
+
};
|
|
44541
|
+
|
|
44542
|
+
/**
|
|
44543
|
+
* Verifies a PublishFindingsToDataplexCatalog message.
|
|
44544
|
+
* @function verify
|
|
44545
|
+
* @memberof google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog
|
|
44546
|
+
* @static
|
|
44547
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
44548
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
44549
|
+
*/
|
|
44550
|
+
PublishFindingsToDataplexCatalog.verify = function verify(message) {
|
|
44551
|
+
if (typeof message !== "object" || message === null)
|
|
44552
|
+
return "object expected";
|
|
44553
|
+
return null;
|
|
44554
|
+
};
|
|
44555
|
+
|
|
44556
|
+
/**
|
|
44557
|
+
* Creates a PublishFindingsToDataplexCatalog message from a plain object. Also converts values to their respective internal types.
|
|
44558
|
+
* @function fromObject
|
|
44559
|
+
* @memberof google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog
|
|
44560
|
+
* @static
|
|
44561
|
+
* @param {Object.<string,*>} object Plain object
|
|
44562
|
+
* @returns {google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog} PublishFindingsToDataplexCatalog
|
|
44563
|
+
*/
|
|
44564
|
+
PublishFindingsToDataplexCatalog.fromObject = function fromObject(object) {
|
|
44565
|
+
if (object instanceof $root.google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog)
|
|
44566
|
+
return object;
|
|
44567
|
+
return new $root.google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog();
|
|
44568
|
+
};
|
|
44569
|
+
|
|
44570
|
+
/**
|
|
44571
|
+
* Creates a plain object from a PublishFindingsToDataplexCatalog message. Also converts values to other types if specified.
|
|
44572
|
+
* @function toObject
|
|
44573
|
+
* @memberof google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog
|
|
44574
|
+
* @static
|
|
44575
|
+
* @param {google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog} message PublishFindingsToDataplexCatalog
|
|
44576
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
44577
|
+
* @returns {Object.<string,*>} Plain object
|
|
44578
|
+
*/
|
|
44579
|
+
PublishFindingsToDataplexCatalog.toObject = function toObject() {
|
|
44580
|
+
return {};
|
|
44581
|
+
};
|
|
44582
|
+
|
|
44583
|
+
/**
|
|
44584
|
+
* Converts this PublishFindingsToDataplexCatalog to JSON.
|
|
44585
|
+
* @function toJSON
|
|
44586
|
+
* @memberof google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog
|
|
44587
|
+
* @instance
|
|
44588
|
+
* @returns {Object.<string,*>} JSON object
|
|
44589
|
+
*/
|
|
44590
|
+
PublishFindingsToDataplexCatalog.prototype.toJSON = function toJSON() {
|
|
44591
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
44592
|
+
};
|
|
44593
|
+
|
|
44594
|
+
/**
|
|
44595
|
+
* Gets the default type url for PublishFindingsToDataplexCatalog
|
|
44596
|
+
* @function getTypeUrl
|
|
44597
|
+
* @memberof google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog
|
|
44598
|
+
* @static
|
|
44599
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
44600
|
+
* @returns {string} The default type url
|
|
44601
|
+
*/
|
|
44602
|
+
PublishFindingsToDataplexCatalog.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
44603
|
+
if (typeUrlPrefix === undefined) {
|
|
44604
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
44605
|
+
}
|
|
44606
|
+
return typeUrlPrefix + "/google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog";
|
|
44607
|
+
};
|
|
44608
|
+
|
|
44609
|
+
return PublishFindingsToDataplexCatalog;
|
|
44610
|
+
})();
|
|
44611
|
+
|
|
43999
44612
|
Action.Deidentify = (function() {
|
|
44000
44613
|
|
|
44001
44614
|
/**
|
|
@@ -62932,6 +63545,7 @@
|
|
|
62932
63545
|
* @memberof google.privacy.dlp.v2
|
|
62933
63546
|
* @interface IFileStoreCollection
|
|
62934
63547
|
* @property {google.privacy.dlp.v2.IFileStoreRegexes|null} [includeRegexes] FileStoreCollection includeRegexes
|
|
63548
|
+
* @property {google.privacy.dlp.v2.ITagFilters|null} [includeTags] FileStoreCollection includeTags
|
|
62935
63549
|
*/
|
|
62936
63550
|
|
|
62937
63551
|
/**
|
|
@@ -62957,6 +63571,14 @@
|
|
|
62957
63571
|
*/
|
|
62958
63572
|
FileStoreCollection.prototype.includeRegexes = null;
|
|
62959
63573
|
|
|
63574
|
+
/**
|
|
63575
|
+
* FileStoreCollection includeTags.
|
|
63576
|
+
* @member {google.privacy.dlp.v2.ITagFilters|null|undefined} includeTags
|
|
63577
|
+
* @memberof google.privacy.dlp.v2.FileStoreCollection
|
|
63578
|
+
* @instance
|
|
63579
|
+
*/
|
|
63580
|
+
FileStoreCollection.prototype.includeTags = null;
|
|
63581
|
+
|
|
62960
63582
|
// OneOf field names bound to virtual getters and setters
|
|
62961
63583
|
var $oneOfFields;
|
|
62962
63584
|
|
|
@@ -62997,6 +63619,8 @@
|
|
|
62997
63619
|
writer = $Writer.create();
|
|
62998
63620
|
if (message.includeRegexes != null && Object.hasOwnProperty.call(message, "includeRegexes"))
|
|
62999
63621
|
$root.google.privacy.dlp.v2.FileStoreRegexes.encode(message.includeRegexes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
63622
|
+
if (message.includeTags != null && Object.hasOwnProperty.call(message, "includeTags"))
|
|
63623
|
+
$root.google.privacy.dlp.v2.TagFilters.encode(message.includeTags, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
63000
63624
|
return writer;
|
|
63001
63625
|
};
|
|
63002
63626
|
|
|
@@ -63037,6 +63661,10 @@
|
|
|
63037
63661
|
message.includeRegexes = $root.google.privacy.dlp.v2.FileStoreRegexes.decode(reader, reader.uint32());
|
|
63038
63662
|
break;
|
|
63039
63663
|
}
|
|
63664
|
+
case 2: {
|
|
63665
|
+
message.includeTags = $root.google.privacy.dlp.v2.TagFilters.decode(reader, reader.uint32());
|
|
63666
|
+
break;
|
|
63667
|
+
}
|
|
63040
63668
|
default:
|
|
63041
63669
|
reader.skipType(tag & 7);
|
|
63042
63670
|
break;
|
|
@@ -63081,6 +63709,11 @@
|
|
|
63081
63709
|
return "includeRegexes." + error;
|
|
63082
63710
|
}
|
|
63083
63711
|
}
|
|
63712
|
+
if (message.includeTags != null && message.hasOwnProperty("includeTags")) {
|
|
63713
|
+
var error = $root.google.privacy.dlp.v2.TagFilters.verify(message.includeTags);
|
|
63714
|
+
if (error)
|
|
63715
|
+
return "includeTags." + error;
|
|
63716
|
+
}
|
|
63084
63717
|
return null;
|
|
63085
63718
|
};
|
|
63086
63719
|
|
|
@@ -63101,6 +63734,11 @@
|
|
|
63101
63734
|
throw TypeError(".google.privacy.dlp.v2.FileStoreCollection.includeRegexes: object expected");
|
|
63102
63735
|
message.includeRegexes = $root.google.privacy.dlp.v2.FileStoreRegexes.fromObject(object.includeRegexes);
|
|
63103
63736
|
}
|
|
63737
|
+
if (object.includeTags != null) {
|
|
63738
|
+
if (typeof object.includeTags !== "object")
|
|
63739
|
+
throw TypeError(".google.privacy.dlp.v2.FileStoreCollection.includeTags: object expected");
|
|
63740
|
+
message.includeTags = $root.google.privacy.dlp.v2.TagFilters.fromObject(object.includeTags);
|
|
63741
|
+
}
|
|
63104
63742
|
return message;
|
|
63105
63743
|
};
|
|
63106
63744
|
|
|
@@ -63117,11 +63755,15 @@
|
|
|
63117
63755
|
if (!options)
|
|
63118
63756
|
options = {};
|
|
63119
63757
|
var object = {};
|
|
63758
|
+
if (options.defaults)
|
|
63759
|
+
object.includeTags = null;
|
|
63120
63760
|
if (message.includeRegexes != null && message.hasOwnProperty("includeRegexes")) {
|
|
63121
63761
|
object.includeRegexes = $root.google.privacy.dlp.v2.FileStoreRegexes.toObject(message.includeRegexes, options);
|
|
63122
63762
|
if (options.oneofs)
|
|
63123
63763
|
object.pattern = "includeRegexes";
|
|
63124
63764
|
}
|
|
63765
|
+
if (message.includeTags != null && message.hasOwnProperty("includeTags"))
|
|
63766
|
+
object.includeTags = $root.google.privacy.dlp.v2.TagFilters.toObject(message.includeTags, options);
|
|
63125
63767
|
return object;
|
|
63126
63768
|
};
|
|
63127
63769
|
|
|
@@ -82177,6 +82819,7 @@
|
|
|
82177
82819
|
* @property {google.privacy.dlp.v2.IBigQueryTable|null} [sampleFindingsTable] TableDataProfile sampleFindingsTable
|
|
82178
82820
|
* @property {Array.<google.privacy.dlp.v2.ITag>|null} [tags] TableDataProfile tags
|
|
82179
82821
|
* @property {Array.<google.privacy.dlp.v2.IRelatedResource>|null} [relatedResources] TableDataProfile relatedResources
|
|
82822
|
+
* @property {Array.<google.privacy.dlp.v2.IDomain>|null} [domains] TableDataProfile domains
|
|
82180
82823
|
*/
|
|
82181
82824
|
|
|
82182
82825
|
/**
|
|
@@ -82193,6 +82836,7 @@
|
|
|
82193
82836
|
this.resourceLabels = {};
|
|
82194
82837
|
this.tags = [];
|
|
82195
82838
|
this.relatedResources = [];
|
|
82839
|
+
this.domains = [];
|
|
82196
82840
|
if (properties)
|
|
82197
82841
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
82198
82842
|
if (properties[keys[i]] != null)
|
|
@@ -82431,6 +83075,14 @@
|
|
|
82431
83075
|
*/
|
|
82432
83076
|
TableDataProfile.prototype.relatedResources = $util.emptyArray;
|
|
82433
83077
|
|
|
83078
|
+
/**
|
|
83079
|
+
* TableDataProfile domains.
|
|
83080
|
+
* @member {Array.<google.privacy.dlp.v2.IDomain>} domains
|
|
83081
|
+
* @memberof google.privacy.dlp.v2.TableDataProfile
|
|
83082
|
+
* @instance
|
|
83083
|
+
*/
|
|
83084
|
+
TableDataProfile.prototype.domains = $util.emptyArray;
|
|
83085
|
+
|
|
82434
83086
|
/**
|
|
82435
83087
|
* Creates a new TableDataProfile instance using the specified properties.
|
|
82436
83088
|
* @function create
|
|
@@ -82518,6 +83170,9 @@
|
|
|
82518
83170
|
if (message.relatedResources != null && message.relatedResources.length)
|
|
82519
83171
|
for (var i = 0; i < message.relatedResources.length; ++i)
|
|
82520
83172
|
$root.google.privacy.dlp.v2.RelatedResource.encode(message.relatedResources[i], writer.uint32(/* id 41, wireType 2 =*/330).fork()).ldelim();
|
|
83173
|
+
if (message.domains != null && message.domains.length)
|
|
83174
|
+
for (var i = 0; i < message.domains.length; ++i)
|
|
83175
|
+
$root.google.privacy.dlp.v2.Domain.encode(message.domains[i], writer.uint32(/* id 47, wireType 2 =*/378).fork()).ldelim();
|
|
82521
83176
|
return writer;
|
|
82522
83177
|
};
|
|
82523
83178
|
|
|
@@ -82697,6 +83352,12 @@
|
|
|
82697
83352
|
message.relatedResources.push($root.google.privacy.dlp.v2.RelatedResource.decode(reader, reader.uint32()));
|
|
82698
83353
|
break;
|
|
82699
83354
|
}
|
|
83355
|
+
case 47: {
|
|
83356
|
+
if (!(message.domains && message.domains.length))
|
|
83357
|
+
message.domains = [];
|
|
83358
|
+
message.domains.push($root.google.privacy.dlp.v2.Domain.decode(reader, reader.uint32()));
|
|
83359
|
+
break;
|
|
83360
|
+
}
|
|
82700
83361
|
default:
|
|
82701
83362
|
reader.skipType(tag & 7);
|
|
82702
83363
|
break;
|
|
@@ -82887,6 +83548,15 @@
|
|
|
82887
83548
|
return "relatedResources." + error;
|
|
82888
83549
|
}
|
|
82889
83550
|
}
|
|
83551
|
+
if (message.domains != null && message.hasOwnProperty("domains")) {
|
|
83552
|
+
if (!Array.isArray(message.domains))
|
|
83553
|
+
return "domains: array expected";
|
|
83554
|
+
for (var i = 0; i < message.domains.length; ++i) {
|
|
83555
|
+
var error = $root.google.privacy.dlp.v2.Domain.verify(message.domains[i]);
|
|
83556
|
+
if (error)
|
|
83557
|
+
return "domains." + error;
|
|
83558
|
+
}
|
|
83559
|
+
}
|
|
82890
83560
|
return null;
|
|
82891
83561
|
};
|
|
82892
83562
|
|
|
@@ -83113,6 +83783,16 @@
|
|
|
83113
83783
|
message.relatedResources[i] = $root.google.privacy.dlp.v2.RelatedResource.fromObject(object.relatedResources[i]);
|
|
83114
83784
|
}
|
|
83115
83785
|
}
|
|
83786
|
+
if (object.domains) {
|
|
83787
|
+
if (!Array.isArray(object.domains))
|
|
83788
|
+
throw TypeError(".google.privacy.dlp.v2.TableDataProfile.domains: array expected");
|
|
83789
|
+
message.domains = [];
|
|
83790
|
+
for (var i = 0; i < object.domains.length; ++i) {
|
|
83791
|
+
if (typeof object.domains[i] !== "object")
|
|
83792
|
+
throw TypeError(".google.privacy.dlp.v2.TableDataProfile.domains: object expected");
|
|
83793
|
+
message.domains[i] = $root.google.privacy.dlp.v2.Domain.fromObject(object.domains[i]);
|
|
83794
|
+
}
|
|
83795
|
+
}
|
|
83116
83796
|
return message;
|
|
83117
83797
|
};
|
|
83118
83798
|
|
|
@@ -83134,6 +83814,7 @@
|
|
|
83134
83814
|
object.otherInfoTypes = [];
|
|
83135
83815
|
object.tags = [];
|
|
83136
83816
|
object.relatedResources = [];
|
|
83817
|
+
object.domains = [];
|
|
83137
83818
|
}
|
|
83138
83819
|
if (options.objects || options.defaults)
|
|
83139
83820
|
object.resourceLabels = {};
|
|
@@ -83265,6 +83946,11 @@
|
|
|
83265
83946
|
for (var j = 0; j < message.relatedResources.length; ++j)
|
|
83266
83947
|
object.relatedResources[j] = $root.google.privacy.dlp.v2.RelatedResource.toObject(message.relatedResources[j], options);
|
|
83267
83948
|
}
|
|
83949
|
+
if (message.domains && message.domains.length) {
|
|
83950
|
+
object.domains = [];
|
|
83951
|
+
for (var j = 0; j < message.domains.length; ++j)
|
|
83952
|
+
object.domains[j] = $root.google.privacy.dlp.v2.Domain.toObject(message.domains[j], options);
|
|
83953
|
+
}
|
|
83268
83954
|
return object;
|
|
83269
83955
|
};
|
|
83270
83956
|
|
|
@@ -85107,6 +85793,7 @@
|
|
|
85107
85793
|
* @property {boolean|null} [fileStoreIsEmpty] FileStoreDataProfile fileStoreIsEmpty
|
|
85108
85794
|
* @property {Array.<google.privacy.dlp.v2.ITag>|null} [tags] FileStoreDataProfile tags
|
|
85109
85795
|
* @property {Array.<google.privacy.dlp.v2.IRelatedResource>|null} [relatedResources] FileStoreDataProfile relatedResources
|
|
85796
|
+
* @property {Array.<google.privacy.dlp.v2.IDomain>|null} [domains] FileStoreDataProfile domains
|
|
85110
85797
|
*/
|
|
85111
85798
|
|
|
85112
85799
|
/**
|
|
@@ -85125,6 +85812,7 @@
|
|
|
85125
85812
|
this.fileStoreInfoTypeSummaries = [];
|
|
85126
85813
|
this.tags = [];
|
|
85127
85814
|
this.relatedResources = [];
|
|
85815
|
+
this.domains = [];
|
|
85128
85816
|
if (properties)
|
|
85129
85817
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
85130
85818
|
if (properties[keys[i]] != null)
|
|
@@ -85339,6 +86027,14 @@
|
|
|
85339
86027
|
*/
|
|
85340
86028
|
FileStoreDataProfile.prototype.relatedResources = $util.emptyArray;
|
|
85341
86029
|
|
|
86030
|
+
/**
|
|
86031
|
+
* FileStoreDataProfile domains.
|
|
86032
|
+
* @member {Array.<google.privacy.dlp.v2.IDomain>} domains
|
|
86033
|
+
* @memberof google.privacy.dlp.v2.FileStoreDataProfile
|
|
86034
|
+
* @instance
|
|
86035
|
+
*/
|
|
86036
|
+
FileStoreDataProfile.prototype.domains = $util.emptyArray;
|
|
86037
|
+
|
|
85342
86038
|
/**
|
|
85343
86039
|
* Creates a new FileStoreDataProfile instance using the specified properties.
|
|
85344
86040
|
* @function create
|
|
@@ -85424,6 +86120,9 @@
|
|
|
85424
86120
|
if (message.relatedResources != null && message.relatedResources.length)
|
|
85425
86121
|
for (var i = 0; i < message.relatedResources.length; ++i)
|
|
85426
86122
|
$root.google.privacy.dlp.v2.RelatedResource.encode(message.relatedResources[i], writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
|
|
86123
|
+
if (message.domains != null && message.domains.length)
|
|
86124
|
+
for (var i = 0; i < message.domains.length; ++i)
|
|
86125
|
+
$root.google.privacy.dlp.v2.Domain.encode(message.domains[i], writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
|
|
85427
86126
|
return writer;
|
|
85428
86127
|
};
|
|
85429
86128
|
|
|
@@ -85612,6 +86311,12 @@
|
|
|
85612
86311
|
message.relatedResources.push($root.google.privacy.dlp.v2.RelatedResource.decode(reader, reader.uint32()));
|
|
85613
86312
|
break;
|
|
85614
86313
|
}
|
|
86314
|
+
case 27: {
|
|
86315
|
+
if (!(message.domains && message.domains.length))
|
|
86316
|
+
message.domains = [];
|
|
86317
|
+
message.domains.push($root.google.privacy.dlp.v2.Domain.decode(reader, reader.uint32()));
|
|
86318
|
+
break;
|
|
86319
|
+
}
|
|
85615
86320
|
default:
|
|
85616
86321
|
reader.skipType(tag & 7);
|
|
85617
86322
|
break;
|
|
@@ -85796,6 +86501,15 @@
|
|
|
85796
86501
|
return "relatedResources." + error;
|
|
85797
86502
|
}
|
|
85798
86503
|
}
|
|
86504
|
+
if (message.domains != null && message.hasOwnProperty("domains")) {
|
|
86505
|
+
if (!Array.isArray(message.domains))
|
|
86506
|
+
return "domains: array expected";
|
|
86507
|
+
for (var i = 0; i < message.domains.length; ++i) {
|
|
86508
|
+
var error = $root.google.privacy.dlp.v2.Domain.verify(message.domains[i]);
|
|
86509
|
+
if (error)
|
|
86510
|
+
return "domains." + error;
|
|
86511
|
+
}
|
|
86512
|
+
}
|
|
85799
86513
|
return null;
|
|
85800
86514
|
};
|
|
85801
86515
|
|
|
@@ -85980,6 +86694,16 @@
|
|
|
85980
86694
|
message.relatedResources[i] = $root.google.privacy.dlp.v2.RelatedResource.fromObject(object.relatedResources[i]);
|
|
85981
86695
|
}
|
|
85982
86696
|
}
|
|
86697
|
+
if (object.domains) {
|
|
86698
|
+
if (!Array.isArray(object.domains))
|
|
86699
|
+
throw TypeError(".google.privacy.dlp.v2.FileStoreDataProfile.domains: array expected");
|
|
86700
|
+
message.domains = [];
|
|
86701
|
+
for (var i = 0; i < object.domains.length; ++i) {
|
|
86702
|
+
if (typeof object.domains[i] !== "object")
|
|
86703
|
+
throw TypeError(".google.privacy.dlp.v2.FileStoreDataProfile.domains: object expected");
|
|
86704
|
+
message.domains[i] = $root.google.privacy.dlp.v2.Domain.fromObject(object.domains[i]);
|
|
86705
|
+
}
|
|
86706
|
+
}
|
|
85983
86707
|
return message;
|
|
85984
86708
|
};
|
|
85985
86709
|
|
|
@@ -86002,6 +86726,7 @@
|
|
|
86002
86726
|
object.fileStoreInfoTypeSummaries = [];
|
|
86003
86727
|
object.tags = [];
|
|
86004
86728
|
object.relatedResources = [];
|
|
86729
|
+
object.domains = [];
|
|
86005
86730
|
}
|
|
86006
86731
|
if (options.objects || options.defaults) {
|
|
86007
86732
|
object.resourceAttributes = {};
|
|
@@ -86102,6 +86827,11 @@
|
|
|
86102
86827
|
for (var j = 0; j < message.relatedResources.length; ++j)
|
|
86103
86828
|
object.relatedResources[j] = $root.google.privacy.dlp.v2.RelatedResource.toObject(message.relatedResources[j], options);
|
|
86104
86829
|
}
|
|
86830
|
+
if (message.domains && message.domains.length) {
|
|
86831
|
+
object.domains = [];
|
|
86832
|
+
for (var j = 0; j < message.domains.length; ++j)
|
|
86833
|
+
object.domains[j] = $root.google.privacy.dlp.v2.Domain.toObject(message.domains[j], options);
|
|
86834
|
+
}
|
|
86105
86835
|
return object;
|
|
86106
86836
|
};
|
|
86107
86837
|
|
|
@@ -86402,6 +87132,484 @@
|
|
|
86402
87132
|
return Tag;
|
|
86403
87133
|
})();
|
|
86404
87134
|
|
|
87135
|
+
v2.TagFilters = (function() {
|
|
87136
|
+
|
|
87137
|
+
/**
|
|
87138
|
+
* Properties of a TagFilters.
|
|
87139
|
+
* @memberof google.privacy.dlp.v2
|
|
87140
|
+
* @interface ITagFilters
|
|
87141
|
+
* @property {Array.<google.privacy.dlp.v2.ITagFilter>|null} [tagFilters] TagFilters tagFilters
|
|
87142
|
+
*/
|
|
87143
|
+
|
|
87144
|
+
/**
|
|
87145
|
+
* Constructs a new TagFilters.
|
|
87146
|
+
* @memberof google.privacy.dlp.v2
|
|
87147
|
+
* @classdesc Represents a TagFilters.
|
|
87148
|
+
* @implements ITagFilters
|
|
87149
|
+
* @constructor
|
|
87150
|
+
* @param {google.privacy.dlp.v2.ITagFilters=} [properties] Properties to set
|
|
87151
|
+
*/
|
|
87152
|
+
function TagFilters(properties) {
|
|
87153
|
+
this.tagFilters = [];
|
|
87154
|
+
if (properties)
|
|
87155
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
87156
|
+
if (properties[keys[i]] != null)
|
|
87157
|
+
this[keys[i]] = properties[keys[i]];
|
|
87158
|
+
}
|
|
87159
|
+
|
|
87160
|
+
/**
|
|
87161
|
+
* TagFilters tagFilters.
|
|
87162
|
+
* @member {Array.<google.privacy.dlp.v2.ITagFilter>} tagFilters
|
|
87163
|
+
* @memberof google.privacy.dlp.v2.TagFilters
|
|
87164
|
+
* @instance
|
|
87165
|
+
*/
|
|
87166
|
+
TagFilters.prototype.tagFilters = $util.emptyArray;
|
|
87167
|
+
|
|
87168
|
+
/**
|
|
87169
|
+
* Creates a new TagFilters instance using the specified properties.
|
|
87170
|
+
* @function create
|
|
87171
|
+
* @memberof google.privacy.dlp.v2.TagFilters
|
|
87172
|
+
* @static
|
|
87173
|
+
* @param {google.privacy.dlp.v2.ITagFilters=} [properties] Properties to set
|
|
87174
|
+
* @returns {google.privacy.dlp.v2.TagFilters} TagFilters instance
|
|
87175
|
+
*/
|
|
87176
|
+
TagFilters.create = function create(properties) {
|
|
87177
|
+
return new TagFilters(properties);
|
|
87178
|
+
};
|
|
87179
|
+
|
|
87180
|
+
/**
|
|
87181
|
+
* Encodes the specified TagFilters message. Does not implicitly {@link google.privacy.dlp.v2.TagFilters.verify|verify} messages.
|
|
87182
|
+
* @function encode
|
|
87183
|
+
* @memberof google.privacy.dlp.v2.TagFilters
|
|
87184
|
+
* @static
|
|
87185
|
+
* @param {google.privacy.dlp.v2.ITagFilters} message TagFilters message or plain object to encode
|
|
87186
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
87187
|
+
* @returns {$protobuf.Writer} Writer
|
|
87188
|
+
*/
|
|
87189
|
+
TagFilters.encode = function encode(message, writer) {
|
|
87190
|
+
if (!writer)
|
|
87191
|
+
writer = $Writer.create();
|
|
87192
|
+
if (message.tagFilters != null && message.tagFilters.length)
|
|
87193
|
+
for (var i = 0; i < message.tagFilters.length; ++i)
|
|
87194
|
+
$root.google.privacy.dlp.v2.TagFilter.encode(message.tagFilters[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
87195
|
+
return writer;
|
|
87196
|
+
};
|
|
87197
|
+
|
|
87198
|
+
/**
|
|
87199
|
+
* Encodes the specified TagFilters message, length delimited. Does not implicitly {@link google.privacy.dlp.v2.TagFilters.verify|verify} messages.
|
|
87200
|
+
* @function encodeDelimited
|
|
87201
|
+
* @memberof google.privacy.dlp.v2.TagFilters
|
|
87202
|
+
* @static
|
|
87203
|
+
* @param {google.privacy.dlp.v2.ITagFilters} message TagFilters message or plain object to encode
|
|
87204
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
87205
|
+
* @returns {$protobuf.Writer} Writer
|
|
87206
|
+
*/
|
|
87207
|
+
TagFilters.encodeDelimited = function encodeDelimited(message, writer) {
|
|
87208
|
+
return this.encode(message, writer).ldelim();
|
|
87209
|
+
};
|
|
87210
|
+
|
|
87211
|
+
/**
|
|
87212
|
+
* Decodes a TagFilters message from the specified reader or buffer.
|
|
87213
|
+
* @function decode
|
|
87214
|
+
* @memberof google.privacy.dlp.v2.TagFilters
|
|
87215
|
+
* @static
|
|
87216
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
87217
|
+
* @param {number} [length] Message length if known beforehand
|
|
87218
|
+
* @returns {google.privacy.dlp.v2.TagFilters} TagFilters
|
|
87219
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
87220
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87221
|
+
*/
|
|
87222
|
+
TagFilters.decode = function decode(reader, length, error) {
|
|
87223
|
+
if (!(reader instanceof $Reader))
|
|
87224
|
+
reader = $Reader.create(reader);
|
|
87225
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.privacy.dlp.v2.TagFilters();
|
|
87226
|
+
while (reader.pos < end) {
|
|
87227
|
+
var tag = reader.uint32();
|
|
87228
|
+
if (tag === error)
|
|
87229
|
+
break;
|
|
87230
|
+
switch (tag >>> 3) {
|
|
87231
|
+
case 1: {
|
|
87232
|
+
if (!(message.tagFilters && message.tagFilters.length))
|
|
87233
|
+
message.tagFilters = [];
|
|
87234
|
+
message.tagFilters.push($root.google.privacy.dlp.v2.TagFilter.decode(reader, reader.uint32()));
|
|
87235
|
+
break;
|
|
87236
|
+
}
|
|
87237
|
+
default:
|
|
87238
|
+
reader.skipType(tag & 7);
|
|
87239
|
+
break;
|
|
87240
|
+
}
|
|
87241
|
+
}
|
|
87242
|
+
return message;
|
|
87243
|
+
};
|
|
87244
|
+
|
|
87245
|
+
/**
|
|
87246
|
+
* Decodes a TagFilters message from the specified reader or buffer, length delimited.
|
|
87247
|
+
* @function decodeDelimited
|
|
87248
|
+
* @memberof google.privacy.dlp.v2.TagFilters
|
|
87249
|
+
* @static
|
|
87250
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
87251
|
+
* @returns {google.privacy.dlp.v2.TagFilters} TagFilters
|
|
87252
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
87253
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87254
|
+
*/
|
|
87255
|
+
TagFilters.decodeDelimited = function decodeDelimited(reader) {
|
|
87256
|
+
if (!(reader instanceof $Reader))
|
|
87257
|
+
reader = new $Reader(reader);
|
|
87258
|
+
return this.decode(reader, reader.uint32());
|
|
87259
|
+
};
|
|
87260
|
+
|
|
87261
|
+
/**
|
|
87262
|
+
* Verifies a TagFilters message.
|
|
87263
|
+
* @function verify
|
|
87264
|
+
* @memberof google.privacy.dlp.v2.TagFilters
|
|
87265
|
+
* @static
|
|
87266
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
87267
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
87268
|
+
*/
|
|
87269
|
+
TagFilters.verify = function verify(message) {
|
|
87270
|
+
if (typeof message !== "object" || message === null)
|
|
87271
|
+
return "object expected";
|
|
87272
|
+
if (message.tagFilters != null && message.hasOwnProperty("tagFilters")) {
|
|
87273
|
+
if (!Array.isArray(message.tagFilters))
|
|
87274
|
+
return "tagFilters: array expected";
|
|
87275
|
+
for (var i = 0; i < message.tagFilters.length; ++i) {
|
|
87276
|
+
var error = $root.google.privacy.dlp.v2.TagFilter.verify(message.tagFilters[i]);
|
|
87277
|
+
if (error)
|
|
87278
|
+
return "tagFilters." + error;
|
|
87279
|
+
}
|
|
87280
|
+
}
|
|
87281
|
+
return null;
|
|
87282
|
+
};
|
|
87283
|
+
|
|
87284
|
+
/**
|
|
87285
|
+
* Creates a TagFilters message from a plain object. Also converts values to their respective internal types.
|
|
87286
|
+
* @function fromObject
|
|
87287
|
+
* @memberof google.privacy.dlp.v2.TagFilters
|
|
87288
|
+
* @static
|
|
87289
|
+
* @param {Object.<string,*>} object Plain object
|
|
87290
|
+
* @returns {google.privacy.dlp.v2.TagFilters} TagFilters
|
|
87291
|
+
*/
|
|
87292
|
+
TagFilters.fromObject = function fromObject(object) {
|
|
87293
|
+
if (object instanceof $root.google.privacy.dlp.v2.TagFilters)
|
|
87294
|
+
return object;
|
|
87295
|
+
var message = new $root.google.privacy.dlp.v2.TagFilters();
|
|
87296
|
+
if (object.tagFilters) {
|
|
87297
|
+
if (!Array.isArray(object.tagFilters))
|
|
87298
|
+
throw TypeError(".google.privacy.dlp.v2.TagFilters.tagFilters: array expected");
|
|
87299
|
+
message.tagFilters = [];
|
|
87300
|
+
for (var i = 0; i < object.tagFilters.length; ++i) {
|
|
87301
|
+
if (typeof object.tagFilters[i] !== "object")
|
|
87302
|
+
throw TypeError(".google.privacy.dlp.v2.TagFilters.tagFilters: object expected");
|
|
87303
|
+
message.tagFilters[i] = $root.google.privacy.dlp.v2.TagFilter.fromObject(object.tagFilters[i]);
|
|
87304
|
+
}
|
|
87305
|
+
}
|
|
87306
|
+
return message;
|
|
87307
|
+
};
|
|
87308
|
+
|
|
87309
|
+
/**
|
|
87310
|
+
* Creates a plain object from a TagFilters message. Also converts values to other types if specified.
|
|
87311
|
+
* @function toObject
|
|
87312
|
+
* @memberof google.privacy.dlp.v2.TagFilters
|
|
87313
|
+
* @static
|
|
87314
|
+
* @param {google.privacy.dlp.v2.TagFilters} message TagFilters
|
|
87315
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
87316
|
+
* @returns {Object.<string,*>} Plain object
|
|
87317
|
+
*/
|
|
87318
|
+
TagFilters.toObject = function toObject(message, options) {
|
|
87319
|
+
if (!options)
|
|
87320
|
+
options = {};
|
|
87321
|
+
var object = {};
|
|
87322
|
+
if (options.arrays || options.defaults)
|
|
87323
|
+
object.tagFilters = [];
|
|
87324
|
+
if (message.tagFilters && message.tagFilters.length) {
|
|
87325
|
+
object.tagFilters = [];
|
|
87326
|
+
for (var j = 0; j < message.tagFilters.length; ++j)
|
|
87327
|
+
object.tagFilters[j] = $root.google.privacy.dlp.v2.TagFilter.toObject(message.tagFilters[j], options);
|
|
87328
|
+
}
|
|
87329
|
+
return object;
|
|
87330
|
+
};
|
|
87331
|
+
|
|
87332
|
+
/**
|
|
87333
|
+
* Converts this TagFilters to JSON.
|
|
87334
|
+
* @function toJSON
|
|
87335
|
+
* @memberof google.privacy.dlp.v2.TagFilters
|
|
87336
|
+
* @instance
|
|
87337
|
+
* @returns {Object.<string,*>} JSON object
|
|
87338
|
+
*/
|
|
87339
|
+
TagFilters.prototype.toJSON = function toJSON() {
|
|
87340
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
87341
|
+
};
|
|
87342
|
+
|
|
87343
|
+
/**
|
|
87344
|
+
* Gets the default type url for TagFilters
|
|
87345
|
+
* @function getTypeUrl
|
|
87346
|
+
* @memberof google.privacy.dlp.v2.TagFilters
|
|
87347
|
+
* @static
|
|
87348
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
87349
|
+
* @returns {string} The default type url
|
|
87350
|
+
*/
|
|
87351
|
+
TagFilters.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
87352
|
+
if (typeUrlPrefix === undefined) {
|
|
87353
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
87354
|
+
}
|
|
87355
|
+
return typeUrlPrefix + "/google.privacy.dlp.v2.TagFilters";
|
|
87356
|
+
};
|
|
87357
|
+
|
|
87358
|
+
return TagFilters;
|
|
87359
|
+
})();
|
|
87360
|
+
|
|
87361
|
+
v2.TagFilter = (function() {
|
|
87362
|
+
|
|
87363
|
+
/**
|
|
87364
|
+
* Properties of a TagFilter.
|
|
87365
|
+
* @memberof google.privacy.dlp.v2
|
|
87366
|
+
* @interface ITagFilter
|
|
87367
|
+
* @property {string|null} [namespacedTagValue] TagFilter namespacedTagValue
|
|
87368
|
+
* @property {string|null} [namespacedTagKey] TagFilter namespacedTagKey
|
|
87369
|
+
*/
|
|
87370
|
+
|
|
87371
|
+
/**
|
|
87372
|
+
* Constructs a new TagFilter.
|
|
87373
|
+
* @memberof google.privacy.dlp.v2
|
|
87374
|
+
* @classdesc Represents a TagFilter.
|
|
87375
|
+
* @implements ITagFilter
|
|
87376
|
+
* @constructor
|
|
87377
|
+
* @param {google.privacy.dlp.v2.ITagFilter=} [properties] Properties to set
|
|
87378
|
+
*/
|
|
87379
|
+
function TagFilter(properties) {
|
|
87380
|
+
if (properties)
|
|
87381
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
87382
|
+
if (properties[keys[i]] != null)
|
|
87383
|
+
this[keys[i]] = properties[keys[i]];
|
|
87384
|
+
}
|
|
87385
|
+
|
|
87386
|
+
/**
|
|
87387
|
+
* TagFilter namespacedTagValue.
|
|
87388
|
+
* @member {string|null|undefined} namespacedTagValue
|
|
87389
|
+
* @memberof google.privacy.dlp.v2.TagFilter
|
|
87390
|
+
* @instance
|
|
87391
|
+
*/
|
|
87392
|
+
TagFilter.prototype.namespacedTagValue = null;
|
|
87393
|
+
|
|
87394
|
+
/**
|
|
87395
|
+
* TagFilter namespacedTagKey.
|
|
87396
|
+
* @member {string|null|undefined} namespacedTagKey
|
|
87397
|
+
* @memberof google.privacy.dlp.v2.TagFilter
|
|
87398
|
+
* @instance
|
|
87399
|
+
*/
|
|
87400
|
+
TagFilter.prototype.namespacedTagKey = null;
|
|
87401
|
+
|
|
87402
|
+
// OneOf field names bound to virtual getters and setters
|
|
87403
|
+
var $oneOfFields;
|
|
87404
|
+
|
|
87405
|
+
/**
|
|
87406
|
+
* TagFilter format.
|
|
87407
|
+
* @member {"namespacedTagValue"|"namespacedTagKey"|undefined} format
|
|
87408
|
+
* @memberof google.privacy.dlp.v2.TagFilter
|
|
87409
|
+
* @instance
|
|
87410
|
+
*/
|
|
87411
|
+
Object.defineProperty(TagFilter.prototype, "format", {
|
|
87412
|
+
get: $util.oneOfGetter($oneOfFields = ["namespacedTagValue", "namespacedTagKey"]),
|
|
87413
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
87414
|
+
});
|
|
87415
|
+
|
|
87416
|
+
/**
|
|
87417
|
+
* Creates a new TagFilter instance using the specified properties.
|
|
87418
|
+
* @function create
|
|
87419
|
+
* @memberof google.privacy.dlp.v2.TagFilter
|
|
87420
|
+
* @static
|
|
87421
|
+
* @param {google.privacy.dlp.v2.ITagFilter=} [properties] Properties to set
|
|
87422
|
+
* @returns {google.privacy.dlp.v2.TagFilter} TagFilter instance
|
|
87423
|
+
*/
|
|
87424
|
+
TagFilter.create = function create(properties) {
|
|
87425
|
+
return new TagFilter(properties);
|
|
87426
|
+
};
|
|
87427
|
+
|
|
87428
|
+
/**
|
|
87429
|
+
* Encodes the specified TagFilter message. Does not implicitly {@link google.privacy.dlp.v2.TagFilter.verify|verify} messages.
|
|
87430
|
+
* @function encode
|
|
87431
|
+
* @memberof google.privacy.dlp.v2.TagFilter
|
|
87432
|
+
* @static
|
|
87433
|
+
* @param {google.privacy.dlp.v2.ITagFilter} message TagFilter message or plain object to encode
|
|
87434
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
87435
|
+
* @returns {$protobuf.Writer} Writer
|
|
87436
|
+
*/
|
|
87437
|
+
TagFilter.encode = function encode(message, writer) {
|
|
87438
|
+
if (!writer)
|
|
87439
|
+
writer = $Writer.create();
|
|
87440
|
+
if (message.namespacedTagValue != null && Object.hasOwnProperty.call(message, "namespacedTagValue"))
|
|
87441
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.namespacedTagValue);
|
|
87442
|
+
if (message.namespacedTagKey != null && Object.hasOwnProperty.call(message, "namespacedTagKey"))
|
|
87443
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.namespacedTagKey);
|
|
87444
|
+
return writer;
|
|
87445
|
+
};
|
|
87446
|
+
|
|
87447
|
+
/**
|
|
87448
|
+
* Encodes the specified TagFilter message, length delimited. Does not implicitly {@link google.privacy.dlp.v2.TagFilter.verify|verify} messages.
|
|
87449
|
+
* @function encodeDelimited
|
|
87450
|
+
* @memberof google.privacy.dlp.v2.TagFilter
|
|
87451
|
+
* @static
|
|
87452
|
+
* @param {google.privacy.dlp.v2.ITagFilter} message TagFilter message or plain object to encode
|
|
87453
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
87454
|
+
* @returns {$protobuf.Writer} Writer
|
|
87455
|
+
*/
|
|
87456
|
+
TagFilter.encodeDelimited = function encodeDelimited(message, writer) {
|
|
87457
|
+
return this.encode(message, writer).ldelim();
|
|
87458
|
+
};
|
|
87459
|
+
|
|
87460
|
+
/**
|
|
87461
|
+
* Decodes a TagFilter message from the specified reader or buffer.
|
|
87462
|
+
* @function decode
|
|
87463
|
+
* @memberof google.privacy.dlp.v2.TagFilter
|
|
87464
|
+
* @static
|
|
87465
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
87466
|
+
* @param {number} [length] Message length if known beforehand
|
|
87467
|
+
* @returns {google.privacy.dlp.v2.TagFilter} TagFilter
|
|
87468
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
87469
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87470
|
+
*/
|
|
87471
|
+
TagFilter.decode = function decode(reader, length, error) {
|
|
87472
|
+
if (!(reader instanceof $Reader))
|
|
87473
|
+
reader = $Reader.create(reader);
|
|
87474
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.privacy.dlp.v2.TagFilter();
|
|
87475
|
+
while (reader.pos < end) {
|
|
87476
|
+
var tag = reader.uint32();
|
|
87477
|
+
if (tag === error)
|
|
87478
|
+
break;
|
|
87479
|
+
switch (tag >>> 3) {
|
|
87480
|
+
case 1: {
|
|
87481
|
+
message.namespacedTagValue = reader.string();
|
|
87482
|
+
break;
|
|
87483
|
+
}
|
|
87484
|
+
case 2: {
|
|
87485
|
+
message.namespacedTagKey = reader.string();
|
|
87486
|
+
break;
|
|
87487
|
+
}
|
|
87488
|
+
default:
|
|
87489
|
+
reader.skipType(tag & 7);
|
|
87490
|
+
break;
|
|
87491
|
+
}
|
|
87492
|
+
}
|
|
87493
|
+
return message;
|
|
87494
|
+
};
|
|
87495
|
+
|
|
87496
|
+
/**
|
|
87497
|
+
* Decodes a TagFilter message from the specified reader or buffer, length delimited.
|
|
87498
|
+
* @function decodeDelimited
|
|
87499
|
+
* @memberof google.privacy.dlp.v2.TagFilter
|
|
87500
|
+
* @static
|
|
87501
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
87502
|
+
* @returns {google.privacy.dlp.v2.TagFilter} TagFilter
|
|
87503
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
87504
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87505
|
+
*/
|
|
87506
|
+
TagFilter.decodeDelimited = function decodeDelimited(reader) {
|
|
87507
|
+
if (!(reader instanceof $Reader))
|
|
87508
|
+
reader = new $Reader(reader);
|
|
87509
|
+
return this.decode(reader, reader.uint32());
|
|
87510
|
+
};
|
|
87511
|
+
|
|
87512
|
+
/**
|
|
87513
|
+
* Verifies a TagFilter message.
|
|
87514
|
+
* @function verify
|
|
87515
|
+
* @memberof google.privacy.dlp.v2.TagFilter
|
|
87516
|
+
* @static
|
|
87517
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
87518
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
87519
|
+
*/
|
|
87520
|
+
TagFilter.verify = function verify(message) {
|
|
87521
|
+
if (typeof message !== "object" || message === null)
|
|
87522
|
+
return "object expected";
|
|
87523
|
+
var properties = {};
|
|
87524
|
+
if (message.namespacedTagValue != null && message.hasOwnProperty("namespacedTagValue")) {
|
|
87525
|
+
properties.format = 1;
|
|
87526
|
+
if (!$util.isString(message.namespacedTagValue))
|
|
87527
|
+
return "namespacedTagValue: string expected";
|
|
87528
|
+
}
|
|
87529
|
+
if (message.namespacedTagKey != null && message.hasOwnProperty("namespacedTagKey")) {
|
|
87530
|
+
if (properties.format === 1)
|
|
87531
|
+
return "format: multiple values";
|
|
87532
|
+
properties.format = 1;
|
|
87533
|
+
if (!$util.isString(message.namespacedTagKey))
|
|
87534
|
+
return "namespacedTagKey: string expected";
|
|
87535
|
+
}
|
|
87536
|
+
return null;
|
|
87537
|
+
};
|
|
87538
|
+
|
|
87539
|
+
/**
|
|
87540
|
+
* Creates a TagFilter message from a plain object. Also converts values to their respective internal types.
|
|
87541
|
+
* @function fromObject
|
|
87542
|
+
* @memberof google.privacy.dlp.v2.TagFilter
|
|
87543
|
+
* @static
|
|
87544
|
+
* @param {Object.<string,*>} object Plain object
|
|
87545
|
+
* @returns {google.privacy.dlp.v2.TagFilter} TagFilter
|
|
87546
|
+
*/
|
|
87547
|
+
TagFilter.fromObject = function fromObject(object) {
|
|
87548
|
+
if (object instanceof $root.google.privacy.dlp.v2.TagFilter)
|
|
87549
|
+
return object;
|
|
87550
|
+
var message = new $root.google.privacy.dlp.v2.TagFilter();
|
|
87551
|
+
if (object.namespacedTagValue != null)
|
|
87552
|
+
message.namespacedTagValue = String(object.namespacedTagValue);
|
|
87553
|
+
if (object.namespacedTagKey != null)
|
|
87554
|
+
message.namespacedTagKey = String(object.namespacedTagKey);
|
|
87555
|
+
return message;
|
|
87556
|
+
};
|
|
87557
|
+
|
|
87558
|
+
/**
|
|
87559
|
+
* Creates a plain object from a TagFilter message. Also converts values to other types if specified.
|
|
87560
|
+
* @function toObject
|
|
87561
|
+
* @memberof google.privacy.dlp.v2.TagFilter
|
|
87562
|
+
* @static
|
|
87563
|
+
* @param {google.privacy.dlp.v2.TagFilter} message TagFilter
|
|
87564
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
87565
|
+
* @returns {Object.<string,*>} Plain object
|
|
87566
|
+
*/
|
|
87567
|
+
TagFilter.toObject = function toObject(message, options) {
|
|
87568
|
+
if (!options)
|
|
87569
|
+
options = {};
|
|
87570
|
+
var object = {};
|
|
87571
|
+
if (message.namespacedTagValue != null && message.hasOwnProperty("namespacedTagValue")) {
|
|
87572
|
+
object.namespacedTagValue = message.namespacedTagValue;
|
|
87573
|
+
if (options.oneofs)
|
|
87574
|
+
object.format = "namespacedTagValue";
|
|
87575
|
+
}
|
|
87576
|
+
if (message.namespacedTagKey != null && message.hasOwnProperty("namespacedTagKey")) {
|
|
87577
|
+
object.namespacedTagKey = message.namespacedTagKey;
|
|
87578
|
+
if (options.oneofs)
|
|
87579
|
+
object.format = "namespacedTagKey";
|
|
87580
|
+
}
|
|
87581
|
+
return object;
|
|
87582
|
+
};
|
|
87583
|
+
|
|
87584
|
+
/**
|
|
87585
|
+
* Converts this TagFilter to JSON.
|
|
87586
|
+
* @function toJSON
|
|
87587
|
+
* @memberof google.privacy.dlp.v2.TagFilter
|
|
87588
|
+
* @instance
|
|
87589
|
+
* @returns {Object.<string,*>} JSON object
|
|
87590
|
+
*/
|
|
87591
|
+
TagFilter.prototype.toJSON = function toJSON() {
|
|
87592
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
87593
|
+
};
|
|
87594
|
+
|
|
87595
|
+
/**
|
|
87596
|
+
* Gets the default type url for TagFilter
|
|
87597
|
+
* @function getTypeUrl
|
|
87598
|
+
* @memberof google.privacy.dlp.v2.TagFilter
|
|
87599
|
+
* @static
|
|
87600
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
87601
|
+
* @returns {string} The default type url
|
|
87602
|
+
*/
|
|
87603
|
+
TagFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
87604
|
+
if (typeUrlPrefix === undefined) {
|
|
87605
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
87606
|
+
}
|
|
87607
|
+
return typeUrlPrefix + "/google.privacy.dlp.v2.TagFilter";
|
|
87608
|
+
};
|
|
87609
|
+
|
|
87610
|
+
return TagFilter;
|
|
87611
|
+
})();
|
|
87612
|
+
|
|
86405
87613
|
v2.RelatedResource = (function() {
|
|
86406
87614
|
|
|
86407
87615
|
/**
|
|
@@ -94017,6 +95225,7 @@
|
|
|
94017
95225
|
* @memberof google.privacy.dlp.v2
|
|
94018
95226
|
* @interface IProcessingLocation
|
|
94019
95227
|
* @property {google.privacy.dlp.v2.ProcessingLocation.IImageFallbackLocation|null} [imageFallbackLocation] ProcessingLocation imageFallbackLocation
|
|
95228
|
+
* @property {google.privacy.dlp.v2.ProcessingLocation.IDocumentFallbackLocation|null} [documentFallbackLocation] ProcessingLocation documentFallbackLocation
|
|
94020
95229
|
*/
|
|
94021
95230
|
|
|
94022
95231
|
/**
|
|
@@ -94042,6 +95251,14 @@
|
|
|
94042
95251
|
*/
|
|
94043
95252
|
ProcessingLocation.prototype.imageFallbackLocation = null;
|
|
94044
95253
|
|
|
95254
|
+
/**
|
|
95255
|
+
* ProcessingLocation documentFallbackLocation.
|
|
95256
|
+
* @member {google.privacy.dlp.v2.ProcessingLocation.IDocumentFallbackLocation|null|undefined} documentFallbackLocation
|
|
95257
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation
|
|
95258
|
+
* @instance
|
|
95259
|
+
*/
|
|
95260
|
+
ProcessingLocation.prototype.documentFallbackLocation = null;
|
|
95261
|
+
|
|
94045
95262
|
/**
|
|
94046
95263
|
* Creates a new ProcessingLocation instance using the specified properties.
|
|
94047
95264
|
* @function create
|
|
@@ -94068,6 +95285,8 @@
|
|
|
94068
95285
|
writer = $Writer.create();
|
|
94069
95286
|
if (message.imageFallbackLocation != null && Object.hasOwnProperty.call(message, "imageFallbackLocation"))
|
|
94070
95287
|
$root.google.privacy.dlp.v2.ProcessingLocation.ImageFallbackLocation.encode(message.imageFallbackLocation, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
95288
|
+
if (message.documentFallbackLocation != null && Object.hasOwnProperty.call(message, "documentFallbackLocation"))
|
|
95289
|
+
$root.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.encode(message.documentFallbackLocation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
94071
95290
|
return writer;
|
|
94072
95291
|
};
|
|
94073
95292
|
|
|
@@ -94108,6 +95327,10 @@
|
|
|
94108
95327
|
message.imageFallbackLocation = $root.google.privacy.dlp.v2.ProcessingLocation.ImageFallbackLocation.decode(reader, reader.uint32());
|
|
94109
95328
|
break;
|
|
94110
95329
|
}
|
|
95330
|
+
case 2: {
|
|
95331
|
+
message.documentFallbackLocation = $root.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.decode(reader, reader.uint32());
|
|
95332
|
+
break;
|
|
95333
|
+
}
|
|
94111
95334
|
default:
|
|
94112
95335
|
reader.skipType(tag & 7);
|
|
94113
95336
|
break;
|
|
@@ -94148,6 +95371,11 @@
|
|
|
94148
95371
|
if (error)
|
|
94149
95372
|
return "imageFallbackLocation." + error;
|
|
94150
95373
|
}
|
|
95374
|
+
if (message.documentFallbackLocation != null && message.hasOwnProperty("documentFallbackLocation")) {
|
|
95375
|
+
var error = $root.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.verify(message.documentFallbackLocation);
|
|
95376
|
+
if (error)
|
|
95377
|
+
return "documentFallbackLocation." + error;
|
|
95378
|
+
}
|
|
94151
95379
|
return null;
|
|
94152
95380
|
};
|
|
94153
95381
|
|
|
@@ -94168,6 +95396,11 @@
|
|
|
94168
95396
|
throw TypeError(".google.privacy.dlp.v2.ProcessingLocation.imageFallbackLocation: object expected");
|
|
94169
95397
|
message.imageFallbackLocation = $root.google.privacy.dlp.v2.ProcessingLocation.ImageFallbackLocation.fromObject(object.imageFallbackLocation);
|
|
94170
95398
|
}
|
|
95399
|
+
if (object.documentFallbackLocation != null) {
|
|
95400
|
+
if (typeof object.documentFallbackLocation !== "object")
|
|
95401
|
+
throw TypeError(".google.privacy.dlp.v2.ProcessingLocation.documentFallbackLocation: object expected");
|
|
95402
|
+
message.documentFallbackLocation = $root.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.fromObject(object.documentFallbackLocation);
|
|
95403
|
+
}
|
|
94171
95404
|
return message;
|
|
94172
95405
|
};
|
|
94173
95406
|
|
|
@@ -94184,10 +95417,14 @@
|
|
|
94184
95417
|
if (!options)
|
|
94185
95418
|
options = {};
|
|
94186
95419
|
var object = {};
|
|
94187
|
-
if (options.defaults)
|
|
95420
|
+
if (options.defaults) {
|
|
94188
95421
|
object.imageFallbackLocation = null;
|
|
95422
|
+
object.documentFallbackLocation = null;
|
|
95423
|
+
}
|
|
94189
95424
|
if (message.imageFallbackLocation != null && message.hasOwnProperty("imageFallbackLocation"))
|
|
94190
95425
|
object.imageFallbackLocation = $root.google.privacy.dlp.v2.ProcessingLocation.ImageFallbackLocation.toObject(message.imageFallbackLocation, options);
|
|
95426
|
+
if (message.documentFallbackLocation != null && message.hasOwnProperty("documentFallbackLocation"))
|
|
95427
|
+
object.documentFallbackLocation = $root.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.toObject(message.documentFallbackLocation, options);
|
|
94191
95428
|
return object;
|
|
94192
95429
|
};
|
|
94193
95430
|
|
|
@@ -94810,6 +96047,245 @@
|
|
|
94810
96047
|
return ImageFallbackLocation;
|
|
94811
96048
|
})();
|
|
94812
96049
|
|
|
96050
|
+
ProcessingLocation.DocumentFallbackLocation = (function() {
|
|
96051
|
+
|
|
96052
|
+
/**
|
|
96053
|
+
* Properties of a DocumentFallbackLocation.
|
|
96054
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation
|
|
96055
|
+
* @interface IDocumentFallbackLocation
|
|
96056
|
+
* @property {google.privacy.dlp.v2.ProcessingLocation.IMultiRegionProcessing|null} [multiRegionProcessing] DocumentFallbackLocation multiRegionProcessing
|
|
96057
|
+
* @property {google.privacy.dlp.v2.ProcessingLocation.IGlobalProcessing|null} [globalProcessing] DocumentFallbackLocation globalProcessing
|
|
96058
|
+
*/
|
|
96059
|
+
|
|
96060
|
+
/**
|
|
96061
|
+
* Constructs a new DocumentFallbackLocation.
|
|
96062
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation
|
|
96063
|
+
* @classdesc Represents a DocumentFallbackLocation.
|
|
96064
|
+
* @implements IDocumentFallbackLocation
|
|
96065
|
+
* @constructor
|
|
96066
|
+
* @param {google.privacy.dlp.v2.ProcessingLocation.IDocumentFallbackLocation=} [properties] Properties to set
|
|
96067
|
+
*/
|
|
96068
|
+
function DocumentFallbackLocation(properties) {
|
|
96069
|
+
if (properties)
|
|
96070
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
96071
|
+
if (properties[keys[i]] != null)
|
|
96072
|
+
this[keys[i]] = properties[keys[i]];
|
|
96073
|
+
}
|
|
96074
|
+
|
|
96075
|
+
/**
|
|
96076
|
+
* DocumentFallbackLocation multiRegionProcessing.
|
|
96077
|
+
* @member {google.privacy.dlp.v2.ProcessingLocation.IMultiRegionProcessing|null|undefined} multiRegionProcessing
|
|
96078
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation
|
|
96079
|
+
* @instance
|
|
96080
|
+
*/
|
|
96081
|
+
DocumentFallbackLocation.prototype.multiRegionProcessing = null;
|
|
96082
|
+
|
|
96083
|
+
/**
|
|
96084
|
+
* DocumentFallbackLocation globalProcessing.
|
|
96085
|
+
* @member {google.privacy.dlp.v2.ProcessingLocation.IGlobalProcessing|null|undefined} globalProcessing
|
|
96086
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation
|
|
96087
|
+
* @instance
|
|
96088
|
+
*/
|
|
96089
|
+
DocumentFallbackLocation.prototype.globalProcessing = null;
|
|
96090
|
+
|
|
96091
|
+
/**
|
|
96092
|
+
* Creates a new DocumentFallbackLocation instance using the specified properties.
|
|
96093
|
+
* @function create
|
|
96094
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation
|
|
96095
|
+
* @static
|
|
96096
|
+
* @param {google.privacy.dlp.v2.ProcessingLocation.IDocumentFallbackLocation=} [properties] Properties to set
|
|
96097
|
+
* @returns {google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation} DocumentFallbackLocation instance
|
|
96098
|
+
*/
|
|
96099
|
+
DocumentFallbackLocation.create = function create(properties) {
|
|
96100
|
+
return new DocumentFallbackLocation(properties);
|
|
96101
|
+
};
|
|
96102
|
+
|
|
96103
|
+
/**
|
|
96104
|
+
* Encodes the specified DocumentFallbackLocation message. Does not implicitly {@link google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.verify|verify} messages.
|
|
96105
|
+
* @function encode
|
|
96106
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation
|
|
96107
|
+
* @static
|
|
96108
|
+
* @param {google.privacy.dlp.v2.ProcessingLocation.IDocumentFallbackLocation} message DocumentFallbackLocation message or plain object to encode
|
|
96109
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
96110
|
+
* @returns {$protobuf.Writer} Writer
|
|
96111
|
+
*/
|
|
96112
|
+
DocumentFallbackLocation.encode = function encode(message, writer) {
|
|
96113
|
+
if (!writer)
|
|
96114
|
+
writer = $Writer.create();
|
|
96115
|
+
if (message.multiRegionProcessing != null && Object.hasOwnProperty.call(message, "multiRegionProcessing"))
|
|
96116
|
+
$root.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing.encode(message.multiRegionProcessing, writer.uint32(/* id 100, wireType 2 =*/802).fork()).ldelim();
|
|
96117
|
+
if (message.globalProcessing != null && Object.hasOwnProperty.call(message, "globalProcessing"))
|
|
96118
|
+
$root.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing.encode(message.globalProcessing, writer.uint32(/* id 200, wireType 2 =*/1602).fork()).ldelim();
|
|
96119
|
+
return writer;
|
|
96120
|
+
};
|
|
96121
|
+
|
|
96122
|
+
/**
|
|
96123
|
+
* Encodes the specified DocumentFallbackLocation message, length delimited. Does not implicitly {@link google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.verify|verify} messages.
|
|
96124
|
+
* @function encodeDelimited
|
|
96125
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation
|
|
96126
|
+
* @static
|
|
96127
|
+
* @param {google.privacy.dlp.v2.ProcessingLocation.IDocumentFallbackLocation} message DocumentFallbackLocation message or plain object to encode
|
|
96128
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
96129
|
+
* @returns {$protobuf.Writer} Writer
|
|
96130
|
+
*/
|
|
96131
|
+
DocumentFallbackLocation.encodeDelimited = function encodeDelimited(message, writer) {
|
|
96132
|
+
return this.encode(message, writer).ldelim();
|
|
96133
|
+
};
|
|
96134
|
+
|
|
96135
|
+
/**
|
|
96136
|
+
* Decodes a DocumentFallbackLocation message from the specified reader or buffer.
|
|
96137
|
+
* @function decode
|
|
96138
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation
|
|
96139
|
+
* @static
|
|
96140
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
96141
|
+
* @param {number} [length] Message length if known beforehand
|
|
96142
|
+
* @returns {google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation} DocumentFallbackLocation
|
|
96143
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
96144
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
96145
|
+
*/
|
|
96146
|
+
DocumentFallbackLocation.decode = function decode(reader, length, error) {
|
|
96147
|
+
if (!(reader instanceof $Reader))
|
|
96148
|
+
reader = $Reader.create(reader);
|
|
96149
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation();
|
|
96150
|
+
while (reader.pos < end) {
|
|
96151
|
+
var tag = reader.uint32();
|
|
96152
|
+
if (tag === error)
|
|
96153
|
+
break;
|
|
96154
|
+
switch (tag >>> 3) {
|
|
96155
|
+
case 100: {
|
|
96156
|
+
message.multiRegionProcessing = $root.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing.decode(reader, reader.uint32());
|
|
96157
|
+
break;
|
|
96158
|
+
}
|
|
96159
|
+
case 200: {
|
|
96160
|
+
message.globalProcessing = $root.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing.decode(reader, reader.uint32());
|
|
96161
|
+
break;
|
|
96162
|
+
}
|
|
96163
|
+
default:
|
|
96164
|
+
reader.skipType(tag & 7);
|
|
96165
|
+
break;
|
|
96166
|
+
}
|
|
96167
|
+
}
|
|
96168
|
+
return message;
|
|
96169
|
+
};
|
|
96170
|
+
|
|
96171
|
+
/**
|
|
96172
|
+
* Decodes a DocumentFallbackLocation message from the specified reader or buffer, length delimited.
|
|
96173
|
+
* @function decodeDelimited
|
|
96174
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation
|
|
96175
|
+
* @static
|
|
96176
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
96177
|
+
* @returns {google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation} DocumentFallbackLocation
|
|
96178
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
96179
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
96180
|
+
*/
|
|
96181
|
+
DocumentFallbackLocation.decodeDelimited = function decodeDelimited(reader) {
|
|
96182
|
+
if (!(reader instanceof $Reader))
|
|
96183
|
+
reader = new $Reader(reader);
|
|
96184
|
+
return this.decode(reader, reader.uint32());
|
|
96185
|
+
};
|
|
96186
|
+
|
|
96187
|
+
/**
|
|
96188
|
+
* Verifies a DocumentFallbackLocation message.
|
|
96189
|
+
* @function verify
|
|
96190
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation
|
|
96191
|
+
* @static
|
|
96192
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
96193
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
96194
|
+
*/
|
|
96195
|
+
DocumentFallbackLocation.verify = function verify(message) {
|
|
96196
|
+
if (typeof message !== "object" || message === null)
|
|
96197
|
+
return "object expected";
|
|
96198
|
+
if (message.multiRegionProcessing != null && message.hasOwnProperty("multiRegionProcessing")) {
|
|
96199
|
+
var error = $root.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing.verify(message.multiRegionProcessing);
|
|
96200
|
+
if (error)
|
|
96201
|
+
return "multiRegionProcessing." + error;
|
|
96202
|
+
}
|
|
96203
|
+
if (message.globalProcessing != null && message.hasOwnProperty("globalProcessing")) {
|
|
96204
|
+
var error = $root.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing.verify(message.globalProcessing);
|
|
96205
|
+
if (error)
|
|
96206
|
+
return "globalProcessing." + error;
|
|
96207
|
+
}
|
|
96208
|
+
return null;
|
|
96209
|
+
};
|
|
96210
|
+
|
|
96211
|
+
/**
|
|
96212
|
+
* Creates a DocumentFallbackLocation message from a plain object. Also converts values to their respective internal types.
|
|
96213
|
+
* @function fromObject
|
|
96214
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation
|
|
96215
|
+
* @static
|
|
96216
|
+
* @param {Object.<string,*>} object Plain object
|
|
96217
|
+
* @returns {google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation} DocumentFallbackLocation
|
|
96218
|
+
*/
|
|
96219
|
+
DocumentFallbackLocation.fromObject = function fromObject(object) {
|
|
96220
|
+
if (object instanceof $root.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation)
|
|
96221
|
+
return object;
|
|
96222
|
+
var message = new $root.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation();
|
|
96223
|
+
if (object.multiRegionProcessing != null) {
|
|
96224
|
+
if (typeof object.multiRegionProcessing !== "object")
|
|
96225
|
+
throw TypeError(".google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.multiRegionProcessing: object expected");
|
|
96226
|
+
message.multiRegionProcessing = $root.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing.fromObject(object.multiRegionProcessing);
|
|
96227
|
+
}
|
|
96228
|
+
if (object.globalProcessing != null) {
|
|
96229
|
+
if (typeof object.globalProcessing !== "object")
|
|
96230
|
+
throw TypeError(".google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.globalProcessing: object expected");
|
|
96231
|
+
message.globalProcessing = $root.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing.fromObject(object.globalProcessing);
|
|
96232
|
+
}
|
|
96233
|
+
return message;
|
|
96234
|
+
};
|
|
96235
|
+
|
|
96236
|
+
/**
|
|
96237
|
+
* Creates a plain object from a DocumentFallbackLocation message. Also converts values to other types if specified.
|
|
96238
|
+
* @function toObject
|
|
96239
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation
|
|
96240
|
+
* @static
|
|
96241
|
+
* @param {google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation} message DocumentFallbackLocation
|
|
96242
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
96243
|
+
* @returns {Object.<string,*>} Plain object
|
|
96244
|
+
*/
|
|
96245
|
+
DocumentFallbackLocation.toObject = function toObject(message, options) {
|
|
96246
|
+
if (!options)
|
|
96247
|
+
options = {};
|
|
96248
|
+
var object = {};
|
|
96249
|
+
if (options.defaults) {
|
|
96250
|
+
object.multiRegionProcessing = null;
|
|
96251
|
+
object.globalProcessing = null;
|
|
96252
|
+
}
|
|
96253
|
+
if (message.multiRegionProcessing != null && message.hasOwnProperty("multiRegionProcessing"))
|
|
96254
|
+
object.multiRegionProcessing = $root.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing.toObject(message.multiRegionProcessing, options);
|
|
96255
|
+
if (message.globalProcessing != null && message.hasOwnProperty("globalProcessing"))
|
|
96256
|
+
object.globalProcessing = $root.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing.toObject(message.globalProcessing, options);
|
|
96257
|
+
return object;
|
|
96258
|
+
};
|
|
96259
|
+
|
|
96260
|
+
/**
|
|
96261
|
+
* Converts this DocumentFallbackLocation to JSON.
|
|
96262
|
+
* @function toJSON
|
|
96263
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation
|
|
96264
|
+
* @instance
|
|
96265
|
+
* @returns {Object.<string,*>} JSON object
|
|
96266
|
+
*/
|
|
96267
|
+
DocumentFallbackLocation.prototype.toJSON = function toJSON() {
|
|
96268
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
96269
|
+
};
|
|
96270
|
+
|
|
96271
|
+
/**
|
|
96272
|
+
* Gets the default type url for DocumentFallbackLocation
|
|
96273
|
+
* @function getTypeUrl
|
|
96274
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation
|
|
96275
|
+
* @static
|
|
96276
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
96277
|
+
* @returns {string} The default type url
|
|
96278
|
+
*/
|
|
96279
|
+
DocumentFallbackLocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
96280
|
+
if (typeUrlPrefix === undefined) {
|
|
96281
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
96282
|
+
}
|
|
96283
|
+
return typeUrlPrefix + "/google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation";
|
|
96284
|
+
};
|
|
96285
|
+
|
|
96286
|
+
return DocumentFallbackLocation;
|
|
96287
|
+
})();
|
|
96288
|
+
|
|
94813
96289
|
return ProcessingLocation;
|
|
94814
96290
|
})();
|
|
94815
96291
|
|
|
@@ -95039,6 +96515,367 @@
|
|
|
95039
96515
|
return SaveToGcsFindingsOutput;
|
|
95040
96516
|
})();
|
|
95041
96517
|
|
|
96518
|
+
v2.Domain = (function() {
|
|
96519
|
+
|
|
96520
|
+
/**
|
|
96521
|
+
* Properties of a Domain.
|
|
96522
|
+
* @memberof google.privacy.dlp.v2
|
|
96523
|
+
* @interface IDomain
|
|
96524
|
+
* @property {google.privacy.dlp.v2.Domain.Category|null} [category] Domain category
|
|
96525
|
+
* @property {Array.<google.privacy.dlp.v2.Domain.Signal>|null} [signals] Domain signals
|
|
96526
|
+
*/
|
|
96527
|
+
|
|
96528
|
+
/**
|
|
96529
|
+
* Constructs a new Domain.
|
|
96530
|
+
* @memberof google.privacy.dlp.v2
|
|
96531
|
+
* @classdesc Represents a Domain.
|
|
96532
|
+
* @implements IDomain
|
|
96533
|
+
* @constructor
|
|
96534
|
+
* @param {google.privacy.dlp.v2.IDomain=} [properties] Properties to set
|
|
96535
|
+
*/
|
|
96536
|
+
function Domain(properties) {
|
|
96537
|
+
this.signals = [];
|
|
96538
|
+
if (properties)
|
|
96539
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
96540
|
+
if (properties[keys[i]] != null)
|
|
96541
|
+
this[keys[i]] = properties[keys[i]];
|
|
96542
|
+
}
|
|
96543
|
+
|
|
96544
|
+
/**
|
|
96545
|
+
* Domain category.
|
|
96546
|
+
* @member {google.privacy.dlp.v2.Domain.Category} category
|
|
96547
|
+
* @memberof google.privacy.dlp.v2.Domain
|
|
96548
|
+
* @instance
|
|
96549
|
+
*/
|
|
96550
|
+
Domain.prototype.category = 0;
|
|
96551
|
+
|
|
96552
|
+
/**
|
|
96553
|
+
* Domain signals.
|
|
96554
|
+
* @member {Array.<google.privacy.dlp.v2.Domain.Signal>} signals
|
|
96555
|
+
* @memberof google.privacy.dlp.v2.Domain
|
|
96556
|
+
* @instance
|
|
96557
|
+
*/
|
|
96558
|
+
Domain.prototype.signals = $util.emptyArray;
|
|
96559
|
+
|
|
96560
|
+
/**
|
|
96561
|
+
* Creates a new Domain instance using the specified properties.
|
|
96562
|
+
* @function create
|
|
96563
|
+
* @memberof google.privacy.dlp.v2.Domain
|
|
96564
|
+
* @static
|
|
96565
|
+
* @param {google.privacy.dlp.v2.IDomain=} [properties] Properties to set
|
|
96566
|
+
* @returns {google.privacy.dlp.v2.Domain} Domain instance
|
|
96567
|
+
*/
|
|
96568
|
+
Domain.create = function create(properties) {
|
|
96569
|
+
return new Domain(properties);
|
|
96570
|
+
};
|
|
96571
|
+
|
|
96572
|
+
/**
|
|
96573
|
+
* Encodes the specified Domain message. Does not implicitly {@link google.privacy.dlp.v2.Domain.verify|verify} messages.
|
|
96574
|
+
* @function encode
|
|
96575
|
+
* @memberof google.privacy.dlp.v2.Domain
|
|
96576
|
+
* @static
|
|
96577
|
+
* @param {google.privacy.dlp.v2.IDomain} message Domain message or plain object to encode
|
|
96578
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
96579
|
+
* @returns {$protobuf.Writer} Writer
|
|
96580
|
+
*/
|
|
96581
|
+
Domain.encode = function encode(message, writer) {
|
|
96582
|
+
if (!writer)
|
|
96583
|
+
writer = $Writer.create();
|
|
96584
|
+
if (message.category != null && Object.hasOwnProperty.call(message, "category"))
|
|
96585
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.category);
|
|
96586
|
+
if (message.signals != null && message.signals.length) {
|
|
96587
|
+
writer.uint32(/* id 2, wireType 2 =*/18).fork();
|
|
96588
|
+
for (var i = 0; i < message.signals.length; ++i)
|
|
96589
|
+
writer.int32(message.signals[i]);
|
|
96590
|
+
writer.ldelim();
|
|
96591
|
+
}
|
|
96592
|
+
return writer;
|
|
96593
|
+
};
|
|
96594
|
+
|
|
96595
|
+
/**
|
|
96596
|
+
* Encodes the specified Domain message, length delimited. Does not implicitly {@link google.privacy.dlp.v2.Domain.verify|verify} messages.
|
|
96597
|
+
* @function encodeDelimited
|
|
96598
|
+
* @memberof google.privacy.dlp.v2.Domain
|
|
96599
|
+
* @static
|
|
96600
|
+
* @param {google.privacy.dlp.v2.IDomain} message Domain message or plain object to encode
|
|
96601
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
96602
|
+
* @returns {$protobuf.Writer} Writer
|
|
96603
|
+
*/
|
|
96604
|
+
Domain.encodeDelimited = function encodeDelimited(message, writer) {
|
|
96605
|
+
return this.encode(message, writer).ldelim();
|
|
96606
|
+
};
|
|
96607
|
+
|
|
96608
|
+
/**
|
|
96609
|
+
* Decodes a Domain message from the specified reader or buffer.
|
|
96610
|
+
* @function decode
|
|
96611
|
+
* @memberof google.privacy.dlp.v2.Domain
|
|
96612
|
+
* @static
|
|
96613
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
96614
|
+
* @param {number} [length] Message length if known beforehand
|
|
96615
|
+
* @returns {google.privacy.dlp.v2.Domain} Domain
|
|
96616
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
96617
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
96618
|
+
*/
|
|
96619
|
+
Domain.decode = function decode(reader, length, error) {
|
|
96620
|
+
if (!(reader instanceof $Reader))
|
|
96621
|
+
reader = $Reader.create(reader);
|
|
96622
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.privacy.dlp.v2.Domain();
|
|
96623
|
+
while (reader.pos < end) {
|
|
96624
|
+
var tag = reader.uint32();
|
|
96625
|
+
if (tag === error)
|
|
96626
|
+
break;
|
|
96627
|
+
switch (tag >>> 3) {
|
|
96628
|
+
case 1: {
|
|
96629
|
+
message.category = reader.int32();
|
|
96630
|
+
break;
|
|
96631
|
+
}
|
|
96632
|
+
case 2: {
|
|
96633
|
+
if (!(message.signals && message.signals.length))
|
|
96634
|
+
message.signals = [];
|
|
96635
|
+
if ((tag & 7) === 2) {
|
|
96636
|
+
var end2 = reader.uint32() + reader.pos;
|
|
96637
|
+
while (reader.pos < end2)
|
|
96638
|
+
message.signals.push(reader.int32());
|
|
96639
|
+
} else
|
|
96640
|
+
message.signals.push(reader.int32());
|
|
96641
|
+
break;
|
|
96642
|
+
}
|
|
96643
|
+
default:
|
|
96644
|
+
reader.skipType(tag & 7);
|
|
96645
|
+
break;
|
|
96646
|
+
}
|
|
96647
|
+
}
|
|
96648
|
+
return message;
|
|
96649
|
+
};
|
|
96650
|
+
|
|
96651
|
+
/**
|
|
96652
|
+
* Decodes a Domain message from the specified reader or buffer, length delimited.
|
|
96653
|
+
* @function decodeDelimited
|
|
96654
|
+
* @memberof google.privacy.dlp.v2.Domain
|
|
96655
|
+
* @static
|
|
96656
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
96657
|
+
* @returns {google.privacy.dlp.v2.Domain} Domain
|
|
96658
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
96659
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
96660
|
+
*/
|
|
96661
|
+
Domain.decodeDelimited = function decodeDelimited(reader) {
|
|
96662
|
+
if (!(reader instanceof $Reader))
|
|
96663
|
+
reader = new $Reader(reader);
|
|
96664
|
+
return this.decode(reader, reader.uint32());
|
|
96665
|
+
};
|
|
96666
|
+
|
|
96667
|
+
/**
|
|
96668
|
+
* Verifies a Domain message.
|
|
96669
|
+
* @function verify
|
|
96670
|
+
* @memberof google.privacy.dlp.v2.Domain
|
|
96671
|
+
* @static
|
|
96672
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
96673
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
96674
|
+
*/
|
|
96675
|
+
Domain.verify = function verify(message) {
|
|
96676
|
+
if (typeof message !== "object" || message === null)
|
|
96677
|
+
return "object expected";
|
|
96678
|
+
if (message.category != null && message.hasOwnProperty("category"))
|
|
96679
|
+
switch (message.category) {
|
|
96680
|
+
default:
|
|
96681
|
+
return "category: enum value expected";
|
|
96682
|
+
case 0:
|
|
96683
|
+
case 1:
|
|
96684
|
+
case 2:
|
|
96685
|
+
break;
|
|
96686
|
+
}
|
|
96687
|
+
if (message.signals != null && message.hasOwnProperty("signals")) {
|
|
96688
|
+
if (!Array.isArray(message.signals))
|
|
96689
|
+
return "signals: array expected";
|
|
96690
|
+
for (var i = 0; i < message.signals.length; ++i)
|
|
96691
|
+
switch (message.signals[i]) {
|
|
96692
|
+
default:
|
|
96693
|
+
return "signals: enum value[] expected";
|
|
96694
|
+
case 0:
|
|
96695
|
+
case 1:
|
|
96696
|
+
case 2:
|
|
96697
|
+
case 3:
|
|
96698
|
+
case 4:
|
|
96699
|
+
case 5:
|
|
96700
|
+
case 6:
|
|
96701
|
+
break;
|
|
96702
|
+
}
|
|
96703
|
+
}
|
|
96704
|
+
return null;
|
|
96705
|
+
};
|
|
96706
|
+
|
|
96707
|
+
/**
|
|
96708
|
+
* Creates a Domain message from a plain object. Also converts values to their respective internal types.
|
|
96709
|
+
* @function fromObject
|
|
96710
|
+
* @memberof google.privacy.dlp.v2.Domain
|
|
96711
|
+
* @static
|
|
96712
|
+
* @param {Object.<string,*>} object Plain object
|
|
96713
|
+
* @returns {google.privacy.dlp.v2.Domain} Domain
|
|
96714
|
+
*/
|
|
96715
|
+
Domain.fromObject = function fromObject(object) {
|
|
96716
|
+
if (object instanceof $root.google.privacy.dlp.v2.Domain)
|
|
96717
|
+
return object;
|
|
96718
|
+
var message = new $root.google.privacy.dlp.v2.Domain();
|
|
96719
|
+
switch (object.category) {
|
|
96720
|
+
default:
|
|
96721
|
+
if (typeof object.category === "number") {
|
|
96722
|
+
message.category = object.category;
|
|
96723
|
+
break;
|
|
96724
|
+
}
|
|
96725
|
+
break;
|
|
96726
|
+
case "CATEGORY_UNSPECIFIED":
|
|
96727
|
+
case 0:
|
|
96728
|
+
message.category = 0;
|
|
96729
|
+
break;
|
|
96730
|
+
case "AI":
|
|
96731
|
+
case 1:
|
|
96732
|
+
message.category = 1;
|
|
96733
|
+
break;
|
|
96734
|
+
case "CODE":
|
|
96735
|
+
case 2:
|
|
96736
|
+
message.category = 2;
|
|
96737
|
+
break;
|
|
96738
|
+
}
|
|
96739
|
+
if (object.signals) {
|
|
96740
|
+
if (!Array.isArray(object.signals))
|
|
96741
|
+
throw TypeError(".google.privacy.dlp.v2.Domain.signals: array expected");
|
|
96742
|
+
message.signals = [];
|
|
96743
|
+
for (var i = 0; i < object.signals.length; ++i)
|
|
96744
|
+
switch (object.signals[i]) {
|
|
96745
|
+
default:
|
|
96746
|
+
if (typeof object.signals[i] === "number") {
|
|
96747
|
+
message.signals[i] = object.signals[i];
|
|
96748
|
+
break;
|
|
96749
|
+
}
|
|
96750
|
+
case "SIGNAL_UNSPECIFIED":
|
|
96751
|
+
case 0:
|
|
96752
|
+
message.signals[i] = 0;
|
|
96753
|
+
break;
|
|
96754
|
+
case "MODEL":
|
|
96755
|
+
case 1:
|
|
96756
|
+
message.signals[i] = 1;
|
|
96757
|
+
break;
|
|
96758
|
+
case "TEXT_EMBEDDING":
|
|
96759
|
+
case 2:
|
|
96760
|
+
message.signals[i] = 2;
|
|
96761
|
+
break;
|
|
96762
|
+
case "VERTEX_PLUGIN":
|
|
96763
|
+
case 3:
|
|
96764
|
+
message.signals[i] = 3;
|
|
96765
|
+
break;
|
|
96766
|
+
case "VECTOR_PLUGIN":
|
|
96767
|
+
case 4:
|
|
96768
|
+
message.signals[i] = 4;
|
|
96769
|
+
break;
|
|
96770
|
+
case "SOURCE_CODE":
|
|
96771
|
+
case 5:
|
|
96772
|
+
message.signals[i] = 5;
|
|
96773
|
+
break;
|
|
96774
|
+
case "SERVICE":
|
|
96775
|
+
case 6:
|
|
96776
|
+
message.signals[i] = 6;
|
|
96777
|
+
break;
|
|
96778
|
+
}
|
|
96779
|
+
}
|
|
96780
|
+
return message;
|
|
96781
|
+
};
|
|
96782
|
+
|
|
96783
|
+
/**
|
|
96784
|
+
* Creates a plain object from a Domain message. Also converts values to other types if specified.
|
|
96785
|
+
* @function toObject
|
|
96786
|
+
* @memberof google.privacy.dlp.v2.Domain
|
|
96787
|
+
* @static
|
|
96788
|
+
* @param {google.privacy.dlp.v2.Domain} message Domain
|
|
96789
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
96790
|
+
* @returns {Object.<string,*>} Plain object
|
|
96791
|
+
*/
|
|
96792
|
+
Domain.toObject = function toObject(message, options) {
|
|
96793
|
+
if (!options)
|
|
96794
|
+
options = {};
|
|
96795
|
+
var object = {};
|
|
96796
|
+
if (options.arrays || options.defaults)
|
|
96797
|
+
object.signals = [];
|
|
96798
|
+
if (options.defaults)
|
|
96799
|
+
object.category = options.enums === String ? "CATEGORY_UNSPECIFIED" : 0;
|
|
96800
|
+
if (message.category != null && message.hasOwnProperty("category"))
|
|
96801
|
+
object.category = options.enums === String ? $root.google.privacy.dlp.v2.Domain.Category[message.category] === undefined ? message.category : $root.google.privacy.dlp.v2.Domain.Category[message.category] : message.category;
|
|
96802
|
+
if (message.signals && message.signals.length) {
|
|
96803
|
+
object.signals = [];
|
|
96804
|
+
for (var j = 0; j < message.signals.length; ++j)
|
|
96805
|
+
object.signals[j] = options.enums === String ? $root.google.privacy.dlp.v2.Domain.Signal[message.signals[j]] === undefined ? message.signals[j] : $root.google.privacy.dlp.v2.Domain.Signal[message.signals[j]] : message.signals[j];
|
|
96806
|
+
}
|
|
96807
|
+
return object;
|
|
96808
|
+
};
|
|
96809
|
+
|
|
96810
|
+
/**
|
|
96811
|
+
* Converts this Domain to JSON.
|
|
96812
|
+
* @function toJSON
|
|
96813
|
+
* @memberof google.privacy.dlp.v2.Domain
|
|
96814
|
+
* @instance
|
|
96815
|
+
* @returns {Object.<string,*>} JSON object
|
|
96816
|
+
*/
|
|
96817
|
+
Domain.prototype.toJSON = function toJSON() {
|
|
96818
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
96819
|
+
};
|
|
96820
|
+
|
|
96821
|
+
/**
|
|
96822
|
+
* Gets the default type url for Domain
|
|
96823
|
+
* @function getTypeUrl
|
|
96824
|
+
* @memberof google.privacy.dlp.v2.Domain
|
|
96825
|
+
* @static
|
|
96826
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
96827
|
+
* @returns {string} The default type url
|
|
96828
|
+
*/
|
|
96829
|
+
Domain.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
96830
|
+
if (typeUrlPrefix === undefined) {
|
|
96831
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
96832
|
+
}
|
|
96833
|
+
return typeUrlPrefix + "/google.privacy.dlp.v2.Domain";
|
|
96834
|
+
};
|
|
96835
|
+
|
|
96836
|
+
/**
|
|
96837
|
+
* Category enum.
|
|
96838
|
+
* @name google.privacy.dlp.v2.Domain.Category
|
|
96839
|
+
* @enum {number}
|
|
96840
|
+
* @property {number} CATEGORY_UNSPECIFIED=0 CATEGORY_UNSPECIFIED value
|
|
96841
|
+
* @property {number} AI=1 AI value
|
|
96842
|
+
* @property {number} CODE=2 CODE value
|
|
96843
|
+
*/
|
|
96844
|
+
Domain.Category = (function() {
|
|
96845
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
96846
|
+
values[valuesById[0] = "CATEGORY_UNSPECIFIED"] = 0;
|
|
96847
|
+
values[valuesById[1] = "AI"] = 1;
|
|
96848
|
+
values[valuesById[2] = "CODE"] = 2;
|
|
96849
|
+
return values;
|
|
96850
|
+
})();
|
|
96851
|
+
|
|
96852
|
+
/**
|
|
96853
|
+
* Signal enum.
|
|
96854
|
+
* @name google.privacy.dlp.v2.Domain.Signal
|
|
96855
|
+
* @enum {number}
|
|
96856
|
+
* @property {number} SIGNAL_UNSPECIFIED=0 SIGNAL_UNSPECIFIED value
|
|
96857
|
+
* @property {number} MODEL=1 MODEL value
|
|
96858
|
+
* @property {number} TEXT_EMBEDDING=2 TEXT_EMBEDDING value
|
|
96859
|
+
* @property {number} VERTEX_PLUGIN=3 VERTEX_PLUGIN value
|
|
96860
|
+
* @property {number} VECTOR_PLUGIN=4 VECTOR_PLUGIN value
|
|
96861
|
+
* @property {number} SOURCE_CODE=5 SOURCE_CODE value
|
|
96862
|
+
* @property {number} SERVICE=6 SERVICE value
|
|
96863
|
+
*/
|
|
96864
|
+
Domain.Signal = (function() {
|
|
96865
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
96866
|
+
values[valuesById[0] = "SIGNAL_UNSPECIFIED"] = 0;
|
|
96867
|
+
values[valuesById[1] = "MODEL"] = 1;
|
|
96868
|
+
values[valuesById[2] = "TEXT_EMBEDDING"] = 2;
|
|
96869
|
+
values[valuesById[3] = "VERTEX_PLUGIN"] = 3;
|
|
96870
|
+
values[valuesById[4] = "VECTOR_PLUGIN"] = 4;
|
|
96871
|
+
values[valuesById[5] = "SOURCE_CODE"] = 5;
|
|
96872
|
+
values[valuesById[6] = "SERVICE"] = 6;
|
|
96873
|
+
return values;
|
|
96874
|
+
})();
|
|
96875
|
+
|
|
96876
|
+
return Domain;
|
|
96877
|
+
})();
|
|
96878
|
+
|
|
95042
96879
|
v2.InfoType = (function() {
|
|
95043
96880
|
|
|
95044
96881
|
/**
|