@googlemaps/fleetengine-delivery 0.5.0 → 0.6.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/protos.js
CHANGED
|
@@ -424,6 +424,10 @@
|
|
|
424
424
|
* @property {google.protobuf.ITimestamp|null} [rawLocationTime] DeliveryVehicleLocation rawLocationTime
|
|
425
425
|
* @property {maps.fleetengine.delivery.v1.DeliveryVehicleLocationSensor|null} [rawLocationSensor] DeliveryVehicleLocation rawLocationSensor
|
|
426
426
|
* @property {google.protobuf.IDoubleValue|null} [rawLocationAccuracy] DeliveryVehicleLocation rawLocationAccuracy
|
|
427
|
+
* @property {google.type.ILatLng|null} [flpLocation] DeliveryVehicleLocation flpLocation
|
|
428
|
+
* @property {google.protobuf.ITimestamp|null} [flpUpdateTime] DeliveryVehicleLocation flpUpdateTime
|
|
429
|
+
* @property {google.protobuf.IDoubleValue|null} [flpLatlngAccuracyMeters] DeliveryVehicleLocation flpLatlngAccuracyMeters
|
|
430
|
+
* @property {google.protobuf.IInt32Value|null} [flpHeadingDegrees] DeliveryVehicleLocation flpHeadingDegrees
|
|
427
431
|
* @property {google.type.ILatLng|null} [supplementalLocation] DeliveryVehicleLocation supplementalLocation
|
|
428
432
|
* @property {google.protobuf.ITimestamp|null} [supplementalLocationTime] DeliveryVehicleLocation supplementalLocationTime
|
|
429
433
|
* @property {maps.fleetengine.delivery.v1.DeliveryVehicleLocationSensor|null} [supplementalLocationSensor] DeliveryVehicleLocation supplementalLocationSensor
|
|
@@ -630,6 +634,38 @@
|
|
|
630
634
|
*/
|
|
631
635
|
DeliveryVehicleLocation.prototype.rawLocationAccuracy = null;
|
|
632
636
|
|
|
637
|
+
/**
|
|
638
|
+
* DeliveryVehicleLocation flpLocation.
|
|
639
|
+
* @member {google.type.ILatLng|null|undefined} flpLocation
|
|
640
|
+
* @memberof maps.fleetengine.delivery.v1.DeliveryVehicleLocation
|
|
641
|
+
* @instance
|
|
642
|
+
*/
|
|
643
|
+
DeliveryVehicleLocation.prototype.flpLocation = null;
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
* DeliveryVehicleLocation flpUpdateTime.
|
|
647
|
+
* @member {google.protobuf.ITimestamp|null|undefined} flpUpdateTime
|
|
648
|
+
* @memberof maps.fleetengine.delivery.v1.DeliveryVehicleLocation
|
|
649
|
+
* @instance
|
|
650
|
+
*/
|
|
651
|
+
DeliveryVehicleLocation.prototype.flpUpdateTime = null;
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* DeliveryVehicleLocation flpLatlngAccuracyMeters.
|
|
655
|
+
* @member {google.protobuf.IDoubleValue|null|undefined} flpLatlngAccuracyMeters
|
|
656
|
+
* @memberof maps.fleetengine.delivery.v1.DeliveryVehicleLocation
|
|
657
|
+
* @instance
|
|
658
|
+
*/
|
|
659
|
+
DeliveryVehicleLocation.prototype.flpLatlngAccuracyMeters = null;
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* DeliveryVehicleLocation flpHeadingDegrees.
|
|
663
|
+
* @member {google.protobuf.IInt32Value|null|undefined} flpHeadingDegrees
|
|
664
|
+
* @memberof maps.fleetengine.delivery.v1.DeliveryVehicleLocation
|
|
665
|
+
* @instance
|
|
666
|
+
*/
|
|
667
|
+
DeliveryVehicleLocation.prototype.flpHeadingDegrees = null;
|
|
668
|
+
|
|
633
669
|
/**
|
|
634
670
|
* DeliveryVehicleLocation supplementalLocation.
|
|
635
671
|
* @member {google.type.ILatLng|null|undefined} supplementalLocation
|
|
@@ -750,6 +786,14 @@
|
|
|
750
786
|
$root.google.protobuf.BoolValue.encode(message.isRoadSnapped, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
|
|
751
787
|
if (message.rawLocationSensor != null && Object.hasOwnProperty.call(message, "rawLocationSensor"))
|
|
752
788
|
writer.uint32(/* id 28, wireType 0 =*/224).int32(message.rawLocationSensor);
|
|
789
|
+
if (message.flpLocation != null && Object.hasOwnProperty.call(message, "flpLocation"))
|
|
790
|
+
$root.google.type.LatLng.encode(message.flpLocation, writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim();
|
|
791
|
+
if (message.flpUpdateTime != null && Object.hasOwnProperty.call(message, "flpUpdateTime"))
|
|
792
|
+
$root.google.protobuf.Timestamp.encode(message.flpUpdateTime, writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim();
|
|
793
|
+
if (message.flpLatlngAccuracyMeters != null && Object.hasOwnProperty.call(message, "flpLatlngAccuracyMeters"))
|
|
794
|
+
$root.google.protobuf.DoubleValue.encode(message.flpLatlngAccuracyMeters, writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim();
|
|
795
|
+
if (message.flpHeadingDegrees != null && Object.hasOwnProperty.call(message, "flpHeadingDegrees"))
|
|
796
|
+
$root.google.protobuf.Int32Value.encode(message.flpHeadingDegrees, writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim();
|
|
753
797
|
return writer;
|
|
754
798
|
};
|
|
755
799
|
|
|
@@ -878,6 +922,22 @@
|
|
|
878
922
|
message.rawLocationAccuracy = $root.google.protobuf.DoubleValue.decode(reader, reader.uint32());
|
|
879
923
|
break;
|
|
880
924
|
}
|
|
925
|
+
case 29: {
|
|
926
|
+
message.flpLocation = $root.google.type.LatLng.decode(reader, reader.uint32());
|
|
927
|
+
break;
|
|
928
|
+
}
|
|
929
|
+
case 30: {
|
|
930
|
+
message.flpUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
931
|
+
break;
|
|
932
|
+
}
|
|
933
|
+
case 31: {
|
|
934
|
+
message.flpLatlngAccuracyMeters = $root.google.protobuf.DoubleValue.decode(reader, reader.uint32());
|
|
935
|
+
break;
|
|
936
|
+
}
|
|
937
|
+
case 32: {
|
|
938
|
+
message.flpHeadingDegrees = $root.google.protobuf.Int32Value.decode(reader, reader.uint32());
|
|
939
|
+
break;
|
|
940
|
+
}
|
|
881
941
|
case 18: {
|
|
882
942
|
message.supplementalLocation = $root.google.type.LatLng.decode(reader, reader.uint32());
|
|
883
943
|
break;
|
|
@@ -1068,6 +1128,26 @@
|
|
|
1068
1128
|
if (error)
|
|
1069
1129
|
return "rawLocationAccuracy." + error;
|
|
1070
1130
|
}
|
|
1131
|
+
if (message.flpLocation != null && message.hasOwnProperty("flpLocation")) {
|
|
1132
|
+
var error = $root.google.type.LatLng.verify(message.flpLocation);
|
|
1133
|
+
if (error)
|
|
1134
|
+
return "flpLocation." + error;
|
|
1135
|
+
}
|
|
1136
|
+
if (message.flpUpdateTime != null && message.hasOwnProperty("flpUpdateTime")) {
|
|
1137
|
+
var error = $root.google.protobuf.Timestamp.verify(message.flpUpdateTime);
|
|
1138
|
+
if (error)
|
|
1139
|
+
return "flpUpdateTime." + error;
|
|
1140
|
+
}
|
|
1141
|
+
if (message.flpLatlngAccuracyMeters != null && message.hasOwnProperty("flpLatlngAccuracyMeters")) {
|
|
1142
|
+
var error = $root.google.protobuf.DoubleValue.verify(message.flpLatlngAccuracyMeters);
|
|
1143
|
+
if (error)
|
|
1144
|
+
return "flpLatlngAccuracyMeters." + error;
|
|
1145
|
+
}
|
|
1146
|
+
if (message.flpHeadingDegrees != null && message.hasOwnProperty("flpHeadingDegrees")) {
|
|
1147
|
+
var error = $root.google.protobuf.Int32Value.verify(message.flpHeadingDegrees);
|
|
1148
|
+
if (error)
|
|
1149
|
+
return "flpHeadingDegrees." + error;
|
|
1150
|
+
}
|
|
1071
1151
|
if (message.supplementalLocation != null && message.hasOwnProperty("supplementalLocation")) {
|
|
1072
1152
|
var error = $root.google.type.LatLng.verify(message.supplementalLocation);
|
|
1073
1153
|
if (error)
|
|
@@ -1309,6 +1389,26 @@
|
|
|
1309
1389
|
throw TypeError(".maps.fleetengine.delivery.v1.DeliveryVehicleLocation.rawLocationAccuracy: object expected");
|
|
1310
1390
|
message.rawLocationAccuracy = $root.google.protobuf.DoubleValue.fromObject(object.rawLocationAccuracy);
|
|
1311
1391
|
}
|
|
1392
|
+
if (object.flpLocation != null) {
|
|
1393
|
+
if (typeof object.flpLocation !== "object")
|
|
1394
|
+
throw TypeError(".maps.fleetengine.delivery.v1.DeliveryVehicleLocation.flpLocation: object expected");
|
|
1395
|
+
message.flpLocation = $root.google.type.LatLng.fromObject(object.flpLocation);
|
|
1396
|
+
}
|
|
1397
|
+
if (object.flpUpdateTime != null) {
|
|
1398
|
+
if (typeof object.flpUpdateTime !== "object")
|
|
1399
|
+
throw TypeError(".maps.fleetengine.delivery.v1.DeliveryVehicleLocation.flpUpdateTime: object expected");
|
|
1400
|
+
message.flpUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.flpUpdateTime);
|
|
1401
|
+
}
|
|
1402
|
+
if (object.flpLatlngAccuracyMeters != null) {
|
|
1403
|
+
if (typeof object.flpLatlngAccuracyMeters !== "object")
|
|
1404
|
+
throw TypeError(".maps.fleetengine.delivery.v1.DeliveryVehicleLocation.flpLatlngAccuracyMeters: object expected");
|
|
1405
|
+
message.flpLatlngAccuracyMeters = $root.google.protobuf.DoubleValue.fromObject(object.flpLatlngAccuracyMeters);
|
|
1406
|
+
}
|
|
1407
|
+
if (object.flpHeadingDegrees != null) {
|
|
1408
|
+
if (typeof object.flpHeadingDegrees !== "object")
|
|
1409
|
+
throw TypeError(".maps.fleetengine.delivery.v1.DeliveryVehicleLocation.flpHeadingDegrees: object expected");
|
|
1410
|
+
message.flpHeadingDegrees = $root.google.protobuf.Int32Value.fromObject(object.flpHeadingDegrees);
|
|
1411
|
+
}
|
|
1312
1412
|
if (object.supplementalLocation != null) {
|
|
1313
1413
|
if (typeof object.supplementalLocation !== "object")
|
|
1314
1414
|
throw TypeError(".maps.fleetengine.delivery.v1.DeliveryVehicleLocation.supplementalLocation: object expected");
|
|
@@ -1415,6 +1515,10 @@
|
|
|
1415
1515
|
object.roadSnapped = false;
|
|
1416
1516
|
object.isRoadSnapped = null;
|
|
1417
1517
|
object.rawLocationSensor = options.enums === String ? "UNKNOWN_SENSOR" : 0;
|
|
1518
|
+
object.flpLocation = null;
|
|
1519
|
+
object.flpUpdateTime = null;
|
|
1520
|
+
object.flpLatlngAccuracyMeters = null;
|
|
1521
|
+
object.flpHeadingDegrees = null;
|
|
1418
1522
|
}
|
|
1419
1523
|
if (message.location != null && message.hasOwnProperty("location"))
|
|
1420
1524
|
object.location = $root.google.type.LatLng.toObject(message.location, options);
|
|
@@ -1472,6 +1576,14 @@
|
|
|
1472
1576
|
object.isRoadSnapped = $root.google.protobuf.BoolValue.toObject(message.isRoadSnapped, options);
|
|
1473
1577
|
if (message.rawLocationSensor != null && message.hasOwnProperty("rawLocationSensor"))
|
|
1474
1578
|
object.rawLocationSensor = options.enums === String ? $root.maps.fleetengine.delivery.v1.DeliveryVehicleLocationSensor[message.rawLocationSensor] === undefined ? message.rawLocationSensor : $root.maps.fleetengine.delivery.v1.DeliveryVehicleLocationSensor[message.rawLocationSensor] : message.rawLocationSensor;
|
|
1579
|
+
if (message.flpLocation != null && message.hasOwnProperty("flpLocation"))
|
|
1580
|
+
object.flpLocation = $root.google.type.LatLng.toObject(message.flpLocation, options);
|
|
1581
|
+
if (message.flpUpdateTime != null && message.hasOwnProperty("flpUpdateTime"))
|
|
1582
|
+
object.flpUpdateTime = $root.google.protobuf.Timestamp.toObject(message.flpUpdateTime, options);
|
|
1583
|
+
if (message.flpLatlngAccuracyMeters != null && message.hasOwnProperty("flpLatlngAccuracyMeters"))
|
|
1584
|
+
object.flpLatlngAccuracyMeters = $root.google.protobuf.DoubleValue.toObject(message.flpLatlngAccuracyMeters, options);
|
|
1585
|
+
if (message.flpHeadingDegrees != null && message.hasOwnProperty("flpHeadingDegrees"))
|
|
1586
|
+
object.flpHeadingDegrees = $root.google.protobuf.Int32Value.toObject(message.flpHeadingDegrees, options);
|
|
1475
1587
|
return object;
|
|
1476
1588
|
};
|
|
1477
1589
|
|
|
@@ -12707,6 +12819,7 @@
|
|
|
12707
12819
|
* @interface ICommonLanguageSettings
|
|
12708
12820
|
* @property {string|null} [referenceDocsUri] CommonLanguageSettings referenceDocsUri
|
|
12709
12821
|
* @property {Array.<google.api.ClientLibraryDestination>|null} [destinations] CommonLanguageSettings destinations
|
|
12822
|
+
* @property {google.api.ISelectiveGapicGeneration|null} [selectiveGapicGeneration] CommonLanguageSettings selectiveGapicGeneration
|
|
12710
12823
|
*/
|
|
12711
12824
|
|
|
12712
12825
|
/**
|
|
@@ -12741,6 +12854,14 @@
|
|
|
12741
12854
|
*/
|
|
12742
12855
|
CommonLanguageSettings.prototype.destinations = $util.emptyArray;
|
|
12743
12856
|
|
|
12857
|
+
/**
|
|
12858
|
+
* CommonLanguageSettings selectiveGapicGeneration.
|
|
12859
|
+
* @member {google.api.ISelectiveGapicGeneration|null|undefined} selectiveGapicGeneration
|
|
12860
|
+
* @memberof google.api.CommonLanguageSettings
|
|
12861
|
+
* @instance
|
|
12862
|
+
*/
|
|
12863
|
+
CommonLanguageSettings.prototype.selectiveGapicGeneration = null;
|
|
12864
|
+
|
|
12744
12865
|
/**
|
|
12745
12866
|
* Creates a new CommonLanguageSettings instance using the specified properties.
|
|
12746
12867
|
* @function create
|
|
@@ -12773,6 +12894,8 @@
|
|
|
12773
12894
|
writer.int32(message.destinations[i]);
|
|
12774
12895
|
writer.ldelim();
|
|
12775
12896
|
}
|
|
12897
|
+
if (message.selectiveGapicGeneration != null && Object.hasOwnProperty.call(message, "selectiveGapicGeneration"))
|
|
12898
|
+
$root.google.api.SelectiveGapicGeneration.encode(message.selectiveGapicGeneration, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
12776
12899
|
return writer;
|
|
12777
12900
|
};
|
|
12778
12901
|
|
|
@@ -12824,6 +12947,10 @@
|
|
|
12824
12947
|
message.destinations.push(reader.int32());
|
|
12825
12948
|
break;
|
|
12826
12949
|
}
|
|
12950
|
+
case 3: {
|
|
12951
|
+
message.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.decode(reader, reader.uint32());
|
|
12952
|
+
break;
|
|
12953
|
+
}
|
|
12827
12954
|
default:
|
|
12828
12955
|
reader.skipType(tag & 7);
|
|
12829
12956
|
break;
|
|
@@ -12875,6 +13002,11 @@
|
|
|
12875
13002
|
break;
|
|
12876
13003
|
}
|
|
12877
13004
|
}
|
|
13005
|
+
if (message.selectiveGapicGeneration != null && message.hasOwnProperty("selectiveGapicGeneration")) {
|
|
13006
|
+
var error = $root.google.api.SelectiveGapicGeneration.verify(message.selectiveGapicGeneration);
|
|
13007
|
+
if (error)
|
|
13008
|
+
return "selectiveGapicGeneration." + error;
|
|
13009
|
+
}
|
|
12878
13010
|
return null;
|
|
12879
13011
|
};
|
|
12880
13012
|
|
|
@@ -12917,6 +13049,11 @@
|
|
|
12917
13049
|
break;
|
|
12918
13050
|
}
|
|
12919
13051
|
}
|
|
13052
|
+
if (object.selectiveGapicGeneration != null) {
|
|
13053
|
+
if (typeof object.selectiveGapicGeneration !== "object")
|
|
13054
|
+
throw TypeError(".google.api.CommonLanguageSettings.selectiveGapicGeneration: object expected");
|
|
13055
|
+
message.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.fromObject(object.selectiveGapicGeneration);
|
|
13056
|
+
}
|
|
12920
13057
|
return message;
|
|
12921
13058
|
};
|
|
12922
13059
|
|
|
@@ -12935,8 +13072,10 @@
|
|
|
12935
13072
|
var object = {};
|
|
12936
13073
|
if (options.arrays || options.defaults)
|
|
12937
13074
|
object.destinations = [];
|
|
12938
|
-
if (options.defaults)
|
|
13075
|
+
if (options.defaults) {
|
|
12939
13076
|
object.referenceDocsUri = "";
|
|
13077
|
+
object.selectiveGapicGeneration = null;
|
|
13078
|
+
}
|
|
12940
13079
|
if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
|
|
12941
13080
|
object.referenceDocsUri = message.referenceDocsUri;
|
|
12942
13081
|
if (message.destinations && message.destinations.length) {
|
|
@@ -12944,6 +13083,8 @@
|
|
|
12944
13083
|
for (var j = 0; j < message.destinations.length; ++j)
|
|
12945
13084
|
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];
|
|
12946
13085
|
}
|
|
13086
|
+
if (message.selectiveGapicGeneration != null && message.hasOwnProperty("selectiveGapicGeneration"))
|
|
13087
|
+
object.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.toObject(message.selectiveGapicGeneration, options);
|
|
12947
13088
|
return object;
|
|
12948
13089
|
};
|
|
12949
13090
|
|
|
@@ -14766,6 +14907,7 @@
|
|
|
14766
14907
|
* @memberof google.api
|
|
14767
14908
|
* @interface IPythonSettings
|
|
14768
14909
|
* @property {google.api.ICommonLanguageSettings|null} [common] PythonSettings common
|
|
14910
|
+
* @property {google.api.PythonSettings.IExperimentalFeatures|null} [experimentalFeatures] PythonSettings experimentalFeatures
|
|
14769
14911
|
*/
|
|
14770
14912
|
|
|
14771
14913
|
/**
|
|
@@ -14791,6 +14933,14 @@
|
|
|
14791
14933
|
*/
|
|
14792
14934
|
PythonSettings.prototype.common = null;
|
|
14793
14935
|
|
|
14936
|
+
/**
|
|
14937
|
+
* PythonSettings experimentalFeatures.
|
|
14938
|
+
* @member {google.api.PythonSettings.IExperimentalFeatures|null|undefined} experimentalFeatures
|
|
14939
|
+
* @memberof google.api.PythonSettings
|
|
14940
|
+
* @instance
|
|
14941
|
+
*/
|
|
14942
|
+
PythonSettings.prototype.experimentalFeatures = null;
|
|
14943
|
+
|
|
14794
14944
|
/**
|
|
14795
14945
|
* Creates a new PythonSettings instance using the specified properties.
|
|
14796
14946
|
* @function create
|
|
@@ -14817,6 +14967,8 @@
|
|
|
14817
14967
|
writer = $Writer.create();
|
|
14818
14968
|
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
|
|
14819
14969
|
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
14970
|
+
if (message.experimentalFeatures != null && Object.hasOwnProperty.call(message, "experimentalFeatures"))
|
|
14971
|
+
$root.google.api.PythonSettings.ExperimentalFeatures.encode(message.experimentalFeatures, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
14820
14972
|
return writer;
|
|
14821
14973
|
};
|
|
14822
14974
|
|
|
@@ -14857,6 +15009,10 @@
|
|
|
14857
15009
|
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
|
14858
15010
|
break;
|
|
14859
15011
|
}
|
|
15012
|
+
case 2: {
|
|
15013
|
+
message.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.decode(reader, reader.uint32());
|
|
15014
|
+
break;
|
|
15015
|
+
}
|
|
14860
15016
|
default:
|
|
14861
15017
|
reader.skipType(tag & 7);
|
|
14862
15018
|
break;
|
|
@@ -14897,6 +15053,11 @@
|
|
|
14897
15053
|
if (error)
|
|
14898
15054
|
return "common." + error;
|
|
14899
15055
|
}
|
|
15056
|
+
if (message.experimentalFeatures != null && message.hasOwnProperty("experimentalFeatures")) {
|
|
15057
|
+
var error = $root.google.api.PythonSettings.ExperimentalFeatures.verify(message.experimentalFeatures);
|
|
15058
|
+
if (error)
|
|
15059
|
+
return "experimentalFeatures." + error;
|
|
15060
|
+
}
|
|
14900
15061
|
return null;
|
|
14901
15062
|
};
|
|
14902
15063
|
|
|
@@ -14917,6 +15078,11 @@
|
|
|
14917
15078
|
throw TypeError(".google.api.PythonSettings.common: object expected");
|
|
14918
15079
|
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
|
|
14919
15080
|
}
|
|
15081
|
+
if (object.experimentalFeatures != null) {
|
|
15082
|
+
if (typeof object.experimentalFeatures !== "object")
|
|
15083
|
+
throw TypeError(".google.api.PythonSettings.experimentalFeatures: object expected");
|
|
15084
|
+
message.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.fromObject(object.experimentalFeatures);
|
|
15085
|
+
}
|
|
14920
15086
|
return message;
|
|
14921
15087
|
};
|
|
14922
15088
|
|
|
@@ -14933,10 +15099,14 @@
|
|
|
14933
15099
|
if (!options)
|
|
14934
15100
|
options = {};
|
|
14935
15101
|
var object = {};
|
|
14936
|
-
if (options.defaults)
|
|
15102
|
+
if (options.defaults) {
|
|
14937
15103
|
object.common = null;
|
|
15104
|
+
object.experimentalFeatures = null;
|
|
15105
|
+
}
|
|
14938
15106
|
if (message.common != null && message.hasOwnProperty("common"))
|
|
14939
15107
|
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
|
|
15108
|
+
if (message.experimentalFeatures != null && message.hasOwnProperty("experimentalFeatures"))
|
|
15109
|
+
object.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.toObject(message.experimentalFeatures, options);
|
|
14940
15110
|
return object;
|
|
14941
15111
|
};
|
|
14942
15112
|
|
|
@@ -14966,6 +15136,258 @@
|
|
|
14966
15136
|
return typeUrlPrefix + "/google.api.PythonSettings";
|
|
14967
15137
|
};
|
|
14968
15138
|
|
|
15139
|
+
PythonSettings.ExperimentalFeatures = (function() {
|
|
15140
|
+
|
|
15141
|
+
/**
|
|
15142
|
+
* Properties of an ExperimentalFeatures.
|
|
15143
|
+
* @memberof google.api.PythonSettings
|
|
15144
|
+
* @interface IExperimentalFeatures
|
|
15145
|
+
* @property {boolean|null} [restAsyncIoEnabled] ExperimentalFeatures restAsyncIoEnabled
|
|
15146
|
+
* @property {boolean|null} [protobufPythonicTypesEnabled] ExperimentalFeatures protobufPythonicTypesEnabled
|
|
15147
|
+
* @property {boolean|null} [unversionedPackageDisabled] ExperimentalFeatures unversionedPackageDisabled
|
|
15148
|
+
*/
|
|
15149
|
+
|
|
15150
|
+
/**
|
|
15151
|
+
* Constructs a new ExperimentalFeatures.
|
|
15152
|
+
* @memberof google.api.PythonSettings
|
|
15153
|
+
* @classdesc Represents an ExperimentalFeatures.
|
|
15154
|
+
* @implements IExperimentalFeatures
|
|
15155
|
+
* @constructor
|
|
15156
|
+
* @param {google.api.PythonSettings.IExperimentalFeatures=} [properties] Properties to set
|
|
15157
|
+
*/
|
|
15158
|
+
function ExperimentalFeatures(properties) {
|
|
15159
|
+
if (properties)
|
|
15160
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15161
|
+
if (properties[keys[i]] != null)
|
|
15162
|
+
this[keys[i]] = properties[keys[i]];
|
|
15163
|
+
}
|
|
15164
|
+
|
|
15165
|
+
/**
|
|
15166
|
+
* ExperimentalFeatures restAsyncIoEnabled.
|
|
15167
|
+
* @member {boolean} restAsyncIoEnabled
|
|
15168
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
15169
|
+
* @instance
|
|
15170
|
+
*/
|
|
15171
|
+
ExperimentalFeatures.prototype.restAsyncIoEnabled = false;
|
|
15172
|
+
|
|
15173
|
+
/**
|
|
15174
|
+
* ExperimentalFeatures protobufPythonicTypesEnabled.
|
|
15175
|
+
* @member {boolean} protobufPythonicTypesEnabled
|
|
15176
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
15177
|
+
* @instance
|
|
15178
|
+
*/
|
|
15179
|
+
ExperimentalFeatures.prototype.protobufPythonicTypesEnabled = false;
|
|
15180
|
+
|
|
15181
|
+
/**
|
|
15182
|
+
* ExperimentalFeatures unversionedPackageDisabled.
|
|
15183
|
+
* @member {boolean} unversionedPackageDisabled
|
|
15184
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
15185
|
+
* @instance
|
|
15186
|
+
*/
|
|
15187
|
+
ExperimentalFeatures.prototype.unversionedPackageDisabled = false;
|
|
15188
|
+
|
|
15189
|
+
/**
|
|
15190
|
+
* Creates a new ExperimentalFeatures instance using the specified properties.
|
|
15191
|
+
* @function create
|
|
15192
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
15193
|
+
* @static
|
|
15194
|
+
* @param {google.api.PythonSettings.IExperimentalFeatures=} [properties] Properties to set
|
|
15195
|
+
* @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures instance
|
|
15196
|
+
*/
|
|
15197
|
+
ExperimentalFeatures.create = function create(properties) {
|
|
15198
|
+
return new ExperimentalFeatures(properties);
|
|
15199
|
+
};
|
|
15200
|
+
|
|
15201
|
+
/**
|
|
15202
|
+
* Encodes the specified ExperimentalFeatures message. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
|
|
15203
|
+
* @function encode
|
|
15204
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
15205
|
+
* @static
|
|
15206
|
+
* @param {google.api.PythonSettings.IExperimentalFeatures} message ExperimentalFeatures message or plain object to encode
|
|
15207
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15208
|
+
* @returns {$protobuf.Writer} Writer
|
|
15209
|
+
*/
|
|
15210
|
+
ExperimentalFeatures.encode = function encode(message, writer) {
|
|
15211
|
+
if (!writer)
|
|
15212
|
+
writer = $Writer.create();
|
|
15213
|
+
if (message.restAsyncIoEnabled != null && Object.hasOwnProperty.call(message, "restAsyncIoEnabled"))
|
|
15214
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.restAsyncIoEnabled);
|
|
15215
|
+
if (message.protobufPythonicTypesEnabled != null && Object.hasOwnProperty.call(message, "protobufPythonicTypesEnabled"))
|
|
15216
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.protobufPythonicTypesEnabled);
|
|
15217
|
+
if (message.unversionedPackageDisabled != null && Object.hasOwnProperty.call(message, "unversionedPackageDisabled"))
|
|
15218
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.unversionedPackageDisabled);
|
|
15219
|
+
return writer;
|
|
15220
|
+
};
|
|
15221
|
+
|
|
15222
|
+
/**
|
|
15223
|
+
* Encodes the specified ExperimentalFeatures message, length delimited. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
|
|
15224
|
+
* @function encodeDelimited
|
|
15225
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
15226
|
+
* @static
|
|
15227
|
+
* @param {google.api.PythonSettings.IExperimentalFeatures} message ExperimentalFeatures message or plain object to encode
|
|
15228
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15229
|
+
* @returns {$protobuf.Writer} Writer
|
|
15230
|
+
*/
|
|
15231
|
+
ExperimentalFeatures.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15232
|
+
return this.encode(message, writer).ldelim();
|
|
15233
|
+
};
|
|
15234
|
+
|
|
15235
|
+
/**
|
|
15236
|
+
* Decodes an ExperimentalFeatures message from the specified reader or buffer.
|
|
15237
|
+
* @function decode
|
|
15238
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
15239
|
+
* @static
|
|
15240
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15241
|
+
* @param {number} [length] Message length if known beforehand
|
|
15242
|
+
* @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
|
|
15243
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15244
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15245
|
+
*/
|
|
15246
|
+
ExperimentalFeatures.decode = function decode(reader, length, error) {
|
|
15247
|
+
if (!(reader instanceof $Reader))
|
|
15248
|
+
reader = $Reader.create(reader);
|
|
15249
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings.ExperimentalFeatures();
|
|
15250
|
+
while (reader.pos < end) {
|
|
15251
|
+
var tag = reader.uint32();
|
|
15252
|
+
if (tag === error)
|
|
15253
|
+
break;
|
|
15254
|
+
switch (tag >>> 3) {
|
|
15255
|
+
case 1: {
|
|
15256
|
+
message.restAsyncIoEnabled = reader.bool();
|
|
15257
|
+
break;
|
|
15258
|
+
}
|
|
15259
|
+
case 2: {
|
|
15260
|
+
message.protobufPythonicTypesEnabled = reader.bool();
|
|
15261
|
+
break;
|
|
15262
|
+
}
|
|
15263
|
+
case 3: {
|
|
15264
|
+
message.unversionedPackageDisabled = reader.bool();
|
|
15265
|
+
break;
|
|
15266
|
+
}
|
|
15267
|
+
default:
|
|
15268
|
+
reader.skipType(tag & 7);
|
|
15269
|
+
break;
|
|
15270
|
+
}
|
|
15271
|
+
}
|
|
15272
|
+
return message;
|
|
15273
|
+
};
|
|
15274
|
+
|
|
15275
|
+
/**
|
|
15276
|
+
* Decodes an ExperimentalFeatures message from the specified reader or buffer, length delimited.
|
|
15277
|
+
* @function decodeDelimited
|
|
15278
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
15279
|
+
* @static
|
|
15280
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15281
|
+
* @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
|
|
15282
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15283
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15284
|
+
*/
|
|
15285
|
+
ExperimentalFeatures.decodeDelimited = function decodeDelimited(reader) {
|
|
15286
|
+
if (!(reader instanceof $Reader))
|
|
15287
|
+
reader = new $Reader(reader);
|
|
15288
|
+
return this.decode(reader, reader.uint32());
|
|
15289
|
+
};
|
|
15290
|
+
|
|
15291
|
+
/**
|
|
15292
|
+
* Verifies an ExperimentalFeatures message.
|
|
15293
|
+
* @function verify
|
|
15294
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
15295
|
+
* @static
|
|
15296
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
15297
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
15298
|
+
*/
|
|
15299
|
+
ExperimentalFeatures.verify = function verify(message) {
|
|
15300
|
+
if (typeof message !== "object" || message === null)
|
|
15301
|
+
return "object expected";
|
|
15302
|
+
if (message.restAsyncIoEnabled != null && message.hasOwnProperty("restAsyncIoEnabled"))
|
|
15303
|
+
if (typeof message.restAsyncIoEnabled !== "boolean")
|
|
15304
|
+
return "restAsyncIoEnabled: boolean expected";
|
|
15305
|
+
if (message.protobufPythonicTypesEnabled != null && message.hasOwnProperty("protobufPythonicTypesEnabled"))
|
|
15306
|
+
if (typeof message.protobufPythonicTypesEnabled !== "boolean")
|
|
15307
|
+
return "protobufPythonicTypesEnabled: boolean expected";
|
|
15308
|
+
if (message.unversionedPackageDisabled != null && message.hasOwnProperty("unversionedPackageDisabled"))
|
|
15309
|
+
if (typeof message.unversionedPackageDisabled !== "boolean")
|
|
15310
|
+
return "unversionedPackageDisabled: boolean expected";
|
|
15311
|
+
return null;
|
|
15312
|
+
};
|
|
15313
|
+
|
|
15314
|
+
/**
|
|
15315
|
+
* Creates an ExperimentalFeatures message from a plain object. Also converts values to their respective internal types.
|
|
15316
|
+
* @function fromObject
|
|
15317
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
15318
|
+
* @static
|
|
15319
|
+
* @param {Object.<string,*>} object Plain object
|
|
15320
|
+
* @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
|
|
15321
|
+
*/
|
|
15322
|
+
ExperimentalFeatures.fromObject = function fromObject(object) {
|
|
15323
|
+
if (object instanceof $root.google.api.PythonSettings.ExperimentalFeatures)
|
|
15324
|
+
return object;
|
|
15325
|
+
var message = new $root.google.api.PythonSettings.ExperimentalFeatures();
|
|
15326
|
+
if (object.restAsyncIoEnabled != null)
|
|
15327
|
+
message.restAsyncIoEnabled = Boolean(object.restAsyncIoEnabled);
|
|
15328
|
+
if (object.protobufPythonicTypesEnabled != null)
|
|
15329
|
+
message.protobufPythonicTypesEnabled = Boolean(object.protobufPythonicTypesEnabled);
|
|
15330
|
+
if (object.unversionedPackageDisabled != null)
|
|
15331
|
+
message.unversionedPackageDisabled = Boolean(object.unversionedPackageDisabled);
|
|
15332
|
+
return message;
|
|
15333
|
+
};
|
|
15334
|
+
|
|
15335
|
+
/**
|
|
15336
|
+
* Creates a plain object from an ExperimentalFeatures message. Also converts values to other types if specified.
|
|
15337
|
+
* @function toObject
|
|
15338
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
15339
|
+
* @static
|
|
15340
|
+
* @param {google.api.PythonSettings.ExperimentalFeatures} message ExperimentalFeatures
|
|
15341
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
15342
|
+
* @returns {Object.<string,*>} Plain object
|
|
15343
|
+
*/
|
|
15344
|
+
ExperimentalFeatures.toObject = function toObject(message, options) {
|
|
15345
|
+
if (!options)
|
|
15346
|
+
options = {};
|
|
15347
|
+
var object = {};
|
|
15348
|
+
if (options.defaults) {
|
|
15349
|
+
object.restAsyncIoEnabled = false;
|
|
15350
|
+
object.protobufPythonicTypesEnabled = false;
|
|
15351
|
+
object.unversionedPackageDisabled = false;
|
|
15352
|
+
}
|
|
15353
|
+
if (message.restAsyncIoEnabled != null && message.hasOwnProperty("restAsyncIoEnabled"))
|
|
15354
|
+
object.restAsyncIoEnabled = message.restAsyncIoEnabled;
|
|
15355
|
+
if (message.protobufPythonicTypesEnabled != null && message.hasOwnProperty("protobufPythonicTypesEnabled"))
|
|
15356
|
+
object.protobufPythonicTypesEnabled = message.protobufPythonicTypesEnabled;
|
|
15357
|
+
if (message.unversionedPackageDisabled != null && message.hasOwnProperty("unversionedPackageDisabled"))
|
|
15358
|
+
object.unversionedPackageDisabled = message.unversionedPackageDisabled;
|
|
15359
|
+
return object;
|
|
15360
|
+
};
|
|
15361
|
+
|
|
15362
|
+
/**
|
|
15363
|
+
* Converts this ExperimentalFeatures to JSON.
|
|
15364
|
+
* @function toJSON
|
|
15365
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
15366
|
+
* @instance
|
|
15367
|
+
* @returns {Object.<string,*>} JSON object
|
|
15368
|
+
*/
|
|
15369
|
+
ExperimentalFeatures.prototype.toJSON = function toJSON() {
|
|
15370
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
15371
|
+
};
|
|
15372
|
+
|
|
15373
|
+
/**
|
|
15374
|
+
* Gets the default type url for ExperimentalFeatures
|
|
15375
|
+
* @function getTypeUrl
|
|
15376
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
15377
|
+
* @static
|
|
15378
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
15379
|
+
* @returns {string} The default type url
|
|
15380
|
+
*/
|
|
15381
|
+
ExperimentalFeatures.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
15382
|
+
if (typeUrlPrefix === undefined) {
|
|
15383
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
15384
|
+
}
|
|
15385
|
+
return typeUrlPrefix + "/google.api.PythonSettings.ExperimentalFeatures";
|
|
15386
|
+
};
|
|
15387
|
+
|
|
15388
|
+
return ExperimentalFeatures;
|
|
15389
|
+
})();
|
|
15390
|
+
|
|
14969
15391
|
return PythonSettings;
|
|
14970
15392
|
})();
|
|
14971
15393
|
|
|
@@ -15842,6 +16264,7 @@
|
|
|
15842
16264
|
* @memberof google.api
|
|
15843
16265
|
* @interface IGoSettings
|
|
15844
16266
|
* @property {google.api.ICommonLanguageSettings|null} [common] GoSettings common
|
|
16267
|
+
* @property {Object.<string,string>|null} [renamedServices] GoSettings renamedServices
|
|
15845
16268
|
*/
|
|
15846
16269
|
|
|
15847
16270
|
/**
|
|
@@ -15853,6 +16276,7 @@
|
|
|
15853
16276
|
* @param {google.api.IGoSettings=} [properties] Properties to set
|
|
15854
16277
|
*/
|
|
15855
16278
|
function GoSettings(properties) {
|
|
16279
|
+
this.renamedServices = {};
|
|
15856
16280
|
if (properties)
|
|
15857
16281
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15858
16282
|
if (properties[keys[i]] != null)
|
|
@@ -15867,6 +16291,14 @@
|
|
|
15867
16291
|
*/
|
|
15868
16292
|
GoSettings.prototype.common = null;
|
|
15869
16293
|
|
|
16294
|
+
/**
|
|
16295
|
+
* GoSettings renamedServices.
|
|
16296
|
+
* @member {Object.<string,string>} renamedServices
|
|
16297
|
+
* @memberof google.api.GoSettings
|
|
16298
|
+
* @instance
|
|
16299
|
+
*/
|
|
16300
|
+
GoSettings.prototype.renamedServices = $util.emptyObject;
|
|
16301
|
+
|
|
15870
16302
|
/**
|
|
15871
16303
|
* Creates a new GoSettings instance using the specified properties.
|
|
15872
16304
|
* @function create
|
|
@@ -15893,6 +16325,9 @@
|
|
|
15893
16325
|
writer = $Writer.create();
|
|
15894
16326
|
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
|
|
15895
16327
|
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
16328
|
+
if (message.renamedServices != null && Object.hasOwnProperty.call(message, "renamedServices"))
|
|
16329
|
+
for (var keys = Object.keys(message.renamedServices), i = 0; i < keys.length; ++i)
|
|
16330
|
+
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();
|
|
15896
16331
|
return writer;
|
|
15897
16332
|
};
|
|
15898
16333
|
|
|
@@ -15923,7 +16358,7 @@
|
|
|
15923
16358
|
GoSettings.decode = function decode(reader, length, error) {
|
|
15924
16359
|
if (!(reader instanceof $Reader))
|
|
15925
16360
|
reader = $Reader.create(reader);
|
|
15926
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings();
|
|
16361
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings(), key, value;
|
|
15927
16362
|
while (reader.pos < end) {
|
|
15928
16363
|
var tag = reader.uint32();
|
|
15929
16364
|
if (tag === error)
|
|
@@ -15933,6 +16368,29 @@
|
|
|
15933
16368
|
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
|
15934
16369
|
break;
|
|
15935
16370
|
}
|
|
16371
|
+
case 2: {
|
|
16372
|
+
if (message.renamedServices === $util.emptyObject)
|
|
16373
|
+
message.renamedServices = {};
|
|
16374
|
+
var end2 = reader.uint32() + reader.pos;
|
|
16375
|
+
key = "";
|
|
16376
|
+
value = "";
|
|
16377
|
+
while (reader.pos < end2) {
|
|
16378
|
+
var tag2 = reader.uint32();
|
|
16379
|
+
switch (tag2 >>> 3) {
|
|
16380
|
+
case 1:
|
|
16381
|
+
key = reader.string();
|
|
16382
|
+
break;
|
|
16383
|
+
case 2:
|
|
16384
|
+
value = reader.string();
|
|
16385
|
+
break;
|
|
16386
|
+
default:
|
|
16387
|
+
reader.skipType(tag2 & 7);
|
|
16388
|
+
break;
|
|
16389
|
+
}
|
|
16390
|
+
}
|
|
16391
|
+
message.renamedServices[key] = value;
|
|
16392
|
+
break;
|
|
16393
|
+
}
|
|
15936
16394
|
default:
|
|
15937
16395
|
reader.skipType(tag & 7);
|
|
15938
16396
|
break;
|
|
@@ -15973,12 +16431,20 @@
|
|
|
15973
16431
|
if (error)
|
|
15974
16432
|
return "common." + error;
|
|
15975
16433
|
}
|
|
15976
|
-
|
|
15977
|
-
|
|
15978
|
-
|
|
15979
|
-
|
|
15980
|
-
|
|
15981
|
-
|
|
16434
|
+
if (message.renamedServices != null && message.hasOwnProperty("renamedServices")) {
|
|
16435
|
+
if (!$util.isObject(message.renamedServices))
|
|
16436
|
+
return "renamedServices: object expected";
|
|
16437
|
+
var key = Object.keys(message.renamedServices);
|
|
16438
|
+
for (var i = 0; i < key.length; ++i)
|
|
16439
|
+
if (!$util.isString(message.renamedServices[key[i]]))
|
|
16440
|
+
return "renamedServices: string{k:string} expected";
|
|
16441
|
+
}
|
|
16442
|
+
return null;
|
|
16443
|
+
};
|
|
16444
|
+
|
|
16445
|
+
/**
|
|
16446
|
+
* Creates a GoSettings message from a plain object. Also converts values to their respective internal types.
|
|
16447
|
+
* @function fromObject
|
|
15982
16448
|
* @memberof google.api.GoSettings
|
|
15983
16449
|
* @static
|
|
15984
16450
|
* @param {Object.<string,*>} object Plain object
|
|
@@ -15993,6 +16459,13 @@
|
|
|
15993
16459
|
throw TypeError(".google.api.GoSettings.common: object expected");
|
|
15994
16460
|
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
|
|
15995
16461
|
}
|
|
16462
|
+
if (object.renamedServices) {
|
|
16463
|
+
if (typeof object.renamedServices !== "object")
|
|
16464
|
+
throw TypeError(".google.api.GoSettings.renamedServices: object expected");
|
|
16465
|
+
message.renamedServices = {};
|
|
16466
|
+
for (var keys = Object.keys(object.renamedServices), i = 0; i < keys.length; ++i)
|
|
16467
|
+
message.renamedServices[keys[i]] = String(object.renamedServices[keys[i]]);
|
|
16468
|
+
}
|
|
15996
16469
|
return message;
|
|
15997
16470
|
};
|
|
15998
16471
|
|
|
@@ -16009,10 +16482,18 @@
|
|
|
16009
16482
|
if (!options)
|
|
16010
16483
|
options = {};
|
|
16011
16484
|
var object = {};
|
|
16485
|
+
if (options.objects || options.defaults)
|
|
16486
|
+
object.renamedServices = {};
|
|
16012
16487
|
if (options.defaults)
|
|
16013
16488
|
object.common = null;
|
|
16014
16489
|
if (message.common != null && message.hasOwnProperty("common"))
|
|
16015
16490
|
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
|
|
16491
|
+
var keys2;
|
|
16492
|
+
if (message.renamedServices && (keys2 = Object.keys(message.renamedServices)).length) {
|
|
16493
|
+
object.renamedServices = {};
|
|
16494
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
16495
|
+
object.renamedServices[keys2[j]] = message.renamedServices[keys2[j]];
|
|
16496
|
+
}
|
|
16016
16497
|
return object;
|
|
16017
16498
|
};
|
|
16018
16499
|
|
|
@@ -16651,6 +17132,251 @@
|
|
|
16651
17132
|
return values;
|
|
16652
17133
|
})();
|
|
16653
17134
|
|
|
17135
|
+
api.SelectiveGapicGeneration = (function() {
|
|
17136
|
+
|
|
17137
|
+
/**
|
|
17138
|
+
* Properties of a SelectiveGapicGeneration.
|
|
17139
|
+
* @memberof google.api
|
|
17140
|
+
* @interface ISelectiveGapicGeneration
|
|
17141
|
+
* @property {Array.<string>|null} [methods] SelectiveGapicGeneration methods
|
|
17142
|
+
* @property {boolean|null} [generateOmittedAsInternal] SelectiveGapicGeneration generateOmittedAsInternal
|
|
17143
|
+
*/
|
|
17144
|
+
|
|
17145
|
+
/**
|
|
17146
|
+
* Constructs a new SelectiveGapicGeneration.
|
|
17147
|
+
* @memberof google.api
|
|
17148
|
+
* @classdesc Represents a SelectiveGapicGeneration.
|
|
17149
|
+
* @implements ISelectiveGapicGeneration
|
|
17150
|
+
* @constructor
|
|
17151
|
+
* @param {google.api.ISelectiveGapicGeneration=} [properties] Properties to set
|
|
17152
|
+
*/
|
|
17153
|
+
function SelectiveGapicGeneration(properties) {
|
|
17154
|
+
this.methods = [];
|
|
17155
|
+
if (properties)
|
|
17156
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17157
|
+
if (properties[keys[i]] != null)
|
|
17158
|
+
this[keys[i]] = properties[keys[i]];
|
|
17159
|
+
}
|
|
17160
|
+
|
|
17161
|
+
/**
|
|
17162
|
+
* SelectiveGapicGeneration methods.
|
|
17163
|
+
* @member {Array.<string>} methods
|
|
17164
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
17165
|
+
* @instance
|
|
17166
|
+
*/
|
|
17167
|
+
SelectiveGapicGeneration.prototype.methods = $util.emptyArray;
|
|
17168
|
+
|
|
17169
|
+
/**
|
|
17170
|
+
* SelectiveGapicGeneration generateOmittedAsInternal.
|
|
17171
|
+
* @member {boolean} generateOmittedAsInternal
|
|
17172
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
17173
|
+
* @instance
|
|
17174
|
+
*/
|
|
17175
|
+
SelectiveGapicGeneration.prototype.generateOmittedAsInternal = false;
|
|
17176
|
+
|
|
17177
|
+
/**
|
|
17178
|
+
* Creates a new SelectiveGapicGeneration instance using the specified properties.
|
|
17179
|
+
* @function create
|
|
17180
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
17181
|
+
* @static
|
|
17182
|
+
* @param {google.api.ISelectiveGapicGeneration=} [properties] Properties to set
|
|
17183
|
+
* @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration instance
|
|
17184
|
+
*/
|
|
17185
|
+
SelectiveGapicGeneration.create = function create(properties) {
|
|
17186
|
+
return new SelectiveGapicGeneration(properties);
|
|
17187
|
+
};
|
|
17188
|
+
|
|
17189
|
+
/**
|
|
17190
|
+
* Encodes the specified SelectiveGapicGeneration message. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
|
|
17191
|
+
* @function encode
|
|
17192
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
17193
|
+
* @static
|
|
17194
|
+
* @param {google.api.ISelectiveGapicGeneration} message SelectiveGapicGeneration message or plain object to encode
|
|
17195
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17196
|
+
* @returns {$protobuf.Writer} Writer
|
|
17197
|
+
*/
|
|
17198
|
+
SelectiveGapicGeneration.encode = function encode(message, writer) {
|
|
17199
|
+
if (!writer)
|
|
17200
|
+
writer = $Writer.create();
|
|
17201
|
+
if (message.methods != null && message.methods.length)
|
|
17202
|
+
for (var i = 0; i < message.methods.length; ++i)
|
|
17203
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.methods[i]);
|
|
17204
|
+
if (message.generateOmittedAsInternal != null && Object.hasOwnProperty.call(message, "generateOmittedAsInternal"))
|
|
17205
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.generateOmittedAsInternal);
|
|
17206
|
+
return writer;
|
|
17207
|
+
};
|
|
17208
|
+
|
|
17209
|
+
/**
|
|
17210
|
+
* Encodes the specified SelectiveGapicGeneration message, length delimited. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
|
|
17211
|
+
* @function encodeDelimited
|
|
17212
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
17213
|
+
* @static
|
|
17214
|
+
* @param {google.api.ISelectiveGapicGeneration} message SelectiveGapicGeneration message or plain object to encode
|
|
17215
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17216
|
+
* @returns {$protobuf.Writer} Writer
|
|
17217
|
+
*/
|
|
17218
|
+
SelectiveGapicGeneration.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17219
|
+
return this.encode(message, writer).ldelim();
|
|
17220
|
+
};
|
|
17221
|
+
|
|
17222
|
+
/**
|
|
17223
|
+
* Decodes a SelectiveGapicGeneration message from the specified reader or buffer.
|
|
17224
|
+
* @function decode
|
|
17225
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
17226
|
+
* @static
|
|
17227
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17228
|
+
* @param {number} [length] Message length if known beforehand
|
|
17229
|
+
* @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
|
|
17230
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17231
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17232
|
+
*/
|
|
17233
|
+
SelectiveGapicGeneration.decode = function decode(reader, length, error) {
|
|
17234
|
+
if (!(reader instanceof $Reader))
|
|
17235
|
+
reader = $Reader.create(reader);
|
|
17236
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.SelectiveGapicGeneration();
|
|
17237
|
+
while (reader.pos < end) {
|
|
17238
|
+
var tag = reader.uint32();
|
|
17239
|
+
if (tag === error)
|
|
17240
|
+
break;
|
|
17241
|
+
switch (tag >>> 3) {
|
|
17242
|
+
case 1: {
|
|
17243
|
+
if (!(message.methods && message.methods.length))
|
|
17244
|
+
message.methods = [];
|
|
17245
|
+
message.methods.push(reader.string());
|
|
17246
|
+
break;
|
|
17247
|
+
}
|
|
17248
|
+
case 2: {
|
|
17249
|
+
message.generateOmittedAsInternal = reader.bool();
|
|
17250
|
+
break;
|
|
17251
|
+
}
|
|
17252
|
+
default:
|
|
17253
|
+
reader.skipType(tag & 7);
|
|
17254
|
+
break;
|
|
17255
|
+
}
|
|
17256
|
+
}
|
|
17257
|
+
return message;
|
|
17258
|
+
};
|
|
17259
|
+
|
|
17260
|
+
/**
|
|
17261
|
+
* Decodes a SelectiveGapicGeneration message from the specified reader or buffer, length delimited.
|
|
17262
|
+
* @function decodeDelimited
|
|
17263
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
17264
|
+
* @static
|
|
17265
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17266
|
+
* @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
|
|
17267
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17268
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17269
|
+
*/
|
|
17270
|
+
SelectiveGapicGeneration.decodeDelimited = function decodeDelimited(reader) {
|
|
17271
|
+
if (!(reader instanceof $Reader))
|
|
17272
|
+
reader = new $Reader(reader);
|
|
17273
|
+
return this.decode(reader, reader.uint32());
|
|
17274
|
+
};
|
|
17275
|
+
|
|
17276
|
+
/**
|
|
17277
|
+
* Verifies a SelectiveGapicGeneration message.
|
|
17278
|
+
* @function verify
|
|
17279
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
17280
|
+
* @static
|
|
17281
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
17282
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
17283
|
+
*/
|
|
17284
|
+
SelectiveGapicGeneration.verify = function verify(message) {
|
|
17285
|
+
if (typeof message !== "object" || message === null)
|
|
17286
|
+
return "object expected";
|
|
17287
|
+
if (message.methods != null && message.hasOwnProperty("methods")) {
|
|
17288
|
+
if (!Array.isArray(message.methods))
|
|
17289
|
+
return "methods: array expected";
|
|
17290
|
+
for (var i = 0; i < message.methods.length; ++i)
|
|
17291
|
+
if (!$util.isString(message.methods[i]))
|
|
17292
|
+
return "methods: string[] expected";
|
|
17293
|
+
}
|
|
17294
|
+
if (message.generateOmittedAsInternal != null && message.hasOwnProperty("generateOmittedAsInternal"))
|
|
17295
|
+
if (typeof message.generateOmittedAsInternal !== "boolean")
|
|
17296
|
+
return "generateOmittedAsInternal: boolean expected";
|
|
17297
|
+
return null;
|
|
17298
|
+
};
|
|
17299
|
+
|
|
17300
|
+
/**
|
|
17301
|
+
* Creates a SelectiveGapicGeneration message from a plain object. Also converts values to their respective internal types.
|
|
17302
|
+
* @function fromObject
|
|
17303
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
17304
|
+
* @static
|
|
17305
|
+
* @param {Object.<string,*>} object Plain object
|
|
17306
|
+
* @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
|
|
17307
|
+
*/
|
|
17308
|
+
SelectiveGapicGeneration.fromObject = function fromObject(object) {
|
|
17309
|
+
if (object instanceof $root.google.api.SelectiveGapicGeneration)
|
|
17310
|
+
return object;
|
|
17311
|
+
var message = new $root.google.api.SelectiveGapicGeneration();
|
|
17312
|
+
if (object.methods) {
|
|
17313
|
+
if (!Array.isArray(object.methods))
|
|
17314
|
+
throw TypeError(".google.api.SelectiveGapicGeneration.methods: array expected");
|
|
17315
|
+
message.methods = [];
|
|
17316
|
+
for (var i = 0; i < object.methods.length; ++i)
|
|
17317
|
+
message.methods[i] = String(object.methods[i]);
|
|
17318
|
+
}
|
|
17319
|
+
if (object.generateOmittedAsInternal != null)
|
|
17320
|
+
message.generateOmittedAsInternal = Boolean(object.generateOmittedAsInternal);
|
|
17321
|
+
return message;
|
|
17322
|
+
};
|
|
17323
|
+
|
|
17324
|
+
/**
|
|
17325
|
+
* Creates a plain object from a SelectiveGapicGeneration message. Also converts values to other types if specified.
|
|
17326
|
+
* @function toObject
|
|
17327
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
17328
|
+
* @static
|
|
17329
|
+
* @param {google.api.SelectiveGapicGeneration} message SelectiveGapicGeneration
|
|
17330
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
17331
|
+
* @returns {Object.<string,*>} Plain object
|
|
17332
|
+
*/
|
|
17333
|
+
SelectiveGapicGeneration.toObject = function toObject(message, options) {
|
|
17334
|
+
if (!options)
|
|
17335
|
+
options = {};
|
|
17336
|
+
var object = {};
|
|
17337
|
+
if (options.arrays || options.defaults)
|
|
17338
|
+
object.methods = [];
|
|
17339
|
+
if (options.defaults)
|
|
17340
|
+
object.generateOmittedAsInternal = false;
|
|
17341
|
+
if (message.methods && message.methods.length) {
|
|
17342
|
+
object.methods = [];
|
|
17343
|
+
for (var j = 0; j < message.methods.length; ++j)
|
|
17344
|
+
object.methods[j] = message.methods[j];
|
|
17345
|
+
}
|
|
17346
|
+
if (message.generateOmittedAsInternal != null && message.hasOwnProperty("generateOmittedAsInternal"))
|
|
17347
|
+
object.generateOmittedAsInternal = message.generateOmittedAsInternal;
|
|
17348
|
+
return object;
|
|
17349
|
+
};
|
|
17350
|
+
|
|
17351
|
+
/**
|
|
17352
|
+
* Converts this SelectiveGapicGeneration to JSON.
|
|
17353
|
+
* @function toJSON
|
|
17354
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
17355
|
+
* @instance
|
|
17356
|
+
* @returns {Object.<string,*>} JSON object
|
|
17357
|
+
*/
|
|
17358
|
+
SelectiveGapicGeneration.prototype.toJSON = function toJSON() {
|
|
17359
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
17360
|
+
};
|
|
17361
|
+
|
|
17362
|
+
/**
|
|
17363
|
+
* Gets the default type url for SelectiveGapicGeneration
|
|
17364
|
+
* @function getTypeUrl
|
|
17365
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
17366
|
+
* @static
|
|
17367
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
17368
|
+
* @returns {string} The default type url
|
|
17369
|
+
*/
|
|
17370
|
+
SelectiveGapicGeneration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
17371
|
+
if (typeUrlPrefix === undefined) {
|
|
17372
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
17373
|
+
}
|
|
17374
|
+
return typeUrlPrefix + "/google.api.SelectiveGapicGeneration";
|
|
17375
|
+
};
|
|
17376
|
+
|
|
17377
|
+
return SelectiveGapicGeneration;
|
|
17378
|
+
})();
|
|
17379
|
+
|
|
16654
17380
|
/**
|
|
16655
17381
|
* LaunchStage enum.
|
|
16656
17382
|
* @name google.api.LaunchStage
|
|
@@ -18063,6 +18789,7 @@
|
|
|
18063
18789
|
* @name google.protobuf.Edition
|
|
18064
18790
|
* @enum {number}
|
|
18065
18791
|
* @property {number} EDITION_UNKNOWN=0 EDITION_UNKNOWN value
|
|
18792
|
+
* @property {number} EDITION_LEGACY=900 EDITION_LEGACY value
|
|
18066
18793
|
* @property {number} EDITION_PROTO2=998 EDITION_PROTO2 value
|
|
18067
18794
|
* @property {number} EDITION_PROTO3=999 EDITION_PROTO3 value
|
|
18068
18795
|
* @property {number} EDITION_2023=1000 EDITION_2023 value
|
|
@@ -18077,6 +18804,7 @@
|
|
|
18077
18804
|
protobuf.Edition = (function() {
|
|
18078
18805
|
var valuesById = {}, values = Object.create(valuesById);
|
|
18079
18806
|
values[valuesById[0] = "EDITION_UNKNOWN"] = 0;
|
|
18807
|
+
values[valuesById[900] = "EDITION_LEGACY"] = 900;
|
|
18080
18808
|
values[valuesById[998] = "EDITION_PROTO2"] = 998;
|
|
18081
18809
|
values[valuesById[999] = "EDITION_PROTO3"] = 999;
|
|
18082
18810
|
values[valuesById[1000] = "EDITION_2023"] = 1000;
|
|
@@ -18101,6 +18829,7 @@
|
|
|
18101
18829
|
* @property {Array.<string>|null} [dependency] FileDescriptorProto dependency
|
|
18102
18830
|
* @property {Array.<number>|null} [publicDependency] FileDescriptorProto publicDependency
|
|
18103
18831
|
* @property {Array.<number>|null} [weakDependency] FileDescriptorProto weakDependency
|
|
18832
|
+
* @property {Array.<string>|null} [optionDependency] FileDescriptorProto optionDependency
|
|
18104
18833
|
* @property {Array.<google.protobuf.IDescriptorProto>|null} [messageType] FileDescriptorProto messageType
|
|
18105
18834
|
* @property {Array.<google.protobuf.IEnumDescriptorProto>|null} [enumType] FileDescriptorProto enumType
|
|
18106
18835
|
* @property {Array.<google.protobuf.IServiceDescriptorProto>|null} [service] FileDescriptorProto service
|
|
@@ -18123,6 +18852,7 @@
|
|
|
18123
18852
|
this.dependency = [];
|
|
18124
18853
|
this.publicDependency = [];
|
|
18125
18854
|
this.weakDependency = [];
|
|
18855
|
+
this.optionDependency = [];
|
|
18126
18856
|
this.messageType = [];
|
|
18127
18857
|
this.enumType = [];
|
|
18128
18858
|
this.service = [];
|
|
@@ -18173,6 +18903,14 @@
|
|
|
18173
18903
|
*/
|
|
18174
18904
|
FileDescriptorProto.prototype.weakDependency = $util.emptyArray;
|
|
18175
18905
|
|
|
18906
|
+
/**
|
|
18907
|
+
* FileDescriptorProto optionDependency.
|
|
18908
|
+
* @member {Array.<string>} optionDependency
|
|
18909
|
+
* @memberof google.protobuf.FileDescriptorProto
|
|
18910
|
+
* @instance
|
|
18911
|
+
*/
|
|
18912
|
+
FileDescriptorProto.prototype.optionDependency = $util.emptyArray;
|
|
18913
|
+
|
|
18176
18914
|
/**
|
|
18177
18915
|
* FileDescriptorProto messageType.
|
|
18178
18916
|
* @member {Array.<google.protobuf.IDescriptorProto>} messageType
|
|
@@ -18294,6 +19032,9 @@
|
|
|
18294
19032
|
writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax);
|
|
18295
19033
|
if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
|
|
18296
19034
|
writer.uint32(/* id 14, wireType 0 =*/112).int32(message.edition);
|
|
19035
|
+
if (message.optionDependency != null && message.optionDependency.length)
|
|
19036
|
+
for (var i = 0; i < message.optionDependency.length; ++i)
|
|
19037
|
+
writer.uint32(/* id 15, wireType 2 =*/122).string(message.optionDependency[i]);
|
|
18297
19038
|
return writer;
|
|
18298
19039
|
};
|
|
18299
19040
|
|
|
@@ -18366,6 +19107,12 @@
|
|
|
18366
19107
|
message.weakDependency.push(reader.int32());
|
|
18367
19108
|
break;
|
|
18368
19109
|
}
|
|
19110
|
+
case 15: {
|
|
19111
|
+
if (!(message.optionDependency && message.optionDependency.length))
|
|
19112
|
+
message.optionDependency = [];
|
|
19113
|
+
message.optionDependency.push(reader.string());
|
|
19114
|
+
break;
|
|
19115
|
+
}
|
|
18369
19116
|
case 4: {
|
|
18370
19117
|
if (!(message.messageType && message.messageType.length))
|
|
18371
19118
|
message.messageType = [];
|
|
@@ -18468,6 +19215,13 @@
|
|
|
18468
19215
|
if (!$util.isInteger(message.weakDependency[i]))
|
|
18469
19216
|
return "weakDependency: integer[] expected";
|
|
18470
19217
|
}
|
|
19218
|
+
if (message.optionDependency != null && message.hasOwnProperty("optionDependency")) {
|
|
19219
|
+
if (!Array.isArray(message.optionDependency))
|
|
19220
|
+
return "optionDependency: array expected";
|
|
19221
|
+
for (var i = 0; i < message.optionDependency.length; ++i)
|
|
19222
|
+
if (!$util.isString(message.optionDependency[i]))
|
|
19223
|
+
return "optionDependency: string[] expected";
|
|
19224
|
+
}
|
|
18471
19225
|
if (message.messageType != null && message.hasOwnProperty("messageType")) {
|
|
18472
19226
|
if (!Array.isArray(message.messageType))
|
|
18473
19227
|
return "messageType: array expected";
|
|
@@ -18522,6 +19276,7 @@
|
|
|
18522
19276
|
default:
|
|
18523
19277
|
return "edition: enum value expected";
|
|
18524
19278
|
case 0:
|
|
19279
|
+
case 900:
|
|
18525
19280
|
case 998:
|
|
18526
19281
|
case 999:
|
|
18527
19282
|
case 1000:
|
|
@@ -18574,6 +19329,13 @@
|
|
|
18574
19329
|
for (var i = 0; i < object.weakDependency.length; ++i)
|
|
18575
19330
|
message.weakDependency[i] = object.weakDependency[i] | 0;
|
|
18576
19331
|
}
|
|
19332
|
+
if (object.optionDependency) {
|
|
19333
|
+
if (!Array.isArray(object.optionDependency))
|
|
19334
|
+
throw TypeError(".google.protobuf.FileDescriptorProto.optionDependency: array expected");
|
|
19335
|
+
message.optionDependency = [];
|
|
19336
|
+
for (var i = 0; i < object.optionDependency.length; ++i)
|
|
19337
|
+
message.optionDependency[i] = String(object.optionDependency[i]);
|
|
19338
|
+
}
|
|
18577
19339
|
if (object.messageType) {
|
|
18578
19340
|
if (!Array.isArray(object.messageType))
|
|
18579
19341
|
throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected");
|
|
@@ -18637,6 +19399,10 @@
|
|
|
18637
19399
|
case 0:
|
|
18638
19400
|
message.edition = 0;
|
|
18639
19401
|
break;
|
|
19402
|
+
case "EDITION_LEGACY":
|
|
19403
|
+
case 900:
|
|
19404
|
+
message.edition = 900;
|
|
19405
|
+
break;
|
|
18640
19406
|
case "EDITION_PROTO2":
|
|
18641
19407
|
case 998:
|
|
18642
19408
|
message.edition = 998;
|
|
@@ -18702,6 +19468,7 @@
|
|
|
18702
19468
|
object.extension = [];
|
|
18703
19469
|
object.publicDependency = [];
|
|
18704
19470
|
object.weakDependency = [];
|
|
19471
|
+
object.optionDependency = [];
|
|
18705
19472
|
}
|
|
18706
19473
|
if (options.defaults) {
|
|
18707
19474
|
object.name = "";
|
|
@@ -18758,6 +19525,11 @@
|
|
|
18758
19525
|
object.syntax = message.syntax;
|
|
18759
19526
|
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
18760
19527
|
object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
|
|
19528
|
+
if (message.optionDependency && message.optionDependency.length) {
|
|
19529
|
+
object.optionDependency = [];
|
|
19530
|
+
for (var j = 0; j < message.optionDependency.length; ++j)
|
|
19531
|
+
object.optionDependency[j] = message.optionDependency[j];
|
|
19532
|
+
}
|
|
18761
19533
|
return object;
|
|
18762
19534
|
};
|
|
18763
19535
|
|
|
@@ -18806,6 +19578,7 @@
|
|
|
18806
19578
|
* @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options
|
|
18807
19579
|
* @property {Array.<google.protobuf.DescriptorProto.IReservedRange>|null} [reservedRange] DescriptorProto reservedRange
|
|
18808
19580
|
* @property {Array.<string>|null} [reservedName] DescriptorProto reservedName
|
|
19581
|
+
* @property {google.protobuf.SymbolVisibility|null} [visibility] DescriptorProto visibility
|
|
18809
19582
|
*/
|
|
18810
19583
|
|
|
18811
19584
|
/**
|
|
@@ -18911,6 +19684,14 @@
|
|
|
18911
19684
|
*/
|
|
18912
19685
|
DescriptorProto.prototype.reservedName = $util.emptyArray;
|
|
18913
19686
|
|
|
19687
|
+
/**
|
|
19688
|
+
* DescriptorProto visibility.
|
|
19689
|
+
* @member {google.protobuf.SymbolVisibility} visibility
|
|
19690
|
+
* @memberof google.protobuf.DescriptorProto
|
|
19691
|
+
* @instance
|
|
19692
|
+
*/
|
|
19693
|
+
DescriptorProto.prototype.visibility = 0;
|
|
19694
|
+
|
|
18914
19695
|
/**
|
|
18915
19696
|
* Creates a new DescriptorProto instance using the specified properties.
|
|
18916
19697
|
* @function create
|
|
@@ -18963,6 +19744,8 @@
|
|
|
18963
19744
|
if (message.reservedName != null && message.reservedName.length)
|
|
18964
19745
|
for (var i = 0; i < message.reservedName.length; ++i)
|
|
18965
19746
|
writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]);
|
|
19747
|
+
if (message.visibility != null && Object.hasOwnProperty.call(message, "visibility"))
|
|
19748
|
+
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.visibility);
|
|
18966
19749
|
return writer;
|
|
18967
19750
|
};
|
|
18968
19751
|
|
|
@@ -19055,6 +19838,10 @@
|
|
|
19055
19838
|
message.reservedName.push(reader.string());
|
|
19056
19839
|
break;
|
|
19057
19840
|
}
|
|
19841
|
+
case 11: {
|
|
19842
|
+
message.visibility = reader.int32();
|
|
19843
|
+
break;
|
|
19844
|
+
}
|
|
19058
19845
|
default:
|
|
19059
19846
|
reader.skipType(tag & 7);
|
|
19060
19847
|
break;
|
|
@@ -19168,6 +19955,15 @@
|
|
|
19168
19955
|
if (!$util.isString(message.reservedName[i]))
|
|
19169
19956
|
return "reservedName: string[] expected";
|
|
19170
19957
|
}
|
|
19958
|
+
if (message.visibility != null && message.hasOwnProperty("visibility"))
|
|
19959
|
+
switch (message.visibility) {
|
|
19960
|
+
default:
|
|
19961
|
+
return "visibility: enum value expected";
|
|
19962
|
+
case 0:
|
|
19963
|
+
case 1:
|
|
19964
|
+
case 2:
|
|
19965
|
+
break;
|
|
19966
|
+
}
|
|
19171
19967
|
return null;
|
|
19172
19968
|
};
|
|
19173
19969
|
|
|
@@ -19267,6 +20063,26 @@
|
|
|
19267
20063
|
for (var i = 0; i < object.reservedName.length; ++i)
|
|
19268
20064
|
message.reservedName[i] = String(object.reservedName[i]);
|
|
19269
20065
|
}
|
|
20066
|
+
switch (object.visibility) {
|
|
20067
|
+
default:
|
|
20068
|
+
if (typeof object.visibility === "number") {
|
|
20069
|
+
message.visibility = object.visibility;
|
|
20070
|
+
break;
|
|
20071
|
+
}
|
|
20072
|
+
break;
|
|
20073
|
+
case "VISIBILITY_UNSET":
|
|
20074
|
+
case 0:
|
|
20075
|
+
message.visibility = 0;
|
|
20076
|
+
break;
|
|
20077
|
+
case "VISIBILITY_LOCAL":
|
|
20078
|
+
case 1:
|
|
20079
|
+
message.visibility = 1;
|
|
20080
|
+
break;
|
|
20081
|
+
case "VISIBILITY_EXPORT":
|
|
20082
|
+
case 2:
|
|
20083
|
+
message.visibility = 2;
|
|
20084
|
+
break;
|
|
20085
|
+
}
|
|
19270
20086
|
return message;
|
|
19271
20087
|
};
|
|
19272
20088
|
|
|
@@ -19296,6 +20112,7 @@
|
|
|
19296
20112
|
if (options.defaults) {
|
|
19297
20113
|
object.name = "";
|
|
19298
20114
|
object.options = null;
|
|
20115
|
+
object.visibility = options.enums === String ? "VISIBILITY_UNSET" : 0;
|
|
19299
20116
|
}
|
|
19300
20117
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
19301
20118
|
object.name = message.name;
|
|
@@ -19341,6 +20158,8 @@
|
|
|
19341
20158
|
for (var j = 0; j < message.reservedName.length; ++j)
|
|
19342
20159
|
object.reservedName[j] = message.reservedName[j];
|
|
19343
20160
|
}
|
|
20161
|
+
if (message.visibility != null && message.hasOwnProperty("visibility"))
|
|
20162
|
+
object.visibility = options.enums === String ? $root.google.protobuf.SymbolVisibility[message.visibility] === undefined ? message.visibility : $root.google.protobuf.SymbolVisibility[message.visibility] : message.visibility;
|
|
19344
20163
|
return object;
|
|
19345
20164
|
};
|
|
19346
20165
|
|
|
@@ -21385,6 +22204,7 @@
|
|
|
21385
22204
|
* @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options
|
|
21386
22205
|
* @property {Array.<google.protobuf.EnumDescriptorProto.IEnumReservedRange>|null} [reservedRange] EnumDescriptorProto reservedRange
|
|
21387
22206
|
* @property {Array.<string>|null} [reservedName] EnumDescriptorProto reservedName
|
|
22207
|
+
* @property {google.protobuf.SymbolVisibility|null} [visibility] EnumDescriptorProto visibility
|
|
21388
22208
|
*/
|
|
21389
22209
|
|
|
21390
22210
|
/**
|
|
@@ -21445,6 +22265,14 @@
|
|
|
21445
22265
|
*/
|
|
21446
22266
|
EnumDescriptorProto.prototype.reservedName = $util.emptyArray;
|
|
21447
22267
|
|
|
22268
|
+
/**
|
|
22269
|
+
* EnumDescriptorProto visibility.
|
|
22270
|
+
* @member {google.protobuf.SymbolVisibility} visibility
|
|
22271
|
+
* @memberof google.protobuf.EnumDescriptorProto
|
|
22272
|
+
* @instance
|
|
22273
|
+
*/
|
|
22274
|
+
EnumDescriptorProto.prototype.visibility = 0;
|
|
22275
|
+
|
|
21448
22276
|
/**
|
|
21449
22277
|
* Creates a new EnumDescriptorProto instance using the specified properties.
|
|
21450
22278
|
* @function create
|
|
@@ -21482,6 +22310,8 @@
|
|
|
21482
22310
|
if (message.reservedName != null && message.reservedName.length)
|
|
21483
22311
|
for (var i = 0; i < message.reservedName.length; ++i)
|
|
21484
22312
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.reservedName[i]);
|
|
22313
|
+
if (message.visibility != null && Object.hasOwnProperty.call(message, "visibility"))
|
|
22314
|
+
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.visibility);
|
|
21485
22315
|
return writer;
|
|
21486
22316
|
};
|
|
21487
22317
|
|
|
@@ -21544,6 +22374,10 @@
|
|
|
21544
22374
|
message.reservedName.push(reader.string());
|
|
21545
22375
|
break;
|
|
21546
22376
|
}
|
|
22377
|
+
case 6: {
|
|
22378
|
+
message.visibility = reader.int32();
|
|
22379
|
+
break;
|
|
22380
|
+
}
|
|
21547
22381
|
default:
|
|
21548
22382
|
reader.skipType(tag & 7);
|
|
21549
22383
|
break;
|
|
@@ -21612,6 +22446,15 @@
|
|
|
21612
22446
|
if (!$util.isString(message.reservedName[i]))
|
|
21613
22447
|
return "reservedName: string[] expected";
|
|
21614
22448
|
}
|
|
22449
|
+
if (message.visibility != null && message.hasOwnProperty("visibility"))
|
|
22450
|
+
switch (message.visibility) {
|
|
22451
|
+
default:
|
|
22452
|
+
return "visibility: enum value expected";
|
|
22453
|
+
case 0:
|
|
22454
|
+
case 1:
|
|
22455
|
+
case 2:
|
|
22456
|
+
break;
|
|
22457
|
+
}
|
|
21615
22458
|
return null;
|
|
21616
22459
|
};
|
|
21617
22460
|
|
|
@@ -21661,6 +22504,26 @@
|
|
|
21661
22504
|
for (var i = 0; i < object.reservedName.length; ++i)
|
|
21662
22505
|
message.reservedName[i] = String(object.reservedName[i]);
|
|
21663
22506
|
}
|
|
22507
|
+
switch (object.visibility) {
|
|
22508
|
+
default:
|
|
22509
|
+
if (typeof object.visibility === "number") {
|
|
22510
|
+
message.visibility = object.visibility;
|
|
22511
|
+
break;
|
|
22512
|
+
}
|
|
22513
|
+
break;
|
|
22514
|
+
case "VISIBILITY_UNSET":
|
|
22515
|
+
case 0:
|
|
22516
|
+
message.visibility = 0;
|
|
22517
|
+
break;
|
|
22518
|
+
case "VISIBILITY_LOCAL":
|
|
22519
|
+
case 1:
|
|
22520
|
+
message.visibility = 1;
|
|
22521
|
+
break;
|
|
22522
|
+
case "VISIBILITY_EXPORT":
|
|
22523
|
+
case 2:
|
|
22524
|
+
message.visibility = 2;
|
|
22525
|
+
break;
|
|
22526
|
+
}
|
|
21664
22527
|
return message;
|
|
21665
22528
|
};
|
|
21666
22529
|
|
|
@@ -21685,6 +22548,7 @@
|
|
|
21685
22548
|
if (options.defaults) {
|
|
21686
22549
|
object.name = "";
|
|
21687
22550
|
object.options = null;
|
|
22551
|
+
object.visibility = options.enums === String ? "VISIBILITY_UNSET" : 0;
|
|
21688
22552
|
}
|
|
21689
22553
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
21690
22554
|
object.name = message.name;
|
|
@@ -21705,6 +22569,8 @@
|
|
|
21705
22569
|
for (var j = 0; j < message.reservedName.length; ++j)
|
|
21706
22570
|
object.reservedName[j] = message.reservedName[j];
|
|
21707
22571
|
}
|
|
22572
|
+
if (message.visibility != null && message.hasOwnProperty("visibility"))
|
|
22573
|
+
object.visibility = options.enums === String ? $root.google.protobuf.SymbolVisibility[message.visibility] === undefined ? message.visibility : $root.google.protobuf.SymbolVisibility[message.visibility] : message.visibility;
|
|
21708
22574
|
return object;
|
|
21709
22575
|
};
|
|
21710
22576
|
|
|
@@ -24023,6 +24889,7 @@
|
|
|
24023
24889
|
* @property {Array.<google.protobuf.FieldOptions.OptionTargetType>|null} [targets] FieldOptions targets
|
|
24024
24890
|
* @property {Array.<google.protobuf.FieldOptions.IEditionDefault>|null} [editionDefaults] FieldOptions editionDefaults
|
|
24025
24891
|
* @property {google.protobuf.IFeatureSet|null} [features] FieldOptions features
|
|
24892
|
+
* @property {google.protobuf.FieldOptions.IFeatureSupport|null} [featureSupport] FieldOptions featureSupport
|
|
24026
24893
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FieldOptions uninterpretedOption
|
|
24027
24894
|
* @property {Array.<google.api.FieldBehavior>|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior
|
|
24028
24895
|
* @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference
|
|
@@ -24143,6 +25010,14 @@
|
|
|
24143
25010
|
*/
|
|
24144
25011
|
FieldOptions.prototype.features = null;
|
|
24145
25012
|
|
|
25013
|
+
/**
|
|
25014
|
+
* FieldOptions featureSupport.
|
|
25015
|
+
* @member {google.protobuf.FieldOptions.IFeatureSupport|null|undefined} featureSupport
|
|
25016
|
+
* @memberof google.protobuf.FieldOptions
|
|
25017
|
+
* @instance
|
|
25018
|
+
*/
|
|
25019
|
+
FieldOptions.prototype.featureSupport = null;
|
|
25020
|
+
|
|
24146
25021
|
/**
|
|
24147
25022
|
* FieldOptions uninterpretedOption.
|
|
24148
25023
|
* @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
|
|
@@ -24217,6 +25092,8 @@
|
|
|
24217
25092
|
$root.google.protobuf.FieldOptions.EditionDefault.encode(message.editionDefaults[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
|
|
24218
25093
|
if (message.features != null && Object.hasOwnProperty.call(message, "features"))
|
|
24219
25094
|
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
|
|
25095
|
+
if (message.featureSupport != null && Object.hasOwnProperty.call(message, "featureSupport"))
|
|
25096
|
+
$root.google.protobuf.FieldOptions.FeatureSupport.encode(message.featureSupport, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
|
|
24220
25097
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
|
24221
25098
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
|
24222
25099
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
@@ -24318,6 +25195,10 @@
|
|
|
24318
25195
|
message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
24319
25196
|
break;
|
|
24320
25197
|
}
|
|
25198
|
+
case 22: {
|
|
25199
|
+
message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.decode(reader, reader.uint32());
|
|
25200
|
+
break;
|
|
25201
|
+
}
|
|
24321
25202
|
case 999: {
|
|
24322
25203
|
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
|
|
24323
25204
|
message.uninterpretedOption = [];
|
|
@@ -24453,6 +25334,11 @@
|
|
|
24453
25334
|
if (error)
|
|
24454
25335
|
return "features." + error;
|
|
24455
25336
|
}
|
|
25337
|
+
if (message.featureSupport != null && message.hasOwnProperty("featureSupport")) {
|
|
25338
|
+
var error = $root.google.protobuf.FieldOptions.FeatureSupport.verify(message.featureSupport);
|
|
25339
|
+
if (error)
|
|
25340
|
+
return "featureSupport." + error;
|
|
25341
|
+
}
|
|
24456
25342
|
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
|
|
24457
25343
|
if (!Array.isArray(message.uninterpretedOption))
|
|
24458
25344
|
return "uninterpretedOption: array expected";
|
|
@@ -24641,6 +25527,11 @@
|
|
|
24641
25527
|
throw TypeError(".google.protobuf.FieldOptions.features: object expected");
|
|
24642
25528
|
message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
|
|
24643
25529
|
}
|
|
25530
|
+
if (object.featureSupport != null) {
|
|
25531
|
+
if (typeof object.featureSupport !== "object")
|
|
25532
|
+
throw TypeError(".google.protobuf.FieldOptions.featureSupport: object expected");
|
|
25533
|
+
message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.fromObject(object.featureSupport);
|
|
25534
|
+
}
|
|
24644
25535
|
if (object.uninterpretedOption) {
|
|
24645
25536
|
if (!Array.isArray(object.uninterpretedOption))
|
|
24646
25537
|
throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected");
|
|
@@ -24738,6 +25629,7 @@
|
|
|
24738
25629
|
object.debugRedact = false;
|
|
24739
25630
|
object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0;
|
|
24740
25631
|
object.features = null;
|
|
25632
|
+
object.featureSupport = null;
|
|
24741
25633
|
object[".google.api.resourceReference"] = null;
|
|
24742
25634
|
}
|
|
24743
25635
|
if (message.ctype != null && message.hasOwnProperty("ctype"))
|
|
@@ -24770,6 +25662,8 @@
|
|
|
24770
25662
|
}
|
|
24771
25663
|
if (message.features != null && message.hasOwnProperty("features"))
|
|
24772
25664
|
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
|
25665
|
+
if (message.featureSupport != null && message.hasOwnProperty("featureSupport"))
|
|
25666
|
+
object.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.toObject(message.featureSupport, options);
|
|
24773
25667
|
if (message.uninterpretedOption && message.uninterpretedOption.length) {
|
|
24774
25668
|
object.uninterpretedOption = [];
|
|
24775
25669
|
for (var j = 0; j < message.uninterpretedOption.length; ++j)
|
|
@@ -25042,6 +25936,7 @@
|
|
|
25042
25936
|
default:
|
|
25043
25937
|
return "edition: enum value expected";
|
|
25044
25938
|
case 0:
|
|
25939
|
+
case 900:
|
|
25045
25940
|
case 998:
|
|
25046
25941
|
case 999:
|
|
25047
25942
|
case 1000:
|
|
@@ -25083,6 +25978,10 @@
|
|
|
25083
25978
|
case 0:
|
|
25084
25979
|
message.edition = 0;
|
|
25085
25980
|
break;
|
|
25981
|
+
case "EDITION_LEGACY":
|
|
25982
|
+
case 900:
|
|
25983
|
+
message.edition = 900;
|
|
25984
|
+
break;
|
|
25086
25985
|
case "EDITION_PROTO2":
|
|
25087
25986
|
case 998:
|
|
25088
25987
|
message.edition = 998;
|
|
@@ -25182,14 +26081,496 @@
|
|
|
25182
26081
|
return EditionDefault;
|
|
25183
26082
|
})();
|
|
25184
26083
|
|
|
25185
|
-
|
|
25186
|
-
})();
|
|
26084
|
+
FieldOptions.FeatureSupport = (function() {
|
|
25187
26085
|
|
|
25188
|
-
|
|
26086
|
+
/**
|
|
26087
|
+
* Properties of a FeatureSupport.
|
|
26088
|
+
* @memberof google.protobuf.FieldOptions
|
|
26089
|
+
* @interface IFeatureSupport
|
|
26090
|
+
* @property {google.protobuf.Edition|null} [editionIntroduced] FeatureSupport editionIntroduced
|
|
26091
|
+
* @property {google.protobuf.Edition|null} [editionDeprecated] FeatureSupport editionDeprecated
|
|
26092
|
+
* @property {string|null} [deprecationWarning] FeatureSupport deprecationWarning
|
|
26093
|
+
* @property {google.protobuf.Edition|null} [editionRemoved] FeatureSupport editionRemoved
|
|
26094
|
+
*/
|
|
25189
26095
|
|
|
25190
|
-
|
|
25191
|
-
|
|
25192
|
-
|
|
26096
|
+
/**
|
|
26097
|
+
* Constructs a new FeatureSupport.
|
|
26098
|
+
* @memberof google.protobuf.FieldOptions
|
|
26099
|
+
* @classdesc Represents a FeatureSupport.
|
|
26100
|
+
* @implements IFeatureSupport
|
|
26101
|
+
* @constructor
|
|
26102
|
+
* @param {google.protobuf.FieldOptions.IFeatureSupport=} [properties] Properties to set
|
|
26103
|
+
*/
|
|
26104
|
+
function FeatureSupport(properties) {
|
|
26105
|
+
if (properties)
|
|
26106
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
26107
|
+
if (properties[keys[i]] != null)
|
|
26108
|
+
this[keys[i]] = properties[keys[i]];
|
|
26109
|
+
}
|
|
26110
|
+
|
|
26111
|
+
/**
|
|
26112
|
+
* FeatureSupport editionIntroduced.
|
|
26113
|
+
* @member {google.protobuf.Edition} editionIntroduced
|
|
26114
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
26115
|
+
* @instance
|
|
26116
|
+
*/
|
|
26117
|
+
FeatureSupport.prototype.editionIntroduced = 0;
|
|
26118
|
+
|
|
26119
|
+
/**
|
|
26120
|
+
* FeatureSupport editionDeprecated.
|
|
26121
|
+
* @member {google.protobuf.Edition} editionDeprecated
|
|
26122
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
26123
|
+
* @instance
|
|
26124
|
+
*/
|
|
26125
|
+
FeatureSupport.prototype.editionDeprecated = 0;
|
|
26126
|
+
|
|
26127
|
+
/**
|
|
26128
|
+
* FeatureSupport deprecationWarning.
|
|
26129
|
+
* @member {string} deprecationWarning
|
|
26130
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
26131
|
+
* @instance
|
|
26132
|
+
*/
|
|
26133
|
+
FeatureSupport.prototype.deprecationWarning = "";
|
|
26134
|
+
|
|
26135
|
+
/**
|
|
26136
|
+
* FeatureSupport editionRemoved.
|
|
26137
|
+
* @member {google.protobuf.Edition} editionRemoved
|
|
26138
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
26139
|
+
* @instance
|
|
26140
|
+
*/
|
|
26141
|
+
FeatureSupport.prototype.editionRemoved = 0;
|
|
26142
|
+
|
|
26143
|
+
/**
|
|
26144
|
+
* Creates a new FeatureSupport instance using the specified properties.
|
|
26145
|
+
* @function create
|
|
26146
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
26147
|
+
* @static
|
|
26148
|
+
* @param {google.protobuf.FieldOptions.IFeatureSupport=} [properties] Properties to set
|
|
26149
|
+
* @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport instance
|
|
26150
|
+
*/
|
|
26151
|
+
FeatureSupport.create = function create(properties) {
|
|
26152
|
+
return new FeatureSupport(properties);
|
|
26153
|
+
};
|
|
26154
|
+
|
|
26155
|
+
/**
|
|
26156
|
+
* Encodes the specified FeatureSupport message. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
|
|
26157
|
+
* @function encode
|
|
26158
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
26159
|
+
* @static
|
|
26160
|
+
* @param {google.protobuf.FieldOptions.IFeatureSupport} message FeatureSupport message or plain object to encode
|
|
26161
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
26162
|
+
* @returns {$protobuf.Writer} Writer
|
|
26163
|
+
*/
|
|
26164
|
+
FeatureSupport.encode = function encode(message, writer) {
|
|
26165
|
+
if (!writer)
|
|
26166
|
+
writer = $Writer.create();
|
|
26167
|
+
if (message.editionIntroduced != null && Object.hasOwnProperty.call(message, "editionIntroduced"))
|
|
26168
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.editionIntroduced);
|
|
26169
|
+
if (message.editionDeprecated != null && Object.hasOwnProperty.call(message, "editionDeprecated"))
|
|
26170
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.editionDeprecated);
|
|
26171
|
+
if (message.deprecationWarning != null && Object.hasOwnProperty.call(message, "deprecationWarning"))
|
|
26172
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.deprecationWarning);
|
|
26173
|
+
if (message.editionRemoved != null && Object.hasOwnProperty.call(message, "editionRemoved"))
|
|
26174
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.editionRemoved);
|
|
26175
|
+
return writer;
|
|
26176
|
+
};
|
|
26177
|
+
|
|
26178
|
+
/**
|
|
26179
|
+
* Encodes the specified FeatureSupport message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
|
|
26180
|
+
* @function encodeDelimited
|
|
26181
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
26182
|
+
* @static
|
|
26183
|
+
* @param {google.protobuf.FieldOptions.IFeatureSupport} message FeatureSupport message or plain object to encode
|
|
26184
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
26185
|
+
* @returns {$protobuf.Writer} Writer
|
|
26186
|
+
*/
|
|
26187
|
+
FeatureSupport.encodeDelimited = function encodeDelimited(message, writer) {
|
|
26188
|
+
return this.encode(message, writer).ldelim();
|
|
26189
|
+
};
|
|
26190
|
+
|
|
26191
|
+
/**
|
|
26192
|
+
* Decodes a FeatureSupport message from the specified reader or buffer.
|
|
26193
|
+
* @function decode
|
|
26194
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
26195
|
+
* @static
|
|
26196
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
26197
|
+
* @param {number} [length] Message length if known beforehand
|
|
26198
|
+
* @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
|
|
26199
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
26200
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
26201
|
+
*/
|
|
26202
|
+
FeatureSupport.decode = function decode(reader, length, error) {
|
|
26203
|
+
if (!(reader instanceof $Reader))
|
|
26204
|
+
reader = $Reader.create(reader);
|
|
26205
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions.FeatureSupport();
|
|
26206
|
+
while (reader.pos < end) {
|
|
26207
|
+
var tag = reader.uint32();
|
|
26208
|
+
if (tag === error)
|
|
26209
|
+
break;
|
|
26210
|
+
switch (tag >>> 3) {
|
|
26211
|
+
case 1: {
|
|
26212
|
+
message.editionIntroduced = reader.int32();
|
|
26213
|
+
break;
|
|
26214
|
+
}
|
|
26215
|
+
case 2: {
|
|
26216
|
+
message.editionDeprecated = reader.int32();
|
|
26217
|
+
break;
|
|
26218
|
+
}
|
|
26219
|
+
case 3: {
|
|
26220
|
+
message.deprecationWarning = reader.string();
|
|
26221
|
+
break;
|
|
26222
|
+
}
|
|
26223
|
+
case 4: {
|
|
26224
|
+
message.editionRemoved = reader.int32();
|
|
26225
|
+
break;
|
|
26226
|
+
}
|
|
26227
|
+
default:
|
|
26228
|
+
reader.skipType(tag & 7);
|
|
26229
|
+
break;
|
|
26230
|
+
}
|
|
26231
|
+
}
|
|
26232
|
+
return message;
|
|
26233
|
+
};
|
|
26234
|
+
|
|
26235
|
+
/**
|
|
26236
|
+
* Decodes a FeatureSupport message from the specified reader or buffer, length delimited.
|
|
26237
|
+
* @function decodeDelimited
|
|
26238
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
26239
|
+
* @static
|
|
26240
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
26241
|
+
* @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
|
|
26242
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
26243
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
26244
|
+
*/
|
|
26245
|
+
FeatureSupport.decodeDelimited = function decodeDelimited(reader) {
|
|
26246
|
+
if (!(reader instanceof $Reader))
|
|
26247
|
+
reader = new $Reader(reader);
|
|
26248
|
+
return this.decode(reader, reader.uint32());
|
|
26249
|
+
};
|
|
26250
|
+
|
|
26251
|
+
/**
|
|
26252
|
+
* Verifies a FeatureSupport message.
|
|
26253
|
+
* @function verify
|
|
26254
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
26255
|
+
* @static
|
|
26256
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
26257
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
26258
|
+
*/
|
|
26259
|
+
FeatureSupport.verify = function verify(message) {
|
|
26260
|
+
if (typeof message !== "object" || message === null)
|
|
26261
|
+
return "object expected";
|
|
26262
|
+
if (message.editionIntroduced != null && message.hasOwnProperty("editionIntroduced"))
|
|
26263
|
+
switch (message.editionIntroduced) {
|
|
26264
|
+
default:
|
|
26265
|
+
return "editionIntroduced: enum value expected";
|
|
26266
|
+
case 0:
|
|
26267
|
+
case 900:
|
|
26268
|
+
case 998:
|
|
26269
|
+
case 999:
|
|
26270
|
+
case 1000:
|
|
26271
|
+
case 1001:
|
|
26272
|
+
case 1:
|
|
26273
|
+
case 2:
|
|
26274
|
+
case 99997:
|
|
26275
|
+
case 99998:
|
|
26276
|
+
case 99999:
|
|
26277
|
+
case 2147483647:
|
|
26278
|
+
break;
|
|
26279
|
+
}
|
|
26280
|
+
if (message.editionDeprecated != null && message.hasOwnProperty("editionDeprecated"))
|
|
26281
|
+
switch (message.editionDeprecated) {
|
|
26282
|
+
default:
|
|
26283
|
+
return "editionDeprecated: enum value expected";
|
|
26284
|
+
case 0:
|
|
26285
|
+
case 900:
|
|
26286
|
+
case 998:
|
|
26287
|
+
case 999:
|
|
26288
|
+
case 1000:
|
|
26289
|
+
case 1001:
|
|
26290
|
+
case 1:
|
|
26291
|
+
case 2:
|
|
26292
|
+
case 99997:
|
|
26293
|
+
case 99998:
|
|
26294
|
+
case 99999:
|
|
26295
|
+
case 2147483647:
|
|
26296
|
+
break;
|
|
26297
|
+
}
|
|
26298
|
+
if (message.deprecationWarning != null && message.hasOwnProperty("deprecationWarning"))
|
|
26299
|
+
if (!$util.isString(message.deprecationWarning))
|
|
26300
|
+
return "deprecationWarning: string expected";
|
|
26301
|
+
if (message.editionRemoved != null && message.hasOwnProperty("editionRemoved"))
|
|
26302
|
+
switch (message.editionRemoved) {
|
|
26303
|
+
default:
|
|
26304
|
+
return "editionRemoved: enum value expected";
|
|
26305
|
+
case 0:
|
|
26306
|
+
case 900:
|
|
26307
|
+
case 998:
|
|
26308
|
+
case 999:
|
|
26309
|
+
case 1000:
|
|
26310
|
+
case 1001:
|
|
26311
|
+
case 1:
|
|
26312
|
+
case 2:
|
|
26313
|
+
case 99997:
|
|
26314
|
+
case 99998:
|
|
26315
|
+
case 99999:
|
|
26316
|
+
case 2147483647:
|
|
26317
|
+
break;
|
|
26318
|
+
}
|
|
26319
|
+
return null;
|
|
26320
|
+
};
|
|
26321
|
+
|
|
26322
|
+
/**
|
|
26323
|
+
* Creates a FeatureSupport message from a plain object. Also converts values to their respective internal types.
|
|
26324
|
+
* @function fromObject
|
|
26325
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
26326
|
+
* @static
|
|
26327
|
+
* @param {Object.<string,*>} object Plain object
|
|
26328
|
+
* @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
|
|
26329
|
+
*/
|
|
26330
|
+
FeatureSupport.fromObject = function fromObject(object) {
|
|
26331
|
+
if (object instanceof $root.google.protobuf.FieldOptions.FeatureSupport)
|
|
26332
|
+
return object;
|
|
26333
|
+
var message = new $root.google.protobuf.FieldOptions.FeatureSupport();
|
|
26334
|
+
switch (object.editionIntroduced) {
|
|
26335
|
+
default:
|
|
26336
|
+
if (typeof object.editionIntroduced === "number") {
|
|
26337
|
+
message.editionIntroduced = object.editionIntroduced;
|
|
26338
|
+
break;
|
|
26339
|
+
}
|
|
26340
|
+
break;
|
|
26341
|
+
case "EDITION_UNKNOWN":
|
|
26342
|
+
case 0:
|
|
26343
|
+
message.editionIntroduced = 0;
|
|
26344
|
+
break;
|
|
26345
|
+
case "EDITION_LEGACY":
|
|
26346
|
+
case 900:
|
|
26347
|
+
message.editionIntroduced = 900;
|
|
26348
|
+
break;
|
|
26349
|
+
case "EDITION_PROTO2":
|
|
26350
|
+
case 998:
|
|
26351
|
+
message.editionIntroduced = 998;
|
|
26352
|
+
break;
|
|
26353
|
+
case "EDITION_PROTO3":
|
|
26354
|
+
case 999:
|
|
26355
|
+
message.editionIntroduced = 999;
|
|
26356
|
+
break;
|
|
26357
|
+
case "EDITION_2023":
|
|
26358
|
+
case 1000:
|
|
26359
|
+
message.editionIntroduced = 1000;
|
|
26360
|
+
break;
|
|
26361
|
+
case "EDITION_2024":
|
|
26362
|
+
case 1001:
|
|
26363
|
+
message.editionIntroduced = 1001;
|
|
26364
|
+
break;
|
|
26365
|
+
case "EDITION_1_TEST_ONLY":
|
|
26366
|
+
case 1:
|
|
26367
|
+
message.editionIntroduced = 1;
|
|
26368
|
+
break;
|
|
26369
|
+
case "EDITION_2_TEST_ONLY":
|
|
26370
|
+
case 2:
|
|
26371
|
+
message.editionIntroduced = 2;
|
|
26372
|
+
break;
|
|
26373
|
+
case "EDITION_99997_TEST_ONLY":
|
|
26374
|
+
case 99997:
|
|
26375
|
+
message.editionIntroduced = 99997;
|
|
26376
|
+
break;
|
|
26377
|
+
case "EDITION_99998_TEST_ONLY":
|
|
26378
|
+
case 99998:
|
|
26379
|
+
message.editionIntroduced = 99998;
|
|
26380
|
+
break;
|
|
26381
|
+
case "EDITION_99999_TEST_ONLY":
|
|
26382
|
+
case 99999:
|
|
26383
|
+
message.editionIntroduced = 99999;
|
|
26384
|
+
break;
|
|
26385
|
+
case "EDITION_MAX":
|
|
26386
|
+
case 2147483647:
|
|
26387
|
+
message.editionIntroduced = 2147483647;
|
|
26388
|
+
break;
|
|
26389
|
+
}
|
|
26390
|
+
switch (object.editionDeprecated) {
|
|
26391
|
+
default:
|
|
26392
|
+
if (typeof object.editionDeprecated === "number") {
|
|
26393
|
+
message.editionDeprecated = object.editionDeprecated;
|
|
26394
|
+
break;
|
|
26395
|
+
}
|
|
26396
|
+
break;
|
|
26397
|
+
case "EDITION_UNKNOWN":
|
|
26398
|
+
case 0:
|
|
26399
|
+
message.editionDeprecated = 0;
|
|
26400
|
+
break;
|
|
26401
|
+
case "EDITION_LEGACY":
|
|
26402
|
+
case 900:
|
|
26403
|
+
message.editionDeprecated = 900;
|
|
26404
|
+
break;
|
|
26405
|
+
case "EDITION_PROTO2":
|
|
26406
|
+
case 998:
|
|
26407
|
+
message.editionDeprecated = 998;
|
|
26408
|
+
break;
|
|
26409
|
+
case "EDITION_PROTO3":
|
|
26410
|
+
case 999:
|
|
26411
|
+
message.editionDeprecated = 999;
|
|
26412
|
+
break;
|
|
26413
|
+
case "EDITION_2023":
|
|
26414
|
+
case 1000:
|
|
26415
|
+
message.editionDeprecated = 1000;
|
|
26416
|
+
break;
|
|
26417
|
+
case "EDITION_2024":
|
|
26418
|
+
case 1001:
|
|
26419
|
+
message.editionDeprecated = 1001;
|
|
26420
|
+
break;
|
|
26421
|
+
case "EDITION_1_TEST_ONLY":
|
|
26422
|
+
case 1:
|
|
26423
|
+
message.editionDeprecated = 1;
|
|
26424
|
+
break;
|
|
26425
|
+
case "EDITION_2_TEST_ONLY":
|
|
26426
|
+
case 2:
|
|
26427
|
+
message.editionDeprecated = 2;
|
|
26428
|
+
break;
|
|
26429
|
+
case "EDITION_99997_TEST_ONLY":
|
|
26430
|
+
case 99997:
|
|
26431
|
+
message.editionDeprecated = 99997;
|
|
26432
|
+
break;
|
|
26433
|
+
case "EDITION_99998_TEST_ONLY":
|
|
26434
|
+
case 99998:
|
|
26435
|
+
message.editionDeprecated = 99998;
|
|
26436
|
+
break;
|
|
26437
|
+
case "EDITION_99999_TEST_ONLY":
|
|
26438
|
+
case 99999:
|
|
26439
|
+
message.editionDeprecated = 99999;
|
|
26440
|
+
break;
|
|
26441
|
+
case "EDITION_MAX":
|
|
26442
|
+
case 2147483647:
|
|
26443
|
+
message.editionDeprecated = 2147483647;
|
|
26444
|
+
break;
|
|
26445
|
+
}
|
|
26446
|
+
if (object.deprecationWarning != null)
|
|
26447
|
+
message.deprecationWarning = String(object.deprecationWarning);
|
|
26448
|
+
switch (object.editionRemoved) {
|
|
26449
|
+
default:
|
|
26450
|
+
if (typeof object.editionRemoved === "number") {
|
|
26451
|
+
message.editionRemoved = object.editionRemoved;
|
|
26452
|
+
break;
|
|
26453
|
+
}
|
|
26454
|
+
break;
|
|
26455
|
+
case "EDITION_UNKNOWN":
|
|
26456
|
+
case 0:
|
|
26457
|
+
message.editionRemoved = 0;
|
|
26458
|
+
break;
|
|
26459
|
+
case "EDITION_LEGACY":
|
|
26460
|
+
case 900:
|
|
26461
|
+
message.editionRemoved = 900;
|
|
26462
|
+
break;
|
|
26463
|
+
case "EDITION_PROTO2":
|
|
26464
|
+
case 998:
|
|
26465
|
+
message.editionRemoved = 998;
|
|
26466
|
+
break;
|
|
26467
|
+
case "EDITION_PROTO3":
|
|
26468
|
+
case 999:
|
|
26469
|
+
message.editionRemoved = 999;
|
|
26470
|
+
break;
|
|
26471
|
+
case "EDITION_2023":
|
|
26472
|
+
case 1000:
|
|
26473
|
+
message.editionRemoved = 1000;
|
|
26474
|
+
break;
|
|
26475
|
+
case "EDITION_2024":
|
|
26476
|
+
case 1001:
|
|
26477
|
+
message.editionRemoved = 1001;
|
|
26478
|
+
break;
|
|
26479
|
+
case "EDITION_1_TEST_ONLY":
|
|
26480
|
+
case 1:
|
|
26481
|
+
message.editionRemoved = 1;
|
|
26482
|
+
break;
|
|
26483
|
+
case "EDITION_2_TEST_ONLY":
|
|
26484
|
+
case 2:
|
|
26485
|
+
message.editionRemoved = 2;
|
|
26486
|
+
break;
|
|
26487
|
+
case "EDITION_99997_TEST_ONLY":
|
|
26488
|
+
case 99997:
|
|
26489
|
+
message.editionRemoved = 99997;
|
|
26490
|
+
break;
|
|
26491
|
+
case "EDITION_99998_TEST_ONLY":
|
|
26492
|
+
case 99998:
|
|
26493
|
+
message.editionRemoved = 99998;
|
|
26494
|
+
break;
|
|
26495
|
+
case "EDITION_99999_TEST_ONLY":
|
|
26496
|
+
case 99999:
|
|
26497
|
+
message.editionRemoved = 99999;
|
|
26498
|
+
break;
|
|
26499
|
+
case "EDITION_MAX":
|
|
26500
|
+
case 2147483647:
|
|
26501
|
+
message.editionRemoved = 2147483647;
|
|
26502
|
+
break;
|
|
26503
|
+
}
|
|
26504
|
+
return message;
|
|
26505
|
+
};
|
|
26506
|
+
|
|
26507
|
+
/**
|
|
26508
|
+
* Creates a plain object from a FeatureSupport message. Also converts values to other types if specified.
|
|
26509
|
+
* @function toObject
|
|
26510
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
26511
|
+
* @static
|
|
26512
|
+
* @param {google.protobuf.FieldOptions.FeatureSupport} message FeatureSupport
|
|
26513
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
26514
|
+
* @returns {Object.<string,*>} Plain object
|
|
26515
|
+
*/
|
|
26516
|
+
FeatureSupport.toObject = function toObject(message, options) {
|
|
26517
|
+
if (!options)
|
|
26518
|
+
options = {};
|
|
26519
|
+
var object = {};
|
|
26520
|
+
if (options.defaults) {
|
|
26521
|
+
object.editionIntroduced = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
26522
|
+
object.editionDeprecated = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
26523
|
+
object.deprecationWarning = "";
|
|
26524
|
+
object.editionRemoved = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
26525
|
+
}
|
|
26526
|
+
if (message.editionIntroduced != null && message.hasOwnProperty("editionIntroduced"))
|
|
26527
|
+
object.editionIntroduced = options.enums === String ? $root.google.protobuf.Edition[message.editionIntroduced] === undefined ? message.editionIntroduced : $root.google.protobuf.Edition[message.editionIntroduced] : message.editionIntroduced;
|
|
26528
|
+
if (message.editionDeprecated != null && message.hasOwnProperty("editionDeprecated"))
|
|
26529
|
+
object.editionDeprecated = options.enums === String ? $root.google.protobuf.Edition[message.editionDeprecated] === undefined ? message.editionDeprecated : $root.google.protobuf.Edition[message.editionDeprecated] : message.editionDeprecated;
|
|
26530
|
+
if (message.deprecationWarning != null && message.hasOwnProperty("deprecationWarning"))
|
|
26531
|
+
object.deprecationWarning = message.deprecationWarning;
|
|
26532
|
+
if (message.editionRemoved != null && message.hasOwnProperty("editionRemoved"))
|
|
26533
|
+
object.editionRemoved = options.enums === String ? $root.google.protobuf.Edition[message.editionRemoved] === undefined ? message.editionRemoved : $root.google.protobuf.Edition[message.editionRemoved] : message.editionRemoved;
|
|
26534
|
+
return object;
|
|
26535
|
+
};
|
|
26536
|
+
|
|
26537
|
+
/**
|
|
26538
|
+
* Converts this FeatureSupport to JSON.
|
|
26539
|
+
* @function toJSON
|
|
26540
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
26541
|
+
* @instance
|
|
26542
|
+
* @returns {Object.<string,*>} JSON object
|
|
26543
|
+
*/
|
|
26544
|
+
FeatureSupport.prototype.toJSON = function toJSON() {
|
|
26545
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
26546
|
+
};
|
|
26547
|
+
|
|
26548
|
+
/**
|
|
26549
|
+
* Gets the default type url for FeatureSupport
|
|
26550
|
+
* @function getTypeUrl
|
|
26551
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
26552
|
+
* @static
|
|
26553
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
26554
|
+
* @returns {string} The default type url
|
|
26555
|
+
*/
|
|
26556
|
+
FeatureSupport.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
26557
|
+
if (typeUrlPrefix === undefined) {
|
|
26558
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
26559
|
+
}
|
|
26560
|
+
return typeUrlPrefix + "/google.protobuf.FieldOptions.FeatureSupport";
|
|
26561
|
+
};
|
|
26562
|
+
|
|
26563
|
+
return FeatureSupport;
|
|
26564
|
+
})();
|
|
26565
|
+
|
|
26566
|
+
return FieldOptions;
|
|
26567
|
+
})();
|
|
26568
|
+
|
|
26569
|
+
protobuf.OneofOptions = (function() {
|
|
26570
|
+
|
|
26571
|
+
/**
|
|
26572
|
+
* Properties of an OneofOptions.
|
|
26573
|
+
* @memberof google.protobuf
|
|
25193
26574
|
* @interface IOneofOptions
|
|
25194
26575
|
* @property {google.protobuf.IFeatureSet|null} [features] OneofOptions features
|
|
25195
26576
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] OneofOptions uninterpretedOption
|
|
@@ -25774,6 +27155,7 @@
|
|
|
25774
27155
|
* @property {boolean|null} [deprecated] EnumValueOptions deprecated
|
|
25775
27156
|
* @property {google.protobuf.IFeatureSet|null} [features] EnumValueOptions features
|
|
25776
27157
|
* @property {boolean|null} [debugRedact] EnumValueOptions debugRedact
|
|
27158
|
+
* @property {google.protobuf.FieldOptions.IFeatureSupport|null} [featureSupport] EnumValueOptions featureSupport
|
|
25777
27159
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] EnumValueOptions uninterpretedOption
|
|
25778
27160
|
*/
|
|
25779
27161
|
|
|
@@ -25817,6 +27199,14 @@
|
|
|
25817
27199
|
*/
|
|
25818
27200
|
EnumValueOptions.prototype.debugRedact = false;
|
|
25819
27201
|
|
|
27202
|
+
/**
|
|
27203
|
+
* EnumValueOptions featureSupport.
|
|
27204
|
+
* @member {google.protobuf.FieldOptions.IFeatureSupport|null|undefined} featureSupport
|
|
27205
|
+
* @memberof google.protobuf.EnumValueOptions
|
|
27206
|
+
* @instance
|
|
27207
|
+
*/
|
|
27208
|
+
EnumValueOptions.prototype.featureSupport = null;
|
|
27209
|
+
|
|
25820
27210
|
/**
|
|
25821
27211
|
* EnumValueOptions uninterpretedOption.
|
|
25822
27212
|
* @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
|
|
@@ -25855,6 +27245,8 @@
|
|
|
25855
27245
|
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
25856
27246
|
if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact"))
|
|
25857
27247
|
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.debugRedact);
|
|
27248
|
+
if (message.featureSupport != null && Object.hasOwnProperty.call(message, "featureSupport"))
|
|
27249
|
+
$root.google.protobuf.FieldOptions.FeatureSupport.encode(message.featureSupport, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
25858
27250
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
|
25859
27251
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
|
25860
27252
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
@@ -25906,6 +27298,10 @@
|
|
|
25906
27298
|
message.debugRedact = reader.bool();
|
|
25907
27299
|
break;
|
|
25908
27300
|
}
|
|
27301
|
+
case 4: {
|
|
27302
|
+
message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.decode(reader, reader.uint32());
|
|
27303
|
+
break;
|
|
27304
|
+
}
|
|
25909
27305
|
case 999: {
|
|
25910
27306
|
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
|
|
25911
27307
|
message.uninterpretedOption = [];
|
|
@@ -25958,6 +27354,11 @@
|
|
|
25958
27354
|
if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
|
|
25959
27355
|
if (typeof message.debugRedact !== "boolean")
|
|
25960
27356
|
return "debugRedact: boolean expected";
|
|
27357
|
+
if (message.featureSupport != null && message.hasOwnProperty("featureSupport")) {
|
|
27358
|
+
var error = $root.google.protobuf.FieldOptions.FeatureSupport.verify(message.featureSupport);
|
|
27359
|
+
if (error)
|
|
27360
|
+
return "featureSupport." + error;
|
|
27361
|
+
}
|
|
25961
27362
|
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
|
|
25962
27363
|
if (!Array.isArray(message.uninterpretedOption))
|
|
25963
27364
|
return "uninterpretedOption: array expected";
|
|
@@ -25991,6 +27392,11 @@
|
|
|
25991
27392
|
}
|
|
25992
27393
|
if (object.debugRedact != null)
|
|
25993
27394
|
message.debugRedact = Boolean(object.debugRedact);
|
|
27395
|
+
if (object.featureSupport != null) {
|
|
27396
|
+
if (typeof object.featureSupport !== "object")
|
|
27397
|
+
throw TypeError(".google.protobuf.EnumValueOptions.featureSupport: object expected");
|
|
27398
|
+
message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.fromObject(object.featureSupport);
|
|
27399
|
+
}
|
|
25994
27400
|
if (object.uninterpretedOption) {
|
|
25995
27401
|
if (!Array.isArray(object.uninterpretedOption))
|
|
25996
27402
|
throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected");
|
|
@@ -26023,6 +27429,7 @@
|
|
|
26023
27429
|
object.deprecated = false;
|
|
26024
27430
|
object.features = null;
|
|
26025
27431
|
object.debugRedact = false;
|
|
27432
|
+
object.featureSupport = null;
|
|
26026
27433
|
}
|
|
26027
27434
|
if (message.deprecated != null && message.hasOwnProperty("deprecated"))
|
|
26028
27435
|
object.deprecated = message.deprecated;
|
|
@@ -26030,6 +27437,8 @@
|
|
|
26030
27437
|
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
|
26031
27438
|
if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
|
|
26032
27439
|
object.debugRedact = message.debugRedact;
|
|
27440
|
+
if (message.featureSupport != null && message.hasOwnProperty("featureSupport"))
|
|
27441
|
+
object.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.toObject(message.featureSupport, options);
|
|
26033
27442
|
if (message.uninterpretedOption && message.uninterpretedOption.length) {
|
|
26034
27443
|
object.uninterpretedOption = [];
|
|
26035
27444
|
for (var j = 0; j < message.uninterpretedOption.length; ++j)
|
|
@@ -27497,6 +28906,8 @@
|
|
|
27497
28906
|
* @property {google.protobuf.FeatureSet.Utf8Validation|null} [utf8Validation] FeatureSet utf8Validation
|
|
27498
28907
|
* @property {google.protobuf.FeatureSet.MessageEncoding|null} [messageEncoding] FeatureSet messageEncoding
|
|
27499
28908
|
* @property {google.protobuf.FeatureSet.JsonFormat|null} [jsonFormat] FeatureSet jsonFormat
|
|
28909
|
+
* @property {google.protobuf.FeatureSet.EnforceNamingStyle|null} [enforceNamingStyle] FeatureSet enforceNamingStyle
|
|
28910
|
+
* @property {google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility|null} [defaultSymbolVisibility] FeatureSet defaultSymbolVisibility
|
|
27500
28911
|
*/
|
|
27501
28912
|
|
|
27502
28913
|
/**
|
|
@@ -27562,6 +28973,22 @@
|
|
|
27562
28973
|
*/
|
|
27563
28974
|
FeatureSet.prototype.jsonFormat = 0;
|
|
27564
28975
|
|
|
28976
|
+
/**
|
|
28977
|
+
* FeatureSet enforceNamingStyle.
|
|
28978
|
+
* @member {google.protobuf.FeatureSet.EnforceNamingStyle} enforceNamingStyle
|
|
28979
|
+
* @memberof google.protobuf.FeatureSet
|
|
28980
|
+
* @instance
|
|
28981
|
+
*/
|
|
28982
|
+
FeatureSet.prototype.enforceNamingStyle = 0;
|
|
28983
|
+
|
|
28984
|
+
/**
|
|
28985
|
+
* FeatureSet defaultSymbolVisibility.
|
|
28986
|
+
* @member {google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility} defaultSymbolVisibility
|
|
28987
|
+
* @memberof google.protobuf.FeatureSet
|
|
28988
|
+
* @instance
|
|
28989
|
+
*/
|
|
28990
|
+
FeatureSet.prototype.defaultSymbolVisibility = 0;
|
|
28991
|
+
|
|
27565
28992
|
/**
|
|
27566
28993
|
* Creates a new FeatureSet instance using the specified properties.
|
|
27567
28994
|
* @function create
|
|
@@ -27598,6 +29025,10 @@
|
|
|
27598
29025
|
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.messageEncoding);
|
|
27599
29026
|
if (message.jsonFormat != null && Object.hasOwnProperty.call(message, "jsonFormat"))
|
|
27600
29027
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jsonFormat);
|
|
29028
|
+
if (message.enforceNamingStyle != null && Object.hasOwnProperty.call(message, "enforceNamingStyle"))
|
|
29029
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.enforceNamingStyle);
|
|
29030
|
+
if (message.defaultSymbolVisibility != null && Object.hasOwnProperty.call(message, "defaultSymbolVisibility"))
|
|
29031
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.defaultSymbolVisibility);
|
|
27601
29032
|
return writer;
|
|
27602
29033
|
};
|
|
27603
29034
|
|
|
@@ -27658,6 +29089,14 @@
|
|
|
27658
29089
|
message.jsonFormat = reader.int32();
|
|
27659
29090
|
break;
|
|
27660
29091
|
}
|
|
29092
|
+
case 7: {
|
|
29093
|
+
message.enforceNamingStyle = reader.int32();
|
|
29094
|
+
break;
|
|
29095
|
+
}
|
|
29096
|
+
case 8: {
|
|
29097
|
+
message.defaultSymbolVisibility = reader.int32();
|
|
29098
|
+
break;
|
|
29099
|
+
}
|
|
27661
29100
|
default:
|
|
27662
29101
|
reader.skipType(tag & 7);
|
|
27663
29102
|
break;
|
|
@@ -27748,6 +29187,26 @@
|
|
|
27748
29187
|
case 2:
|
|
27749
29188
|
break;
|
|
27750
29189
|
}
|
|
29190
|
+
if (message.enforceNamingStyle != null && message.hasOwnProperty("enforceNamingStyle"))
|
|
29191
|
+
switch (message.enforceNamingStyle) {
|
|
29192
|
+
default:
|
|
29193
|
+
return "enforceNamingStyle: enum value expected";
|
|
29194
|
+
case 0:
|
|
29195
|
+
case 1:
|
|
29196
|
+
case 2:
|
|
29197
|
+
break;
|
|
29198
|
+
}
|
|
29199
|
+
if (message.defaultSymbolVisibility != null && message.hasOwnProperty("defaultSymbolVisibility"))
|
|
29200
|
+
switch (message.defaultSymbolVisibility) {
|
|
29201
|
+
default:
|
|
29202
|
+
return "defaultSymbolVisibility: enum value expected";
|
|
29203
|
+
case 0:
|
|
29204
|
+
case 1:
|
|
29205
|
+
case 2:
|
|
29206
|
+
case 3:
|
|
29207
|
+
case 4:
|
|
29208
|
+
break;
|
|
29209
|
+
}
|
|
27751
29210
|
return null;
|
|
27752
29211
|
};
|
|
27753
29212
|
|
|
@@ -27887,6 +29346,54 @@
|
|
|
27887
29346
|
message.jsonFormat = 2;
|
|
27888
29347
|
break;
|
|
27889
29348
|
}
|
|
29349
|
+
switch (object.enforceNamingStyle) {
|
|
29350
|
+
default:
|
|
29351
|
+
if (typeof object.enforceNamingStyle === "number") {
|
|
29352
|
+
message.enforceNamingStyle = object.enforceNamingStyle;
|
|
29353
|
+
break;
|
|
29354
|
+
}
|
|
29355
|
+
break;
|
|
29356
|
+
case "ENFORCE_NAMING_STYLE_UNKNOWN":
|
|
29357
|
+
case 0:
|
|
29358
|
+
message.enforceNamingStyle = 0;
|
|
29359
|
+
break;
|
|
29360
|
+
case "STYLE2024":
|
|
29361
|
+
case 1:
|
|
29362
|
+
message.enforceNamingStyle = 1;
|
|
29363
|
+
break;
|
|
29364
|
+
case "STYLE_LEGACY":
|
|
29365
|
+
case 2:
|
|
29366
|
+
message.enforceNamingStyle = 2;
|
|
29367
|
+
break;
|
|
29368
|
+
}
|
|
29369
|
+
switch (object.defaultSymbolVisibility) {
|
|
29370
|
+
default:
|
|
29371
|
+
if (typeof object.defaultSymbolVisibility === "number") {
|
|
29372
|
+
message.defaultSymbolVisibility = object.defaultSymbolVisibility;
|
|
29373
|
+
break;
|
|
29374
|
+
}
|
|
29375
|
+
break;
|
|
29376
|
+
case "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN":
|
|
29377
|
+
case 0:
|
|
29378
|
+
message.defaultSymbolVisibility = 0;
|
|
29379
|
+
break;
|
|
29380
|
+
case "EXPORT_ALL":
|
|
29381
|
+
case 1:
|
|
29382
|
+
message.defaultSymbolVisibility = 1;
|
|
29383
|
+
break;
|
|
29384
|
+
case "EXPORT_TOP_LEVEL":
|
|
29385
|
+
case 2:
|
|
29386
|
+
message.defaultSymbolVisibility = 2;
|
|
29387
|
+
break;
|
|
29388
|
+
case "LOCAL_ALL":
|
|
29389
|
+
case 3:
|
|
29390
|
+
message.defaultSymbolVisibility = 3;
|
|
29391
|
+
break;
|
|
29392
|
+
case "STRICT":
|
|
29393
|
+
case 4:
|
|
29394
|
+
message.defaultSymbolVisibility = 4;
|
|
29395
|
+
break;
|
|
29396
|
+
}
|
|
27890
29397
|
return message;
|
|
27891
29398
|
};
|
|
27892
29399
|
|
|
@@ -27910,6 +29417,8 @@
|
|
|
27910
29417
|
object.utf8Validation = options.enums === String ? "UTF8_VALIDATION_UNKNOWN" : 0;
|
|
27911
29418
|
object.messageEncoding = options.enums === String ? "MESSAGE_ENCODING_UNKNOWN" : 0;
|
|
27912
29419
|
object.jsonFormat = options.enums === String ? "JSON_FORMAT_UNKNOWN" : 0;
|
|
29420
|
+
object.enforceNamingStyle = options.enums === String ? "ENFORCE_NAMING_STYLE_UNKNOWN" : 0;
|
|
29421
|
+
object.defaultSymbolVisibility = options.enums === String ? "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN" : 0;
|
|
27913
29422
|
}
|
|
27914
29423
|
if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence"))
|
|
27915
29424
|
object.fieldPresence = options.enums === String ? $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] === undefined ? message.fieldPresence : $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] : message.fieldPresence;
|
|
@@ -27923,6 +29432,10 @@
|
|
|
27923
29432
|
object.messageEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] === undefined ? message.messageEncoding : $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] : message.messageEncoding;
|
|
27924
29433
|
if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat"))
|
|
27925
29434
|
object.jsonFormat = options.enums === String ? $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] === undefined ? message.jsonFormat : $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] : message.jsonFormat;
|
|
29435
|
+
if (message.enforceNamingStyle != null && message.hasOwnProperty("enforceNamingStyle"))
|
|
29436
|
+
object.enforceNamingStyle = options.enums === String ? $root.google.protobuf.FeatureSet.EnforceNamingStyle[message.enforceNamingStyle] === undefined ? message.enforceNamingStyle : $root.google.protobuf.FeatureSet.EnforceNamingStyle[message.enforceNamingStyle] : message.enforceNamingStyle;
|
|
29437
|
+
if (message.defaultSymbolVisibility != null && message.hasOwnProperty("defaultSymbolVisibility"))
|
|
29438
|
+
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;
|
|
27926
29439
|
return object;
|
|
27927
29440
|
};
|
|
27928
29441
|
|
|
@@ -28050,6 +29563,219 @@
|
|
|
28050
29563
|
return values;
|
|
28051
29564
|
})();
|
|
28052
29565
|
|
|
29566
|
+
/**
|
|
29567
|
+
* EnforceNamingStyle enum.
|
|
29568
|
+
* @name google.protobuf.FeatureSet.EnforceNamingStyle
|
|
29569
|
+
* @enum {number}
|
|
29570
|
+
* @property {number} ENFORCE_NAMING_STYLE_UNKNOWN=0 ENFORCE_NAMING_STYLE_UNKNOWN value
|
|
29571
|
+
* @property {number} STYLE2024=1 STYLE2024 value
|
|
29572
|
+
* @property {number} STYLE_LEGACY=2 STYLE_LEGACY value
|
|
29573
|
+
*/
|
|
29574
|
+
FeatureSet.EnforceNamingStyle = (function() {
|
|
29575
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
29576
|
+
values[valuesById[0] = "ENFORCE_NAMING_STYLE_UNKNOWN"] = 0;
|
|
29577
|
+
values[valuesById[1] = "STYLE2024"] = 1;
|
|
29578
|
+
values[valuesById[2] = "STYLE_LEGACY"] = 2;
|
|
29579
|
+
return values;
|
|
29580
|
+
})();
|
|
29581
|
+
|
|
29582
|
+
FeatureSet.VisibilityFeature = (function() {
|
|
29583
|
+
|
|
29584
|
+
/**
|
|
29585
|
+
* Properties of a VisibilityFeature.
|
|
29586
|
+
* @memberof google.protobuf.FeatureSet
|
|
29587
|
+
* @interface IVisibilityFeature
|
|
29588
|
+
*/
|
|
29589
|
+
|
|
29590
|
+
/**
|
|
29591
|
+
* Constructs a new VisibilityFeature.
|
|
29592
|
+
* @memberof google.protobuf.FeatureSet
|
|
29593
|
+
* @classdesc Represents a VisibilityFeature.
|
|
29594
|
+
* @implements IVisibilityFeature
|
|
29595
|
+
* @constructor
|
|
29596
|
+
* @param {google.protobuf.FeatureSet.IVisibilityFeature=} [properties] Properties to set
|
|
29597
|
+
*/
|
|
29598
|
+
function VisibilityFeature(properties) {
|
|
29599
|
+
if (properties)
|
|
29600
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
29601
|
+
if (properties[keys[i]] != null)
|
|
29602
|
+
this[keys[i]] = properties[keys[i]];
|
|
29603
|
+
}
|
|
29604
|
+
|
|
29605
|
+
/**
|
|
29606
|
+
* Creates a new VisibilityFeature instance using the specified properties.
|
|
29607
|
+
* @function create
|
|
29608
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
29609
|
+
* @static
|
|
29610
|
+
* @param {google.protobuf.FeatureSet.IVisibilityFeature=} [properties] Properties to set
|
|
29611
|
+
* @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature instance
|
|
29612
|
+
*/
|
|
29613
|
+
VisibilityFeature.create = function create(properties) {
|
|
29614
|
+
return new VisibilityFeature(properties);
|
|
29615
|
+
};
|
|
29616
|
+
|
|
29617
|
+
/**
|
|
29618
|
+
* Encodes the specified VisibilityFeature message. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
|
|
29619
|
+
* @function encode
|
|
29620
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
29621
|
+
* @static
|
|
29622
|
+
* @param {google.protobuf.FeatureSet.IVisibilityFeature} message VisibilityFeature message or plain object to encode
|
|
29623
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
29624
|
+
* @returns {$protobuf.Writer} Writer
|
|
29625
|
+
*/
|
|
29626
|
+
VisibilityFeature.encode = function encode(message, writer) {
|
|
29627
|
+
if (!writer)
|
|
29628
|
+
writer = $Writer.create();
|
|
29629
|
+
return writer;
|
|
29630
|
+
};
|
|
29631
|
+
|
|
29632
|
+
/**
|
|
29633
|
+
* Encodes the specified VisibilityFeature message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
|
|
29634
|
+
* @function encodeDelimited
|
|
29635
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
29636
|
+
* @static
|
|
29637
|
+
* @param {google.protobuf.FeatureSet.IVisibilityFeature} message VisibilityFeature message or plain object to encode
|
|
29638
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
29639
|
+
* @returns {$protobuf.Writer} Writer
|
|
29640
|
+
*/
|
|
29641
|
+
VisibilityFeature.encodeDelimited = function encodeDelimited(message, writer) {
|
|
29642
|
+
return this.encode(message, writer).ldelim();
|
|
29643
|
+
};
|
|
29644
|
+
|
|
29645
|
+
/**
|
|
29646
|
+
* Decodes a VisibilityFeature message from the specified reader or buffer.
|
|
29647
|
+
* @function decode
|
|
29648
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
29649
|
+
* @static
|
|
29650
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
29651
|
+
* @param {number} [length] Message length if known beforehand
|
|
29652
|
+
* @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
|
|
29653
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29654
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29655
|
+
*/
|
|
29656
|
+
VisibilityFeature.decode = function decode(reader, length, error) {
|
|
29657
|
+
if (!(reader instanceof $Reader))
|
|
29658
|
+
reader = $Reader.create(reader);
|
|
29659
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSet.VisibilityFeature();
|
|
29660
|
+
while (reader.pos < end) {
|
|
29661
|
+
var tag = reader.uint32();
|
|
29662
|
+
if (tag === error)
|
|
29663
|
+
break;
|
|
29664
|
+
switch (tag >>> 3) {
|
|
29665
|
+
default:
|
|
29666
|
+
reader.skipType(tag & 7);
|
|
29667
|
+
break;
|
|
29668
|
+
}
|
|
29669
|
+
}
|
|
29670
|
+
return message;
|
|
29671
|
+
};
|
|
29672
|
+
|
|
29673
|
+
/**
|
|
29674
|
+
* Decodes a VisibilityFeature message from the specified reader or buffer, length delimited.
|
|
29675
|
+
* @function decodeDelimited
|
|
29676
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
29677
|
+
* @static
|
|
29678
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
29679
|
+
* @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
|
|
29680
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29681
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29682
|
+
*/
|
|
29683
|
+
VisibilityFeature.decodeDelimited = function decodeDelimited(reader) {
|
|
29684
|
+
if (!(reader instanceof $Reader))
|
|
29685
|
+
reader = new $Reader(reader);
|
|
29686
|
+
return this.decode(reader, reader.uint32());
|
|
29687
|
+
};
|
|
29688
|
+
|
|
29689
|
+
/**
|
|
29690
|
+
* Verifies a VisibilityFeature message.
|
|
29691
|
+
* @function verify
|
|
29692
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
29693
|
+
* @static
|
|
29694
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
29695
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
29696
|
+
*/
|
|
29697
|
+
VisibilityFeature.verify = function verify(message) {
|
|
29698
|
+
if (typeof message !== "object" || message === null)
|
|
29699
|
+
return "object expected";
|
|
29700
|
+
return null;
|
|
29701
|
+
};
|
|
29702
|
+
|
|
29703
|
+
/**
|
|
29704
|
+
* Creates a VisibilityFeature message from a plain object. Also converts values to their respective internal types.
|
|
29705
|
+
* @function fromObject
|
|
29706
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
29707
|
+
* @static
|
|
29708
|
+
* @param {Object.<string,*>} object Plain object
|
|
29709
|
+
* @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
|
|
29710
|
+
*/
|
|
29711
|
+
VisibilityFeature.fromObject = function fromObject(object) {
|
|
29712
|
+
if (object instanceof $root.google.protobuf.FeatureSet.VisibilityFeature)
|
|
29713
|
+
return object;
|
|
29714
|
+
return new $root.google.protobuf.FeatureSet.VisibilityFeature();
|
|
29715
|
+
};
|
|
29716
|
+
|
|
29717
|
+
/**
|
|
29718
|
+
* Creates a plain object from a VisibilityFeature message. Also converts values to other types if specified.
|
|
29719
|
+
* @function toObject
|
|
29720
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
29721
|
+
* @static
|
|
29722
|
+
* @param {google.protobuf.FeatureSet.VisibilityFeature} message VisibilityFeature
|
|
29723
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
29724
|
+
* @returns {Object.<string,*>} Plain object
|
|
29725
|
+
*/
|
|
29726
|
+
VisibilityFeature.toObject = function toObject() {
|
|
29727
|
+
return {};
|
|
29728
|
+
};
|
|
29729
|
+
|
|
29730
|
+
/**
|
|
29731
|
+
* Converts this VisibilityFeature to JSON.
|
|
29732
|
+
* @function toJSON
|
|
29733
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
29734
|
+
* @instance
|
|
29735
|
+
* @returns {Object.<string,*>} JSON object
|
|
29736
|
+
*/
|
|
29737
|
+
VisibilityFeature.prototype.toJSON = function toJSON() {
|
|
29738
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
29739
|
+
};
|
|
29740
|
+
|
|
29741
|
+
/**
|
|
29742
|
+
* Gets the default type url for VisibilityFeature
|
|
29743
|
+
* @function getTypeUrl
|
|
29744
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
29745
|
+
* @static
|
|
29746
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
29747
|
+
* @returns {string} The default type url
|
|
29748
|
+
*/
|
|
29749
|
+
VisibilityFeature.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
29750
|
+
if (typeUrlPrefix === undefined) {
|
|
29751
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
29752
|
+
}
|
|
29753
|
+
return typeUrlPrefix + "/google.protobuf.FeatureSet.VisibilityFeature";
|
|
29754
|
+
};
|
|
29755
|
+
|
|
29756
|
+
/**
|
|
29757
|
+
* DefaultSymbolVisibility enum.
|
|
29758
|
+
* @name google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility
|
|
29759
|
+
* @enum {number}
|
|
29760
|
+
* @property {number} DEFAULT_SYMBOL_VISIBILITY_UNKNOWN=0 DEFAULT_SYMBOL_VISIBILITY_UNKNOWN value
|
|
29761
|
+
* @property {number} EXPORT_ALL=1 EXPORT_ALL value
|
|
29762
|
+
* @property {number} EXPORT_TOP_LEVEL=2 EXPORT_TOP_LEVEL value
|
|
29763
|
+
* @property {number} LOCAL_ALL=3 LOCAL_ALL value
|
|
29764
|
+
* @property {number} STRICT=4 STRICT value
|
|
29765
|
+
*/
|
|
29766
|
+
VisibilityFeature.DefaultSymbolVisibility = (function() {
|
|
29767
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
29768
|
+
values[valuesById[0] = "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN"] = 0;
|
|
29769
|
+
values[valuesById[1] = "EXPORT_ALL"] = 1;
|
|
29770
|
+
values[valuesById[2] = "EXPORT_TOP_LEVEL"] = 2;
|
|
29771
|
+
values[valuesById[3] = "LOCAL_ALL"] = 3;
|
|
29772
|
+
values[valuesById[4] = "STRICT"] = 4;
|
|
29773
|
+
return values;
|
|
29774
|
+
})();
|
|
29775
|
+
|
|
29776
|
+
return VisibilityFeature;
|
|
29777
|
+
})();
|
|
29778
|
+
|
|
28053
29779
|
return FeatureSet;
|
|
28054
29780
|
})();
|
|
28055
29781
|
|
|
@@ -28234,6 +29960,7 @@
|
|
|
28234
29960
|
default:
|
|
28235
29961
|
return "minimumEdition: enum value expected";
|
|
28236
29962
|
case 0:
|
|
29963
|
+
case 900:
|
|
28237
29964
|
case 998:
|
|
28238
29965
|
case 999:
|
|
28239
29966
|
case 1000:
|
|
@@ -28251,6 +29978,7 @@
|
|
|
28251
29978
|
default:
|
|
28252
29979
|
return "maximumEdition: enum value expected";
|
|
28253
29980
|
case 0:
|
|
29981
|
+
case 900:
|
|
28254
29982
|
case 998:
|
|
28255
29983
|
case 999:
|
|
28256
29984
|
case 1000:
|
|
@@ -28299,6 +30027,10 @@
|
|
|
28299
30027
|
case 0:
|
|
28300
30028
|
message.minimumEdition = 0;
|
|
28301
30029
|
break;
|
|
30030
|
+
case "EDITION_LEGACY":
|
|
30031
|
+
case 900:
|
|
30032
|
+
message.minimumEdition = 900;
|
|
30033
|
+
break;
|
|
28302
30034
|
case "EDITION_PROTO2":
|
|
28303
30035
|
case 998:
|
|
28304
30036
|
message.minimumEdition = 998;
|
|
@@ -28351,6 +30083,10 @@
|
|
|
28351
30083
|
case 0:
|
|
28352
30084
|
message.maximumEdition = 0;
|
|
28353
30085
|
break;
|
|
30086
|
+
case "EDITION_LEGACY":
|
|
30087
|
+
case 900:
|
|
30088
|
+
message.maximumEdition = 900;
|
|
30089
|
+
break;
|
|
28354
30090
|
case "EDITION_PROTO2":
|
|
28355
30091
|
case 998:
|
|
28356
30092
|
message.maximumEdition = 998;
|
|
@@ -28459,7 +30195,8 @@
|
|
|
28459
30195
|
* @memberof google.protobuf.FeatureSetDefaults
|
|
28460
30196
|
* @interface IFeatureSetEditionDefault
|
|
28461
30197
|
* @property {google.protobuf.Edition|null} [edition] FeatureSetEditionDefault edition
|
|
28462
|
-
* @property {google.protobuf.IFeatureSet|null} [
|
|
30198
|
+
* @property {google.protobuf.IFeatureSet|null} [overridableFeatures] FeatureSetEditionDefault overridableFeatures
|
|
30199
|
+
* @property {google.protobuf.IFeatureSet|null} [fixedFeatures] FeatureSetEditionDefault fixedFeatures
|
|
28463
30200
|
*/
|
|
28464
30201
|
|
|
28465
30202
|
/**
|
|
@@ -28486,12 +30223,20 @@
|
|
|
28486
30223
|
FeatureSetEditionDefault.prototype.edition = 0;
|
|
28487
30224
|
|
|
28488
30225
|
/**
|
|
28489
|
-
* FeatureSetEditionDefault
|
|
28490
|
-
* @member {google.protobuf.IFeatureSet|null|undefined}
|
|
30226
|
+
* FeatureSetEditionDefault overridableFeatures.
|
|
30227
|
+
* @member {google.protobuf.IFeatureSet|null|undefined} overridableFeatures
|
|
30228
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
30229
|
+
* @instance
|
|
30230
|
+
*/
|
|
30231
|
+
FeatureSetEditionDefault.prototype.overridableFeatures = null;
|
|
30232
|
+
|
|
30233
|
+
/**
|
|
30234
|
+
* FeatureSetEditionDefault fixedFeatures.
|
|
30235
|
+
* @member {google.protobuf.IFeatureSet|null|undefined} fixedFeatures
|
|
28491
30236
|
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
28492
30237
|
* @instance
|
|
28493
30238
|
*/
|
|
28494
|
-
FeatureSetEditionDefault.prototype.
|
|
30239
|
+
FeatureSetEditionDefault.prototype.fixedFeatures = null;
|
|
28495
30240
|
|
|
28496
30241
|
/**
|
|
28497
30242
|
* Creates a new FeatureSetEditionDefault instance using the specified properties.
|
|
@@ -28517,10 +30262,12 @@
|
|
|
28517
30262
|
FeatureSetEditionDefault.encode = function encode(message, writer) {
|
|
28518
30263
|
if (!writer)
|
|
28519
30264
|
writer = $Writer.create();
|
|
28520
|
-
if (message.features != null && Object.hasOwnProperty.call(message, "features"))
|
|
28521
|
-
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
28522
30265
|
if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
|
|
28523
30266
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition);
|
|
30267
|
+
if (message.overridableFeatures != null && Object.hasOwnProperty.call(message, "overridableFeatures"))
|
|
30268
|
+
$root.google.protobuf.FeatureSet.encode(message.overridableFeatures, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
30269
|
+
if (message.fixedFeatures != null && Object.hasOwnProperty.call(message, "fixedFeatures"))
|
|
30270
|
+
$root.google.protobuf.FeatureSet.encode(message.fixedFeatures, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
28524
30271
|
return writer;
|
|
28525
30272
|
};
|
|
28526
30273
|
|
|
@@ -28561,8 +30308,12 @@
|
|
|
28561
30308
|
message.edition = reader.int32();
|
|
28562
30309
|
break;
|
|
28563
30310
|
}
|
|
28564
|
-
case
|
|
28565
|
-
message.
|
|
30311
|
+
case 4: {
|
|
30312
|
+
message.overridableFeatures = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
30313
|
+
break;
|
|
30314
|
+
}
|
|
30315
|
+
case 5: {
|
|
30316
|
+
message.fixedFeatures = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
28566
30317
|
break;
|
|
28567
30318
|
}
|
|
28568
30319
|
default:
|
|
@@ -28605,6 +30356,7 @@
|
|
|
28605
30356
|
default:
|
|
28606
30357
|
return "edition: enum value expected";
|
|
28607
30358
|
case 0:
|
|
30359
|
+
case 900:
|
|
28608
30360
|
case 998:
|
|
28609
30361
|
case 999:
|
|
28610
30362
|
case 1000:
|
|
@@ -28617,10 +30369,15 @@
|
|
|
28617
30369
|
case 2147483647:
|
|
28618
30370
|
break;
|
|
28619
30371
|
}
|
|
28620
|
-
if (message.
|
|
28621
|
-
var error = $root.google.protobuf.FeatureSet.verify(message.
|
|
30372
|
+
if (message.overridableFeatures != null && message.hasOwnProperty("overridableFeatures")) {
|
|
30373
|
+
var error = $root.google.protobuf.FeatureSet.verify(message.overridableFeatures);
|
|
30374
|
+
if (error)
|
|
30375
|
+
return "overridableFeatures." + error;
|
|
30376
|
+
}
|
|
30377
|
+
if (message.fixedFeatures != null && message.hasOwnProperty("fixedFeatures")) {
|
|
30378
|
+
var error = $root.google.protobuf.FeatureSet.verify(message.fixedFeatures);
|
|
28622
30379
|
if (error)
|
|
28623
|
-
return "
|
|
30380
|
+
return "fixedFeatures." + error;
|
|
28624
30381
|
}
|
|
28625
30382
|
return null;
|
|
28626
30383
|
};
|
|
@@ -28648,6 +30405,10 @@
|
|
|
28648
30405
|
case 0:
|
|
28649
30406
|
message.edition = 0;
|
|
28650
30407
|
break;
|
|
30408
|
+
case "EDITION_LEGACY":
|
|
30409
|
+
case 900:
|
|
30410
|
+
message.edition = 900;
|
|
30411
|
+
break;
|
|
28651
30412
|
case "EDITION_PROTO2":
|
|
28652
30413
|
case 998:
|
|
28653
30414
|
message.edition = 998;
|
|
@@ -28689,10 +30450,15 @@
|
|
|
28689
30450
|
message.edition = 2147483647;
|
|
28690
30451
|
break;
|
|
28691
30452
|
}
|
|
28692
|
-
if (object.
|
|
28693
|
-
if (typeof object.
|
|
28694
|
-
throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.
|
|
28695
|
-
message.
|
|
30453
|
+
if (object.overridableFeatures != null) {
|
|
30454
|
+
if (typeof object.overridableFeatures !== "object")
|
|
30455
|
+
throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.overridableFeatures: object expected");
|
|
30456
|
+
message.overridableFeatures = $root.google.protobuf.FeatureSet.fromObject(object.overridableFeatures);
|
|
30457
|
+
}
|
|
30458
|
+
if (object.fixedFeatures != null) {
|
|
30459
|
+
if (typeof object.fixedFeatures !== "object")
|
|
30460
|
+
throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fixedFeatures: object expected");
|
|
30461
|
+
message.fixedFeatures = $root.google.protobuf.FeatureSet.fromObject(object.fixedFeatures);
|
|
28696
30462
|
}
|
|
28697
30463
|
return message;
|
|
28698
30464
|
};
|
|
@@ -28711,13 +30477,16 @@
|
|
|
28711
30477
|
options = {};
|
|
28712
30478
|
var object = {};
|
|
28713
30479
|
if (options.defaults) {
|
|
28714
|
-
object.features = null;
|
|
28715
30480
|
object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
30481
|
+
object.overridableFeatures = null;
|
|
30482
|
+
object.fixedFeatures = null;
|
|
28716
30483
|
}
|
|
28717
|
-
if (message.features != null && message.hasOwnProperty("features"))
|
|
28718
|
-
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
|
28719
30484
|
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
28720
30485
|
object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
|
|
30486
|
+
if (message.overridableFeatures != null && message.hasOwnProperty("overridableFeatures"))
|
|
30487
|
+
object.overridableFeatures = $root.google.protobuf.FeatureSet.toObject(message.overridableFeatures, options);
|
|
30488
|
+
if (message.fixedFeatures != null && message.hasOwnProperty("fixedFeatures"))
|
|
30489
|
+
object.fixedFeatures = $root.google.protobuf.FeatureSet.toObject(message.fixedFeatures, options);
|
|
28721
30490
|
return object;
|
|
28722
30491
|
};
|
|
28723
30492
|
|
|
@@ -29932,6 +31701,22 @@
|
|
|
29932
31701
|
return GeneratedCodeInfo;
|
|
29933
31702
|
})();
|
|
29934
31703
|
|
|
31704
|
+
/**
|
|
31705
|
+
* SymbolVisibility enum.
|
|
31706
|
+
* @name google.protobuf.SymbolVisibility
|
|
31707
|
+
* @enum {number}
|
|
31708
|
+
* @property {number} VISIBILITY_UNSET=0 VISIBILITY_UNSET value
|
|
31709
|
+
* @property {number} VISIBILITY_LOCAL=1 VISIBILITY_LOCAL value
|
|
31710
|
+
* @property {number} VISIBILITY_EXPORT=2 VISIBILITY_EXPORT value
|
|
31711
|
+
*/
|
|
31712
|
+
protobuf.SymbolVisibility = (function() {
|
|
31713
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
31714
|
+
values[valuesById[0] = "VISIBILITY_UNSET"] = 0;
|
|
31715
|
+
values[valuesById[1] = "VISIBILITY_LOCAL"] = 1;
|
|
31716
|
+
values[valuesById[2] = "VISIBILITY_EXPORT"] = 2;
|
|
31717
|
+
return values;
|
|
31718
|
+
})();
|
|
31719
|
+
|
|
29935
31720
|
protobuf.Timestamp = (function() {
|
|
29936
31721
|
|
|
29937
31722
|
/**
|