@google-cloud/dlp 6.3.0 → 6.4.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/build/protos/google/privacy/dlp/v2/dlp.proto +127 -19
- package/build/protos/protos.d.ts +883 -4
- package/build/protos/protos.js +2732 -22
- package/build/protos/protos.json +279 -22
- package/build/src/v2/dlp_service_client.d.ts +6 -0
- package/build/src/v2/dlp_service_client.js +4 -0
- package/package.json +1 -1
package/build/protos/protos.js
CHANGED
|
@@ -15569,6 +15569,291 @@
|
|
|
15569
15569
|
return DeidentifyDataSourceDetails;
|
|
15570
15570
|
})();
|
|
15571
15571
|
|
|
15572
|
+
v2.LocationSupport = (function() {
|
|
15573
|
+
|
|
15574
|
+
/**
|
|
15575
|
+
* Properties of a LocationSupport.
|
|
15576
|
+
* @memberof google.privacy.dlp.v2
|
|
15577
|
+
* @interface ILocationSupport
|
|
15578
|
+
* @property {google.privacy.dlp.v2.LocationSupport.RegionalizationScope|null} [regionalizationScope] LocationSupport regionalizationScope
|
|
15579
|
+
* @property {Array.<string>|null} [locations] LocationSupport locations
|
|
15580
|
+
*/
|
|
15581
|
+
|
|
15582
|
+
/**
|
|
15583
|
+
* Constructs a new LocationSupport.
|
|
15584
|
+
* @memberof google.privacy.dlp.v2
|
|
15585
|
+
* @classdesc Represents a LocationSupport.
|
|
15586
|
+
* @implements ILocationSupport
|
|
15587
|
+
* @constructor
|
|
15588
|
+
* @param {google.privacy.dlp.v2.ILocationSupport=} [properties] Properties to set
|
|
15589
|
+
*/
|
|
15590
|
+
function LocationSupport(properties) {
|
|
15591
|
+
this.locations = [];
|
|
15592
|
+
if (properties)
|
|
15593
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15594
|
+
if (properties[keys[i]] != null)
|
|
15595
|
+
this[keys[i]] = properties[keys[i]];
|
|
15596
|
+
}
|
|
15597
|
+
|
|
15598
|
+
/**
|
|
15599
|
+
* LocationSupport regionalizationScope.
|
|
15600
|
+
* @member {google.privacy.dlp.v2.LocationSupport.RegionalizationScope} regionalizationScope
|
|
15601
|
+
* @memberof google.privacy.dlp.v2.LocationSupport
|
|
15602
|
+
* @instance
|
|
15603
|
+
*/
|
|
15604
|
+
LocationSupport.prototype.regionalizationScope = 0;
|
|
15605
|
+
|
|
15606
|
+
/**
|
|
15607
|
+
* LocationSupport locations.
|
|
15608
|
+
* @member {Array.<string>} locations
|
|
15609
|
+
* @memberof google.privacy.dlp.v2.LocationSupport
|
|
15610
|
+
* @instance
|
|
15611
|
+
*/
|
|
15612
|
+
LocationSupport.prototype.locations = $util.emptyArray;
|
|
15613
|
+
|
|
15614
|
+
/**
|
|
15615
|
+
* Creates a new LocationSupport instance using the specified properties.
|
|
15616
|
+
* @function create
|
|
15617
|
+
* @memberof google.privacy.dlp.v2.LocationSupport
|
|
15618
|
+
* @static
|
|
15619
|
+
* @param {google.privacy.dlp.v2.ILocationSupport=} [properties] Properties to set
|
|
15620
|
+
* @returns {google.privacy.dlp.v2.LocationSupport} LocationSupport instance
|
|
15621
|
+
*/
|
|
15622
|
+
LocationSupport.create = function create(properties) {
|
|
15623
|
+
return new LocationSupport(properties);
|
|
15624
|
+
};
|
|
15625
|
+
|
|
15626
|
+
/**
|
|
15627
|
+
* Encodes the specified LocationSupport message. Does not implicitly {@link google.privacy.dlp.v2.LocationSupport.verify|verify} messages.
|
|
15628
|
+
* @function encode
|
|
15629
|
+
* @memberof google.privacy.dlp.v2.LocationSupport
|
|
15630
|
+
* @static
|
|
15631
|
+
* @param {google.privacy.dlp.v2.ILocationSupport} message LocationSupport message or plain object to encode
|
|
15632
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15633
|
+
* @returns {$protobuf.Writer} Writer
|
|
15634
|
+
*/
|
|
15635
|
+
LocationSupport.encode = function encode(message, writer) {
|
|
15636
|
+
if (!writer)
|
|
15637
|
+
writer = $Writer.create();
|
|
15638
|
+
if (message.regionalizationScope != null && Object.hasOwnProperty.call(message, "regionalizationScope"))
|
|
15639
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.regionalizationScope);
|
|
15640
|
+
if (message.locations != null && message.locations.length)
|
|
15641
|
+
for (var i = 0; i < message.locations.length; ++i)
|
|
15642
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.locations[i]);
|
|
15643
|
+
return writer;
|
|
15644
|
+
};
|
|
15645
|
+
|
|
15646
|
+
/**
|
|
15647
|
+
* Encodes the specified LocationSupport message, length delimited. Does not implicitly {@link google.privacy.dlp.v2.LocationSupport.verify|verify} messages.
|
|
15648
|
+
* @function encodeDelimited
|
|
15649
|
+
* @memberof google.privacy.dlp.v2.LocationSupport
|
|
15650
|
+
* @static
|
|
15651
|
+
* @param {google.privacy.dlp.v2.ILocationSupport} message LocationSupport message or plain object to encode
|
|
15652
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15653
|
+
* @returns {$protobuf.Writer} Writer
|
|
15654
|
+
*/
|
|
15655
|
+
LocationSupport.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15656
|
+
return this.encode(message, writer).ldelim();
|
|
15657
|
+
};
|
|
15658
|
+
|
|
15659
|
+
/**
|
|
15660
|
+
* Decodes a LocationSupport message from the specified reader or buffer.
|
|
15661
|
+
* @function decode
|
|
15662
|
+
* @memberof google.privacy.dlp.v2.LocationSupport
|
|
15663
|
+
* @static
|
|
15664
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15665
|
+
* @param {number} [length] Message length if known beforehand
|
|
15666
|
+
* @returns {google.privacy.dlp.v2.LocationSupport} LocationSupport
|
|
15667
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15668
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15669
|
+
*/
|
|
15670
|
+
LocationSupport.decode = function decode(reader, length, error) {
|
|
15671
|
+
if (!(reader instanceof $Reader))
|
|
15672
|
+
reader = $Reader.create(reader);
|
|
15673
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.privacy.dlp.v2.LocationSupport();
|
|
15674
|
+
while (reader.pos < end) {
|
|
15675
|
+
var tag = reader.uint32();
|
|
15676
|
+
if (tag === error)
|
|
15677
|
+
break;
|
|
15678
|
+
switch (tag >>> 3) {
|
|
15679
|
+
case 1: {
|
|
15680
|
+
message.regionalizationScope = reader.int32();
|
|
15681
|
+
break;
|
|
15682
|
+
}
|
|
15683
|
+
case 2: {
|
|
15684
|
+
if (!(message.locations && message.locations.length))
|
|
15685
|
+
message.locations = [];
|
|
15686
|
+
message.locations.push(reader.string());
|
|
15687
|
+
break;
|
|
15688
|
+
}
|
|
15689
|
+
default:
|
|
15690
|
+
reader.skipType(tag & 7);
|
|
15691
|
+
break;
|
|
15692
|
+
}
|
|
15693
|
+
}
|
|
15694
|
+
return message;
|
|
15695
|
+
};
|
|
15696
|
+
|
|
15697
|
+
/**
|
|
15698
|
+
* Decodes a LocationSupport message from the specified reader or buffer, length delimited.
|
|
15699
|
+
* @function decodeDelimited
|
|
15700
|
+
* @memberof google.privacy.dlp.v2.LocationSupport
|
|
15701
|
+
* @static
|
|
15702
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15703
|
+
* @returns {google.privacy.dlp.v2.LocationSupport} LocationSupport
|
|
15704
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15705
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15706
|
+
*/
|
|
15707
|
+
LocationSupport.decodeDelimited = function decodeDelimited(reader) {
|
|
15708
|
+
if (!(reader instanceof $Reader))
|
|
15709
|
+
reader = new $Reader(reader);
|
|
15710
|
+
return this.decode(reader, reader.uint32());
|
|
15711
|
+
};
|
|
15712
|
+
|
|
15713
|
+
/**
|
|
15714
|
+
* Verifies a LocationSupport message.
|
|
15715
|
+
* @function verify
|
|
15716
|
+
* @memberof google.privacy.dlp.v2.LocationSupport
|
|
15717
|
+
* @static
|
|
15718
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
15719
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
15720
|
+
*/
|
|
15721
|
+
LocationSupport.verify = function verify(message) {
|
|
15722
|
+
if (typeof message !== "object" || message === null)
|
|
15723
|
+
return "object expected";
|
|
15724
|
+
if (message.regionalizationScope != null && message.hasOwnProperty("regionalizationScope"))
|
|
15725
|
+
switch (message.regionalizationScope) {
|
|
15726
|
+
default:
|
|
15727
|
+
return "regionalizationScope: enum value expected";
|
|
15728
|
+
case 0:
|
|
15729
|
+
case 1:
|
|
15730
|
+
case 2:
|
|
15731
|
+
break;
|
|
15732
|
+
}
|
|
15733
|
+
if (message.locations != null && message.hasOwnProperty("locations")) {
|
|
15734
|
+
if (!Array.isArray(message.locations))
|
|
15735
|
+
return "locations: array expected";
|
|
15736
|
+
for (var i = 0; i < message.locations.length; ++i)
|
|
15737
|
+
if (!$util.isString(message.locations[i]))
|
|
15738
|
+
return "locations: string[] expected";
|
|
15739
|
+
}
|
|
15740
|
+
return null;
|
|
15741
|
+
};
|
|
15742
|
+
|
|
15743
|
+
/**
|
|
15744
|
+
* Creates a LocationSupport message from a plain object. Also converts values to their respective internal types.
|
|
15745
|
+
* @function fromObject
|
|
15746
|
+
* @memberof google.privacy.dlp.v2.LocationSupport
|
|
15747
|
+
* @static
|
|
15748
|
+
* @param {Object.<string,*>} object Plain object
|
|
15749
|
+
* @returns {google.privacy.dlp.v2.LocationSupport} LocationSupport
|
|
15750
|
+
*/
|
|
15751
|
+
LocationSupport.fromObject = function fromObject(object) {
|
|
15752
|
+
if (object instanceof $root.google.privacy.dlp.v2.LocationSupport)
|
|
15753
|
+
return object;
|
|
15754
|
+
var message = new $root.google.privacy.dlp.v2.LocationSupport();
|
|
15755
|
+
switch (object.regionalizationScope) {
|
|
15756
|
+
default:
|
|
15757
|
+
if (typeof object.regionalizationScope === "number") {
|
|
15758
|
+
message.regionalizationScope = object.regionalizationScope;
|
|
15759
|
+
break;
|
|
15760
|
+
}
|
|
15761
|
+
break;
|
|
15762
|
+
case "REGIONALIZATION_SCOPE_UNSPECIFIED":
|
|
15763
|
+
case 0:
|
|
15764
|
+
message.regionalizationScope = 0;
|
|
15765
|
+
break;
|
|
15766
|
+
case "REGIONAL":
|
|
15767
|
+
case 1:
|
|
15768
|
+
message.regionalizationScope = 1;
|
|
15769
|
+
break;
|
|
15770
|
+
case "ANY_LOCATION":
|
|
15771
|
+
case 2:
|
|
15772
|
+
message.regionalizationScope = 2;
|
|
15773
|
+
break;
|
|
15774
|
+
}
|
|
15775
|
+
if (object.locations) {
|
|
15776
|
+
if (!Array.isArray(object.locations))
|
|
15777
|
+
throw TypeError(".google.privacy.dlp.v2.LocationSupport.locations: array expected");
|
|
15778
|
+
message.locations = [];
|
|
15779
|
+
for (var i = 0; i < object.locations.length; ++i)
|
|
15780
|
+
message.locations[i] = String(object.locations[i]);
|
|
15781
|
+
}
|
|
15782
|
+
return message;
|
|
15783
|
+
};
|
|
15784
|
+
|
|
15785
|
+
/**
|
|
15786
|
+
* Creates a plain object from a LocationSupport message. Also converts values to other types if specified.
|
|
15787
|
+
* @function toObject
|
|
15788
|
+
* @memberof google.privacy.dlp.v2.LocationSupport
|
|
15789
|
+
* @static
|
|
15790
|
+
* @param {google.privacy.dlp.v2.LocationSupport} message LocationSupport
|
|
15791
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
15792
|
+
* @returns {Object.<string,*>} Plain object
|
|
15793
|
+
*/
|
|
15794
|
+
LocationSupport.toObject = function toObject(message, options) {
|
|
15795
|
+
if (!options)
|
|
15796
|
+
options = {};
|
|
15797
|
+
var object = {};
|
|
15798
|
+
if (options.arrays || options.defaults)
|
|
15799
|
+
object.locations = [];
|
|
15800
|
+
if (options.defaults)
|
|
15801
|
+
object.regionalizationScope = options.enums === String ? "REGIONALIZATION_SCOPE_UNSPECIFIED" : 0;
|
|
15802
|
+
if (message.regionalizationScope != null && message.hasOwnProperty("regionalizationScope"))
|
|
15803
|
+
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;
|
|
15804
|
+
if (message.locations && message.locations.length) {
|
|
15805
|
+
object.locations = [];
|
|
15806
|
+
for (var j = 0; j < message.locations.length; ++j)
|
|
15807
|
+
object.locations[j] = message.locations[j];
|
|
15808
|
+
}
|
|
15809
|
+
return object;
|
|
15810
|
+
};
|
|
15811
|
+
|
|
15812
|
+
/**
|
|
15813
|
+
* Converts this LocationSupport to JSON.
|
|
15814
|
+
* @function toJSON
|
|
15815
|
+
* @memberof google.privacy.dlp.v2.LocationSupport
|
|
15816
|
+
* @instance
|
|
15817
|
+
* @returns {Object.<string,*>} JSON object
|
|
15818
|
+
*/
|
|
15819
|
+
LocationSupport.prototype.toJSON = function toJSON() {
|
|
15820
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
15821
|
+
};
|
|
15822
|
+
|
|
15823
|
+
/**
|
|
15824
|
+
* Gets the default type url for LocationSupport
|
|
15825
|
+
* @function getTypeUrl
|
|
15826
|
+
* @memberof google.privacy.dlp.v2.LocationSupport
|
|
15827
|
+
* @static
|
|
15828
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
15829
|
+
* @returns {string} The default type url
|
|
15830
|
+
*/
|
|
15831
|
+
LocationSupport.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
15832
|
+
if (typeUrlPrefix === undefined) {
|
|
15833
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
15834
|
+
}
|
|
15835
|
+
return typeUrlPrefix + "/google.privacy.dlp.v2.LocationSupport";
|
|
15836
|
+
};
|
|
15837
|
+
|
|
15838
|
+
/**
|
|
15839
|
+
* RegionalizationScope enum.
|
|
15840
|
+
* @name google.privacy.dlp.v2.LocationSupport.RegionalizationScope
|
|
15841
|
+
* @enum {number}
|
|
15842
|
+
* @property {number} REGIONALIZATION_SCOPE_UNSPECIFIED=0 REGIONALIZATION_SCOPE_UNSPECIFIED value
|
|
15843
|
+
* @property {number} REGIONAL=1 REGIONAL value
|
|
15844
|
+
* @property {number} ANY_LOCATION=2 ANY_LOCATION value
|
|
15845
|
+
*/
|
|
15846
|
+
LocationSupport.RegionalizationScope = (function() {
|
|
15847
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
15848
|
+
values[valuesById[0] = "REGIONALIZATION_SCOPE_UNSPECIFIED"] = 0;
|
|
15849
|
+
values[valuesById[1] = "REGIONAL"] = 1;
|
|
15850
|
+
values[valuesById[2] = "ANY_LOCATION"] = 2;
|
|
15851
|
+
return values;
|
|
15852
|
+
})();
|
|
15853
|
+
|
|
15854
|
+
return LocationSupport;
|
|
15855
|
+
})();
|
|
15856
|
+
|
|
15572
15857
|
v2.InfoTypeDescription = (function() {
|
|
15573
15858
|
|
|
15574
15859
|
/**
|
|
@@ -15579,6 +15864,7 @@
|
|
|
15579
15864
|
* @property {string|null} [displayName] InfoTypeDescription displayName
|
|
15580
15865
|
* @property {Array.<google.privacy.dlp.v2.InfoTypeSupportedBy>|null} [supportedBy] InfoTypeDescription supportedBy
|
|
15581
15866
|
* @property {string|null} [description] InfoTypeDescription description
|
|
15867
|
+
* @property {google.privacy.dlp.v2.ILocationSupport|null} [locationSupport] InfoTypeDescription locationSupport
|
|
15582
15868
|
* @property {string|null} [example] InfoTypeDescription example
|
|
15583
15869
|
* @property {Array.<google.privacy.dlp.v2.IVersionDescription>|null} [versions] InfoTypeDescription versions
|
|
15584
15870
|
* @property {Array.<google.privacy.dlp.v2.IInfoTypeCategory>|null} [categories] InfoTypeDescription categories
|
|
@@ -15637,6 +15923,14 @@
|
|
|
15637
15923
|
*/
|
|
15638
15924
|
InfoTypeDescription.prototype.description = "";
|
|
15639
15925
|
|
|
15926
|
+
/**
|
|
15927
|
+
* InfoTypeDescription locationSupport.
|
|
15928
|
+
* @member {google.privacy.dlp.v2.ILocationSupport|null|undefined} locationSupport
|
|
15929
|
+
* @memberof google.privacy.dlp.v2.InfoTypeDescription
|
|
15930
|
+
* @instance
|
|
15931
|
+
*/
|
|
15932
|
+
InfoTypeDescription.prototype.locationSupport = null;
|
|
15933
|
+
|
|
15640
15934
|
/**
|
|
15641
15935
|
* InfoTypeDescription example.
|
|
15642
15936
|
* @member {string} example
|
|
@@ -15713,6 +16007,8 @@
|
|
|
15713
16007
|
}
|
|
15714
16008
|
if (message.description != null && Object.hasOwnProperty.call(message, "description"))
|
|
15715
16009
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.description);
|
|
16010
|
+
if (message.locationSupport != null && Object.hasOwnProperty.call(message, "locationSupport"))
|
|
16011
|
+
$root.google.privacy.dlp.v2.LocationSupport.encode(message.locationSupport, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
15716
16012
|
if (message.example != null && Object.hasOwnProperty.call(message, "example"))
|
|
15717
16013
|
writer.uint32(/* id 8, wireType 2 =*/66).string(message.example);
|
|
15718
16014
|
if (message.versions != null && message.versions.length)
|
|
@@ -15785,6 +16081,10 @@
|
|
|
15785
16081
|
message.description = reader.string();
|
|
15786
16082
|
break;
|
|
15787
16083
|
}
|
|
16084
|
+
case 6: {
|
|
16085
|
+
message.locationSupport = $root.google.privacy.dlp.v2.LocationSupport.decode(reader, reader.uint32());
|
|
16086
|
+
break;
|
|
16087
|
+
}
|
|
15788
16088
|
case 8: {
|
|
15789
16089
|
message.example = reader.string();
|
|
15790
16090
|
break;
|
|
@@ -15868,6 +16168,11 @@
|
|
|
15868
16168
|
if (message.description != null && message.hasOwnProperty("description"))
|
|
15869
16169
|
if (!$util.isString(message.description))
|
|
15870
16170
|
return "description: string expected";
|
|
16171
|
+
if (message.locationSupport != null && message.hasOwnProperty("locationSupport")) {
|
|
16172
|
+
var error = $root.google.privacy.dlp.v2.LocationSupport.verify(message.locationSupport);
|
|
16173
|
+
if (error)
|
|
16174
|
+
return "locationSupport." + error;
|
|
16175
|
+
}
|
|
15871
16176
|
if (message.example != null && message.hasOwnProperty("example"))
|
|
15872
16177
|
if (!$util.isString(message.example))
|
|
15873
16178
|
return "example: string expected";
|
|
@@ -15947,6 +16252,11 @@
|
|
|
15947
16252
|
}
|
|
15948
16253
|
if (object.description != null)
|
|
15949
16254
|
message.description = String(object.description);
|
|
16255
|
+
if (object.locationSupport != null) {
|
|
16256
|
+
if (typeof object.locationSupport !== "object")
|
|
16257
|
+
throw TypeError(".google.privacy.dlp.v2.InfoTypeDescription.locationSupport: object expected");
|
|
16258
|
+
message.locationSupport = $root.google.privacy.dlp.v2.LocationSupport.fromObject(object.locationSupport);
|
|
16259
|
+
}
|
|
15950
16260
|
if (object.example != null)
|
|
15951
16261
|
message.example = String(object.example);
|
|
15952
16262
|
if (object.versions) {
|
|
@@ -16007,6 +16317,7 @@
|
|
|
16007
16317
|
object.name = "";
|
|
16008
16318
|
object.displayName = "";
|
|
16009
16319
|
object.description = "";
|
|
16320
|
+
object.locationSupport = null;
|
|
16010
16321
|
object.example = "";
|
|
16011
16322
|
object.sensitivityScore = null;
|
|
16012
16323
|
}
|
|
@@ -16021,6 +16332,8 @@
|
|
|
16021
16332
|
}
|
|
16022
16333
|
if (message.description != null && message.hasOwnProperty("description"))
|
|
16023
16334
|
object.description = message.description;
|
|
16335
|
+
if (message.locationSupport != null && message.hasOwnProperty("locationSupport"))
|
|
16336
|
+
object.locationSupport = $root.google.privacy.dlp.v2.LocationSupport.toObject(message.locationSupport, options);
|
|
16024
16337
|
if (message.example != null && message.hasOwnProperty("example"))
|
|
16025
16338
|
object.example = message.example;
|
|
16026
16339
|
if (message.versions && message.versions.length) {
|
|
@@ -16260,6 +16573,7 @@
|
|
|
16260
16573
|
case 2:
|
|
16261
16574
|
case 51:
|
|
16262
16575
|
case 3:
|
|
16576
|
+
case 53:
|
|
16263
16577
|
case 48:
|
|
16264
16578
|
case 50:
|
|
16265
16579
|
case 4:
|
|
@@ -16385,6 +16699,10 @@
|
|
|
16385
16699
|
case 3:
|
|
16386
16700
|
message.locationCategory = 3;
|
|
16387
16701
|
break;
|
|
16702
|
+
case "AUSTRIA":
|
|
16703
|
+
case 53:
|
|
16704
|
+
message.locationCategory = 53;
|
|
16705
|
+
break;
|
|
16388
16706
|
case "AZERBAIJAN":
|
|
16389
16707
|
case 48:
|
|
16390
16708
|
message.locationCategory = 48;
|
|
@@ -16711,6 +17029,7 @@
|
|
|
16711
17029
|
* @property {number} ARGENTINA=2 ARGENTINA value
|
|
16712
17030
|
* @property {number} ARMENIA=51 ARMENIA value
|
|
16713
17031
|
* @property {number} AUSTRALIA=3 AUSTRALIA value
|
|
17032
|
+
* @property {number} AUSTRIA=53 AUSTRIA value
|
|
16714
17033
|
* @property {number} AZERBAIJAN=48 AZERBAIJAN value
|
|
16715
17034
|
* @property {number} BELARUS=50 BELARUS value
|
|
16716
17035
|
* @property {number} BELGIUM=4 BELGIUM value
|
|
@@ -16766,6 +17085,7 @@
|
|
|
16766
17085
|
values[valuesById[2] = "ARGENTINA"] = 2;
|
|
16767
17086
|
values[valuesById[51] = "ARMENIA"] = 51;
|
|
16768
17087
|
values[valuesById[3] = "AUSTRALIA"] = 3;
|
|
17088
|
+
values[valuesById[53] = "AUSTRIA"] = 53;
|
|
16769
17089
|
values[valuesById[48] = "AZERBAIJAN"] = 48;
|
|
16770
17090
|
values[valuesById[50] = "BELARUS"] = 50;
|
|
16771
17091
|
values[valuesById[4] = "BELGIUM"] = 4;
|
|
@@ -82177,6 +82497,7 @@
|
|
|
82177
82497
|
* @property {google.privacy.dlp.v2.IBigQueryTable|null} [sampleFindingsTable] TableDataProfile sampleFindingsTable
|
|
82178
82498
|
* @property {Array.<google.privacy.dlp.v2.ITag>|null} [tags] TableDataProfile tags
|
|
82179
82499
|
* @property {Array.<google.privacy.dlp.v2.IRelatedResource>|null} [relatedResources] TableDataProfile relatedResources
|
|
82500
|
+
* @property {Array.<google.privacy.dlp.v2.IDomain>|null} [domains] TableDataProfile domains
|
|
82180
82501
|
*/
|
|
82181
82502
|
|
|
82182
82503
|
/**
|
|
@@ -82193,6 +82514,7 @@
|
|
|
82193
82514
|
this.resourceLabels = {};
|
|
82194
82515
|
this.tags = [];
|
|
82195
82516
|
this.relatedResources = [];
|
|
82517
|
+
this.domains = [];
|
|
82196
82518
|
if (properties)
|
|
82197
82519
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
82198
82520
|
if (properties[keys[i]] != null)
|
|
@@ -82431,6 +82753,14 @@
|
|
|
82431
82753
|
*/
|
|
82432
82754
|
TableDataProfile.prototype.relatedResources = $util.emptyArray;
|
|
82433
82755
|
|
|
82756
|
+
/**
|
|
82757
|
+
* TableDataProfile domains.
|
|
82758
|
+
* @member {Array.<google.privacy.dlp.v2.IDomain>} domains
|
|
82759
|
+
* @memberof google.privacy.dlp.v2.TableDataProfile
|
|
82760
|
+
* @instance
|
|
82761
|
+
*/
|
|
82762
|
+
TableDataProfile.prototype.domains = $util.emptyArray;
|
|
82763
|
+
|
|
82434
82764
|
/**
|
|
82435
82765
|
* Creates a new TableDataProfile instance using the specified properties.
|
|
82436
82766
|
* @function create
|
|
@@ -82518,6 +82848,9 @@
|
|
|
82518
82848
|
if (message.relatedResources != null && message.relatedResources.length)
|
|
82519
82849
|
for (var i = 0; i < message.relatedResources.length; ++i)
|
|
82520
82850
|
$root.google.privacy.dlp.v2.RelatedResource.encode(message.relatedResources[i], writer.uint32(/* id 41, wireType 2 =*/330).fork()).ldelim();
|
|
82851
|
+
if (message.domains != null && message.domains.length)
|
|
82852
|
+
for (var i = 0; i < message.domains.length; ++i)
|
|
82853
|
+
$root.google.privacy.dlp.v2.Domain.encode(message.domains[i], writer.uint32(/* id 47, wireType 2 =*/378).fork()).ldelim();
|
|
82521
82854
|
return writer;
|
|
82522
82855
|
};
|
|
82523
82856
|
|
|
@@ -82697,6 +83030,12 @@
|
|
|
82697
83030
|
message.relatedResources.push($root.google.privacy.dlp.v2.RelatedResource.decode(reader, reader.uint32()));
|
|
82698
83031
|
break;
|
|
82699
83032
|
}
|
|
83033
|
+
case 47: {
|
|
83034
|
+
if (!(message.domains && message.domains.length))
|
|
83035
|
+
message.domains = [];
|
|
83036
|
+
message.domains.push($root.google.privacy.dlp.v2.Domain.decode(reader, reader.uint32()));
|
|
83037
|
+
break;
|
|
83038
|
+
}
|
|
82700
83039
|
default:
|
|
82701
83040
|
reader.skipType(tag & 7);
|
|
82702
83041
|
break;
|
|
@@ -82887,6 +83226,15 @@
|
|
|
82887
83226
|
return "relatedResources." + error;
|
|
82888
83227
|
}
|
|
82889
83228
|
}
|
|
83229
|
+
if (message.domains != null && message.hasOwnProperty("domains")) {
|
|
83230
|
+
if (!Array.isArray(message.domains))
|
|
83231
|
+
return "domains: array expected";
|
|
83232
|
+
for (var i = 0; i < message.domains.length; ++i) {
|
|
83233
|
+
var error = $root.google.privacy.dlp.v2.Domain.verify(message.domains[i]);
|
|
83234
|
+
if (error)
|
|
83235
|
+
return "domains." + error;
|
|
83236
|
+
}
|
|
83237
|
+
}
|
|
82890
83238
|
return null;
|
|
82891
83239
|
};
|
|
82892
83240
|
|
|
@@ -83113,6 +83461,16 @@
|
|
|
83113
83461
|
message.relatedResources[i] = $root.google.privacy.dlp.v2.RelatedResource.fromObject(object.relatedResources[i]);
|
|
83114
83462
|
}
|
|
83115
83463
|
}
|
|
83464
|
+
if (object.domains) {
|
|
83465
|
+
if (!Array.isArray(object.domains))
|
|
83466
|
+
throw TypeError(".google.privacy.dlp.v2.TableDataProfile.domains: array expected");
|
|
83467
|
+
message.domains = [];
|
|
83468
|
+
for (var i = 0; i < object.domains.length; ++i) {
|
|
83469
|
+
if (typeof object.domains[i] !== "object")
|
|
83470
|
+
throw TypeError(".google.privacy.dlp.v2.TableDataProfile.domains: object expected");
|
|
83471
|
+
message.domains[i] = $root.google.privacy.dlp.v2.Domain.fromObject(object.domains[i]);
|
|
83472
|
+
}
|
|
83473
|
+
}
|
|
83116
83474
|
return message;
|
|
83117
83475
|
};
|
|
83118
83476
|
|
|
@@ -83134,6 +83492,7 @@
|
|
|
83134
83492
|
object.otherInfoTypes = [];
|
|
83135
83493
|
object.tags = [];
|
|
83136
83494
|
object.relatedResources = [];
|
|
83495
|
+
object.domains = [];
|
|
83137
83496
|
}
|
|
83138
83497
|
if (options.objects || options.defaults)
|
|
83139
83498
|
object.resourceLabels = {};
|
|
@@ -83265,6 +83624,11 @@
|
|
|
83265
83624
|
for (var j = 0; j < message.relatedResources.length; ++j)
|
|
83266
83625
|
object.relatedResources[j] = $root.google.privacy.dlp.v2.RelatedResource.toObject(message.relatedResources[j], options);
|
|
83267
83626
|
}
|
|
83627
|
+
if (message.domains && message.domains.length) {
|
|
83628
|
+
object.domains = [];
|
|
83629
|
+
for (var j = 0; j < message.domains.length; ++j)
|
|
83630
|
+
object.domains[j] = $root.google.privacy.dlp.v2.Domain.toObject(message.domains[j], options);
|
|
83631
|
+
}
|
|
83268
83632
|
return object;
|
|
83269
83633
|
};
|
|
83270
83634
|
|
|
@@ -85107,6 +85471,7 @@
|
|
|
85107
85471
|
* @property {boolean|null} [fileStoreIsEmpty] FileStoreDataProfile fileStoreIsEmpty
|
|
85108
85472
|
* @property {Array.<google.privacy.dlp.v2.ITag>|null} [tags] FileStoreDataProfile tags
|
|
85109
85473
|
* @property {Array.<google.privacy.dlp.v2.IRelatedResource>|null} [relatedResources] FileStoreDataProfile relatedResources
|
|
85474
|
+
* @property {Array.<google.privacy.dlp.v2.IDomain>|null} [domains] FileStoreDataProfile domains
|
|
85110
85475
|
*/
|
|
85111
85476
|
|
|
85112
85477
|
/**
|
|
@@ -85125,6 +85490,7 @@
|
|
|
85125
85490
|
this.fileStoreInfoTypeSummaries = [];
|
|
85126
85491
|
this.tags = [];
|
|
85127
85492
|
this.relatedResources = [];
|
|
85493
|
+
this.domains = [];
|
|
85128
85494
|
if (properties)
|
|
85129
85495
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
85130
85496
|
if (properties[keys[i]] != null)
|
|
@@ -85339,6 +85705,14 @@
|
|
|
85339
85705
|
*/
|
|
85340
85706
|
FileStoreDataProfile.prototype.relatedResources = $util.emptyArray;
|
|
85341
85707
|
|
|
85708
|
+
/**
|
|
85709
|
+
* FileStoreDataProfile domains.
|
|
85710
|
+
* @member {Array.<google.privacy.dlp.v2.IDomain>} domains
|
|
85711
|
+
* @memberof google.privacy.dlp.v2.FileStoreDataProfile
|
|
85712
|
+
* @instance
|
|
85713
|
+
*/
|
|
85714
|
+
FileStoreDataProfile.prototype.domains = $util.emptyArray;
|
|
85715
|
+
|
|
85342
85716
|
/**
|
|
85343
85717
|
* Creates a new FileStoreDataProfile instance using the specified properties.
|
|
85344
85718
|
* @function create
|
|
@@ -85424,6 +85798,9 @@
|
|
|
85424
85798
|
if (message.relatedResources != null && message.relatedResources.length)
|
|
85425
85799
|
for (var i = 0; i < message.relatedResources.length; ++i)
|
|
85426
85800
|
$root.google.privacy.dlp.v2.RelatedResource.encode(message.relatedResources[i], writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
|
|
85801
|
+
if (message.domains != null && message.domains.length)
|
|
85802
|
+
for (var i = 0; i < message.domains.length; ++i)
|
|
85803
|
+
$root.google.privacy.dlp.v2.Domain.encode(message.domains[i], writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
|
|
85427
85804
|
return writer;
|
|
85428
85805
|
};
|
|
85429
85806
|
|
|
@@ -85612,6 +85989,12 @@
|
|
|
85612
85989
|
message.relatedResources.push($root.google.privacy.dlp.v2.RelatedResource.decode(reader, reader.uint32()));
|
|
85613
85990
|
break;
|
|
85614
85991
|
}
|
|
85992
|
+
case 27: {
|
|
85993
|
+
if (!(message.domains && message.domains.length))
|
|
85994
|
+
message.domains = [];
|
|
85995
|
+
message.domains.push($root.google.privacy.dlp.v2.Domain.decode(reader, reader.uint32()));
|
|
85996
|
+
break;
|
|
85997
|
+
}
|
|
85615
85998
|
default:
|
|
85616
85999
|
reader.skipType(tag & 7);
|
|
85617
86000
|
break;
|
|
@@ -85796,6 +86179,15 @@
|
|
|
85796
86179
|
return "relatedResources." + error;
|
|
85797
86180
|
}
|
|
85798
86181
|
}
|
|
86182
|
+
if (message.domains != null && message.hasOwnProperty("domains")) {
|
|
86183
|
+
if (!Array.isArray(message.domains))
|
|
86184
|
+
return "domains: array expected";
|
|
86185
|
+
for (var i = 0; i < message.domains.length; ++i) {
|
|
86186
|
+
var error = $root.google.privacy.dlp.v2.Domain.verify(message.domains[i]);
|
|
86187
|
+
if (error)
|
|
86188
|
+
return "domains." + error;
|
|
86189
|
+
}
|
|
86190
|
+
}
|
|
85799
86191
|
return null;
|
|
85800
86192
|
};
|
|
85801
86193
|
|
|
@@ -85980,6 +86372,16 @@
|
|
|
85980
86372
|
message.relatedResources[i] = $root.google.privacy.dlp.v2.RelatedResource.fromObject(object.relatedResources[i]);
|
|
85981
86373
|
}
|
|
85982
86374
|
}
|
|
86375
|
+
if (object.domains) {
|
|
86376
|
+
if (!Array.isArray(object.domains))
|
|
86377
|
+
throw TypeError(".google.privacy.dlp.v2.FileStoreDataProfile.domains: array expected");
|
|
86378
|
+
message.domains = [];
|
|
86379
|
+
for (var i = 0; i < object.domains.length; ++i) {
|
|
86380
|
+
if (typeof object.domains[i] !== "object")
|
|
86381
|
+
throw TypeError(".google.privacy.dlp.v2.FileStoreDataProfile.domains: object expected");
|
|
86382
|
+
message.domains[i] = $root.google.privacy.dlp.v2.Domain.fromObject(object.domains[i]);
|
|
86383
|
+
}
|
|
86384
|
+
}
|
|
85983
86385
|
return message;
|
|
85984
86386
|
};
|
|
85985
86387
|
|
|
@@ -86002,6 +86404,7 @@
|
|
|
86002
86404
|
object.fileStoreInfoTypeSummaries = [];
|
|
86003
86405
|
object.tags = [];
|
|
86004
86406
|
object.relatedResources = [];
|
|
86407
|
+
object.domains = [];
|
|
86005
86408
|
}
|
|
86006
86409
|
if (options.objects || options.defaults) {
|
|
86007
86410
|
object.resourceAttributes = {};
|
|
@@ -86102,6 +86505,11 @@
|
|
|
86102
86505
|
for (var j = 0; j < message.relatedResources.length; ++j)
|
|
86103
86506
|
object.relatedResources[j] = $root.google.privacy.dlp.v2.RelatedResource.toObject(message.relatedResources[j], options);
|
|
86104
86507
|
}
|
|
86508
|
+
if (message.domains && message.domains.length) {
|
|
86509
|
+
object.domains = [];
|
|
86510
|
+
for (var j = 0; j < message.domains.length; ++j)
|
|
86511
|
+
object.domains[j] = $root.google.privacy.dlp.v2.Domain.toObject(message.domains[j], options);
|
|
86512
|
+
}
|
|
86105
86513
|
return object;
|
|
86106
86514
|
};
|
|
86107
86515
|
|
|
@@ -94017,6 +94425,7 @@
|
|
|
94017
94425
|
* @memberof google.privacy.dlp.v2
|
|
94018
94426
|
* @interface IProcessingLocation
|
|
94019
94427
|
* @property {google.privacy.dlp.v2.ProcessingLocation.IImageFallbackLocation|null} [imageFallbackLocation] ProcessingLocation imageFallbackLocation
|
|
94428
|
+
* @property {google.privacy.dlp.v2.ProcessingLocation.IDocumentFallbackLocation|null} [documentFallbackLocation] ProcessingLocation documentFallbackLocation
|
|
94020
94429
|
*/
|
|
94021
94430
|
|
|
94022
94431
|
/**
|
|
@@ -94042,6 +94451,14 @@
|
|
|
94042
94451
|
*/
|
|
94043
94452
|
ProcessingLocation.prototype.imageFallbackLocation = null;
|
|
94044
94453
|
|
|
94454
|
+
/**
|
|
94455
|
+
* ProcessingLocation documentFallbackLocation.
|
|
94456
|
+
* @member {google.privacy.dlp.v2.ProcessingLocation.IDocumentFallbackLocation|null|undefined} documentFallbackLocation
|
|
94457
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation
|
|
94458
|
+
* @instance
|
|
94459
|
+
*/
|
|
94460
|
+
ProcessingLocation.prototype.documentFallbackLocation = null;
|
|
94461
|
+
|
|
94045
94462
|
/**
|
|
94046
94463
|
* Creates a new ProcessingLocation instance using the specified properties.
|
|
94047
94464
|
* @function create
|
|
@@ -94068,6 +94485,8 @@
|
|
|
94068
94485
|
writer = $Writer.create();
|
|
94069
94486
|
if (message.imageFallbackLocation != null && Object.hasOwnProperty.call(message, "imageFallbackLocation"))
|
|
94070
94487
|
$root.google.privacy.dlp.v2.ProcessingLocation.ImageFallbackLocation.encode(message.imageFallbackLocation, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
94488
|
+
if (message.documentFallbackLocation != null && Object.hasOwnProperty.call(message, "documentFallbackLocation"))
|
|
94489
|
+
$root.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.encode(message.documentFallbackLocation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
94071
94490
|
return writer;
|
|
94072
94491
|
};
|
|
94073
94492
|
|
|
@@ -94108,6 +94527,10 @@
|
|
|
94108
94527
|
message.imageFallbackLocation = $root.google.privacy.dlp.v2.ProcessingLocation.ImageFallbackLocation.decode(reader, reader.uint32());
|
|
94109
94528
|
break;
|
|
94110
94529
|
}
|
|
94530
|
+
case 2: {
|
|
94531
|
+
message.documentFallbackLocation = $root.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.decode(reader, reader.uint32());
|
|
94532
|
+
break;
|
|
94533
|
+
}
|
|
94111
94534
|
default:
|
|
94112
94535
|
reader.skipType(tag & 7);
|
|
94113
94536
|
break;
|
|
@@ -94148,6 +94571,11 @@
|
|
|
94148
94571
|
if (error)
|
|
94149
94572
|
return "imageFallbackLocation." + error;
|
|
94150
94573
|
}
|
|
94574
|
+
if (message.documentFallbackLocation != null && message.hasOwnProperty("documentFallbackLocation")) {
|
|
94575
|
+
var error = $root.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.verify(message.documentFallbackLocation);
|
|
94576
|
+
if (error)
|
|
94577
|
+
return "documentFallbackLocation." + error;
|
|
94578
|
+
}
|
|
94151
94579
|
return null;
|
|
94152
94580
|
};
|
|
94153
94581
|
|
|
@@ -94168,6 +94596,11 @@
|
|
|
94168
94596
|
throw TypeError(".google.privacy.dlp.v2.ProcessingLocation.imageFallbackLocation: object expected");
|
|
94169
94597
|
message.imageFallbackLocation = $root.google.privacy.dlp.v2.ProcessingLocation.ImageFallbackLocation.fromObject(object.imageFallbackLocation);
|
|
94170
94598
|
}
|
|
94599
|
+
if (object.documentFallbackLocation != null) {
|
|
94600
|
+
if (typeof object.documentFallbackLocation !== "object")
|
|
94601
|
+
throw TypeError(".google.privacy.dlp.v2.ProcessingLocation.documentFallbackLocation: object expected");
|
|
94602
|
+
message.documentFallbackLocation = $root.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.fromObject(object.documentFallbackLocation);
|
|
94603
|
+
}
|
|
94171
94604
|
return message;
|
|
94172
94605
|
};
|
|
94173
94606
|
|
|
@@ -94184,10 +94617,14 @@
|
|
|
94184
94617
|
if (!options)
|
|
94185
94618
|
options = {};
|
|
94186
94619
|
var object = {};
|
|
94187
|
-
if (options.defaults)
|
|
94620
|
+
if (options.defaults) {
|
|
94188
94621
|
object.imageFallbackLocation = null;
|
|
94622
|
+
object.documentFallbackLocation = null;
|
|
94623
|
+
}
|
|
94189
94624
|
if (message.imageFallbackLocation != null && message.hasOwnProperty("imageFallbackLocation"))
|
|
94190
94625
|
object.imageFallbackLocation = $root.google.privacy.dlp.v2.ProcessingLocation.ImageFallbackLocation.toObject(message.imageFallbackLocation, options);
|
|
94626
|
+
if (message.documentFallbackLocation != null && message.hasOwnProperty("documentFallbackLocation"))
|
|
94627
|
+
object.documentFallbackLocation = $root.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.toObject(message.documentFallbackLocation, options);
|
|
94191
94628
|
return object;
|
|
94192
94629
|
};
|
|
94193
94630
|
|
|
@@ -94810,6 +95247,245 @@
|
|
|
94810
95247
|
return ImageFallbackLocation;
|
|
94811
95248
|
})();
|
|
94812
95249
|
|
|
95250
|
+
ProcessingLocation.DocumentFallbackLocation = (function() {
|
|
95251
|
+
|
|
95252
|
+
/**
|
|
95253
|
+
* Properties of a DocumentFallbackLocation.
|
|
95254
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation
|
|
95255
|
+
* @interface IDocumentFallbackLocation
|
|
95256
|
+
* @property {google.privacy.dlp.v2.ProcessingLocation.IMultiRegionProcessing|null} [multiRegionProcessing] DocumentFallbackLocation multiRegionProcessing
|
|
95257
|
+
* @property {google.privacy.dlp.v2.ProcessingLocation.IGlobalProcessing|null} [globalProcessing] DocumentFallbackLocation globalProcessing
|
|
95258
|
+
*/
|
|
95259
|
+
|
|
95260
|
+
/**
|
|
95261
|
+
* Constructs a new DocumentFallbackLocation.
|
|
95262
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation
|
|
95263
|
+
* @classdesc Represents a DocumentFallbackLocation.
|
|
95264
|
+
* @implements IDocumentFallbackLocation
|
|
95265
|
+
* @constructor
|
|
95266
|
+
* @param {google.privacy.dlp.v2.ProcessingLocation.IDocumentFallbackLocation=} [properties] Properties to set
|
|
95267
|
+
*/
|
|
95268
|
+
function DocumentFallbackLocation(properties) {
|
|
95269
|
+
if (properties)
|
|
95270
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
95271
|
+
if (properties[keys[i]] != null)
|
|
95272
|
+
this[keys[i]] = properties[keys[i]];
|
|
95273
|
+
}
|
|
95274
|
+
|
|
95275
|
+
/**
|
|
95276
|
+
* DocumentFallbackLocation multiRegionProcessing.
|
|
95277
|
+
* @member {google.privacy.dlp.v2.ProcessingLocation.IMultiRegionProcessing|null|undefined} multiRegionProcessing
|
|
95278
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation
|
|
95279
|
+
* @instance
|
|
95280
|
+
*/
|
|
95281
|
+
DocumentFallbackLocation.prototype.multiRegionProcessing = null;
|
|
95282
|
+
|
|
95283
|
+
/**
|
|
95284
|
+
* DocumentFallbackLocation globalProcessing.
|
|
95285
|
+
* @member {google.privacy.dlp.v2.ProcessingLocation.IGlobalProcessing|null|undefined} globalProcessing
|
|
95286
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation
|
|
95287
|
+
* @instance
|
|
95288
|
+
*/
|
|
95289
|
+
DocumentFallbackLocation.prototype.globalProcessing = null;
|
|
95290
|
+
|
|
95291
|
+
/**
|
|
95292
|
+
* Creates a new DocumentFallbackLocation instance using the specified properties.
|
|
95293
|
+
* @function create
|
|
95294
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation
|
|
95295
|
+
* @static
|
|
95296
|
+
* @param {google.privacy.dlp.v2.ProcessingLocation.IDocumentFallbackLocation=} [properties] Properties to set
|
|
95297
|
+
* @returns {google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation} DocumentFallbackLocation instance
|
|
95298
|
+
*/
|
|
95299
|
+
DocumentFallbackLocation.create = function create(properties) {
|
|
95300
|
+
return new DocumentFallbackLocation(properties);
|
|
95301
|
+
};
|
|
95302
|
+
|
|
95303
|
+
/**
|
|
95304
|
+
* Encodes the specified DocumentFallbackLocation message. Does not implicitly {@link google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.verify|verify} messages.
|
|
95305
|
+
* @function encode
|
|
95306
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation
|
|
95307
|
+
* @static
|
|
95308
|
+
* @param {google.privacy.dlp.v2.ProcessingLocation.IDocumentFallbackLocation} message DocumentFallbackLocation message or plain object to encode
|
|
95309
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
95310
|
+
* @returns {$protobuf.Writer} Writer
|
|
95311
|
+
*/
|
|
95312
|
+
DocumentFallbackLocation.encode = function encode(message, writer) {
|
|
95313
|
+
if (!writer)
|
|
95314
|
+
writer = $Writer.create();
|
|
95315
|
+
if (message.multiRegionProcessing != null && Object.hasOwnProperty.call(message, "multiRegionProcessing"))
|
|
95316
|
+
$root.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing.encode(message.multiRegionProcessing, writer.uint32(/* id 100, wireType 2 =*/802).fork()).ldelim();
|
|
95317
|
+
if (message.globalProcessing != null && Object.hasOwnProperty.call(message, "globalProcessing"))
|
|
95318
|
+
$root.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing.encode(message.globalProcessing, writer.uint32(/* id 200, wireType 2 =*/1602).fork()).ldelim();
|
|
95319
|
+
return writer;
|
|
95320
|
+
};
|
|
95321
|
+
|
|
95322
|
+
/**
|
|
95323
|
+
* Encodes the specified DocumentFallbackLocation message, length delimited. Does not implicitly {@link google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.verify|verify} messages.
|
|
95324
|
+
* @function encodeDelimited
|
|
95325
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation
|
|
95326
|
+
* @static
|
|
95327
|
+
* @param {google.privacy.dlp.v2.ProcessingLocation.IDocumentFallbackLocation} message DocumentFallbackLocation message or plain object to encode
|
|
95328
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
95329
|
+
* @returns {$protobuf.Writer} Writer
|
|
95330
|
+
*/
|
|
95331
|
+
DocumentFallbackLocation.encodeDelimited = function encodeDelimited(message, writer) {
|
|
95332
|
+
return this.encode(message, writer).ldelim();
|
|
95333
|
+
};
|
|
95334
|
+
|
|
95335
|
+
/**
|
|
95336
|
+
* Decodes a DocumentFallbackLocation message from the specified reader or buffer.
|
|
95337
|
+
* @function decode
|
|
95338
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation
|
|
95339
|
+
* @static
|
|
95340
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
95341
|
+
* @param {number} [length] Message length if known beforehand
|
|
95342
|
+
* @returns {google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation} DocumentFallbackLocation
|
|
95343
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
95344
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
95345
|
+
*/
|
|
95346
|
+
DocumentFallbackLocation.decode = function decode(reader, length, error) {
|
|
95347
|
+
if (!(reader instanceof $Reader))
|
|
95348
|
+
reader = $Reader.create(reader);
|
|
95349
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation();
|
|
95350
|
+
while (reader.pos < end) {
|
|
95351
|
+
var tag = reader.uint32();
|
|
95352
|
+
if (tag === error)
|
|
95353
|
+
break;
|
|
95354
|
+
switch (tag >>> 3) {
|
|
95355
|
+
case 100: {
|
|
95356
|
+
message.multiRegionProcessing = $root.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing.decode(reader, reader.uint32());
|
|
95357
|
+
break;
|
|
95358
|
+
}
|
|
95359
|
+
case 200: {
|
|
95360
|
+
message.globalProcessing = $root.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing.decode(reader, reader.uint32());
|
|
95361
|
+
break;
|
|
95362
|
+
}
|
|
95363
|
+
default:
|
|
95364
|
+
reader.skipType(tag & 7);
|
|
95365
|
+
break;
|
|
95366
|
+
}
|
|
95367
|
+
}
|
|
95368
|
+
return message;
|
|
95369
|
+
};
|
|
95370
|
+
|
|
95371
|
+
/**
|
|
95372
|
+
* Decodes a DocumentFallbackLocation message from the specified reader or buffer, length delimited.
|
|
95373
|
+
* @function decodeDelimited
|
|
95374
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation
|
|
95375
|
+
* @static
|
|
95376
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
95377
|
+
* @returns {google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation} DocumentFallbackLocation
|
|
95378
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
95379
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
95380
|
+
*/
|
|
95381
|
+
DocumentFallbackLocation.decodeDelimited = function decodeDelimited(reader) {
|
|
95382
|
+
if (!(reader instanceof $Reader))
|
|
95383
|
+
reader = new $Reader(reader);
|
|
95384
|
+
return this.decode(reader, reader.uint32());
|
|
95385
|
+
};
|
|
95386
|
+
|
|
95387
|
+
/**
|
|
95388
|
+
* Verifies a DocumentFallbackLocation message.
|
|
95389
|
+
* @function verify
|
|
95390
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation
|
|
95391
|
+
* @static
|
|
95392
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
95393
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
95394
|
+
*/
|
|
95395
|
+
DocumentFallbackLocation.verify = function verify(message) {
|
|
95396
|
+
if (typeof message !== "object" || message === null)
|
|
95397
|
+
return "object expected";
|
|
95398
|
+
if (message.multiRegionProcessing != null && message.hasOwnProperty("multiRegionProcessing")) {
|
|
95399
|
+
var error = $root.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing.verify(message.multiRegionProcessing);
|
|
95400
|
+
if (error)
|
|
95401
|
+
return "multiRegionProcessing." + error;
|
|
95402
|
+
}
|
|
95403
|
+
if (message.globalProcessing != null && message.hasOwnProperty("globalProcessing")) {
|
|
95404
|
+
var error = $root.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing.verify(message.globalProcessing);
|
|
95405
|
+
if (error)
|
|
95406
|
+
return "globalProcessing." + error;
|
|
95407
|
+
}
|
|
95408
|
+
return null;
|
|
95409
|
+
};
|
|
95410
|
+
|
|
95411
|
+
/**
|
|
95412
|
+
* Creates a DocumentFallbackLocation message from a plain object. Also converts values to their respective internal types.
|
|
95413
|
+
* @function fromObject
|
|
95414
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation
|
|
95415
|
+
* @static
|
|
95416
|
+
* @param {Object.<string,*>} object Plain object
|
|
95417
|
+
* @returns {google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation} DocumentFallbackLocation
|
|
95418
|
+
*/
|
|
95419
|
+
DocumentFallbackLocation.fromObject = function fromObject(object) {
|
|
95420
|
+
if (object instanceof $root.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation)
|
|
95421
|
+
return object;
|
|
95422
|
+
var message = new $root.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation();
|
|
95423
|
+
if (object.multiRegionProcessing != null) {
|
|
95424
|
+
if (typeof object.multiRegionProcessing !== "object")
|
|
95425
|
+
throw TypeError(".google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.multiRegionProcessing: object expected");
|
|
95426
|
+
message.multiRegionProcessing = $root.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing.fromObject(object.multiRegionProcessing);
|
|
95427
|
+
}
|
|
95428
|
+
if (object.globalProcessing != null) {
|
|
95429
|
+
if (typeof object.globalProcessing !== "object")
|
|
95430
|
+
throw TypeError(".google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.globalProcessing: object expected");
|
|
95431
|
+
message.globalProcessing = $root.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing.fromObject(object.globalProcessing);
|
|
95432
|
+
}
|
|
95433
|
+
return message;
|
|
95434
|
+
};
|
|
95435
|
+
|
|
95436
|
+
/**
|
|
95437
|
+
* Creates a plain object from a DocumentFallbackLocation message. Also converts values to other types if specified.
|
|
95438
|
+
* @function toObject
|
|
95439
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation
|
|
95440
|
+
* @static
|
|
95441
|
+
* @param {google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation} message DocumentFallbackLocation
|
|
95442
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
95443
|
+
* @returns {Object.<string,*>} Plain object
|
|
95444
|
+
*/
|
|
95445
|
+
DocumentFallbackLocation.toObject = function toObject(message, options) {
|
|
95446
|
+
if (!options)
|
|
95447
|
+
options = {};
|
|
95448
|
+
var object = {};
|
|
95449
|
+
if (options.defaults) {
|
|
95450
|
+
object.multiRegionProcessing = null;
|
|
95451
|
+
object.globalProcessing = null;
|
|
95452
|
+
}
|
|
95453
|
+
if (message.multiRegionProcessing != null && message.hasOwnProperty("multiRegionProcessing"))
|
|
95454
|
+
object.multiRegionProcessing = $root.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing.toObject(message.multiRegionProcessing, options);
|
|
95455
|
+
if (message.globalProcessing != null && message.hasOwnProperty("globalProcessing"))
|
|
95456
|
+
object.globalProcessing = $root.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing.toObject(message.globalProcessing, options);
|
|
95457
|
+
return object;
|
|
95458
|
+
};
|
|
95459
|
+
|
|
95460
|
+
/**
|
|
95461
|
+
* Converts this DocumentFallbackLocation to JSON.
|
|
95462
|
+
* @function toJSON
|
|
95463
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation
|
|
95464
|
+
* @instance
|
|
95465
|
+
* @returns {Object.<string,*>} JSON object
|
|
95466
|
+
*/
|
|
95467
|
+
DocumentFallbackLocation.prototype.toJSON = function toJSON() {
|
|
95468
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
95469
|
+
};
|
|
95470
|
+
|
|
95471
|
+
/**
|
|
95472
|
+
* Gets the default type url for DocumentFallbackLocation
|
|
95473
|
+
* @function getTypeUrl
|
|
95474
|
+
* @memberof google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation
|
|
95475
|
+
* @static
|
|
95476
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
95477
|
+
* @returns {string} The default type url
|
|
95478
|
+
*/
|
|
95479
|
+
DocumentFallbackLocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
95480
|
+
if (typeUrlPrefix === undefined) {
|
|
95481
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
95482
|
+
}
|
|
95483
|
+
return typeUrlPrefix + "/google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation";
|
|
95484
|
+
};
|
|
95485
|
+
|
|
95486
|
+
return DocumentFallbackLocation;
|
|
95487
|
+
})();
|
|
95488
|
+
|
|
94813
95489
|
return ProcessingLocation;
|
|
94814
95490
|
})();
|
|
94815
95491
|
|
|
@@ -95039,6 +95715,367 @@
|
|
|
95039
95715
|
return SaveToGcsFindingsOutput;
|
|
95040
95716
|
})();
|
|
95041
95717
|
|
|
95718
|
+
v2.Domain = (function() {
|
|
95719
|
+
|
|
95720
|
+
/**
|
|
95721
|
+
* Properties of a Domain.
|
|
95722
|
+
* @memberof google.privacy.dlp.v2
|
|
95723
|
+
* @interface IDomain
|
|
95724
|
+
* @property {google.privacy.dlp.v2.Domain.Category|null} [category] Domain category
|
|
95725
|
+
* @property {Array.<google.privacy.dlp.v2.Domain.Signal>|null} [signals] Domain signals
|
|
95726
|
+
*/
|
|
95727
|
+
|
|
95728
|
+
/**
|
|
95729
|
+
* Constructs a new Domain.
|
|
95730
|
+
* @memberof google.privacy.dlp.v2
|
|
95731
|
+
* @classdesc Represents a Domain.
|
|
95732
|
+
* @implements IDomain
|
|
95733
|
+
* @constructor
|
|
95734
|
+
* @param {google.privacy.dlp.v2.IDomain=} [properties] Properties to set
|
|
95735
|
+
*/
|
|
95736
|
+
function Domain(properties) {
|
|
95737
|
+
this.signals = [];
|
|
95738
|
+
if (properties)
|
|
95739
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
95740
|
+
if (properties[keys[i]] != null)
|
|
95741
|
+
this[keys[i]] = properties[keys[i]];
|
|
95742
|
+
}
|
|
95743
|
+
|
|
95744
|
+
/**
|
|
95745
|
+
* Domain category.
|
|
95746
|
+
* @member {google.privacy.dlp.v2.Domain.Category} category
|
|
95747
|
+
* @memberof google.privacy.dlp.v2.Domain
|
|
95748
|
+
* @instance
|
|
95749
|
+
*/
|
|
95750
|
+
Domain.prototype.category = 0;
|
|
95751
|
+
|
|
95752
|
+
/**
|
|
95753
|
+
* Domain signals.
|
|
95754
|
+
* @member {Array.<google.privacy.dlp.v2.Domain.Signal>} signals
|
|
95755
|
+
* @memberof google.privacy.dlp.v2.Domain
|
|
95756
|
+
* @instance
|
|
95757
|
+
*/
|
|
95758
|
+
Domain.prototype.signals = $util.emptyArray;
|
|
95759
|
+
|
|
95760
|
+
/**
|
|
95761
|
+
* Creates a new Domain instance using the specified properties.
|
|
95762
|
+
* @function create
|
|
95763
|
+
* @memberof google.privacy.dlp.v2.Domain
|
|
95764
|
+
* @static
|
|
95765
|
+
* @param {google.privacy.dlp.v2.IDomain=} [properties] Properties to set
|
|
95766
|
+
* @returns {google.privacy.dlp.v2.Domain} Domain instance
|
|
95767
|
+
*/
|
|
95768
|
+
Domain.create = function create(properties) {
|
|
95769
|
+
return new Domain(properties);
|
|
95770
|
+
};
|
|
95771
|
+
|
|
95772
|
+
/**
|
|
95773
|
+
* Encodes the specified Domain message. Does not implicitly {@link google.privacy.dlp.v2.Domain.verify|verify} messages.
|
|
95774
|
+
* @function encode
|
|
95775
|
+
* @memberof google.privacy.dlp.v2.Domain
|
|
95776
|
+
* @static
|
|
95777
|
+
* @param {google.privacy.dlp.v2.IDomain} message Domain message or plain object to encode
|
|
95778
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
95779
|
+
* @returns {$protobuf.Writer} Writer
|
|
95780
|
+
*/
|
|
95781
|
+
Domain.encode = function encode(message, writer) {
|
|
95782
|
+
if (!writer)
|
|
95783
|
+
writer = $Writer.create();
|
|
95784
|
+
if (message.category != null && Object.hasOwnProperty.call(message, "category"))
|
|
95785
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.category);
|
|
95786
|
+
if (message.signals != null && message.signals.length) {
|
|
95787
|
+
writer.uint32(/* id 2, wireType 2 =*/18).fork();
|
|
95788
|
+
for (var i = 0; i < message.signals.length; ++i)
|
|
95789
|
+
writer.int32(message.signals[i]);
|
|
95790
|
+
writer.ldelim();
|
|
95791
|
+
}
|
|
95792
|
+
return writer;
|
|
95793
|
+
};
|
|
95794
|
+
|
|
95795
|
+
/**
|
|
95796
|
+
* Encodes the specified Domain message, length delimited. Does not implicitly {@link google.privacy.dlp.v2.Domain.verify|verify} messages.
|
|
95797
|
+
* @function encodeDelimited
|
|
95798
|
+
* @memberof google.privacy.dlp.v2.Domain
|
|
95799
|
+
* @static
|
|
95800
|
+
* @param {google.privacy.dlp.v2.IDomain} message Domain message or plain object to encode
|
|
95801
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
95802
|
+
* @returns {$protobuf.Writer} Writer
|
|
95803
|
+
*/
|
|
95804
|
+
Domain.encodeDelimited = function encodeDelimited(message, writer) {
|
|
95805
|
+
return this.encode(message, writer).ldelim();
|
|
95806
|
+
};
|
|
95807
|
+
|
|
95808
|
+
/**
|
|
95809
|
+
* Decodes a Domain message from the specified reader or buffer.
|
|
95810
|
+
* @function decode
|
|
95811
|
+
* @memberof google.privacy.dlp.v2.Domain
|
|
95812
|
+
* @static
|
|
95813
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
95814
|
+
* @param {number} [length] Message length if known beforehand
|
|
95815
|
+
* @returns {google.privacy.dlp.v2.Domain} Domain
|
|
95816
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
95817
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
95818
|
+
*/
|
|
95819
|
+
Domain.decode = function decode(reader, length, error) {
|
|
95820
|
+
if (!(reader instanceof $Reader))
|
|
95821
|
+
reader = $Reader.create(reader);
|
|
95822
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.privacy.dlp.v2.Domain();
|
|
95823
|
+
while (reader.pos < end) {
|
|
95824
|
+
var tag = reader.uint32();
|
|
95825
|
+
if (tag === error)
|
|
95826
|
+
break;
|
|
95827
|
+
switch (tag >>> 3) {
|
|
95828
|
+
case 1: {
|
|
95829
|
+
message.category = reader.int32();
|
|
95830
|
+
break;
|
|
95831
|
+
}
|
|
95832
|
+
case 2: {
|
|
95833
|
+
if (!(message.signals && message.signals.length))
|
|
95834
|
+
message.signals = [];
|
|
95835
|
+
if ((tag & 7) === 2) {
|
|
95836
|
+
var end2 = reader.uint32() + reader.pos;
|
|
95837
|
+
while (reader.pos < end2)
|
|
95838
|
+
message.signals.push(reader.int32());
|
|
95839
|
+
} else
|
|
95840
|
+
message.signals.push(reader.int32());
|
|
95841
|
+
break;
|
|
95842
|
+
}
|
|
95843
|
+
default:
|
|
95844
|
+
reader.skipType(tag & 7);
|
|
95845
|
+
break;
|
|
95846
|
+
}
|
|
95847
|
+
}
|
|
95848
|
+
return message;
|
|
95849
|
+
};
|
|
95850
|
+
|
|
95851
|
+
/**
|
|
95852
|
+
* Decodes a Domain message from the specified reader or buffer, length delimited.
|
|
95853
|
+
* @function decodeDelimited
|
|
95854
|
+
* @memberof google.privacy.dlp.v2.Domain
|
|
95855
|
+
* @static
|
|
95856
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
95857
|
+
* @returns {google.privacy.dlp.v2.Domain} Domain
|
|
95858
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
95859
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
95860
|
+
*/
|
|
95861
|
+
Domain.decodeDelimited = function decodeDelimited(reader) {
|
|
95862
|
+
if (!(reader instanceof $Reader))
|
|
95863
|
+
reader = new $Reader(reader);
|
|
95864
|
+
return this.decode(reader, reader.uint32());
|
|
95865
|
+
};
|
|
95866
|
+
|
|
95867
|
+
/**
|
|
95868
|
+
* Verifies a Domain message.
|
|
95869
|
+
* @function verify
|
|
95870
|
+
* @memberof google.privacy.dlp.v2.Domain
|
|
95871
|
+
* @static
|
|
95872
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
95873
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
95874
|
+
*/
|
|
95875
|
+
Domain.verify = function verify(message) {
|
|
95876
|
+
if (typeof message !== "object" || message === null)
|
|
95877
|
+
return "object expected";
|
|
95878
|
+
if (message.category != null && message.hasOwnProperty("category"))
|
|
95879
|
+
switch (message.category) {
|
|
95880
|
+
default:
|
|
95881
|
+
return "category: enum value expected";
|
|
95882
|
+
case 0:
|
|
95883
|
+
case 1:
|
|
95884
|
+
case 2:
|
|
95885
|
+
break;
|
|
95886
|
+
}
|
|
95887
|
+
if (message.signals != null && message.hasOwnProperty("signals")) {
|
|
95888
|
+
if (!Array.isArray(message.signals))
|
|
95889
|
+
return "signals: array expected";
|
|
95890
|
+
for (var i = 0; i < message.signals.length; ++i)
|
|
95891
|
+
switch (message.signals[i]) {
|
|
95892
|
+
default:
|
|
95893
|
+
return "signals: enum value[] expected";
|
|
95894
|
+
case 0:
|
|
95895
|
+
case 1:
|
|
95896
|
+
case 2:
|
|
95897
|
+
case 3:
|
|
95898
|
+
case 4:
|
|
95899
|
+
case 5:
|
|
95900
|
+
case 6:
|
|
95901
|
+
break;
|
|
95902
|
+
}
|
|
95903
|
+
}
|
|
95904
|
+
return null;
|
|
95905
|
+
};
|
|
95906
|
+
|
|
95907
|
+
/**
|
|
95908
|
+
* Creates a Domain message from a plain object. Also converts values to their respective internal types.
|
|
95909
|
+
* @function fromObject
|
|
95910
|
+
* @memberof google.privacy.dlp.v2.Domain
|
|
95911
|
+
* @static
|
|
95912
|
+
* @param {Object.<string,*>} object Plain object
|
|
95913
|
+
* @returns {google.privacy.dlp.v2.Domain} Domain
|
|
95914
|
+
*/
|
|
95915
|
+
Domain.fromObject = function fromObject(object) {
|
|
95916
|
+
if (object instanceof $root.google.privacy.dlp.v2.Domain)
|
|
95917
|
+
return object;
|
|
95918
|
+
var message = new $root.google.privacy.dlp.v2.Domain();
|
|
95919
|
+
switch (object.category) {
|
|
95920
|
+
default:
|
|
95921
|
+
if (typeof object.category === "number") {
|
|
95922
|
+
message.category = object.category;
|
|
95923
|
+
break;
|
|
95924
|
+
}
|
|
95925
|
+
break;
|
|
95926
|
+
case "CATEGORY_UNSPECIFIED":
|
|
95927
|
+
case 0:
|
|
95928
|
+
message.category = 0;
|
|
95929
|
+
break;
|
|
95930
|
+
case "AI":
|
|
95931
|
+
case 1:
|
|
95932
|
+
message.category = 1;
|
|
95933
|
+
break;
|
|
95934
|
+
case "CODE":
|
|
95935
|
+
case 2:
|
|
95936
|
+
message.category = 2;
|
|
95937
|
+
break;
|
|
95938
|
+
}
|
|
95939
|
+
if (object.signals) {
|
|
95940
|
+
if (!Array.isArray(object.signals))
|
|
95941
|
+
throw TypeError(".google.privacy.dlp.v2.Domain.signals: array expected");
|
|
95942
|
+
message.signals = [];
|
|
95943
|
+
for (var i = 0; i < object.signals.length; ++i)
|
|
95944
|
+
switch (object.signals[i]) {
|
|
95945
|
+
default:
|
|
95946
|
+
if (typeof object.signals[i] === "number") {
|
|
95947
|
+
message.signals[i] = object.signals[i];
|
|
95948
|
+
break;
|
|
95949
|
+
}
|
|
95950
|
+
case "SIGNAL_UNSPECIFIED":
|
|
95951
|
+
case 0:
|
|
95952
|
+
message.signals[i] = 0;
|
|
95953
|
+
break;
|
|
95954
|
+
case "MODEL":
|
|
95955
|
+
case 1:
|
|
95956
|
+
message.signals[i] = 1;
|
|
95957
|
+
break;
|
|
95958
|
+
case "TEXT_EMBEDDING":
|
|
95959
|
+
case 2:
|
|
95960
|
+
message.signals[i] = 2;
|
|
95961
|
+
break;
|
|
95962
|
+
case "VERTEX_PLUGIN":
|
|
95963
|
+
case 3:
|
|
95964
|
+
message.signals[i] = 3;
|
|
95965
|
+
break;
|
|
95966
|
+
case "VECTOR_PLUGIN":
|
|
95967
|
+
case 4:
|
|
95968
|
+
message.signals[i] = 4;
|
|
95969
|
+
break;
|
|
95970
|
+
case "SOURCE_CODE":
|
|
95971
|
+
case 5:
|
|
95972
|
+
message.signals[i] = 5;
|
|
95973
|
+
break;
|
|
95974
|
+
case "SERVICE":
|
|
95975
|
+
case 6:
|
|
95976
|
+
message.signals[i] = 6;
|
|
95977
|
+
break;
|
|
95978
|
+
}
|
|
95979
|
+
}
|
|
95980
|
+
return message;
|
|
95981
|
+
};
|
|
95982
|
+
|
|
95983
|
+
/**
|
|
95984
|
+
* Creates a plain object from a Domain message. Also converts values to other types if specified.
|
|
95985
|
+
* @function toObject
|
|
95986
|
+
* @memberof google.privacy.dlp.v2.Domain
|
|
95987
|
+
* @static
|
|
95988
|
+
* @param {google.privacy.dlp.v2.Domain} message Domain
|
|
95989
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
95990
|
+
* @returns {Object.<string,*>} Plain object
|
|
95991
|
+
*/
|
|
95992
|
+
Domain.toObject = function toObject(message, options) {
|
|
95993
|
+
if (!options)
|
|
95994
|
+
options = {};
|
|
95995
|
+
var object = {};
|
|
95996
|
+
if (options.arrays || options.defaults)
|
|
95997
|
+
object.signals = [];
|
|
95998
|
+
if (options.defaults)
|
|
95999
|
+
object.category = options.enums === String ? "CATEGORY_UNSPECIFIED" : 0;
|
|
96000
|
+
if (message.category != null && message.hasOwnProperty("category"))
|
|
96001
|
+
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;
|
|
96002
|
+
if (message.signals && message.signals.length) {
|
|
96003
|
+
object.signals = [];
|
|
96004
|
+
for (var j = 0; j < message.signals.length; ++j)
|
|
96005
|
+
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];
|
|
96006
|
+
}
|
|
96007
|
+
return object;
|
|
96008
|
+
};
|
|
96009
|
+
|
|
96010
|
+
/**
|
|
96011
|
+
* Converts this Domain to JSON.
|
|
96012
|
+
* @function toJSON
|
|
96013
|
+
* @memberof google.privacy.dlp.v2.Domain
|
|
96014
|
+
* @instance
|
|
96015
|
+
* @returns {Object.<string,*>} JSON object
|
|
96016
|
+
*/
|
|
96017
|
+
Domain.prototype.toJSON = function toJSON() {
|
|
96018
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
96019
|
+
};
|
|
96020
|
+
|
|
96021
|
+
/**
|
|
96022
|
+
* Gets the default type url for Domain
|
|
96023
|
+
* @function getTypeUrl
|
|
96024
|
+
* @memberof google.privacy.dlp.v2.Domain
|
|
96025
|
+
* @static
|
|
96026
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
96027
|
+
* @returns {string} The default type url
|
|
96028
|
+
*/
|
|
96029
|
+
Domain.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
96030
|
+
if (typeUrlPrefix === undefined) {
|
|
96031
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
96032
|
+
}
|
|
96033
|
+
return typeUrlPrefix + "/google.privacy.dlp.v2.Domain";
|
|
96034
|
+
};
|
|
96035
|
+
|
|
96036
|
+
/**
|
|
96037
|
+
* Category enum.
|
|
96038
|
+
* @name google.privacy.dlp.v2.Domain.Category
|
|
96039
|
+
* @enum {number}
|
|
96040
|
+
* @property {number} CATEGORY_UNSPECIFIED=0 CATEGORY_UNSPECIFIED value
|
|
96041
|
+
* @property {number} AI=1 AI value
|
|
96042
|
+
* @property {number} CODE=2 CODE value
|
|
96043
|
+
*/
|
|
96044
|
+
Domain.Category = (function() {
|
|
96045
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
96046
|
+
values[valuesById[0] = "CATEGORY_UNSPECIFIED"] = 0;
|
|
96047
|
+
values[valuesById[1] = "AI"] = 1;
|
|
96048
|
+
values[valuesById[2] = "CODE"] = 2;
|
|
96049
|
+
return values;
|
|
96050
|
+
})();
|
|
96051
|
+
|
|
96052
|
+
/**
|
|
96053
|
+
* Signal enum.
|
|
96054
|
+
* @name google.privacy.dlp.v2.Domain.Signal
|
|
96055
|
+
* @enum {number}
|
|
96056
|
+
* @property {number} SIGNAL_UNSPECIFIED=0 SIGNAL_UNSPECIFIED value
|
|
96057
|
+
* @property {number} MODEL=1 MODEL value
|
|
96058
|
+
* @property {number} TEXT_EMBEDDING=2 TEXT_EMBEDDING value
|
|
96059
|
+
* @property {number} VERTEX_PLUGIN=3 VERTEX_PLUGIN value
|
|
96060
|
+
* @property {number} VECTOR_PLUGIN=4 VECTOR_PLUGIN value
|
|
96061
|
+
* @property {number} SOURCE_CODE=5 SOURCE_CODE value
|
|
96062
|
+
* @property {number} SERVICE=6 SERVICE value
|
|
96063
|
+
*/
|
|
96064
|
+
Domain.Signal = (function() {
|
|
96065
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
96066
|
+
values[valuesById[0] = "SIGNAL_UNSPECIFIED"] = 0;
|
|
96067
|
+
values[valuesById[1] = "MODEL"] = 1;
|
|
96068
|
+
values[valuesById[2] = "TEXT_EMBEDDING"] = 2;
|
|
96069
|
+
values[valuesById[3] = "VERTEX_PLUGIN"] = 3;
|
|
96070
|
+
values[valuesById[4] = "VECTOR_PLUGIN"] = 4;
|
|
96071
|
+
values[valuesById[5] = "SOURCE_CODE"] = 5;
|
|
96072
|
+
values[valuesById[6] = "SERVICE"] = 6;
|
|
96073
|
+
return values;
|
|
96074
|
+
})();
|
|
96075
|
+
|
|
96076
|
+
return Domain;
|
|
96077
|
+
})();
|
|
96078
|
+
|
|
95042
96079
|
v2.InfoType = (function() {
|
|
95043
96080
|
|
|
95044
96081
|
/**
|
|
@@ -105536,6 +106573,7 @@
|
|
|
105536
106573
|
* @interface ICommonLanguageSettings
|
|
105537
106574
|
* @property {string|null} [referenceDocsUri] CommonLanguageSettings referenceDocsUri
|
|
105538
106575
|
* @property {Array.<google.api.ClientLibraryDestination>|null} [destinations] CommonLanguageSettings destinations
|
|
106576
|
+
* @property {google.api.ISelectiveGapicGeneration|null} [selectiveGapicGeneration] CommonLanguageSettings selectiveGapicGeneration
|
|
105539
106577
|
*/
|
|
105540
106578
|
|
|
105541
106579
|
/**
|
|
@@ -105570,6 +106608,14 @@
|
|
|
105570
106608
|
*/
|
|
105571
106609
|
CommonLanguageSettings.prototype.destinations = $util.emptyArray;
|
|
105572
106610
|
|
|
106611
|
+
/**
|
|
106612
|
+
* CommonLanguageSettings selectiveGapicGeneration.
|
|
106613
|
+
* @member {google.api.ISelectiveGapicGeneration|null|undefined} selectiveGapicGeneration
|
|
106614
|
+
* @memberof google.api.CommonLanguageSettings
|
|
106615
|
+
* @instance
|
|
106616
|
+
*/
|
|
106617
|
+
CommonLanguageSettings.prototype.selectiveGapicGeneration = null;
|
|
106618
|
+
|
|
105573
106619
|
/**
|
|
105574
106620
|
* Creates a new CommonLanguageSettings instance using the specified properties.
|
|
105575
106621
|
* @function create
|
|
@@ -105602,6 +106648,8 @@
|
|
|
105602
106648
|
writer.int32(message.destinations[i]);
|
|
105603
106649
|
writer.ldelim();
|
|
105604
106650
|
}
|
|
106651
|
+
if (message.selectiveGapicGeneration != null && Object.hasOwnProperty.call(message, "selectiveGapicGeneration"))
|
|
106652
|
+
$root.google.api.SelectiveGapicGeneration.encode(message.selectiveGapicGeneration, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
105605
106653
|
return writer;
|
|
105606
106654
|
};
|
|
105607
106655
|
|
|
@@ -105653,6 +106701,10 @@
|
|
|
105653
106701
|
message.destinations.push(reader.int32());
|
|
105654
106702
|
break;
|
|
105655
106703
|
}
|
|
106704
|
+
case 3: {
|
|
106705
|
+
message.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.decode(reader, reader.uint32());
|
|
106706
|
+
break;
|
|
106707
|
+
}
|
|
105656
106708
|
default:
|
|
105657
106709
|
reader.skipType(tag & 7);
|
|
105658
106710
|
break;
|
|
@@ -105704,6 +106756,11 @@
|
|
|
105704
106756
|
break;
|
|
105705
106757
|
}
|
|
105706
106758
|
}
|
|
106759
|
+
if (message.selectiveGapicGeneration != null && message.hasOwnProperty("selectiveGapicGeneration")) {
|
|
106760
|
+
var error = $root.google.api.SelectiveGapicGeneration.verify(message.selectiveGapicGeneration);
|
|
106761
|
+
if (error)
|
|
106762
|
+
return "selectiveGapicGeneration." + error;
|
|
106763
|
+
}
|
|
105707
106764
|
return null;
|
|
105708
106765
|
};
|
|
105709
106766
|
|
|
@@ -105746,6 +106803,11 @@
|
|
|
105746
106803
|
break;
|
|
105747
106804
|
}
|
|
105748
106805
|
}
|
|
106806
|
+
if (object.selectiveGapicGeneration != null) {
|
|
106807
|
+
if (typeof object.selectiveGapicGeneration !== "object")
|
|
106808
|
+
throw TypeError(".google.api.CommonLanguageSettings.selectiveGapicGeneration: object expected");
|
|
106809
|
+
message.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.fromObject(object.selectiveGapicGeneration);
|
|
106810
|
+
}
|
|
105749
106811
|
return message;
|
|
105750
106812
|
};
|
|
105751
106813
|
|
|
@@ -105764,8 +106826,10 @@
|
|
|
105764
106826
|
var object = {};
|
|
105765
106827
|
if (options.arrays || options.defaults)
|
|
105766
106828
|
object.destinations = [];
|
|
105767
|
-
if (options.defaults)
|
|
106829
|
+
if (options.defaults) {
|
|
105768
106830
|
object.referenceDocsUri = "";
|
|
106831
|
+
object.selectiveGapicGeneration = null;
|
|
106832
|
+
}
|
|
105769
106833
|
if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
|
|
105770
106834
|
object.referenceDocsUri = message.referenceDocsUri;
|
|
105771
106835
|
if (message.destinations && message.destinations.length) {
|
|
@@ -105773,6 +106837,8 @@
|
|
|
105773
106837
|
for (var j = 0; j < message.destinations.length; ++j)
|
|
105774
106838
|
object.destinations[j] = options.enums === String ? $root.google.api.ClientLibraryDestination[message.destinations[j]] === undefined ? message.destinations[j] : $root.google.api.ClientLibraryDestination[message.destinations[j]] : message.destinations[j];
|
|
105775
106839
|
}
|
|
106840
|
+
if (message.selectiveGapicGeneration != null && message.hasOwnProperty("selectiveGapicGeneration"))
|
|
106841
|
+
object.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.toObject(message.selectiveGapicGeneration, options);
|
|
105776
106842
|
return object;
|
|
105777
106843
|
};
|
|
105778
106844
|
|
|
@@ -107595,6 +108661,7 @@
|
|
|
107595
108661
|
* @memberof google.api
|
|
107596
108662
|
* @interface IPythonSettings
|
|
107597
108663
|
* @property {google.api.ICommonLanguageSettings|null} [common] PythonSettings common
|
|
108664
|
+
* @property {google.api.PythonSettings.IExperimentalFeatures|null} [experimentalFeatures] PythonSettings experimentalFeatures
|
|
107598
108665
|
*/
|
|
107599
108666
|
|
|
107600
108667
|
/**
|
|
@@ -107620,6 +108687,14 @@
|
|
|
107620
108687
|
*/
|
|
107621
108688
|
PythonSettings.prototype.common = null;
|
|
107622
108689
|
|
|
108690
|
+
/**
|
|
108691
|
+
* PythonSettings experimentalFeatures.
|
|
108692
|
+
* @member {google.api.PythonSettings.IExperimentalFeatures|null|undefined} experimentalFeatures
|
|
108693
|
+
* @memberof google.api.PythonSettings
|
|
108694
|
+
* @instance
|
|
108695
|
+
*/
|
|
108696
|
+
PythonSettings.prototype.experimentalFeatures = null;
|
|
108697
|
+
|
|
107623
108698
|
/**
|
|
107624
108699
|
* Creates a new PythonSettings instance using the specified properties.
|
|
107625
108700
|
* @function create
|
|
@@ -107646,6 +108721,8 @@
|
|
|
107646
108721
|
writer = $Writer.create();
|
|
107647
108722
|
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
|
|
107648
108723
|
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
108724
|
+
if (message.experimentalFeatures != null && Object.hasOwnProperty.call(message, "experimentalFeatures"))
|
|
108725
|
+
$root.google.api.PythonSettings.ExperimentalFeatures.encode(message.experimentalFeatures, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
107649
108726
|
return writer;
|
|
107650
108727
|
};
|
|
107651
108728
|
|
|
@@ -107686,6 +108763,10 @@
|
|
|
107686
108763
|
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
|
107687
108764
|
break;
|
|
107688
108765
|
}
|
|
108766
|
+
case 2: {
|
|
108767
|
+
message.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.decode(reader, reader.uint32());
|
|
108768
|
+
break;
|
|
108769
|
+
}
|
|
107689
108770
|
default:
|
|
107690
108771
|
reader.skipType(tag & 7);
|
|
107691
108772
|
break;
|
|
@@ -107726,6 +108807,11 @@
|
|
|
107726
108807
|
if (error)
|
|
107727
108808
|
return "common." + error;
|
|
107728
108809
|
}
|
|
108810
|
+
if (message.experimentalFeatures != null && message.hasOwnProperty("experimentalFeatures")) {
|
|
108811
|
+
var error = $root.google.api.PythonSettings.ExperimentalFeatures.verify(message.experimentalFeatures);
|
|
108812
|
+
if (error)
|
|
108813
|
+
return "experimentalFeatures." + error;
|
|
108814
|
+
}
|
|
107729
108815
|
return null;
|
|
107730
108816
|
};
|
|
107731
108817
|
|
|
@@ -107746,6 +108832,11 @@
|
|
|
107746
108832
|
throw TypeError(".google.api.PythonSettings.common: object expected");
|
|
107747
108833
|
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
|
|
107748
108834
|
}
|
|
108835
|
+
if (object.experimentalFeatures != null) {
|
|
108836
|
+
if (typeof object.experimentalFeatures !== "object")
|
|
108837
|
+
throw TypeError(".google.api.PythonSettings.experimentalFeatures: object expected");
|
|
108838
|
+
message.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.fromObject(object.experimentalFeatures);
|
|
108839
|
+
}
|
|
107749
108840
|
return message;
|
|
107750
108841
|
};
|
|
107751
108842
|
|
|
@@ -107762,10 +108853,14 @@
|
|
|
107762
108853
|
if (!options)
|
|
107763
108854
|
options = {};
|
|
107764
108855
|
var object = {};
|
|
107765
|
-
if (options.defaults)
|
|
108856
|
+
if (options.defaults) {
|
|
107766
108857
|
object.common = null;
|
|
108858
|
+
object.experimentalFeatures = null;
|
|
108859
|
+
}
|
|
107767
108860
|
if (message.common != null && message.hasOwnProperty("common"))
|
|
107768
108861
|
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
|
|
108862
|
+
if (message.experimentalFeatures != null && message.hasOwnProperty("experimentalFeatures"))
|
|
108863
|
+
object.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.toObject(message.experimentalFeatures, options);
|
|
107769
108864
|
return object;
|
|
107770
108865
|
};
|
|
107771
108866
|
|
|
@@ -107795,6 +108890,258 @@
|
|
|
107795
108890
|
return typeUrlPrefix + "/google.api.PythonSettings";
|
|
107796
108891
|
};
|
|
107797
108892
|
|
|
108893
|
+
PythonSettings.ExperimentalFeatures = (function() {
|
|
108894
|
+
|
|
108895
|
+
/**
|
|
108896
|
+
* Properties of an ExperimentalFeatures.
|
|
108897
|
+
* @memberof google.api.PythonSettings
|
|
108898
|
+
* @interface IExperimentalFeatures
|
|
108899
|
+
* @property {boolean|null} [restAsyncIoEnabled] ExperimentalFeatures restAsyncIoEnabled
|
|
108900
|
+
* @property {boolean|null} [protobufPythonicTypesEnabled] ExperimentalFeatures protobufPythonicTypesEnabled
|
|
108901
|
+
* @property {boolean|null} [unversionedPackageDisabled] ExperimentalFeatures unversionedPackageDisabled
|
|
108902
|
+
*/
|
|
108903
|
+
|
|
108904
|
+
/**
|
|
108905
|
+
* Constructs a new ExperimentalFeatures.
|
|
108906
|
+
* @memberof google.api.PythonSettings
|
|
108907
|
+
* @classdesc Represents an ExperimentalFeatures.
|
|
108908
|
+
* @implements IExperimentalFeatures
|
|
108909
|
+
* @constructor
|
|
108910
|
+
* @param {google.api.PythonSettings.IExperimentalFeatures=} [properties] Properties to set
|
|
108911
|
+
*/
|
|
108912
|
+
function ExperimentalFeatures(properties) {
|
|
108913
|
+
if (properties)
|
|
108914
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
108915
|
+
if (properties[keys[i]] != null)
|
|
108916
|
+
this[keys[i]] = properties[keys[i]];
|
|
108917
|
+
}
|
|
108918
|
+
|
|
108919
|
+
/**
|
|
108920
|
+
* ExperimentalFeatures restAsyncIoEnabled.
|
|
108921
|
+
* @member {boolean} restAsyncIoEnabled
|
|
108922
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
108923
|
+
* @instance
|
|
108924
|
+
*/
|
|
108925
|
+
ExperimentalFeatures.prototype.restAsyncIoEnabled = false;
|
|
108926
|
+
|
|
108927
|
+
/**
|
|
108928
|
+
* ExperimentalFeatures protobufPythonicTypesEnabled.
|
|
108929
|
+
* @member {boolean} protobufPythonicTypesEnabled
|
|
108930
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
108931
|
+
* @instance
|
|
108932
|
+
*/
|
|
108933
|
+
ExperimentalFeatures.prototype.protobufPythonicTypesEnabled = false;
|
|
108934
|
+
|
|
108935
|
+
/**
|
|
108936
|
+
* ExperimentalFeatures unversionedPackageDisabled.
|
|
108937
|
+
* @member {boolean} unversionedPackageDisabled
|
|
108938
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
108939
|
+
* @instance
|
|
108940
|
+
*/
|
|
108941
|
+
ExperimentalFeatures.prototype.unversionedPackageDisabled = false;
|
|
108942
|
+
|
|
108943
|
+
/**
|
|
108944
|
+
* Creates a new ExperimentalFeatures instance using the specified properties.
|
|
108945
|
+
* @function create
|
|
108946
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
108947
|
+
* @static
|
|
108948
|
+
* @param {google.api.PythonSettings.IExperimentalFeatures=} [properties] Properties to set
|
|
108949
|
+
* @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures instance
|
|
108950
|
+
*/
|
|
108951
|
+
ExperimentalFeatures.create = function create(properties) {
|
|
108952
|
+
return new ExperimentalFeatures(properties);
|
|
108953
|
+
};
|
|
108954
|
+
|
|
108955
|
+
/**
|
|
108956
|
+
* Encodes the specified ExperimentalFeatures message. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
|
|
108957
|
+
* @function encode
|
|
108958
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
108959
|
+
* @static
|
|
108960
|
+
* @param {google.api.PythonSettings.IExperimentalFeatures} message ExperimentalFeatures message or plain object to encode
|
|
108961
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
108962
|
+
* @returns {$protobuf.Writer} Writer
|
|
108963
|
+
*/
|
|
108964
|
+
ExperimentalFeatures.encode = function encode(message, writer) {
|
|
108965
|
+
if (!writer)
|
|
108966
|
+
writer = $Writer.create();
|
|
108967
|
+
if (message.restAsyncIoEnabled != null && Object.hasOwnProperty.call(message, "restAsyncIoEnabled"))
|
|
108968
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.restAsyncIoEnabled);
|
|
108969
|
+
if (message.protobufPythonicTypesEnabled != null && Object.hasOwnProperty.call(message, "protobufPythonicTypesEnabled"))
|
|
108970
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.protobufPythonicTypesEnabled);
|
|
108971
|
+
if (message.unversionedPackageDisabled != null && Object.hasOwnProperty.call(message, "unversionedPackageDisabled"))
|
|
108972
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.unversionedPackageDisabled);
|
|
108973
|
+
return writer;
|
|
108974
|
+
};
|
|
108975
|
+
|
|
108976
|
+
/**
|
|
108977
|
+
* Encodes the specified ExperimentalFeatures message, length delimited. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
|
|
108978
|
+
* @function encodeDelimited
|
|
108979
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
108980
|
+
* @static
|
|
108981
|
+
* @param {google.api.PythonSettings.IExperimentalFeatures} message ExperimentalFeatures message or plain object to encode
|
|
108982
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
108983
|
+
* @returns {$protobuf.Writer} Writer
|
|
108984
|
+
*/
|
|
108985
|
+
ExperimentalFeatures.encodeDelimited = function encodeDelimited(message, writer) {
|
|
108986
|
+
return this.encode(message, writer).ldelim();
|
|
108987
|
+
};
|
|
108988
|
+
|
|
108989
|
+
/**
|
|
108990
|
+
* Decodes an ExperimentalFeatures message from the specified reader or buffer.
|
|
108991
|
+
* @function decode
|
|
108992
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
108993
|
+
* @static
|
|
108994
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
108995
|
+
* @param {number} [length] Message length if known beforehand
|
|
108996
|
+
* @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
|
|
108997
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
108998
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
108999
|
+
*/
|
|
109000
|
+
ExperimentalFeatures.decode = function decode(reader, length, error) {
|
|
109001
|
+
if (!(reader instanceof $Reader))
|
|
109002
|
+
reader = $Reader.create(reader);
|
|
109003
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings.ExperimentalFeatures();
|
|
109004
|
+
while (reader.pos < end) {
|
|
109005
|
+
var tag = reader.uint32();
|
|
109006
|
+
if (tag === error)
|
|
109007
|
+
break;
|
|
109008
|
+
switch (tag >>> 3) {
|
|
109009
|
+
case 1: {
|
|
109010
|
+
message.restAsyncIoEnabled = reader.bool();
|
|
109011
|
+
break;
|
|
109012
|
+
}
|
|
109013
|
+
case 2: {
|
|
109014
|
+
message.protobufPythonicTypesEnabled = reader.bool();
|
|
109015
|
+
break;
|
|
109016
|
+
}
|
|
109017
|
+
case 3: {
|
|
109018
|
+
message.unversionedPackageDisabled = reader.bool();
|
|
109019
|
+
break;
|
|
109020
|
+
}
|
|
109021
|
+
default:
|
|
109022
|
+
reader.skipType(tag & 7);
|
|
109023
|
+
break;
|
|
109024
|
+
}
|
|
109025
|
+
}
|
|
109026
|
+
return message;
|
|
109027
|
+
};
|
|
109028
|
+
|
|
109029
|
+
/**
|
|
109030
|
+
* Decodes an ExperimentalFeatures message from the specified reader or buffer, length delimited.
|
|
109031
|
+
* @function decodeDelimited
|
|
109032
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
109033
|
+
* @static
|
|
109034
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
109035
|
+
* @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
|
|
109036
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
109037
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
109038
|
+
*/
|
|
109039
|
+
ExperimentalFeatures.decodeDelimited = function decodeDelimited(reader) {
|
|
109040
|
+
if (!(reader instanceof $Reader))
|
|
109041
|
+
reader = new $Reader(reader);
|
|
109042
|
+
return this.decode(reader, reader.uint32());
|
|
109043
|
+
};
|
|
109044
|
+
|
|
109045
|
+
/**
|
|
109046
|
+
* Verifies an ExperimentalFeatures message.
|
|
109047
|
+
* @function verify
|
|
109048
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
109049
|
+
* @static
|
|
109050
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
109051
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
109052
|
+
*/
|
|
109053
|
+
ExperimentalFeatures.verify = function verify(message) {
|
|
109054
|
+
if (typeof message !== "object" || message === null)
|
|
109055
|
+
return "object expected";
|
|
109056
|
+
if (message.restAsyncIoEnabled != null && message.hasOwnProperty("restAsyncIoEnabled"))
|
|
109057
|
+
if (typeof message.restAsyncIoEnabled !== "boolean")
|
|
109058
|
+
return "restAsyncIoEnabled: boolean expected";
|
|
109059
|
+
if (message.protobufPythonicTypesEnabled != null && message.hasOwnProperty("protobufPythonicTypesEnabled"))
|
|
109060
|
+
if (typeof message.protobufPythonicTypesEnabled !== "boolean")
|
|
109061
|
+
return "protobufPythonicTypesEnabled: boolean expected";
|
|
109062
|
+
if (message.unversionedPackageDisabled != null && message.hasOwnProperty("unversionedPackageDisabled"))
|
|
109063
|
+
if (typeof message.unversionedPackageDisabled !== "boolean")
|
|
109064
|
+
return "unversionedPackageDisabled: boolean expected";
|
|
109065
|
+
return null;
|
|
109066
|
+
};
|
|
109067
|
+
|
|
109068
|
+
/**
|
|
109069
|
+
* Creates an ExperimentalFeatures message from a plain object. Also converts values to their respective internal types.
|
|
109070
|
+
* @function fromObject
|
|
109071
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
109072
|
+
* @static
|
|
109073
|
+
* @param {Object.<string,*>} object Plain object
|
|
109074
|
+
* @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
|
|
109075
|
+
*/
|
|
109076
|
+
ExperimentalFeatures.fromObject = function fromObject(object) {
|
|
109077
|
+
if (object instanceof $root.google.api.PythonSettings.ExperimentalFeatures)
|
|
109078
|
+
return object;
|
|
109079
|
+
var message = new $root.google.api.PythonSettings.ExperimentalFeatures();
|
|
109080
|
+
if (object.restAsyncIoEnabled != null)
|
|
109081
|
+
message.restAsyncIoEnabled = Boolean(object.restAsyncIoEnabled);
|
|
109082
|
+
if (object.protobufPythonicTypesEnabled != null)
|
|
109083
|
+
message.protobufPythonicTypesEnabled = Boolean(object.protobufPythonicTypesEnabled);
|
|
109084
|
+
if (object.unversionedPackageDisabled != null)
|
|
109085
|
+
message.unversionedPackageDisabled = Boolean(object.unversionedPackageDisabled);
|
|
109086
|
+
return message;
|
|
109087
|
+
};
|
|
109088
|
+
|
|
109089
|
+
/**
|
|
109090
|
+
* Creates a plain object from an ExperimentalFeatures message. Also converts values to other types if specified.
|
|
109091
|
+
* @function toObject
|
|
109092
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
109093
|
+
* @static
|
|
109094
|
+
* @param {google.api.PythonSettings.ExperimentalFeatures} message ExperimentalFeatures
|
|
109095
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
109096
|
+
* @returns {Object.<string,*>} Plain object
|
|
109097
|
+
*/
|
|
109098
|
+
ExperimentalFeatures.toObject = function toObject(message, options) {
|
|
109099
|
+
if (!options)
|
|
109100
|
+
options = {};
|
|
109101
|
+
var object = {};
|
|
109102
|
+
if (options.defaults) {
|
|
109103
|
+
object.restAsyncIoEnabled = false;
|
|
109104
|
+
object.protobufPythonicTypesEnabled = false;
|
|
109105
|
+
object.unversionedPackageDisabled = false;
|
|
109106
|
+
}
|
|
109107
|
+
if (message.restAsyncIoEnabled != null && message.hasOwnProperty("restAsyncIoEnabled"))
|
|
109108
|
+
object.restAsyncIoEnabled = message.restAsyncIoEnabled;
|
|
109109
|
+
if (message.protobufPythonicTypesEnabled != null && message.hasOwnProperty("protobufPythonicTypesEnabled"))
|
|
109110
|
+
object.protobufPythonicTypesEnabled = message.protobufPythonicTypesEnabled;
|
|
109111
|
+
if (message.unversionedPackageDisabled != null && message.hasOwnProperty("unversionedPackageDisabled"))
|
|
109112
|
+
object.unversionedPackageDisabled = message.unversionedPackageDisabled;
|
|
109113
|
+
return object;
|
|
109114
|
+
};
|
|
109115
|
+
|
|
109116
|
+
/**
|
|
109117
|
+
* Converts this ExperimentalFeatures to JSON.
|
|
109118
|
+
* @function toJSON
|
|
109119
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
109120
|
+
* @instance
|
|
109121
|
+
* @returns {Object.<string,*>} JSON object
|
|
109122
|
+
*/
|
|
109123
|
+
ExperimentalFeatures.prototype.toJSON = function toJSON() {
|
|
109124
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
109125
|
+
};
|
|
109126
|
+
|
|
109127
|
+
/**
|
|
109128
|
+
* Gets the default type url for ExperimentalFeatures
|
|
109129
|
+
* @function getTypeUrl
|
|
109130
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
109131
|
+
* @static
|
|
109132
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
109133
|
+
* @returns {string} The default type url
|
|
109134
|
+
*/
|
|
109135
|
+
ExperimentalFeatures.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
109136
|
+
if (typeUrlPrefix === undefined) {
|
|
109137
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
109138
|
+
}
|
|
109139
|
+
return typeUrlPrefix + "/google.api.PythonSettings.ExperimentalFeatures";
|
|
109140
|
+
};
|
|
109141
|
+
|
|
109142
|
+
return ExperimentalFeatures;
|
|
109143
|
+
})();
|
|
109144
|
+
|
|
107798
109145
|
return PythonSettings;
|
|
107799
109146
|
})();
|
|
107800
109147
|
|
|
@@ -108671,6 +110018,7 @@
|
|
|
108671
110018
|
* @memberof google.api
|
|
108672
110019
|
* @interface IGoSettings
|
|
108673
110020
|
* @property {google.api.ICommonLanguageSettings|null} [common] GoSettings common
|
|
110021
|
+
* @property {Object.<string,string>|null} [renamedServices] GoSettings renamedServices
|
|
108674
110022
|
*/
|
|
108675
110023
|
|
|
108676
110024
|
/**
|
|
@@ -108682,6 +110030,7 @@
|
|
|
108682
110030
|
* @param {google.api.IGoSettings=} [properties] Properties to set
|
|
108683
110031
|
*/
|
|
108684
110032
|
function GoSettings(properties) {
|
|
110033
|
+
this.renamedServices = {};
|
|
108685
110034
|
if (properties)
|
|
108686
110035
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
108687
110036
|
if (properties[keys[i]] != null)
|
|
@@ -108696,6 +110045,14 @@
|
|
|
108696
110045
|
*/
|
|
108697
110046
|
GoSettings.prototype.common = null;
|
|
108698
110047
|
|
|
110048
|
+
/**
|
|
110049
|
+
* GoSettings renamedServices.
|
|
110050
|
+
* @member {Object.<string,string>} renamedServices
|
|
110051
|
+
* @memberof google.api.GoSettings
|
|
110052
|
+
* @instance
|
|
110053
|
+
*/
|
|
110054
|
+
GoSettings.prototype.renamedServices = $util.emptyObject;
|
|
110055
|
+
|
|
108699
110056
|
/**
|
|
108700
110057
|
* Creates a new GoSettings instance using the specified properties.
|
|
108701
110058
|
* @function create
|
|
@@ -108722,6 +110079,9 @@
|
|
|
108722
110079
|
writer = $Writer.create();
|
|
108723
110080
|
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
|
|
108724
110081
|
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
110082
|
+
if (message.renamedServices != null && Object.hasOwnProperty.call(message, "renamedServices"))
|
|
110083
|
+
for (var keys = Object.keys(message.renamedServices), i = 0; i < keys.length; ++i)
|
|
110084
|
+
writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.renamedServices[keys[i]]).ldelim();
|
|
108725
110085
|
return writer;
|
|
108726
110086
|
};
|
|
108727
110087
|
|
|
@@ -108752,7 +110112,7 @@
|
|
|
108752
110112
|
GoSettings.decode = function decode(reader, length, error) {
|
|
108753
110113
|
if (!(reader instanceof $Reader))
|
|
108754
110114
|
reader = $Reader.create(reader);
|
|
108755
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings();
|
|
110115
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings(), key, value;
|
|
108756
110116
|
while (reader.pos < end) {
|
|
108757
110117
|
var tag = reader.uint32();
|
|
108758
110118
|
if (tag === error)
|
|
@@ -108762,6 +110122,29 @@
|
|
|
108762
110122
|
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
|
108763
110123
|
break;
|
|
108764
110124
|
}
|
|
110125
|
+
case 2: {
|
|
110126
|
+
if (message.renamedServices === $util.emptyObject)
|
|
110127
|
+
message.renamedServices = {};
|
|
110128
|
+
var end2 = reader.uint32() + reader.pos;
|
|
110129
|
+
key = "";
|
|
110130
|
+
value = "";
|
|
110131
|
+
while (reader.pos < end2) {
|
|
110132
|
+
var tag2 = reader.uint32();
|
|
110133
|
+
switch (tag2 >>> 3) {
|
|
110134
|
+
case 1:
|
|
110135
|
+
key = reader.string();
|
|
110136
|
+
break;
|
|
110137
|
+
case 2:
|
|
110138
|
+
value = reader.string();
|
|
110139
|
+
break;
|
|
110140
|
+
default:
|
|
110141
|
+
reader.skipType(tag2 & 7);
|
|
110142
|
+
break;
|
|
110143
|
+
}
|
|
110144
|
+
}
|
|
110145
|
+
message.renamedServices[key] = value;
|
|
110146
|
+
break;
|
|
110147
|
+
}
|
|
108765
110148
|
default:
|
|
108766
110149
|
reader.skipType(tag & 7);
|
|
108767
110150
|
break;
|
|
@@ -108802,6 +110185,14 @@
|
|
|
108802
110185
|
if (error)
|
|
108803
110186
|
return "common." + error;
|
|
108804
110187
|
}
|
|
110188
|
+
if (message.renamedServices != null && message.hasOwnProperty("renamedServices")) {
|
|
110189
|
+
if (!$util.isObject(message.renamedServices))
|
|
110190
|
+
return "renamedServices: object expected";
|
|
110191
|
+
var key = Object.keys(message.renamedServices);
|
|
110192
|
+
for (var i = 0; i < key.length; ++i)
|
|
110193
|
+
if (!$util.isString(message.renamedServices[key[i]]))
|
|
110194
|
+
return "renamedServices: string{k:string} expected";
|
|
110195
|
+
}
|
|
108805
110196
|
return null;
|
|
108806
110197
|
};
|
|
108807
110198
|
|
|
@@ -108822,6 +110213,13 @@
|
|
|
108822
110213
|
throw TypeError(".google.api.GoSettings.common: object expected");
|
|
108823
110214
|
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
|
|
108824
110215
|
}
|
|
110216
|
+
if (object.renamedServices) {
|
|
110217
|
+
if (typeof object.renamedServices !== "object")
|
|
110218
|
+
throw TypeError(".google.api.GoSettings.renamedServices: object expected");
|
|
110219
|
+
message.renamedServices = {};
|
|
110220
|
+
for (var keys = Object.keys(object.renamedServices), i = 0; i < keys.length; ++i)
|
|
110221
|
+
message.renamedServices[keys[i]] = String(object.renamedServices[keys[i]]);
|
|
110222
|
+
}
|
|
108825
110223
|
return message;
|
|
108826
110224
|
};
|
|
108827
110225
|
|
|
@@ -108838,10 +110236,18 @@
|
|
|
108838
110236
|
if (!options)
|
|
108839
110237
|
options = {};
|
|
108840
110238
|
var object = {};
|
|
110239
|
+
if (options.objects || options.defaults)
|
|
110240
|
+
object.renamedServices = {};
|
|
108841
110241
|
if (options.defaults)
|
|
108842
110242
|
object.common = null;
|
|
108843
110243
|
if (message.common != null && message.hasOwnProperty("common"))
|
|
108844
110244
|
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
|
|
110245
|
+
var keys2;
|
|
110246
|
+
if (message.renamedServices && (keys2 = Object.keys(message.renamedServices)).length) {
|
|
110247
|
+
object.renamedServices = {};
|
|
110248
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
110249
|
+
object.renamedServices[keys2[j]] = message.renamedServices[keys2[j]];
|
|
110250
|
+
}
|
|
108845
110251
|
return object;
|
|
108846
110252
|
};
|
|
108847
110253
|
|
|
@@ -109480,6 +110886,251 @@
|
|
|
109480
110886
|
return values;
|
|
109481
110887
|
})();
|
|
109482
110888
|
|
|
110889
|
+
api.SelectiveGapicGeneration = (function() {
|
|
110890
|
+
|
|
110891
|
+
/**
|
|
110892
|
+
* Properties of a SelectiveGapicGeneration.
|
|
110893
|
+
* @memberof google.api
|
|
110894
|
+
* @interface ISelectiveGapicGeneration
|
|
110895
|
+
* @property {Array.<string>|null} [methods] SelectiveGapicGeneration methods
|
|
110896
|
+
* @property {boolean|null} [generateOmittedAsInternal] SelectiveGapicGeneration generateOmittedAsInternal
|
|
110897
|
+
*/
|
|
110898
|
+
|
|
110899
|
+
/**
|
|
110900
|
+
* Constructs a new SelectiveGapicGeneration.
|
|
110901
|
+
* @memberof google.api
|
|
110902
|
+
* @classdesc Represents a SelectiveGapicGeneration.
|
|
110903
|
+
* @implements ISelectiveGapicGeneration
|
|
110904
|
+
* @constructor
|
|
110905
|
+
* @param {google.api.ISelectiveGapicGeneration=} [properties] Properties to set
|
|
110906
|
+
*/
|
|
110907
|
+
function SelectiveGapicGeneration(properties) {
|
|
110908
|
+
this.methods = [];
|
|
110909
|
+
if (properties)
|
|
110910
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
110911
|
+
if (properties[keys[i]] != null)
|
|
110912
|
+
this[keys[i]] = properties[keys[i]];
|
|
110913
|
+
}
|
|
110914
|
+
|
|
110915
|
+
/**
|
|
110916
|
+
* SelectiveGapicGeneration methods.
|
|
110917
|
+
* @member {Array.<string>} methods
|
|
110918
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
110919
|
+
* @instance
|
|
110920
|
+
*/
|
|
110921
|
+
SelectiveGapicGeneration.prototype.methods = $util.emptyArray;
|
|
110922
|
+
|
|
110923
|
+
/**
|
|
110924
|
+
* SelectiveGapicGeneration generateOmittedAsInternal.
|
|
110925
|
+
* @member {boolean} generateOmittedAsInternal
|
|
110926
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
110927
|
+
* @instance
|
|
110928
|
+
*/
|
|
110929
|
+
SelectiveGapicGeneration.prototype.generateOmittedAsInternal = false;
|
|
110930
|
+
|
|
110931
|
+
/**
|
|
110932
|
+
* Creates a new SelectiveGapicGeneration instance using the specified properties.
|
|
110933
|
+
* @function create
|
|
110934
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
110935
|
+
* @static
|
|
110936
|
+
* @param {google.api.ISelectiveGapicGeneration=} [properties] Properties to set
|
|
110937
|
+
* @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration instance
|
|
110938
|
+
*/
|
|
110939
|
+
SelectiveGapicGeneration.create = function create(properties) {
|
|
110940
|
+
return new SelectiveGapicGeneration(properties);
|
|
110941
|
+
};
|
|
110942
|
+
|
|
110943
|
+
/**
|
|
110944
|
+
* Encodes the specified SelectiveGapicGeneration message. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
|
|
110945
|
+
* @function encode
|
|
110946
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
110947
|
+
* @static
|
|
110948
|
+
* @param {google.api.ISelectiveGapicGeneration} message SelectiveGapicGeneration message or plain object to encode
|
|
110949
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
110950
|
+
* @returns {$protobuf.Writer} Writer
|
|
110951
|
+
*/
|
|
110952
|
+
SelectiveGapicGeneration.encode = function encode(message, writer) {
|
|
110953
|
+
if (!writer)
|
|
110954
|
+
writer = $Writer.create();
|
|
110955
|
+
if (message.methods != null && message.methods.length)
|
|
110956
|
+
for (var i = 0; i < message.methods.length; ++i)
|
|
110957
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.methods[i]);
|
|
110958
|
+
if (message.generateOmittedAsInternal != null && Object.hasOwnProperty.call(message, "generateOmittedAsInternal"))
|
|
110959
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.generateOmittedAsInternal);
|
|
110960
|
+
return writer;
|
|
110961
|
+
};
|
|
110962
|
+
|
|
110963
|
+
/**
|
|
110964
|
+
* Encodes the specified SelectiveGapicGeneration message, length delimited. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
|
|
110965
|
+
* @function encodeDelimited
|
|
110966
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
110967
|
+
* @static
|
|
110968
|
+
* @param {google.api.ISelectiveGapicGeneration} message SelectiveGapicGeneration message or plain object to encode
|
|
110969
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
110970
|
+
* @returns {$protobuf.Writer} Writer
|
|
110971
|
+
*/
|
|
110972
|
+
SelectiveGapicGeneration.encodeDelimited = function encodeDelimited(message, writer) {
|
|
110973
|
+
return this.encode(message, writer).ldelim();
|
|
110974
|
+
};
|
|
110975
|
+
|
|
110976
|
+
/**
|
|
110977
|
+
* Decodes a SelectiveGapicGeneration message from the specified reader or buffer.
|
|
110978
|
+
* @function decode
|
|
110979
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
110980
|
+
* @static
|
|
110981
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
110982
|
+
* @param {number} [length] Message length if known beforehand
|
|
110983
|
+
* @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
|
|
110984
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
110985
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
110986
|
+
*/
|
|
110987
|
+
SelectiveGapicGeneration.decode = function decode(reader, length, error) {
|
|
110988
|
+
if (!(reader instanceof $Reader))
|
|
110989
|
+
reader = $Reader.create(reader);
|
|
110990
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.SelectiveGapicGeneration();
|
|
110991
|
+
while (reader.pos < end) {
|
|
110992
|
+
var tag = reader.uint32();
|
|
110993
|
+
if (tag === error)
|
|
110994
|
+
break;
|
|
110995
|
+
switch (tag >>> 3) {
|
|
110996
|
+
case 1: {
|
|
110997
|
+
if (!(message.methods && message.methods.length))
|
|
110998
|
+
message.methods = [];
|
|
110999
|
+
message.methods.push(reader.string());
|
|
111000
|
+
break;
|
|
111001
|
+
}
|
|
111002
|
+
case 2: {
|
|
111003
|
+
message.generateOmittedAsInternal = reader.bool();
|
|
111004
|
+
break;
|
|
111005
|
+
}
|
|
111006
|
+
default:
|
|
111007
|
+
reader.skipType(tag & 7);
|
|
111008
|
+
break;
|
|
111009
|
+
}
|
|
111010
|
+
}
|
|
111011
|
+
return message;
|
|
111012
|
+
};
|
|
111013
|
+
|
|
111014
|
+
/**
|
|
111015
|
+
* Decodes a SelectiveGapicGeneration message from the specified reader or buffer, length delimited.
|
|
111016
|
+
* @function decodeDelimited
|
|
111017
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
111018
|
+
* @static
|
|
111019
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
111020
|
+
* @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
|
|
111021
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
111022
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
111023
|
+
*/
|
|
111024
|
+
SelectiveGapicGeneration.decodeDelimited = function decodeDelimited(reader) {
|
|
111025
|
+
if (!(reader instanceof $Reader))
|
|
111026
|
+
reader = new $Reader(reader);
|
|
111027
|
+
return this.decode(reader, reader.uint32());
|
|
111028
|
+
};
|
|
111029
|
+
|
|
111030
|
+
/**
|
|
111031
|
+
* Verifies a SelectiveGapicGeneration message.
|
|
111032
|
+
* @function verify
|
|
111033
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
111034
|
+
* @static
|
|
111035
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
111036
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
111037
|
+
*/
|
|
111038
|
+
SelectiveGapicGeneration.verify = function verify(message) {
|
|
111039
|
+
if (typeof message !== "object" || message === null)
|
|
111040
|
+
return "object expected";
|
|
111041
|
+
if (message.methods != null && message.hasOwnProperty("methods")) {
|
|
111042
|
+
if (!Array.isArray(message.methods))
|
|
111043
|
+
return "methods: array expected";
|
|
111044
|
+
for (var i = 0; i < message.methods.length; ++i)
|
|
111045
|
+
if (!$util.isString(message.methods[i]))
|
|
111046
|
+
return "methods: string[] expected";
|
|
111047
|
+
}
|
|
111048
|
+
if (message.generateOmittedAsInternal != null && message.hasOwnProperty("generateOmittedAsInternal"))
|
|
111049
|
+
if (typeof message.generateOmittedAsInternal !== "boolean")
|
|
111050
|
+
return "generateOmittedAsInternal: boolean expected";
|
|
111051
|
+
return null;
|
|
111052
|
+
};
|
|
111053
|
+
|
|
111054
|
+
/**
|
|
111055
|
+
* Creates a SelectiveGapicGeneration message from a plain object. Also converts values to their respective internal types.
|
|
111056
|
+
* @function fromObject
|
|
111057
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
111058
|
+
* @static
|
|
111059
|
+
* @param {Object.<string,*>} object Plain object
|
|
111060
|
+
* @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
|
|
111061
|
+
*/
|
|
111062
|
+
SelectiveGapicGeneration.fromObject = function fromObject(object) {
|
|
111063
|
+
if (object instanceof $root.google.api.SelectiveGapicGeneration)
|
|
111064
|
+
return object;
|
|
111065
|
+
var message = new $root.google.api.SelectiveGapicGeneration();
|
|
111066
|
+
if (object.methods) {
|
|
111067
|
+
if (!Array.isArray(object.methods))
|
|
111068
|
+
throw TypeError(".google.api.SelectiveGapicGeneration.methods: array expected");
|
|
111069
|
+
message.methods = [];
|
|
111070
|
+
for (var i = 0; i < object.methods.length; ++i)
|
|
111071
|
+
message.methods[i] = String(object.methods[i]);
|
|
111072
|
+
}
|
|
111073
|
+
if (object.generateOmittedAsInternal != null)
|
|
111074
|
+
message.generateOmittedAsInternal = Boolean(object.generateOmittedAsInternal);
|
|
111075
|
+
return message;
|
|
111076
|
+
};
|
|
111077
|
+
|
|
111078
|
+
/**
|
|
111079
|
+
* Creates a plain object from a SelectiveGapicGeneration message. Also converts values to other types if specified.
|
|
111080
|
+
* @function toObject
|
|
111081
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
111082
|
+
* @static
|
|
111083
|
+
* @param {google.api.SelectiveGapicGeneration} message SelectiveGapicGeneration
|
|
111084
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
111085
|
+
* @returns {Object.<string,*>} Plain object
|
|
111086
|
+
*/
|
|
111087
|
+
SelectiveGapicGeneration.toObject = function toObject(message, options) {
|
|
111088
|
+
if (!options)
|
|
111089
|
+
options = {};
|
|
111090
|
+
var object = {};
|
|
111091
|
+
if (options.arrays || options.defaults)
|
|
111092
|
+
object.methods = [];
|
|
111093
|
+
if (options.defaults)
|
|
111094
|
+
object.generateOmittedAsInternal = false;
|
|
111095
|
+
if (message.methods && message.methods.length) {
|
|
111096
|
+
object.methods = [];
|
|
111097
|
+
for (var j = 0; j < message.methods.length; ++j)
|
|
111098
|
+
object.methods[j] = message.methods[j];
|
|
111099
|
+
}
|
|
111100
|
+
if (message.generateOmittedAsInternal != null && message.hasOwnProperty("generateOmittedAsInternal"))
|
|
111101
|
+
object.generateOmittedAsInternal = message.generateOmittedAsInternal;
|
|
111102
|
+
return object;
|
|
111103
|
+
};
|
|
111104
|
+
|
|
111105
|
+
/**
|
|
111106
|
+
* Converts this SelectiveGapicGeneration to JSON.
|
|
111107
|
+
* @function toJSON
|
|
111108
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
111109
|
+
* @instance
|
|
111110
|
+
* @returns {Object.<string,*>} JSON object
|
|
111111
|
+
*/
|
|
111112
|
+
SelectiveGapicGeneration.prototype.toJSON = function toJSON() {
|
|
111113
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
111114
|
+
};
|
|
111115
|
+
|
|
111116
|
+
/**
|
|
111117
|
+
* Gets the default type url for SelectiveGapicGeneration
|
|
111118
|
+
* @function getTypeUrl
|
|
111119
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
111120
|
+
* @static
|
|
111121
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
111122
|
+
* @returns {string} The default type url
|
|
111123
|
+
*/
|
|
111124
|
+
SelectiveGapicGeneration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
111125
|
+
if (typeUrlPrefix === undefined) {
|
|
111126
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
111127
|
+
}
|
|
111128
|
+
return typeUrlPrefix + "/google.api.SelectiveGapicGeneration";
|
|
111129
|
+
};
|
|
111130
|
+
|
|
111131
|
+
return SelectiveGapicGeneration;
|
|
111132
|
+
})();
|
|
111133
|
+
|
|
109483
111134
|
/**
|
|
109484
111135
|
* LaunchStage enum.
|
|
109485
111136
|
* @name google.api.LaunchStage
|
|
@@ -110465,6 +112116,7 @@
|
|
|
110465
112116
|
* @name google.protobuf.Edition
|
|
110466
112117
|
* @enum {number}
|
|
110467
112118
|
* @property {number} EDITION_UNKNOWN=0 EDITION_UNKNOWN value
|
|
112119
|
+
* @property {number} EDITION_LEGACY=900 EDITION_LEGACY value
|
|
110468
112120
|
* @property {number} EDITION_PROTO2=998 EDITION_PROTO2 value
|
|
110469
112121
|
* @property {number} EDITION_PROTO3=999 EDITION_PROTO3 value
|
|
110470
112122
|
* @property {number} EDITION_2023=1000 EDITION_2023 value
|
|
@@ -110479,6 +112131,7 @@
|
|
|
110479
112131
|
protobuf.Edition = (function() {
|
|
110480
112132
|
var valuesById = {}, values = Object.create(valuesById);
|
|
110481
112133
|
values[valuesById[0] = "EDITION_UNKNOWN"] = 0;
|
|
112134
|
+
values[valuesById[900] = "EDITION_LEGACY"] = 900;
|
|
110482
112135
|
values[valuesById[998] = "EDITION_PROTO2"] = 998;
|
|
110483
112136
|
values[valuesById[999] = "EDITION_PROTO3"] = 999;
|
|
110484
112137
|
values[valuesById[1000] = "EDITION_2023"] = 1000;
|
|
@@ -110503,6 +112156,7 @@
|
|
|
110503
112156
|
* @property {Array.<string>|null} [dependency] FileDescriptorProto dependency
|
|
110504
112157
|
* @property {Array.<number>|null} [publicDependency] FileDescriptorProto publicDependency
|
|
110505
112158
|
* @property {Array.<number>|null} [weakDependency] FileDescriptorProto weakDependency
|
|
112159
|
+
* @property {Array.<string>|null} [optionDependency] FileDescriptorProto optionDependency
|
|
110506
112160
|
* @property {Array.<google.protobuf.IDescriptorProto>|null} [messageType] FileDescriptorProto messageType
|
|
110507
112161
|
* @property {Array.<google.protobuf.IEnumDescriptorProto>|null} [enumType] FileDescriptorProto enumType
|
|
110508
112162
|
* @property {Array.<google.protobuf.IServiceDescriptorProto>|null} [service] FileDescriptorProto service
|
|
@@ -110525,6 +112179,7 @@
|
|
|
110525
112179
|
this.dependency = [];
|
|
110526
112180
|
this.publicDependency = [];
|
|
110527
112181
|
this.weakDependency = [];
|
|
112182
|
+
this.optionDependency = [];
|
|
110528
112183
|
this.messageType = [];
|
|
110529
112184
|
this.enumType = [];
|
|
110530
112185
|
this.service = [];
|
|
@@ -110575,6 +112230,14 @@
|
|
|
110575
112230
|
*/
|
|
110576
112231
|
FileDescriptorProto.prototype.weakDependency = $util.emptyArray;
|
|
110577
112232
|
|
|
112233
|
+
/**
|
|
112234
|
+
* FileDescriptorProto optionDependency.
|
|
112235
|
+
* @member {Array.<string>} optionDependency
|
|
112236
|
+
* @memberof google.protobuf.FileDescriptorProto
|
|
112237
|
+
* @instance
|
|
112238
|
+
*/
|
|
112239
|
+
FileDescriptorProto.prototype.optionDependency = $util.emptyArray;
|
|
112240
|
+
|
|
110578
112241
|
/**
|
|
110579
112242
|
* FileDescriptorProto messageType.
|
|
110580
112243
|
* @member {Array.<google.protobuf.IDescriptorProto>} messageType
|
|
@@ -110696,6 +112359,9 @@
|
|
|
110696
112359
|
writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax);
|
|
110697
112360
|
if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
|
|
110698
112361
|
writer.uint32(/* id 14, wireType 0 =*/112).int32(message.edition);
|
|
112362
|
+
if (message.optionDependency != null && message.optionDependency.length)
|
|
112363
|
+
for (var i = 0; i < message.optionDependency.length; ++i)
|
|
112364
|
+
writer.uint32(/* id 15, wireType 2 =*/122).string(message.optionDependency[i]);
|
|
110699
112365
|
return writer;
|
|
110700
112366
|
};
|
|
110701
112367
|
|
|
@@ -110768,6 +112434,12 @@
|
|
|
110768
112434
|
message.weakDependency.push(reader.int32());
|
|
110769
112435
|
break;
|
|
110770
112436
|
}
|
|
112437
|
+
case 15: {
|
|
112438
|
+
if (!(message.optionDependency && message.optionDependency.length))
|
|
112439
|
+
message.optionDependency = [];
|
|
112440
|
+
message.optionDependency.push(reader.string());
|
|
112441
|
+
break;
|
|
112442
|
+
}
|
|
110771
112443
|
case 4: {
|
|
110772
112444
|
if (!(message.messageType && message.messageType.length))
|
|
110773
112445
|
message.messageType = [];
|
|
@@ -110870,6 +112542,13 @@
|
|
|
110870
112542
|
if (!$util.isInteger(message.weakDependency[i]))
|
|
110871
112543
|
return "weakDependency: integer[] expected";
|
|
110872
112544
|
}
|
|
112545
|
+
if (message.optionDependency != null && message.hasOwnProperty("optionDependency")) {
|
|
112546
|
+
if (!Array.isArray(message.optionDependency))
|
|
112547
|
+
return "optionDependency: array expected";
|
|
112548
|
+
for (var i = 0; i < message.optionDependency.length; ++i)
|
|
112549
|
+
if (!$util.isString(message.optionDependency[i]))
|
|
112550
|
+
return "optionDependency: string[] expected";
|
|
112551
|
+
}
|
|
110873
112552
|
if (message.messageType != null && message.hasOwnProperty("messageType")) {
|
|
110874
112553
|
if (!Array.isArray(message.messageType))
|
|
110875
112554
|
return "messageType: array expected";
|
|
@@ -110924,6 +112603,7 @@
|
|
|
110924
112603
|
default:
|
|
110925
112604
|
return "edition: enum value expected";
|
|
110926
112605
|
case 0:
|
|
112606
|
+
case 900:
|
|
110927
112607
|
case 998:
|
|
110928
112608
|
case 999:
|
|
110929
112609
|
case 1000:
|
|
@@ -110976,6 +112656,13 @@
|
|
|
110976
112656
|
for (var i = 0; i < object.weakDependency.length; ++i)
|
|
110977
112657
|
message.weakDependency[i] = object.weakDependency[i] | 0;
|
|
110978
112658
|
}
|
|
112659
|
+
if (object.optionDependency) {
|
|
112660
|
+
if (!Array.isArray(object.optionDependency))
|
|
112661
|
+
throw TypeError(".google.protobuf.FileDescriptorProto.optionDependency: array expected");
|
|
112662
|
+
message.optionDependency = [];
|
|
112663
|
+
for (var i = 0; i < object.optionDependency.length; ++i)
|
|
112664
|
+
message.optionDependency[i] = String(object.optionDependency[i]);
|
|
112665
|
+
}
|
|
110979
112666
|
if (object.messageType) {
|
|
110980
112667
|
if (!Array.isArray(object.messageType))
|
|
110981
112668
|
throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected");
|
|
@@ -111039,6 +112726,10 @@
|
|
|
111039
112726
|
case 0:
|
|
111040
112727
|
message.edition = 0;
|
|
111041
112728
|
break;
|
|
112729
|
+
case "EDITION_LEGACY":
|
|
112730
|
+
case 900:
|
|
112731
|
+
message.edition = 900;
|
|
112732
|
+
break;
|
|
111042
112733
|
case "EDITION_PROTO2":
|
|
111043
112734
|
case 998:
|
|
111044
112735
|
message.edition = 998;
|
|
@@ -111104,6 +112795,7 @@
|
|
|
111104
112795
|
object.extension = [];
|
|
111105
112796
|
object.publicDependency = [];
|
|
111106
112797
|
object.weakDependency = [];
|
|
112798
|
+
object.optionDependency = [];
|
|
111107
112799
|
}
|
|
111108
112800
|
if (options.defaults) {
|
|
111109
112801
|
object.name = "";
|
|
@@ -111160,6 +112852,11 @@
|
|
|
111160
112852
|
object.syntax = message.syntax;
|
|
111161
112853
|
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
111162
112854
|
object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
|
|
112855
|
+
if (message.optionDependency && message.optionDependency.length) {
|
|
112856
|
+
object.optionDependency = [];
|
|
112857
|
+
for (var j = 0; j < message.optionDependency.length; ++j)
|
|
112858
|
+
object.optionDependency[j] = message.optionDependency[j];
|
|
112859
|
+
}
|
|
111163
112860
|
return object;
|
|
111164
112861
|
};
|
|
111165
112862
|
|
|
@@ -111208,6 +112905,7 @@
|
|
|
111208
112905
|
* @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options
|
|
111209
112906
|
* @property {Array.<google.protobuf.DescriptorProto.IReservedRange>|null} [reservedRange] DescriptorProto reservedRange
|
|
111210
112907
|
* @property {Array.<string>|null} [reservedName] DescriptorProto reservedName
|
|
112908
|
+
* @property {google.protobuf.SymbolVisibility|null} [visibility] DescriptorProto visibility
|
|
111211
112909
|
*/
|
|
111212
112910
|
|
|
111213
112911
|
/**
|
|
@@ -111313,6 +113011,14 @@
|
|
|
111313
113011
|
*/
|
|
111314
113012
|
DescriptorProto.prototype.reservedName = $util.emptyArray;
|
|
111315
113013
|
|
|
113014
|
+
/**
|
|
113015
|
+
* DescriptorProto visibility.
|
|
113016
|
+
* @member {google.protobuf.SymbolVisibility} visibility
|
|
113017
|
+
* @memberof google.protobuf.DescriptorProto
|
|
113018
|
+
* @instance
|
|
113019
|
+
*/
|
|
113020
|
+
DescriptorProto.prototype.visibility = 0;
|
|
113021
|
+
|
|
111316
113022
|
/**
|
|
111317
113023
|
* Creates a new DescriptorProto instance using the specified properties.
|
|
111318
113024
|
* @function create
|
|
@@ -111365,6 +113071,8 @@
|
|
|
111365
113071
|
if (message.reservedName != null && message.reservedName.length)
|
|
111366
113072
|
for (var i = 0; i < message.reservedName.length; ++i)
|
|
111367
113073
|
writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]);
|
|
113074
|
+
if (message.visibility != null && Object.hasOwnProperty.call(message, "visibility"))
|
|
113075
|
+
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.visibility);
|
|
111368
113076
|
return writer;
|
|
111369
113077
|
};
|
|
111370
113078
|
|
|
@@ -111457,6 +113165,10 @@
|
|
|
111457
113165
|
message.reservedName.push(reader.string());
|
|
111458
113166
|
break;
|
|
111459
113167
|
}
|
|
113168
|
+
case 11: {
|
|
113169
|
+
message.visibility = reader.int32();
|
|
113170
|
+
break;
|
|
113171
|
+
}
|
|
111460
113172
|
default:
|
|
111461
113173
|
reader.skipType(tag & 7);
|
|
111462
113174
|
break;
|
|
@@ -111570,6 +113282,15 @@
|
|
|
111570
113282
|
if (!$util.isString(message.reservedName[i]))
|
|
111571
113283
|
return "reservedName: string[] expected";
|
|
111572
113284
|
}
|
|
113285
|
+
if (message.visibility != null && message.hasOwnProperty("visibility"))
|
|
113286
|
+
switch (message.visibility) {
|
|
113287
|
+
default:
|
|
113288
|
+
return "visibility: enum value expected";
|
|
113289
|
+
case 0:
|
|
113290
|
+
case 1:
|
|
113291
|
+
case 2:
|
|
113292
|
+
break;
|
|
113293
|
+
}
|
|
111573
113294
|
return null;
|
|
111574
113295
|
};
|
|
111575
113296
|
|
|
@@ -111669,6 +113390,26 @@
|
|
|
111669
113390
|
for (var i = 0; i < object.reservedName.length; ++i)
|
|
111670
113391
|
message.reservedName[i] = String(object.reservedName[i]);
|
|
111671
113392
|
}
|
|
113393
|
+
switch (object.visibility) {
|
|
113394
|
+
default:
|
|
113395
|
+
if (typeof object.visibility === "number") {
|
|
113396
|
+
message.visibility = object.visibility;
|
|
113397
|
+
break;
|
|
113398
|
+
}
|
|
113399
|
+
break;
|
|
113400
|
+
case "VISIBILITY_UNSET":
|
|
113401
|
+
case 0:
|
|
113402
|
+
message.visibility = 0;
|
|
113403
|
+
break;
|
|
113404
|
+
case "VISIBILITY_LOCAL":
|
|
113405
|
+
case 1:
|
|
113406
|
+
message.visibility = 1;
|
|
113407
|
+
break;
|
|
113408
|
+
case "VISIBILITY_EXPORT":
|
|
113409
|
+
case 2:
|
|
113410
|
+
message.visibility = 2;
|
|
113411
|
+
break;
|
|
113412
|
+
}
|
|
111672
113413
|
return message;
|
|
111673
113414
|
};
|
|
111674
113415
|
|
|
@@ -111698,6 +113439,7 @@
|
|
|
111698
113439
|
if (options.defaults) {
|
|
111699
113440
|
object.name = "";
|
|
111700
113441
|
object.options = null;
|
|
113442
|
+
object.visibility = options.enums === String ? "VISIBILITY_UNSET" : 0;
|
|
111701
113443
|
}
|
|
111702
113444
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
111703
113445
|
object.name = message.name;
|
|
@@ -111743,6 +113485,8 @@
|
|
|
111743
113485
|
for (var j = 0; j < message.reservedName.length; ++j)
|
|
111744
113486
|
object.reservedName[j] = message.reservedName[j];
|
|
111745
113487
|
}
|
|
113488
|
+
if (message.visibility != null && message.hasOwnProperty("visibility"))
|
|
113489
|
+
object.visibility = options.enums === String ? $root.google.protobuf.SymbolVisibility[message.visibility] === undefined ? message.visibility : $root.google.protobuf.SymbolVisibility[message.visibility] : message.visibility;
|
|
111746
113490
|
return object;
|
|
111747
113491
|
};
|
|
111748
113492
|
|
|
@@ -113787,6 +115531,7 @@
|
|
|
113787
115531
|
* @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options
|
|
113788
115532
|
* @property {Array.<google.protobuf.EnumDescriptorProto.IEnumReservedRange>|null} [reservedRange] EnumDescriptorProto reservedRange
|
|
113789
115533
|
* @property {Array.<string>|null} [reservedName] EnumDescriptorProto reservedName
|
|
115534
|
+
* @property {google.protobuf.SymbolVisibility|null} [visibility] EnumDescriptorProto visibility
|
|
113790
115535
|
*/
|
|
113791
115536
|
|
|
113792
115537
|
/**
|
|
@@ -113847,6 +115592,14 @@
|
|
|
113847
115592
|
*/
|
|
113848
115593
|
EnumDescriptorProto.prototype.reservedName = $util.emptyArray;
|
|
113849
115594
|
|
|
115595
|
+
/**
|
|
115596
|
+
* EnumDescriptorProto visibility.
|
|
115597
|
+
* @member {google.protobuf.SymbolVisibility} visibility
|
|
115598
|
+
* @memberof google.protobuf.EnumDescriptorProto
|
|
115599
|
+
* @instance
|
|
115600
|
+
*/
|
|
115601
|
+
EnumDescriptorProto.prototype.visibility = 0;
|
|
115602
|
+
|
|
113850
115603
|
/**
|
|
113851
115604
|
* Creates a new EnumDescriptorProto instance using the specified properties.
|
|
113852
115605
|
* @function create
|
|
@@ -113884,6 +115637,8 @@
|
|
|
113884
115637
|
if (message.reservedName != null && message.reservedName.length)
|
|
113885
115638
|
for (var i = 0; i < message.reservedName.length; ++i)
|
|
113886
115639
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.reservedName[i]);
|
|
115640
|
+
if (message.visibility != null && Object.hasOwnProperty.call(message, "visibility"))
|
|
115641
|
+
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.visibility);
|
|
113887
115642
|
return writer;
|
|
113888
115643
|
};
|
|
113889
115644
|
|
|
@@ -113946,6 +115701,10 @@
|
|
|
113946
115701
|
message.reservedName.push(reader.string());
|
|
113947
115702
|
break;
|
|
113948
115703
|
}
|
|
115704
|
+
case 6: {
|
|
115705
|
+
message.visibility = reader.int32();
|
|
115706
|
+
break;
|
|
115707
|
+
}
|
|
113949
115708
|
default:
|
|
113950
115709
|
reader.skipType(tag & 7);
|
|
113951
115710
|
break;
|
|
@@ -114014,6 +115773,15 @@
|
|
|
114014
115773
|
if (!$util.isString(message.reservedName[i]))
|
|
114015
115774
|
return "reservedName: string[] expected";
|
|
114016
115775
|
}
|
|
115776
|
+
if (message.visibility != null && message.hasOwnProperty("visibility"))
|
|
115777
|
+
switch (message.visibility) {
|
|
115778
|
+
default:
|
|
115779
|
+
return "visibility: enum value expected";
|
|
115780
|
+
case 0:
|
|
115781
|
+
case 1:
|
|
115782
|
+
case 2:
|
|
115783
|
+
break;
|
|
115784
|
+
}
|
|
114017
115785
|
return null;
|
|
114018
115786
|
};
|
|
114019
115787
|
|
|
@@ -114063,6 +115831,26 @@
|
|
|
114063
115831
|
for (var i = 0; i < object.reservedName.length; ++i)
|
|
114064
115832
|
message.reservedName[i] = String(object.reservedName[i]);
|
|
114065
115833
|
}
|
|
115834
|
+
switch (object.visibility) {
|
|
115835
|
+
default:
|
|
115836
|
+
if (typeof object.visibility === "number") {
|
|
115837
|
+
message.visibility = object.visibility;
|
|
115838
|
+
break;
|
|
115839
|
+
}
|
|
115840
|
+
break;
|
|
115841
|
+
case "VISIBILITY_UNSET":
|
|
115842
|
+
case 0:
|
|
115843
|
+
message.visibility = 0;
|
|
115844
|
+
break;
|
|
115845
|
+
case "VISIBILITY_LOCAL":
|
|
115846
|
+
case 1:
|
|
115847
|
+
message.visibility = 1;
|
|
115848
|
+
break;
|
|
115849
|
+
case "VISIBILITY_EXPORT":
|
|
115850
|
+
case 2:
|
|
115851
|
+
message.visibility = 2;
|
|
115852
|
+
break;
|
|
115853
|
+
}
|
|
114066
115854
|
return message;
|
|
114067
115855
|
};
|
|
114068
115856
|
|
|
@@ -114087,6 +115875,7 @@
|
|
|
114087
115875
|
if (options.defaults) {
|
|
114088
115876
|
object.name = "";
|
|
114089
115877
|
object.options = null;
|
|
115878
|
+
object.visibility = options.enums === String ? "VISIBILITY_UNSET" : 0;
|
|
114090
115879
|
}
|
|
114091
115880
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
114092
115881
|
object.name = message.name;
|
|
@@ -114107,6 +115896,8 @@
|
|
|
114107
115896
|
for (var j = 0; j < message.reservedName.length; ++j)
|
|
114108
115897
|
object.reservedName[j] = message.reservedName[j];
|
|
114109
115898
|
}
|
|
115899
|
+
if (message.visibility != null && message.hasOwnProperty("visibility"))
|
|
115900
|
+
object.visibility = options.enums === String ? $root.google.protobuf.SymbolVisibility[message.visibility] === undefined ? message.visibility : $root.google.protobuf.SymbolVisibility[message.visibility] : message.visibility;
|
|
114110
115901
|
return object;
|
|
114111
115902
|
};
|
|
114112
115903
|
|
|
@@ -116425,6 +118216,7 @@
|
|
|
116425
118216
|
* @property {Array.<google.protobuf.FieldOptions.OptionTargetType>|null} [targets] FieldOptions targets
|
|
116426
118217
|
* @property {Array.<google.protobuf.FieldOptions.IEditionDefault>|null} [editionDefaults] FieldOptions editionDefaults
|
|
116427
118218
|
* @property {google.protobuf.IFeatureSet|null} [features] FieldOptions features
|
|
118219
|
+
* @property {google.protobuf.FieldOptions.IFeatureSupport|null} [featureSupport] FieldOptions featureSupport
|
|
116428
118220
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FieldOptions uninterpretedOption
|
|
116429
118221
|
* @property {Array.<google.api.FieldBehavior>|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior
|
|
116430
118222
|
* @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference
|
|
@@ -116545,6 +118337,14 @@
|
|
|
116545
118337
|
*/
|
|
116546
118338
|
FieldOptions.prototype.features = null;
|
|
116547
118339
|
|
|
118340
|
+
/**
|
|
118341
|
+
* FieldOptions featureSupport.
|
|
118342
|
+
* @member {google.protobuf.FieldOptions.IFeatureSupport|null|undefined} featureSupport
|
|
118343
|
+
* @memberof google.protobuf.FieldOptions
|
|
118344
|
+
* @instance
|
|
118345
|
+
*/
|
|
118346
|
+
FieldOptions.prototype.featureSupport = null;
|
|
118347
|
+
|
|
116548
118348
|
/**
|
|
116549
118349
|
* FieldOptions uninterpretedOption.
|
|
116550
118350
|
* @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
|
|
@@ -116619,6 +118419,8 @@
|
|
|
116619
118419
|
$root.google.protobuf.FieldOptions.EditionDefault.encode(message.editionDefaults[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
|
|
116620
118420
|
if (message.features != null && Object.hasOwnProperty.call(message, "features"))
|
|
116621
118421
|
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
|
|
118422
|
+
if (message.featureSupport != null && Object.hasOwnProperty.call(message, "featureSupport"))
|
|
118423
|
+
$root.google.protobuf.FieldOptions.FeatureSupport.encode(message.featureSupport, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
|
|
116622
118424
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
|
116623
118425
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
|
116624
118426
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
@@ -116720,6 +118522,10 @@
|
|
|
116720
118522
|
message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
116721
118523
|
break;
|
|
116722
118524
|
}
|
|
118525
|
+
case 22: {
|
|
118526
|
+
message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.decode(reader, reader.uint32());
|
|
118527
|
+
break;
|
|
118528
|
+
}
|
|
116723
118529
|
case 999: {
|
|
116724
118530
|
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
|
|
116725
118531
|
message.uninterpretedOption = [];
|
|
@@ -116855,6 +118661,11 @@
|
|
|
116855
118661
|
if (error)
|
|
116856
118662
|
return "features." + error;
|
|
116857
118663
|
}
|
|
118664
|
+
if (message.featureSupport != null && message.hasOwnProperty("featureSupport")) {
|
|
118665
|
+
var error = $root.google.protobuf.FieldOptions.FeatureSupport.verify(message.featureSupport);
|
|
118666
|
+
if (error)
|
|
118667
|
+
return "featureSupport." + error;
|
|
118668
|
+
}
|
|
116858
118669
|
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
|
|
116859
118670
|
if (!Array.isArray(message.uninterpretedOption))
|
|
116860
118671
|
return "uninterpretedOption: array expected";
|
|
@@ -117043,6 +118854,11 @@
|
|
|
117043
118854
|
throw TypeError(".google.protobuf.FieldOptions.features: object expected");
|
|
117044
118855
|
message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
|
|
117045
118856
|
}
|
|
118857
|
+
if (object.featureSupport != null) {
|
|
118858
|
+
if (typeof object.featureSupport !== "object")
|
|
118859
|
+
throw TypeError(".google.protobuf.FieldOptions.featureSupport: object expected");
|
|
118860
|
+
message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.fromObject(object.featureSupport);
|
|
118861
|
+
}
|
|
117046
118862
|
if (object.uninterpretedOption) {
|
|
117047
118863
|
if (!Array.isArray(object.uninterpretedOption))
|
|
117048
118864
|
throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected");
|
|
@@ -117140,6 +118956,7 @@
|
|
|
117140
118956
|
object.debugRedact = false;
|
|
117141
118957
|
object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0;
|
|
117142
118958
|
object.features = null;
|
|
118959
|
+
object.featureSupport = null;
|
|
117143
118960
|
object[".google.api.resourceReference"] = null;
|
|
117144
118961
|
}
|
|
117145
118962
|
if (message.ctype != null && message.hasOwnProperty("ctype"))
|
|
@@ -117172,6 +118989,8 @@
|
|
|
117172
118989
|
}
|
|
117173
118990
|
if (message.features != null && message.hasOwnProperty("features"))
|
|
117174
118991
|
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
|
118992
|
+
if (message.featureSupport != null && message.hasOwnProperty("featureSupport"))
|
|
118993
|
+
object.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.toObject(message.featureSupport, options);
|
|
117175
118994
|
if (message.uninterpretedOption && message.uninterpretedOption.length) {
|
|
117176
118995
|
object.uninterpretedOption = [];
|
|
117177
118996
|
for (var j = 0; j < message.uninterpretedOption.length; ++j)
|
|
@@ -117444,6 +119263,7 @@
|
|
|
117444
119263
|
default:
|
|
117445
119264
|
return "edition: enum value expected";
|
|
117446
119265
|
case 0:
|
|
119266
|
+
case 900:
|
|
117447
119267
|
case 998:
|
|
117448
119268
|
case 999:
|
|
117449
119269
|
case 1000:
|
|
@@ -117485,6 +119305,10 @@
|
|
|
117485
119305
|
case 0:
|
|
117486
119306
|
message.edition = 0;
|
|
117487
119307
|
break;
|
|
119308
|
+
case "EDITION_LEGACY":
|
|
119309
|
+
case 900:
|
|
119310
|
+
message.edition = 900;
|
|
119311
|
+
break;
|
|
117488
119312
|
case "EDITION_PROTO2":
|
|
117489
119313
|
case 998:
|
|
117490
119314
|
message.edition = 998;
|
|
@@ -117584,6 +119408,488 @@
|
|
|
117584
119408
|
return EditionDefault;
|
|
117585
119409
|
})();
|
|
117586
119410
|
|
|
119411
|
+
FieldOptions.FeatureSupport = (function() {
|
|
119412
|
+
|
|
119413
|
+
/**
|
|
119414
|
+
* Properties of a FeatureSupport.
|
|
119415
|
+
* @memberof google.protobuf.FieldOptions
|
|
119416
|
+
* @interface IFeatureSupport
|
|
119417
|
+
* @property {google.protobuf.Edition|null} [editionIntroduced] FeatureSupport editionIntroduced
|
|
119418
|
+
* @property {google.protobuf.Edition|null} [editionDeprecated] FeatureSupport editionDeprecated
|
|
119419
|
+
* @property {string|null} [deprecationWarning] FeatureSupport deprecationWarning
|
|
119420
|
+
* @property {google.protobuf.Edition|null} [editionRemoved] FeatureSupport editionRemoved
|
|
119421
|
+
*/
|
|
119422
|
+
|
|
119423
|
+
/**
|
|
119424
|
+
* Constructs a new FeatureSupport.
|
|
119425
|
+
* @memberof google.protobuf.FieldOptions
|
|
119426
|
+
* @classdesc Represents a FeatureSupport.
|
|
119427
|
+
* @implements IFeatureSupport
|
|
119428
|
+
* @constructor
|
|
119429
|
+
* @param {google.protobuf.FieldOptions.IFeatureSupport=} [properties] Properties to set
|
|
119430
|
+
*/
|
|
119431
|
+
function FeatureSupport(properties) {
|
|
119432
|
+
if (properties)
|
|
119433
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
119434
|
+
if (properties[keys[i]] != null)
|
|
119435
|
+
this[keys[i]] = properties[keys[i]];
|
|
119436
|
+
}
|
|
119437
|
+
|
|
119438
|
+
/**
|
|
119439
|
+
* FeatureSupport editionIntroduced.
|
|
119440
|
+
* @member {google.protobuf.Edition} editionIntroduced
|
|
119441
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
119442
|
+
* @instance
|
|
119443
|
+
*/
|
|
119444
|
+
FeatureSupport.prototype.editionIntroduced = 0;
|
|
119445
|
+
|
|
119446
|
+
/**
|
|
119447
|
+
* FeatureSupport editionDeprecated.
|
|
119448
|
+
* @member {google.protobuf.Edition} editionDeprecated
|
|
119449
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
119450
|
+
* @instance
|
|
119451
|
+
*/
|
|
119452
|
+
FeatureSupport.prototype.editionDeprecated = 0;
|
|
119453
|
+
|
|
119454
|
+
/**
|
|
119455
|
+
* FeatureSupport deprecationWarning.
|
|
119456
|
+
* @member {string} deprecationWarning
|
|
119457
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
119458
|
+
* @instance
|
|
119459
|
+
*/
|
|
119460
|
+
FeatureSupport.prototype.deprecationWarning = "";
|
|
119461
|
+
|
|
119462
|
+
/**
|
|
119463
|
+
* FeatureSupport editionRemoved.
|
|
119464
|
+
* @member {google.protobuf.Edition} editionRemoved
|
|
119465
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
119466
|
+
* @instance
|
|
119467
|
+
*/
|
|
119468
|
+
FeatureSupport.prototype.editionRemoved = 0;
|
|
119469
|
+
|
|
119470
|
+
/**
|
|
119471
|
+
* Creates a new FeatureSupport instance using the specified properties.
|
|
119472
|
+
* @function create
|
|
119473
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
119474
|
+
* @static
|
|
119475
|
+
* @param {google.protobuf.FieldOptions.IFeatureSupport=} [properties] Properties to set
|
|
119476
|
+
* @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport instance
|
|
119477
|
+
*/
|
|
119478
|
+
FeatureSupport.create = function create(properties) {
|
|
119479
|
+
return new FeatureSupport(properties);
|
|
119480
|
+
};
|
|
119481
|
+
|
|
119482
|
+
/**
|
|
119483
|
+
* Encodes the specified FeatureSupport message. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
|
|
119484
|
+
* @function encode
|
|
119485
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
119486
|
+
* @static
|
|
119487
|
+
* @param {google.protobuf.FieldOptions.IFeatureSupport} message FeatureSupport message or plain object to encode
|
|
119488
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
119489
|
+
* @returns {$protobuf.Writer} Writer
|
|
119490
|
+
*/
|
|
119491
|
+
FeatureSupport.encode = function encode(message, writer) {
|
|
119492
|
+
if (!writer)
|
|
119493
|
+
writer = $Writer.create();
|
|
119494
|
+
if (message.editionIntroduced != null && Object.hasOwnProperty.call(message, "editionIntroduced"))
|
|
119495
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.editionIntroduced);
|
|
119496
|
+
if (message.editionDeprecated != null && Object.hasOwnProperty.call(message, "editionDeprecated"))
|
|
119497
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.editionDeprecated);
|
|
119498
|
+
if (message.deprecationWarning != null && Object.hasOwnProperty.call(message, "deprecationWarning"))
|
|
119499
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.deprecationWarning);
|
|
119500
|
+
if (message.editionRemoved != null && Object.hasOwnProperty.call(message, "editionRemoved"))
|
|
119501
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.editionRemoved);
|
|
119502
|
+
return writer;
|
|
119503
|
+
};
|
|
119504
|
+
|
|
119505
|
+
/**
|
|
119506
|
+
* Encodes the specified FeatureSupport message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
|
|
119507
|
+
* @function encodeDelimited
|
|
119508
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
119509
|
+
* @static
|
|
119510
|
+
* @param {google.protobuf.FieldOptions.IFeatureSupport} message FeatureSupport message or plain object to encode
|
|
119511
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
119512
|
+
* @returns {$protobuf.Writer} Writer
|
|
119513
|
+
*/
|
|
119514
|
+
FeatureSupport.encodeDelimited = function encodeDelimited(message, writer) {
|
|
119515
|
+
return this.encode(message, writer).ldelim();
|
|
119516
|
+
};
|
|
119517
|
+
|
|
119518
|
+
/**
|
|
119519
|
+
* Decodes a FeatureSupport message from the specified reader or buffer.
|
|
119520
|
+
* @function decode
|
|
119521
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
119522
|
+
* @static
|
|
119523
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
119524
|
+
* @param {number} [length] Message length if known beforehand
|
|
119525
|
+
* @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
|
|
119526
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
119527
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
119528
|
+
*/
|
|
119529
|
+
FeatureSupport.decode = function decode(reader, length, error) {
|
|
119530
|
+
if (!(reader instanceof $Reader))
|
|
119531
|
+
reader = $Reader.create(reader);
|
|
119532
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions.FeatureSupport();
|
|
119533
|
+
while (reader.pos < end) {
|
|
119534
|
+
var tag = reader.uint32();
|
|
119535
|
+
if (tag === error)
|
|
119536
|
+
break;
|
|
119537
|
+
switch (tag >>> 3) {
|
|
119538
|
+
case 1: {
|
|
119539
|
+
message.editionIntroduced = reader.int32();
|
|
119540
|
+
break;
|
|
119541
|
+
}
|
|
119542
|
+
case 2: {
|
|
119543
|
+
message.editionDeprecated = reader.int32();
|
|
119544
|
+
break;
|
|
119545
|
+
}
|
|
119546
|
+
case 3: {
|
|
119547
|
+
message.deprecationWarning = reader.string();
|
|
119548
|
+
break;
|
|
119549
|
+
}
|
|
119550
|
+
case 4: {
|
|
119551
|
+
message.editionRemoved = reader.int32();
|
|
119552
|
+
break;
|
|
119553
|
+
}
|
|
119554
|
+
default:
|
|
119555
|
+
reader.skipType(tag & 7);
|
|
119556
|
+
break;
|
|
119557
|
+
}
|
|
119558
|
+
}
|
|
119559
|
+
return message;
|
|
119560
|
+
};
|
|
119561
|
+
|
|
119562
|
+
/**
|
|
119563
|
+
* Decodes a FeatureSupport message from the specified reader or buffer, length delimited.
|
|
119564
|
+
* @function decodeDelimited
|
|
119565
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
119566
|
+
* @static
|
|
119567
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
119568
|
+
* @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
|
|
119569
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
119570
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
119571
|
+
*/
|
|
119572
|
+
FeatureSupport.decodeDelimited = function decodeDelimited(reader) {
|
|
119573
|
+
if (!(reader instanceof $Reader))
|
|
119574
|
+
reader = new $Reader(reader);
|
|
119575
|
+
return this.decode(reader, reader.uint32());
|
|
119576
|
+
};
|
|
119577
|
+
|
|
119578
|
+
/**
|
|
119579
|
+
* Verifies a FeatureSupport message.
|
|
119580
|
+
* @function verify
|
|
119581
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
119582
|
+
* @static
|
|
119583
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
119584
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
119585
|
+
*/
|
|
119586
|
+
FeatureSupport.verify = function verify(message) {
|
|
119587
|
+
if (typeof message !== "object" || message === null)
|
|
119588
|
+
return "object expected";
|
|
119589
|
+
if (message.editionIntroduced != null && message.hasOwnProperty("editionIntroduced"))
|
|
119590
|
+
switch (message.editionIntroduced) {
|
|
119591
|
+
default:
|
|
119592
|
+
return "editionIntroduced: enum value expected";
|
|
119593
|
+
case 0:
|
|
119594
|
+
case 900:
|
|
119595
|
+
case 998:
|
|
119596
|
+
case 999:
|
|
119597
|
+
case 1000:
|
|
119598
|
+
case 1001:
|
|
119599
|
+
case 1:
|
|
119600
|
+
case 2:
|
|
119601
|
+
case 99997:
|
|
119602
|
+
case 99998:
|
|
119603
|
+
case 99999:
|
|
119604
|
+
case 2147483647:
|
|
119605
|
+
break;
|
|
119606
|
+
}
|
|
119607
|
+
if (message.editionDeprecated != null && message.hasOwnProperty("editionDeprecated"))
|
|
119608
|
+
switch (message.editionDeprecated) {
|
|
119609
|
+
default:
|
|
119610
|
+
return "editionDeprecated: enum value expected";
|
|
119611
|
+
case 0:
|
|
119612
|
+
case 900:
|
|
119613
|
+
case 998:
|
|
119614
|
+
case 999:
|
|
119615
|
+
case 1000:
|
|
119616
|
+
case 1001:
|
|
119617
|
+
case 1:
|
|
119618
|
+
case 2:
|
|
119619
|
+
case 99997:
|
|
119620
|
+
case 99998:
|
|
119621
|
+
case 99999:
|
|
119622
|
+
case 2147483647:
|
|
119623
|
+
break;
|
|
119624
|
+
}
|
|
119625
|
+
if (message.deprecationWarning != null && message.hasOwnProperty("deprecationWarning"))
|
|
119626
|
+
if (!$util.isString(message.deprecationWarning))
|
|
119627
|
+
return "deprecationWarning: string expected";
|
|
119628
|
+
if (message.editionRemoved != null && message.hasOwnProperty("editionRemoved"))
|
|
119629
|
+
switch (message.editionRemoved) {
|
|
119630
|
+
default:
|
|
119631
|
+
return "editionRemoved: enum value expected";
|
|
119632
|
+
case 0:
|
|
119633
|
+
case 900:
|
|
119634
|
+
case 998:
|
|
119635
|
+
case 999:
|
|
119636
|
+
case 1000:
|
|
119637
|
+
case 1001:
|
|
119638
|
+
case 1:
|
|
119639
|
+
case 2:
|
|
119640
|
+
case 99997:
|
|
119641
|
+
case 99998:
|
|
119642
|
+
case 99999:
|
|
119643
|
+
case 2147483647:
|
|
119644
|
+
break;
|
|
119645
|
+
}
|
|
119646
|
+
return null;
|
|
119647
|
+
};
|
|
119648
|
+
|
|
119649
|
+
/**
|
|
119650
|
+
* Creates a FeatureSupport message from a plain object. Also converts values to their respective internal types.
|
|
119651
|
+
* @function fromObject
|
|
119652
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
119653
|
+
* @static
|
|
119654
|
+
* @param {Object.<string,*>} object Plain object
|
|
119655
|
+
* @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
|
|
119656
|
+
*/
|
|
119657
|
+
FeatureSupport.fromObject = function fromObject(object) {
|
|
119658
|
+
if (object instanceof $root.google.protobuf.FieldOptions.FeatureSupport)
|
|
119659
|
+
return object;
|
|
119660
|
+
var message = new $root.google.protobuf.FieldOptions.FeatureSupport();
|
|
119661
|
+
switch (object.editionIntroduced) {
|
|
119662
|
+
default:
|
|
119663
|
+
if (typeof object.editionIntroduced === "number") {
|
|
119664
|
+
message.editionIntroduced = object.editionIntroduced;
|
|
119665
|
+
break;
|
|
119666
|
+
}
|
|
119667
|
+
break;
|
|
119668
|
+
case "EDITION_UNKNOWN":
|
|
119669
|
+
case 0:
|
|
119670
|
+
message.editionIntroduced = 0;
|
|
119671
|
+
break;
|
|
119672
|
+
case "EDITION_LEGACY":
|
|
119673
|
+
case 900:
|
|
119674
|
+
message.editionIntroduced = 900;
|
|
119675
|
+
break;
|
|
119676
|
+
case "EDITION_PROTO2":
|
|
119677
|
+
case 998:
|
|
119678
|
+
message.editionIntroduced = 998;
|
|
119679
|
+
break;
|
|
119680
|
+
case "EDITION_PROTO3":
|
|
119681
|
+
case 999:
|
|
119682
|
+
message.editionIntroduced = 999;
|
|
119683
|
+
break;
|
|
119684
|
+
case "EDITION_2023":
|
|
119685
|
+
case 1000:
|
|
119686
|
+
message.editionIntroduced = 1000;
|
|
119687
|
+
break;
|
|
119688
|
+
case "EDITION_2024":
|
|
119689
|
+
case 1001:
|
|
119690
|
+
message.editionIntroduced = 1001;
|
|
119691
|
+
break;
|
|
119692
|
+
case "EDITION_1_TEST_ONLY":
|
|
119693
|
+
case 1:
|
|
119694
|
+
message.editionIntroduced = 1;
|
|
119695
|
+
break;
|
|
119696
|
+
case "EDITION_2_TEST_ONLY":
|
|
119697
|
+
case 2:
|
|
119698
|
+
message.editionIntroduced = 2;
|
|
119699
|
+
break;
|
|
119700
|
+
case "EDITION_99997_TEST_ONLY":
|
|
119701
|
+
case 99997:
|
|
119702
|
+
message.editionIntroduced = 99997;
|
|
119703
|
+
break;
|
|
119704
|
+
case "EDITION_99998_TEST_ONLY":
|
|
119705
|
+
case 99998:
|
|
119706
|
+
message.editionIntroduced = 99998;
|
|
119707
|
+
break;
|
|
119708
|
+
case "EDITION_99999_TEST_ONLY":
|
|
119709
|
+
case 99999:
|
|
119710
|
+
message.editionIntroduced = 99999;
|
|
119711
|
+
break;
|
|
119712
|
+
case "EDITION_MAX":
|
|
119713
|
+
case 2147483647:
|
|
119714
|
+
message.editionIntroduced = 2147483647;
|
|
119715
|
+
break;
|
|
119716
|
+
}
|
|
119717
|
+
switch (object.editionDeprecated) {
|
|
119718
|
+
default:
|
|
119719
|
+
if (typeof object.editionDeprecated === "number") {
|
|
119720
|
+
message.editionDeprecated = object.editionDeprecated;
|
|
119721
|
+
break;
|
|
119722
|
+
}
|
|
119723
|
+
break;
|
|
119724
|
+
case "EDITION_UNKNOWN":
|
|
119725
|
+
case 0:
|
|
119726
|
+
message.editionDeprecated = 0;
|
|
119727
|
+
break;
|
|
119728
|
+
case "EDITION_LEGACY":
|
|
119729
|
+
case 900:
|
|
119730
|
+
message.editionDeprecated = 900;
|
|
119731
|
+
break;
|
|
119732
|
+
case "EDITION_PROTO2":
|
|
119733
|
+
case 998:
|
|
119734
|
+
message.editionDeprecated = 998;
|
|
119735
|
+
break;
|
|
119736
|
+
case "EDITION_PROTO3":
|
|
119737
|
+
case 999:
|
|
119738
|
+
message.editionDeprecated = 999;
|
|
119739
|
+
break;
|
|
119740
|
+
case "EDITION_2023":
|
|
119741
|
+
case 1000:
|
|
119742
|
+
message.editionDeprecated = 1000;
|
|
119743
|
+
break;
|
|
119744
|
+
case "EDITION_2024":
|
|
119745
|
+
case 1001:
|
|
119746
|
+
message.editionDeprecated = 1001;
|
|
119747
|
+
break;
|
|
119748
|
+
case "EDITION_1_TEST_ONLY":
|
|
119749
|
+
case 1:
|
|
119750
|
+
message.editionDeprecated = 1;
|
|
119751
|
+
break;
|
|
119752
|
+
case "EDITION_2_TEST_ONLY":
|
|
119753
|
+
case 2:
|
|
119754
|
+
message.editionDeprecated = 2;
|
|
119755
|
+
break;
|
|
119756
|
+
case "EDITION_99997_TEST_ONLY":
|
|
119757
|
+
case 99997:
|
|
119758
|
+
message.editionDeprecated = 99997;
|
|
119759
|
+
break;
|
|
119760
|
+
case "EDITION_99998_TEST_ONLY":
|
|
119761
|
+
case 99998:
|
|
119762
|
+
message.editionDeprecated = 99998;
|
|
119763
|
+
break;
|
|
119764
|
+
case "EDITION_99999_TEST_ONLY":
|
|
119765
|
+
case 99999:
|
|
119766
|
+
message.editionDeprecated = 99999;
|
|
119767
|
+
break;
|
|
119768
|
+
case "EDITION_MAX":
|
|
119769
|
+
case 2147483647:
|
|
119770
|
+
message.editionDeprecated = 2147483647;
|
|
119771
|
+
break;
|
|
119772
|
+
}
|
|
119773
|
+
if (object.deprecationWarning != null)
|
|
119774
|
+
message.deprecationWarning = String(object.deprecationWarning);
|
|
119775
|
+
switch (object.editionRemoved) {
|
|
119776
|
+
default:
|
|
119777
|
+
if (typeof object.editionRemoved === "number") {
|
|
119778
|
+
message.editionRemoved = object.editionRemoved;
|
|
119779
|
+
break;
|
|
119780
|
+
}
|
|
119781
|
+
break;
|
|
119782
|
+
case "EDITION_UNKNOWN":
|
|
119783
|
+
case 0:
|
|
119784
|
+
message.editionRemoved = 0;
|
|
119785
|
+
break;
|
|
119786
|
+
case "EDITION_LEGACY":
|
|
119787
|
+
case 900:
|
|
119788
|
+
message.editionRemoved = 900;
|
|
119789
|
+
break;
|
|
119790
|
+
case "EDITION_PROTO2":
|
|
119791
|
+
case 998:
|
|
119792
|
+
message.editionRemoved = 998;
|
|
119793
|
+
break;
|
|
119794
|
+
case "EDITION_PROTO3":
|
|
119795
|
+
case 999:
|
|
119796
|
+
message.editionRemoved = 999;
|
|
119797
|
+
break;
|
|
119798
|
+
case "EDITION_2023":
|
|
119799
|
+
case 1000:
|
|
119800
|
+
message.editionRemoved = 1000;
|
|
119801
|
+
break;
|
|
119802
|
+
case "EDITION_2024":
|
|
119803
|
+
case 1001:
|
|
119804
|
+
message.editionRemoved = 1001;
|
|
119805
|
+
break;
|
|
119806
|
+
case "EDITION_1_TEST_ONLY":
|
|
119807
|
+
case 1:
|
|
119808
|
+
message.editionRemoved = 1;
|
|
119809
|
+
break;
|
|
119810
|
+
case "EDITION_2_TEST_ONLY":
|
|
119811
|
+
case 2:
|
|
119812
|
+
message.editionRemoved = 2;
|
|
119813
|
+
break;
|
|
119814
|
+
case "EDITION_99997_TEST_ONLY":
|
|
119815
|
+
case 99997:
|
|
119816
|
+
message.editionRemoved = 99997;
|
|
119817
|
+
break;
|
|
119818
|
+
case "EDITION_99998_TEST_ONLY":
|
|
119819
|
+
case 99998:
|
|
119820
|
+
message.editionRemoved = 99998;
|
|
119821
|
+
break;
|
|
119822
|
+
case "EDITION_99999_TEST_ONLY":
|
|
119823
|
+
case 99999:
|
|
119824
|
+
message.editionRemoved = 99999;
|
|
119825
|
+
break;
|
|
119826
|
+
case "EDITION_MAX":
|
|
119827
|
+
case 2147483647:
|
|
119828
|
+
message.editionRemoved = 2147483647;
|
|
119829
|
+
break;
|
|
119830
|
+
}
|
|
119831
|
+
return message;
|
|
119832
|
+
};
|
|
119833
|
+
|
|
119834
|
+
/**
|
|
119835
|
+
* Creates a plain object from a FeatureSupport message. Also converts values to other types if specified.
|
|
119836
|
+
* @function toObject
|
|
119837
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
119838
|
+
* @static
|
|
119839
|
+
* @param {google.protobuf.FieldOptions.FeatureSupport} message FeatureSupport
|
|
119840
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
119841
|
+
* @returns {Object.<string,*>} Plain object
|
|
119842
|
+
*/
|
|
119843
|
+
FeatureSupport.toObject = function toObject(message, options) {
|
|
119844
|
+
if (!options)
|
|
119845
|
+
options = {};
|
|
119846
|
+
var object = {};
|
|
119847
|
+
if (options.defaults) {
|
|
119848
|
+
object.editionIntroduced = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
119849
|
+
object.editionDeprecated = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
119850
|
+
object.deprecationWarning = "";
|
|
119851
|
+
object.editionRemoved = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
119852
|
+
}
|
|
119853
|
+
if (message.editionIntroduced != null && message.hasOwnProperty("editionIntroduced"))
|
|
119854
|
+
object.editionIntroduced = options.enums === String ? $root.google.protobuf.Edition[message.editionIntroduced] === undefined ? message.editionIntroduced : $root.google.protobuf.Edition[message.editionIntroduced] : message.editionIntroduced;
|
|
119855
|
+
if (message.editionDeprecated != null && message.hasOwnProperty("editionDeprecated"))
|
|
119856
|
+
object.editionDeprecated = options.enums === String ? $root.google.protobuf.Edition[message.editionDeprecated] === undefined ? message.editionDeprecated : $root.google.protobuf.Edition[message.editionDeprecated] : message.editionDeprecated;
|
|
119857
|
+
if (message.deprecationWarning != null && message.hasOwnProperty("deprecationWarning"))
|
|
119858
|
+
object.deprecationWarning = message.deprecationWarning;
|
|
119859
|
+
if (message.editionRemoved != null && message.hasOwnProperty("editionRemoved"))
|
|
119860
|
+
object.editionRemoved = options.enums === String ? $root.google.protobuf.Edition[message.editionRemoved] === undefined ? message.editionRemoved : $root.google.protobuf.Edition[message.editionRemoved] : message.editionRemoved;
|
|
119861
|
+
return object;
|
|
119862
|
+
};
|
|
119863
|
+
|
|
119864
|
+
/**
|
|
119865
|
+
* Converts this FeatureSupport to JSON.
|
|
119866
|
+
* @function toJSON
|
|
119867
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
119868
|
+
* @instance
|
|
119869
|
+
* @returns {Object.<string,*>} JSON object
|
|
119870
|
+
*/
|
|
119871
|
+
FeatureSupport.prototype.toJSON = function toJSON() {
|
|
119872
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
119873
|
+
};
|
|
119874
|
+
|
|
119875
|
+
/**
|
|
119876
|
+
* Gets the default type url for FeatureSupport
|
|
119877
|
+
* @function getTypeUrl
|
|
119878
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
119879
|
+
* @static
|
|
119880
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
119881
|
+
* @returns {string} The default type url
|
|
119882
|
+
*/
|
|
119883
|
+
FeatureSupport.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
119884
|
+
if (typeUrlPrefix === undefined) {
|
|
119885
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
119886
|
+
}
|
|
119887
|
+
return typeUrlPrefix + "/google.protobuf.FieldOptions.FeatureSupport";
|
|
119888
|
+
};
|
|
119889
|
+
|
|
119890
|
+
return FeatureSupport;
|
|
119891
|
+
})();
|
|
119892
|
+
|
|
117587
119893
|
return FieldOptions;
|
|
117588
119894
|
})();
|
|
117589
119895
|
|
|
@@ -118176,6 +120482,7 @@
|
|
|
118176
120482
|
* @property {boolean|null} [deprecated] EnumValueOptions deprecated
|
|
118177
120483
|
* @property {google.protobuf.IFeatureSet|null} [features] EnumValueOptions features
|
|
118178
120484
|
* @property {boolean|null} [debugRedact] EnumValueOptions debugRedact
|
|
120485
|
+
* @property {google.protobuf.FieldOptions.IFeatureSupport|null} [featureSupport] EnumValueOptions featureSupport
|
|
118179
120486
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] EnumValueOptions uninterpretedOption
|
|
118180
120487
|
*/
|
|
118181
120488
|
|
|
@@ -118219,6 +120526,14 @@
|
|
|
118219
120526
|
*/
|
|
118220
120527
|
EnumValueOptions.prototype.debugRedact = false;
|
|
118221
120528
|
|
|
120529
|
+
/**
|
|
120530
|
+
* EnumValueOptions featureSupport.
|
|
120531
|
+
* @member {google.protobuf.FieldOptions.IFeatureSupport|null|undefined} featureSupport
|
|
120532
|
+
* @memberof google.protobuf.EnumValueOptions
|
|
120533
|
+
* @instance
|
|
120534
|
+
*/
|
|
120535
|
+
EnumValueOptions.prototype.featureSupport = null;
|
|
120536
|
+
|
|
118222
120537
|
/**
|
|
118223
120538
|
* EnumValueOptions uninterpretedOption.
|
|
118224
120539
|
* @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
|
|
@@ -118257,6 +120572,8 @@
|
|
|
118257
120572
|
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
118258
120573
|
if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact"))
|
|
118259
120574
|
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.debugRedact);
|
|
120575
|
+
if (message.featureSupport != null && Object.hasOwnProperty.call(message, "featureSupport"))
|
|
120576
|
+
$root.google.protobuf.FieldOptions.FeatureSupport.encode(message.featureSupport, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
118260
120577
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
|
118261
120578
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
|
118262
120579
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
@@ -118308,6 +120625,10 @@
|
|
|
118308
120625
|
message.debugRedact = reader.bool();
|
|
118309
120626
|
break;
|
|
118310
120627
|
}
|
|
120628
|
+
case 4: {
|
|
120629
|
+
message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.decode(reader, reader.uint32());
|
|
120630
|
+
break;
|
|
120631
|
+
}
|
|
118311
120632
|
case 999: {
|
|
118312
120633
|
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
|
|
118313
120634
|
message.uninterpretedOption = [];
|
|
@@ -118360,6 +120681,11 @@
|
|
|
118360
120681
|
if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
|
|
118361
120682
|
if (typeof message.debugRedact !== "boolean")
|
|
118362
120683
|
return "debugRedact: boolean expected";
|
|
120684
|
+
if (message.featureSupport != null && message.hasOwnProperty("featureSupport")) {
|
|
120685
|
+
var error = $root.google.protobuf.FieldOptions.FeatureSupport.verify(message.featureSupport);
|
|
120686
|
+
if (error)
|
|
120687
|
+
return "featureSupport." + error;
|
|
120688
|
+
}
|
|
118363
120689
|
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
|
|
118364
120690
|
if (!Array.isArray(message.uninterpretedOption))
|
|
118365
120691
|
return "uninterpretedOption: array expected";
|
|
@@ -118393,6 +120719,11 @@
|
|
|
118393
120719
|
}
|
|
118394
120720
|
if (object.debugRedact != null)
|
|
118395
120721
|
message.debugRedact = Boolean(object.debugRedact);
|
|
120722
|
+
if (object.featureSupport != null) {
|
|
120723
|
+
if (typeof object.featureSupport !== "object")
|
|
120724
|
+
throw TypeError(".google.protobuf.EnumValueOptions.featureSupport: object expected");
|
|
120725
|
+
message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.fromObject(object.featureSupport);
|
|
120726
|
+
}
|
|
118396
120727
|
if (object.uninterpretedOption) {
|
|
118397
120728
|
if (!Array.isArray(object.uninterpretedOption))
|
|
118398
120729
|
throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected");
|
|
@@ -118425,6 +120756,7 @@
|
|
|
118425
120756
|
object.deprecated = false;
|
|
118426
120757
|
object.features = null;
|
|
118427
120758
|
object.debugRedact = false;
|
|
120759
|
+
object.featureSupport = null;
|
|
118428
120760
|
}
|
|
118429
120761
|
if (message.deprecated != null && message.hasOwnProperty("deprecated"))
|
|
118430
120762
|
object.deprecated = message.deprecated;
|
|
@@ -118432,6 +120764,8 @@
|
|
|
118432
120764
|
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
|
118433
120765
|
if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
|
|
118434
120766
|
object.debugRedact = message.debugRedact;
|
|
120767
|
+
if (message.featureSupport != null && message.hasOwnProperty("featureSupport"))
|
|
120768
|
+
object.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.toObject(message.featureSupport, options);
|
|
118435
120769
|
if (message.uninterpretedOption && message.uninterpretedOption.length) {
|
|
118436
120770
|
object.uninterpretedOption = [];
|
|
118437
120771
|
for (var j = 0; j < message.uninterpretedOption.length; ++j)
|
|
@@ -119871,6 +122205,8 @@
|
|
|
119871
122205
|
* @property {google.protobuf.FeatureSet.Utf8Validation|null} [utf8Validation] FeatureSet utf8Validation
|
|
119872
122206
|
* @property {google.protobuf.FeatureSet.MessageEncoding|null} [messageEncoding] FeatureSet messageEncoding
|
|
119873
122207
|
* @property {google.protobuf.FeatureSet.JsonFormat|null} [jsonFormat] FeatureSet jsonFormat
|
|
122208
|
+
* @property {google.protobuf.FeatureSet.EnforceNamingStyle|null} [enforceNamingStyle] FeatureSet enforceNamingStyle
|
|
122209
|
+
* @property {google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility|null} [defaultSymbolVisibility] FeatureSet defaultSymbolVisibility
|
|
119874
122210
|
*/
|
|
119875
122211
|
|
|
119876
122212
|
/**
|
|
@@ -119936,6 +122272,22 @@
|
|
|
119936
122272
|
*/
|
|
119937
122273
|
FeatureSet.prototype.jsonFormat = 0;
|
|
119938
122274
|
|
|
122275
|
+
/**
|
|
122276
|
+
* FeatureSet enforceNamingStyle.
|
|
122277
|
+
* @member {google.protobuf.FeatureSet.EnforceNamingStyle} enforceNamingStyle
|
|
122278
|
+
* @memberof google.protobuf.FeatureSet
|
|
122279
|
+
* @instance
|
|
122280
|
+
*/
|
|
122281
|
+
FeatureSet.prototype.enforceNamingStyle = 0;
|
|
122282
|
+
|
|
122283
|
+
/**
|
|
122284
|
+
* FeatureSet defaultSymbolVisibility.
|
|
122285
|
+
* @member {google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility} defaultSymbolVisibility
|
|
122286
|
+
* @memberof google.protobuf.FeatureSet
|
|
122287
|
+
* @instance
|
|
122288
|
+
*/
|
|
122289
|
+
FeatureSet.prototype.defaultSymbolVisibility = 0;
|
|
122290
|
+
|
|
119939
122291
|
/**
|
|
119940
122292
|
* Creates a new FeatureSet instance using the specified properties.
|
|
119941
122293
|
* @function create
|
|
@@ -119972,6 +122324,10 @@
|
|
|
119972
122324
|
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.messageEncoding);
|
|
119973
122325
|
if (message.jsonFormat != null && Object.hasOwnProperty.call(message, "jsonFormat"))
|
|
119974
122326
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jsonFormat);
|
|
122327
|
+
if (message.enforceNamingStyle != null && Object.hasOwnProperty.call(message, "enforceNamingStyle"))
|
|
122328
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.enforceNamingStyle);
|
|
122329
|
+
if (message.defaultSymbolVisibility != null && Object.hasOwnProperty.call(message, "defaultSymbolVisibility"))
|
|
122330
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.defaultSymbolVisibility);
|
|
119975
122331
|
return writer;
|
|
119976
122332
|
};
|
|
119977
122333
|
|
|
@@ -120032,6 +122388,14 @@
|
|
|
120032
122388
|
message.jsonFormat = reader.int32();
|
|
120033
122389
|
break;
|
|
120034
122390
|
}
|
|
122391
|
+
case 7: {
|
|
122392
|
+
message.enforceNamingStyle = reader.int32();
|
|
122393
|
+
break;
|
|
122394
|
+
}
|
|
122395
|
+
case 8: {
|
|
122396
|
+
message.defaultSymbolVisibility = reader.int32();
|
|
122397
|
+
break;
|
|
122398
|
+
}
|
|
120035
122399
|
default:
|
|
120036
122400
|
reader.skipType(tag & 7);
|
|
120037
122401
|
break;
|
|
@@ -120122,6 +122486,26 @@
|
|
|
120122
122486
|
case 2:
|
|
120123
122487
|
break;
|
|
120124
122488
|
}
|
|
122489
|
+
if (message.enforceNamingStyle != null && message.hasOwnProperty("enforceNamingStyle"))
|
|
122490
|
+
switch (message.enforceNamingStyle) {
|
|
122491
|
+
default:
|
|
122492
|
+
return "enforceNamingStyle: enum value expected";
|
|
122493
|
+
case 0:
|
|
122494
|
+
case 1:
|
|
122495
|
+
case 2:
|
|
122496
|
+
break;
|
|
122497
|
+
}
|
|
122498
|
+
if (message.defaultSymbolVisibility != null && message.hasOwnProperty("defaultSymbolVisibility"))
|
|
122499
|
+
switch (message.defaultSymbolVisibility) {
|
|
122500
|
+
default:
|
|
122501
|
+
return "defaultSymbolVisibility: enum value expected";
|
|
122502
|
+
case 0:
|
|
122503
|
+
case 1:
|
|
122504
|
+
case 2:
|
|
122505
|
+
case 3:
|
|
122506
|
+
case 4:
|
|
122507
|
+
break;
|
|
122508
|
+
}
|
|
120125
122509
|
return null;
|
|
120126
122510
|
};
|
|
120127
122511
|
|
|
@@ -120261,6 +122645,54 @@
|
|
|
120261
122645
|
message.jsonFormat = 2;
|
|
120262
122646
|
break;
|
|
120263
122647
|
}
|
|
122648
|
+
switch (object.enforceNamingStyle) {
|
|
122649
|
+
default:
|
|
122650
|
+
if (typeof object.enforceNamingStyle === "number") {
|
|
122651
|
+
message.enforceNamingStyle = object.enforceNamingStyle;
|
|
122652
|
+
break;
|
|
122653
|
+
}
|
|
122654
|
+
break;
|
|
122655
|
+
case "ENFORCE_NAMING_STYLE_UNKNOWN":
|
|
122656
|
+
case 0:
|
|
122657
|
+
message.enforceNamingStyle = 0;
|
|
122658
|
+
break;
|
|
122659
|
+
case "STYLE2024":
|
|
122660
|
+
case 1:
|
|
122661
|
+
message.enforceNamingStyle = 1;
|
|
122662
|
+
break;
|
|
122663
|
+
case "STYLE_LEGACY":
|
|
122664
|
+
case 2:
|
|
122665
|
+
message.enforceNamingStyle = 2;
|
|
122666
|
+
break;
|
|
122667
|
+
}
|
|
122668
|
+
switch (object.defaultSymbolVisibility) {
|
|
122669
|
+
default:
|
|
122670
|
+
if (typeof object.defaultSymbolVisibility === "number") {
|
|
122671
|
+
message.defaultSymbolVisibility = object.defaultSymbolVisibility;
|
|
122672
|
+
break;
|
|
122673
|
+
}
|
|
122674
|
+
break;
|
|
122675
|
+
case "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN":
|
|
122676
|
+
case 0:
|
|
122677
|
+
message.defaultSymbolVisibility = 0;
|
|
122678
|
+
break;
|
|
122679
|
+
case "EXPORT_ALL":
|
|
122680
|
+
case 1:
|
|
122681
|
+
message.defaultSymbolVisibility = 1;
|
|
122682
|
+
break;
|
|
122683
|
+
case "EXPORT_TOP_LEVEL":
|
|
122684
|
+
case 2:
|
|
122685
|
+
message.defaultSymbolVisibility = 2;
|
|
122686
|
+
break;
|
|
122687
|
+
case "LOCAL_ALL":
|
|
122688
|
+
case 3:
|
|
122689
|
+
message.defaultSymbolVisibility = 3;
|
|
122690
|
+
break;
|
|
122691
|
+
case "STRICT":
|
|
122692
|
+
case 4:
|
|
122693
|
+
message.defaultSymbolVisibility = 4;
|
|
122694
|
+
break;
|
|
122695
|
+
}
|
|
120264
122696
|
return message;
|
|
120265
122697
|
};
|
|
120266
122698
|
|
|
@@ -120284,6 +122716,8 @@
|
|
|
120284
122716
|
object.utf8Validation = options.enums === String ? "UTF8_VALIDATION_UNKNOWN" : 0;
|
|
120285
122717
|
object.messageEncoding = options.enums === String ? "MESSAGE_ENCODING_UNKNOWN" : 0;
|
|
120286
122718
|
object.jsonFormat = options.enums === String ? "JSON_FORMAT_UNKNOWN" : 0;
|
|
122719
|
+
object.enforceNamingStyle = options.enums === String ? "ENFORCE_NAMING_STYLE_UNKNOWN" : 0;
|
|
122720
|
+
object.defaultSymbolVisibility = options.enums === String ? "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN" : 0;
|
|
120287
122721
|
}
|
|
120288
122722
|
if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence"))
|
|
120289
122723
|
object.fieldPresence = options.enums === String ? $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] === undefined ? message.fieldPresence : $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] : message.fieldPresence;
|
|
@@ -120297,6 +122731,10 @@
|
|
|
120297
122731
|
object.messageEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] === undefined ? message.messageEncoding : $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] : message.messageEncoding;
|
|
120298
122732
|
if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat"))
|
|
120299
122733
|
object.jsonFormat = options.enums === String ? $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] === undefined ? message.jsonFormat : $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] : message.jsonFormat;
|
|
122734
|
+
if (message.enforceNamingStyle != null && message.hasOwnProperty("enforceNamingStyle"))
|
|
122735
|
+
object.enforceNamingStyle = options.enums === String ? $root.google.protobuf.FeatureSet.EnforceNamingStyle[message.enforceNamingStyle] === undefined ? message.enforceNamingStyle : $root.google.protobuf.FeatureSet.EnforceNamingStyle[message.enforceNamingStyle] : message.enforceNamingStyle;
|
|
122736
|
+
if (message.defaultSymbolVisibility != null && message.hasOwnProperty("defaultSymbolVisibility"))
|
|
122737
|
+
object.defaultSymbolVisibility = options.enums === String ? $root.google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility[message.defaultSymbolVisibility] === undefined ? message.defaultSymbolVisibility : $root.google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility[message.defaultSymbolVisibility] : message.defaultSymbolVisibility;
|
|
120300
122738
|
return object;
|
|
120301
122739
|
};
|
|
120302
122740
|
|
|
@@ -120424,6 +122862,219 @@
|
|
|
120424
122862
|
return values;
|
|
120425
122863
|
})();
|
|
120426
122864
|
|
|
122865
|
+
/**
|
|
122866
|
+
* EnforceNamingStyle enum.
|
|
122867
|
+
* @name google.protobuf.FeatureSet.EnforceNamingStyle
|
|
122868
|
+
* @enum {number}
|
|
122869
|
+
* @property {number} ENFORCE_NAMING_STYLE_UNKNOWN=0 ENFORCE_NAMING_STYLE_UNKNOWN value
|
|
122870
|
+
* @property {number} STYLE2024=1 STYLE2024 value
|
|
122871
|
+
* @property {number} STYLE_LEGACY=2 STYLE_LEGACY value
|
|
122872
|
+
*/
|
|
122873
|
+
FeatureSet.EnforceNamingStyle = (function() {
|
|
122874
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
122875
|
+
values[valuesById[0] = "ENFORCE_NAMING_STYLE_UNKNOWN"] = 0;
|
|
122876
|
+
values[valuesById[1] = "STYLE2024"] = 1;
|
|
122877
|
+
values[valuesById[2] = "STYLE_LEGACY"] = 2;
|
|
122878
|
+
return values;
|
|
122879
|
+
})();
|
|
122880
|
+
|
|
122881
|
+
FeatureSet.VisibilityFeature = (function() {
|
|
122882
|
+
|
|
122883
|
+
/**
|
|
122884
|
+
* Properties of a VisibilityFeature.
|
|
122885
|
+
* @memberof google.protobuf.FeatureSet
|
|
122886
|
+
* @interface IVisibilityFeature
|
|
122887
|
+
*/
|
|
122888
|
+
|
|
122889
|
+
/**
|
|
122890
|
+
* Constructs a new VisibilityFeature.
|
|
122891
|
+
* @memberof google.protobuf.FeatureSet
|
|
122892
|
+
* @classdesc Represents a VisibilityFeature.
|
|
122893
|
+
* @implements IVisibilityFeature
|
|
122894
|
+
* @constructor
|
|
122895
|
+
* @param {google.protobuf.FeatureSet.IVisibilityFeature=} [properties] Properties to set
|
|
122896
|
+
*/
|
|
122897
|
+
function VisibilityFeature(properties) {
|
|
122898
|
+
if (properties)
|
|
122899
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
122900
|
+
if (properties[keys[i]] != null)
|
|
122901
|
+
this[keys[i]] = properties[keys[i]];
|
|
122902
|
+
}
|
|
122903
|
+
|
|
122904
|
+
/**
|
|
122905
|
+
* Creates a new VisibilityFeature instance using the specified properties.
|
|
122906
|
+
* @function create
|
|
122907
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
122908
|
+
* @static
|
|
122909
|
+
* @param {google.protobuf.FeatureSet.IVisibilityFeature=} [properties] Properties to set
|
|
122910
|
+
* @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature instance
|
|
122911
|
+
*/
|
|
122912
|
+
VisibilityFeature.create = function create(properties) {
|
|
122913
|
+
return new VisibilityFeature(properties);
|
|
122914
|
+
};
|
|
122915
|
+
|
|
122916
|
+
/**
|
|
122917
|
+
* Encodes the specified VisibilityFeature message. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
|
|
122918
|
+
* @function encode
|
|
122919
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
122920
|
+
* @static
|
|
122921
|
+
* @param {google.protobuf.FeatureSet.IVisibilityFeature} message VisibilityFeature message or plain object to encode
|
|
122922
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
122923
|
+
* @returns {$protobuf.Writer} Writer
|
|
122924
|
+
*/
|
|
122925
|
+
VisibilityFeature.encode = function encode(message, writer) {
|
|
122926
|
+
if (!writer)
|
|
122927
|
+
writer = $Writer.create();
|
|
122928
|
+
return writer;
|
|
122929
|
+
};
|
|
122930
|
+
|
|
122931
|
+
/**
|
|
122932
|
+
* Encodes the specified VisibilityFeature message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
|
|
122933
|
+
* @function encodeDelimited
|
|
122934
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
122935
|
+
* @static
|
|
122936
|
+
* @param {google.protobuf.FeatureSet.IVisibilityFeature} message VisibilityFeature message or plain object to encode
|
|
122937
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
122938
|
+
* @returns {$protobuf.Writer} Writer
|
|
122939
|
+
*/
|
|
122940
|
+
VisibilityFeature.encodeDelimited = function encodeDelimited(message, writer) {
|
|
122941
|
+
return this.encode(message, writer).ldelim();
|
|
122942
|
+
};
|
|
122943
|
+
|
|
122944
|
+
/**
|
|
122945
|
+
* Decodes a VisibilityFeature message from the specified reader or buffer.
|
|
122946
|
+
* @function decode
|
|
122947
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
122948
|
+
* @static
|
|
122949
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
122950
|
+
* @param {number} [length] Message length if known beforehand
|
|
122951
|
+
* @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
|
|
122952
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
122953
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
122954
|
+
*/
|
|
122955
|
+
VisibilityFeature.decode = function decode(reader, length, error) {
|
|
122956
|
+
if (!(reader instanceof $Reader))
|
|
122957
|
+
reader = $Reader.create(reader);
|
|
122958
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSet.VisibilityFeature();
|
|
122959
|
+
while (reader.pos < end) {
|
|
122960
|
+
var tag = reader.uint32();
|
|
122961
|
+
if (tag === error)
|
|
122962
|
+
break;
|
|
122963
|
+
switch (tag >>> 3) {
|
|
122964
|
+
default:
|
|
122965
|
+
reader.skipType(tag & 7);
|
|
122966
|
+
break;
|
|
122967
|
+
}
|
|
122968
|
+
}
|
|
122969
|
+
return message;
|
|
122970
|
+
};
|
|
122971
|
+
|
|
122972
|
+
/**
|
|
122973
|
+
* Decodes a VisibilityFeature message from the specified reader or buffer, length delimited.
|
|
122974
|
+
* @function decodeDelimited
|
|
122975
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
122976
|
+
* @static
|
|
122977
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
122978
|
+
* @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
|
|
122979
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
122980
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
122981
|
+
*/
|
|
122982
|
+
VisibilityFeature.decodeDelimited = function decodeDelimited(reader) {
|
|
122983
|
+
if (!(reader instanceof $Reader))
|
|
122984
|
+
reader = new $Reader(reader);
|
|
122985
|
+
return this.decode(reader, reader.uint32());
|
|
122986
|
+
};
|
|
122987
|
+
|
|
122988
|
+
/**
|
|
122989
|
+
* Verifies a VisibilityFeature message.
|
|
122990
|
+
* @function verify
|
|
122991
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
122992
|
+
* @static
|
|
122993
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
122994
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
122995
|
+
*/
|
|
122996
|
+
VisibilityFeature.verify = function verify(message) {
|
|
122997
|
+
if (typeof message !== "object" || message === null)
|
|
122998
|
+
return "object expected";
|
|
122999
|
+
return null;
|
|
123000
|
+
};
|
|
123001
|
+
|
|
123002
|
+
/**
|
|
123003
|
+
* Creates a VisibilityFeature message from a plain object. Also converts values to their respective internal types.
|
|
123004
|
+
* @function fromObject
|
|
123005
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
123006
|
+
* @static
|
|
123007
|
+
* @param {Object.<string,*>} object Plain object
|
|
123008
|
+
* @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
|
|
123009
|
+
*/
|
|
123010
|
+
VisibilityFeature.fromObject = function fromObject(object) {
|
|
123011
|
+
if (object instanceof $root.google.protobuf.FeatureSet.VisibilityFeature)
|
|
123012
|
+
return object;
|
|
123013
|
+
return new $root.google.protobuf.FeatureSet.VisibilityFeature();
|
|
123014
|
+
};
|
|
123015
|
+
|
|
123016
|
+
/**
|
|
123017
|
+
* Creates a plain object from a VisibilityFeature message. Also converts values to other types if specified.
|
|
123018
|
+
* @function toObject
|
|
123019
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
123020
|
+
* @static
|
|
123021
|
+
* @param {google.protobuf.FeatureSet.VisibilityFeature} message VisibilityFeature
|
|
123022
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
123023
|
+
* @returns {Object.<string,*>} Plain object
|
|
123024
|
+
*/
|
|
123025
|
+
VisibilityFeature.toObject = function toObject() {
|
|
123026
|
+
return {};
|
|
123027
|
+
};
|
|
123028
|
+
|
|
123029
|
+
/**
|
|
123030
|
+
* Converts this VisibilityFeature to JSON.
|
|
123031
|
+
* @function toJSON
|
|
123032
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
123033
|
+
* @instance
|
|
123034
|
+
* @returns {Object.<string,*>} JSON object
|
|
123035
|
+
*/
|
|
123036
|
+
VisibilityFeature.prototype.toJSON = function toJSON() {
|
|
123037
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
123038
|
+
};
|
|
123039
|
+
|
|
123040
|
+
/**
|
|
123041
|
+
* Gets the default type url for VisibilityFeature
|
|
123042
|
+
* @function getTypeUrl
|
|
123043
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
123044
|
+
* @static
|
|
123045
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
123046
|
+
* @returns {string} The default type url
|
|
123047
|
+
*/
|
|
123048
|
+
VisibilityFeature.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
123049
|
+
if (typeUrlPrefix === undefined) {
|
|
123050
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
123051
|
+
}
|
|
123052
|
+
return typeUrlPrefix + "/google.protobuf.FeatureSet.VisibilityFeature";
|
|
123053
|
+
};
|
|
123054
|
+
|
|
123055
|
+
/**
|
|
123056
|
+
* DefaultSymbolVisibility enum.
|
|
123057
|
+
* @name google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility
|
|
123058
|
+
* @enum {number}
|
|
123059
|
+
* @property {number} DEFAULT_SYMBOL_VISIBILITY_UNKNOWN=0 DEFAULT_SYMBOL_VISIBILITY_UNKNOWN value
|
|
123060
|
+
* @property {number} EXPORT_ALL=1 EXPORT_ALL value
|
|
123061
|
+
* @property {number} EXPORT_TOP_LEVEL=2 EXPORT_TOP_LEVEL value
|
|
123062
|
+
* @property {number} LOCAL_ALL=3 LOCAL_ALL value
|
|
123063
|
+
* @property {number} STRICT=4 STRICT value
|
|
123064
|
+
*/
|
|
123065
|
+
VisibilityFeature.DefaultSymbolVisibility = (function() {
|
|
123066
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
123067
|
+
values[valuesById[0] = "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN"] = 0;
|
|
123068
|
+
values[valuesById[1] = "EXPORT_ALL"] = 1;
|
|
123069
|
+
values[valuesById[2] = "EXPORT_TOP_LEVEL"] = 2;
|
|
123070
|
+
values[valuesById[3] = "LOCAL_ALL"] = 3;
|
|
123071
|
+
values[valuesById[4] = "STRICT"] = 4;
|
|
123072
|
+
return values;
|
|
123073
|
+
})();
|
|
123074
|
+
|
|
123075
|
+
return VisibilityFeature;
|
|
123076
|
+
})();
|
|
123077
|
+
|
|
120427
123078
|
return FeatureSet;
|
|
120428
123079
|
})();
|
|
120429
123080
|
|
|
@@ -120608,6 +123259,7 @@
|
|
|
120608
123259
|
default:
|
|
120609
123260
|
return "minimumEdition: enum value expected";
|
|
120610
123261
|
case 0:
|
|
123262
|
+
case 900:
|
|
120611
123263
|
case 998:
|
|
120612
123264
|
case 999:
|
|
120613
123265
|
case 1000:
|
|
@@ -120625,6 +123277,7 @@
|
|
|
120625
123277
|
default:
|
|
120626
123278
|
return "maximumEdition: enum value expected";
|
|
120627
123279
|
case 0:
|
|
123280
|
+
case 900:
|
|
120628
123281
|
case 998:
|
|
120629
123282
|
case 999:
|
|
120630
123283
|
case 1000:
|
|
@@ -120673,6 +123326,10 @@
|
|
|
120673
123326
|
case 0:
|
|
120674
123327
|
message.minimumEdition = 0;
|
|
120675
123328
|
break;
|
|
123329
|
+
case "EDITION_LEGACY":
|
|
123330
|
+
case 900:
|
|
123331
|
+
message.minimumEdition = 900;
|
|
123332
|
+
break;
|
|
120676
123333
|
case "EDITION_PROTO2":
|
|
120677
123334
|
case 998:
|
|
120678
123335
|
message.minimumEdition = 998;
|
|
@@ -120725,6 +123382,10 @@
|
|
|
120725
123382
|
case 0:
|
|
120726
123383
|
message.maximumEdition = 0;
|
|
120727
123384
|
break;
|
|
123385
|
+
case "EDITION_LEGACY":
|
|
123386
|
+
case 900:
|
|
123387
|
+
message.maximumEdition = 900;
|
|
123388
|
+
break;
|
|
120728
123389
|
case "EDITION_PROTO2":
|
|
120729
123390
|
case 998:
|
|
120730
123391
|
message.maximumEdition = 998;
|
|
@@ -120833,7 +123494,8 @@
|
|
|
120833
123494
|
* @memberof google.protobuf.FeatureSetDefaults
|
|
120834
123495
|
* @interface IFeatureSetEditionDefault
|
|
120835
123496
|
* @property {google.protobuf.Edition|null} [edition] FeatureSetEditionDefault edition
|
|
120836
|
-
* @property {google.protobuf.IFeatureSet|null} [
|
|
123497
|
+
* @property {google.protobuf.IFeatureSet|null} [overridableFeatures] FeatureSetEditionDefault overridableFeatures
|
|
123498
|
+
* @property {google.protobuf.IFeatureSet|null} [fixedFeatures] FeatureSetEditionDefault fixedFeatures
|
|
120837
123499
|
*/
|
|
120838
123500
|
|
|
120839
123501
|
/**
|
|
@@ -120860,12 +123522,20 @@
|
|
|
120860
123522
|
FeatureSetEditionDefault.prototype.edition = 0;
|
|
120861
123523
|
|
|
120862
123524
|
/**
|
|
120863
|
-
* FeatureSetEditionDefault
|
|
120864
|
-
* @member {google.protobuf.IFeatureSet|null|undefined}
|
|
123525
|
+
* FeatureSetEditionDefault overridableFeatures.
|
|
123526
|
+
* @member {google.protobuf.IFeatureSet|null|undefined} overridableFeatures
|
|
123527
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
123528
|
+
* @instance
|
|
123529
|
+
*/
|
|
123530
|
+
FeatureSetEditionDefault.prototype.overridableFeatures = null;
|
|
123531
|
+
|
|
123532
|
+
/**
|
|
123533
|
+
* FeatureSetEditionDefault fixedFeatures.
|
|
123534
|
+
* @member {google.protobuf.IFeatureSet|null|undefined} fixedFeatures
|
|
120865
123535
|
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
120866
123536
|
* @instance
|
|
120867
123537
|
*/
|
|
120868
|
-
FeatureSetEditionDefault.prototype.
|
|
123538
|
+
FeatureSetEditionDefault.prototype.fixedFeatures = null;
|
|
120869
123539
|
|
|
120870
123540
|
/**
|
|
120871
123541
|
* Creates a new FeatureSetEditionDefault instance using the specified properties.
|
|
@@ -120891,10 +123561,12 @@
|
|
|
120891
123561
|
FeatureSetEditionDefault.encode = function encode(message, writer) {
|
|
120892
123562
|
if (!writer)
|
|
120893
123563
|
writer = $Writer.create();
|
|
120894
|
-
if (message.features != null && Object.hasOwnProperty.call(message, "features"))
|
|
120895
|
-
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
120896
123564
|
if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
|
|
120897
123565
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition);
|
|
123566
|
+
if (message.overridableFeatures != null && Object.hasOwnProperty.call(message, "overridableFeatures"))
|
|
123567
|
+
$root.google.protobuf.FeatureSet.encode(message.overridableFeatures, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
123568
|
+
if (message.fixedFeatures != null && Object.hasOwnProperty.call(message, "fixedFeatures"))
|
|
123569
|
+
$root.google.protobuf.FeatureSet.encode(message.fixedFeatures, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
120898
123570
|
return writer;
|
|
120899
123571
|
};
|
|
120900
123572
|
|
|
@@ -120935,8 +123607,12 @@
|
|
|
120935
123607
|
message.edition = reader.int32();
|
|
120936
123608
|
break;
|
|
120937
123609
|
}
|
|
120938
|
-
case
|
|
120939
|
-
message.
|
|
123610
|
+
case 4: {
|
|
123611
|
+
message.overridableFeatures = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
123612
|
+
break;
|
|
123613
|
+
}
|
|
123614
|
+
case 5: {
|
|
123615
|
+
message.fixedFeatures = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
120940
123616
|
break;
|
|
120941
123617
|
}
|
|
120942
123618
|
default:
|
|
@@ -120979,6 +123655,7 @@
|
|
|
120979
123655
|
default:
|
|
120980
123656
|
return "edition: enum value expected";
|
|
120981
123657
|
case 0:
|
|
123658
|
+
case 900:
|
|
120982
123659
|
case 998:
|
|
120983
123660
|
case 999:
|
|
120984
123661
|
case 1000:
|
|
@@ -120991,10 +123668,15 @@
|
|
|
120991
123668
|
case 2147483647:
|
|
120992
123669
|
break;
|
|
120993
123670
|
}
|
|
120994
|
-
if (message.
|
|
120995
|
-
var error = $root.google.protobuf.FeatureSet.verify(message.
|
|
123671
|
+
if (message.overridableFeatures != null && message.hasOwnProperty("overridableFeatures")) {
|
|
123672
|
+
var error = $root.google.protobuf.FeatureSet.verify(message.overridableFeatures);
|
|
123673
|
+
if (error)
|
|
123674
|
+
return "overridableFeatures." + error;
|
|
123675
|
+
}
|
|
123676
|
+
if (message.fixedFeatures != null && message.hasOwnProperty("fixedFeatures")) {
|
|
123677
|
+
var error = $root.google.protobuf.FeatureSet.verify(message.fixedFeatures);
|
|
120996
123678
|
if (error)
|
|
120997
|
-
return "
|
|
123679
|
+
return "fixedFeatures." + error;
|
|
120998
123680
|
}
|
|
120999
123681
|
return null;
|
|
121000
123682
|
};
|
|
@@ -121022,6 +123704,10 @@
|
|
|
121022
123704
|
case 0:
|
|
121023
123705
|
message.edition = 0;
|
|
121024
123706
|
break;
|
|
123707
|
+
case "EDITION_LEGACY":
|
|
123708
|
+
case 900:
|
|
123709
|
+
message.edition = 900;
|
|
123710
|
+
break;
|
|
121025
123711
|
case "EDITION_PROTO2":
|
|
121026
123712
|
case 998:
|
|
121027
123713
|
message.edition = 998;
|
|
@@ -121063,10 +123749,15 @@
|
|
|
121063
123749
|
message.edition = 2147483647;
|
|
121064
123750
|
break;
|
|
121065
123751
|
}
|
|
121066
|
-
if (object.
|
|
121067
|
-
if (typeof object.
|
|
121068
|
-
throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.
|
|
121069
|
-
message.
|
|
123752
|
+
if (object.overridableFeatures != null) {
|
|
123753
|
+
if (typeof object.overridableFeatures !== "object")
|
|
123754
|
+
throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.overridableFeatures: object expected");
|
|
123755
|
+
message.overridableFeatures = $root.google.protobuf.FeatureSet.fromObject(object.overridableFeatures);
|
|
123756
|
+
}
|
|
123757
|
+
if (object.fixedFeatures != null) {
|
|
123758
|
+
if (typeof object.fixedFeatures !== "object")
|
|
123759
|
+
throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fixedFeatures: object expected");
|
|
123760
|
+
message.fixedFeatures = $root.google.protobuf.FeatureSet.fromObject(object.fixedFeatures);
|
|
121070
123761
|
}
|
|
121071
123762
|
return message;
|
|
121072
123763
|
};
|
|
@@ -121085,13 +123776,16 @@
|
|
|
121085
123776
|
options = {};
|
|
121086
123777
|
var object = {};
|
|
121087
123778
|
if (options.defaults) {
|
|
121088
|
-
object.features = null;
|
|
121089
123779
|
object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
123780
|
+
object.overridableFeatures = null;
|
|
123781
|
+
object.fixedFeatures = null;
|
|
121090
123782
|
}
|
|
121091
|
-
if (message.features != null && message.hasOwnProperty("features"))
|
|
121092
|
-
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
|
121093
123783
|
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
121094
123784
|
object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
|
|
123785
|
+
if (message.overridableFeatures != null && message.hasOwnProperty("overridableFeatures"))
|
|
123786
|
+
object.overridableFeatures = $root.google.protobuf.FeatureSet.toObject(message.overridableFeatures, options);
|
|
123787
|
+
if (message.fixedFeatures != null && message.hasOwnProperty("fixedFeatures"))
|
|
123788
|
+
object.fixedFeatures = $root.google.protobuf.FeatureSet.toObject(message.fixedFeatures, options);
|
|
121095
123789
|
return object;
|
|
121096
123790
|
};
|
|
121097
123791
|
|
|
@@ -122306,6 +125000,22 @@
|
|
|
122306
125000
|
return GeneratedCodeInfo;
|
|
122307
125001
|
})();
|
|
122308
125002
|
|
|
125003
|
+
/**
|
|
125004
|
+
* SymbolVisibility enum.
|
|
125005
|
+
* @name google.protobuf.SymbolVisibility
|
|
125006
|
+
* @enum {number}
|
|
125007
|
+
* @property {number} VISIBILITY_UNSET=0 VISIBILITY_UNSET value
|
|
125008
|
+
* @property {number} VISIBILITY_LOCAL=1 VISIBILITY_LOCAL value
|
|
125009
|
+
* @property {number} VISIBILITY_EXPORT=2 VISIBILITY_EXPORT value
|
|
125010
|
+
*/
|
|
125011
|
+
protobuf.SymbolVisibility = (function() {
|
|
125012
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
125013
|
+
values[valuesById[0] = "VISIBILITY_UNSET"] = 0;
|
|
125014
|
+
values[valuesById[1] = "VISIBILITY_LOCAL"] = 1;
|
|
125015
|
+
values[valuesById[2] = "VISIBILITY_EXPORT"] = 2;
|
|
125016
|
+
return values;
|
|
125017
|
+
})();
|
|
125018
|
+
|
|
122309
125019
|
protobuf.Duration = (function() {
|
|
122310
125020
|
|
|
122311
125021
|
/**
|