@googlemaps/solar 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/protos/google/maps/solar/v1/solar_service.proto +31 -7
- package/build/protos/protos.d.ts +538 -5
- package/build/protos/protos.js +1901 -58
- package/build/protos/protos.json +217 -23
- package/build/src/v1/solar_client.d.ts +7 -3
- package/build/src/v1/solar_client.js.map +1 -1
- package/package.json +1 -1
package/build/protos/protos.js
CHANGED
|
@@ -209,6 +209,7 @@
|
|
|
209
209
|
* @property {google.type.ILatLng|null} [location] FindClosestBuildingInsightsRequest location
|
|
210
210
|
* @property {google.maps.solar.v1.ImageryQuality|null} [requiredQuality] FindClosestBuildingInsightsRequest requiredQuality
|
|
211
211
|
* @property {boolean|null} [exactQualityRequired] FindClosestBuildingInsightsRequest exactQualityRequired
|
|
212
|
+
* @property {Array.<google.maps.solar.v1.Experiment>|null} [experiments] FindClosestBuildingInsightsRequest experiments
|
|
212
213
|
*/
|
|
213
214
|
|
|
214
215
|
/**
|
|
@@ -220,6 +221,7 @@
|
|
|
220
221
|
* @param {google.maps.solar.v1.IFindClosestBuildingInsightsRequest=} [properties] Properties to set
|
|
221
222
|
*/
|
|
222
223
|
function FindClosestBuildingInsightsRequest(properties) {
|
|
224
|
+
this.experiments = [];
|
|
223
225
|
if (properties)
|
|
224
226
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
225
227
|
if (properties[keys[i]] != null)
|
|
@@ -250,6 +252,14 @@
|
|
|
250
252
|
*/
|
|
251
253
|
FindClosestBuildingInsightsRequest.prototype.exactQualityRequired = false;
|
|
252
254
|
|
|
255
|
+
/**
|
|
256
|
+
* FindClosestBuildingInsightsRequest experiments.
|
|
257
|
+
* @member {Array.<google.maps.solar.v1.Experiment>} experiments
|
|
258
|
+
* @memberof google.maps.solar.v1.FindClosestBuildingInsightsRequest
|
|
259
|
+
* @instance
|
|
260
|
+
*/
|
|
261
|
+
FindClosestBuildingInsightsRequest.prototype.experiments = $util.emptyArray;
|
|
262
|
+
|
|
253
263
|
/**
|
|
254
264
|
* Creates a new FindClosestBuildingInsightsRequest instance using the specified properties.
|
|
255
265
|
* @function create
|
|
@@ -280,6 +290,12 @@
|
|
|
280
290
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.requiredQuality);
|
|
281
291
|
if (message.exactQualityRequired != null && Object.hasOwnProperty.call(message, "exactQualityRequired"))
|
|
282
292
|
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.exactQualityRequired);
|
|
293
|
+
if (message.experiments != null && message.experiments.length) {
|
|
294
|
+
writer.uint32(/* id 5, wireType 2 =*/42).fork();
|
|
295
|
+
for (var i = 0; i < message.experiments.length; ++i)
|
|
296
|
+
writer.int32(message.experiments[i]);
|
|
297
|
+
writer.ldelim();
|
|
298
|
+
}
|
|
283
299
|
return writer;
|
|
284
300
|
};
|
|
285
301
|
|
|
@@ -328,6 +344,17 @@
|
|
|
328
344
|
message.exactQualityRequired = reader.bool();
|
|
329
345
|
break;
|
|
330
346
|
}
|
|
347
|
+
case 5: {
|
|
348
|
+
if (!(message.experiments && message.experiments.length))
|
|
349
|
+
message.experiments = [];
|
|
350
|
+
if ((tag & 7) === 2) {
|
|
351
|
+
var end2 = reader.uint32() + reader.pos;
|
|
352
|
+
while (reader.pos < end2)
|
|
353
|
+
message.experiments.push(reader.int32());
|
|
354
|
+
} else
|
|
355
|
+
message.experiments.push(reader.int32());
|
|
356
|
+
break;
|
|
357
|
+
}
|
|
331
358
|
default:
|
|
332
359
|
reader.skipType(tag & 7);
|
|
333
360
|
break;
|
|
@@ -376,11 +403,24 @@
|
|
|
376
403
|
case 1:
|
|
377
404
|
case 2:
|
|
378
405
|
case 3:
|
|
406
|
+
case 4:
|
|
379
407
|
break;
|
|
380
408
|
}
|
|
381
409
|
if (message.exactQualityRequired != null && message.hasOwnProperty("exactQualityRequired"))
|
|
382
410
|
if (typeof message.exactQualityRequired !== "boolean")
|
|
383
411
|
return "exactQualityRequired: boolean expected";
|
|
412
|
+
if (message.experiments != null && message.hasOwnProperty("experiments")) {
|
|
413
|
+
if (!Array.isArray(message.experiments))
|
|
414
|
+
return "experiments: array expected";
|
|
415
|
+
for (var i = 0; i < message.experiments.length; ++i)
|
|
416
|
+
switch (message.experiments[i]) {
|
|
417
|
+
default:
|
|
418
|
+
return "experiments: enum value[] expected";
|
|
419
|
+
case 0:
|
|
420
|
+
case 1:
|
|
421
|
+
break;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
384
424
|
return null;
|
|
385
425
|
};
|
|
386
426
|
|
|
@@ -424,9 +464,34 @@
|
|
|
424
464
|
case 3:
|
|
425
465
|
message.requiredQuality = 3;
|
|
426
466
|
break;
|
|
467
|
+
case "BASE":
|
|
468
|
+
case 4:
|
|
469
|
+
message.requiredQuality = 4;
|
|
470
|
+
break;
|
|
427
471
|
}
|
|
428
472
|
if (object.exactQualityRequired != null)
|
|
429
473
|
message.exactQualityRequired = Boolean(object.exactQualityRequired);
|
|
474
|
+
if (object.experiments) {
|
|
475
|
+
if (!Array.isArray(object.experiments))
|
|
476
|
+
throw TypeError(".google.maps.solar.v1.FindClosestBuildingInsightsRequest.experiments: array expected");
|
|
477
|
+
message.experiments = [];
|
|
478
|
+
for (var i = 0; i < object.experiments.length; ++i)
|
|
479
|
+
switch (object.experiments[i]) {
|
|
480
|
+
default:
|
|
481
|
+
if (typeof object.experiments[i] === "number") {
|
|
482
|
+
message.experiments[i] = object.experiments[i];
|
|
483
|
+
break;
|
|
484
|
+
}
|
|
485
|
+
case "EXPERIMENT_UNSPECIFIED":
|
|
486
|
+
case 0:
|
|
487
|
+
message.experiments[i] = 0;
|
|
488
|
+
break;
|
|
489
|
+
case "EXPANDED_COVERAGE":
|
|
490
|
+
case 1:
|
|
491
|
+
message.experiments[i] = 1;
|
|
492
|
+
break;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
430
495
|
return message;
|
|
431
496
|
};
|
|
432
497
|
|
|
@@ -443,6 +508,8 @@
|
|
|
443
508
|
if (!options)
|
|
444
509
|
options = {};
|
|
445
510
|
var object = {};
|
|
511
|
+
if (options.arrays || options.defaults)
|
|
512
|
+
object.experiments = [];
|
|
446
513
|
if (options.defaults) {
|
|
447
514
|
object.location = null;
|
|
448
515
|
object.requiredQuality = options.enums === String ? "IMAGERY_QUALITY_UNSPECIFIED" : 0;
|
|
@@ -454,6 +521,11 @@
|
|
|
454
521
|
object.requiredQuality = options.enums === String ? $root.google.maps.solar.v1.ImageryQuality[message.requiredQuality] === undefined ? message.requiredQuality : $root.google.maps.solar.v1.ImageryQuality[message.requiredQuality] : message.requiredQuality;
|
|
455
522
|
if (message.exactQualityRequired != null && message.hasOwnProperty("exactQualityRequired"))
|
|
456
523
|
object.exactQualityRequired = message.exactQualityRequired;
|
|
524
|
+
if (message.experiments && message.experiments.length) {
|
|
525
|
+
object.experiments = [];
|
|
526
|
+
for (var j = 0; j < message.experiments.length; ++j)
|
|
527
|
+
object.experiments[j] = options.enums === String ? $root.google.maps.solar.v1.Experiment[message.experiments[j]] === undefined ? message.experiments[j] : $root.google.maps.solar.v1.Experiment[message.experiments[j]] : message.experiments[j];
|
|
528
|
+
}
|
|
457
529
|
return object;
|
|
458
530
|
};
|
|
459
531
|
|
|
@@ -1056,6 +1128,7 @@
|
|
|
1056
1128
|
case 1:
|
|
1057
1129
|
case 2:
|
|
1058
1130
|
case 3:
|
|
1131
|
+
case 4:
|
|
1059
1132
|
break;
|
|
1060
1133
|
}
|
|
1061
1134
|
return null;
|
|
@@ -1131,6 +1204,10 @@
|
|
|
1131
1204
|
case 3:
|
|
1132
1205
|
message.imageryQuality = 3;
|
|
1133
1206
|
break;
|
|
1207
|
+
case "BASE":
|
|
1208
|
+
case 4:
|
|
1209
|
+
message.imageryQuality = 4;
|
|
1210
|
+
break;
|
|
1134
1211
|
}
|
|
1135
1212
|
return message;
|
|
1136
1213
|
};
|
|
@@ -5525,6 +5602,7 @@
|
|
|
5525
5602
|
* @property {google.maps.solar.v1.ImageryQuality|null} [requiredQuality] GetDataLayersRequest requiredQuality
|
|
5526
5603
|
* @property {number|null} [pixelSizeMeters] GetDataLayersRequest pixelSizeMeters
|
|
5527
5604
|
* @property {boolean|null} [exactQualityRequired] GetDataLayersRequest exactQualityRequired
|
|
5605
|
+
* @property {Array.<google.maps.solar.v1.Experiment>|null} [experiments] GetDataLayersRequest experiments
|
|
5528
5606
|
*/
|
|
5529
5607
|
|
|
5530
5608
|
/**
|
|
@@ -5536,6 +5614,7 @@
|
|
|
5536
5614
|
* @param {google.maps.solar.v1.IGetDataLayersRequest=} [properties] Properties to set
|
|
5537
5615
|
*/
|
|
5538
5616
|
function GetDataLayersRequest(properties) {
|
|
5617
|
+
this.experiments = [];
|
|
5539
5618
|
if (properties)
|
|
5540
5619
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5541
5620
|
if (properties[keys[i]] != null)
|
|
@@ -5590,6 +5669,14 @@
|
|
|
5590
5669
|
*/
|
|
5591
5670
|
GetDataLayersRequest.prototype.exactQualityRequired = false;
|
|
5592
5671
|
|
|
5672
|
+
/**
|
|
5673
|
+
* GetDataLayersRequest experiments.
|
|
5674
|
+
* @member {Array.<google.maps.solar.v1.Experiment>} experiments
|
|
5675
|
+
* @memberof google.maps.solar.v1.GetDataLayersRequest
|
|
5676
|
+
* @instance
|
|
5677
|
+
*/
|
|
5678
|
+
GetDataLayersRequest.prototype.experiments = $util.emptyArray;
|
|
5679
|
+
|
|
5593
5680
|
/**
|
|
5594
5681
|
* Creates a new GetDataLayersRequest instance using the specified properties.
|
|
5595
5682
|
* @function create
|
|
@@ -5626,6 +5713,12 @@
|
|
|
5626
5713
|
writer.uint32(/* id 6, wireType 5 =*/53).float(message.pixelSizeMeters);
|
|
5627
5714
|
if (message.exactQualityRequired != null && Object.hasOwnProperty.call(message, "exactQualityRequired"))
|
|
5628
5715
|
writer.uint32(/* id 7, wireType 0 =*/56).bool(message.exactQualityRequired);
|
|
5716
|
+
if (message.experiments != null && message.experiments.length) {
|
|
5717
|
+
writer.uint32(/* id 8, wireType 2 =*/66).fork();
|
|
5718
|
+
for (var i = 0; i < message.experiments.length; ++i)
|
|
5719
|
+
writer.int32(message.experiments[i]);
|
|
5720
|
+
writer.ldelim();
|
|
5721
|
+
}
|
|
5629
5722
|
return writer;
|
|
5630
5723
|
};
|
|
5631
5724
|
|
|
@@ -5686,6 +5779,17 @@
|
|
|
5686
5779
|
message.exactQualityRequired = reader.bool();
|
|
5687
5780
|
break;
|
|
5688
5781
|
}
|
|
5782
|
+
case 8: {
|
|
5783
|
+
if (!(message.experiments && message.experiments.length))
|
|
5784
|
+
message.experiments = [];
|
|
5785
|
+
if ((tag & 7) === 2) {
|
|
5786
|
+
var end2 = reader.uint32() + reader.pos;
|
|
5787
|
+
while (reader.pos < end2)
|
|
5788
|
+
message.experiments.push(reader.int32());
|
|
5789
|
+
} else
|
|
5790
|
+
message.experiments.push(reader.int32());
|
|
5791
|
+
break;
|
|
5792
|
+
}
|
|
5689
5793
|
default:
|
|
5690
5794
|
reader.skipType(tag & 7);
|
|
5691
5795
|
break;
|
|
@@ -5749,6 +5853,7 @@
|
|
|
5749
5853
|
case 1:
|
|
5750
5854
|
case 2:
|
|
5751
5855
|
case 3:
|
|
5856
|
+
case 4:
|
|
5752
5857
|
break;
|
|
5753
5858
|
}
|
|
5754
5859
|
if (message.pixelSizeMeters != null && message.hasOwnProperty("pixelSizeMeters"))
|
|
@@ -5757,6 +5862,18 @@
|
|
|
5757
5862
|
if (message.exactQualityRequired != null && message.hasOwnProperty("exactQualityRequired"))
|
|
5758
5863
|
if (typeof message.exactQualityRequired !== "boolean")
|
|
5759
5864
|
return "exactQualityRequired: boolean expected";
|
|
5865
|
+
if (message.experiments != null && message.hasOwnProperty("experiments")) {
|
|
5866
|
+
if (!Array.isArray(message.experiments))
|
|
5867
|
+
return "experiments: array expected";
|
|
5868
|
+
for (var i = 0; i < message.experiments.length; ++i)
|
|
5869
|
+
switch (message.experiments[i]) {
|
|
5870
|
+
default:
|
|
5871
|
+
return "experiments: enum value[] expected";
|
|
5872
|
+
case 0:
|
|
5873
|
+
case 1:
|
|
5874
|
+
break;
|
|
5875
|
+
}
|
|
5876
|
+
}
|
|
5760
5877
|
return null;
|
|
5761
5878
|
};
|
|
5762
5879
|
|
|
@@ -5834,11 +5951,36 @@
|
|
|
5834
5951
|
case 3:
|
|
5835
5952
|
message.requiredQuality = 3;
|
|
5836
5953
|
break;
|
|
5954
|
+
case "BASE":
|
|
5955
|
+
case 4:
|
|
5956
|
+
message.requiredQuality = 4;
|
|
5957
|
+
break;
|
|
5837
5958
|
}
|
|
5838
5959
|
if (object.pixelSizeMeters != null)
|
|
5839
5960
|
message.pixelSizeMeters = Number(object.pixelSizeMeters);
|
|
5840
5961
|
if (object.exactQualityRequired != null)
|
|
5841
5962
|
message.exactQualityRequired = Boolean(object.exactQualityRequired);
|
|
5963
|
+
if (object.experiments) {
|
|
5964
|
+
if (!Array.isArray(object.experiments))
|
|
5965
|
+
throw TypeError(".google.maps.solar.v1.GetDataLayersRequest.experiments: array expected");
|
|
5966
|
+
message.experiments = [];
|
|
5967
|
+
for (var i = 0; i < object.experiments.length; ++i)
|
|
5968
|
+
switch (object.experiments[i]) {
|
|
5969
|
+
default:
|
|
5970
|
+
if (typeof object.experiments[i] === "number") {
|
|
5971
|
+
message.experiments[i] = object.experiments[i];
|
|
5972
|
+
break;
|
|
5973
|
+
}
|
|
5974
|
+
case "EXPERIMENT_UNSPECIFIED":
|
|
5975
|
+
case 0:
|
|
5976
|
+
message.experiments[i] = 0;
|
|
5977
|
+
break;
|
|
5978
|
+
case "EXPANDED_COVERAGE":
|
|
5979
|
+
case 1:
|
|
5980
|
+
message.experiments[i] = 1;
|
|
5981
|
+
break;
|
|
5982
|
+
}
|
|
5983
|
+
}
|
|
5842
5984
|
return message;
|
|
5843
5985
|
};
|
|
5844
5986
|
|
|
@@ -5855,6 +5997,8 @@
|
|
|
5855
5997
|
if (!options)
|
|
5856
5998
|
options = {};
|
|
5857
5999
|
var object = {};
|
|
6000
|
+
if (options.arrays || options.defaults)
|
|
6001
|
+
object.experiments = [];
|
|
5858
6002
|
if (options.defaults) {
|
|
5859
6003
|
object.location = null;
|
|
5860
6004
|
object.radiusMeters = 0;
|
|
@@ -5875,6 +6019,11 @@
|
|
|
5875
6019
|
object.pixelSizeMeters = options.json && !isFinite(message.pixelSizeMeters) ? String(message.pixelSizeMeters) : message.pixelSizeMeters;
|
|
5876
6020
|
if (message.exactQualityRequired != null && message.hasOwnProperty("exactQualityRequired"))
|
|
5877
6021
|
object.exactQualityRequired = message.exactQualityRequired;
|
|
6022
|
+
if (message.experiments && message.experiments.length) {
|
|
6023
|
+
object.experiments = [];
|
|
6024
|
+
for (var j = 0; j < message.experiments.length; ++j)
|
|
6025
|
+
object.experiments[j] = options.enums === String ? $root.google.maps.solar.v1.Experiment[message.experiments[j]] === undefined ? message.experiments[j] : $root.google.maps.solar.v1.Experiment[message.experiments[j]] : message.experiments[j];
|
|
6026
|
+
}
|
|
5878
6027
|
return object;
|
|
5879
6028
|
};
|
|
5880
6029
|
|
|
@@ -6204,6 +6353,7 @@
|
|
|
6204
6353
|
case 1:
|
|
6205
6354
|
case 2:
|
|
6206
6355
|
case 3:
|
|
6356
|
+
case 4:
|
|
6207
6357
|
break;
|
|
6208
6358
|
}
|
|
6209
6359
|
return null;
|
|
@@ -6271,6 +6421,10 @@
|
|
|
6271
6421
|
case 3:
|
|
6272
6422
|
message.imageryQuality = 3;
|
|
6273
6423
|
break;
|
|
6424
|
+
case "BASE":
|
|
6425
|
+
case 4:
|
|
6426
|
+
message.imageryQuality = 4;
|
|
6427
|
+
break;
|
|
6274
6428
|
}
|
|
6275
6429
|
return message;
|
|
6276
6430
|
};
|
|
@@ -6588,6 +6742,7 @@
|
|
|
6588
6742
|
* @property {number} HIGH=1 HIGH value
|
|
6589
6743
|
* @property {number} MEDIUM=2 MEDIUM value
|
|
6590
6744
|
* @property {number} LOW=3 LOW value
|
|
6745
|
+
* @property {number} BASE=4 BASE value
|
|
6591
6746
|
*/
|
|
6592
6747
|
v1.ImageryQuality = (function() {
|
|
6593
6748
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -6595,6 +6750,7 @@
|
|
|
6595
6750
|
values[valuesById[1] = "HIGH"] = 1;
|
|
6596
6751
|
values[valuesById[2] = "MEDIUM"] = 2;
|
|
6597
6752
|
values[valuesById[3] = "LOW"] = 3;
|
|
6753
|
+
values[valuesById[4] = "BASE"] = 4;
|
|
6598
6754
|
return values;
|
|
6599
6755
|
})();
|
|
6600
6756
|
|
|
@@ -6614,6 +6770,20 @@
|
|
|
6614
6770
|
return values;
|
|
6615
6771
|
})();
|
|
6616
6772
|
|
|
6773
|
+
/**
|
|
6774
|
+
* Experiment enum.
|
|
6775
|
+
* @name google.maps.solar.v1.Experiment
|
|
6776
|
+
* @enum {number}
|
|
6777
|
+
* @property {number} EXPERIMENT_UNSPECIFIED=0 EXPERIMENT_UNSPECIFIED value
|
|
6778
|
+
* @property {number} EXPANDED_COVERAGE=1 EXPANDED_COVERAGE value
|
|
6779
|
+
*/
|
|
6780
|
+
v1.Experiment = (function() {
|
|
6781
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
6782
|
+
values[valuesById[0] = "EXPERIMENT_UNSPECIFIED"] = 0;
|
|
6783
|
+
values[valuesById[1] = "EXPANDED_COVERAGE"] = 1;
|
|
6784
|
+
return values;
|
|
6785
|
+
})();
|
|
6786
|
+
|
|
6617
6787
|
return v1;
|
|
6618
6788
|
})();
|
|
6619
6789
|
|
|
@@ -7609,6 +7779,7 @@
|
|
|
7609
7779
|
* @interface ICommonLanguageSettings
|
|
7610
7780
|
* @property {string|null} [referenceDocsUri] CommonLanguageSettings referenceDocsUri
|
|
7611
7781
|
* @property {Array.<google.api.ClientLibraryDestination>|null} [destinations] CommonLanguageSettings destinations
|
|
7782
|
+
* @property {google.api.ISelectiveGapicGeneration|null} [selectiveGapicGeneration] CommonLanguageSettings selectiveGapicGeneration
|
|
7612
7783
|
*/
|
|
7613
7784
|
|
|
7614
7785
|
/**
|
|
@@ -7643,6 +7814,14 @@
|
|
|
7643
7814
|
*/
|
|
7644
7815
|
CommonLanguageSettings.prototype.destinations = $util.emptyArray;
|
|
7645
7816
|
|
|
7817
|
+
/**
|
|
7818
|
+
* CommonLanguageSettings selectiveGapicGeneration.
|
|
7819
|
+
* @member {google.api.ISelectiveGapicGeneration|null|undefined} selectiveGapicGeneration
|
|
7820
|
+
* @memberof google.api.CommonLanguageSettings
|
|
7821
|
+
* @instance
|
|
7822
|
+
*/
|
|
7823
|
+
CommonLanguageSettings.prototype.selectiveGapicGeneration = null;
|
|
7824
|
+
|
|
7646
7825
|
/**
|
|
7647
7826
|
* Creates a new CommonLanguageSettings instance using the specified properties.
|
|
7648
7827
|
* @function create
|
|
@@ -7675,6 +7854,8 @@
|
|
|
7675
7854
|
writer.int32(message.destinations[i]);
|
|
7676
7855
|
writer.ldelim();
|
|
7677
7856
|
}
|
|
7857
|
+
if (message.selectiveGapicGeneration != null && Object.hasOwnProperty.call(message, "selectiveGapicGeneration"))
|
|
7858
|
+
$root.google.api.SelectiveGapicGeneration.encode(message.selectiveGapicGeneration, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
7678
7859
|
return writer;
|
|
7679
7860
|
};
|
|
7680
7861
|
|
|
@@ -7726,6 +7907,10 @@
|
|
|
7726
7907
|
message.destinations.push(reader.int32());
|
|
7727
7908
|
break;
|
|
7728
7909
|
}
|
|
7910
|
+
case 3: {
|
|
7911
|
+
message.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.decode(reader, reader.uint32());
|
|
7912
|
+
break;
|
|
7913
|
+
}
|
|
7729
7914
|
default:
|
|
7730
7915
|
reader.skipType(tag & 7);
|
|
7731
7916
|
break;
|
|
@@ -7777,6 +7962,11 @@
|
|
|
7777
7962
|
break;
|
|
7778
7963
|
}
|
|
7779
7964
|
}
|
|
7965
|
+
if (message.selectiveGapicGeneration != null && message.hasOwnProperty("selectiveGapicGeneration")) {
|
|
7966
|
+
var error = $root.google.api.SelectiveGapicGeneration.verify(message.selectiveGapicGeneration);
|
|
7967
|
+
if (error)
|
|
7968
|
+
return "selectiveGapicGeneration." + error;
|
|
7969
|
+
}
|
|
7780
7970
|
return null;
|
|
7781
7971
|
};
|
|
7782
7972
|
|
|
@@ -7819,6 +8009,11 @@
|
|
|
7819
8009
|
break;
|
|
7820
8010
|
}
|
|
7821
8011
|
}
|
|
8012
|
+
if (object.selectiveGapicGeneration != null) {
|
|
8013
|
+
if (typeof object.selectiveGapicGeneration !== "object")
|
|
8014
|
+
throw TypeError(".google.api.CommonLanguageSettings.selectiveGapicGeneration: object expected");
|
|
8015
|
+
message.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.fromObject(object.selectiveGapicGeneration);
|
|
8016
|
+
}
|
|
7822
8017
|
return message;
|
|
7823
8018
|
};
|
|
7824
8019
|
|
|
@@ -7837,8 +8032,10 @@
|
|
|
7837
8032
|
var object = {};
|
|
7838
8033
|
if (options.arrays || options.defaults)
|
|
7839
8034
|
object.destinations = [];
|
|
7840
|
-
if (options.defaults)
|
|
8035
|
+
if (options.defaults) {
|
|
7841
8036
|
object.referenceDocsUri = "";
|
|
8037
|
+
object.selectiveGapicGeneration = null;
|
|
8038
|
+
}
|
|
7842
8039
|
if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
|
|
7843
8040
|
object.referenceDocsUri = message.referenceDocsUri;
|
|
7844
8041
|
if (message.destinations && message.destinations.length) {
|
|
@@ -7846,6 +8043,8 @@
|
|
|
7846
8043
|
for (var j = 0; j < message.destinations.length; ++j)
|
|
7847
8044
|
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];
|
|
7848
8045
|
}
|
|
8046
|
+
if (message.selectiveGapicGeneration != null && message.hasOwnProperty("selectiveGapicGeneration"))
|
|
8047
|
+
object.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.toObject(message.selectiveGapicGeneration, options);
|
|
7849
8048
|
return object;
|
|
7850
8049
|
};
|
|
7851
8050
|
|
|
@@ -9668,6 +9867,7 @@
|
|
|
9668
9867
|
* @memberof google.api
|
|
9669
9868
|
* @interface IPythonSettings
|
|
9670
9869
|
* @property {google.api.ICommonLanguageSettings|null} [common] PythonSettings common
|
|
9870
|
+
* @property {google.api.PythonSettings.IExperimentalFeatures|null} [experimentalFeatures] PythonSettings experimentalFeatures
|
|
9671
9871
|
*/
|
|
9672
9872
|
|
|
9673
9873
|
/**
|
|
@@ -9693,6 +9893,14 @@
|
|
|
9693
9893
|
*/
|
|
9694
9894
|
PythonSettings.prototype.common = null;
|
|
9695
9895
|
|
|
9896
|
+
/**
|
|
9897
|
+
* PythonSettings experimentalFeatures.
|
|
9898
|
+
* @member {google.api.PythonSettings.IExperimentalFeatures|null|undefined} experimentalFeatures
|
|
9899
|
+
* @memberof google.api.PythonSettings
|
|
9900
|
+
* @instance
|
|
9901
|
+
*/
|
|
9902
|
+
PythonSettings.prototype.experimentalFeatures = null;
|
|
9903
|
+
|
|
9696
9904
|
/**
|
|
9697
9905
|
* Creates a new PythonSettings instance using the specified properties.
|
|
9698
9906
|
* @function create
|
|
@@ -9719,6 +9927,8 @@
|
|
|
9719
9927
|
writer = $Writer.create();
|
|
9720
9928
|
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
|
|
9721
9929
|
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
9930
|
+
if (message.experimentalFeatures != null && Object.hasOwnProperty.call(message, "experimentalFeatures"))
|
|
9931
|
+
$root.google.api.PythonSettings.ExperimentalFeatures.encode(message.experimentalFeatures, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
9722
9932
|
return writer;
|
|
9723
9933
|
};
|
|
9724
9934
|
|
|
@@ -9759,6 +9969,10 @@
|
|
|
9759
9969
|
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
|
9760
9970
|
break;
|
|
9761
9971
|
}
|
|
9972
|
+
case 2: {
|
|
9973
|
+
message.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.decode(reader, reader.uint32());
|
|
9974
|
+
break;
|
|
9975
|
+
}
|
|
9762
9976
|
default:
|
|
9763
9977
|
reader.skipType(tag & 7);
|
|
9764
9978
|
break;
|
|
@@ -9799,6 +10013,11 @@
|
|
|
9799
10013
|
if (error)
|
|
9800
10014
|
return "common." + error;
|
|
9801
10015
|
}
|
|
10016
|
+
if (message.experimentalFeatures != null && message.hasOwnProperty("experimentalFeatures")) {
|
|
10017
|
+
var error = $root.google.api.PythonSettings.ExperimentalFeatures.verify(message.experimentalFeatures);
|
|
10018
|
+
if (error)
|
|
10019
|
+
return "experimentalFeatures." + error;
|
|
10020
|
+
}
|
|
9802
10021
|
return null;
|
|
9803
10022
|
};
|
|
9804
10023
|
|
|
@@ -9819,6 +10038,11 @@
|
|
|
9819
10038
|
throw TypeError(".google.api.PythonSettings.common: object expected");
|
|
9820
10039
|
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
|
|
9821
10040
|
}
|
|
10041
|
+
if (object.experimentalFeatures != null) {
|
|
10042
|
+
if (typeof object.experimentalFeatures !== "object")
|
|
10043
|
+
throw TypeError(".google.api.PythonSettings.experimentalFeatures: object expected");
|
|
10044
|
+
message.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.fromObject(object.experimentalFeatures);
|
|
10045
|
+
}
|
|
9822
10046
|
return message;
|
|
9823
10047
|
};
|
|
9824
10048
|
|
|
@@ -9835,10 +10059,14 @@
|
|
|
9835
10059
|
if (!options)
|
|
9836
10060
|
options = {};
|
|
9837
10061
|
var object = {};
|
|
9838
|
-
if (options.defaults)
|
|
10062
|
+
if (options.defaults) {
|
|
9839
10063
|
object.common = null;
|
|
10064
|
+
object.experimentalFeatures = null;
|
|
10065
|
+
}
|
|
9840
10066
|
if (message.common != null && message.hasOwnProperty("common"))
|
|
9841
10067
|
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
|
|
10068
|
+
if (message.experimentalFeatures != null && message.hasOwnProperty("experimentalFeatures"))
|
|
10069
|
+
object.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.toObject(message.experimentalFeatures, options);
|
|
9842
10070
|
return object;
|
|
9843
10071
|
};
|
|
9844
10072
|
|
|
@@ -9868,6 +10096,258 @@
|
|
|
9868
10096
|
return typeUrlPrefix + "/google.api.PythonSettings";
|
|
9869
10097
|
};
|
|
9870
10098
|
|
|
10099
|
+
PythonSettings.ExperimentalFeatures = (function() {
|
|
10100
|
+
|
|
10101
|
+
/**
|
|
10102
|
+
* Properties of an ExperimentalFeatures.
|
|
10103
|
+
* @memberof google.api.PythonSettings
|
|
10104
|
+
* @interface IExperimentalFeatures
|
|
10105
|
+
* @property {boolean|null} [restAsyncIoEnabled] ExperimentalFeatures restAsyncIoEnabled
|
|
10106
|
+
* @property {boolean|null} [protobufPythonicTypesEnabled] ExperimentalFeatures protobufPythonicTypesEnabled
|
|
10107
|
+
* @property {boolean|null} [unversionedPackageDisabled] ExperimentalFeatures unversionedPackageDisabled
|
|
10108
|
+
*/
|
|
10109
|
+
|
|
10110
|
+
/**
|
|
10111
|
+
* Constructs a new ExperimentalFeatures.
|
|
10112
|
+
* @memberof google.api.PythonSettings
|
|
10113
|
+
* @classdesc Represents an ExperimentalFeatures.
|
|
10114
|
+
* @implements IExperimentalFeatures
|
|
10115
|
+
* @constructor
|
|
10116
|
+
* @param {google.api.PythonSettings.IExperimentalFeatures=} [properties] Properties to set
|
|
10117
|
+
*/
|
|
10118
|
+
function ExperimentalFeatures(properties) {
|
|
10119
|
+
if (properties)
|
|
10120
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
10121
|
+
if (properties[keys[i]] != null)
|
|
10122
|
+
this[keys[i]] = properties[keys[i]];
|
|
10123
|
+
}
|
|
10124
|
+
|
|
10125
|
+
/**
|
|
10126
|
+
* ExperimentalFeatures restAsyncIoEnabled.
|
|
10127
|
+
* @member {boolean} restAsyncIoEnabled
|
|
10128
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
10129
|
+
* @instance
|
|
10130
|
+
*/
|
|
10131
|
+
ExperimentalFeatures.prototype.restAsyncIoEnabled = false;
|
|
10132
|
+
|
|
10133
|
+
/**
|
|
10134
|
+
* ExperimentalFeatures protobufPythonicTypesEnabled.
|
|
10135
|
+
* @member {boolean} protobufPythonicTypesEnabled
|
|
10136
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
10137
|
+
* @instance
|
|
10138
|
+
*/
|
|
10139
|
+
ExperimentalFeatures.prototype.protobufPythonicTypesEnabled = false;
|
|
10140
|
+
|
|
10141
|
+
/**
|
|
10142
|
+
* ExperimentalFeatures unversionedPackageDisabled.
|
|
10143
|
+
* @member {boolean} unversionedPackageDisabled
|
|
10144
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
10145
|
+
* @instance
|
|
10146
|
+
*/
|
|
10147
|
+
ExperimentalFeatures.prototype.unversionedPackageDisabled = false;
|
|
10148
|
+
|
|
10149
|
+
/**
|
|
10150
|
+
* Creates a new ExperimentalFeatures instance using the specified properties.
|
|
10151
|
+
* @function create
|
|
10152
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
10153
|
+
* @static
|
|
10154
|
+
* @param {google.api.PythonSettings.IExperimentalFeatures=} [properties] Properties to set
|
|
10155
|
+
* @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures instance
|
|
10156
|
+
*/
|
|
10157
|
+
ExperimentalFeatures.create = function create(properties) {
|
|
10158
|
+
return new ExperimentalFeatures(properties);
|
|
10159
|
+
};
|
|
10160
|
+
|
|
10161
|
+
/**
|
|
10162
|
+
* Encodes the specified ExperimentalFeatures message. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
|
|
10163
|
+
* @function encode
|
|
10164
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
10165
|
+
* @static
|
|
10166
|
+
* @param {google.api.PythonSettings.IExperimentalFeatures} message ExperimentalFeatures message or plain object to encode
|
|
10167
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10168
|
+
* @returns {$protobuf.Writer} Writer
|
|
10169
|
+
*/
|
|
10170
|
+
ExperimentalFeatures.encode = function encode(message, writer) {
|
|
10171
|
+
if (!writer)
|
|
10172
|
+
writer = $Writer.create();
|
|
10173
|
+
if (message.restAsyncIoEnabled != null && Object.hasOwnProperty.call(message, "restAsyncIoEnabled"))
|
|
10174
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.restAsyncIoEnabled);
|
|
10175
|
+
if (message.protobufPythonicTypesEnabled != null && Object.hasOwnProperty.call(message, "protobufPythonicTypesEnabled"))
|
|
10176
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.protobufPythonicTypesEnabled);
|
|
10177
|
+
if (message.unversionedPackageDisabled != null && Object.hasOwnProperty.call(message, "unversionedPackageDisabled"))
|
|
10178
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.unversionedPackageDisabled);
|
|
10179
|
+
return writer;
|
|
10180
|
+
};
|
|
10181
|
+
|
|
10182
|
+
/**
|
|
10183
|
+
* Encodes the specified ExperimentalFeatures message, length delimited. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
|
|
10184
|
+
* @function encodeDelimited
|
|
10185
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
10186
|
+
* @static
|
|
10187
|
+
* @param {google.api.PythonSettings.IExperimentalFeatures} message ExperimentalFeatures message or plain object to encode
|
|
10188
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10189
|
+
* @returns {$protobuf.Writer} Writer
|
|
10190
|
+
*/
|
|
10191
|
+
ExperimentalFeatures.encodeDelimited = function encodeDelimited(message, writer) {
|
|
10192
|
+
return this.encode(message, writer).ldelim();
|
|
10193
|
+
};
|
|
10194
|
+
|
|
10195
|
+
/**
|
|
10196
|
+
* Decodes an ExperimentalFeatures message from the specified reader or buffer.
|
|
10197
|
+
* @function decode
|
|
10198
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
10199
|
+
* @static
|
|
10200
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10201
|
+
* @param {number} [length] Message length if known beforehand
|
|
10202
|
+
* @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
|
|
10203
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10204
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10205
|
+
*/
|
|
10206
|
+
ExperimentalFeatures.decode = function decode(reader, length, error) {
|
|
10207
|
+
if (!(reader instanceof $Reader))
|
|
10208
|
+
reader = $Reader.create(reader);
|
|
10209
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings.ExperimentalFeatures();
|
|
10210
|
+
while (reader.pos < end) {
|
|
10211
|
+
var tag = reader.uint32();
|
|
10212
|
+
if (tag === error)
|
|
10213
|
+
break;
|
|
10214
|
+
switch (tag >>> 3) {
|
|
10215
|
+
case 1: {
|
|
10216
|
+
message.restAsyncIoEnabled = reader.bool();
|
|
10217
|
+
break;
|
|
10218
|
+
}
|
|
10219
|
+
case 2: {
|
|
10220
|
+
message.protobufPythonicTypesEnabled = reader.bool();
|
|
10221
|
+
break;
|
|
10222
|
+
}
|
|
10223
|
+
case 3: {
|
|
10224
|
+
message.unversionedPackageDisabled = reader.bool();
|
|
10225
|
+
break;
|
|
10226
|
+
}
|
|
10227
|
+
default:
|
|
10228
|
+
reader.skipType(tag & 7);
|
|
10229
|
+
break;
|
|
10230
|
+
}
|
|
10231
|
+
}
|
|
10232
|
+
return message;
|
|
10233
|
+
};
|
|
10234
|
+
|
|
10235
|
+
/**
|
|
10236
|
+
* Decodes an ExperimentalFeatures message from the specified reader or buffer, length delimited.
|
|
10237
|
+
* @function decodeDelimited
|
|
10238
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
10239
|
+
* @static
|
|
10240
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10241
|
+
* @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
|
|
10242
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10243
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10244
|
+
*/
|
|
10245
|
+
ExperimentalFeatures.decodeDelimited = function decodeDelimited(reader) {
|
|
10246
|
+
if (!(reader instanceof $Reader))
|
|
10247
|
+
reader = new $Reader(reader);
|
|
10248
|
+
return this.decode(reader, reader.uint32());
|
|
10249
|
+
};
|
|
10250
|
+
|
|
10251
|
+
/**
|
|
10252
|
+
* Verifies an ExperimentalFeatures message.
|
|
10253
|
+
* @function verify
|
|
10254
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
10255
|
+
* @static
|
|
10256
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
10257
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
10258
|
+
*/
|
|
10259
|
+
ExperimentalFeatures.verify = function verify(message) {
|
|
10260
|
+
if (typeof message !== "object" || message === null)
|
|
10261
|
+
return "object expected";
|
|
10262
|
+
if (message.restAsyncIoEnabled != null && message.hasOwnProperty("restAsyncIoEnabled"))
|
|
10263
|
+
if (typeof message.restAsyncIoEnabled !== "boolean")
|
|
10264
|
+
return "restAsyncIoEnabled: boolean expected";
|
|
10265
|
+
if (message.protobufPythonicTypesEnabled != null && message.hasOwnProperty("protobufPythonicTypesEnabled"))
|
|
10266
|
+
if (typeof message.protobufPythonicTypesEnabled !== "boolean")
|
|
10267
|
+
return "protobufPythonicTypesEnabled: boolean expected";
|
|
10268
|
+
if (message.unversionedPackageDisabled != null && message.hasOwnProperty("unversionedPackageDisabled"))
|
|
10269
|
+
if (typeof message.unversionedPackageDisabled !== "boolean")
|
|
10270
|
+
return "unversionedPackageDisabled: boolean expected";
|
|
10271
|
+
return null;
|
|
10272
|
+
};
|
|
10273
|
+
|
|
10274
|
+
/**
|
|
10275
|
+
* Creates an ExperimentalFeatures message from a plain object. Also converts values to their respective internal types.
|
|
10276
|
+
* @function fromObject
|
|
10277
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
10278
|
+
* @static
|
|
10279
|
+
* @param {Object.<string,*>} object Plain object
|
|
10280
|
+
* @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
|
|
10281
|
+
*/
|
|
10282
|
+
ExperimentalFeatures.fromObject = function fromObject(object) {
|
|
10283
|
+
if (object instanceof $root.google.api.PythonSettings.ExperimentalFeatures)
|
|
10284
|
+
return object;
|
|
10285
|
+
var message = new $root.google.api.PythonSettings.ExperimentalFeatures();
|
|
10286
|
+
if (object.restAsyncIoEnabled != null)
|
|
10287
|
+
message.restAsyncIoEnabled = Boolean(object.restAsyncIoEnabled);
|
|
10288
|
+
if (object.protobufPythonicTypesEnabled != null)
|
|
10289
|
+
message.protobufPythonicTypesEnabled = Boolean(object.protobufPythonicTypesEnabled);
|
|
10290
|
+
if (object.unversionedPackageDisabled != null)
|
|
10291
|
+
message.unversionedPackageDisabled = Boolean(object.unversionedPackageDisabled);
|
|
10292
|
+
return message;
|
|
10293
|
+
};
|
|
10294
|
+
|
|
10295
|
+
/**
|
|
10296
|
+
* Creates a plain object from an ExperimentalFeatures message. Also converts values to other types if specified.
|
|
10297
|
+
* @function toObject
|
|
10298
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
10299
|
+
* @static
|
|
10300
|
+
* @param {google.api.PythonSettings.ExperimentalFeatures} message ExperimentalFeatures
|
|
10301
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
10302
|
+
* @returns {Object.<string,*>} Plain object
|
|
10303
|
+
*/
|
|
10304
|
+
ExperimentalFeatures.toObject = function toObject(message, options) {
|
|
10305
|
+
if (!options)
|
|
10306
|
+
options = {};
|
|
10307
|
+
var object = {};
|
|
10308
|
+
if (options.defaults) {
|
|
10309
|
+
object.restAsyncIoEnabled = false;
|
|
10310
|
+
object.protobufPythonicTypesEnabled = false;
|
|
10311
|
+
object.unversionedPackageDisabled = false;
|
|
10312
|
+
}
|
|
10313
|
+
if (message.restAsyncIoEnabled != null && message.hasOwnProperty("restAsyncIoEnabled"))
|
|
10314
|
+
object.restAsyncIoEnabled = message.restAsyncIoEnabled;
|
|
10315
|
+
if (message.protobufPythonicTypesEnabled != null && message.hasOwnProperty("protobufPythonicTypesEnabled"))
|
|
10316
|
+
object.protobufPythonicTypesEnabled = message.protobufPythonicTypesEnabled;
|
|
10317
|
+
if (message.unversionedPackageDisabled != null && message.hasOwnProperty("unversionedPackageDisabled"))
|
|
10318
|
+
object.unversionedPackageDisabled = message.unversionedPackageDisabled;
|
|
10319
|
+
return object;
|
|
10320
|
+
};
|
|
10321
|
+
|
|
10322
|
+
/**
|
|
10323
|
+
* Converts this ExperimentalFeatures to JSON.
|
|
10324
|
+
* @function toJSON
|
|
10325
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
10326
|
+
* @instance
|
|
10327
|
+
* @returns {Object.<string,*>} JSON object
|
|
10328
|
+
*/
|
|
10329
|
+
ExperimentalFeatures.prototype.toJSON = function toJSON() {
|
|
10330
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
10331
|
+
};
|
|
10332
|
+
|
|
10333
|
+
/**
|
|
10334
|
+
* Gets the default type url for ExperimentalFeatures
|
|
10335
|
+
* @function getTypeUrl
|
|
10336
|
+
* @memberof google.api.PythonSettings.ExperimentalFeatures
|
|
10337
|
+
* @static
|
|
10338
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
10339
|
+
* @returns {string} The default type url
|
|
10340
|
+
*/
|
|
10341
|
+
ExperimentalFeatures.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
10342
|
+
if (typeUrlPrefix === undefined) {
|
|
10343
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
10344
|
+
}
|
|
10345
|
+
return typeUrlPrefix + "/google.api.PythonSettings.ExperimentalFeatures";
|
|
10346
|
+
};
|
|
10347
|
+
|
|
10348
|
+
return ExperimentalFeatures;
|
|
10349
|
+
})();
|
|
10350
|
+
|
|
9871
10351
|
return PythonSettings;
|
|
9872
10352
|
})();
|
|
9873
10353
|
|
|
@@ -10744,6 +11224,7 @@
|
|
|
10744
11224
|
* @memberof google.api
|
|
10745
11225
|
* @interface IGoSettings
|
|
10746
11226
|
* @property {google.api.ICommonLanguageSettings|null} [common] GoSettings common
|
|
11227
|
+
* @property {Object.<string,string>|null} [renamedServices] GoSettings renamedServices
|
|
10747
11228
|
*/
|
|
10748
11229
|
|
|
10749
11230
|
/**
|
|
@@ -10755,6 +11236,7 @@
|
|
|
10755
11236
|
* @param {google.api.IGoSettings=} [properties] Properties to set
|
|
10756
11237
|
*/
|
|
10757
11238
|
function GoSettings(properties) {
|
|
11239
|
+
this.renamedServices = {};
|
|
10758
11240
|
if (properties)
|
|
10759
11241
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
10760
11242
|
if (properties[keys[i]] != null)
|
|
@@ -10770,10 +11252,18 @@
|
|
|
10770
11252
|
GoSettings.prototype.common = null;
|
|
10771
11253
|
|
|
10772
11254
|
/**
|
|
10773
|
-
*
|
|
10774
|
-
* @
|
|
11255
|
+
* GoSettings renamedServices.
|
|
11256
|
+
* @member {Object.<string,string>} renamedServices
|
|
10775
11257
|
* @memberof google.api.GoSettings
|
|
10776
|
-
* @
|
|
11258
|
+
* @instance
|
|
11259
|
+
*/
|
|
11260
|
+
GoSettings.prototype.renamedServices = $util.emptyObject;
|
|
11261
|
+
|
|
11262
|
+
/**
|
|
11263
|
+
* Creates a new GoSettings instance using the specified properties.
|
|
11264
|
+
* @function create
|
|
11265
|
+
* @memberof google.api.GoSettings
|
|
11266
|
+
* @static
|
|
10777
11267
|
* @param {google.api.IGoSettings=} [properties] Properties to set
|
|
10778
11268
|
* @returns {google.api.GoSettings} GoSettings instance
|
|
10779
11269
|
*/
|
|
@@ -10795,6 +11285,9 @@
|
|
|
10795
11285
|
writer = $Writer.create();
|
|
10796
11286
|
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
|
|
10797
11287
|
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
11288
|
+
if (message.renamedServices != null && Object.hasOwnProperty.call(message, "renamedServices"))
|
|
11289
|
+
for (var keys = Object.keys(message.renamedServices), i = 0; i < keys.length; ++i)
|
|
11290
|
+
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();
|
|
10798
11291
|
return writer;
|
|
10799
11292
|
};
|
|
10800
11293
|
|
|
@@ -10825,7 +11318,7 @@
|
|
|
10825
11318
|
GoSettings.decode = function decode(reader, length, error) {
|
|
10826
11319
|
if (!(reader instanceof $Reader))
|
|
10827
11320
|
reader = $Reader.create(reader);
|
|
10828
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings();
|
|
11321
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings(), key, value;
|
|
10829
11322
|
while (reader.pos < end) {
|
|
10830
11323
|
var tag = reader.uint32();
|
|
10831
11324
|
if (tag === error)
|
|
@@ -10835,6 +11328,29 @@
|
|
|
10835
11328
|
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
|
10836
11329
|
break;
|
|
10837
11330
|
}
|
|
11331
|
+
case 2: {
|
|
11332
|
+
if (message.renamedServices === $util.emptyObject)
|
|
11333
|
+
message.renamedServices = {};
|
|
11334
|
+
var end2 = reader.uint32() + reader.pos;
|
|
11335
|
+
key = "";
|
|
11336
|
+
value = "";
|
|
11337
|
+
while (reader.pos < end2) {
|
|
11338
|
+
var tag2 = reader.uint32();
|
|
11339
|
+
switch (tag2 >>> 3) {
|
|
11340
|
+
case 1:
|
|
11341
|
+
key = reader.string();
|
|
11342
|
+
break;
|
|
11343
|
+
case 2:
|
|
11344
|
+
value = reader.string();
|
|
11345
|
+
break;
|
|
11346
|
+
default:
|
|
11347
|
+
reader.skipType(tag2 & 7);
|
|
11348
|
+
break;
|
|
11349
|
+
}
|
|
11350
|
+
}
|
|
11351
|
+
message.renamedServices[key] = value;
|
|
11352
|
+
break;
|
|
11353
|
+
}
|
|
10838
11354
|
default:
|
|
10839
11355
|
reader.skipType(tag & 7);
|
|
10840
11356
|
break;
|
|
@@ -10875,6 +11391,14 @@
|
|
|
10875
11391
|
if (error)
|
|
10876
11392
|
return "common." + error;
|
|
10877
11393
|
}
|
|
11394
|
+
if (message.renamedServices != null && message.hasOwnProperty("renamedServices")) {
|
|
11395
|
+
if (!$util.isObject(message.renamedServices))
|
|
11396
|
+
return "renamedServices: object expected";
|
|
11397
|
+
var key = Object.keys(message.renamedServices);
|
|
11398
|
+
for (var i = 0; i < key.length; ++i)
|
|
11399
|
+
if (!$util.isString(message.renamedServices[key[i]]))
|
|
11400
|
+
return "renamedServices: string{k:string} expected";
|
|
11401
|
+
}
|
|
10878
11402
|
return null;
|
|
10879
11403
|
};
|
|
10880
11404
|
|
|
@@ -10895,6 +11419,13 @@
|
|
|
10895
11419
|
throw TypeError(".google.api.GoSettings.common: object expected");
|
|
10896
11420
|
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
|
|
10897
11421
|
}
|
|
11422
|
+
if (object.renamedServices) {
|
|
11423
|
+
if (typeof object.renamedServices !== "object")
|
|
11424
|
+
throw TypeError(".google.api.GoSettings.renamedServices: object expected");
|
|
11425
|
+
message.renamedServices = {};
|
|
11426
|
+
for (var keys = Object.keys(object.renamedServices), i = 0; i < keys.length; ++i)
|
|
11427
|
+
message.renamedServices[keys[i]] = String(object.renamedServices[keys[i]]);
|
|
11428
|
+
}
|
|
10898
11429
|
return message;
|
|
10899
11430
|
};
|
|
10900
11431
|
|
|
@@ -10911,10 +11442,18 @@
|
|
|
10911
11442
|
if (!options)
|
|
10912
11443
|
options = {};
|
|
10913
11444
|
var object = {};
|
|
11445
|
+
if (options.objects || options.defaults)
|
|
11446
|
+
object.renamedServices = {};
|
|
10914
11447
|
if (options.defaults)
|
|
10915
11448
|
object.common = null;
|
|
10916
11449
|
if (message.common != null && message.hasOwnProperty("common"))
|
|
10917
11450
|
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
|
|
11451
|
+
var keys2;
|
|
11452
|
+
if (message.renamedServices && (keys2 = Object.keys(message.renamedServices)).length) {
|
|
11453
|
+
object.renamedServices = {};
|
|
11454
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
11455
|
+
object.renamedServices[keys2[j]] = message.renamedServices[keys2[j]];
|
|
11456
|
+
}
|
|
10918
11457
|
return object;
|
|
10919
11458
|
};
|
|
10920
11459
|
|
|
@@ -11553,6 +12092,251 @@
|
|
|
11553
12092
|
return values;
|
|
11554
12093
|
})();
|
|
11555
12094
|
|
|
12095
|
+
api.SelectiveGapicGeneration = (function() {
|
|
12096
|
+
|
|
12097
|
+
/**
|
|
12098
|
+
* Properties of a SelectiveGapicGeneration.
|
|
12099
|
+
* @memberof google.api
|
|
12100
|
+
* @interface ISelectiveGapicGeneration
|
|
12101
|
+
* @property {Array.<string>|null} [methods] SelectiveGapicGeneration methods
|
|
12102
|
+
* @property {boolean|null} [generateOmittedAsInternal] SelectiveGapicGeneration generateOmittedAsInternal
|
|
12103
|
+
*/
|
|
12104
|
+
|
|
12105
|
+
/**
|
|
12106
|
+
* Constructs a new SelectiveGapicGeneration.
|
|
12107
|
+
* @memberof google.api
|
|
12108
|
+
* @classdesc Represents a SelectiveGapicGeneration.
|
|
12109
|
+
* @implements ISelectiveGapicGeneration
|
|
12110
|
+
* @constructor
|
|
12111
|
+
* @param {google.api.ISelectiveGapicGeneration=} [properties] Properties to set
|
|
12112
|
+
*/
|
|
12113
|
+
function SelectiveGapicGeneration(properties) {
|
|
12114
|
+
this.methods = [];
|
|
12115
|
+
if (properties)
|
|
12116
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12117
|
+
if (properties[keys[i]] != null)
|
|
12118
|
+
this[keys[i]] = properties[keys[i]];
|
|
12119
|
+
}
|
|
12120
|
+
|
|
12121
|
+
/**
|
|
12122
|
+
* SelectiveGapicGeneration methods.
|
|
12123
|
+
* @member {Array.<string>} methods
|
|
12124
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
12125
|
+
* @instance
|
|
12126
|
+
*/
|
|
12127
|
+
SelectiveGapicGeneration.prototype.methods = $util.emptyArray;
|
|
12128
|
+
|
|
12129
|
+
/**
|
|
12130
|
+
* SelectiveGapicGeneration generateOmittedAsInternal.
|
|
12131
|
+
* @member {boolean} generateOmittedAsInternal
|
|
12132
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
12133
|
+
* @instance
|
|
12134
|
+
*/
|
|
12135
|
+
SelectiveGapicGeneration.prototype.generateOmittedAsInternal = false;
|
|
12136
|
+
|
|
12137
|
+
/**
|
|
12138
|
+
* Creates a new SelectiveGapicGeneration instance using the specified properties.
|
|
12139
|
+
* @function create
|
|
12140
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
12141
|
+
* @static
|
|
12142
|
+
* @param {google.api.ISelectiveGapicGeneration=} [properties] Properties to set
|
|
12143
|
+
* @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration instance
|
|
12144
|
+
*/
|
|
12145
|
+
SelectiveGapicGeneration.create = function create(properties) {
|
|
12146
|
+
return new SelectiveGapicGeneration(properties);
|
|
12147
|
+
};
|
|
12148
|
+
|
|
12149
|
+
/**
|
|
12150
|
+
* Encodes the specified SelectiveGapicGeneration message. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
|
|
12151
|
+
* @function encode
|
|
12152
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
12153
|
+
* @static
|
|
12154
|
+
* @param {google.api.ISelectiveGapicGeneration} message SelectiveGapicGeneration message or plain object to encode
|
|
12155
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12156
|
+
* @returns {$protobuf.Writer} Writer
|
|
12157
|
+
*/
|
|
12158
|
+
SelectiveGapicGeneration.encode = function encode(message, writer) {
|
|
12159
|
+
if (!writer)
|
|
12160
|
+
writer = $Writer.create();
|
|
12161
|
+
if (message.methods != null && message.methods.length)
|
|
12162
|
+
for (var i = 0; i < message.methods.length; ++i)
|
|
12163
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.methods[i]);
|
|
12164
|
+
if (message.generateOmittedAsInternal != null && Object.hasOwnProperty.call(message, "generateOmittedAsInternal"))
|
|
12165
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.generateOmittedAsInternal);
|
|
12166
|
+
return writer;
|
|
12167
|
+
};
|
|
12168
|
+
|
|
12169
|
+
/**
|
|
12170
|
+
* Encodes the specified SelectiveGapicGeneration message, length delimited. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
|
|
12171
|
+
* @function encodeDelimited
|
|
12172
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
12173
|
+
* @static
|
|
12174
|
+
* @param {google.api.ISelectiveGapicGeneration} message SelectiveGapicGeneration message or plain object to encode
|
|
12175
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12176
|
+
* @returns {$protobuf.Writer} Writer
|
|
12177
|
+
*/
|
|
12178
|
+
SelectiveGapicGeneration.encodeDelimited = function encodeDelimited(message, writer) {
|
|
12179
|
+
return this.encode(message, writer).ldelim();
|
|
12180
|
+
};
|
|
12181
|
+
|
|
12182
|
+
/**
|
|
12183
|
+
* Decodes a SelectiveGapicGeneration message from the specified reader or buffer.
|
|
12184
|
+
* @function decode
|
|
12185
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
12186
|
+
* @static
|
|
12187
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12188
|
+
* @param {number} [length] Message length if known beforehand
|
|
12189
|
+
* @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
|
|
12190
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12191
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12192
|
+
*/
|
|
12193
|
+
SelectiveGapicGeneration.decode = function decode(reader, length, error) {
|
|
12194
|
+
if (!(reader instanceof $Reader))
|
|
12195
|
+
reader = $Reader.create(reader);
|
|
12196
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.SelectiveGapicGeneration();
|
|
12197
|
+
while (reader.pos < end) {
|
|
12198
|
+
var tag = reader.uint32();
|
|
12199
|
+
if (tag === error)
|
|
12200
|
+
break;
|
|
12201
|
+
switch (tag >>> 3) {
|
|
12202
|
+
case 1: {
|
|
12203
|
+
if (!(message.methods && message.methods.length))
|
|
12204
|
+
message.methods = [];
|
|
12205
|
+
message.methods.push(reader.string());
|
|
12206
|
+
break;
|
|
12207
|
+
}
|
|
12208
|
+
case 2: {
|
|
12209
|
+
message.generateOmittedAsInternal = reader.bool();
|
|
12210
|
+
break;
|
|
12211
|
+
}
|
|
12212
|
+
default:
|
|
12213
|
+
reader.skipType(tag & 7);
|
|
12214
|
+
break;
|
|
12215
|
+
}
|
|
12216
|
+
}
|
|
12217
|
+
return message;
|
|
12218
|
+
};
|
|
12219
|
+
|
|
12220
|
+
/**
|
|
12221
|
+
* Decodes a SelectiveGapicGeneration message from the specified reader or buffer, length delimited.
|
|
12222
|
+
* @function decodeDelimited
|
|
12223
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
12224
|
+
* @static
|
|
12225
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12226
|
+
* @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
|
|
12227
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12228
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12229
|
+
*/
|
|
12230
|
+
SelectiveGapicGeneration.decodeDelimited = function decodeDelimited(reader) {
|
|
12231
|
+
if (!(reader instanceof $Reader))
|
|
12232
|
+
reader = new $Reader(reader);
|
|
12233
|
+
return this.decode(reader, reader.uint32());
|
|
12234
|
+
};
|
|
12235
|
+
|
|
12236
|
+
/**
|
|
12237
|
+
* Verifies a SelectiveGapicGeneration message.
|
|
12238
|
+
* @function verify
|
|
12239
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
12240
|
+
* @static
|
|
12241
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
12242
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
12243
|
+
*/
|
|
12244
|
+
SelectiveGapicGeneration.verify = function verify(message) {
|
|
12245
|
+
if (typeof message !== "object" || message === null)
|
|
12246
|
+
return "object expected";
|
|
12247
|
+
if (message.methods != null && message.hasOwnProperty("methods")) {
|
|
12248
|
+
if (!Array.isArray(message.methods))
|
|
12249
|
+
return "methods: array expected";
|
|
12250
|
+
for (var i = 0; i < message.methods.length; ++i)
|
|
12251
|
+
if (!$util.isString(message.methods[i]))
|
|
12252
|
+
return "methods: string[] expected";
|
|
12253
|
+
}
|
|
12254
|
+
if (message.generateOmittedAsInternal != null && message.hasOwnProperty("generateOmittedAsInternal"))
|
|
12255
|
+
if (typeof message.generateOmittedAsInternal !== "boolean")
|
|
12256
|
+
return "generateOmittedAsInternal: boolean expected";
|
|
12257
|
+
return null;
|
|
12258
|
+
};
|
|
12259
|
+
|
|
12260
|
+
/**
|
|
12261
|
+
* Creates a SelectiveGapicGeneration message from a plain object. Also converts values to their respective internal types.
|
|
12262
|
+
* @function fromObject
|
|
12263
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
12264
|
+
* @static
|
|
12265
|
+
* @param {Object.<string,*>} object Plain object
|
|
12266
|
+
* @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
|
|
12267
|
+
*/
|
|
12268
|
+
SelectiveGapicGeneration.fromObject = function fromObject(object) {
|
|
12269
|
+
if (object instanceof $root.google.api.SelectiveGapicGeneration)
|
|
12270
|
+
return object;
|
|
12271
|
+
var message = new $root.google.api.SelectiveGapicGeneration();
|
|
12272
|
+
if (object.methods) {
|
|
12273
|
+
if (!Array.isArray(object.methods))
|
|
12274
|
+
throw TypeError(".google.api.SelectiveGapicGeneration.methods: array expected");
|
|
12275
|
+
message.methods = [];
|
|
12276
|
+
for (var i = 0; i < object.methods.length; ++i)
|
|
12277
|
+
message.methods[i] = String(object.methods[i]);
|
|
12278
|
+
}
|
|
12279
|
+
if (object.generateOmittedAsInternal != null)
|
|
12280
|
+
message.generateOmittedAsInternal = Boolean(object.generateOmittedAsInternal);
|
|
12281
|
+
return message;
|
|
12282
|
+
};
|
|
12283
|
+
|
|
12284
|
+
/**
|
|
12285
|
+
* Creates a plain object from a SelectiveGapicGeneration message. Also converts values to other types if specified.
|
|
12286
|
+
* @function toObject
|
|
12287
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
12288
|
+
* @static
|
|
12289
|
+
* @param {google.api.SelectiveGapicGeneration} message SelectiveGapicGeneration
|
|
12290
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
12291
|
+
* @returns {Object.<string,*>} Plain object
|
|
12292
|
+
*/
|
|
12293
|
+
SelectiveGapicGeneration.toObject = function toObject(message, options) {
|
|
12294
|
+
if (!options)
|
|
12295
|
+
options = {};
|
|
12296
|
+
var object = {};
|
|
12297
|
+
if (options.arrays || options.defaults)
|
|
12298
|
+
object.methods = [];
|
|
12299
|
+
if (options.defaults)
|
|
12300
|
+
object.generateOmittedAsInternal = false;
|
|
12301
|
+
if (message.methods && message.methods.length) {
|
|
12302
|
+
object.methods = [];
|
|
12303
|
+
for (var j = 0; j < message.methods.length; ++j)
|
|
12304
|
+
object.methods[j] = message.methods[j];
|
|
12305
|
+
}
|
|
12306
|
+
if (message.generateOmittedAsInternal != null && message.hasOwnProperty("generateOmittedAsInternal"))
|
|
12307
|
+
object.generateOmittedAsInternal = message.generateOmittedAsInternal;
|
|
12308
|
+
return object;
|
|
12309
|
+
};
|
|
12310
|
+
|
|
12311
|
+
/**
|
|
12312
|
+
* Converts this SelectiveGapicGeneration to JSON.
|
|
12313
|
+
* @function toJSON
|
|
12314
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
12315
|
+
* @instance
|
|
12316
|
+
* @returns {Object.<string,*>} JSON object
|
|
12317
|
+
*/
|
|
12318
|
+
SelectiveGapicGeneration.prototype.toJSON = function toJSON() {
|
|
12319
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
12320
|
+
};
|
|
12321
|
+
|
|
12322
|
+
/**
|
|
12323
|
+
* Gets the default type url for SelectiveGapicGeneration
|
|
12324
|
+
* @function getTypeUrl
|
|
12325
|
+
* @memberof google.api.SelectiveGapicGeneration
|
|
12326
|
+
* @static
|
|
12327
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
12328
|
+
* @returns {string} The default type url
|
|
12329
|
+
*/
|
|
12330
|
+
SelectiveGapicGeneration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
12331
|
+
if (typeUrlPrefix === undefined) {
|
|
12332
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
12333
|
+
}
|
|
12334
|
+
return typeUrlPrefix + "/google.api.SelectiveGapicGeneration";
|
|
12335
|
+
};
|
|
12336
|
+
|
|
12337
|
+
return SelectiveGapicGeneration;
|
|
12338
|
+
})();
|
|
12339
|
+
|
|
11556
12340
|
/**
|
|
11557
12341
|
* LaunchStage enum.
|
|
11558
12342
|
* @name google.api.LaunchStage
|
|
@@ -12133,6 +12917,7 @@
|
|
|
12133
12917
|
* @name google.protobuf.Edition
|
|
12134
12918
|
* @enum {number}
|
|
12135
12919
|
* @property {number} EDITION_UNKNOWN=0 EDITION_UNKNOWN value
|
|
12920
|
+
* @property {number} EDITION_LEGACY=900 EDITION_LEGACY value
|
|
12136
12921
|
* @property {number} EDITION_PROTO2=998 EDITION_PROTO2 value
|
|
12137
12922
|
* @property {number} EDITION_PROTO3=999 EDITION_PROTO3 value
|
|
12138
12923
|
* @property {number} EDITION_2023=1000 EDITION_2023 value
|
|
@@ -12147,6 +12932,7 @@
|
|
|
12147
12932
|
protobuf.Edition = (function() {
|
|
12148
12933
|
var valuesById = {}, values = Object.create(valuesById);
|
|
12149
12934
|
values[valuesById[0] = "EDITION_UNKNOWN"] = 0;
|
|
12935
|
+
values[valuesById[900] = "EDITION_LEGACY"] = 900;
|
|
12150
12936
|
values[valuesById[998] = "EDITION_PROTO2"] = 998;
|
|
12151
12937
|
values[valuesById[999] = "EDITION_PROTO3"] = 999;
|
|
12152
12938
|
values[valuesById[1000] = "EDITION_2023"] = 1000;
|
|
@@ -12171,6 +12957,7 @@
|
|
|
12171
12957
|
* @property {Array.<string>|null} [dependency] FileDescriptorProto dependency
|
|
12172
12958
|
* @property {Array.<number>|null} [publicDependency] FileDescriptorProto publicDependency
|
|
12173
12959
|
* @property {Array.<number>|null} [weakDependency] FileDescriptorProto weakDependency
|
|
12960
|
+
* @property {Array.<string>|null} [optionDependency] FileDescriptorProto optionDependency
|
|
12174
12961
|
* @property {Array.<google.protobuf.IDescriptorProto>|null} [messageType] FileDescriptorProto messageType
|
|
12175
12962
|
* @property {Array.<google.protobuf.IEnumDescriptorProto>|null} [enumType] FileDescriptorProto enumType
|
|
12176
12963
|
* @property {Array.<google.protobuf.IServiceDescriptorProto>|null} [service] FileDescriptorProto service
|
|
@@ -12193,6 +12980,7 @@
|
|
|
12193
12980
|
this.dependency = [];
|
|
12194
12981
|
this.publicDependency = [];
|
|
12195
12982
|
this.weakDependency = [];
|
|
12983
|
+
this.optionDependency = [];
|
|
12196
12984
|
this.messageType = [];
|
|
12197
12985
|
this.enumType = [];
|
|
12198
12986
|
this.service = [];
|
|
@@ -12243,6 +13031,14 @@
|
|
|
12243
13031
|
*/
|
|
12244
13032
|
FileDescriptorProto.prototype.weakDependency = $util.emptyArray;
|
|
12245
13033
|
|
|
13034
|
+
/**
|
|
13035
|
+
* FileDescriptorProto optionDependency.
|
|
13036
|
+
* @member {Array.<string>} optionDependency
|
|
13037
|
+
* @memberof google.protobuf.FileDescriptorProto
|
|
13038
|
+
* @instance
|
|
13039
|
+
*/
|
|
13040
|
+
FileDescriptorProto.prototype.optionDependency = $util.emptyArray;
|
|
13041
|
+
|
|
12246
13042
|
/**
|
|
12247
13043
|
* FileDescriptorProto messageType.
|
|
12248
13044
|
* @member {Array.<google.protobuf.IDescriptorProto>} messageType
|
|
@@ -12364,6 +13160,9 @@
|
|
|
12364
13160
|
writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax);
|
|
12365
13161
|
if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
|
|
12366
13162
|
writer.uint32(/* id 14, wireType 0 =*/112).int32(message.edition);
|
|
13163
|
+
if (message.optionDependency != null && message.optionDependency.length)
|
|
13164
|
+
for (var i = 0; i < message.optionDependency.length; ++i)
|
|
13165
|
+
writer.uint32(/* id 15, wireType 2 =*/122).string(message.optionDependency[i]);
|
|
12367
13166
|
return writer;
|
|
12368
13167
|
};
|
|
12369
13168
|
|
|
@@ -12436,6 +13235,12 @@
|
|
|
12436
13235
|
message.weakDependency.push(reader.int32());
|
|
12437
13236
|
break;
|
|
12438
13237
|
}
|
|
13238
|
+
case 15: {
|
|
13239
|
+
if (!(message.optionDependency && message.optionDependency.length))
|
|
13240
|
+
message.optionDependency = [];
|
|
13241
|
+
message.optionDependency.push(reader.string());
|
|
13242
|
+
break;
|
|
13243
|
+
}
|
|
12439
13244
|
case 4: {
|
|
12440
13245
|
if (!(message.messageType && message.messageType.length))
|
|
12441
13246
|
message.messageType = [];
|
|
@@ -12538,6 +13343,13 @@
|
|
|
12538
13343
|
if (!$util.isInteger(message.weakDependency[i]))
|
|
12539
13344
|
return "weakDependency: integer[] expected";
|
|
12540
13345
|
}
|
|
13346
|
+
if (message.optionDependency != null && message.hasOwnProperty("optionDependency")) {
|
|
13347
|
+
if (!Array.isArray(message.optionDependency))
|
|
13348
|
+
return "optionDependency: array expected";
|
|
13349
|
+
for (var i = 0; i < message.optionDependency.length; ++i)
|
|
13350
|
+
if (!$util.isString(message.optionDependency[i]))
|
|
13351
|
+
return "optionDependency: string[] expected";
|
|
13352
|
+
}
|
|
12541
13353
|
if (message.messageType != null && message.hasOwnProperty("messageType")) {
|
|
12542
13354
|
if (!Array.isArray(message.messageType))
|
|
12543
13355
|
return "messageType: array expected";
|
|
@@ -12592,6 +13404,7 @@
|
|
|
12592
13404
|
default:
|
|
12593
13405
|
return "edition: enum value expected";
|
|
12594
13406
|
case 0:
|
|
13407
|
+
case 900:
|
|
12595
13408
|
case 998:
|
|
12596
13409
|
case 999:
|
|
12597
13410
|
case 1000:
|
|
@@ -12644,6 +13457,13 @@
|
|
|
12644
13457
|
for (var i = 0; i < object.weakDependency.length; ++i)
|
|
12645
13458
|
message.weakDependency[i] = object.weakDependency[i] | 0;
|
|
12646
13459
|
}
|
|
13460
|
+
if (object.optionDependency) {
|
|
13461
|
+
if (!Array.isArray(object.optionDependency))
|
|
13462
|
+
throw TypeError(".google.protobuf.FileDescriptorProto.optionDependency: array expected");
|
|
13463
|
+
message.optionDependency = [];
|
|
13464
|
+
for (var i = 0; i < object.optionDependency.length; ++i)
|
|
13465
|
+
message.optionDependency[i] = String(object.optionDependency[i]);
|
|
13466
|
+
}
|
|
12647
13467
|
if (object.messageType) {
|
|
12648
13468
|
if (!Array.isArray(object.messageType))
|
|
12649
13469
|
throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected");
|
|
@@ -12707,6 +13527,10 @@
|
|
|
12707
13527
|
case 0:
|
|
12708
13528
|
message.edition = 0;
|
|
12709
13529
|
break;
|
|
13530
|
+
case "EDITION_LEGACY":
|
|
13531
|
+
case 900:
|
|
13532
|
+
message.edition = 900;
|
|
13533
|
+
break;
|
|
12710
13534
|
case "EDITION_PROTO2":
|
|
12711
13535
|
case 998:
|
|
12712
13536
|
message.edition = 998;
|
|
@@ -12772,6 +13596,7 @@
|
|
|
12772
13596
|
object.extension = [];
|
|
12773
13597
|
object.publicDependency = [];
|
|
12774
13598
|
object.weakDependency = [];
|
|
13599
|
+
object.optionDependency = [];
|
|
12775
13600
|
}
|
|
12776
13601
|
if (options.defaults) {
|
|
12777
13602
|
object.name = "";
|
|
@@ -12828,6 +13653,11 @@
|
|
|
12828
13653
|
object.syntax = message.syntax;
|
|
12829
13654
|
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
12830
13655
|
object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
|
|
13656
|
+
if (message.optionDependency && message.optionDependency.length) {
|
|
13657
|
+
object.optionDependency = [];
|
|
13658
|
+
for (var j = 0; j < message.optionDependency.length; ++j)
|
|
13659
|
+
object.optionDependency[j] = message.optionDependency[j];
|
|
13660
|
+
}
|
|
12831
13661
|
return object;
|
|
12832
13662
|
};
|
|
12833
13663
|
|
|
@@ -12876,6 +13706,7 @@
|
|
|
12876
13706
|
* @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options
|
|
12877
13707
|
* @property {Array.<google.protobuf.DescriptorProto.IReservedRange>|null} [reservedRange] DescriptorProto reservedRange
|
|
12878
13708
|
* @property {Array.<string>|null} [reservedName] DescriptorProto reservedName
|
|
13709
|
+
* @property {google.protobuf.SymbolVisibility|null} [visibility] DescriptorProto visibility
|
|
12879
13710
|
*/
|
|
12880
13711
|
|
|
12881
13712
|
/**
|
|
@@ -12981,6 +13812,14 @@
|
|
|
12981
13812
|
*/
|
|
12982
13813
|
DescriptorProto.prototype.reservedName = $util.emptyArray;
|
|
12983
13814
|
|
|
13815
|
+
/**
|
|
13816
|
+
* DescriptorProto visibility.
|
|
13817
|
+
* @member {google.protobuf.SymbolVisibility} visibility
|
|
13818
|
+
* @memberof google.protobuf.DescriptorProto
|
|
13819
|
+
* @instance
|
|
13820
|
+
*/
|
|
13821
|
+
DescriptorProto.prototype.visibility = 0;
|
|
13822
|
+
|
|
12984
13823
|
/**
|
|
12985
13824
|
* Creates a new DescriptorProto instance using the specified properties.
|
|
12986
13825
|
* @function create
|
|
@@ -13033,6 +13872,8 @@
|
|
|
13033
13872
|
if (message.reservedName != null && message.reservedName.length)
|
|
13034
13873
|
for (var i = 0; i < message.reservedName.length; ++i)
|
|
13035
13874
|
writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]);
|
|
13875
|
+
if (message.visibility != null && Object.hasOwnProperty.call(message, "visibility"))
|
|
13876
|
+
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.visibility);
|
|
13036
13877
|
return writer;
|
|
13037
13878
|
};
|
|
13038
13879
|
|
|
@@ -13125,6 +13966,10 @@
|
|
|
13125
13966
|
message.reservedName.push(reader.string());
|
|
13126
13967
|
break;
|
|
13127
13968
|
}
|
|
13969
|
+
case 11: {
|
|
13970
|
+
message.visibility = reader.int32();
|
|
13971
|
+
break;
|
|
13972
|
+
}
|
|
13128
13973
|
default:
|
|
13129
13974
|
reader.skipType(tag & 7);
|
|
13130
13975
|
break;
|
|
@@ -13238,6 +14083,15 @@
|
|
|
13238
14083
|
if (!$util.isString(message.reservedName[i]))
|
|
13239
14084
|
return "reservedName: string[] expected";
|
|
13240
14085
|
}
|
|
14086
|
+
if (message.visibility != null && message.hasOwnProperty("visibility"))
|
|
14087
|
+
switch (message.visibility) {
|
|
14088
|
+
default:
|
|
14089
|
+
return "visibility: enum value expected";
|
|
14090
|
+
case 0:
|
|
14091
|
+
case 1:
|
|
14092
|
+
case 2:
|
|
14093
|
+
break;
|
|
14094
|
+
}
|
|
13241
14095
|
return null;
|
|
13242
14096
|
};
|
|
13243
14097
|
|
|
@@ -13337,6 +14191,26 @@
|
|
|
13337
14191
|
for (var i = 0; i < object.reservedName.length; ++i)
|
|
13338
14192
|
message.reservedName[i] = String(object.reservedName[i]);
|
|
13339
14193
|
}
|
|
14194
|
+
switch (object.visibility) {
|
|
14195
|
+
default:
|
|
14196
|
+
if (typeof object.visibility === "number") {
|
|
14197
|
+
message.visibility = object.visibility;
|
|
14198
|
+
break;
|
|
14199
|
+
}
|
|
14200
|
+
break;
|
|
14201
|
+
case "VISIBILITY_UNSET":
|
|
14202
|
+
case 0:
|
|
14203
|
+
message.visibility = 0;
|
|
14204
|
+
break;
|
|
14205
|
+
case "VISIBILITY_LOCAL":
|
|
14206
|
+
case 1:
|
|
14207
|
+
message.visibility = 1;
|
|
14208
|
+
break;
|
|
14209
|
+
case "VISIBILITY_EXPORT":
|
|
14210
|
+
case 2:
|
|
14211
|
+
message.visibility = 2;
|
|
14212
|
+
break;
|
|
14213
|
+
}
|
|
13340
14214
|
return message;
|
|
13341
14215
|
};
|
|
13342
14216
|
|
|
@@ -13366,6 +14240,7 @@
|
|
|
13366
14240
|
if (options.defaults) {
|
|
13367
14241
|
object.name = "";
|
|
13368
14242
|
object.options = null;
|
|
14243
|
+
object.visibility = options.enums === String ? "VISIBILITY_UNSET" : 0;
|
|
13369
14244
|
}
|
|
13370
14245
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
13371
14246
|
object.name = message.name;
|
|
@@ -13411,6 +14286,8 @@
|
|
|
13411
14286
|
for (var j = 0; j < message.reservedName.length; ++j)
|
|
13412
14287
|
object.reservedName[j] = message.reservedName[j];
|
|
13413
14288
|
}
|
|
14289
|
+
if (message.visibility != null && message.hasOwnProperty("visibility"))
|
|
14290
|
+
object.visibility = options.enums === String ? $root.google.protobuf.SymbolVisibility[message.visibility] === undefined ? message.visibility : $root.google.protobuf.SymbolVisibility[message.visibility] : message.visibility;
|
|
13414
14291
|
return object;
|
|
13415
14292
|
};
|
|
13416
14293
|
|
|
@@ -15455,6 +16332,7 @@
|
|
|
15455
16332
|
* @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options
|
|
15456
16333
|
* @property {Array.<google.protobuf.EnumDescriptorProto.IEnumReservedRange>|null} [reservedRange] EnumDescriptorProto reservedRange
|
|
15457
16334
|
* @property {Array.<string>|null} [reservedName] EnumDescriptorProto reservedName
|
|
16335
|
+
* @property {google.protobuf.SymbolVisibility|null} [visibility] EnumDescriptorProto visibility
|
|
15458
16336
|
*/
|
|
15459
16337
|
|
|
15460
16338
|
/**
|
|
@@ -15515,6 +16393,14 @@
|
|
|
15515
16393
|
*/
|
|
15516
16394
|
EnumDescriptorProto.prototype.reservedName = $util.emptyArray;
|
|
15517
16395
|
|
|
16396
|
+
/**
|
|
16397
|
+
* EnumDescriptorProto visibility.
|
|
16398
|
+
* @member {google.protobuf.SymbolVisibility} visibility
|
|
16399
|
+
* @memberof google.protobuf.EnumDescriptorProto
|
|
16400
|
+
* @instance
|
|
16401
|
+
*/
|
|
16402
|
+
EnumDescriptorProto.prototype.visibility = 0;
|
|
16403
|
+
|
|
15518
16404
|
/**
|
|
15519
16405
|
* Creates a new EnumDescriptorProto instance using the specified properties.
|
|
15520
16406
|
* @function create
|
|
@@ -15552,6 +16438,8 @@
|
|
|
15552
16438
|
if (message.reservedName != null && message.reservedName.length)
|
|
15553
16439
|
for (var i = 0; i < message.reservedName.length; ++i)
|
|
15554
16440
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.reservedName[i]);
|
|
16441
|
+
if (message.visibility != null && Object.hasOwnProperty.call(message, "visibility"))
|
|
16442
|
+
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.visibility);
|
|
15555
16443
|
return writer;
|
|
15556
16444
|
};
|
|
15557
16445
|
|
|
@@ -15614,6 +16502,10 @@
|
|
|
15614
16502
|
message.reservedName.push(reader.string());
|
|
15615
16503
|
break;
|
|
15616
16504
|
}
|
|
16505
|
+
case 6: {
|
|
16506
|
+
message.visibility = reader.int32();
|
|
16507
|
+
break;
|
|
16508
|
+
}
|
|
15617
16509
|
default:
|
|
15618
16510
|
reader.skipType(tag & 7);
|
|
15619
16511
|
break;
|
|
@@ -15682,6 +16574,15 @@
|
|
|
15682
16574
|
if (!$util.isString(message.reservedName[i]))
|
|
15683
16575
|
return "reservedName: string[] expected";
|
|
15684
16576
|
}
|
|
16577
|
+
if (message.visibility != null && message.hasOwnProperty("visibility"))
|
|
16578
|
+
switch (message.visibility) {
|
|
16579
|
+
default:
|
|
16580
|
+
return "visibility: enum value expected";
|
|
16581
|
+
case 0:
|
|
16582
|
+
case 1:
|
|
16583
|
+
case 2:
|
|
16584
|
+
break;
|
|
16585
|
+
}
|
|
15685
16586
|
return null;
|
|
15686
16587
|
};
|
|
15687
16588
|
|
|
@@ -15731,10 +16632,30 @@
|
|
|
15731
16632
|
for (var i = 0; i < object.reservedName.length; ++i)
|
|
15732
16633
|
message.reservedName[i] = String(object.reservedName[i]);
|
|
15733
16634
|
}
|
|
15734
|
-
|
|
15735
|
-
|
|
15736
|
-
|
|
15737
|
-
|
|
16635
|
+
switch (object.visibility) {
|
|
16636
|
+
default:
|
|
16637
|
+
if (typeof object.visibility === "number") {
|
|
16638
|
+
message.visibility = object.visibility;
|
|
16639
|
+
break;
|
|
16640
|
+
}
|
|
16641
|
+
break;
|
|
16642
|
+
case "VISIBILITY_UNSET":
|
|
16643
|
+
case 0:
|
|
16644
|
+
message.visibility = 0;
|
|
16645
|
+
break;
|
|
16646
|
+
case "VISIBILITY_LOCAL":
|
|
16647
|
+
case 1:
|
|
16648
|
+
message.visibility = 1;
|
|
16649
|
+
break;
|
|
16650
|
+
case "VISIBILITY_EXPORT":
|
|
16651
|
+
case 2:
|
|
16652
|
+
message.visibility = 2;
|
|
16653
|
+
break;
|
|
16654
|
+
}
|
|
16655
|
+
return message;
|
|
16656
|
+
};
|
|
16657
|
+
|
|
16658
|
+
/**
|
|
15738
16659
|
* Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
|
|
15739
16660
|
* @function toObject
|
|
15740
16661
|
* @memberof google.protobuf.EnumDescriptorProto
|
|
@@ -15755,6 +16676,7 @@
|
|
|
15755
16676
|
if (options.defaults) {
|
|
15756
16677
|
object.name = "";
|
|
15757
16678
|
object.options = null;
|
|
16679
|
+
object.visibility = options.enums === String ? "VISIBILITY_UNSET" : 0;
|
|
15758
16680
|
}
|
|
15759
16681
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
15760
16682
|
object.name = message.name;
|
|
@@ -15775,6 +16697,8 @@
|
|
|
15775
16697
|
for (var j = 0; j < message.reservedName.length; ++j)
|
|
15776
16698
|
object.reservedName[j] = message.reservedName[j];
|
|
15777
16699
|
}
|
|
16700
|
+
if (message.visibility != null && message.hasOwnProperty("visibility"))
|
|
16701
|
+
object.visibility = options.enums === String ? $root.google.protobuf.SymbolVisibility[message.visibility] === undefined ? message.visibility : $root.google.protobuf.SymbolVisibility[message.visibility] : message.visibility;
|
|
15778
16702
|
return object;
|
|
15779
16703
|
};
|
|
15780
16704
|
|
|
@@ -18020,6 +18944,7 @@
|
|
|
18020
18944
|
* @property {Array.<google.protobuf.FieldOptions.OptionTargetType>|null} [targets] FieldOptions targets
|
|
18021
18945
|
* @property {Array.<google.protobuf.FieldOptions.IEditionDefault>|null} [editionDefaults] FieldOptions editionDefaults
|
|
18022
18946
|
* @property {google.protobuf.IFeatureSet|null} [features] FieldOptions features
|
|
18947
|
+
* @property {google.protobuf.FieldOptions.IFeatureSupport|null} [featureSupport] FieldOptions featureSupport
|
|
18023
18948
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FieldOptions uninterpretedOption
|
|
18024
18949
|
* @property {Array.<google.api.FieldBehavior>|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior
|
|
18025
18950
|
*/
|
|
@@ -18139,6 +19064,14 @@
|
|
|
18139
19064
|
*/
|
|
18140
19065
|
FieldOptions.prototype.features = null;
|
|
18141
19066
|
|
|
19067
|
+
/**
|
|
19068
|
+
* FieldOptions featureSupport.
|
|
19069
|
+
* @member {google.protobuf.FieldOptions.IFeatureSupport|null|undefined} featureSupport
|
|
19070
|
+
* @memberof google.protobuf.FieldOptions
|
|
19071
|
+
* @instance
|
|
19072
|
+
*/
|
|
19073
|
+
FieldOptions.prototype.featureSupport = null;
|
|
19074
|
+
|
|
18142
19075
|
/**
|
|
18143
19076
|
* FieldOptions uninterpretedOption.
|
|
18144
19077
|
* @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
|
|
@@ -18205,6 +19138,8 @@
|
|
|
18205
19138
|
$root.google.protobuf.FieldOptions.EditionDefault.encode(message.editionDefaults[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
|
|
18206
19139
|
if (message.features != null && Object.hasOwnProperty.call(message, "features"))
|
|
18207
19140
|
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
|
|
19141
|
+
if (message.featureSupport != null && Object.hasOwnProperty.call(message, "featureSupport"))
|
|
19142
|
+
$root.google.protobuf.FieldOptions.FeatureSupport.encode(message.featureSupport, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
|
|
18208
19143
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
|
18209
19144
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
|
18210
19145
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
@@ -18304,6 +19239,10 @@
|
|
|
18304
19239
|
message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
18305
19240
|
break;
|
|
18306
19241
|
}
|
|
19242
|
+
case 22: {
|
|
19243
|
+
message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.decode(reader, reader.uint32());
|
|
19244
|
+
break;
|
|
19245
|
+
}
|
|
18307
19246
|
case 999: {
|
|
18308
19247
|
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
|
|
18309
19248
|
message.uninterpretedOption = [];
|
|
@@ -18435,6 +19374,11 @@
|
|
|
18435
19374
|
if (error)
|
|
18436
19375
|
return "features." + error;
|
|
18437
19376
|
}
|
|
19377
|
+
if (message.featureSupport != null && message.hasOwnProperty("featureSupport")) {
|
|
19378
|
+
var error = $root.google.protobuf.FieldOptions.FeatureSupport.verify(message.featureSupport);
|
|
19379
|
+
if (error)
|
|
19380
|
+
return "featureSupport." + error;
|
|
19381
|
+
}
|
|
18438
19382
|
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
|
|
18439
19383
|
if (!Array.isArray(message.uninterpretedOption))
|
|
18440
19384
|
return "uninterpretedOption: array expected";
|
|
@@ -18618,6 +19562,11 @@
|
|
|
18618
19562
|
throw TypeError(".google.protobuf.FieldOptions.features: object expected");
|
|
18619
19563
|
message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
|
|
18620
19564
|
}
|
|
19565
|
+
if (object.featureSupport != null) {
|
|
19566
|
+
if (typeof object.featureSupport !== "object")
|
|
19567
|
+
throw TypeError(".google.protobuf.FieldOptions.featureSupport: object expected");
|
|
19568
|
+
message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.fromObject(object.featureSupport);
|
|
19569
|
+
}
|
|
18621
19570
|
if (object.uninterpretedOption) {
|
|
18622
19571
|
if (!Array.isArray(object.uninterpretedOption))
|
|
18623
19572
|
throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected");
|
|
@@ -18710,6 +19659,7 @@
|
|
|
18710
19659
|
object.debugRedact = false;
|
|
18711
19660
|
object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0;
|
|
18712
19661
|
object.features = null;
|
|
19662
|
+
object.featureSupport = null;
|
|
18713
19663
|
}
|
|
18714
19664
|
if (message.ctype != null && message.hasOwnProperty("ctype"))
|
|
18715
19665
|
object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] === undefined ? message.ctype : $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype;
|
|
@@ -18741,6 +19691,8 @@
|
|
|
18741
19691
|
}
|
|
18742
19692
|
if (message.features != null && message.hasOwnProperty("features"))
|
|
18743
19693
|
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
|
19694
|
+
if (message.featureSupport != null && message.hasOwnProperty("featureSupport"))
|
|
19695
|
+
object.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.toObject(message.featureSupport, options);
|
|
18744
19696
|
if (message.uninterpretedOption && message.uninterpretedOption.length) {
|
|
18745
19697
|
object.uninterpretedOption = [];
|
|
18746
19698
|
for (var j = 0; j < message.uninterpretedOption.length; ++j)
|
|
@@ -19011,6 +19963,7 @@
|
|
|
19011
19963
|
default:
|
|
19012
19964
|
return "edition: enum value expected";
|
|
19013
19965
|
case 0:
|
|
19966
|
+
case 900:
|
|
19014
19967
|
case 998:
|
|
19015
19968
|
case 999:
|
|
19016
19969
|
case 1000:
|
|
@@ -19052,103 +20005,589 @@
|
|
|
19052
20005
|
case 0:
|
|
19053
20006
|
message.edition = 0;
|
|
19054
20007
|
break;
|
|
20008
|
+
case "EDITION_LEGACY":
|
|
20009
|
+
case 900:
|
|
20010
|
+
message.edition = 900;
|
|
20011
|
+
break;
|
|
20012
|
+
case "EDITION_PROTO2":
|
|
20013
|
+
case 998:
|
|
20014
|
+
message.edition = 998;
|
|
20015
|
+
break;
|
|
20016
|
+
case "EDITION_PROTO3":
|
|
20017
|
+
case 999:
|
|
20018
|
+
message.edition = 999;
|
|
20019
|
+
break;
|
|
20020
|
+
case "EDITION_2023":
|
|
20021
|
+
case 1000:
|
|
20022
|
+
message.edition = 1000;
|
|
20023
|
+
break;
|
|
20024
|
+
case "EDITION_2024":
|
|
20025
|
+
case 1001:
|
|
20026
|
+
message.edition = 1001;
|
|
20027
|
+
break;
|
|
20028
|
+
case "EDITION_1_TEST_ONLY":
|
|
20029
|
+
case 1:
|
|
20030
|
+
message.edition = 1;
|
|
20031
|
+
break;
|
|
20032
|
+
case "EDITION_2_TEST_ONLY":
|
|
20033
|
+
case 2:
|
|
20034
|
+
message.edition = 2;
|
|
20035
|
+
break;
|
|
20036
|
+
case "EDITION_99997_TEST_ONLY":
|
|
20037
|
+
case 99997:
|
|
20038
|
+
message.edition = 99997;
|
|
20039
|
+
break;
|
|
20040
|
+
case "EDITION_99998_TEST_ONLY":
|
|
20041
|
+
case 99998:
|
|
20042
|
+
message.edition = 99998;
|
|
20043
|
+
break;
|
|
20044
|
+
case "EDITION_99999_TEST_ONLY":
|
|
20045
|
+
case 99999:
|
|
20046
|
+
message.edition = 99999;
|
|
20047
|
+
break;
|
|
20048
|
+
case "EDITION_MAX":
|
|
20049
|
+
case 2147483647:
|
|
20050
|
+
message.edition = 2147483647;
|
|
20051
|
+
break;
|
|
20052
|
+
}
|
|
20053
|
+
if (object.value != null)
|
|
20054
|
+
message.value = String(object.value);
|
|
20055
|
+
return message;
|
|
20056
|
+
};
|
|
20057
|
+
|
|
20058
|
+
/**
|
|
20059
|
+
* Creates a plain object from an EditionDefault message. Also converts values to other types if specified.
|
|
20060
|
+
* @function toObject
|
|
20061
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
20062
|
+
* @static
|
|
20063
|
+
* @param {google.protobuf.FieldOptions.EditionDefault} message EditionDefault
|
|
20064
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
20065
|
+
* @returns {Object.<string,*>} Plain object
|
|
20066
|
+
*/
|
|
20067
|
+
EditionDefault.toObject = function toObject(message, options) {
|
|
20068
|
+
if (!options)
|
|
20069
|
+
options = {};
|
|
20070
|
+
var object = {};
|
|
20071
|
+
if (options.defaults) {
|
|
20072
|
+
object.value = "";
|
|
20073
|
+
object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
20074
|
+
}
|
|
20075
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
20076
|
+
object.value = message.value;
|
|
20077
|
+
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
20078
|
+
object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
|
|
20079
|
+
return object;
|
|
20080
|
+
};
|
|
20081
|
+
|
|
20082
|
+
/**
|
|
20083
|
+
* Converts this EditionDefault to JSON.
|
|
20084
|
+
* @function toJSON
|
|
20085
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
20086
|
+
* @instance
|
|
20087
|
+
* @returns {Object.<string,*>} JSON object
|
|
20088
|
+
*/
|
|
20089
|
+
EditionDefault.prototype.toJSON = function toJSON() {
|
|
20090
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
20091
|
+
};
|
|
20092
|
+
|
|
20093
|
+
/**
|
|
20094
|
+
* Gets the default type url for EditionDefault
|
|
20095
|
+
* @function getTypeUrl
|
|
20096
|
+
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
20097
|
+
* @static
|
|
20098
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
20099
|
+
* @returns {string} The default type url
|
|
20100
|
+
*/
|
|
20101
|
+
EditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
20102
|
+
if (typeUrlPrefix === undefined) {
|
|
20103
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
20104
|
+
}
|
|
20105
|
+
return typeUrlPrefix + "/google.protobuf.FieldOptions.EditionDefault";
|
|
20106
|
+
};
|
|
20107
|
+
|
|
20108
|
+
return EditionDefault;
|
|
20109
|
+
})();
|
|
20110
|
+
|
|
20111
|
+
FieldOptions.FeatureSupport = (function() {
|
|
20112
|
+
|
|
20113
|
+
/**
|
|
20114
|
+
* Properties of a FeatureSupport.
|
|
20115
|
+
* @memberof google.protobuf.FieldOptions
|
|
20116
|
+
* @interface IFeatureSupport
|
|
20117
|
+
* @property {google.protobuf.Edition|null} [editionIntroduced] FeatureSupport editionIntroduced
|
|
20118
|
+
* @property {google.protobuf.Edition|null} [editionDeprecated] FeatureSupport editionDeprecated
|
|
20119
|
+
* @property {string|null} [deprecationWarning] FeatureSupport deprecationWarning
|
|
20120
|
+
* @property {google.protobuf.Edition|null} [editionRemoved] FeatureSupport editionRemoved
|
|
20121
|
+
*/
|
|
20122
|
+
|
|
20123
|
+
/**
|
|
20124
|
+
* Constructs a new FeatureSupport.
|
|
20125
|
+
* @memberof google.protobuf.FieldOptions
|
|
20126
|
+
* @classdesc Represents a FeatureSupport.
|
|
20127
|
+
* @implements IFeatureSupport
|
|
20128
|
+
* @constructor
|
|
20129
|
+
* @param {google.protobuf.FieldOptions.IFeatureSupport=} [properties] Properties to set
|
|
20130
|
+
*/
|
|
20131
|
+
function FeatureSupport(properties) {
|
|
20132
|
+
if (properties)
|
|
20133
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20134
|
+
if (properties[keys[i]] != null)
|
|
20135
|
+
this[keys[i]] = properties[keys[i]];
|
|
20136
|
+
}
|
|
20137
|
+
|
|
20138
|
+
/**
|
|
20139
|
+
* FeatureSupport editionIntroduced.
|
|
20140
|
+
* @member {google.protobuf.Edition} editionIntroduced
|
|
20141
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
20142
|
+
* @instance
|
|
20143
|
+
*/
|
|
20144
|
+
FeatureSupport.prototype.editionIntroduced = 0;
|
|
20145
|
+
|
|
20146
|
+
/**
|
|
20147
|
+
* FeatureSupport editionDeprecated.
|
|
20148
|
+
* @member {google.protobuf.Edition} editionDeprecated
|
|
20149
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
20150
|
+
* @instance
|
|
20151
|
+
*/
|
|
20152
|
+
FeatureSupport.prototype.editionDeprecated = 0;
|
|
20153
|
+
|
|
20154
|
+
/**
|
|
20155
|
+
* FeatureSupport deprecationWarning.
|
|
20156
|
+
* @member {string} deprecationWarning
|
|
20157
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
20158
|
+
* @instance
|
|
20159
|
+
*/
|
|
20160
|
+
FeatureSupport.prototype.deprecationWarning = "";
|
|
20161
|
+
|
|
20162
|
+
/**
|
|
20163
|
+
* FeatureSupport editionRemoved.
|
|
20164
|
+
* @member {google.protobuf.Edition} editionRemoved
|
|
20165
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
20166
|
+
* @instance
|
|
20167
|
+
*/
|
|
20168
|
+
FeatureSupport.prototype.editionRemoved = 0;
|
|
20169
|
+
|
|
20170
|
+
/**
|
|
20171
|
+
* Creates a new FeatureSupport instance using the specified properties.
|
|
20172
|
+
* @function create
|
|
20173
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
20174
|
+
* @static
|
|
20175
|
+
* @param {google.protobuf.FieldOptions.IFeatureSupport=} [properties] Properties to set
|
|
20176
|
+
* @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport instance
|
|
20177
|
+
*/
|
|
20178
|
+
FeatureSupport.create = function create(properties) {
|
|
20179
|
+
return new FeatureSupport(properties);
|
|
20180
|
+
};
|
|
20181
|
+
|
|
20182
|
+
/**
|
|
20183
|
+
* Encodes the specified FeatureSupport message. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
|
|
20184
|
+
* @function encode
|
|
20185
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
20186
|
+
* @static
|
|
20187
|
+
* @param {google.protobuf.FieldOptions.IFeatureSupport} message FeatureSupport message or plain object to encode
|
|
20188
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
20189
|
+
* @returns {$protobuf.Writer} Writer
|
|
20190
|
+
*/
|
|
20191
|
+
FeatureSupport.encode = function encode(message, writer) {
|
|
20192
|
+
if (!writer)
|
|
20193
|
+
writer = $Writer.create();
|
|
20194
|
+
if (message.editionIntroduced != null && Object.hasOwnProperty.call(message, "editionIntroduced"))
|
|
20195
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.editionIntroduced);
|
|
20196
|
+
if (message.editionDeprecated != null && Object.hasOwnProperty.call(message, "editionDeprecated"))
|
|
20197
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.editionDeprecated);
|
|
20198
|
+
if (message.deprecationWarning != null && Object.hasOwnProperty.call(message, "deprecationWarning"))
|
|
20199
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.deprecationWarning);
|
|
20200
|
+
if (message.editionRemoved != null && Object.hasOwnProperty.call(message, "editionRemoved"))
|
|
20201
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.editionRemoved);
|
|
20202
|
+
return writer;
|
|
20203
|
+
};
|
|
20204
|
+
|
|
20205
|
+
/**
|
|
20206
|
+
* Encodes the specified FeatureSupport message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
|
|
20207
|
+
* @function encodeDelimited
|
|
20208
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
20209
|
+
* @static
|
|
20210
|
+
* @param {google.protobuf.FieldOptions.IFeatureSupport} message FeatureSupport message or plain object to encode
|
|
20211
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
20212
|
+
* @returns {$protobuf.Writer} Writer
|
|
20213
|
+
*/
|
|
20214
|
+
FeatureSupport.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20215
|
+
return this.encode(message, writer).ldelim();
|
|
20216
|
+
};
|
|
20217
|
+
|
|
20218
|
+
/**
|
|
20219
|
+
* Decodes a FeatureSupport message from the specified reader or buffer.
|
|
20220
|
+
* @function decode
|
|
20221
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
20222
|
+
* @static
|
|
20223
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
20224
|
+
* @param {number} [length] Message length if known beforehand
|
|
20225
|
+
* @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
|
|
20226
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20227
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20228
|
+
*/
|
|
20229
|
+
FeatureSupport.decode = function decode(reader, length, error) {
|
|
20230
|
+
if (!(reader instanceof $Reader))
|
|
20231
|
+
reader = $Reader.create(reader);
|
|
20232
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions.FeatureSupport();
|
|
20233
|
+
while (reader.pos < end) {
|
|
20234
|
+
var tag = reader.uint32();
|
|
20235
|
+
if (tag === error)
|
|
20236
|
+
break;
|
|
20237
|
+
switch (tag >>> 3) {
|
|
20238
|
+
case 1: {
|
|
20239
|
+
message.editionIntroduced = reader.int32();
|
|
20240
|
+
break;
|
|
20241
|
+
}
|
|
20242
|
+
case 2: {
|
|
20243
|
+
message.editionDeprecated = reader.int32();
|
|
20244
|
+
break;
|
|
20245
|
+
}
|
|
20246
|
+
case 3: {
|
|
20247
|
+
message.deprecationWarning = reader.string();
|
|
20248
|
+
break;
|
|
20249
|
+
}
|
|
20250
|
+
case 4: {
|
|
20251
|
+
message.editionRemoved = reader.int32();
|
|
20252
|
+
break;
|
|
20253
|
+
}
|
|
20254
|
+
default:
|
|
20255
|
+
reader.skipType(tag & 7);
|
|
20256
|
+
break;
|
|
20257
|
+
}
|
|
20258
|
+
}
|
|
20259
|
+
return message;
|
|
20260
|
+
};
|
|
20261
|
+
|
|
20262
|
+
/**
|
|
20263
|
+
* Decodes a FeatureSupport message from the specified reader or buffer, length delimited.
|
|
20264
|
+
* @function decodeDelimited
|
|
20265
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
20266
|
+
* @static
|
|
20267
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
20268
|
+
* @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
|
|
20269
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20270
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20271
|
+
*/
|
|
20272
|
+
FeatureSupport.decodeDelimited = function decodeDelimited(reader) {
|
|
20273
|
+
if (!(reader instanceof $Reader))
|
|
20274
|
+
reader = new $Reader(reader);
|
|
20275
|
+
return this.decode(reader, reader.uint32());
|
|
20276
|
+
};
|
|
20277
|
+
|
|
20278
|
+
/**
|
|
20279
|
+
* Verifies a FeatureSupport message.
|
|
20280
|
+
* @function verify
|
|
20281
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
20282
|
+
* @static
|
|
20283
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
20284
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
20285
|
+
*/
|
|
20286
|
+
FeatureSupport.verify = function verify(message) {
|
|
20287
|
+
if (typeof message !== "object" || message === null)
|
|
20288
|
+
return "object expected";
|
|
20289
|
+
if (message.editionIntroduced != null && message.hasOwnProperty("editionIntroduced"))
|
|
20290
|
+
switch (message.editionIntroduced) {
|
|
20291
|
+
default:
|
|
20292
|
+
return "editionIntroduced: enum value expected";
|
|
20293
|
+
case 0:
|
|
20294
|
+
case 900:
|
|
20295
|
+
case 998:
|
|
20296
|
+
case 999:
|
|
20297
|
+
case 1000:
|
|
20298
|
+
case 1001:
|
|
20299
|
+
case 1:
|
|
20300
|
+
case 2:
|
|
20301
|
+
case 99997:
|
|
20302
|
+
case 99998:
|
|
20303
|
+
case 99999:
|
|
20304
|
+
case 2147483647:
|
|
20305
|
+
break;
|
|
20306
|
+
}
|
|
20307
|
+
if (message.editionDeprecated != null && message.hasOwnProperty("editionDeprecated"))
|
|
20308
|
+
switch (message.editionDeprecated) {
|
|
20309
|
+
default:
|
|
20310
|
+
return "editionDeprecated: enum value expected";
|
|
20311
|
+
case 0:
|
|
20312
|
+
case 900:
|
|
20313
|
+
case 998:
|
|
20314
|
+
case 999:
|
|
20315
|
+
case 1000:
|
|
20316
|
+
case 1001:
|
|
20317
|
+
case 1:
|
|
20318
|
+
case 2:
|
|
20319
|
+
case 99997:
|
|
20320
|
+
case 99998:
|
|
20321
|
+
case 99999:
|
|
20322
|
+
case 2147483647:
|
|
20323
|
+
break;
|
|
20324
|
+
}
|
|
20325
|
+
if (message.deprecationWarning != null && message.hasOwnProperty("deprecationWarning"))
|
|
20326
|
+
if (!$util.isString(message.deprecationWarning))
|
|
20327
|
+
return "deprecationWarning: string expected";
|
|
20328
|
+
if (message.editionRemoved != null && message.hasOwnProperty("editionRemoved"))
|
|
20329
|
+
switch (message.editionRemoved) {
|
|
20330
|
+
default:
|
|
20331
|
+
return "editionRemoved: enum value expected";
|
|
20332
|
+
case 0:
|
|
20333
|
+
case 900:
|
|
20334
|
+
case 998:
|
|
20335
|
+
case 999:
|
|
20336
|
+
case 1000:
|
|
20337
|
+
case 1001:
|
|
20338
|
+
case 1:
|
|
20339
|
+
case 2:
|
|
20340
|
+
case 99997:
|
|
20341
|
+
case 99998:
|
|
20342
|
+
case 99999:
|
|
20343
|
+
case 2147483647:
|
|
20344
|
+
break;
|
|
20345
|
+
}
|
|
20346
|
+
return null;
|
|
20347
|
+
};
|
|
20348
|
+
|
|
20349
|
+
/**
|
|
20350
|
+
* Creates a FeatureSupport message from a plain object. Also converts values to their respective internal types.
|
|
20351
|
+
* @function fromObject
|
|
20352
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
20353
|
+
* @static
|
|
20354
|
+
* @param {Object.<string,*>} object Plain object
|
|
20355
|
+
* @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
|
|
20356
|
+
*/
|
|
20357
|
+
FeatureSupport.fromObject = function fromObject(object) {
|
|
20358
|
+
if (object instanceof $root.google.protobuf.FieldOptions.FeatureSupport)
|
|
20359
|
+
return object;
|
|
20360
|
+
var message = new $root.google.protobuf.FieldOptions.FeatureSupport();
|
|
20361
|
+
switch (object.editionIntroduced) {
|
|
20362
|
+
default:
|
|
20363
|
+
if (typeof object.editionIntroduced === "number") {
|
|
20364
|
+
message.editionIntroduced = object.editionIntroduced;
|
|
20365
|
+
break;
|
|
20366
|
+
}
|
|
20367
|
+
break;
|
|
20368
|
+
case "EDITION_UNKNOWN":
|
|
20369
|
+
case 0:
|
|
20370
|
+
message.editionIntroduced = 0;
|
|
20371
|
+
break;
|
|
20372
|
+
case "EDITION_LEGACY":
|
|
20373
|
+
case 900:
|
|
20374
|
+
message.editionIntroduced = 900;
|
|
20375
|
+
break;
|
|
20376
|
+
case "EDITION_PROTO2":
|
|
20377
|
+
case 998:
|
|
20378
|
+
message.editionIntroduced = 998;
|
|
20379
|
+
break;
|
|
20380
|
+
case "EDITION_PROTO3":
|
|
20381
|
+
case 999:
|
|
20382
|
+
message.editionIntroduced = 999;
|
|
20383
|
+
break;
|
|
20384
|
+
case "EDITION_2023":
|
|
20385
|
+
case 1000:
|
|
20386
|
+
message.editionIntroduced = 1000;
|
|
20387
|
+
break;
|
|
20388
|
+
case "EDITION_2024":
|
|
20389
|
+
case 1001:
|
|
20390
|
+
message.editionIntroduced = 1001;
|
|
20391
|
+
break;
|
|
20392
|
+
case "EDITION_1_TEST_ONLY":
|
|
20393
|
+
case 1:
|
|
20394
|
+
message.editionIntroduced = 1;
|
|
20395
|
+
break;
|
|
20396
|
+
case "EDITION_2_TEST_ONLY":
|
|
20397
|
+
case 2:
|
|
20398
|
+
message.editionIntroduced = 2;
|
|
20399
|
+
break;
|
|
20400
|
+
case "EDITION_99997_TEST_ONLY":
|
|
20401
|
+
case 99997:
|
|
20402
|
+
message.editionIntroduced = 99997;
|
|
20403
|
+
break;
|
|
20404
|
+
case "EDITION_99998_TEST_ONLY":
|
|
20405
|
+
case 99998:
|
|
20406
|
+
message.editionIntroduced = 99998;
|
|
20407
|
+
break;
|
|
20408
|
+
case "EDITION_99999_TEST_ONLY":
|
|
20409
|
+
case 99999:
|
|
20410
|
+
message.editionIntroduced = 99999;
|
|
20411
|
+
break;
|
|
20412
|
+
case "EDITION_MAX":
|
|
20413
|
+
case 2147483647:
|
|
20414
|
+
message.editionIntroduced = 2147483647;
|
|
20415
|
+
break;
|
|
20416
|
+
}
|
|
20417
|
+
switch (object.editionDeprecated) {
|
|
20418
|
+
default:
|
|
20419
|
+
if (typeof object.editionDeprecated === "number") {
|
|
20420
|
+
message.editionDeprecated = object.editionDeprecated;
|
|
20421
|
+
break;
|
|
20422
|
+
}
|
|
20423
|
+
break;
|
|
20424
|
+
case "EDITION_UNKNOWN":
|
|
20425
|
+
case 0:
|
|
20426
|
+
message.editionDeprecated = 0;
|
|
20427
|
+
break;
|
|
20428
|
+
case "EDITION_LEGACY":
|
|
20429
|
+
case 900:
|
|
20430
|
+
message.editionDeprecated = 900;
|
|
20431
|
+
break;
|
|
20432
|
+
case "EDITION_PROTO2":
|
|
20433
|
+
case 998:
|
|
20434
|
+
message.editionDeprecated = 998;
|
|
20435
|
+
break;
|
|
20436
|
+
case "EDITION_PROTO3":
|
|
20437
|
+
case 999:
|
|
20438
|
+
message.editionDeprecated = 999;
|
|
20439
|
+
break;
|
|
20440
|
+
case "EDITION_2023":
|
|
20441
|
+
case 1000:
|
|
20442
|
+
message.editionDeprecated = 1000;
|
|
20443
|
+
break;
|
|
20444
|
+
case "EDITION_2024":
|
|
20445
|
+
case 1001:
|
|
20446
|
+
message.editionDeprecated = 1001;
|
|
20447
|
+
break;
|
|
20448
|
+
case "EDITION_1_TEST_ONLY":
|
|
20449
|
+
case 1:
|
|
20450
|
+
message.editionDeprecated = 1;
|
|
20451
|
+
break;
|
|
20452
|
+
case "EDITION_2_TEST_ONLY":
|
|
20453
|
+
case 2:
|
|
20454
|
+
message.editionDeprecated = 2;
|
|
20455
|
+
break;
|
|
20456
|
+
case "EDITION_99997_TEST_ONLY":
|
|
20457
|
+
case 99997:
|
|
20458
|
+
message.editionDeprecated = 99997;
|
|
20459
|
+
break;
|
|
20460
|
+
case "EDITION_99998_TEST_ONLY":
|
|
20461
|
+
case 99998:
|
|
20462
|
+
message.editionDeprecated = 99998;
|
|
20463
|
+
break;
|
|
20464
|
+
case "EDITION_99999_TEST_ONLY":
|
|
20465
|
+
case 99999:
|
|
20466
|
+
message.editionDeprecated = 99999;
|
|
20467
|
+
break;
|
|
20468
|
+
case "EDITION_MAX":
|
|
20469
|
+
case 2147483647:
|
|
20470
|
+
message.editionDeprecated = 2147483647;
|
|
20471
|
+
break;
|
|
20472
|
+
}
|
|
20473
|
+
if (object.deprecationWarning != null)
|
|
20474
|
+
message.deprecationWarning = String(object.deprecationWarning);
|
|
20475
|
+
switch (object.editionRemoved) {
|
|
20476
|
+
default:
|
|
20477
|
+
if (typeof object.editionRemoved === "number") {
|
|
20478
|
+
message.editionRemoved = object.editionRemoved;
|
|
20479
|
+
break;
|
|
20480
|
+
}
|
|
20481
|
+
break;
|
|
20482
|
+
case "EDITION_UNKNOWN":
|
|
20483
|
+
case 0:
|
|
20484
|
+
message.editionRemoved = 0;
|
|
20485
|
+
break;
|
|
20486
|
+
case "EDITION_LEGACY":
|
|
20487
|
+
case 900:
|
|
20488
|
+
message.editionRemoved = 900;
|
|
20489
|
+
break;
|
|
19055
20490
|
case "EDITION_PROTO2":
|
|
19056
20491
|
case 998:
|
|
19057
|
-
message.
|
|
20492
|
+
message.editionRemoved = 998;
|
|
19058
20493
|
break;
|
|
19059
20494
|
case "EDITION_PROTO3":
|
|
19060
20495
|
case 999:
|
|
19061
|
-
message.
|
|
20496
|
+
message.editionRemoved = 999;
|
|
19062
20497
|
break;
|
|
19063
20498
|
case "EDITION_2023":
|
|
19064
20499
|
case 1000:
|
|
19065
|
-
message.
|
|
20500
|
+
message.editionRemoved = 1000;
|
|
19066
20501
|
break;
|
|
19067
20502
|
case "EDITION_2024":
|
|
19068
20503
|
case 1001:
|
|
19069
|
-
message.
|
|
20504
|
+
message.editionRemoved = 1001;
|
|
19070
20505
|
break;
|
|
19071
20506
|
case "EDITION_1_TEST_ONLY":
|
|
19072
20507
|
case 1:
|
|
19073
|
-
message.
|
|
20508
|
+
message.editionRemoved = 1;
|
|
19074
20509
|
break;
|
|
19075
20510
|
case "EDITION_2_TEST_ONLY":
|
|
19076
20511
|
case 2:
|
|
19077
|
-
message.
|
|
20512
|
+
message.editionRemoved = 2;
|
|
19078
20513
|
break;
|
|
19079
20514
|
case "EDITION_99997_TEST_ONLY":
|
|
19080
20515
|
case 99997:
|
|
19081
|
-
message.
|
|
20516
|
+
message.editionRemoved = 99997;
|
|
19082
20517
|
break;
|
|
19083
20518
|
case "EDITION_99998_TEST_ONLY":
|
|
19084
20519
|
case 99998:
|
|
19085
|
-
message.
|
|
20520
|
+
message.editionRemoved = 99998;
|
|
19086
20521
|
break;
|
|
19087
20522
|
case "EDITION_99999_TEST_ONLY":
|
|
19088
20523
|
case 99999:
|
|
19089
|
-
message.
|
|
20524
|
+
message.editionRemoved = 99999;
|
|
19090
20525
|
break;
|
|
19091
20526
|
case "EDITION_MAX":
|
|
19092
20527
|
case 2147483647:
|
|
19093
|
-
message.
|
|
20528
|
+
message.editionRemoved = 2147483647;
|
|
19094
20529
|
break;
|
|
19095
20530
|
}
|
|
19096
|
-
if (object.value != null)
|
|
19097
|
-
message.value = String(object.value);
|
|
19098
20531
|
return message;
|
|
19099
20532
|
};
|
|
19100
20533
|
|
|
19101
20534
|
/**
|
|
19102
|
-
* Creates a plain object from
|
|
20535
|
+
* Creates a plain object from a FeatureSupport message. Also converts values to other types if specified.
|
|
19103
20536
|
* @function toObject
|
|
19104
|
-
* @memberof google.protobuf.FieldOptions.
|
|
20537
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
19105
20538
|
* @static
|
|
19106
|
-
* @param {google.protobuf.FieldOptions.
|
|
20539
|
+
* @param {google.protobuf.FieldOptions.FeatureSupport} message FeatureSupport
|
|
19107
20540
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
19108
20541
|
* @returns {Object.<string,*>} Plain object
|
|
19109
20542
|
*/
|
|
19110
|
-
|
|
20543
|
+
FeatureSupport.toObject = function toObject(message, options) {
|
|
19111
20544
|
if (!options)
|
|
19112
20545
|
options = {};
|
|
19113
20546
|
var object = {};
|
|
19114
20547
|
if (options.defaults) {
|
|
19115
|
-
object.
|
|
19116
|
-
object.
|
|
20548
|
+
object.editionIntroduced = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
20549
|
+
object.editionDeprecated = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
20550
|
+
object.deprecationWarning = "";
|
|
20551
|
+
object.editionRemoved = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
19117
20552
|
}
|
|
19118
|
-
if (message.
|
|
19119
|
-
object.
|
|
19120
|
-
if (message.
|
|
19121
|
-
object.
|
|
20553
|
+
if (message.editionIntroduced != null && message.hasOwnProperty("editionIntroduced"))
|
|
20554
|
+
object.editionIntroduced = options.enums === String ? $root.google.protobuf.Edition[message.editionIntroduced] === undefined ? message.editionIntroduced : $root.google.protobuf.Edition[message.editionIntroduced] : message.editionIntroduced;
|
|
20555
|
+
if (message.editionDeprecated != null && message.hasOwnProperty("editionDeprecated"))
|
|
20556
|
+
object.editionDeprecated = options.enums === String ? $root.google.protobuf.Edition[message.editionDeprecated] === undefined ? message.editionDeprecated : $root.google.protobuf.Edition[message.editionDeprecated] : message.editionDeprecated;
|
|
20557
|
+
if (message.deprecationWarning != null && message.hasOwnProperty("deprecationWarning"))
|
|
20558
|
+
object.deprecationWarning = message.deprecationWarning;
|
|
20559
|
+
if (message.editionRemoved != null && message.hasOwnProperty("editionRemoved"))
|
|
20560
|
+
object.editionRemoved = options.enums === String ? $root.google.protobuf.Edition[message.editionRemoved] === undefined ? message.editionRemoved : $root.google.protobuf.Edition[message.editionRemoved] : message.editionRemoved;
|
|
19122
20561
|
return object;
|
|
19123
20562
|
};
|
|
19124
20563
|
|
|
19125
20564
|
/**
|
|
19126
|
-
* Converts this
|
|
20565
|
+
* Converts this FeatureSupport to JSON.
|
|
19127
20566
|
* @function toJSON
|
|
19128
|
-
* @memberof google.protobuf.FieldOptions.
|
|
20567
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
19129
20568
|
* @instance
|
|
19130
20569
|
* @returns {Object.<string,*>} JSON object
|
|
19131
20570
|
*/
|
|
19132
|
-
|
|
20571
|
+
FeatureSupport.prototype.toJSON = function toJSON() {
|
|
19133
20572
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
19134
20573
|
};
|
|
19135
20574
|
|
|
19136
20575
|
/**
|
|
19137
|
-
* Gets the default type url for
|
|
20576
|
+
* Gets the default type url for FeatureSupport
|
|
19138
20577
|
* @function getTypeUrl
|
|
19139
|
-
* @memberof google.protobuf.FieldOptions.
|
|
20578
|
+
* @memberof google.protobuf.FieldOptions.FeatureSupport
|
|
19140
20579
|
* @static
|
|
19141
20580
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
19142
20581
|
* @returns {string} The default type url
|
|
19143
20582
|
*/
|
|
19144
|
-
|
|
20583
|
+
FeatureSupport.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
19145
20584
|
if (typeUrlPrefix === undefined) {
|
|
19146
20585
|
typeUrlPrefix = "type.googleapis.com";
|
|
19147
20586
|
}
|
|
19148
|
-
return typeUrlPrefix + "/google.protobuf.FieldOptions.
|
|
20587
|
+
return typeUrlPrefix + "/google.protobuf.FieldOptions.FeatureSupport";
|
|
19149
20588
|
};
|
|
19150
20589
|
|
|
19151
|
-
return
|
|
20590
|
+
return FeatureSupport;
|
|
19152
20591
|
})();
|
|
19153
20592
|
|
|
19154
20593
|
return FieldOptions;
|
|
@@ -19743,6 +21182,7 @@
|
|
|
19743
21182
|
* @property {boolean|null} [deprecated] EnumValueOptions deprecated
|
|
19744
21183
|
* @property {google.protobuf.IFeatureSet|null} [features] EnumValueOptions features
|
|
19745
21184
|
* @property {boolean|null} [debugRedact] EnumValueOptions debugRedact
|
|
21185
|
+
* @property {google.protobuf.FieldOptions.IFeatureSupport|null} [featureSupport] EnumValueOptions featureSupport
|
|
19746
21186
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] EnumValueOptions uninterpretedOption
|
|
19747
21187
|
*/
|
|
19748
21188
|
|
|
@@ -19786,6 +21226,14 @@
|
|
|
19786
21226
|
*/
|
|
19787
21227
|
EnumValueOptions.prototype.debugRedact = false;
|
|
19788
21228
|
|
|
21229
|
+
/**
|
|
21230
|
+
* EnumValueOptions featureSupport.
|
|
21231
|
+
* @member {google.protobuf.FieldOptions.IFeatureSupport|null|undefined} featureSupport
|
|
21232
|
+
* @memberof google.protobuf.EnumValueOptions
|
|
21233
|
+
* @instance
|
|
21234
|
+
*/
|
|
21235
|
+
EnumValueOptions.prototype.featureSupport = null;
|
|
21236
|
+
|
|
19789
21237
|
/**
|
|
19790
21238
|
* EnumValueOptions uninterpretedOption.
|
|
19791
21239
|
* @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
|
|
@@ -19824,6 +21272,8 @@
|
|
|
19824
21272
|
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
19825
21273
|
if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact"))
|
|
19826
21274
|
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.debugRedact);
|
|
21275
|
+
if (message.featureSupport != null && Object.hasOwnProperty.call(message, "featureSupport"))
|
|
21276
|
+
$root.google.protobuf.FieldOptions.FeatureSupport.encode(message.featureSupport, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
19827
21277
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
|
19828
21278
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
|
19829
21279
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
@@ -19875,6 +21325,10 @@
|
|
|
19875
21325
|
message.debugRedact = reader.bool();
|
|
19876
21326
|
break;
|
|
19877
21327
|
}
|
|
21328
|
+
case 4: {
|
|
21329
|
+
message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.decode(reader, reader.uint32());
|
|
21330
|
+
break;
|
|
21331
|
+
}
|
|
19878
21332
|
case 999: {
|
|
19879
21333
|
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
|
|
19880
21334
|
message.uninterpretedOption = [];
|
|
@@ -19927,6 +21381,11 @@
|
|
|
19927
21381
|
if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
|
|
19928
21382
|
if (typeof message.debugRedact !== "boolean")
|
|
19929
21383
|
return "debugRedact: boolean expected";
|
|
21384
|
+
if (message.featureSupport != null && message.hasOwnProperty("featureSupport")) {
|
|
21385
|
+
var error = $root.google.protobuf.FieldOptions.FeatureSupport.verify(message.featureSupport);
|
|
21386
|
+
if (error)
|
|
21387
|
+
return "featureSupport." + error;
|
|
21388
|
+
}
|
|
19930
21389
|
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
|
|
19931
21390
|
if (!Array.isArray(message.uninterpretedOption))
|
|
19932
21391
|
return "uninterpretedOption: array expected";
|
|
@@ -19960,6 +21419,11 @@
|
|
|
19960
21419
|
}
|
|
19961
21420
|
if (object.debugRedact != null)
|
|
19962
21421
|
message.debugRedact = Boolean(object.debugRedact);
|
|
21422
|
+
if (object.featureSupport != null) {
|
|
21423
|
+
if (typeof object.featureSupport !== "object")
|
|
21424
|
+
throw TypeError(".google.protobuf.EnumValueOptions.featureSupport: object expected");
|
|
21425
|
+
message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.fromObject(object.featureSupport);
|
|
21426
|
+
}
|
|
19963
21427
|
if (object.uninterpretedOption) {
|
|
19964
21428
|
if (!Array.isArray(object.uninterpretedOption))
|
|
19965
21429
|
throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected");
|
|
@@ -19992,6 +21456,7 @@
|
|
|
19992
21456
|
object.deprecated = false;
|
|
19993
21457
|
object.features = null;
|
|
19994
21458
|
object.debugRedact = false;
|
|
21459
|
+
object.featureSupport = null;
|
|
19995
21460
|
}
|
|
19996
21461
|
if (message.deprecated != null && message.hasOwnProperty("deprecated"))
|
|
19997
21462
|
object.deprecated = message.deprecated;
|
|
@@ -19999,6 +21464,8 @@
|
|
|
19999
21464
|
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
|
20000
21465
|
if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
|
|
20001
21466
|
object.debugRedact = message.debugRedact;
|
|
21467
|
+
if (message.featureSupport != null && message.hasOwnProperty("featureSupport"))
|
|
21468
|
+
object.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.toObject(message.featureSupport, options);
|
|
20002
21469
|
if (message.uninterpretedOption && message.uninterpretedOption.length) {
|
|
20003
21470
|
object.uninterpretedOption = [];
|
|
20004
21471
|
for (var j = 0; j < message.uninterpretedOption.length; ++j)
|
|
@@ -21438,6 +22905,8 @@
|
|
|
21438
22905
|
* @property {google.protobuf.FeatureSet.Utf8Validation|null} [utf8Validation] FeatureSet utf8Validation
|
|
21439
22906
|
* @property {google.protobuf.FeatureSet.MessageEncoding|null} [messageEncoding] FeatureSet messageEncoding
|
|
21440
22907
|
* @property {google.protobuf.FeatureSet.JsonFormat|null} [jsonFormat] FeatureSet jsonFormat
|
|
22908
|
+
* @property {google.protobuf.FeatureSet.EnforceNamingStyle|null} [enforceNamingStyle] FeatureSet enforceNamingStyle
|
|
22909
|
+
* @property {google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility|null} [defaultSymbolVisibility] FeatureSet defaultSymbolVisibility
|
|
21441
22910
|
*/
|
|
21442
22911
|
|
|
21443
22912
|
/**
|
|
@@ -21503,6 +22972,22 @@
|
|
|
21503
22972
|
*/
|
|
21504
22973
|
FeatureSet.prototype.jsonFormat = 0;
|
|
21505
22974
|
|
|
22975
|
+
/**
|
|
22976
|
+
* FeatureSet enforceNamingStyle.
|
|
22977
|
+
* @member {google.protobuf.FeatureSet.EnforceNamingStyle} enforceNamingStyle
|
|
22978
|
+
* @memberof google.protobuf.FeatureSet
|
|
22979
|
+
* @instance
|
|
22980
|
+
*/
|
|
22981
|
+
FeatureSet.prototype.enforceNamingStyle = 0;
|
|
22982
|
+
|
|
22983
|
+
/**
|
|
22984
|
+
* FeatureSet defaultSymbolVisibility.
|
|
22985
|
+
* @member {google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility} defaultSymbolVisibility
|
|
22986
|
+
* @memberof google.protobuf.FeatureSet
|
|
22987
|
+
* @instance
|
|
22988
|
+
*/
|
|
22989
|
+
FeatureSet.prototype.defaultSymbolVisibility = 0;
|
|
22990
|
+
|
|
21506
22991
|
/**
|
|
21507
22992
|
* Creates a new FeatureSet instance using the specified properties.
|
|
21508
22993
|
* @function create
|
|
@@ -21539,6 +23024,10 @@
|
|
|
21539
23024
|
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.messageEncoding);
|
|
21540
23025
|
if (message.jsonFormat != null && Object.hasOwnProperty.call(message, "jsonFormat"))
|
|
21541
23026
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jsonFormat);
|
|
23027
|
+
if (message.enforceNamingStyle != null && Object.hasOwnProperty.call(message, "enforceNamingStyle"))
|
|
23028
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.enforceNamingStyle);
|
|
23029
|
+
if (message.defaultSymbolVisibility != null && Object.hasOwnProperty.call(message, "defaultSymbolVisibility"))
|
|
23030
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.defaultSymbolVisibility);
|
|
21542
23031
|
return writer;
|
|
21543
23032
|
};
|
|
21544
23033
|
|
|
@@ -21599,6 +23088,14 @@
|
|
|
21599
23088
|
message.jsonFormat = reader.int32();
|
|
21600
23089
|
break;
|
|
21601
23090
|
}
|
|
23091
|
+
case 7: {
|
|
23092
|
+
message.enforceNamingStyle = reader.int32();
|
|
23093
|
+
break;
|
|
23094
|
+
}
|
|
23095
|
+
case 8: {
|
|
23096
|
+
message.defaultSymbolVisibility = reader.int32();
|
|
23097
|
+
break;
|
|
23098
|
+
}
|
|
21602
23099
|
default:
|
|
21603
23100
|
reader.skipType(tag & 7);
|
|
21604
23101
|
break;
|
|
@@ -21689,6 +23186,26 @@
|
|
|
21689
23186
|
case 2:
|
|
21690
23187
|
break;
|
|
21691
23188
|
}
|
|
23189
|
+
if (message.enforceNamingStyle != null && message.hasOwnProperty("enforceNamingStyle"))
|
|
23190
|
+
switch (message.enforceNamingStyle) {
|
|
23191
|
+
default:
|
|
23192
|
+
return "enforceNamingStyle: enum value expected";
|
|
23193
|
+
case 0:
|
|
23194
|
+
case 1:
|
|
23195
|
+
case 2:
|
|
23196
|
+
break;
|
|
23197
|
+
}
|
|
23198
|
+
if (message.defaultSymbolVisibility != null && message.hasOwnProperty("defaultSymbolVisibility"))
|
|
23199
|
+
switch (message.defaultSymbolVisibility) {
|
|
23200
|
+
default:
|
|
23201
|
+
return "defaultSymbolVisibility: enum value expected";
|
|
23202
|
+
case 0:
|
|
23203
|
+
case 1:
|
|
23204
|
+
case 2:
|
|
23205
|
+
case 3:
|
|
23206
|
+
case 4:
|
|
23207
|
+
break;
|
|
23208
|
+
}
|
|
21692
23209
|
return null;
|
|
21693
23210
|
};
|
|
21694
23211
|
|
|
@@ -21828,6 +23345,54 @@
|
|
|
21828
23345
|
message.jsonFormat = 2;
|
|
21829
23346
|
break;
|
|
21830
23347
|
}
|
|
23348
|
+
switch (object.enforceNamingStyle) {
|
|
23349
|
+
default:
|
|
23350
|
+
if (typeof object.enforceNamingStyle === "number") {
|
|
23351
|
+
message.enforceNamingStyle = object.enforceNamingStyle;
|
|
23352
|
+
break;
|
|
23353
|
+
}
|
|
23354
|
+
break;
|
|
23355
|
+
case "ENFORCE_NAMING_STYLE_UNKNOWN":
|
|
23356
|
+
case 0:
|
|
23357
|
+
message.enforceNamingStyle = 0;
|
|
23358
|
+
break;
|
|
23359
|
+
case "STYLE2024":
|
|
23360
|
+
case 1:
|
|
23361
|
+
message.enforceNamingStyle = 1;
|
|
23362
|
+
break;
|
|
23363
|
+
case "STYLE_LEGACY":
|
|
23364
|
+
case 2:
|
|
23365
|
+
message.enforceNamingStyle = 2;
|
|
23366
|
+
break;
|
|
23367
|
+
}
|
|
23368
|
+
switch (object.defaultSymbolVisibility) {
|
|
23369
|
+
default:
|
|
23370
|
+
if (typeof object.defaultSymbolVisibility === "number") {
|
|
23371
|
+
message.defaultSymbolVisibility = object.defaultSymbolVisibility;
|
|
23372
|
+
break;
|
|
23373
|
+
}
|
|
23374
|
+
break;
|
|
23375
|
+
case "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN":
|
|
23376
|
+
case 0:
|
|
23377
|
+
message.defaultSymbolVisibility = 0;
|
|
23378
|
+
break;
|
|
23379
|
+
case "EXPORT_ALL":
|
|
23380
|
+
case 1:
|
|
23381
|
+
message.defaultSymbolVisibility = 1;
|
|
23382
|
+
break;
|
|
23383
|
+
case "EXPORT_TOP_LEVEL":
|
|
23384
|
+
case 2:
|
|
23385
|
+
message.defaultSymbolVisibility = 2;
|
|
23386
|
+
break;
|
|
23387
|
+
case "LOCAL_ALL":
|
|
23388
|
+
case 3:
|
|
23389
|
+
message.defaultSymbolVisibility = 3;
|
|
23390
|
+
break;
|
|
23391
|
+
case "STRICT":
|
|
23392
|
+
case 4:
|
|
23393
|
+
message.defaultSymbolVisibility = 4;
|
|
23394
|
+
break;
|
|
23395
|
+
}
|
|
21831
23396
|
return message;
|
|
21832
23397
|
};
|
|
21833
23398
|
|
|
@@ -21851,6 +23416,8 @@
|
|
|
21851
23416
|
object.utf8Validation = options.enums === String ? "UTF8_VALIDATION_UNKNOWN" : 0;
|
|
21852
23417
|
object.messageEncoding = options.enums === String ? "MESSAGE_ENCODING_UNKNOWN" : 0;
|
|
21853
23418
|
object.jsonFormat = options.enums === String ? "JSON_FORMAT_UNKNOWN" : 0;
|
|
23419
|
+
object.enforceNamingStyle = options.enums === String ? "ENFORCE_NAMING_STYLE_UNKNOWN" : 0;
|
|
23420
|
+
object.defaultSymbolVisibility = options.enums === String ? "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN" : 0;
|
|
21854
23421
|
}
|
|
21855
23422
|
if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence"))
|
|
21856
23423
|
object.fieldPresence = options.enums === String ? $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] === undefined ? message.fieldPresence : $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] : message.fieldPresence;
|
|
@@ -21864,6 +23431,10 @@
|
|
|
21864
23431
|
object.messageEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] === undefined ? message.messageEncoding : $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] : message.messageEncoding;
|
|
21865
23432
|
if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat"))
|
|
21866
23433
|
object.jsonFormat = options.enums === String ? $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] === undefined ? message.jsonFormat : $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] : message.jsonFormat;
|
|
23434
|
+
if (message.enforceNamingStyle != null && message.hasOwnProperty("enforceNamingStyle"))
|
|
23435
|
+
object.enforceNamingStyle = options.enums === String ? $root.google.protobuf.FeatureSet.EnforceNamingStyle[message.enforceNamingStyle] === undefined ? message.enforceNamingStyle : $root.google.protobuf.FeatureSet.EnforceNamingStyle[message.enforceNamingStyle] : message.enforceNamingStyle;
|
|
23436
|
+
if (message.defaultSymbolVisibility != null && message.hasOwnProperty("defaultSymbolVisibility"))
|
|
23437
|
+
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;
|
|
21867
23438
|
return object;
|
|
21868
23439
|
};
|
|
21869
23440
|
|
|
@@ -21991,6 +23562,219 @@
|
|
|
21991
23562
|
return values;
|
|
21992
23563
|
})();
|
|
21993
23564
|
|
|
23565
|
+
/**
|
|
23566
|
+
* EnforceNamingStyle enum.
|
|
23567
|
+
* @name google.protobuf.FeatureSet.EnforceNamingStyle
|
|
23568
|
+
* @enum {number}
|
|
23569
|
+
* @property {number} ENFORCE_NAMING_STYLE_UNKNOWN=0 ENFORCE_NAMING_STYLE_UNKNOWN value
|
|
23570
|
+
* @property {number} STYLE2024=1 STYLE2024 value
|
|
23571
|
+
* @property {number} STYLE_LEGACY=2 STYLE_LEGACY value
|
|
23572
|
+
*/
|
|
23573
|
+
FeatureSet.EnforceNamingStyle = (function() {
|
|
23574
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
23575
|
+
values[valuesById[0] = "ENFORCE_NAMING_STYLE_UNKNOWN"] = 0;
|
|
23576
|
+
values[valuesById[1] = "STYLE2024"] = 1;
|
|
23577
|
+
values[valuesById[2] = "STYLE_LEGACY"] = 2;
|
|
23578
|
+
return values;
|
|
23579
|
+
})();
|
|
23580
|
+
|
|
23581
|
+
FeatureSet.VisibilityFeature = (function() {
|
|
23582
|
+
|
|
23583
|
+
/**
|
|
23584
|
+
* Properties of a VisibilityFeature.
|
|
23585
|
+
* @memberof google.protobuf.FeatureSet
|
|
23586
|
+
* @interface IVisibilityFeature
|
|
23587
|
+
*/
|
|
23588
|
+
|
|
23589
|
+
/**
|
|
23590
|
+
* Constructs a new VisibilityFeature.
|
|
23591
|
+
* @memberof google.protobuf.FeatureSet
|
|
23592
|
+
* @classdesc Represents a VisibilityFeature.
|
|
23593
|
+
* @implements IVisibilityFeature
|
|
23594
|
+
* @constructor
|
|
23595
|
+
* @param {google.protobuf.FeatureSet.IVisibilityFeature=} [properties] Properties to set
|
|
23596
|
+
*/
|
|
23597
|
+
function VisibilityFeature(properties) {
|
|
23598
|
+
if (properties)
|
|
23599
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
23600
|
+
if (properties[keys[i]] != null)
|
|
23601
|
+
this[keys[i]] = properties[keys[i]];
|
|
23602
|
+
}
|
|
23603
|
+
|
|
23604
|
+
/**
|
|
23605
|
+
* Creates a new VisibilityFeature instance using the specified properties.
|
|
23606
|
+
* @function create
|
|
23607
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
23608
|
+
* @static
|
|
23609
|
+
* @param {google.protobuf.FeatureSet.IVisibilityFeature=} [properties] Properties to set
|
|
23610
|
+
* @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature instance
|
|
23611
|
+
*/
|
|
23612
|
+
VisibilityFeature.create = function create(properties) {
|
|
23613
|
+
return new VisibilityFeature(properties);
|
|
23614
|
+
};
|
|
23615
|
+
|
|
23616
|
+
/**
|
|
23617
|
+
* Encodes the specified VisibilityFeature message. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
|
|
23618
|
+
* @function encode
|
|
23619
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
23620
|
+
* @static
|
|
23621
|
+
* @param {google.protobuf.FeatureSet.IVisibilityFeature} message VisibilityFeature message or plain object to encode
|
|
23622
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
23623
|
+
* @returns {$protobuf.Writer} Writer
|
|
23624
|
+
*/
|
|
23625
|
+
VisibilityFeature.encode = function encode(message, writer) {
|
|
23626
|
+
if (!writer)
|
|
23627
|
+
writer = $Writer.create();
|
|
23628
|
+
return writer;
|
|
23629
|
+
};
|
|
23630
|
+
|
|
23631
|
+
/**
|
|
23632
|
+
* Encodes the specified VisibilityFeature message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
|
|
23633
|
+
* @function encodeDelimited
|
|
23634
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
23635
|
+
* @static
|
|
23636
|
+
* @param {google.protobuf.FeatureSet.IVisibilityFeature} message VisibilityFeature message or plain object to encode
|
|
23637
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
23638
|
+
* @returns {$protobuf.Writer} Writer
|
|
23639
|
+
*/
|
|
23640
|
+
VisibilityFeature.encodeDelimited = function encodeDelimited(message, writer) {
|
|
23641
|
+
return this.encode(message, writer).ldelim();
|
|
23642
|
+
};
|
|
23643
|
+
|
|
23644
|
+
/**
|
|
23645
|
+
* Decodes a VisibilityFeature message from the specified reader or buffer.
|
|
23646
|
+
* @function decode
|
|
23647
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
23648
|
+
* @static
|
|
23649
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
23650
|
+
* @param {number} [length] Message length if known beforehand
|
|
23651
|
+
* @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
|
|
23652
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23653
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23654
|
+
*/
|
|
23655
|
+
VisibilityFeature.decode = function decode(reader, length, error) {
|
|
23656
|
+
if (!(reader instanceof $Reader))
|
|
23657
|
+
reader = $Reader.create(reader);
|
|
23658
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSet.VisibilityFeature();
|
|
23659
|
+
while (reader.pos < end) {
|
|
23660
|
+
var tag = reader.uint32();
|
|
23661
|
+
if (tag === error)
|
|
23662
|
+
break;
|
|
23663
|
+
switch (tag >>> 3) {
|
|
23664
|
+
default:
|
|
23665
|
+
reader.skipType(tag & 7);
|
|
23666
|
+
break;
|
|
23667
|
+
}
|
|
23668
|
+
}
|
|
23669
|
+
return message;
|
|
23670
|
+
};
|
|
23671
|
+
|
|
23672
|
+
/**
|
|
23673
|
+
* Decodes a VisibilityFeature message from the specified reader or buffer, length delimited.
|
|
23674
|
+
* @function decodeDelimited
|
|
23675
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
23676
|
+
* @static
|
|
23677
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
23678
|
+
* @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
|
|
23679
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23680
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23681
|
+
*/
|
|
23682
|
+
VisibilityFeature.decodeDelimited = function decodeDelimited(reader) {
|
|
23683
|
+
if (!(reader instanceof $Reader))
|
|
23684
|
+
reader = new $Reader(reader);
|
|
23685
|
+
return this.decode(reader, reader.uint32());
|
|
23686
|
+
};
|
|
23687
|
+
|
|
23688
|
+
/**
|
|
23689
|
+
* Verifies a VisibilityFeature message.
|
|
23690
|
+
* @function verify
|
|
23691
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
23692
|
+
* @static
|
|
23693
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
23694
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
23695
|
+
*/
|
|
23696
|
+
VisibilityFeature.verify = function verify(message) {
|
|
23697
|
+
if (typeof message !== "object" || message === null)
|
|
23698
|
+
return "object expected";
|
|
23699
|
+
return null;
|
|
23700
|
+
};
|
|
23701
|
+
|
|
23702
|
+
/**
|
|
23703
|
+
* Creates a VisibilityFeature message from a plain object. Also converts values to their respective internal types.
|
|
23704
|
+
* @function fromObject
|
|
23705
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
23706
|
+
* @static
|
|
23707
|
+
* @param {Object.<string,*>} object Plain object
|
|
23708
|
+
* @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
|
|
23709
|
+
*/
|
|
23710
|
+
VisibilityFeature.fromObject = function fromObject(object) {
|
|
23711
|
+
if (object instanceof $root.google.protobuf.FeatureSet.VisibilityFeature)
|
|
23712
|
+
return object;
|
|
23713
|
+
return new $root.google.protobuf.FeatureSet.VisibilityFeature();
|
|
23714
|
+
};
|
|
23715
|
+
|
|
23716
|
+
/**
|
|
23717
|
+
* Creates a plain object from a VisibilityFeature message. Also converts values to other types if specified.
|
|
23718
|
+
* @function toObject
|
|
23719
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
23720
|
+
* @static
|
|
23721
|
+
* @param {google.protobuf.FeatureSet.VisibilityFeature} message VisibilityFeature
|
|
23722
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
23723
|
+
* @returns {Object.<string,*>} Plain object
|
|
23724
|
+
*/
|
|
23725
|
+
VisibilityFeature.toObject = function toObject() {
|
|
23726
|
+
return {};
|
|
23727
|
+
};
|
|
23728
|
+
|
|
23729
|
+
/**
|
|
23730
|
+
* Converts this VisibilityFeature to JSON.
|
|
23731
|
+
* @function toJSON
|
|
23732
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
23733
|
+
* @instance
|
|
23734
|
+
* @returns {Object.<string,*>} JSON object
|
|
23735
|
+
*/
|
|
23736
|
+
VisibilityFeature.prototype.toJSON = function toJSON() {
|
|
23737
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
23738
|
+
};
|
|
23739
|
+
|
|
23740
|
+
/**
|
|
23741
|
+
* Gets the default type url for VisibilityFeature
|
|
23742
|
+
* @function getTypeUrl
|
|
23743
|
+
* @memberof google.protobuf.FeatureSet.VisibilityFeature
|
|
23744
|
+
* @static
|
|
23745
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
23746
|
+
* @returns {string} The default type url
|
|
23747
|
+
*/
|
|
23748
|
+
VisibilityFeature.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
23749
|
+
if (typeUrlPrefix === undefined) {
|
|
23750
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
23751
|
+
}
|
|
23752
|
+
return typeUrlPrefix + "/google.protobuf.FeatureSet.VisibilityFeature";
|
|
23753
|
+
};
|
|
23754
|
+
|
|
23755
|
+
/**
|
|
23756
|
+
* DefaultSymbolVisibility enum.
|
|
23757
|
+
* @name google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility
|
|
23758
|
+
* @enum {number}
|
|
23759
|
+
* @property {number} DEFAULT_SYMBOL_VISIBILITY_UNKNOWN=0 DEFAULT_SYMBOL_VISIBILITY_UNKNOWN value
|
|
23760
|
+
* @property {number} EXPORT_ALL=1 EXPORT_ALL value
|
|
23761
|
+
* @property {number} EXPORT_TOP_LEVEL=2 EXPORT_TOP_LEVEL value
|
|
23762
|
+
* @property {number} LOCAL_ALL=3 LOCAL_ALL value
|
|
23763
|
+
* @property {number} STRICT=4 STRICT value
|
|
23764
|
+
*/
|
|
23765
|
+
VisibilityFeature.DefaultSymbolVisibility = (function() {
|
|
23766
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
23767
|
+
values[valuesById[0] = "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN"] = 0;
|
|
23768
|
+
values[valuesById[1] = "EXPORT_ALL"] = 1;
|
|
23769
|
+
values[valuesById[2] = "EXPORT_TOP_LEVEL"] = 2;
|
|
23770
|
+
values[valuesById[3] = "LOCAL_ALL"] = 3;
|
|
23771
|
+
values[valuesById[4] = "STRICT"] = 4;
|
|
23772
|
+
return values;
|
|
23773
|
+
})();
|
|
23774
|
+
|
|
23775
|
+
return VisibilityFeature;
|
|
23776
|
+
})();
|
|
23777
|
+
|
|
21994
23778
|
return FeatureSet;
|
|
21995
23779
|
})();
|
|
21996
23780
|
|
|
@@ -22175,6 +23959,7 @@
|
|
|
22175
23959
|
default:
|
|
22176
23960
|
return "minimumEdition: enum value expected";
|
|
22177
23961
|
case 0:
|
|
23962
|
+
case 900:
|
|
22178
23963
|
case 998:
|
|
22179
23964
|
case 999:
|
|
22180
23965
|
case 1000:
|
|
@@ -22192,6 +23977,7 @@
|
|
|
22192
23977
|
default:
|
|
22193
23978
|
return "maximumEdition: enum value expected";
|
|
22194
23979
|
case 0:
|
|
23980
|
+
case 900:
|
|
22195
23981
|
case 998:
|
|
22196
23982
|
case 999:
|
|
22197
23983
|
case 1000:
|
|
@@ -22240,6 +24026,10 @@
|
|
|
22240
24026
|
case 0:
|
|
22241
24027
|
message.minimumEdition = 0;
|
|
22242
24028
|
break;
|
|
24029
|
+
case "EDITION_LEGACY":
|
|
24030
|
+
case 900:
|
|
24031
|
+
message.minimumEdition = 900;
|
|
24032
|
+
break;
|
|
22243
24033
|
case "EDITION_PROTO2":
|
|
22244
24034
|
case 998:
|
|
22245
24035
|
message.minimumEdition = 998;
|
|
@@ -22292,6 +24082,10 @@
|
|
|
22292
24082
|
case 0:
|
|
22293
24083
|
message.maximumEdition = 0;
|
|
22294
24084
|
break;
|
|
24085
|
+
case "EDITION_LEGACY":
|
|
24086
|
+
case 900:
|
|
24087
|
+
message.maximumEdition = 900;
|
|
24088
|
+
break;
|
|
22295
24089
|
case "EDITION_PROTO2":
|
|
22296
24090
|
case 998:
|
|
22297
24091
|
message.maximumEdition = 998;
|
|
@@ -22400,7 +24194,8 @@
|
|
|
22400
24194
|
* @memberof google.protobuf.FeatureSetDefaults
|
|
22401
24195
|
* @interface IFeatureSetEditionDefault
|
|
22402
24196
|
* @property {google.protobuf.Edition|null} [edition] FeatureSetEditionDefault edition
|
|
22403
|
-
* @property {google.protobuf.IFeatureSet|null} [
|
|
24197
|
+
* @property {google.protobuf.IFeatureSet|null} [overridableFeatures] FeatureSetEditionDefault overridableFeatures
|
|
24198
|
+
* @property {google.protobuf.IFeatureSet|null} [fixedFeatures] FeatureSetEditionDefault fixedFeatures
|
|
22404
24199
|
*/
|
|
22405
24200
|
|
|
22406
24201
|
/**
|
|
@@ -22427,12 +24222,20 @@
|
|
|
22427
24222
|
FeatureSetEditionDefault.prototype.edition = 0;
|
|
22428
24223
|
|
|
22429
24224
|
/**
|
|
22430
|
-
* FeatureSetEditionDefault
|
|
22431
|
-
* @member {google.protobuf.IFeatureSet|null|undefined}
|
|
24225
|
+
* FeatureSetEditionDefault overridableFeatures.
|
|
24226
|
+
* @member {google.protobuf.IFeatureSet|null|undefined} overridableFeatures
|
|
24227
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
24228
|
+
* @instance
|
|
24229
|
+
*/
|
|
24230
|
+
FeatureSetEditionDefault.prototype.overridableFeatures = null;
|
|
24231
|
+
|
|
24232
|
+
/**
|
|
24233
|
+
* FeatureSetEditionDefault fixedFeatures.
|
|
24234
|
+
* @member {google.protobuf.IFeatureSet|null|undefined} fixedFeatures
|
|
22432
24235
|
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
22433
24236
|
* @instance
|
|
22434
24237
|
*/
|
|
22435
|
-
FeatureSetEditionDefault.prototype.
|
|
24238
|
+
FeatureSetEditionDefault.prototype.fixedFeatures = null;
|
|
22436
24239
|
|
|
22437
24240
|
/**
|
|
22438
24241
|
* Creates a new FeatureSetEditionDefault instance using the specified properties.
|
|
@@ -22458,10 +24261,12 @@
|
|
|
22458
24261
|
FeatureSetEditionDefault.encode = function encode(message, writer) {
|
|
22459
24262
|
if (!writer)
|
|
22460
24263
|
writer = $Writer.create();
|
|
22461
|
-
if (message.features != null && Object.hasOwnProperty.call(message, "features"))
|
|
22462
|
-
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
22463
24264
|
if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
|
|
22464
24265
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition);
|
|
24266
|
+
if (message.overridableFeatures != null && Object.hasOwnProperty.call(message, "overridableFeatures"))
|
|
24267
|
+
$root.google.protobuf.FeatureSet.encode(message.overridableFeatures, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
24268
|
+
if (message.fixedFeatures != null && Object.hasOwnProperty.call(message, "fixedFeatures"))
|
|
24269
|
+
$root.google.protobuf.FeatureSet.encode(message.fixedFeatures, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
22465
24270
|
return writer;
|
|
22466
24271
|
};
|
|
22467
24272
|
|
|
@@ -22502,8 +24307,12 @@
|
|
|
22502
24307
|
message.edition = reader.int32();
|
|
22503
24308
|
break;
|
|
22504
24309
|
}
|
|
22505
|
-
case
|
|
22506
|
-
message.
|
|
24310
|
+
case 4: {
|
|
24311
|
+
message.overridableFeatures = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
24312
|
+
break;
|
|
24313
|
+
}
|
|
24314
|
+
case 5: {
|
|
24315
|
+
message.fixedFeatures = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
22507
24316
|
break;
|
|
22508
24317
|
}
|
|
22509
24318
|
default:
|
|
@@ -22546,6 +24355,7 @@
|
|
|
22546
24355
|
default:
|
|
22547
24356
|
return "edition: enum value expected";
|
|
22548
24357
|
case 0:
|
|
24358
|
+
case 900:
|
|
22549
24359
|
case 998:
|
|
22550
24360
|
case 999:
|
|
22551
24361
|
case 1000:
|
|
@@ -22558,10 +24368,15 @@
|
|
|
22558
24368
|
case 2147483647:
|
|
22559
24369
|
break;
|
|
22560
24370
|
}
|
|
22561
|
-
if (message.
|
|
22562
|
-
var error = $root.google.protobuf.FeatureSet.verify(message.
|
|
24371
|
+
if (message.overridableFeatures != null && message.hasOwnProperty("overridableFeatures")) {
|
|
24372
|
+
var error = $root.google.protobuf.FeatureSet.verify(message.overridableFeatures);
|
|
24373
|
+
if (error)
|
|
24374
|
+
return "overridableFeatures." + error;
|
|
24375
|
+
}
|
|
24376
|
+
if (message.fixedFeatures != null && message.hasOwnProperty("fixedFeatures")) {
|
|
24377
|
+
var error = $root.google.protobuf.FeatureSet.verify(message.fixedFeatures);
|
|
22563
24378
|
if (error)
|
|
22564
|
-
return "
|
|
24379
|
+
return "fixedFeatures." + error;
|
|
22565
24380
|
}
|
|
22566
24381
|
return null;
|
|
22567
24382
|
};
|
|
@@ -22589,6 +24404,10 @@
|
|
|
22589
24404
|
case 0:
|
|
22590
24405
|
message.edition = 0;
|
|
22591
24406
|
break;
|
|
24407
|
+
case "EDITION_LEGACY":
|
|
24408
|
+
case 900:
|
|
24409
|
+
message.edition = 900;
|
|
24410
|
+
break;
|
|
22592
24411
|
case "EDITION_PROTO2":
|
|
22593
24412
|
case 998:
|
|
22594
24413
|
message.edition = 998;
|
|
@@ -22630,10 +24449,15 @@
|
|
|
22630
24449
|
message.edition = 2147483647;
|
|
22631
24450
|
break;
|
|
22632
24451
|
}
|
|
22633
|
-
if (object.
|
|
22634
|
-
if (typeof object.
|
|
22635
|
-
throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.
|
|
22636
|
-
message.
|
|
24452
|
+
if (object.overridableFeatures != null) {
|
|
24453
|
+
if (typeof object.overridableFeatures !== "object")
|
|
24454
|
+
throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.overridableFeatures: object expected");
|
|
24455
|
+
message.overridableFeatures = $root.google.protobuf.FeatureSet.fromObject(object.overridableFeatures);
|
|
24456
|
+
}
|
|
24457
|
+
if (object.fixedFeatures != null) {
|
|
24458
|
+
if (typeof object.fixedFeatures !== "object")
|
|
24459
|
+
throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fixedFeatures: object expected");
|
|
24460
|
+
message.fixedFeatures = $root.google.protobuf.FeatureSet.fromObject(object.fixedFeatures);
|
|
22637
24461
|
}
|
|
22638
24462
|
return message;
|
|
22639
24463
|
};
|
|
@@ -22652,13 +24476,16 @@
|
|
|
22652
24476
|
options = {};
|
|
22653
24477
|
var object = {};
|
|
22654
24478
|
if (options.defaults) {
|
|
22655
|
-
object.features = null;
|
|
22656
24479
|
object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
24480
|
+
object.overridableFeatures = null;
|
|
24481
|
+
object.fixedFeatures = null;
|
|
22657
24482
|
}
|
|
22658
|
-
if (message.features != null && message.hasOwnProperty("features"))
|
|
22659
|
-
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
|
22660
24483
|
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
22661
24484
|
object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
|
|
24485
|
+
if (message.overridableFeatures != null && message.hasOwnProperty("overridableFeatures"))
|
|
24486
|
+
object.overridableFeatures = $root.google.protobuf.FeatureSet.toObject(message.overridableFeatures, options);
|
|
24487
|
+
if (message.fixedFeatures != null && message.hasOwnProperty("fixedFeatures"))
|
|
24488
|
+
object.fixedFeatures = $root.google.protobuf.FeatureSet.toObject(message.fixedFeatures, options);
|
|
22662
24489
|
return object;
|
|
22663
24490
|
};
|
|
22664
24491
|
|
|
@@ -23873,6 +25700,22 @@
|
|
|
23873
25700
|
return GeneratedCodeInfo;
|
|
23874
25701
|
})();
|
|
23875
25702
|
|
|
25703
|
+
/**
|
|
25704
|
+
* SymbolVisibility enum.
|
|
25705
|
+
* @name google.protobuf.SymbolVisibility
|
|
25706
|
+
* @enum {number}
|
|
25707
|
+
* @property {number} VISIBILITY_UNSET=0 VISIBILITY_UNSET value
|
|
25708
|
+
* @property {number} VISIBILITY_LOCAL=1 VISIBILITY_LOCAL value
|
|
25709
|
+
* @property {number} VISIBILITY_EXPORT=2 VISIBILITY_EXPORT value
|
|
25710
|
+
*/
|
|
25711
|
+
protobuf.SymbolVisibility = (function() {
|
|
25712
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
25713
|
+
values[valuesById[0] = "VISIBILITY_UNSET"] = 0;
|
|
25714
|
+
values[valuesById[1] = "VISIBILITY_LOCAL"] = 1;
|
|
25715
|
+
values[valuesById[2] = "VISIBILITY_EXPORT"] = 2;
|
|
25716
|
+
return values;
|
|
25717
|
+
})();
|
|
25718
|
+
|
|
23876
25719
|
protobuf.Duration = (function() {
|
|
23877
25720
|
|
|
23878
25721
|
/**
|