@google-shopping/reports 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/build/protos/google/shopping/type/types.proto +10 -2
- package/build/protos/protos.d.ts +264 -29
- package/build/protos/protos.js +1027 -125
- package/build/protos/protos.json +115 -36
- package/build/src/index.js +1 -1
- package/build/src/v1beta/index.js +1 -1
- package/build/src/v1beta/report_service_client.d.ts +11 -2
- package/build/src/v1beta/report_service_client.js +41 -11
- package/build/src/v1beta/report_service_client.js.map +1 -1
- package/package.json +3 -3
package/build/protos/protos.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
// Copyright
|
1
|
+
// Copyright 2024 Google LLC
|
2
2
|
//
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
// you may not use this file except in compliance with the License.
|
@@ -4686,6 +4686,8 @@
|
|
4686
4686
|
case 0:
|
4687
4687
|
case 1:
|
4688
4688
|
case 2:
|
4689
|
+
case 13:
|
4690
|
+
case 14:
|
4689
4691
|
case 3:
|
4690
4692
|
case 4:
|
4691
4693
|
case 5:
|
@@ -4747,6 +4749,14 @@
|
|
4747
4749
|
case 2:
|
4748
4750
|
message.reportingContext = 2;
|
4749
4751
|
break;
|
4752
|
+
case "DEMAND_GEN_ADS":
|
4753
|
+
case 13:
|
4754
|
+
message.reportingContext = 13;
|
4755
|
+
break;
|
4756
|
+
case "DEMAND_GEN_ADS_DISCOVER_SURFACE":
|
4757
|
+
case 14:
|
4758
|
+
message.reportingContext = 14;
|
4759
|
+
break;
|
4750
4760
|
case "VIDEO_ADS":
|
4751
4761
|
case 3:
|
4752
4762
|
message.reportingContext = 3;
|
@@ -12099,6 +12109,8 @@
|
|
12099
12109
|
* @property {number} REPORTING_CONTEXT_ENUM_UNSPECIFIED=0 REPORTING_CONTEXT_ENUM_UNSPECIFIED value
|
12100
12110
|
* @property {number} SHOPPING_ADS=1 SHOPPING_ADS value
|
12101
12111
|
* @property {number} DISCOVERY_ADS=2 DISCOVERY_ADS value
|
12112
|
+
* @property {number} DEMAND_GEN_ADS=13 DEMAND_GEN_ADS value
|
12113
|
+
* @property {number} DEMAND_GEN_ADS_DISCOVER_SURFACE=14 DEMAND_GEN_ADS_DISCOVER_SURFACE value
|
12102
12114
|
* @property {number} VIDEO_ADS=3 VIDEO_ADS value
|
12103
12115
|
* @property {number} DISPLAY_ADS=4 DISPLAY_ADS value
|
12104
12116
|
* @property {number} LOCAL_INVENTORY_ADS=5 LOCAL_INVENTORY_ADS value
|
@@ -12115,6 +12127,8 @@
|
|
12115
12127
|
values[valuesById[0] = "REPORTING_CONTEXT_ENUM_UNSPECIFIED"] = 0;
|
12116
12128
|
values[valuesById[1] = "SHOPPING_ADS"] = 1;
|
12117
12129
|
values[valuesById[2] = "DISCOVERY_ADS"] = 2;
|
12130
|
+
values[valuesById[13] = "DEMAND_GEN_ADS"] = 13;
|
12131
|
+
values[valuesById[14] = "DEMAND_GEN_ADS_DISCOVER_SURFACE"] = 14;
|
12118
12132
|
values[valuesById[3] = "VIDEO_ADS"] = 3;
|
12119
12133
|
values[valuesById[4] = "DISPLAY_ADS"] = 4;
|
12120
12134
|
values[valuesById[5] = "LOCAL_INVENTORY_ADS"] = 5;
|
@@ -14114,6 +14128,7 @@
|
|
14114
14128
|
* @property {google.api.ClientLibraryOrganization|null} [organization] Publishing organization
|
14115
14129
|
* @property {Array.<google.api.IClientLibrarySettings>|null} [librarySettings] Publishing librarySettings
|
14116
14130
|
* @property {string|null} [protoReferenceDocumentationUri] Publishing protoReferenceDocumentationUri
|
14131
|
+
* @property {string|null} [restReferenceDocumentationUri] Publishing restReferenceDocumentationUri
|
14117
14132
|
*/
|
14118
14133
|
|
14119
14134
|
/**
|
@@ -14214,6 +14229,14 @@
|
|
14214
14229
|
*/
|
14215
14230
|
Publishing.prototype.protoReferenceDocumentationUri = "";
|
14216
14231
|
|
14232
|
+
/**
|
14233
|
+
* Publishing restReferenceDocumentationUri.
|
14234
|
+
* @member {string} restReferenceDocumentationUri
|
14235
|
+
* @memberof google.api.Publishing
|
14236
|
+
* @instance
|
14237
|
+
*/
|
14238
|
+
Publishing.prototype.restReferenceDocumentationUri = "";
|
14239
|
+
|
14217
14240
|
/**
|
14218
14241
|
* Creates a new Publishing instance using the specified properties.
|
14219
14242
|
* @function create
|
@@ -14261,6 +14284,8 @@
|
|
14261
14284
|
$root.google.api.ClientLibrarySettings.encode(message.librarySettings[i], writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim();
|
14262
14285
|
if (message.protoReferenceDocumentationUri != null && Object.hasOwnProperty.call(message, "protoReferenceDocumentationUri"))
|
14263
14286
|
writer.uint32(/* id 110, wireType 2 =*/882).string(message.protoReferenceDocumentationUri);
|
14287
|
+
if (message.restReferenceDocumentationUri != null && Object.hasOwnProperty.call(message, "restReferenceDocumentationUri"))
|
14288
|
+
writer.uint32(/* id 111, wireType 2 =*/890).string(message.restReferenceDocumentationUri);
|
14264
14289
|
return writer;
|
14265
14290
|
};
|
14266
14291
|
|
@@ -14341,6 +14366,10 @@
|
|
14341
14366
|
message.protoReferenceDocumentationUri = reader.string();
|
14342
14367
|
break;
|
14343
14368
|
}
|
14369
|
+
case 111: {
|
14370
|
+
message.restReferenceDocumentationUri = reader.string();
|
14371
|
+
break;
|
14372
|
+
}
|
14344
14373
|
default:
|
14345
14374
|
reader.skipType(tag & 7);
|
14346
14375
|
break;
|
@@ -14433,6 +14462,9 @@
|
|
14433
14462
|
if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri"))
|
14434
14463
|
if (!$util.isString(message.protoReferenceDocumentationUri))
|
14435
14464
|
return "protoReferenceDocumentationUri: string expected";
|
14465
|
+
if (message.restReferenceDocumentationUri != null && message.hasOwnProperty("restReferenceDocumentationUri"))
|
14466
|
+
if (!$util.isString(message.restReferenceDocumentationUri))
|
14467
|
+
return "restReferenceDocumentationUri: string expected";
|
14436
14468
|
return null;
|
14437
14469
|
};
|
14438
14470
|
|
@@ -14527,6 +14559,8 @@
|
|
14527
14559
|
}
|
14528
14560
|
if (object.protoReferenceDocumentationUri != null)
|
14529
14561
|
message.protoReferenceDocumentationUri = String(object.protoReferenceDocumentationUri);
|
14562
|
+
if (object.restReferenceDocumentationUri != null)
|
14563
|
+
message.restReferenceDocumentationUri = String(object.restReferenceDocumentationUri);
|
14530
14564
|
return message;
|
14531
14565
|
};
|
14532
14566
|
|
@@ -14556,6 +14590,7 @@
|
|
14556
14590
|
object.docTagPrefix = "";
|
14557
14591
|
object.organization = options.enums === String ? "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" : 0;
|
14558
14592
|
object.protoReferenceDocumentationUri = "";
|
14593
|
+
object.restReferenceDocumentationUri = "";
|
14559
14594
|
}
|
14560
14595
|
if (message.methodSettings && message.methodSettings.length) {
|
14561
14596
|
object.methodSettings = [];
|
@@ -14586,6 +14621,8 @@
|
|
14586
14621
|
}
|
14587
14622
|
if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri"))
|
14588
14623
|
object.protoReferenceDocumentationUri = message.protoReferenceDocumentationUri;
|
14624
|
+
if (message.restReferenceDocumentationUri != null && message.hasOwnProperty("restReferenceDocumentationUri"))
|
14625
|
+
object.restReferenceDocumentationUri = message.restReferenceDocumentationUri;
|
14589
14626
|
return object;
|
14590
14627
|
};
|
14591
14628
|
|
@@ -16609,6 +16646,7 @@
|
|
16609
16646
|
* @interface IMethodSettings
|
16610
16647
|
* @property {string|null} [selector] MethodSettings selector
|
16611
16648
|
* @property {google.api.MethodSettings.ILongRunning|null} [longRunning] MethodSettings longRunning
|
16649
|
+
* @property {Array.<string>|null} [autoPopulatedFields] MethodSettings autoPopulatedFields
|
16612
16650
|
*/
|
16613
16651
|
|
16614
16652
|
/**
|
@@ -16620,6 +16658,7 @@
|
|
16620
16658
|
* @param {google.api.IMethodSettings=} [properties] Properties to set
|
16621
16659
|
*/
|
16622
16660
|
function MethodSettings(properties) {
|
16661
|
+
this.autoPopulatedFields = [];
|
16623
16662
|
if (properties)
|
16624
16663
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
16625
16664
|
if (properties[keys[i]] != null)
|
@@ -16642,6 +16681,14 @@
|
|
16642
16681
|
*/
|
16643
16682
|
MethodSettings.prototype.longRunning = null;
|
16644
16683
|
|
16684
|
+
/**
|
16685
|
+
* MethodSettings autoPopulatedFields.
|
16686
|
+
* @member {Array.<string>} autoPopulatedFields
|
16687
|
+
* @memberof google.api.MethodSettings
|
16688
|
+
* @instance
|
16689
|
+
*/
|
16690
|
+
MethodSettings.prototype.autoPopulatedFields = $util.emptyArray;
|
16691
|
+
|
16645
16692
|
/**
|
16646
16693
|
* Creates a new MethodSettings instance using the specified properties.
|
16647
16694
|
* @function create
|
@@ -16670,6 +16717,9 @@
|
|
16670
16717
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector);
|
16671
16718
|
if (message.longRunning != null && Object.hasOwnProperty.call(message, "longRunning"))
|
16672
16719
|
$root.google.api.MethodSettings.LongRunning.encode(message.longRunning, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
16720
|
+
if (message.autoPopulatedFields != null && message.autoPopulatedFields.length)
|
16721
|
+
for (var i = 0; i < message.autoPopulatedFields.length; ++i)
|
16722
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.autoPopulatedFields[i]);
|
16673
16723
|
return writer;
|
16674
16724
|
};
|
16675
16725
|
|
@@ -16712,6 +16762,12 @@
|
|
16712
16762
|
message.longRunning = $root.google.api.MethodSettings.LongRunning.decode(reader, reader.uint32());
|
16713
16763
|
break;
|
16714
16764
|
}
|
16765
|
+
case 3: {
|
16766
|
+
if (!(message.autoPopulatedFields && message.autoPopulatedFields.length))
|
16767
|
+
message.autoPopulatedFields = [];
|
16768
|
+
message.autoPopulatedFields.push(reader.string());
|
16769
|
+
break;
|
16770
|
+
}
|
16715
16771
|
default:
|
16716
16772
|
reader.skipType(tag & 7);
|
16717
16773
|
break;
|
@@ -16755,6 +16811,13 @@
|
|
16755
16811
|
if (error)
|
16756
16812
|
return "longRunning." + error;
|
16757
16813
|
}
|
16814
|
+
if (message.autoPopulatedFields != null && message.hasOwnProperty("autoPopulatedFields")) {
|
16815
|
+
if (!Array.isArray(message.autoPopulatedFields))
|
16816
|
+
return "autoPopulatedFields: array expected";
|
16817
|
+
for (var i = 0; i < message.autoPopulatedFields.length; ++i)
|
16818
|
+
if (!$util.isString(message.autoPopulatedFields[i]))
|
16819
|
+
return "autoPopulatedFields: string[] expected";
|
16820
|
+
}
|
16758
16821
|
return null;
|
16759
16822
|
};
|
16760
16823
|
|
@@ -16777,6 +16840,13 @@
|
|
16777
16840
|
throw TypeError(".google.api.MethodSettings.longRunning: object expected");
|
16778
16841
|
message.longRunning = $root.google.api.MethodSettings.LongRunning.fromObject(object.longRunning);
|
16779
16842
|
}
|
16843
|
+
if (object.autoPopulatedFields) {
|
16844
|
+
if (!Array.isArray(object.autoPopulatedFields))
|
16845
|
+
throw TypeError(".google.api.MethodSettings.autoPopulatedFields: array expected");
|
16846
|
+
message.autoPopulatedFields = [];
|
16847
|
+
for (var i = 0; i < object.autoPopulatedFields.length; ++i)
|
16848
|
+
message.autoPopulatedFields[i] = String(object.autoPopulatedFields[i]);
|
16849
|
+
}
|
16780
16850
|
return message;
|
16781
16851
|
};
|
16782
16852
|
|
@@ -16793,6 +16863,8 @@
|
|
16793
16863
|
if (!options)
|
16794
16864
|
options = {};
|
16795
16865
|
var object = {};
|
16866
|
+
if (options.arrays || options.defaults)
|
16867
|
+
object.autoPopulatedFields = [];
|
16796
16868
|
if (options.defaults) {
|
16797
16869
|
object.selector = "";
|
16798
16870
|
object.longRunning = null;
|
@@ -16801,6 +16873,11 @@
|
|
16801
16873
|
object.selector = message.selector;
|
16802
16874
|
if (message.longRunning != null && message.hasOwnProperty("longRunning"))
|
16803
16875
|
object.longRunning = $root.google.api.MethodSettings.LongRunning.toObject(message.longRunning, options);
|
16876
|
+
if (message.autoPopulatedFields && message.autoPopulatedFields.length) {
|
16877
|
+
object.autoPopulatedFields = [];
|
16878
|
+
for (var j = 0; j < message.autoPopulatedFields.length; ++j)
|
16879
|
+
object.autoPopulatedFields[j] = message.autoPopulatedFields[j];
|
16880
|
+
}
|
16804
16881
|
return object;
|
16805
16882
|
};
|
16806
16883
|
|
@@ -17201,6 +17278,7 @@
|
|
17201
17278
|
* @property {number} IMMUTABLE=5 IMMUTABLE value
|
17202
17279
|
* @property {number} UNORDERED_LIST=6 UNORDERED_LIST value
|
17203
17280
|
* @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value
|
17281
|
+
* @property {number} IDENTIFIER=8 IDENTIFIER value
|
17204
17282
|
*/
|
17205
17283
|
api.FieldBehavior = (function() {
|
17206
17284
|
var valuesById = {}, values = Object.create(valuesById);
|
@@ -17212,6 +17290,7 @@
|
|
17212
17290
|
values[valuesById[5] = "IMMUTABLE"] = 5;
|
17213
17291
|
values[valuesById[6] = "UNORDERED_LIST"] = 6;
|
17214
17292
|
values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7;
|
17293
|
+
values[valuesById[8] = "IDENTIFIER"] = 8;
|
17215
17294
|
return values;
|
17216
17295
|
})();
|
17217
17296
|
|
@@ -17451,6 +17530,38 @@
|
|
17451
17530
|
return FileDescriptorSet;
|
17452
17531
|
})();
|
17453
17532
|
|
17533
|
+
/**
|
17534
|
+
* Edition enum.
|
17535
|
+
* @name google.protobuf.Edition
|
17536
|
+
* @enum {number}
|
17537
|
+
* @property {number} EDITION_UNKNOWN=0 EDITION_UNKNOWN value
|
17538
|
+
* @property {number} EDITION_PROTO2=998 EDITION_PROTO2 value
|
17539
|
+
* @property {number} EDITION_PROTO3=999 EDITION_PROTO3 value
|
17540
|
+
* @property {number} EDITION_2023=1000 EDITION_2023 value
|
17541
|
+
* @property {number} EDITION_2024=1001 EDITION_2024 value
|
17542
|
+
* @property {number} EDITION_1_TEST_ONLY=1 EDITION_1_TEST_ONLY value
|
17543
|
+
* @property {number} EDITION_2_TEST_ONLY=2 EDITION_2_TEST_ONLY value
|
17544
|
+
* @property {number} EDITION_99997_TEST_ONLY=99997 EDITION_99997_TEST_ONLY value
|
17545
|
+
* @property {number} EDITION_99998_TEST_ONLY=99998 EDITION_99998_TEST_ONLY value
|
17546
|
+
* @property {number} EDITION_99999_TEST_ONLY=99999 EDITION_99999_TEST_ONLY value
|
17547
|
+
* @property {number} EDITION_MAX=2147483647 EDITION_MAX value
|
17548
|
+
*/
|
17549
|
+
protobuf.Edition = (function() {
|
17550
|
+
var valuesById = {}, values = Object.create(valuesById);
|
17551
|
+
values[valuesById[0] = "EDITION_UNKNOWN"] = 0;
|
17552
|
+
values[valuesById[998] = "EDITION_PROTO2"] = 998;
|
17553
|
+
values[valuesById[999] = "EDITION_PROTO3"] = 999;
|
17554
|
+
values[valuesById[1000] = "EDITION_2023"] = 1000;
|
17555
|
+
values[valuesById[1001] = "EDITION_2024"] = 1001;
|
17556
|
+
values[valuesById[1] = "EDITION_1_TEST_ONLY"] = 1;
|
17557
|
+
values[valuesById[2] = "EDITION_2_TEST_ONLY"] = 2;
|
17558
|
+
values[valuesById[99997] = "EDITION_99997_TEST_ONLY"] = 99997;
|
17559
|
+
values[valuesById[99998] = "EDITION_99998_TEST_ONLY"] = 99998;
|
17560
|
+
values[valuesById[99999] = "EDITION_99999_TEST_ONLY"] = 99999;
|
17561
|
+
values[valuesById[2147483647] = "EDITION_MAX"] = 2147483647;
|
17562
|
+
return values;
|
17563
|
+
})();
|
17564
|
+
|
17454
17565
|
protobuf.FileDescriptorProto = (function() {
|
17455
17566
|
|
17456
17567
|
/**
|
@@ -17469,7 +17580,7 @@
|
|
17469
17580
|
* @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options
|
17470
17581
|
* @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo
|
17471
17582
|
* @property {string|null} [syntax] FileDescriptorProto syntax
|
17472
|
-
* @property {
|
17583
|
+
* @property {google.protobuf.Edition|null} [edition] FileDescriptorProto edition
|
17473
17584
|
*/
|
17474
17585
|
|
17475
17586
|
/**
|
@@ -17592,11 +17703,11 @@
|
|
17592
17703
|
|
17593
17704
|
/**
|
17594
17705
|
* FileDescriptorProto edition.
|
17595
|
-
* @member {
|
17706
|
+
* @member {google.protobuf.Edition} edition
|
17596
17707
|
* @memberof google.protobuf.FileDescriptorProto
|
17597
17708
|
* @instance
|
17598
17709
|
*/
|
17599
|
-
FileDescriptorProto.prototype.edition =
|
17710
|
+
FileDescriptorProto.prototype.edition = 0;
|
17600
17711
|
|
17601
17712
|
/**
|
17602
17713
|
* Creates a new FileDescriptorProto instance using the specified properties.
|
@@ -17654,7 +17765,7 @@
|
|
17654
17765
|
if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax"))
|
17655
17766
|
writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax);
|
17656
17767
|
if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
|
17657
|
-
writer.uint32(/* id
|
17768
|
+
writer.uint32(/* id 14, wireType 0 =*/112).int32(message.edition);
|
17658
17769
|
return writer;
|
17659
17770
|
};
|
17660
17771
|
|
@@ -17761,8 +17872,8 @@
|
|
17761
17872
|
message.syntax = reader.string();
|
17762
17873
|
break;
|
17763
17874
|
}
|
17764
|
-
case
|
17765
|
-
message.edition = reader.
|
17875
|
+
case 14: {
|
17876
|
+
message.edition = reader.int32();
|
17766
17877
|
break;
|
17767
17878
|
}
|
17768
17879
|
default:
|
@@ -17877,8 +17988,22 @@
|
|
17877
17988
|
if (!$util.isString(message.syntax))
|
17878
17989
|
return "syntax: string expected";
|
17879
17990
|
if (message.edition != null && message.hasOwnProperty("edition"))
|
17880
|
-
|
17881
|
-
|
17991
|
+
switch (message.edition) {
|
17992
|
+
default:
|
17993
|
+
return "edition: enum value expected";
|
17994
|
+
case 0:
|
17995
|
+
case 998:
|
17996
|
+
case 999:
|
17997
|
+
case 1000:
|
17998
|
+
case 1001:
|
17999
|
+
case 1:
|
18000
|
+
case 2:
|
18001
|
+
case 99997:
|
18002
|
+
case 99998:
|
18003
|
+
case 99999:
|
18004
|
+
case 2147483647:
|
18005
|
+
break;
|
18006
|
+
}
|
17882
18007
|
return null;
|
17883
18008
|
};
|
17884
18009
|
|
@@ -17971,8 +18096,58 @@
|
|
17971
18096
|
}
|
17972
18097
|
if (object.syntax != null)
|
17973
18098
|
message.syntax = String(object.syntax);
|
17974
|
-
|
17975
|
-
|
18099
|
+
switch (object.edition) {
|
18100
|
+
default:
|
18101
|
+
if (typeof object.edition === "number") {
|
18102
|
+
message.edition = object.edition;
|
18103
|
+
break;
|
18104
|
+
}
|
18105
|
+
break;
|
18106
|
+
case "EDITION_UNKNOWN":
|
18107
|
+
case 0:
|
18108
|
+
message.edition = 0;
|
18109
|
+
break;
|
18110
|
+
case "EDITION_PROTO2":
|
18111
|
+
case 998:
|
18112
|
+
message.edition = 998;
|
18113
|
+
break;
|
18114
|
+
case "EDITION_PROTO3":
|
18115
|
+
case 999:
|
18116
|
+
message.edition = 999;
|
18117
|
+
break;
|
18118
|
+
case "EDITION_2023":
|
18119
|
+
case 1000:
|
18120
|
+
message.edition = 1000;
|
18121
|
+
break;
|
18122
|
+
case "EDITION_2024":
|
18123
|
+
case 1001:
|
18124
|
+
message.edition = 1001;
|
18125
|
+
break;
|
18126
|
+
case "EDITION_1_TEST_ONLY":
|
18127
|
+
case 1:
|
18128
|
+
message.edition = 1;
|
18129
|
+
break;
|
18130
|
+
case "EDITION_2_TEST_ONLY":
|
18131
|
+
case 2:
|
18132
|
+
message.edition = 2;
|
18133
|
+
break;
|
18134
|
+
case "EDITION_99997_TEST_ONLY":
|
18135
|
+
case 99997:
|
18136
|
+
message.edition = 99997;
|
18137
|
+
break;
|
18138
|
+
case "EDITION_99998_TEST_ONLY":
|
18139
|
+
case 99998:
|
18140
|
+
message.edition = 99998;
|
18141
|
+
break;
|
18142
|
+
case "EDITION_99999_TEST_ONLY":
|
18143
|
+
case 99999:
|
18144
|
+
message.edition = 99999;
|
18145
|
+
break;
|
18146
|
+
case "EDITION_MAX":
|
18147
|
+
case 2147483647:
|
18148
|
+
message.edition = 2147483647;
|
18149
|
+
break;
|
18150
|
+
}
|
17976
18151
|
return message;
|
17977
18152
|
};
|
17978
18153
|
|
@@ -18004,7 +18179,7 @@
|
|
18004
18179
|
object.options = null;
|
18005
18180
|
object.sourceCodeInfo = null;
|
18006
18181
|
object.syntax = "";
|
18007
|
-
object.edition = "";
|
18182
|
+
object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
18008
18183
|
}
|
18009
18184
|
if (message.name != null && message.hasOwnProperty("name"))
|
18010
18185
|
object.name = message.name;
|
@@ -18052,7 +18227,7 @@
|
|
18052
18227
|
if (message.syntax != null && message.hasOwnProperty("syntax"))
|
18053
18228
|
object.syntax = message.syntax;
|
18054
18229
|
if (message.edition != null && message.hasOwnProperty("edition"))
|
18055
|
-
object.edition = message.edition;
|
18230
|
+
object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
|
18056
18231
|
return object;
|
18057
18232
|
};
|
18058
18233
|
|
@@ -20091,8 +20266,8 @@
|
|
20091
20266
|
default:
|
20092
20267
|
return "label: enum value expected";
|
20093
20268
|
case 1:
|
20094
|
-
case 2:
|
20095
20269
|
case 3:
|
20270
|
+
case 2:
|
20096
20271
|
break;
|
20097
20272
|
}
|
20098
20273
|
if (message.type != null && message.hasOwnProperty("type"))
|
@@ -20172,14 +20347,14 @@
|
|
20172
20347
|
case 1:
|
20173
20348
|
message.label = 1;
|
20174
20349
|
break;
|
20175
|
-
case "LABEL_REQUIRED":
|
20176
|
-
case 2:
|
20177
|
-
message.label = 2;
|
20178
|
-
break;
|
20179
20350
|
case "LABEL_REPEATED":
|
20180
20351
|
case 3:
|
20181
20352
|
message.label = 3;
|
20182
20353
|
break;
|
20354
|
+
case "LABEL_REQUIRED":
|
20355
|
+
case 2:
|
20356
|
+
message.label = 2;
|
20357
|
+
break;
|
20183
20358
|
}
|
20184
20359
|
switch (object.type) {
|
20185
20360
|
default:
|
@@ -20409,14 +20584,14 @@
|
|
20409
20584
|
* @name google.protobuf.FieldDescriptorProto.Label
|
20410
20585
|
* @enum {number}
|
20411
20586
|
* @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value
|
20412
|
-
* @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value
|
20413
20587
|
* @property {number} LABEL_REPEATED=3 LABEL_REPEATED value
|
20588
|
+
* @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value
|
20414
20589
|
*/
|
20415
20590
|
FieldDescriptorProto.Label = (function() {
|
20416
20591
|
var valuesById = {}, values = Object.create(valuesById);
|
20417
20592
|
values[valuesById[1] = "LABEL_OPTIONAL"] = 1;
|
20418
|
-
values[valuesById[2] = "LABEL_REQUIRED"] = 2;
|
20419
20593
|
values[valuesById[3] = "LABEL_REPEATED"] = 3;
|
20594
|
+
values[valuesById[2] = "LABEL_REQUIRED"] = 2;
|
20420
20595
|
return values;
|
20421
20596
|
})();
|
20422
20597
|
|
@@ -22115,7 +22290,6 @@
|
|
22115
22290
|
* @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices
|
22116
22291
|
* @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices
|
22117
22292
|
* @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices
|
22118
|
-
* @property {boolean|null} [phpGenericServices] FileOptions phpGenericServices
|
22119
22293
|
* @property {boolean|null} [deprecated] FileOptions deprecated
|
22120
22294
|
* @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas
|
22121
22295
|
* @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix
|
@@ -22225,14 +22399,6 @@
|
|
22225
22399
|
*/
|
22226
22400
|
FileOptions.prototype.pyGenericServices = false;
|
22227
22401
|
|
22228
|
-
/**
|
22229
|
-
* FileOptions phpGenericServices.
|
22230
|
-
* @member {boolean} phpGenericServices
|
22231
|
-
* @memberof google.protobuf.FileOptions
|
22232
|
-
* @instance
|
22233
|
-
*/
|
22234
|
-
FileOptions.prototype.phpGenericServices = false;
|
22235
|
-
|
22236
22402
|
/**
|
22237
22403
|
* FileOptions deprecated.
|
22238
22404
|
* @member {boolean} deprecated
|
@@ -22379,8 +22545,6 @@
|
|
22379
22545
|
writer.uint32(/* id 40, wireType 2 =*/322).string(message.phpClassPrefix);
|
22380
22546
|
if (message.phpNamespace != null && Object.hasOwnProperty.call(message, "phpNamespace"))
|
22381
22547
|
writer.uint32(/* id 41, wireType 2 =*/330).string(message.phpNamespace);
|
22382
|
-
if (message.phpGenericServices != null && Object.hasOwnProperty.call(message, "phpGenericServices"))
|
22383
|
-
writer.uint32(/* id 42, wireType 0 =*/336).bool(message.phpGenericServices);
|
22384
22548
|
if (message.phpMetadataNamespace != null && Object.hasOwnProperty.call(message, "phpMetadataNamespace"))
|
22385
22549
|
writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace);
|
22386
22550
|
if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage"))
|
@@ -22464,10 +22628,6 @@
|
|
22464
22628
|
message.pyGenericServices = reader.bool();
|
22465
22629
|
break;
|
22466
22630
|
}
|
22467
|
-
case 42: {
|
22468
|
-
message.phpGenericServices = reader.bool();
|
22469
|
-
break;
|
22470
|
-
}
|
22471
22631
|
case 23: {
|
22472
22632
|
message.deprecated = reader.bool();
|
22473
22633
|
break;
|
@@ -22585,9 +22745,6 @@
|
|
22585
22745
|
if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices"))
|
22586
22746
|
if (typeof message.pyGenericServices !== "boolean")
|
22587
22747
|
return "pyGenericServices: boolean expected";
|
22588
|
-
if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices"))
|
22589
|
-
if (typeof message.phpGenericServices !== "boolean")
|
22590
|
-
return "phpGenericServices: boolean expected";
|
22591
22748
|
if (message.deprecated != null && message.hasOwnProperty("deprecated"))
|
22592
22749
|
if (typeof message.deprecated !== "boolean")
|
22593
22750
|
return "deprecated: boolean expected";
|
@@ -22682,8 +22839,6 @@
|
|
22682
22839
|
message.javaGenericServices = Boolean(object.javaGenericServices);
|
22683
22840
|
if (object.pyGenericServices != null)
|
22684
22841
|
message.pyGenericServices = Boolean(object.pyGenericServices);
|
22685
|
-
if (object.phpGenericServices != null)
|
22686
|
-
message.phpGenericServices = Boolean(object.phpGenericServices);
|
22687
22842
|
if (object.deprecated != null)
|
22688
22843
|
message.deprecated = Boolean(object.deprecated);
|
22689
22844
|
if (object.ccEnableArenas != null)
|
@@ -22753,7 +22908,6 @@
|
|
22753
22908
|
object.swiftPrefix = "";
|
22754
22909
|
object.phpClassPrefix = "";
|
22755
22910
|
object.phpNamespace = "";
|
22756
|
-
object.phpGenericServices = false;
|
22757
22911
|
object.phpMetadataNamespace = "";
|
22758
22912
|
object.rubyPackage = "";
|
22759
22913
|
object.features = null;
|
@@ -22792,8 +22946,6 @@
|
|
22792
22946
|
object.phpClassPrefix = message.phpClassPrefix;
|
22793
22947
|
if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace"))
|
22794
22948
|
object.phpNamespace = message.phpNamespace;
|
22795
|
-
if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices"))
|
22796
|
-
object.phpGenericServices = message.phpGenericServices;
|
22797
22949
|
if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace"))
|
22798
22950
|
object.phpMetadataNamespace = message.phpMetadataNamespace;
|
22799
22951
|
if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage"))
|
@@ -23428,12 +23580,9 @@
|
|
23428
23580
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
23429
23581
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
23430
23582
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
23431
|
-
if (message[".google.api.fieldBehavior"] != null && message[".google.api.fieldBehavior"].length)
|
23432
|
-
writer.uint32(/* id 1052, wireType 2 =*/8418).fork();
|
23583
|
+
if (message[".google.api.fieldBehavior"] != null && message[".google.api.fieldBehavior"].length)
|
23433
23584
|
for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i)
|
23434
|
-
writer.int32(message[".google.api.fieldBehavior"][i]);
|
23435
|
-
writer.ldelim();
|
23436
|
-
}
|
23585
|
+
writer.uint32(/* id 1052, wireType 0 =*/8416).int32(message[".google.api.fieldBehavior"][i]);
|
23437
23586
|
return writer;
|
23438
23587
|
};
|
23439
23588
|
|
@@ -23680,6 +23829,7 @@
|
|
23680
23829
|
case 5:
|
23681
23830
|
case 6:
|
23682
23831
|
case 7:
|
23832
|
+
case 8:
|
23683
23833
|
break;
|
23684
23834
|
}
|
23685
23835
|
}
|
@@ -23891,6 +24041,10 @@
|
|
23891
24041
|
case 7:
|
23892
24042
|
message[".google.api.fieldBehavior"][i] = 7;
|
23893
24043
|
break;
|
24044
|
+
case "IDENTIFIER":
|
24045
|
+
case 8:
|
24046
|
+
message[".google.api.fieldBehavior"][i] = 8;
|
24047
|
+
break;
|
23894
24048
|
}
|
23895
24049
|
}
|
23896
24050
|
return message;
|
@@ -24080,7 +24234,7 @@
|
|
24080
24234
|
* Properties of an EditionDefault.
|
24081
24235
|
* @memberof google.protobuf.FieldOptions
|
24082
24236
|
* @interface IEditionDefault
|
24083
|
-
* @property {
|
24237
|
+
* @property {google.protobuf.Edition|null} [edition] EditionDefault edition
|
24084
24238
|
* @property {string|null} [value] EditionDefault value
|
24085
24239
|
*/
|
24086
24240
|
|
@@ -24101,11 +24255,11 @@
|
|
24101
24255
|
|
24102
24256
|
/**
|
24103
24257
|
* EditionDefault edition.
|
24104
|
-
* @member {
|
24258
|
+
* @member {google.protobuf.Edition} edition
|
24105
24259
|
* @memberof google.protobuf.FieldOptions.EditionDefault
|
24106
24260
|
* @instance
|
24107
24261
|
*/
|
24108
|
-
EditionDefault.prototype.edition =
|
24262
|
+
EditionDefault.prototype.edition = 0;
|
24109
24263
|
|
24110
24264
|
/**
|
24111
24265
|
* EditionDefault value.
|
@@ -24139,10 +24293,10 @@
|
|
24139
24293
|
EditionDefault.encode = function encode(message, writer) {
|
24140
24294
|
if (!writer)
|
24141
24295
|
writer = $Writer.create();
|
24142
|
-
if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
|
24143
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.edition);
|
24144
24296
|
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
24145
24297
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.value);
|
24298
|
+
if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
|
24299
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition);
|
24146
24300
|
return writer;
|
24147
24301
|
};
|
24148
24302
|
|
@@ -24177,8 +24331,8 @@
|
|
24177
24331
|
while (reader.pos < end) {
|
24178
24332
|
var tag = reader.uint32();
|
24179
24333
|
switch (tag >>> 3) {
|
24180
|
-
case
|
24181
|
-
message.edition = reader.
|
24334
|
+
case 3: {
|
24335
|
+
message.edition = reader.int32();
|
24182
24336
|
break;
|
24183
24337
|
}
|
24184
24338
|
case 2: {
|
@@ -24221,8 +24375,22 @@
|
|
24221
24375
|
if (typeof message !== "object" || message === null)
|
24222
24376
|
return "object expected";
|
24223
24377
|
if (message.edition != null && message.hasOwnProperty("edition"))
|
24224
|
-
|
24225
|
-
|
24378
|
+
switch (message.edition) {
|
24379
|
+
default:
|
24380
|
+
return "edition: enum value expected";
|
24381
|
+
case 0:
|
24382
|
+
case 998:
|
24383
|
+
case 999:
|
24384
|
+
case 1000:
|
24385
|
+
case 1001:
|
24386
|
+
case 1:
|
24387
|
+
case 2:
|
24388
|
+
case 99997:
|
24389
|
+
case 99998:
|
24390
|
+
case 99999:
|
24391
|
+
case 2147483647:
|
24392
|
+
break;
|
24393
|
+
}
|
24226
24394
|
if (message.value != null && message.hasOwnProperty("value"))
|
24227
24395
|
if (!$util.isString(message.value))
|
24228
24396
|
return "value: string expected";
|
@@ -24241,8 +24409,58 @@
|
|
24241
24409
|
if (object instanceof $root.google.protobuf.FieldOptions.EditionDefault)
|
24242
24410
|
return object;
|
24243
24411
|
var message = new $root.google.protobuf.FieldOptions.EditionDefault();
|
24244
|
-
|
24245
|
-
|
24412
|
+
switch (object.edition) {
|
24413
|
+
default:
|
24414
|
+
if (typeof object.edition === "number") {
|
24415
|
+
message.edition = object.edition;
|
24416
|
+
break;
|
24417
|
+
}
|
24418
|
+
break;
|
24419
|
+
case "EDITION_UNKNOWN":
|
24420
|
+
case 0:
|
24421
|
+
message.edition = 0;
|
24422
|
+
break;
|
24423
|
+
case "EDITION_PROTO2":
|
24424
|
+
case 998:
|
24425
|
+
message.edition = 998;
|
24426
|
+
break;
|
24427
|
+
case "EDITION_PROTO3":
|
24428
|
+
case 999:
|
24429
|
+
message.edition = 999;
|
24430
|
+
break;
|
24431
|
+
case "EDITION_2023":
|
24432
|
+
case 1000:
|
24433
|
+
message.edition = 1000;
|
24434
|
+
break;
|
24435
|
+
case "EDITION_2024":
|
24436
|
+
case 1001:
|
24437
|
+
message.edition = 1001;
|
24438
|
+
break;
|
24439
|
+
case "EDITION_1_TEST_ONLY":
|
24440
|
+
case 1:
|
24441
|
+
message.edition = 1;
|
24442
|
+
break;
|
24443
|
+
case "EDITION_2_TEST_ONLY":
|
24444
|
+
case 2:
|
24445
|
+
message.edition = 2;
|
24446
|
+
break;
|
24447
|
+
case "EDITION_99997_TEST_ONLY":
|
24448
|
+
case 99997:
|
24449
|
+
message.edition = 99997;
|
24450
|
+
break;
|
24451
|
+
case "EDITION_99998_TEST_ONLY":
|
24452
|
+
case 99998:
|
24453
|
+
message.edition = 99998;
|
24454
|
+
break;
|
24455
|
+
case "EDITION_99999_TEST_ONLY":
|
24456
|
+
case 99999:
|
24457
|
+
message.edition = 99999;
|
24458
|
+
break;
|
24459
|
+
case "EDITION_MAX":
|
24460
|
+
case 2147483647:
|
24461
|
+
message.edition = 2147483647;
|
24462
|
+
break;
|
24463
|
+
}
|
24246
24464
|
if (object.value != null)
|
24247
24465
|
message.value = String(object.value);
|
24248
24466
|
return message;
|
@@ -24262,13 +24480,13 @@
|
|
24262
24480
|
options = {};
|
24263
24481
|
var object = {};
|
24264
24482
|
if (options.defaults) {
|
24265
|
-
object.edition = "";
|
24266
24483
|
object.value = "";
|
24484
|
+
object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
24267
24485
|
}
|
24268
|
-
if (message.edition != null && message.hasOwnProperty("edition"))
|
24269
|
-
object.edition = message.edition;
|
24270
24486
|
if (message.value != null && message.hasOwnProperty("value"))
|
24271
24487
|
object.value = message.value;
|
24488
|
+
if (message.edition != null && message.hasOwnProperty("edition"))
|
24489
|
+
object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
|
24272
24490
|
return object;
|
24273
24491
|
};
|
24274
24492
|
|
@@ -25191,6 +25409,7 @@
|
|
25191
25409
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] ServiceOptions uninterpretedOption
|
25192
25410
|
* @property {string|null} [".google.api.defaultHost"] ServiceOptions .google.api.defaultHost
|
25193
25411
|
* @property {string|null} [".google.api.oauthScopes"] ServiceOptions .google.api.oauthScopes
|
25412
|
+
* @property {string|null} [".google.api.apiVersion"] ServiceOptions .google.api.apiVersion
|
25194
25413
|
*/
|
25195
25414
|
|
25196
25415
|
/**
|
@@ -25249,6 +25468,14 @@
|
|
25249
25468
|
*/
|
25250
25469
|
ServiceOptions.prototype[".google.api.oauthScopes"] = "";
|
25251
25470
|
|
25471
|
+
/**
|
25472
|
+
* ServiceOptions .google.api.apiVersion.
|
25473
|
+
* @member {string} .google.api.apiVersion
|
25474
|
+
* @memberof google.protobuf.ServiceOptions
|
25475
|
+
* @instance
|
25476
|
+
*/
|
25477
|
+
ServiceOptions.prototype[".google.api.apiVersion"] = "";
|
25478
|
+
|
25252
25479
|
/**
|
25253
25480
|
* Creates a new ServiceOptions instance using the specified properties.
|
25254
25481
|
* @function create
|
@@ -25284,6 +25511,8 @@
|
|
25284
25511
|
writer.uint32(/* id 1049, wireType 2 =*/8394).string(message[".google.api.defaultHost"]);
|
25285
25512
|
if (message[".google.api.oauthScopes"] != null && Object.hasOwnProperty.call(message, ".google.api.oauthScopes"))
|
25286
25513
|
writer.uint32(/* id 1050, wireType 2 =*/8402).string(message[".google.api.oauthScopes"]);
|
25514
|
+
if (message[".google.api.apiVersion"] != null && Object.hasOwnProperty.call(message, ".google.api.apiVersion"))
|
25515
|
+
writer.uint32(/* id 525000001, wireType 2 =*/4200000010).string(message[".google.api.apiVersion"]);
|
25287
25516
|
return writer;
|
25288
25517
|
};
|
25289
25518
|
|
@@ -25340,6 +25569,10 @@
|
|
25340
25569
|
message[".google.api.oauthScopes"] = reader.string();
|
25341
25570
|
break;
|
25342
25571
|
}
|
25572
|
+
case 525000001: {
|
25573
|
+
message[".google.api.apiVersion"] = reader.string();
|
25574
|
+
break;
|
25575
|
+
}
|
25343
25576
|
default:
|
25344
25577
|
reader.skipType(tag & 7);
|
25345
25578
|
break;
|
@@ -25398,6 +25631,9 @@
|
|
25398
25631
|
if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes"))
|
25399
25632
|
if (!$util.isString(message[".google.api.oauthScopes"]))
|
25400
25633
|
return ".google.api.oauthScopes: string expected";
|
25634
|
+
if (message[".google.api.apiVersion"] != null && message.hasOwnProperty(".google.api.apiVersion"))
|
25635
|
+
if (!$util.isString(message[".google.api.apiVersion"]))
|
25636
|
+
return ".google.api.apiVersion: string expected";
|
25401
25637
|
return null;
|
25402
25638
|
};
|
25403
25639
|
|
@@ -25434,6 +25670,8 @@
|
|
25434
25670
|
message[".google.api.defaultHost"] = String(object[".google.api.defaultHost"]);
|
25435
25671
|
if (object[".google.api.oauthScopes"] != null)
|
25436
25672
|
message[".google.api.oauthScopes"] = String(object[".google.api.oauthScopes"]);
|
25673
|
+
if (object[".google.api.apiVersion"] != null)
|
25674
|
+
message[".google.api.apiVersion"] = String(object[".google.api.apiVersion"]);
|
25437
25675
|
return message;
|
25438
25676
|
};
|
25439
25677
|
|
@@ -25457,6 +25695,7 @@
|
|
25457
25695
|
object.features = null;
|
25458
25696
|
object[".google.api.defaultHost"] = "";
|
25459
25697
|
object[".google.api.oauthScopes"] = "";
|
25698
|
+
object[".google.api.apiVersion"] = "";
|
25460
25699
|
}
|
25461
25700
|
if (message.deprecated != null && message.hasOwnProperty("deprecated"))
|
25462
25701
|
object.deprecated = message.deprecated;
|
@@ -25471,6 +25710,8 @@
|
|
25471
25710
|
object[".google.api.defaultHost"] = message[".google.api.defaultHost"];
|
25472
25711
|
if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes"))
|
25473
25712
|
object[".google.api.oauthScopes"] = message[".google.api.oauthScopes"];
|
25713
|
+
if (message[".google.api.apiVersion"] != null && message.hasOwnProperty(".google.api.apiVersion"))
|
25714
|
+
object[".google.api.apiVersion"] = message[".google.api.apiVersion"];
|
25474
25715
|
return object;
|
25475
25716
|
};
|
25476
25717
|
|
@@ -26548,10 +26789,9 @@
|
|
26548
26789
|
* @property {google.protobuf.FeatureSet.FieldPresence|null} [fieldPresence] FeatureSet fieldPresence
|
26549
26790
|
* @property {google.protobuf.FeatureSet.EnumType|null} [enumType] FeatureSet enumType
|
26550
26791
|
* @property {google.protobuf.FeatureSet.RepeatedFieldEncoding|null} [repeatedFieldEncoding] FeatureSet repeatedFieldEncoding
|
26551
|
-
* @property {google.protobuf.FeatureSet.
|
26792
|
+
* @property {google.protobuf.FeatureSet.Utf8Validation|null} [utf8Validation] FeatureSet utf8Validation
|
26552
26793
|
* @property {google.protobuf.FeatureSet.MessageEncoding|null} [messageEncoding] FeatureSet messageEncoding
|
26553
26794
|
* @property {google.protobuf.FeatureSet.JsonFormat|null} [jsonFormat] FeatureSet jsonFormat
|
26554
|
-
* @property {google.protobuf.IFeatureSet|null} [rawFeatures] FeatureSet rawFeatures
|
26555
26795
|
*/
|
26556
26796
|
|
26557
26797
|
/**
|
@@ -26594,12 +26834,12 @@
|
|
26594
26834
|
FeatureSet.prototype.repeatedFieldEncoding = 0;
|
26595
26835
|
|
26596
26836
|
/**
|
26597
|
-
* FeatureSet
|
26598
|
-
* @member {google.protobuf.FeatureSet.
|
26837
|
+
* FeatureSet utf8Validation.
|
26838
|
+
* @member {google.protobuf.FeatureSet.Utf8Validation} utf8Validation
|
26599
26839
|
* @memberof google.protobuf.FeatureSet
|
26600
26840
|
* @instance
|
26601
26841
|
*/
|
26602
|
-
FeatureSet.prototype.
|
26842
|
+
FeatureSet.prototype.utf8Validation = 0;
|
26603
26843
|
|
26604
26844
|
/**
|
26605
26845
|
* FeatureSet messageEncoding.
|
@@ -26617,14 +26857,6 @@
|
|
26617
26857
|
*/
|
26618
26858
|
FeatureSet.prototype.jsonFormat = 0;
|
26619
26859
|
|
26620
|
-
/**
|
26621
|
-
* FeatureSet rawFeatures.
|
26622
|
-
* @member {google.protobuf.IFeatureSet|null|undefined} rawFeatures
|
26623
|
-
* @memberof google.protobuf.FeatureSet
|
26624
|
-
* @instance
|
26625
|
-
*/
|
26626
|
-
FeatureSet.prototype.rawFeatures = null;
|
26627
|
-
|
26628
26860
|
/**
|
26629
26861
|
* Creates a new FeatureSet instance using the specified properties.
|
26630
26862
|
* @function create
|
@@ -26655,14 +26887,12 @@
|
|
26655
26887
|
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.enumType);
|
26656
26888
|
if (message.repeatedFieldEncoding != null && Object.hasOwnProperty.call(message, "repeatedFieldEncoding"))
|
26657
26889
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.repeatedFieldEncoding);
|
26658
|
-
if (message.
|
26659
|
-
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.
|
26890
|
+
if (message.utf8Validation != null && Object.hasOwnProperty.call(message, "utf8Validation"))
|
26891
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.utf8Validation);
|
26660
26892
|
if (message.messageEncoding != null && Object.hasOwnProperty.call(message, "messageEncoding"))
|
26661
26893
|
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.messageEncoding);
|
26662
26894
|
if (message.jsonFormat != null && Object.hasOwnProperty.call(message, "jsonFormat"))
|
26663
26895
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jsonFormat);
|
26664
|
-
if (message.rawFeatures != null && Object.hasOwnProperty.call(message, "rawFeatures"))
|
26665
|
-
$root.google.protobuf.FeatureSet.encode(message.rawFeatures, writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
26666
26896
|
return writer;
|
26667
26897
|
};
|
26668
26898
|
|
@@ -26710,7 +26940,7 @@
|
|
26710
26940
|
break;
|
26711
26941
|
}
|
26712
26942
|
case 4: {
|
26713
|
-
message.
|
26943
|
+
message.utf8Validation = reader.int32();
|
26714
26944
|
break;
|
26715
26945
|
}
|
26716
26946
|
case 5: {
|
@@ -26721,10 +26951,6 @@
|
|
26721
26951
|
message.jsonFormat = reader.int32();
|
26722
26952
|
break;
|
26723
26953
|
}
|
26724
|
-
case 999: {
|
26725
|
-
message.rawFeatures = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
26726
|
-
break;
|
26727
|
-
}
|
26728
26954
|
default:
|
26729
26955
|
reader.skipType(tag & 7);
|
26730
26956
|
break;
|
@@ -26788,12 +27014,11 @@
|
|
26788
27014
|
case 2:
|
26789
27015
|
break;
|
26790
27016
|
}
|
26791
|
-
if (message.
|
26792
|
-
switch (message.
|
27017
|
+
if (message.utf8Validation != null && message.hasOwnProperty("utf8Validation"))
|
27018
|
+
switch (message.utf8Validation) {
|
26793
27019
|
default:
|
26794
|
-
return "
|
27020
|
+
return "utf8Validation: enum value expected";
|
26795
27021
|
case 0:
|
26796
|
-
case 1:
|
26797
27022
|
case 2:
|
26798
27023
|
case 3:
|
26799
27024
|
break;
|
@@ -26816,11 +27041,6 @@
|
|
26816
27041
|
case 2:
|
26817
27042
|
break;
|
26818
27043
|
}
|
26819
|
-
if (message.rawFeatures != null && message.hasOwnProperty("rawFeatures")) {
|
26820
|
-
var error = $root.google.protobuf.FeatureSet.verify(message.rawFeatures);
|
26821
|
-
if (error)
|
26822
|
-
return "rawFeatures." + error;
|
26823
|
-
}
|
26824
27044
|
return null;
|
26825
27045
|
};
|
26826
27046
|
|
@@ -26900,28 +27120,24 @@
|
|
26900
27120
|
message.repeatedFieldEncoding = 2;
|
26901
27121
|
break;
|
26902
27122
|
}
|
26903
|
-
switch (object.
|
27123
|
+
switch (object.utf8Validation) {
|
26904
27124
|
default:
|
26905
|
-
if (typeof object.
|
26906
|
-
message.
|
27125
|
+
if (typeof object.utf8Validation === "number") {
|
27126
|
+
message.utf8Validation = object.utf8Validation;
|
26907
27127
|
break;
|
26908
27128
|
}
|
26909
27129
|
break;
|
26910
|
-
case "
|
27130
|
+
case "UTF8_VALIDATION_UNKNOWN":
|
26911
27131
|
case 0:
|
26912
|
-
message.
|
26913
|
-
break;
|
26914
|
-
case "MANDATORY":
|
26915
|
-
case 1:
|
26916
|
-
message.stringFieldValidation = 1;
|
27132
|
+
message.utf8Validation = 0;
|
26917
27133
|
break;
|
26918
|
-
case "
|
27134
|
+
case "VERIFY":
|
26919
27135
|
case 2:
|
26920
|
-
message.
|
27136
|
+
message.utf8Validation = 2;
|
26921
27137
|
break;
|
26922
27138
|
case "NONE":
|
26923
27139
|
case 3:
|
26924
|
-
message.
|
27140
|
+
message.utf8Validation = 3;
|
26925
27141
|
break;
|
26926
27142
|
}
|
26927
27143
|
switch (object.messageEncoding) {
|
@@ -26964,11 +27180,6 @@
|
|
26964
27180
|
message.jsonFormat = 2;
|
26965
27181
|
break;
|
26966
27182
|
}
|
26967
|
-
if (object.rawFeatures != null) {
|
26968
|
-
if (typeof object.rawFeatures !== "object")
|
26969
|
-
throw TypeError(".google.protobuf.FeatureSet.rawFeatures: object expected");
|
26970
|
-
message.rawFeatures = $root.google.protobuf.FeatureSet.fromObject(object.rawFeatures);
|
26971
|
-
}
|
26972
27183
|
return message;
|
26973
27184
|
};
|
26974
27185
|
|
@@ -26989,10 +27200,9 @@
|
|
26989
27200
|
object.fieldPresence = options.enums === String ? "FIELD_PRESENCE_UNKNOWN" : 0;
|
26990
27201
|
object.enumType = options.enums === String ? "ENUM_TYPE_UNKNOWN" : 0;
|
26991
27202
|
object.repeatedFieldEncoding = options.enums === String ? "REPEATED_FIELD_ENCODING_UNKNOWN" : 0;
|
26992
|
-
object.
|
27203
|
+
object.utf8Validation = options.enums === String ? "UTF8_VALIDATION_UNKNOWN" : 0;
|
26993
27204
|
object.messageEncoding = options.enums === String ? "MESSAGE_ENCODING_UNKNOWN" : 0;
|
26994
27205
|
object.jsonFormat = options.enums === String ? "JSON_FORMAT_UNKNOWN" : 0;
|
26995
|
-
object.rawFeatures = null;
|
26996
27206
|
}
|
26997
27207
|
if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence"))
|
26998
27208
|
object.fieldPresence = options.enums === String ? $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] === undefined ? message.fieldPresence : $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] : message.fieldPresence;
|
@@ -27000,14 +27210,12 @@
|
|
27000
27210
|
object.enumType = options.enums === String ? $root.google.protobuf.FeatureSet.EnumType[message.enumType] === undefined ? message.enumType : $root.google.protobuf.FeatureSet.EnumType[message.enumType] : message.enumType;
|
27001
27211
|
if (message.repeatedFieldEncoding != null && message.hasOwnProperty("repeatedFieldEncoding"))
|
27002
27212
|
object.repeatedFieldEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.RepeatedFieldEncoding[message.repeatedFieldEncoding] === undefined ? message.repeatedFieldEncoding : $root.google.protobuf.FeatureSet.RepeatedFieldEncoding[message.repeatedFieldEncoding] : message.repeatedFieldEncoding;
|
27003
|
-
if (message.
|
27004
|
-
object.
|
27213
|
+
if (message.utf8Validation != null && message.hasOwnProperty("utf8Validation"))
|
27214
|
+
object.utf8Validation = options.enums === String ? $root.google.protobuf.FeatureSet.Utf8Validation[message.utf8Validation] === undefined ? message.utf8Validation : $root.google.protobuf.FeatureSet.Utf8Validation[message.utf8Validation] : message.utf8Validation;
|
27005
27215
|
if (message.messageEncoding != null && message.hasOwnProperty("messageEncoding"))
|
27006
27216
|
object.messageEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] === undefined ? message.messageEncoding : $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] : message.messageEncoding;
|
27007
27217
|
if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat"))
|
27008
27218
|
object.jsonFormat = options.enums === String ? $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] === undefined ? message.jsonFormat : $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] : message.jsonFormat;
|
27009
|
-
if (message.rawFeatures != null && message.hasOwnProperty("rawFeatures"))
|
27010
|
-
object.rawFeatures = $root.google.protobuf.FeatureSet.toObject(message.rawFeatures, options);
|
27011
27219
|
return object;
|
27012
27220
|
};
|
27013
27221
|
|
@@ -27088,19 +27296,17 @@
|
|
27088
27296
|
})();
|
27089
27297
|
|
27090
27298
|
/**
|
27091
|
-
*
|
27092
|
-
* @name google.protobuf.FeatureSet.
|
27299
|
+
* Utf8Validation enum.
|
27300
|
+
* @name google.protobuf.FeatureSet.Utf8Validation
|
27093
27301
|
* @enum {number}
|
27094
|
-
* @property {number}
|
27095
|
-
* @property {number}
|
27096
|
-
* @property {number} HINT=2 HINT value
|
27302
|
+
* @property {number} UTF8_VALIDATION_UNKNOWN=0 UTF8_VALIDATION_UNKNOWN value
|
27303
|
+
* @property {number} VERIFY=2 VERIFY value
|
27097
27304
|
* @property {number} NONE=3 NONE value
|
27098
27305
|
*/
|
27099
|
-
FeatureSet.
|
27306
|
+
FeatureSet.Utf8Validation = (function() {
|
27100
27307
|
var valuesById = {}, values = Object.create(valuesById);
|
27101
|
-
values[valuesById[0] = "
|
27102
|
-
values[valuesById[
|
27103
|
-
values[valuesById[2] = "HINT"] = 2;
|
27308
|
+
values[valuesById[0] = "UTF8_VALIDATION_UNKNOWN"] = 0;
|
27309
|
+
values[valuesById[2] = "VERIFY"] = 2;
|
27104
27310
|
values[valuesById[3] = "NONE"] = 3;
|
27105
27311
|
return values;
|
27106
27312
|
})();
|
@@ -27140,6 +27346,702 @@
|
|
27140
27346
|
return FeatureSet;
|
27141
27347
|
})();
|
27142
27348
|
|
27349
|
+
protobuf.FeatureSetDefaults = (function() {
|
27350
|
+
|
27351
|
+
/**
|
27352
|
+
* Properties of a FeatureSetDefaults.
|
27353
|
+
* @memberof google.protobuf
|
27354
|
+
* @interface IFeatureSetDefaults
|
27355
|
+
* @property {Array.<google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault>|null} [defaults] FeatureSetDefaults defaults
|
27356
|
+
* @property {google.protobuf.Edition|null} [minimumEdition] FeatureSetDefaults minimumEdition
|
27357
|
+
* @property {google.protobuf.Edition|null} [maximumEdition] FeatureSetDefaults maximumEdition
|
27358
|
+
*/
|
27359
|
+
|
27360
|
+
/**
|
27361
|
+
* Constructs a new FeatureSetDefaults.
|
27362
|
+
* @memberof google.protobuf
|
27363
|
+
* @classdesc Represents a FeatureSetDefaults.
|
27364
|
+
* @implements IFeatureSetDefaults
|
27365
|
+
* @constructor
|
27366
|
+
* @param {google.protobuf.IFeatureSetDefaults=} [properties] Properties to set
|
27367
|
+
*/
|
27368
|
+
function FeatureSetDefaults(properties) {
|
27369
|
+
this.defaults = [];
|
27370
|
+
if (properties)
|
27371
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
27372
|
+
if (properties[keys[i]] != null)
|
27373
|
+
this[keys[i]] = properties[keys[i]];
|
27374
|
+
}
|
27375
|
+
|
27376
|
+
/**
|
27377
|
+
* FeatureSetDefaults defaults.
|
27378
|
+
* @member {Array.<google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault>} defaults
|
27379
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
27380
|
+
* @instance
|
27381
|
+
*/
|
27382
|
+
FeatureSetDefaults.prototype.defaults = $util.emptyArray;
|
27383
|
+
|
27384
|
+
/**
|
27385
|
+
* FeatureSetDefaults minimumEdition.
|
27386
|
+
* @member {google.protobuf.Edition} minimumEdition
|
27387
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
27388
|
+
* @instance
|
27389
|
+
*/
|
27390
|
+
FeatureSetDefaults.prototype.minimumEdition = 0;
|
27391
|
+
|
27392
|
+
/**
|
27393
|
+
* FeatureSetDefaults maximumEdition.
|
27394
|
+
* @member {google.protobuf.Edition} maximumEdition
|
27395
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
27396
|
+
* @instance
|
27397
|
+
*/
|
27398
|
+
FeatureSetDefaults.prototype.maximumEdition = 0;
|
27399
|
+
|
27400
|
+
/**
|
27401
|
+
* Creates a new FeatureSetDefaults instance using the specified properties.
|
27402
|
+
* @function create
|
27403
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
27404
|
+
* @static
|
27405
|
+
* @param {google.protobuf.IFeatureSetDefaults=} [properties] Properties to set
|
27406
|
+
* @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults instance
|
27407
|
+
*/
|
27408
|
+
FeatureSetDefaults.create = function create(properties) {
|
27409
|
+
return new FeatureSetDefaults(properties);
|
27410
|
+
};
|
27411
|
+
|
27412
|
+
/**
|
27413
|
+
* Encodes the specified FeatureSetDefaults message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages.
|
27414
|
+
* @function encode
|
27415
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
27416
|
+
* @static
|
27417
|
+
* @param {google.protobuf.IFeatureSetDefaults} message FeatureSetDefaults message or plain object to encode
|
27418
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
27419
|
+
* @returns {$protobuf.Writer} Writer
|
27420
|
+
*/
|
27421
|
+
FeatureSetDefaults.encode = function encode(message, writer) {
|
27422
|
+
if (!writer)
|
27423
|
+
writer = $Writer.create();
|
27424
|
+
if (message.defaults != null && message.defaults.length)
|
27425
|
+
for (var i = 0; i < message.defaults.length; ++i)
|
27426
|
+
$root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.encode(message.defaults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
27427
|
+
if (message.minimumEdition != null && Object.hasOwnProperty.call(message, "minimumEdition"))
|
27428
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.minimumEdition);
|
27429
|
+
if (message.maximumEdition != null && Object.hasOwnProperty.call(message, "maximumEdition"))
|
27430
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maximumEdition);
|
27431
|
+
return writer;
|
27432
|
+
};
|
27433
|
+
|
27434
|
+
/**
|
27435
|
+
* Encodes the specified FeatureSetDefaults message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages.
|
27436
|
+
* @function encodeDelimited
|
27437
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
27438
|
+
* @static
|
27439
|
+
* @param {google.protobuf.IFeatureSetDefaults} message FeatureSetDefaults message or plain object to encode
|
27440
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
27441
|
+
* @returns {$protobuf.Writer} Writer
|
27442
|
+
*/
|
27443
|
+
FeatureSetDefaults.encodeDelimited = function encodeDelimited(message, writer) {
|
27444
|
+
return this.encode(message, writer).ldelim();
|
27445
|
+
};
|
27446
|
+
|
27447
|
+
/**
|
27448
|
+
* Decodes a FeatureSetDefaults message from the specified reader or buffer.
|
27449
|
+
* @function decode
|
27450
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
27451
|
+
* @static
|
27452
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
27453
|
+
* @param {number} [length] Message length if known beforehand
|
27454
|
+
* @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults
|
27455
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
27456
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
27457
|
+
*/
|
27458
|
+
FeatureSetDefaults.decode = function decode(reader, length) {
|
27459
|
+
if (!(reader instanceof $Reader))
|
27460
|
+
reader = $Reader.create(reader);
|
27461
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSetDefaults();
|
27462
|
+
while (reader.pos < end) {
|
27463
|
+
var tag = reader.uint32();
|
27464
|
+
switch (tag >>> 3) {
|
27465
|
+
case 1: {
|
27466
|
+
if (!(message.defaults && message.defaults.length))
|
27467
|
+
message.defaults = [];
|
27468
|
+
message.defaults.push($root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.decode(reader, reader.uint32()));
|
27469
|
+
break;
|
27470
|
+
}
|
27471
|
+
case 4: {
|
27472
|
+
message.minimumEdition = reader.int32();
|
27473
|
+
break;
|
27474
|
+
}
|
27475
|
+
case 5: {
|
27476
|
+
message.maximumEdition = reader.int32();
|
27477
|
+
break;
|
27478
|
+
}
|
27479
|
+
default:
|
27480
|
+
reader.skipType(tag & 7);
|
27481
|
+
break;
|
27482
|
+
}
|
27483
|
+
}
|
27484
|
+
return message;
|
27485
|
+
};
|
27486
|
+
|
27487
|
+
/**
|
27488
|
+
* Decodes a FeatureSetDefaults message from the specified reader or buffer, length delimited.
|
27489
|
+
* @function decodeDelimited
|
27490
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
27491
|
+
* @static
|
27492
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
27493
|
+
* @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults
|
27494
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
27495
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
27496
|
+
*/
|
27497
|
+
FeatureSetDefaults.decodeDelimited = function decodeDelimited(reader) {
|
27498
|
+
if (!(reader instanceof $Reader))
|
27499
|
+
reader = new $Reader(reader);
|
27500
|
+
return this.decode(reader, reader.uint32());
|
27501
|
+
};
|
27502
|
+
|
27503
|
+
/**
|
27504
|
+
* Verifies a FeatureSetDefaults message.
|
27505
|
+
* @function verify
|
27506
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
27507
|
+
* @static
|
27508
|
+
* @param {Object.<string,*>} message Plain object to verify
|
27509
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
27510
|
+
*/
|
27511
|
+
FeatureSetDefaults.verify = function verify(message) {
|
27512
|
+
if (typeof message !== "object" || message === null)
|
27513
|
+
return "object expected";
|
27514
|
+
if (message.defaults != null && message.hasOwnProperty("defaults")) {
|
27515
|
+
if (!Array.isArray(message.defaults))
|
27516
|
+
return "defaults: array expected";
|
27517
|
+
for (var i = 0; i < message.defaults.length; ++i) {
|
27518
|
+
var error = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify(message.defaults[i]);
|
27519
|
+
if (error)
|
27520
|
+
return "defaults." + error;
|
27521
|
+
}
|
27522
|
+
}
|
27523
|
+
if (message.minimumEdition != null && message.hasOwnProperty("minimumEdition"))
|
27524
|
+
switch (message.minimumEdition) {
|
27525
|
+
default:
|
27526
|
+
return "minimumEdition: enum value expected";
|
27527
|
+
case 0:
|
27528
|
+
case 998:
|
27529
|
+
case 999:
|
27530
|
+
case 1000:
|
27531
|
+
case 1001:
|
27532
|
+
case 1:
|
27533
|
+
case 2:
|
27534
|
+
case 99997:
|
27535
|
+
case 99998:
|
27536
|
+
case 99999:
|
27537
|
+
case 2147483647:
|
27538
|
+
break;
|
27539
|
+
}
|
27540
|
+
if (message.maximumEdition != null && message.hasOwnProperty("maximumEdition"))
|
27541
|
+
switch (message.maximumEdition) {
|
27542
|
+
default:
|
27543
|
+
return "maximumEdition: enum value expected";
|
27544
|
+
case 0:
|
27545
|
+
case 998:
|
27546
|
+
case 999:
|
27547
|
+
case 1000:
|
27548
|
+
case 1001:
|
27549
|
+
case 1:
|
27550
|
+
case 2:
|
27551
|
+
case 99997:
|
27552
|
+
case 99998:
|
27553
|
+
case 99999:
|
27554
|
+
case 2147483647:
|
27555
|
+
break;
|
27556
|
+
}
|
27557
|
+
return null;
|
27558
|
+
};
|
27559
|
+
|
27560
|
+
/**
|
27561
|
+
* Creates a FeatureSetDefaults message from a plain object. Also converts values to their respective internal types.
|
27562
|
+
* @function fromObject
|
27563
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
27564
|
+
* @static
|
27565
|
+
* @param {Object.<string,*>} object Plain object
|
27566
|
+
* @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults
|
27567
|
+
*/
|
27568
|
+
FeatureSetDefaults.fromObject = function fromObject(object) {
|
27569
|
+
if (object instanceof $root.google.protobuf.FeatureSetDefaults)
|
27570
|
+
return object;
|
27571
|
+
var message = new $root.google.protobuf.FeatureSetDefaults();
|
27572
|
+
if (object.defaults) {
|
27573
|
+
if (!Array.isArray(object.defaults))
|
27574
|
+
throw TypeError(".google.protobuf.FeatureSetDefaults.defaults: array expected");
|
27575
|
+
message.defaults = [];
|
27576
|
+
for (var i = 0; i < object.defaults.length; ++i) {
|
27577
|
+
if (typeof object.defaults[i] !== "object")
|
27578
|
+
throw TypeError(".google.protobuf.FeatureSetDefaults.defaults: object expected");
|
27579
|
+
message.defaults[i] = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fromObject(object.defaults[i]);
|
27580
|
+
}
|
27581
|
+
}
|
27582
|
+
switch (object.minimumEdition) {
|
27583
|
+
default:
|
27584
|
+
if (typeof object.minimumEdition === "number") {
|
27585
|
+
message.minimumEdition = object.minimumEdition;
|
27586
|
+
break;
|
27587
|
+
}
|
27588
|
+
break;
|
27589
|
+
case "EDITION_UNKNOWN":
|
27590
|
+
case 0:
|
27591
|
+
message.minimumEdition = 0;
|
27592
|
+
break;
|
27593
|
+
case "EDITION_PROTO2":
|
27594
|
+
case 998:
|
27595
|
+
message.minimumEdition = 998;
|
27596
|
+
break;
|
27597
|
+
case "EDITION_PROTO3":
|
27598
|
+
case 999:
|
27599
|
+
message.minimumEdition = 999;
|
27600
|
+
break;
|
27601
|
+
case "EDITION_2023":
|
27602
|
+
case 1000:
|
27603
|
+
message.minimumEdition = 1000;
|
27604
|
+
break;
|
27605
|
+
case "EDITION_2024":
|
27606
|
+
case 1001:
|
27607
|
+
message.minimumEdition = 1001;
|
27608
|
+
break;
|
27609
|
+
case "EDITION_1_TEST_ONLY":
|
27610
|
+
case 1:
|
27611
|
+
message.minimumEdition = 1;
|
27612
|
+
break;
|
27613
|
+
case "EDITION_2_TEST_ONLY":
|
27614
|
+
case 2:
|
27615
|
+
message.minimumEdition = 2;
|
27616
|
+
break;
|
27617
|
+
case "EDITION_99997_TEST_ONLY":
|
27618
|
+
case 99997:
|
27619
|
+
message.minimumEdition = 99997;
|
27620
|
+
break;
|
27621
|
+
case "EDITION_99998_TEST_ONLY":
|
27622
|
+
case 99998:
|
27623
|
+
message.minimumEdition = 99998;
|
27624
|
+
break;
|
27625
|
+
case "EDITION_99999_TEST_ONLY":
|
27626
|
+
case 99999:
|
27627
|
+
message.minimumEdition = 99999;
|
27628
|
+
break;
|
27629
|
+
case "EDITION_MAX":
|
27630
|
+
case 2147483647:
|
27631
|
+
message.minimumEdition = 2147483647;
|
27632
|
+
break;
|
27633
|
+
}
|
27634
|
+
switch (object.maximumEdition) {
|
27635
|
+
default:
|
27636
|
+
if (typeof object.maximumEdition === "number") {
|
27637
|
+
message.maximumEdition = object.maximumEdition;
|
27638
|
+
break;
|
27639
|
+
}
|
27640
|
+
break;
|
27641
|
+
case "EDITION_UNKNOWN":
|
27642
|
+
case 0:
|
27643
|
+
message.maximumEdition = 0;
|
27644
|
+
break;
|
27645
|
+
case "EDITION_PROTO2":
|
27646
|
+
case 998:
|
27647
|
+
message.maximumEdition = 998;
|
27648
|
+
break;
|
27649
|
+
case "EDITION_PROTO3":
|
27650
|
+
case 999:
|
27651
|
+
message.maximumEdition = 999;
|
27652
|
+
break;
|
27653
|
+
case "EDITION_2023":
|
27654
|
+
case 1000:
|
27655
|
+
message.maximumEdition = 1000;
|
27656
|
+
break;
|
27657
|
+
case "EDITION_2024":
|
27658
|
+
case 1001:
|
27659
|
+
message.maximumEdition = 1001;
|
27660
|
+
break;
|
27661
|
+
case "EDITION_1_TEST_ONLY":
|
27662
|
+
case 1:
|
27663
|
+
message.maximumEdition = 1;
|
27664
|
+
break;
|
27665
|
+
case "EDITION_2_TEST_ONLY":
|
27666
|
+
case 2:
|
27667
|
+
message.maximumEdition = 2;
|
27668
|
+
break;
|
27669
|
+
case "EDITION_99997_TEST_ONLY":
|
27670
|
+
case 99997:
|
27671
|
+
message.maximumEdition = 99997;
|
27672
|
+
break;
|
27673
|
+
case "EDITION_99998_TEST_ONLY":
|
27674
|
+
case 99998:
|
27675
|
+
message.maximumEdition = 99998;
|
27676
|
+
break;
|
27677
|
+
case "EDITION_99999_TEST_ONLY":
|
27678
|
+
case 99999:
|
27679
|
+
message.maximumEdition = 99999;
|
27680
|
+
break;
|
27681
|
+
case "EDITION_MAX":
|
27682
|
+
case 2147483647:
|
27683
|
+
message.maximumEdition = 2147483647;
|
27684
|
+
break;
|
27685
|
+
}
|
27686
|
+
return message;
|
27687
|
+
};
|
27688
|
+
|
27689
|
+
/**
|
27690
|
+
* Creates a plain object from a FeatureSetDefaults message. Also converts values to other types if specified.
|
27691
|
+
* @function toObject
|
27692
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
27693
|
+
* @static
|
27694
|
+
* @param {google.protobuf.FeatureSetDefaults} message FeatureSetDefaults
|
27695
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
27696
|
+
* @returns {Object.<string,*>} Plain object
|
27697
|
+
*/
|
27698
|
+
FeatureSetDefaults.toObject = function toObject(message, options) {
|
27699
|
+
if (!options)
|
27700
|
+
options = {};
|
27701
|
+
var object = {};
|
27702
|
+
if (options.arrays || options.defaults)
|
27703
|
+
object.defaults = [];
|
27704
|
+
if (options.defaults) {
|
27705
|
+
object.minimumEdition = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
27706
|
+
object.maximumEdition = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
27707
|
+
}
|
27708
|
+
if (message.defaults && message.defaults.length) {
|
27709
|
+
object.defaults = [];
|
27710
|
+
for (var j = 0; j < message.defaults.length; ++j)
|
27711
|
+
object.defaults[j] = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.toObject(message.defaults[j], options);
|
27712
|
+
}
|
27713
|
+
if (message.minimumEdition != null && message.hasOwnProperty("minimumEdition"))
|
27714
|
+
object.minimumEdition = options.enums === String ? $root.google.protobuf.Edition[message.minimumEdition] === undefined ? message.minimumEdition : $root.google.protobuf.Edition[message.minimumEdition] : message.minimumEdition;
|
27715
|
+
if (message.maximumEdition != null && message.hasOwnProperty("maximumEdition"))
|
27716
|
+
object.maximumEdition = options.enums === String ? $root.google.protobuf.Edition[message.maximumEdition] === undefined ? message.maximumEdition : $root.google.protobuf.Edition[message.maximumEdition] : message.maximumEdition;
|
27717
|
+
return object;
|
27718
|
+
};
|
27719
|
+
|
27720
|
+
/**
|
27721
|
+
* Converts this FeatureSetDefaults to JSON.
|
27722
|
+
* @function toJSON
|
27723
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
27724
|
+
* @instance
|
27725
|
+
* @returns {Object.<string,*>} JSON object
|
27726
|
+
*/
|
27727
|
+
FeatureSetDefaults.prototype.toJSON = function toJSON() {
|
27728
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
27729
|
+
};
|
27730
|
+
|
27731
|
+
/**
|
27732
|
+
* Gets the default type url for FeatureSetDefaults
|
27733
|
+
* @function getTypeUrl
|
27734
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
27735
|
+
* @static
|
27736
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
27737
|
+
* @returns {string} The default type url
|
27738
|
+
*/
|
27739
|
+
FeatureSetDefaults.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
27740
|
+
if (typeUrlPrefix === undefined) {
|
27741
|
+
typeUrlPrefix = "type.googleapis.com";
|
27742
|
+
}
|
27743
|
+
return typeUrlPrefix + "/google.protobuf.FeatureSetDefaults";
|
27744
|
+
};
|
27745
|
+
|
27746
|
+
FeatureSetDefaults.FeatureSetEditionDefault = (function() {
|
27747
|
+
|
27748
|
+
/**
|
27749
|
+
* Properties of a FeatureSetEditionDefault.
|
27750
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
27751
|
+
* @interface IFeatureSetEditionDefault
|
27752
|
+
* @property {google.protobuf.Edition|null} [edition] FeatureSetEditionDefault edition
|
27753
|
+
* @property {google.protobuf.IFeatureSet|null} [features] FeatureSetEditionDefault features
|
27754
|
+
*/
|
27755
|
+
|
27756
|
+
/**
|
27757
|
+
* Constructs a new FeatureSetEditionDefault.
|
27758
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
27759
|
+
* @classdesc Represents a FeatureSetEditionDefault.
|
27760
|
+
* @implements IFeatureSetEditionDefault
|
27761
|
+
* @constructor
|
27762
|
+
* @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault=} [properties] Properties to set
|
27763
|
+
*/
|
27764
|
+
function FeatureSetEditionDefault(properties) {
|
27765
|
+
if (properties)
|
27766
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
27767
|
+
if (properties[keys[i]] != null)
|
27768
|
+
this[keys[i]] = properties[keys[i]];
|
27769
|
+
}
|
27770
|
+
|
27771
|
+
/**
|
27772
|
+
* FeatureSetEditionDefault edition.
|
27773
|
+
* @member {google.protobuf.Edition} edition
|
27774
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
27775
|
+
* @instance
|
27776
|
+
*/
|
27777
|
+
FeatureSetEditionDefault.prototype.edition = 0;
|
27778
|
+
|
27779
|
+
/**
|
27780
|
+
* FeatureSetEditionDefault features.
|
27781
|
+
* @member {google.protobuf.IFeatureSet|null|undefined} features
|
27782
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
27783
|
+
* @instance
|
27784
|
+
*/
|
27785
|
+
FeatureSetEditionDefault.prototype.features = null;
|
27786
|
+
|
27787
|
+
/**
|
27788
|
+
* Creates a new FeatureSetEditionDefault instance using the specified properties.
|
27789
|
+
* @function create
|
27790
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
27791
|
+
* @static
|
27792
|
+
* @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault=} [properties] Properties to set
|
27793
|
+
* @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault instance
|
27794
|
+
*/
|
27795
|
+
FeatureSetEditionDefault.create = function create(properties) {
|
27796
|
+
return new FeatureSetEditionDefault(properties);
|
27797
|
+
};
|
27798
|
+
|
27799
|
+
/**
|
27800
|
+
* Encodes the specified FeatureSetEditionDefault message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages.
|
27801
|
+
* @function encode
|
27802
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
27803
|
+
* @static
|
27804
|
+
* @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault} message FeatureSetEditionDefault message or plain object to encode
|
27805
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
27806
|
+
* @returns {$protobuf.Writer} Writer
|
27807
|
+
*/
|
27808
|
+
FeatureSetEditionDefault.encode = function encode(message, writer) {
|
27809
|
+
if (!writer)
|
27810
|
+
writer = $Writer.create();
|
27811
|
+
if (message.features != null && Object.hasOwnProperty.call(message, "features"))
|
27812
|
+
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
27813
|
+
if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
|
27814
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition);
|
27815
|
+
return writer;
|
27816
|
+
};
|
27817
|
+
|
27818
|
+
/**
|
27819
|
+
* Encodes the specified FeatureSetEditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages.
|
27820
|
+
* @function encodeDelimited
|
27821
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
27822
|
+
* @static
|
27823
|
+
* @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault} message FeatureSetEditionDefault message or plain object to encode
|
27824
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
27825
|
+
* @returns {$protobuf.Writer} Writer
|
27826
|
+
*/
|
27827
|
+
FeatureSetEditionDefault.encodeDelimited = function encodeDelimited(message, writer) {
|
27828
|
+
return this.encode(message, writer).ldelim();
|
27829
|
+
};
|
27830
|
+
|
27831
|
+
/**
|
27832
|
+
* Decodes a FeatureSetEditionDefault message from the specified reader or buffer.
|
27833
|
+
* @function decode
|
27834
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
27835
|
+
* @static
|
27836
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
27837
|
+
* @param {number} [length] Message length if known beforehand
|
27838
|
+
* @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault
|
27839
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
27840
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
27841
|
+
*/
|
27842
|
+
FeatureSetEditionDefault.decode = function decode(reader, length) {
|
27843
|
+
if (!(reader instanceof $Reader))
|
27844
|
+
reader = $Reader.create(reader);
|
27845
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault();
|
27846
|
+
while (reader.pos < end) {
|
27847
|
+
var tag = reader.uint32();
|
27848
|
+
switch (tag >>> 3) {
|
27849
|
+
case 3: {
|
27850
|
+
message.edition = reader.int32();
|
27851
|
+
break;
|
27852
|
+
}
|
27853
|
+
case 2: {
|
27854
|
+
message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
27855
|
+
break;
|
27856
|
+
}
|
27857
|
+
default:
|
27858
|
+
reader.skipType(tag & 7);
|
27859
|
+
break;
|
27860
|
+
}
|
27861
|
+
}
|
27862
|
+
return message;
|
27863
|
+
};
|
27864
|
+
|
27865
|
+
/**
|
27866
|
+
* Decodes a FeatureSetEditionDefault message from the specified reader or buffer, length delimited.
|
27867
|
+
* @function decodeDelimited
|
27868
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
27869
|
+
* @static
|
27870
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
27871
|
+
* @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault
|
27872
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
27873
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
27874
|
+
*/
|
27875
|
+
FeatureSetEditionDefault.decodeDelimited = function decodeDelimited(reader) {
|
27876
|
+
if (!(reader instanceof $Reader))
|
27877
|
+
reader = new $Reader(reader);
|
27878
|
+
return this.decode(reader, reader.uint32());
|
27879
|
+
};
|
27880
|
+
|
27881
|
+
/**
|
27882
|
+
* Verifies a FeatureSetEditionDefault message.
|
27883
|
+
* @function verify
|
27884
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
27885
|
+
* @static
|
27886
|
+
* @param {Object.<string,*>} message Plain object to verify
|
27887
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
27888
|
+
*/
|
27889
|
+
FeatureSetEditionDefault.verify = function verify(message) {
|
27890
|
+
if (typeof message !== "object" || message === null)
|
27891
|
+
return "object expected";
|
27892
|
+
if (message.edition != null && message.hasOwnProperty("edition"))
|
27893
|
+
switch (message.edition) {
|
27894
|
+
default:
|
27895
|
+
return "edition: enum value expected";
|
27896
|
+
case 0:
|
27897
|
+
case 998:
|
27898
|
+
case 999:
|
27899
|
+
case 1000:
|
27900
|
+
case 1001:
|
27901
|
+
case 1:
|
27902
|
+
case 2:
|
27903
|
+
case 99997:
|
27904
|
+
case 99998:
|
27905
|
+
case 99999:
|
27906
|
+
case 2147483647:
|
27907
|
+
break;
|
27908
|
+
}
|
27909
|
+
if (message.features != null && message.hasOwnProperty("features")) {
|
27910
|
+
var error = $root.google.protobuf.FeatureSet.verify(message.features);
|
27911
|
+
if (error)
|
27912
|
+
return "features." + error;
|
27913
|
+
}
|
27914
|
+
return null;
|
27915
|
+
};
|
27916
|
+
|
27917
|
+
/**
|
27918
|
+
* Creates a FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types.
|
27919
|
+
* @function fromObject
|
27920
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
27921
|
+
* @static
|
27922
|
+
* @param {Object.<string,*>} object Plain object
|
27923
|
+
* @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault
|
27924
|
+
*/
|
27925
|
+
FeatureSetEditionDefault.fromObject = function fromObject(object) {
|
27926
|
+
if (object instanceof $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault)
|
27927
|
+
return object;
|
27928
|
+
var message = new $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault();
|
27929
|
+
switch (object.edition) {
|
27930
|
+
default:
|
27931
|
+
if (typeof object.edition === "number") {
|
27932
|
+
message.edition = object.edition;
|
27933
|
+
break;
|
27934
|
+
}
|
27935
|
+
break;
|
27936
|
+
case "EDITION_UNKNOWN":
|
27937
|
+
case 0:
|
27938
|
+
message.edition = 0;
|
27939
|
+
break;
|
27940
|
+
case "EDITION_PROTO2":
|
27941
|
+
case 998:
|
27942
|
+
message.edition = 998;
|
27943
|
+
break;
|
27944
|
+
case "EDITION_PROTO3":
|
27945
|
+
case 999:
|
27946
|
+
message.edition = 999;
|
27947
|
+
break;
|
27948
|
+
case "EDITION_2023":
|
27949
|
+
case 1000:
|
27950
|
+
message.edition = 1000;
|
27951
|
+
break;
|
27952
|
+
case "EDITION_2024":
|
27953
|
+
case 1001:
|
27954
|
+
message.edition = 1001;
|
27955
|
+
break;
|
27956
|
+
case "EDITION_1_TEST_ONLY":
|
27957
|
+
case 1:
|
27958
|
+
message.edition = 1;
|
27959
|
+
break;
|
27960
|
+
case "EDITION_2_TEST_ONLY":
|
27961
|
+
case 2:
|
27962
|
+
message.edition = 2;
|
27963
|
+
break;
|
27964
|
+
case "EDITION_99997_TEST_ONLY":
|
27965
|
+
case 99997:
|
27966
|
+
message.edition = 99997;
|
27967
|
+
break;
|
27968
|
+
case "EDITION_99998_TEST_ONLY":
|
27969
|
+
case 99998:
|
27970
|
+
message.edition = 99998;
|
27971
|
+
break;
|
27972
|
+
case "EDITION_99999_TEST_ONLY":
|
27973
|
+
case 99999:
|
27974
|
+
message.edition = 99999;
|
27975
|
+
break;
|
27976
|
+
case "EDITION_MAX":
|
27977
|
+
case 2147483647:
|
27978
|
+
message.edition = 2147483647;
|
27979
|
+
break;
|
27980
|
+
}
|
27981
|
+
if (object.features != null) {
|
27982
|
+
if (typeof object.features !== "object")
|
27983
|
+
throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.features: object expected");
|
27984
|
+
message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
|
27985
|
+
}
|
27986
|
+
return message;
|
27987
|
+
};
|
27988
|
+
|
27989
|
+
/**
|
27990
|
+
* Creates a plain object from a FeatureSetEditionDefault message. Also converts values to other types if specified.
|
27991
|
+
* @function toObject
|
27992
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
27993
|
+
* @static
|
27994
|
+
* @param {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} message FeatureSetEditionDefault
|
27995
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
27996
|
+
* @returns {Object.<string,*>} Plain object
|
27997
|
+
*/
|
27998
|
+
FeatureSetEditionDefault.toObject = function toObject(message, options) {
|
27999
|
+
if (!options)
|
28000
|
+
options = {};
|
28001
|
+
var object = {};
|
28002
|
+
if (options.defaults) {
|
28003
|
+
object.features = null;
|
28004
|
+
object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
28005
|
+
}
|
28006
|
+
if (message.features != null && message.hasOwnProperty("features"))
|
28007
|
+
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
28008
|
+
if (message.edition != null && message.hasOwnProperty("edition"))
|
28009
|
+
object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
|
28010
|
+
return object;
|
28011
|
+
};
|
28012
|
+
|
28013
|
+
/**
|
28014
|
+
* Converts this FeatureSetEditionDefault to JSON.
|
28015
|
+
* @function toJSON
|
28016
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
28017
|
+
* @instance
|
28018
|
+
* @returns {Object.<string,*>} JSON object
|
28019
|
+
*/
|
28020
|
+
FeatureSetEditionDefault.prototype.toJSON = function toJSON() {
|
28021
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
28022
|
+
};
|
28023
|
+
|
28024
|
+
/**
|
28025
|
+
* Gets the default type url for FeatureSetEditionDefault
|
28026
|
+
* @function getTypeUrl
|
28027
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
28028
|
+
* @static
|
28029
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
28030
|
+
* @returns {string} The default type url
|
28031
|
+
*/
|
28032
|
+
FeatureSetEditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
28033
|
+
if (typeUrlPrefix === undefined) {
|
28034
|
+
typeUrlPrefix = "type.googleapis.com";
|
28035
|
+
}
|
28036
|
+
return typeUrlPrefix + "/google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault";
|
28037
|
+
};
|
28038
|
+
|
28039
|
+
return FeatureSetEditionDefault;
|
28040
|
+
})();
|
28041
|
+
|
28042
|
+
return FeatureSetDefaults;
|
28043
|
+
})();
|
28044
|
+
|
27143
28045
|
protobuf.SourceCodeInfo = (function() {
|
27144
28046
|
|
27145
28047
|
/**
|