@google-cloud/spanner 8.1.0 → 8.2.1

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.
@@ -522,6 +522,7 @@
522
522
  * @name google.protobuf.Edition
523
523
  * @enum {number}
524
524
  * @property {number} EDITION_UNKNOWN=0 EDITION_UNKNOWN value
525
+ * @property {number} EDITION_LEGACY=900 EDITION_LEGACY value
525
526
  * @property {number} EDITION_PROTO2=998 EDITION_PROTO2 value
526
527
  * @property {number} EDITION_PROTO3=999 EDITION_PROTO3 value
527
528
  * @property {number} EDITION_2023=1000 EDITION_2023 value
@@ -536,6 +537,7 @@
536
537
  protobuf.Edition = (function() {
537
538
  var valuesById = {}, values = Object.create(valuesById);
538
539
  values[valuesById[0] = "EDITION_UNKNOWN"] = 0;
540
+ values[valuesById[900] = "EDITION_LEGACY"] = 900;
539
541
  values[valuesById[998] = "EDITION_PROTO2"] = 998;
540
542
  values[valuesById[999] = "EDITION_PROTO3"] = 999;
541
543
  values[valuesById[1000] = "EDITION_2023"] = 1000;
@@ -560,6 +562,7 @@
560
562
  * @property {Array.<string>|null} [dependency] FileDescriptorProto dependency
561
563
  * @property {Array.<number>|null} [publicDependency] FileDescriptorProto publicDependency
562
564
  * @property {Array.<number>|null} [weakDependency] FileDescriptorProto weakDependency
565
+ * @property {Array.<string>|null} [optionDependency] FileDescriptorProto optionDependency
563
566
  * @property {Array.<google.protobuf.IDescriptorProto>|null} [messageType] FileDescriptorProto messageType
564
567
  * @property {Array.<google.protobuf.IEnumDescriptorProto>|null} [enumType] FileDescriptorProto enumType
565
568
  * @property {Array.<google.protobuf.IServiceDescriptorProto>|null} [service] FileDescriptorProto service
@@ -582,6 +585,7 @@
582
585
  this.dependency = [];
583
586
  this.publicDependency = [];
584
587
  this.weakDependency = [];
588
+ this.optionDependency = [];
585
589
  this.messageType = [];
586
590
  this.enumType = [];
587
591
  this.service = [];
@@ -632,6 +636,14 @@
632
636
  */
633
637
  FileDescriptorProto.prototype.weakDependency = $util.emptyArray;
634
638
 
639
+ /**
640
+ * FileDescriptorProto optionDependency.
641
+ * @member {Array.<string>} optionDependency
642
+ * @memberof google.protobuf.FileDescriptorProto
643
+ * @instance
644
+ */
645
+ FileDescriptorProto.prototype.optionDependency = $util.emptyArray;
646
+
635
647
  /**
636
648
  * FileDescriptorProto messageType.
637
649
  * @member {Array.<google.protobuf.IDescriptorProto>} messageType
@@ -753,6 +765,9 @@
753
765
  writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax);
754
766
  if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
755
767
  writer.uint32(/* id 14, wireType 0 =*/112).int32(message.edition);
768
+ if (message.optionDependency != null && message.optionDependency.length)
769
+ for (var i = 0; i < message.optionDependency.length; ++i)
770
+ writer.uint32(/* id 15, wireType 2 =*/122).string(message.optionDependency[i]);
756
771
  return writer;
757
772
  };
758
773
 
@@ -825,6 +840,12 @@
825
840
  message.weakDependency.push(reader.int32());
826
841
  break;
827
842
  }
843
+ case 15: {
844
+ if (!(message.optionDependency && message.optionDependency.length))
845
+ message.optionDependency = [];
846
+ message.optionDependency.push(reader.string());
847
+ break;
848
+ }
828
849
  case 4: {
829
850
  if (!(message.messageType && message.messageType.length))
830
851
  message.messageType = [];
@@ -927,6 +948,13 @@
927
948
  if (!$util.isInteger(message.weakDependency[i]))
928
949
  return "weakDependency: integer[] expected";
929
950
  }
951
+ if (message.optionDependency != null && message.hasOwnProperty("optionDependency")) {
952
+ if (!Array.isArray(message.optionDependency))
953
+ return "optionDependency: array expected";
954
+ for (var i = 0; i < message.optionDependency.length; ++i)
955
+ if (!$util.isString(message.optionDependency[i]))
956
+ return "optionDependency: string[] expected";
957
+ }
930
958
  if (message.messageType != null && message.hasOwnProperty("messageType")) {
931
959
  if (!Array.isArray(message.messageType))
932
960
  return "messageType: array expected";
@@ -981,6 +1009,7 @@
981
1009
  default:
982
1010
  return "edition: enum value expected";
983
1011
  case 0:
1012
+ case 900:
984
1013
  case 998:
985
1014
  case 999:
986
1015
  case 1000:
@@ -1033,6 +1062,13 @@
1033
1062
  for (var i = 0; i < object.weakDependency.length; ++i)
1034
1063
  message.weakDependency[i] = object.weakDependency[i] | 0;
1035
1064
  }
1065
+ if (object.optionDependency) {
1066
+ if (!Array.isArray(object.optionDependency))
1067
+ throw TypeError(".google.protobuf.FileDescriptorProto.optionDependency: array expected");
1068
+ message.optionDependency = [];
1069
+ for (var i = 0; i < object.optionDependency.length; ++i)
1070
+ message.optionDependency[i] = String(object.optionDependency[i]);
1071
+ }
1036
1072
  if (object.messageType) {
1037
1073
  if (!Array.isArray(object.messageType))
1038
1074
  throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected");
@@ -1096,6 +1132,10 @@
1096
1132
  case 0:
1097
1133
  message.edition = 0;
1098
1134
  break;
1135
+ case "EDITION_LEGACY":
1136
+ case 900:
1137
+ message.edition = 900;
1138
+ break;
1099
1139
  case "EDITION_PROTO2":
1100
1140
  case 998:
1101
1141
  message.edition = 998;
@@ -1161,6 +1201,7 @@
1161
1201
  object.extension = [];
1162
1202
  object.publicDependency = [];
1163
1203
  object.weakDependency = [];
1204
+ object.optionDependency = [];
1164
1205
  }
1165
1206
  if (options.defaults) {
1166
1207
  object.name = "";
@@ -1217,6 +1258,11 @@
1217
1258
  object.syntax = message.syntax;
1218
1259
  if (message.edition != null && message.hasOwnProperty("edition"))
1219
1260
  object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
1261
+ if (message.optionDependency && message.optionDependency.length) {
1262
+ object.optionDependency = [];
1263
+ for (var j = 0; j < message.optionDependency.length; ++j)
1264
+ object.optionDependency[j] = message.optionDependency[j];
1265
+ }
1220
1266
  return object;
1221
1267
  };
1222
1268
 
@@ -1265,6 +1311,7 @@
1265
1311
  * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options
1266
1312
  * @property {Array.<google.protobuf.DescriptorProto.IReservedRange>|null} [reservedRange] DescriptorProto reservedRange
1267
1313
  * @property {Array.<string>|null} [reservedName] DescriptorProto reservedName
1314
+ * @property {google.protobuf.SymbolVisibility|null} [visibility] DescriptorProto visibility
1268
1315
  */
1269
1316
 
1270
1317
  /**
@@ -1370,6 +1417,14 @@
1370
1417
  */
1371
1418
  DescriptorProto.prototype.reservedName = $util.emptyArray;
1372
1419
 
1420
+ /**
1421
+ * DescriptorProto visibility.
1422
+ * @member {google.protobuf.SymbolVisibility} visibility
1423
+ * @memberof google.protobuf.DescriptorProto
1424
+ * @instance
1425
+ */
1426
+ DescriptorProto.prototype.visibility = 0;
1427
+
1373
1428
  /**
1374
1429
  * Creates a new DescriptorProto instance using the specified properties.
1375
1430
  * @function create
@@ -1422,6 +1477,8 @@
1422
1477
  if (message.reservedName != null && message.reservedName.length)
1423
1478
  for (var i = 0; i < message.reservedName.length; ++i)
1424
1479
  writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]);
1480
+ if (message.visibility != null && Object.hasOwnProperty.call(message, "visibility"))
1481
+ writer.uint32(/* id 11, wireType 0 =*/88).int32(message.visibility);
1425
1482
  return writer;
1426
1483
  };
1427
1484
 
@@ -1514,6 +1571,10 @@
1514
1571
  message.reservedName.push(reader.string());
1515
1572
  break;
1516
1573
  }
1574
+ case 11: {
1575
+ message.visibility = reader.int32();
1576
+ break;
1577
+ }
1517
1578
  default:
1518
1579
  reader.skipType(tag & 7);
1519
1580
  break;
@@ -1627,6 +1688,15 @@
1627
1688
  if (!$util.isString(message.reservedName[i]))
1628
1689
  return "reservedName: string[] expected";
1629
1690
  }
1691
+ if (message.visibility != null && message.hasOwnProperty("visibility"))
1692
+ switch (message.visibility) {
1693
+ default:
1694
+ return "visibility: enum value expected";
1695
+ case 0:
1696
+ case 1:
1697
+ case 2:
1698
+ break;
1699
+ }
1630
1700
  return null;
1631
1701
  };
1632
1702
 
@@ -1726,6 +1796,26 @@
1726
1796
  for (var i = 0; i < object.reservedName.length; ++i)
1727
1797
  message.reservedName[i] = String(object.reservedName[i]);
1728
1798
  }
1799
+ switch (object.visibility) {
1800
+ default:
1801
+ if (typeof object.visibility === "number") {
1802
+ message.visibility = object.visibility;
1803
+ break;
1804
+ }
1805
+ break;
1806
+ case "VISIBILITY_UNSET":
1807
+ case 0:
1808
+ message.visibility = 0;
1809
+ break;
1810
+ case "VISIBILITY_LOCAL":
1811
+ case 1:
1812
+ message.visibility = 1;
1813
+ break;
1814
+ case "VISIBILITY_EXPORT":
1815
+ case 2:
1816
+ message.visibility = 2;
1817
+ break;
1818
+ }
1729
1819
  return message;
1730
1820
  };
1731
1821
 
@@ -1755,6 +1845,7 @@
1755
1845
  if (options.defaults) {
1756
1846
  object.name = "";
1757
1847
  object.options = null;
1848
+ object.visibility = options.enums === String ? "VISIBILITY_UNSET" : 0;
1758
1849
  }
1759
1850
  if (message.name != null && message.hasOwnProperty("name"))
1760
1851
  object.name = message.name;
@@ -1800,6 +1891,8 @@
1800
1891
  for (var j = 0; j < message.reservedName.length; ++j)
1801
1892
  object.reservedName[j] = message.reservedName[j];
1802
1893
  }
1894
+ if (message.visibility != null && message.hasOwnProperty("visibility"))
1895
+ object.visibility = options.enums === String ? $root.google.protobuf.SymbolVisibility[message.visibility] === undefined ? message.visibility : $root.google.protobuf.SymbolVisibility[message.visibility] : message.visibility;
1803
1896
  return object;
1804
1897
  };
1805
1898
 
@@ -3844,6 +3937,7 @@
3844
3937
  * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options
3845
3938
  * @property {Array.<google.protobuf.EnumDescriptorProto.IEnumReservedRange>|null} [reservedRange] EnumDescriptorProto reservedRange
3846
3939
  * @property {Array.<string>|null} [reservedName] EnumDescriptorProto reservedName
3940
+ * @property {google.protobuf.SymbolVisibility|null} [visibility] EnumDescriptorProto visibility
3847
3941
  */
3848
3942
 
3849
3943
  /**
@@ -3904,6 +3998,14 @@
3904
3998
  */
3905
3999
  EnumDescriptorProto.prototype.reservedName = $util.emptyArray;
3906
4000
 
4001
+ /**
4002
+ * EnumDescriptorProto visibility.
4003
+ * @member {google.protobuf.SymbolVisibility} visibility
4004
+ * @memberof google.protobuf.EnumDescriptorProto
4005
+ * @instance
4006
+ */
4007
+ EnumDescriptorProto.prototype.visibility = 0;
4008
+
3907
4009
  /**
3908
4010
  * Creates a new EnumDescriptorProto instance using the specified properties.
3909
4011
  * @function create
@@ -3941,6 +4043,8 @@
3941
4043
  if (message.reservedName != null && message.reservedName.length)
3942
4044
  for (var i = 0; i < message.reservedName.length; ++i)
3943
4045
  writer.uint32(/* id 5, wireType 2 =*/42).string(message.reservedName[i]);
4046
+ if (message.visibility != null && Object.hasOwnProperty.call(message, "visibility"))
4047
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.visibility);
3944
4048
  return writer;
3945
4049
  };
3946
4050
 
@@ -4003,6 +4107,10 @@
4003
4107
  message.reservedName.push(reader.string());
4004
4108
  break;
4005
4109
  }
4110
+ case 6: {
4111
+ message.visibility = reader.int32();
4112
+ break;
4113
+ }
4006
4114
  default:
4007
4115
  reader.skipType(tag & 7);
4008
4116
  break;
@@ -4071,6 +4179,15 @@
4071
4179
  if (!$util.isString(message.reservedName[i]))
4072
4180
  return "reservedName: string[] expected";
4073
4181
  }
4182
+ if (message.visibility != null && message.hasOwnProperty("visibility"))
4183
+ switch (message.visibility) {
4184
+ default:
4185
+ return "visibility: enum value expected";
4186
+ case 0:
4187
+ case 1:
4188
+ case 2:
4189
+ break;
4190
+ }
4074
4191
  return null;
4075
4192
  };
4076
4193
 
@@ -4120,6 +4237,26 @@
4120
4237
  for (var i = 0; i < object.reservedName.length; ++i)
4121
4238
  message.reservedName[i] = String(object.reservedName[i]);
4122
4239
  }
4240
+ switch (object.visibility) {
4241
+ default:
4242
+ if (typeof object.visibility === "number") {
4243
+ message.visibility = object.visibility;
4244
+ break;
4245
+ }
4246
+ break;
4247
+ case "VISIBILITY_UNSET":
4248
+ case 0:
4249
+ message.visibility = 0;
4250
+ break;
4251
+ case "VISIBILITY_LOCAL":
4252
+ case 1:
4253
+ message.visibility = 1;
4254
+ break;
4255
+ case "VISIBILITY_EXPORT":
4256
+ case 2:
4257
+ message.visibility = 2;
4258
+ break;
4259
+ }
4123
4260
  return message;
4124
4261
  };
4125
4262
 
@@ -4144,6 +4281,7 @@
4144
4281
  if (options.defaults) {
4145
4282
  object.name = "";
4146
4283
  object.options = null;
4284
+ object.visibility = options.enums === String ? "VISIBILITY_UNSET" : 0;
4147
4285
  }
4148
4286
  if (message.name != null && message.hasOwnProperty("name"))
4149
4287
  object.name = message.name;
@@ -4164,6 +4302,8 @@
4164
4302
  for (var j = 0; j < message.reservedName.length; ++j)
4165
4303
  object.reservedName[j] = message.reservedName[j];
4166
4304
  }
4305
+ if (message.visibility != null && message.hasOwnProperty("visibility"))
4306
+ object.visibility = options.enums === String ? $root.google.protobuf.SymbolVisibility[message.visibility] === undefined ? message.visibility : $root.google.protobuf.SymbolVisibility[message.visibility] : message.visibility;
4167
4307
  return object;
4168
4308
  };
4169
4309
 
@@ -6482,6 +6622,7 @@
6482
6622
  * @property {Array.<google.protobuf.FieldOptions.OptionTargetType>|null} [targets] FieldOptions targets
6483
6623
  * @property {Array.<google.protobuf.FieldOptions.IEditionDefault>|null} [editionDefaults] FieldOptions editionDefaults
6484
6624
  * @property {google.protobuf.IFeatureSet|null} [features] FieldOptions features
6625
+ * @property {google.protobuf.FieldOptions.IFeatureSupport|null} [featureSupport] FieldOptions featureSupport
6485
6626
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FieldOptions uninterpretedOption
6486
6627
  * @property {Array.<google.api.FieldBehavior>|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior
6487
6628
  * @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference
@@ -6602,6 +6743,14 @@
6602
6743
  */
6603
6744
  FieldOptions.prototype.features = null;
6604
6745
 
6746
+ /**
6747
+ * FieldOptions featureSupport.
6748
+ * @member {google.protobuf.FieldOptions.IFeatureSupport|null|undefined} featureSupport
6749
+ * @memberof google.protobuf.FieldOptions
6750
+ * @instance
6751
+ */
6752
+ FieldOptions.prototype.featureSupport = null;
6753
+
6605
6754
  /**
6606
6755
  * FieldOptions uninterpretedOption.
6607
6756
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -6676,6 +6825,8 @@
6676
6825
  $root.google.protobuf.FieldOptions.EditionDefault.encode(message.editionDefaults[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
6677
6826
  if (message.features != null && Object.hasOwnProperty.call(message, "features"))
6678
6827
  $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
6828
+ if (message.featureSupport != null && Object.hasOwnProperty.call(message, "featureSupport"))
6829
+ $root.google.protobuf.FieldOptions.FeatureSupport.encode(message.featureSupport, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
6679
6830
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
6680
6831
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
6681
6832
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -6777,6 +6928,10 @@
6777
6928
  message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
6778
6929
  break;
6779
6930
  }
6931
+ case 22: {
6932
+ message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.decode(reader, reader.uint32());
6933
+ break;
6934
+ }
6780
6935
  case 999: {
6781
6936
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
6782
6937
  message.uninterpretedOption = [];
@@ -6912,6 +7067,11 @@
6912
7067
  if (error)
6913
7068
  return "features." + error;
6914
7069
  }
7070
+ if (message.featureSupport != null && message.hasOwnProperty("featureSupport")) {
7071
+ var error = $root.google.protobuf.FieldOptions.FeatureSupport.verify(message.featureSupport);
7072
+ if (error)
7073
+ return "featureSupport." + error;
7074
+ }
6915
7075
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
6916
7076
  if (!Array.isArray(message.uninterpretedOption))
6917
7077
  return "uninterpretedOption: array expected";
@@ -7100,6 +7260,11 @@
7100
7260
  throw TypeError(".google.protobuf.FieldOptions.features: object expected");
7101
7261
  message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
7102
7262
  }
7263
+ if (object.featureSupport != null) {
7264
+ if (typeof object.featureSupport !== "object")
7265
+ throw TypeError(".google.protobuf.FieldOptions.featureSupport: object expected");
7266
+ message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.fromObject(object.featureSupport);
7267
+ }
7103
7268
  if (object.uninterpretedOption) {
7104
7269
  if (!Array.isArray(object.uninterpretedOption))
7105
7270
  throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected");
@@ -7197,6 +7362,7 @@
7197
7362
  object.debugRedact = false;
7198
7363
  object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0;
7199
7364
  object.features = null;
7365
+ object.featureSupport = null;
7200
7366
  object[".google.api.resourceReference"] = null;
7201
7367
  }
7202
7368
  if (message.ctype != null && message.hasOwnProperty("ctype"))
@@ -7229,6 +7395,8 @@
7229
7395
  }
7230
7396
  if (message.features != null && message.hasOwnProperty("features"))
7231
7397
  object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
7398
+ if (message.featureSupport != null && message.hasOwnProperty("featureSupport"))
7399
+ object.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.toObject(message.featureSupport, options);
7232
7400
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
7233
7401
  object.uninterpretedOption = [];
7234
7402
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -7501,6 +7669,7 @@
7501
7669
  default:
7502
7670
  return "edition: enum value expected";
7503
7671
  case 0:
7672
+ case 900:
7504
7673
  case 998:
7505
7674
  case 999:
7506
7675
  case 1000:
@@ -7542,6 +7711,10 @@
7542
7711
  case 0:
7543
7712
  message.edition = 0;
7544
7713
  break;
7714
+ case "EDITION_LEGACY":
7715
+ case 900:
7716
+ message.edition = 900;
7717
+ break;
7545
7718
  case "EDITION_PROTO2":
7546
7719
  case 998:
7547
7720
  message.edition = 998;
@@ -7641,6 +7814,488 @@
7641
7814
  return EditionDefault;
7642
7815
  })();
7643
7816
 
7817
+ FieldOptions.FeatureSupport = (function() {
7818
+
7819
+ /**
7820
+ * Properties of a FeatureSupport.
7821
+ * @memberof google.protobuf.FieldOptions
7822
+ * @interface IFeatureSupport
7823
+ * @property {google.protobuf.Edition|null} [editionIntroduced] FeatureSupport editionIntroduced
7824
+ * @property {google.protobuf.Edition|null} [editionDeprecated] FeatureSupport editionDeprecated
7825
+ * @property {string|null} [deprecationWarning] FeatureSupport deprecationWarning
7826
+ * @property {google.protobuf.Edition|null} [editionRemoved] FeatureSupport editionRemoved
7827
+ */
7828
+
7829
+ /**
7830
+ * Constructs a new FeatureSupport.
7831
+ * @memberof google.protobuf.FieldOptions
7832
+ * @classdesc Represents a FeatureSupport.
7833
+ * @implements IFeatureSupport
7834
+ * @constructor
7835
+ * @param {google.protobuf.FieldOptions.IFeatureSupport=} [properties] Properties to set
7836
+ */
7837
+ function FeatureSupport(properties) {
7838
+ if (properties)
7839
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
7840
+ if (properties[keys[i]] != null)
7841
+ this[keys[i]] = properties[keys[i]];
7842
+ }
7843
+
7844
+ /**
7845
+ * FeatureSupport editionIntroduced.
7846
+ * @member {google.protobuf.Edition} editionIntroduced
7847
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
7848
+ * @instance
7849
+ */
7850
+ FeatureSupport.prototype.editionIntroduced = 0;
7851
+
7852
+ /**
7853
+ * FeatureSupport editionDeprecated.
7854
+ * @member {google.protobuf.Edition} editionDeprecated
7855
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
7856
+ * @instance
7857
+ */
7858
+ FeatureSupport.prototype.editionDeprecated = 0;
7859
+
7860
+ /**
7861
+ * FeatureSupport deprecationWarning.
7862
+ * @member {string} deprecationWarning
7863
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
7864
+ * @instance
7865
+ */
7866
+ FeatureSupport.prototype.deprecationWarning = "";
7867
+
7868
+ /**
7869
+ * FeatureSupport editionRemoved.
7870
+ * @member {google.protobuf.Edition} editionRemoved
7871
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
7872
+ * @instance
7873
+ */
7874
+ FeatureSupport.prototype.editionRemoved = 0;
7875
+
7876
+ /**
7877
+ * Creates a new FeatureSupport instance using the specified properties.
7878
+ * @function create
7879
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
7880
+ * @static
7881
+ * @param {google.protobuf.FieldOptions.IFeatureSupport=} [properties] Properties to set
7882
+ * @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport instance
7883
+ */
7884
+ FeatureSupport.create = function create(properties) {
7885
+ return new FeatureSupport(properties);
7886
+ };
7887
+
7888
+ /**
7889
+ * Encodes the specified FeatureSupport message. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
7890
+ * @function encode
7891
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
7892
+ * @static
7893
+ * @param {google.protobuf.FieldOptions.IFeatureSupport} message FeatureSupport message or plain object to encode
7894
+ * @param {$protobuf.Writer} [writer] Writer to encode to
7895
+ * @returns {$protobuf.Writer} Writer
7896
+ */
7897
+ FeatureSupport.encode = function encode(message, writer) {
7898
+ if (!writer)
7899
+ writer = $Writer.create();
7900
+ if (message.editionIntroduced != null && Object.hasOwnProperty.call(message, "editionIntroduced"))
7901
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.editionIntroduced);
7902
+ if (message.editionDeprecated != null && Object.hasOwnProperty.call(message, "editionDeprecated"))
7903
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.editionDeprecated);
7904
+ if (message.deprecationWarning != null && Object.hasOwnProperty.call(message, "deprecationWarning"))
7905
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.deprecationWarning);
7906
+ if (message.editionRemoved != null && Object.hasOwnProperty.call(message, "editionRemoved"))
7907
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.editionRemoved);
7908
+ return writer;
7909
+ };
7910
+
7911
+ /**
7912
+ * Encodes the specified FeatureSupport message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
7913
+ * @function encodeDelimited
7914
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
7915
+ * @static
7916
+ * @param {google.protobuf.FieldOptions.IFeatureSupport} message FeatureSupport message or plain object to encode
7917
+ * @param {$protobuf.Writer} [writer] Writer to encode to
7918
+ * @returns {$protobuf.Writer} Writer
7919
+ */
7920
+ FeatureSupport.encodeDelimited = function encodeDelimited(message, writer) {
7921
+ return this.encode(message, writer).ldelim();
7922
+ };
7923
+
7924
+ /**
7925
+ * Decodes a FeatureSupport message from the specified reader or buffer.
7926
+ * @function decode
7927
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
7928
+ * @static
7929
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
7930
+ * @param {number} [length] Message length if known beforehand
7931
+ * @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
7932
+ * @throws {Error} If the payload is not a reader or valid buffer
7933
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7934
+ */
7935
+ FeatureSupport.decode = function decode(reader, length, error) {
7936
+ if (!(reader instanceof $Reader))
7937
+ reader = $Reader.create(reader);
7938
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions.FeatureSupport();
7939
+ while (reader.pos < end) {
7940
+ var tag = reader.uint32();
7941
+ if (tag === error)
7942
+ break;
7943
+ switch (tag >>> 3) {
7944
+ case 1: {
7945
+ message.editionIntroduced = reader.int32();
7946
+ break;
7947
+ }
7948
+ case 2: {
7949
+ message.editionDeprecated = reader.int32();
7950
+ break;
7951
+ }
7952
+ case 3: {
7953
+ message.deprecationWarning = reader.string();
7954
+ break;
7955
+ }
7956
+ case 4: {
7957
+ message.editionRemoved = reader.int32();
7958
+ break;
7959
+ }
7960
+ default:
7961
+ reader.skipType(tag & 7);
7962
+ break;
7963
+ }
7964
+ }
7965
+ return message;
7966
+ };
7967
+
7968
+ /**
7969
+ * Decodes a FeatureSupport message from the specified reader or buffer, length delimited.
7970
+ * @function decodeDelimited
7971
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
7972
+ * @static
7973
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
7974
+ * @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
7975
+ * @throws {Error} If the payload is not a reader or valid buffer
7976
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7977
+ */
7978
+ FeatureSupport.decodeDelimited = function decodeDelimited(reader) {
7979
+ if (!(reader instanceof $Reader))
7980
+ reader = new $Reader(reader);
7981
+ return this.decode(reader, reader.uint32());
7982
+ };
7983
+
7984
+ /**
7985
+ * Verifies a FeatureSupport message.
7986
+ * @function verify
7987
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
7988
+ * @static
7989
+ * @param {Object.<string,*>} message Plain object to verify
7990
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
7991
+ */
7992
+ FeatureSupport.verify = function verify(message) {
7993
+ if (typeof message !== "object" || message === null)
7994
+ return "object expected";
7995
+ if (message.editionIntroduced != null && message.hasOwnProperty("editionIntroduced"))
7996
+ switch (message.editionIntroduced) {
7997
+ default:
7998
+ return "editionIntroduced: enum value expected";
7999
+ case 0:
8000
+ case 900:
8001
+ case 998:
8002
+ case 999:
8003
+ case 1000:
8004
+ case 1001:
8005
+ case 1:
8006
+ case 2:
8007
+ case 99997:
8008
+ case 99998:
8009
+ case 99999:
8010
+ case 2147483647:
8011
+ break;
8012
+ }
8013
+ if (message.editionDeprecated != null && message.hasOwnProperty("editionDeprecated"))
8014
+ switch (message.editionDeprecated) {
8015
+ default:
8016
+ return "editionDeprecated: enum value expected";
8017
+ case 0:
8018
+ case 900:
8019
+ case 998:
8020
+ case 999:
8021
+ case 1000:
8022
+ case 1001:
8023
+ case 1:
8024
+ case 2:
8025
+ case 99997:
8026
+ case 99998:
8027
+ case 99999:
8028
+ case 2147483647:
8029
+ break;
8030
+ }
8031
+ if (message.deprecationWarning != null && message.hasOwnProperty("deprecationWarning"))
8032
+ if (!$util.isString(message.deprecationWarning))
8033
+ return "deprecationWarning: string expected";
8034
+ if (message.editionRemoved != null && message.hasOwnProperty("editionRemoved"))
8035
+ switch (message.editionRemoved) {
8036
+ default:
8037
+ return "editionRemoved: enum value expected";
8038
+ case 0:
8039
+ case 900:
8040
+ case 998:
8041
+ case 999:
8042
+ case 1000:
8043
+ case 1001:
8044
+ case 1:
8045
+ case 2:
8046
+ case 99997:
8047
+ case 99998:
8048
+ case 99999:
8049
+ case 2147483647:
8050
+ break;
8051
+ }
8052
+ return null;
8053
+ };
8054
+
8055
+ /**
8056
+ * Creates a FeatureSupport message from a plain object. Also converts values to their respective internal types.
8057
+ * @function fromObject
8058
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
8059
+ * @static
8060
+ * @param {Object.<string,*>} object Plain object
8061
+ * @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
8062
+ */
8063
+ FeatureSupport.fromObject = function fromObject(object) {
8064
+ if (object instanceof $root.google.protobuf.FieldOptions.FeatureSupport)
8065
+ return object;
8066
+ var message = new $root.google.protobuf.FieldOptions.FeatureSupport();
8067
+ switch (object.editionIntroduced) {
8068
+ default:
8069
+ if (typeof object.editionIntroduced === "number") {
8070
+ message.editionIntroduced = object.editionIntroduced;
8071
+ break;
8072
+ }
8073
+ break;
8074
+ case "EDITION_UNKNOWN":
8075
+ case 0:
8076
+ message.editionIntroduced = 0;
8077
+ break;
8078
+ case "EDITION_LEGACY":
8079
+ case 900:
8080
+ message.editionIntroduced = 900;
8081
+ break;
8082
+ case "EDITION_PROTO2":
8083
+ case 998:
8084
+ message.editionIntroduced = 998;
8085
+ break;
8086
+ case "EDITION_PROTO3":
8087
+ case 999:
8088
+ message.editionIntroduced = 999;
8089
+ break;
8090
+ case "EDITION_2023":
8091
+ case 1000:
8092
+ message.editionIntroduced = 1000;
8093
+ break;
8094
+ case "EDITION_2024":
8095
+ case 1001:
8096
+ message.editionIntroduced = 1001;
8097
+ break;
8098
+ case "EDITION_1_TEST_ONLY":
8099
+ case 1:
8100
+ message.editionIntroduced = 1;
8101
+ break;
8102
+ case "EDITION_2_TEST_ONLY":
8103
+ case 2:
8104
+ message.editionIntroduced = 2;
8105
+ break;
8106
+ case "EDITION_99997_TEST_ONLY":
8107
+ case 99997:
8108
+ message.editionIntroduced = 99997;
8109
+ break;
8110
+ case "EDITION_99998_TEST_ONLY":
8111
+ case 99998:
8112
+ message.editionIntroduced = 99998;
8113
+ break;
8114
+ case "EDITION_99999_TEST_ONLY":
8115
+ case 99999:
8116
+ message.editionIntroduced = 99999;
8117
+ break;
8118
+ case "EDITION_MAX":
8119
+ case 2147483647:
8120
+ message.editionIntroduced = 2147483647;
8121
+ break;
8122
+ }
8123
+ switch (object.editionDeprecated) {
8124
+ default:
8125
+ if (typeof object.editionDeprecated === "number") {
8126
+ message.editionDeprecated = object.editionDeprecated;
8127
+ break;
8128
+ }
8129
+ break;
8130
+ case "EDITION_UNKNOWN":
8131
+ case 0:
8132
+ message.editionDeprecated = 0;
8133
+ break;
8134
+ case "EDITION_LEGACY":
8135
+ case 900:
8136
+ message.editionDeprecated = 900;
8137
+ break;
8138
+ case "EDITION_PROTO2":
8139
+ case 998:
8140
+ message.editionDeprecated = 998;
8141
+ break;
8142
+ case "EDITION_PROTO3":
8143
+ case 999:
8144
+ message.editionDeprecated = 999;
8145
+ break;
8146
+ case "EDITION_2023":
8147
+ case 1000:
8148
+ message.editionDeprecated = 1000;
8149
+ break;
8150
+ case "EDITION_2024":
8151
+ case 1001:
8152
+ message.editionDeprecated = 1001;
8153
+ break;
8154
+ case "EDITION_1_TEST_ONLY":
8155
+ case 1:
8156
+ message.editionDeprecated = 1;
8157
+ break;
8158
+ case "EDITION_2_TEST_ONLY":
8159
+ case 2:
8160
+ message.editionDeprecated = 2;
8161
+ break;
8162
+ case "EDITION_99997_TEST_ONLY":
8163
+ case 99997:
8164
+ message.editionDeprecated = 99997;
8165
+ break;
8166
+ case "EDITION_99998_TEST_ONLY":
8167
+ case 99998:
8168
+ message.editionDeprecated = 99998;
8169
+ break;
8170
+ case "EDITION_99999_TEST_ONLY":
8171
+ case 99999:
8172
+ message.editionDeprecated = 99999;
8173
+ break;
8174
+ case "EDITION_MAX":
8175
+ case 2147483647:
8176
+ message.editionDeprecated = 2147483647;
8177
+ break;
8178
+ }
8179
+ if (object.deprecationWarning != null)
8180
+ message.deprecationWarning = String(object.deprecationWarning);
8181
+ switch (object.editionRemoved) {
8182
+ default:
8183
+ if (typeof object.editionRemoved === "number") {
8184
+ message.editionRemoved = object.editionRemoved;
8185
+ break;
8186
+ }
8187
+ break;
8188
+ case "EDITION_UNKNOWN":
8189
+ case 0:
8190
+ message.editionRemoved = 0;
8191
+ break;
8192
+ case "EDITION_LEGACY":
8193
+ case 900:
8194
+ message.editionRemoved = 900;
8195
+ break;
8196
+ case "EDITION_PROTO2":
8197
+ case 998:
8198
+ message.editionRemoved = 998;
8199
+ break;
8200
+ case "EDITION_PROTO3":
8201
+ case 999:
8202
+ message.editionRemoved = 999;
8203
+ break;
8204
+ case "EDITION_2023":
8205
+ case 1000:
8206
+ message.editionRemoved = 1000;
8207
+ break;
8208
+ case "EDITION_2024":
8209
+ case 1001:
8210
+ message.editionRemoved = 1001;
8211
+ break;
8212
+ case "EDITION_1_TEST_ONLY":
8213
+ case 1:
8214
+ message.editionRemoved = 1;
8215
+ break;
8216
+ case "EDITION_2_TEST_ONLY":
8217
+ case 2:
8218
+ message.editionRemoved = 2;
8219
+ break;
8220
+ case "EDITION_99997_TEST_ONLY":
8221
+ case 99997:
8222
+ message.editionRemoved = 99997;
8223
+ break;
8224
+ case "EDITION_99998_TEST_ONLY":
8225
+ case 99998:
8226
+ message.editionRemoved = 99998;
8227
+ break;
8228
+ case "EDITION_99999_TEST_ONLY":
8229
+ case 99999:
8230
+ message.editionRemoved = 99999;
8231
+ break;
8232
+ case "EDITION_MAX":
8233
+ case 2147483647:
8234
+ message.editionRemoved = 2147483647;
8235
+ break;
8236
+ }
8237
+ return message;
8238
+ };
8239
+
8240
+ /**
8241
+ * Creates a plain object from a FeatureSupport message. Also converts values to other types if specified.
8242
+ * @function toObject
8243
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
8244
+ * @static
8245
+ * @param {google.protobuf.FieldOptions.FeatureSupport} message FeatureSupport
8246
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
8247
+ * @returns {Object.<string,*>} Plain object
8248
+ */
8249
+ FeatureSupport.toObject = function toObject(message, options) {
8250
+ if (!options)
8251
+ options = {};
8252
+ var object = {};
8253
+ if (options.defaults) {
8254
+ object.editionIntroduced = options.enums === String ? "EDITION_UNKNOWN" : 0;
8255
+ object.editionDeprecated = options.enums === String ? "EDITION_UNKNOWN" : 0;
8256
+ object.deprecationWarning = "";
8257
+ object.editionRemoved = options.enums === String ? "EDITION_UNKNOWN" : 0;
8258
+ }
8259
+ if (message.editionIntroduced != null && message.hasOwnProperty("editionIntroduced"))
8260
+ object.editionIntroduced = options.enums === String ? $root.google.protobuf.Edition[message.editionIntroduced] === undefined ? message.editionIntroduced : $root.google.protobuf.Edition[message.editionIntroduced] : message.editionIntroduced;
8261
+ if (message.editionDeprecated != null && message.hasOwnProperty("editionDeprecated"))
8262
+ object.editionDeprecated = options.enums === String ? $root.google.protobuf.Edition[message.editionDeprecated] === undefined ? message.editionDeprecated : $root.google.protobuf.Edition[message.editionDeprecated] : message.editionDeprecated;
8263
+ if (message.deprecationWarning != null && message.hasOwnProperty("deprecationWarning"))
8264
+ object.deprecationWarning = message.deprecationWarning;
8265
+ if (message.editionRemoved != null && message.hasOwnProperty("editionRemoved"))
8266
+ object.editionRemoved = options.enums === String ? $root.google.protobuf.Edition[message.editionRemoved] === undefined ? message.editionRemoved : $root.google.protobuf.Edition[message.editionRemoved] : message.editionRemoved;
8267
+ return object;
8268
+ };
8269
+
8270
+ /**
8271
+ * Converts this FeatureSupport to JSON.
8272
+ * @function toJSON
8273
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
8274
+ * @instance
8275
+ * @returns {Object.<string,*>} JSON object
8276
+ */
8277
+ FeatureSupport.prototype.toJSON = function toJSON() {
8278
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
8279
+ };
8280
+
8281
+ /**
8282
+ * Gets the default type url for FeatureSupport
8283
+ * @function getTypeUrl
8284
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
8285
+ * @static
8286
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
8287
+ * @returns {string} The default type url
8288
+ */
8289
+ FeatureSupport.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
8290
+ if (typeUrlPrefix === undefined) {
8291
+ typeUrlPrefix = "type.googleapis.com";
8292
+ }
8293
+ return typeUrlPrefix + "/google.protobuf.FieldOptions.FeatureSupport";
8294
+ };
8295
+
8296
+ return FeatureSupport;
8297
+ })();
8298
+
7644
8299
  return FieldOptions;
7645
8300
  })();
7646
8301
 
@@ -8233,6 +8888,7 @@
8233
8888
  * @property {boolean|null} [deprecated] EnumValueOptions deprecated
8234
8889
  * @property {google.protobuf.IFeatureSet|null} [features] EnumValueOptions features
8235
8890
  * @property {boolean|null} [debugRedact] EnumValueOptions debugRedact
8891
+ * @property {google.protobuf.FieldOptions.IFeatureSupport|null} [featureSupport] EnumValueOptions featureSupport
8236
8892
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] EnumValueOptions uninterpretedOption
8237
8893
  */
8238
8894
 
@@ -8276,6 +8932,14 @@
8276
8932
  */
8277
8933
  EnumValueOptions.prototype.debugRedact = false;
8278
8934
 
8935
+ /**
8936
+ * EnumValueOptions featureSupport.
8937
+ * @member {google.protobuf.FieldOptions.IFeatureSupport|null|undefined} featureSupport
8938
+ * @memberof google.protobuf.EnumValueOptions
8939
+ * @instance
8940
+ */
8941
+ EnumValueOptions.prototype.featureSupport = null;
8942
+
8279
8943
  /**
8280
8944
  * EnumValueOptions uninterpretedOption.
8281
8945
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -8314,6 +8978,8 @@
8314
8978
  $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
8315
8979
  if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact"))
8316
8980
  writer.uint32(/* id 3, wireType 0 =*/24).bool(message.debugRedact);
8981
+ if (message.featureSupport != null && Object.hasOwnProperty.call(message, "featureSupport"))
8982
+ $root.google.protobuf.FieldOptions.FeatureSupport.encode(message.featureSupport, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
8317
8983
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
8318
8984
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
8319
8985
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -8365,6 +9031,10 @@
8365
9031
  message.debugRedact = reader.bool();
8366
9032
  break;
8367
9033
  }
9034
+ case 4: {
9035
+ message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.decode(reader, reader.uint32());
9036
+ break;
9037
+ }
8368
9038
  case 999: {
8369
9039
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
8370
9040
  message.uninterpretedOption = [];
@@ -8417,6 +9087,11 @@
8417
9087
  if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
8418
9088
  if (typeof message.debugRedact !== "boolean")
8419
9089
  return "debugRedact: boolean expected";
9090
+ if (message.featureSupport != null && message.hasOwnProperty("featureSupport")) {
9091
+ var error = $root.google.protobuf.FieldOptions.FeatureSupport.verify(message.featureSupport);
9092
+ if (error)
9093
+ return "featureSupport." + error;
9094
+ }
8420
9095
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
8421
9096
  if (!Array.isArray(message.uninterpretedOption))
8422
9097
  return "uninterpretedOption: array expected";
@@ -8450,6 +9125,11 @@
8450
9125
  }
8451
9126
  if (object.debugRedact != null)
8452
9127
  message.debugRedact = Boolean(object.debugRedact);
9128
+ if (object.featureSupport != null) {
9129
+ if (typeof object.featureSupport !== "object")
9130
+ throw TypeError(".google.protobuf.EnumValueOptions.featureSupport: object expected");
9131
+ message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.fromObject(object.featureSupport);
9132
+ }
8453
9133
  if (object.uninterpretedOption) {
8454
9134
  if (!Array.isArray(object.uninterpretedOption))
8455
9135
  throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected");
@@ -8482,6 +9162,7 @@
8482
9162
  object.deprecated = false;
8483
9163
  object.features = null;
8484
9164
  object.debugRedact = false;
9165
+ object.featureSupport = null;
8485
9166
  }
8486
9167
  if (message.deprecated != null && message.hasOwnProperty("deprecated"))
8487
9168
  object.deprecated = message.deprecated;
@@ -8489,6 +9170,8 @@
8489
9170
  object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
8490
9171
  if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
8491
9172
  object.debugRedact = message.debugRedact;
9173
+ if (message.featureSupport != null && message.hasOwnProperty("featureSupport"))
9174
+ object.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.toObject(message.featureSupport, options);
8492
9175
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
8493
9176
  object.uninterpretedOption = [];
8494
9177
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -9956,6 +10639,8 @@
9956
10639
  * @property {google.protobuf.FeatureSet.Utf8Validation|null} [utf8Validation] FeatureSet utf8Validation
9957
10640
  * @property {google.protobuf.FeatureSet.MessageEncoding|null} [messageEncoding] FeatureSet messageEncoding
9958
10641
  * @property {google.protobuf.FeatureSet.JsonFormat|null} [jsonFormat] FeatureSet jsonFormat
10642
+ * @property {google.protobuf.FeatureSet.EnforceNamingStyle|null} [enforceNamingStyle] FeatureSet enforceNamingStyle
10643
+ * @property {google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility|null} [defaultSymbolVisibility] FeatureSet defaultSymbolVisibility
9959
10644
  */
9960
10645
 
9961
10646
  /**
@@ -10021,6 +10706,22 @@
10021
10706
  */
10022
10707
  FeatureSet.prototype.jsonFormat = 0;
10023
10708
 
10709
+ /**
10710
+ * FeatureSet enforceNamingStyle.
10711
+ * @member {google.protobuf.FeatureSet.EnforceNamingStyle} enforceNamingStyle
10712
+ * @memberof google.protobuf.FeatureSet
10713
+ * @instance
10714
+ */
10715
+ FeatureSet.prototype.enforceNamingStyle = 0;
10716
+
10717
+ /**
10718
+ * FeatureSet defaultSymbolVisibility.
10719
+ * @member {google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility} defaultSymbolVisibility
10720
+ * @memberof google.protobuf.FeatureSet
10721
+ * @instance
10722
+ */
10723
+ FeatureSet.prototype.defaultSymbolVisibility = 0;
10724
+
10024
10725
  /**
10025
10726
  * Creates a new FeatureSet instance using the specified properties.
10026
10727
  * @function create
@@ -10057,6 +10758,10 @@
10057
10758
  writer.uint32(/* id 5, wireType 0 =*/40).int32(message.messageEncoding);
10058
10759
  if (message.jsonFormat != null && Object.hasOwnProperty.call(message, "jsonFormat"))
10059
10760
  writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jsonFormat);
10761
+ if (message.enforceNamingStyle != null && Object.hasOwnProperty.call(message, "enforceNamingStyle"))
10762
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.enforceNamingStyle);
10763
+ if (message.defaultSymbolVisibility != null && Object.hasOwnProperty.call(message, "defaultSymbolVisibility"))
10764
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.defaultSymbolVisibility);
10060
10765
  return writer;
10061
10766
  };
10062
10767
 
@@ -10117,6 +10822,14 @@
10117
10822
  message.jsonFormat = reader.int32();
10118
10823
  break;
10119
10824
  }
10825
+ case 7: {
10826
+ message.enforceNamingStyle = reader.int32();
10827
+ break;
10828
+ }
10829
+ case 8: {
10830
+ message.defaultSymbolVisibility = reader.int32();
10831
+ break;
10832
+ }
10120
10833
  default:
10121
10834
  reader.skipType(tag & 7);
10122
10835
  break;
@@ -10207,6 +10920,26 @@
10207
10920
  case 2:
10208
10921
  break;
10209
10922
  }
10923
+ if (message.enforceNamingStyle != null && message.hasOwnProperty("enforceNamingStyle"))
10924
+ switch (message.enforceNamingStyle) {
10925
+ default:
10926
+ return "enforceNamingStyle: enum value expected";
10927
+ case 0:
10928
+ case 1:
10929
+ case 2:
10930
+ break;
10931
+ }
10932
+ if (message.defaultSymbolVisibility != null && message.hasOwnProperty("defaultSymbolVisibility"))
10933
+ switch (message.defaultSymbolVisibility) {
10934
+ default:
10935
+ return "defaultSymbolVisibility: enum value expected";
10936
+ case 0:
10937
+ case 1:
10938
+ case 2:
10939
+ case 3:
10940
+ case 4:
10941
+ break;
10942
+ }
10210
10943
  return null;
10211
10944
  };
10212
10945
 
@@ -10346,6 +11079,54 @@
10346
11079
  message.jsonFormat = 2;
10347
11080
  break;
10348
11081
  }
11082
+ switch (object.enforceNamingStyle) {
11083
+ default:
11084
+ if (typeof object.enforceNamingStyle === "number") {
11085
+ message.enforceNamingStyle = object.enforceNamingStyle;
11086
+ break;
11087
+ }
11088
+ break;
11089
+ case "ENFORCE_NAMING_STYLE_UNKNOWN":
11090
+ case 0:
11091
+ message.enforceNamingStyle = 0;
11092
+ break;
11093
+ case "STYLE2024":
11094
+ case 1:
11095
+ message.enforceNamingStyle = 1;
11096
+ break;
11097
+ case "STYLE_LEGACY":
11098
+ case 2:
11099
+ message.enforceNamingStyle = 2;
11100
+ break;
11101
+ }
11102
+ switch (object.defaultSymbolVisibility) {
11103
+ default:
11104
+ if (typeof object.defaultSymbolVisibility === "number") {
11105
+ message.defaultSymbolVisibility = object.defaultSymbolVisibility;
11106
+ break;
11107
+ }
11108
+ break;
11109
+ case "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN":
11110
+ case 0:
11111
+ message.defaultSymbolVisibility = 0;
11112
+ break;
11113
+ case "EXPORT_ALL":
11114
+ case 1:
11115
+ message.defaultSymbolVisibility = 1;
11116
+ break;
11117
+ case "EXPORT_TOP_LEVEL":
11118
+ case 2:
11119
+ message.defaultSymbolVisibility = 2;
11120
+ break;
11121
+ case "LOCAL_ALL":
11122
+ case 3:
11123
+ message.defaultSymbolVisibility = 3;
11124
+ break;
11125
+ case "STRICT":
11126
+ case 4:
11127
+ message.defaultSymbolVisibility = 4;
11128
+ break;
11129
+ }
10349
11130
  return message;
10350
11131
  };
10351
11132
 
@@ -10369,6 +11150,8 @@
10369
11150
  object.utf8Validation = options.enums === String ? "UTF8_VALIDATION_UNKNOWN" : 0;
10370
11151
  object.messageEncoding = options.enums === String ? "MESSAGE_ENCODING_UNKNOWN" : 0;
10371
11152
  object.jsonFormat = options.enums === String ? "JSON_FORMAT_UNKNOWN" : 0;
11153
+ object.enforceNamingStyle = options.enums === String ? "ENFORCE_NAMING_STYLE_UNKNOWN" : 0;
11154
+ object.defaultSymbolVisibility = options.enums === String ? "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN" : 0;
10372
11155
  }
10373
11156
  if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence"))
10374
11157
  object.fieldPresence = options.enums === String ? $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] === undefined ? message.fieldPresence : $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] : message.fieldPresence;
@@ -10382,6 +11165,10 @@
10382
11165
  object.messageEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] === undefined ? message.messageEncoding : $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] : message.messageEncoding;
10383
11166
  if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat"))
10384
11167
  object.jsonFormat = options.enums === String ? $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] === undefined ? message.jsonFormat : $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] : message.jsonFormat;
11168
+ if (message.enforceNamingStyle != null && message.hasOwnProperty("enforceNamingStyle"))
11169
+ object.enforceNamingStyle = options.enums === String ? $root.google.protobuf.FeatureSet.EnforceNamingStyle[message.enforceNamingStyle] === undefined ? message.enforceNamingStyle : $root.google.protobuf.FeatureSet.EnforceNamingStyle[message.enforceNamingStyle] : message.enforceNamingStyle;
11170
+ if (message.defaultSymbolVisibility != null && message.hasOwnProperty("defaultSymbolVisibility"))
11171
+ 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;
10385
11172
  return object;
10386
11173
  };
10387
11174
 
@@ -10509,6 +11296,219 @@
10509
11296
  return values;
10510
11297
  })();
10511
11298
 
11299
+ /**
11300
+ * EnforceNamingStyle enum.
11301
+ * @name google.protobuf.FeatureSet.EnforceNamingStyle
11302
+ * @enum {number}
11303
+ * @property {number} ENFORCE_NAMING_STYLE_UNKNOWN=0 ENFORCE_NAMING_STYLE_UNKNOWN value
11304
+ * @property {number} STYLE2024=1 STYLE2024 value
11305
+ * @property {number} STYLE_LEGACY=2 STYLE_LEGACY value
11306
+ */
11307
+ FeatureSet.EnforceNamingStyle = (function() {
11308
+ var valuesById = {}, values = Object.create(valuesById);
11309
+ values[valuesById[0] = "ENFORCE_NAMING_STYLE_UNKNOWN"] = 0;
11310
+ values[valuesById[1] = "STYLE2024"] = 1;
11311
+ values[valuesById[2] = "STYLE_LEGACY"] = 2;
11312
+ return values;
11313
+ })();
11314
+
11315
+ FeatureSet.VisibilityFeature = (function() {
11316
+
11317
+ /**
11318
+ * Properties of a VisibilityFeature.
11319
+ * @memberof google.protobuf.FeatureSet
11320
+ * @interface IVisibilityFeature
11321
+ */
11322
+
11323
+ /**
11324
+ * Constructs a new VisibilityFeature.
11325
+ * @memberof google.protobuf.FeatureSet
11326
+ * @classdesc Represents a VisibilityFeature.
11327
+ * @implements IVisibilityFeature
11328
+ * @constructor
11329
+ * @param {google.protobuf.FeatureSet.IVisibilityFeature=} [properties] Properties to set
11330
+ */
11331
+ function VisibilityFeature(properties) {
11332
+ if (properties)
11333
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
11334
+ if (properties[keys[i]] != null)
11335
+ this[keys[i]] = properties[keys[i]];
11336
+ }
11337
+
11338
+ /**
11339
+ * Creates a new VisibilityFeature instance using the specified properties.
11340
+ * @function create
11341
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
11342
+ * @static
11343
+ * @param {google.protobuf.FeatureSet.IVisibilityFeature=} [properties] Properties to set
11344
+ * @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature instance
11345
+ */
11346
+ VisibilityFeature.create = function create(properties) {
11347
+ return new VisibilityFeature(properties);
11348
+ };
11349
+
11350
+ /**
11351
+ * Encodes the specified VisibilityFeature message. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
11352
+ * @function encode
11353
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
11354
+ * @static
11355
+ * @param {google.protobuf.FeatureSet.IVisibilityFeature} message VisibilityFeature message or plain object to encode
11356
+ * @param {$protobuf.Writer} [writer] Writer to encode to
11357
+ * @returns {$protobuf.Writer} Writer
11358
+ */
11359
+ VisibilityFeature.encode = function encode(message, writer) {
11360
+ if (!writer)
11361
+ writer = $Writer.create();
11362
+ return writer;
11363
+ };
11364
+
11365
+ /**
11366
+ * Encodes the specified VisibilityFeature message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
11367
+ * @function encodeDelimited
11368
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
11369
+ * @static
11370
+ * @param {google.protobuf.FeatureSet.IVisibilityFeature} message VisibilityFeature message or plain object to encode
11371
+ * @param {$protobuf.Writer} [writer] Writer to encode to
11372
+ * @returns {$protobuf.Writer} Writer
11373
+ */
11374
+ VisibilityFeature.encodeDelimited = function encodeDelimited(message, writer) {
11375
+ return this.encode(message, writer).ldelim();
11376
+ };
11377
+
11378
+ /**
11379
+ * Decodes a VisibilityFeature message from the specified reader or buffer.
11380
+ * @function decode
11381
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
11382
+ * @static
11383
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
11384
+ * @param {number} [length] Message length if known beforehand
11385
+ * @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
11386
+ * @throws {Error} If the payload is not a reader or valid buffer
11387
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11388
+ */
11389
+ VisibilityFeature.decode = function decode(reader, length, error) {
11390
+ if (!(reader instanceof $Reader))
11391
+ reader = $Reader.create(reader);
11392
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSet.VisibilityFeature();
11393
+ while (reader.pos < end) {
11394
+ var tag = reader.uint32();
11395
+ if (tag === error)
11396
+ break;
11397
+ switch (tag >>> 3) {
11398
+ default:
11399
+ reader.skipType(tag & 7);
11400
+ break;
11401
+ }
11402
+ }
11403
+ return message;
11404
+ };
11405
+
11406
+ /**
11407
+ * Decodes a VisibilityFeature message from the specified reader or buffer, length delimited.
11408
+ * @function decodeDelimited
11409
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
11410
+ * @static
11411
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
11412
+ * @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
11413
+ * @throws {Error} If the payload is not a reader or valid buffer
11414
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11415
+ */
11416
+ VisibilityFeature.decodeDelimited = function decodeDelimited(reader) {
11417
+ if (!(reader instanceof $Reader))
11418
+ reader = new $Reader(reader);
11419
+ return this.decode(reader, reader.uint32());
11420
+ };
11421
+
11422
+ /**
11423
+ * Verifies a VisibilityFeature message.
11424
+ * @function verify
11425
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
11426
+ * @static
11427
+ * @param {Object.<string,*>} message Plain object to verify
11428
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
11429
+ */
11430
+ VisibilityFeature.verify = function verify(message) {
11431
+ if (typeof message !== "object" || message === null)
11432
+ return "object expected";
11433
+ return null;
11434
+ };
11435
+
11436
+ /**
11437
+ * Creates a VisibilityFeature message from a plain object. Also converts values to their respective internal types.
11438
+ * @function fromObject
11439
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
11440
+ * @static
11441
+ * @param {Object.<string,*>} object Plain object
11442
+ * @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
11443
+ */
11444
+ VisibilityFeature.fromObject = function fromObject(object) {
11445
+ if (object instanceof $root.google.protobuf.FeatureSet.VisibilityFeature)
11446
+ return object;
11447
+ return new $root.google.protobuf.FeatureSet.VisibilityFeature();
11448
+ };
11449
+
11450
+ /**
11451
+ * Creates a plain object from a VisibilityFeature message. Also converts values to other types if specified.
11452
+ * @function toObject
11453
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
11454
+ * @static
11455
+ * @param {google.protobuf.FeatureSet.VisibilityFeature} message VisibilityFeature
11456
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
11457
+ * @returns {Object.<string,*>} Plain object
11458
+ */
11459
+ VisibilityFeature.toObject = function toObject() {
11460
+ return {};
11461
+ };
11462
+
11463
+ /**
11464
+ * Converts this VisibilityFeature to JSON.
11465
+ * @function toJSON
11466
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
11467
+ * @instance
11468
+ * @returns {Object.<string,*>} JSON object
11469
+ */
11470
+ VisibilityFeature.prototype.toJSON = function toJSON() {
11471
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
11472
+ };
11473
+
11474
+ /**
11475
+ * Gets the default type url for VisibilityFeature
11476
+ * @function getTypeUrl
11477
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
11478
+ * @static
11479
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
11480
+ * @returns {string} The default type url
11481
+ */
11482
+ VisibilityFeature.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
11483
+ if (typeUrlPrefix === undefined) {
11484
+ typeUrlPrefix = "type.googleapis.com";
11485
+ }
11486
+ return typeUrlPrefix + "/google.protobuf.FeatureSet.VisibilityFeature";
11487
+ };
11488
+
11489
+ /**
11490
+ * DefaultSymbolVisibility enum.
11491
+ * @name google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility
11492
+ * @enum {number}
11493
+ * @property {number} DEFAULT_SYMBOL_VISIBILITY_UNKNOWN=0 DEFAULT_SYMBOL_VISIBILITY_UNKNOWN value
11494
+ * @property {number} EXPORT_ALL=1 EXPORT_ALL value
11495
+ * @property {number} EXPORT_TOP_LEVEL=2 EXPORT_TOP_LEVEL value
11496
+ * @property {number} LOCAL_ALL=3 LOCAL_ALL value
11497
+ * @property {number} STRICT=4 STRICT value
11498
+ */
11499
+ VisibilityFeature.DefaultSymbolVisibility = (function() {
11500
+ var valuesById = {}, values = Object.create(valuesById);
11501
+ values[valuesById[0] = "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN"] = 0;
11502
+ values[valuesById[1] = "EXPORT_ALL"] = 1;
11503
+ values[valuesById[2] = "EXPORT_TOP_LEVEL"] = 2;
11504
+ values[valuesById[3] = "LOCAL_ALL"] = 3;
11505
+ values[valuesById[4] = "STRICT"] = 4;
11506
+ return values;
11507
+ })();
11508
+
11509
+ return VisibilityFeature;
11510
+ })();
11511
+
10512
11512
  return FeatureSet;
10513
11513
  })();
10514
11514
 
@@ -10693,6 +11693,7 @@
10693
11693
  default:
10694
11694
  return "minimumEdition: enum value expected";
10695
11695
  case 0:
11696
+ case 900:
10696
11697
  case 998:
10697
11698
  case 999:
10698
11699
  case 1000:
@@ -10710,6 +11711,7 @@
10710
11711
  default:
10711
11712
  return "maximumEdition: enum value expected";
10712
11713
  case 0:
11714
+ case 900:
10713
11715
  case 998:
10714
11716
  case 999:
10715
11717
  case 1000:
@@ -10758,6 +11760,10 @@
10758
11760
  case 0:
10759
11761
  message.minimumEdition = 0;
10760
11762
  break;
11763
+ case "EDITION_LEGACY":
11764
+ case 900:
11765
+ message.minimumEdition = 900;
11766
+ break;
10761
11767
  case "EDITION_PROTO2":
10762
11768
  case 998:
10763
11769
  message.minimumEdition = 998;
@@ -10810,6 +11816,10 @@
10810
11816
  case 0:
10811
11817
  message.maximumEdition = 0;
10812
11818
  break;
11819
+ case "EDITION_LEGACY":
11820
+ case 900:
11821
+ message.maximumEdition = 900;
11822
+ break;
10813
11823
  case "EDITION_PROTO2":
10814
11824
  case 998:
10815
11825
  message.maximumEdition = 998;
@@ -10918,7 +11928,8 @@
10918
11928
  * @memberof google.protobuf.FeatureSetDefaults
10919
11929
  * @interface IFeatureSetEditionDefault
10920
11930
  * @property {google.protobuf.Edition|null} [edition] FeatureSetEditionDefault edition
10921
- * @property {google.protobuf.IFeatureSet|null} [features] FeatureSetEditionDefault features
11931
+ * @property {google.protobuf.IFeatureSet|null} [overridableFeatures] FeatureSetEditionDefault overridableFeatures
11932
+ * @property {google.protobuf.IFeatureSet|null} [fixedFeatures] FeatureSetEditionDefault fixedFeatures
10922
11933
  */
10923
11934
 
10924
11935
  /**
@@ -10945,12 +11956,20 @@
10945
11956
  FeatureSetEditionDefault.prototype.edition = 0;
10946
11957
 
10947
11958
  /**
10948
- * FeatureSetEditionDefault features.
10949
- * @member {google.protobuf.IFeatureSet|null|undefined} features
11959
+ * FeatureSetEditionDefault overridableFeatures.
11960
+ * @member {google.protobuf.IFeatureSet|null|undefined} overridableFeatures
10950
11961
  * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
10951
11962
  * @instance
10952
11963
  */
10953
- FeatureSetEditionDefault.prototype.features = null;
11964
+ FeatureSetEditionDefault.prototype.overridableFeatures = null;
11965
+
11966
+ /**
11967
+ * FeatureSetEditionDefault fixedFeatures.
11968
+ * @member {google.protobuf.IFeatureSet|null|undefined} fixedFeatures
11969
+ * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
11970
+ * @instance
11971
+ */
11972
+ FeatureSetEditionDefault.prototype.fixedFeatures = null;
10954
11973
 
10955
11974
  /**
10956
11975
  * Creates a new FeatureSetEditionDefault instance using the specified properties.
@@ -10976,10 +11995,12 @@
10976
11995
  FeatureSetEditionDefault.encode = function encode(message, writer) {
10977
11996
  if (!writer)
10978
11997
  writer = $Writer.create();
10979
- if (message.features != null && Object.hasOwnProperty.call(message, "features"))
10980
- $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
10981
11998
  if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
10982
11999
  writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition);
12000
+ if (message.overridableFeatures != null && Object.hasOwnProperty.call(message, "overridableFeatures"))
12001
+ $root.google.protobuf.FeatureSet.encode(message.overridableFeatures, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
12002
+ if (message.fixedFeatures != null && Object.hasOwnProperty.call(message, "fixedFeatures"))
12003
+ $root.google.protobuf.FeatureSet.encode(message.fixedFeatures, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
10983
12004
  return writer;
10984
12005
  };
10985
12006
 
@@ -11020,8 +12041,12 @@
11020
12041
  message.edition = reader.int32();
11021
12042
  break;
11022
12043
  }
11023
- case 2: {
11024
- message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
12044
+ case 4: {
12045
+ message.overridableFeatures = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
12046
+ break;
12047
+ }
12048
+ case 5: {
12049
+ message.fixedFeatures = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
11025
12050
  break;
11026
12051
  }
11027
12052
  default:
@@ -11064,6 +12089,7 @@
11064
12089
  default:
11065
12090
  return "edition: enum value expected";
11066
12091
  case 0:
12092
+ case 900:
11067
12093
  case 998:
11068
12094
  case 999:
11069
12095
  case 1000:
@@ -11076,10 +12102,15 @@
11076
12102
  case 2147483647:
11077
12103
  break;
11078
12104
  }
11079
- if (message.features != null && message.hasOwnProperty("features")) {
11080
- var error = $root.google.protobuf.FeatureSet.verify(message.features);
12105
+ if (message.overridableFeatures != null && message.hasOwnProperty("overridableFeatures")) {
12106
+ var error = $root.google.protobuf.FeatureSet.verify(message.overridableFeatures);
12107
+ if (error)
12108
+ return "overridableFeatures." + error;
12109
+ }
12110
+ if (message.fixedFeatures != null && message.hasOwnProperty("fixedFeatures")) {
12111
+ var error = $root.google.protobuf.FeatureSet.verify(message.fixedFeatures);
11081
12112
  if (error)
11082
- return "features." + error;
12113
+ return "fixedFeatures." + error;
11083
12114
  }
11084
12115
  return null;
11085
12116
  };
@@ -11107,6 +12138,10 @@
11107
12138
  case 0:
11108
12139
  message.edition = 0;
11109
12140
  break;
12141
+ case "EDITION_LEGACY":
12142
+ case 900:
12143
+ message.edition = 900;
12144
+ break;
11110
12145
  case "EDITION_PROTO2":
11111
12146
  case 998:
11112
12147
  message.edition = 998;
@@ -11148,10 +12183,15 @@
11148
12183
  message.edition = 2147483647;
11149
12184
  break;
11150
12185
  }
11151
- if (object.features != null) {
11152
- if (typeof object.features !== "object")
11153
- throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.features: object expected");
11154
- message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
12186
+ if (object.overridableFeatures != null) {
12187
+ if (typeof object.overridableFeatures !== "object")
12188
+ throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.overridableFeatures: object expected");
12189
+ message.overridableFeatures = $root.google.protobuf.FeatureSet.fromObject(object.overridableFeatures);
12190
+ }
12191
+ if (object.fixedFeatures != null) {
12192
+ if (typeof object.fixedFeatures !== "object")
12193
+ throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fixedFeatures: object expected");
12194
+ message.fixedFeatures = $root.google.protobuf.FeatureSet.fromObject(object.fixedFeatures);
11155
12195
  }
11156
12196
  return message;
11157
12197
  };
@@ -11170,13 +12210,16 @@
11170
12210
  options = {};
11171
12211
  var object = {};
11172
12212
  if (options.defaults) {
11173
- object.features = null;
11174
12213
  object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
12214
+ object.overridableFeatures = null;
12215
+ object.fixedFeatures = null;
11175
12216
  }
11176
- if (message.features != null && message.hasOwnProperty("features"))
11177
- object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
11178
12217
  if (message.edition != null && message.hasOwnProperty("edition"))
11179
12218
  object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
12219
+ if (message.overridableFeatures != null && message.hasOwnProperty("overridableFeatures"))
12220
+ object.overridableFeatures = $root.google.protobuf.FeatureSet.toObject(message.overridableFeatures, options);
12221
+ if (message.fixedFeatures != null && message.hasOwnProperty("fixedFeatures"))
12222
+ object.fixedFeatures = $root.google.protobuf.FeatureSet.toObject(message.fixedFeatures, options);
11180
12223
  return object;
11181
12224
  };
11182
12225
 
@@ -12391,6 +13434,22 @@
12391
13434
  return GeneratedCodeInfo;
12392
13435
  })();
12393
13436
 
13437
+ /**
13438
+ * SymbolVisibility enum.
13439
+ * @name google.protobuf.SymbolVisibility
13440
+ * @enum {number}
13441
+ * @property {number} VISIBILITY_UNSET=0 VISIBILITY_UNSET value
13442
+ * @property {number} VISIBILITY_LOCAL=1 VISIBILITY_LOCAL value
13443
+ * @property {number} VISIBILITY_EXPORT=2 VISIBILITY_EXPORT value
13444
+ */
13445
+ protobuf.SymbolVisibility = (function() {
13446
+ var valuesById = {}, values = Object.create(valuesById);
13447
+ values[valuesById[0] = "VISIBILITY_UNSET"] = 0;
13448
+ values[valuesById[1] = "VISIBILITY_LOCAL"] = 1;
13449
+ values[valuesById[2] = "VISIBILITY_EXPORT"] = 2;
13450
+ return values;
13451
+ })();
13452
+
12394
13453
  protobuf.Any = (function() {
12395
13454
 
12396
13455
  /**
@@ -15135,6 +16194,12 @@
15135
16194
  * @interface IViolation
15136
16195
  * @property {string|null} [subject] Violation subject
15137
16196
  * @property {string|null} [description] Violation description
16197
+ * @property {string|null} [apiService] Violation apiService
16198
+ * @property {string|null} [quotaMetric] Violation quotaMetric
16199
+ * @property {string|null} [quotaId] Violation quotaId
16200
+ * @property {Object.<string,string>|null} [quotaDimensions] Violation quotaDimensions
16201
+ * @property {number|Long|null} [quotaValue] Violation quotaValue
16202
+ * @property {number|Long|null} [futureQuotaValue] Violation futureQuotaValue
15138
16203
  */
15139
16204
 
15140
16205
  /**
@@ -15146,6 +16211,7 @@
15146
16211
  * @param {google.rpc.QuotaFailure.IViolation=} [properties] Properties to set
15147
16212
  */
15148
16213
  function Violation(properties) {
16214
+ this.quotaDimensions = {};
15149
16215
  if (properties)
15150
16216
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
15151
16217
  if (properties[keys[i]] != null)
@@ -15168,6 +16234,63 @@
15168
16234
  */
15169
16235
  Violation.prototype.description = "";
15170
16236
 
16237
+ /**
16238
+ * Violation apiService.
16239
+ * @member {string} apiService
16240
+ * @memberof google.rpc.QuotaFailure.Violation
16241
+ * @instance
16242
+ */
16243
+ Violation.prototype.apiService = "";
16244
+
16245
+ /**
16246
+ * Violation quotaMetric.
16247
+ * @member {string} quotaMetric
16248
+ * @memberof google.rpc.QuotaFailure.Violation
16249
+ * @instance
16250
+ */
16251
+ Violation.prototype.quotaMetric = "";
16252
+
16253
+ /**
16254
+ * Violation quotaId.
16255
+ * @member {string} quotaId
16256
+ * @memberof google.rpc.QuotaFailure.Violation
16257
+ * @instance
16258
+ */
16259
+ Violation.prototype.quotaId = "";
16260
+
16261
+ /**
16262
+ * Violation quotaDimensions.
16263
+ * @member {Object.<string,string>} quotaDimensions
16264
+ * @memberof google.rpc.QuotaFailure.Violation
16265
+ * @instance
16266
+ */
16267
+ Violation.prototype.quotaDimensions = $util.emptyObject;
16268
+
16269
+ /**
16270
+ * Violation quotaValue.
16271
+ * @member {number|Long} quotaValue
16272
+ * @memberof google.rpc.QuotaFailure.Violation
16273
+ * @instance
16274
+ */
16275
+ Violation.prototype.quotaValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
16276
+
16277
+ /**
16278
+ * Violation futureQuotaValue.
16279
+ * @member {number|Long|null|undefined} futureQuotaValue
16280
+ * @memberof google.rpc.QuotaFailure.Violation
16281
+ * @instance
16282
+ */
16283
+ Violation.prototype.futureQuotaValue = null;
16284
+
16285
+ // OneOf field names bound to virtual getters and setters
16286
+ var $oneOfFields;
16287
+
16288
+ // Virtual OneOf for proto3 optional field
16289
+ Object.defineProperty(Violation.prototype, "_futureQuotaValue", {
16290
+ get: $util.oneOfGetter($oneOfFields = ["futureQuotaValue"]),
16291
+ set: $util.oneOfSetter($oneOfFields)
16292
+ });
16293
+
15171
16294
  /**
15172
16295
  * Creates a new Violation instance using the specified properties.
15173
16296
  * @function create
@@ -15196,6 +16319,19 @@
15196
16319
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.subject);
15197
16320
  if (message.description != null && Object.hasOwnProperty.call(message, "description"))
15198
16321
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
16322
+ if (message.apiService != null && Object.hasOwnProperty.call(message, "apiService"))
16323
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.apiService);
16324
+ if (message.quotaMetric != null && Object.hasOwnProperty.call(message, "quotaMetric"))
16325
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.quotaMetric);
16326
+ if (message.quotaId != null && Object.hasOwnProperty.call(message, "quotaId"))
16327
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.quotaId);
16328
+ if (message.quotaDimensions != null && Object.hasOwnProperty.call(message, "quotaDimensions"))
16329
+ for (var keys = Object.keys(message.quotaDimensions), i = 0; i < keys.length; ++i)
16330
+ writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.quotaDimensions[keys[i]]).ldelim();
16331
+ if (message.quotaValue != null && Object.hasOwnProperty.call(message, "quotaValue"))
16332
+ writer.uint32(/* id 7, wireType 0 =*/56).int64(message.quotaValue);
16333
+ if (message.futureQuotaValue != null && Object.hasOwnProperty.call(message, "futureQuotaValue"))
16334
+ writer.uint32(/* id 8, wireType 0 =*/64).int64(message.futureQuotaValue);
15199
16335
  return writer;
15200
16336
  };
15201
16337
 
@@ -15226,7 +16362,7 @@
15226
16362
  Violation.decode = function decode(reader, length, error) {
15227
16363
  if (!(reader instanceof $Reader))
15228
16364
  reader = $Reader.create(reader);
15229
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.rpc.QuotaFailure.Violation();
16365
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.rpc.QuotaFailure.Violation(), key, value;
15230
16366
  while (reader.pos < end) {
15231
16367
  var tag = reader.uint32();
15232
16368
  if (tag === error)
@@ -15240,6 +16376,49 @@
15240
16376
  message.description = reader.string();
15241
16377
  break;
15242
16378
  }
16379
+ case 3: {
16380
+ message.apiService = reader.string();
16381
+ break;
16382
+ }
16383
+ case 4: {
16384
+ message.quotaMetric = reader.string();
16385
+ break;
16386
+ }
16387
+ case 5: {
16388
+ message.quotaId = reader.string();
16389
+ break;
16390
+ }
16391
+ case 6: {
16392
+ if (message.quotaDimensions === $util.emptyObject)
16393
+ message.quotaDimensions = {};
16394
+ var end2 = reader.uint32() + reader.pos;
16395
+ key = "";
16396
+ value = "";
16397
+ while (reader.pos < end2) {
16398
+ var tag2 = reader.uint32();
16399
+ switch (tag2 >>> 3) {
16400
+ case 1:
16401
+ key = reader.string();
16402
+ break;
16403
+ case 2:
16404
+ value = reader.string();
16405
+ break;
16406
+ default:
16407
+ reader.skipType(tag2 & 7);
16408
+ break;
16409
+ }
16410
+ }
16411
+ message.quotaDimensions[key] = value;
16412
+ break;
16413
+ }
16414
+ case 7: {
16415
+ message.quotaValue = reader.int64();
16416
+ break;
16417
+ }
16418
+ case 8: {
16419
+ message.futureQuotaValue = reader.int64();
16420
+ break;
16421
+ }
15243
16422
  default:
15244
16423
  reader.skipType(tag & 7);
15245
16424
  break;
@@ -15275,12 +16454,38 @@
15275
16454
  Violation.verify = function verify(message) {
15276
16455
  if (typeof message !== "object" || message === null)
15277
16456
  return "object expected";
16457
+ var properties = {};
15278
16458
  if (message.subject != null && message.hasOwnProperty("subject"))
15279
16459
  if (!$util.isString(message.subject))
15280
16460
  return "subject: string expected";
15281
16461
  if (message.description != null && message.hasOwnProperty("description"))
15282
16462
  if (!$util.isString(message.description))
15283
16463
  return "description: string expected";
16464
+ if (message.apiService != null && message.hasOwnProperty("apiService"))
16465
+ if (!$util.isString(message.apiService))
16466
+ return "apiService: string expected";
16467
+ if (message.quotaMetric != null && message.hasOwnProperty("quotaMetric"))
16468
+ if (!$util.isString(message.quotaMetric))
16469
+ return "quotaMetric: string expected";
16470
+ if (message.quotaId != null && message.hasOwnProperty("quotaId"))
16471
+ if (!$util.isString(message.quotaId))
16472
+ return "quotaId: string expected";
16473
+ if (message.quotaDimensions != null && message.hasOwnProperty("quotaDimensions")) {
16474
+ if (!$util.isObject(message.quotaDimensions))
16475
+ return "quotaDimensions: object expected";
16476
+ var key = Object.keys(message.quotaDimensions);
16477
+ for (var i = 0; i < key.length; ++i)
16478
+ if (!$util.isString(message.quotaDimensions[key[i]]))
16479
+ return "quotaDimensions: string{k:string} expected";
16480
+ }
16481
+ if (message.quotaValue != null && message.hasOwnProperty("quotaValue"))
16482
+ if (!$util.isInteger(message.quotaValue) && !(message.quotaValue && $util.isInteger(message.quotaValue.low) && $util.isInteger(message.quotaValue.high)))
16483
+ return "quotaValue: integer|Long expected";
16484
+ if (message.futureQuotaValue != null && message.hasOwnProperty("futureQuotaValue")) {
16485
+ properties._futureQuotaValue = 1;
16486
+ if (!$util.isInteger(message.futureQuotaValue) && !(message.futureQuotaValue && $util.isInteger(message.futureQuotaValue.low) && $util.isInteger(message.futureQuotaValue.high)))
16487
+ return "futureQuotaValue: integer|Long expected";
16488
+ }
15284
16489
  return null;
15285
16490
  };
15286
16491
 
@@ -15300,6 +16505,37 @@
15300
16505
  message.subject = String(object.subject);
15301
16506
  if (object.description != null)
15302
16507
  message.description = String(object.description);
16508
+ if (object.apiService != null)
16509
+ message.apiService = String(object.apiService);
16510
+ if (object.quotaMetric != null)
16511
+ message.quotaMetric = String(object.quotaMetric);
16512
+ if (object.quotaId != null)
16513
+ message.quotaId = String(object.quotaId);
16514
+ if (object.quotaDimensions) {
16515
+ if (typeof object.quotaDimensions !== "object")
16516
+ throw TypeError(".google.rpc.QuotaFailure.Violation.quotaDimensions: object expected");
16517
+ message.quotaDimensions = {};
16518
+ for (var keys = Object.keys(object.quotaDimensions), i = 0; i < keys.length; ++i)
16519
+ message.quotaDimensions[keys[i]] = String(object.quotaDimensions[keys[i]]);
16520
+ }
16521
+ if (object.quotaValue != null)
16522
+ if ($util.Long)
16523
+ (message.quotaValue = $util.Long.fromValue(object.quotaValue)).unsigned = false;
16524
+ else if (typeof object.quotaValue === "string")
16525
+ message.quotaValue = parseInt(object.quotaValue, 10);
16526
+ else if (typeof object.quotaValue === "number")
16527
+ message.quotaValue = object.quotaValue;
16528
+ else if (typeof object.quotaValue === "object")
16529
+ message.quotaValue = new $util.LongBits(object.quotaValue.low >>> 0, object.quotaValue.high >>> 0).toNumber();
16530
+ if (object.futureQuotaValue != null)
16531
+ if ($util.Long)
16532
+ (message.futureQuotaValue = $util.Long.fromValue(object.futureQuotaValue)).unsigned = false;
16533
+ else if (typeof object.futureQuotaValue === "string")
16534
+ message.futureQuotaValue = parseInt(object.futureQuotaValue, 10);
16535
+ else if (typeof object.futureQuotaValue === "number")
16536
+ message.futureQuotaValue = object.futureQuotaValue;
16537
+ else if (typeof object.futureQuotaValue === "object")
16538
+ message.futureQuotaValue = new $util.LongBits(object.futureQuotaValue.low >>> 0, object.futureQuotaValue.high >>> 0).toNumber();
15303
16539
  return message;
15304
16540
  };
15305
16541
 
@@ -15316,14 +16552,49 @@
15316
16552
  if (!options)
15317
16553
  options = {};
15318
16554
  var object = {};
16555
+ if (options.objects || options.defaults)
16556
+ object.quotaDimensions = {};
15319
16557
  if (options.defaults) {
15320
16558
  object.subject = "";
15321
16559
  object.description = "";
16560
+ object.apiService = "";
16561
+ object.quotaMetric = "";
16562
+ object.quotaId = "";
16563
+ if ($util.Long) {
16564
+ var long = new $util.Long(0, 0, false);
16565
+ object.quotaValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
16566
+ } else
16567
+ object.quotaValue = options.longs === String ? "0" : 0;
15322
16568
  }
15323
16569
  if (message.subject != null && message.hasOwnProperty("subject"))
15324
16570
  object.subject = message.subject;
15325
16571
  if (message.description != null && message.hasOwnProperty("description"))
15326
16572
  object.description = message.description;
16573
+ if (message.apiService != null && message.hasOwnProperty("apiService"))
16574
+ object.apiService = message.apiService;
16575
+ if (message.quotaMetric != null && message.hasOwnProperty("quotaMetric"))
16576
+ object.quotaMetric = message.quotaMetric;
16577
+ if (message.quotaId != null && message.hasOwnProperty("quotaId"))
16578
+ object.quotaId = message.quotaId;
16579
+ var keys2;
16580
+ if (message.quotaDimensions && (keys2 = Object.keys(message.quotaDimensions)).length) {
16581
+ object.quotaDimensions = {};
16582
+ for (var j = 0; j < keys2.length; ++j)
16583
+ object.quotaDimensions[keys2[j]] = message.quotaDimensions[keys2[j]];
16584
+ }
16585
+ if (message.quotaValue != null && message.hasOwnProperty("quotaValue"))
16586
+ if (typeof message.quotaValue === "number")
16587
+ object.quotaValue = options.longs === String ? String(message.quotaValue) : message.quotaValue;
16588
+ else
16589
+ object.quotaValue = options.longs === String ? $util.Long.prototype.toString.call(message.quotaValue) : options.longs === Number ? new $util.LongBits(message.quotaValue.low >>> 0, message.quotaValue.high >>> 0).toNumber() : message.quotaValue;
16590
+ if (message.futureQuotaValue != null && message.hasOwnProperty("futureQuotaValue")) {
16591
+ if (typeof message.futureQuotaValue === "number")
16592
+ object.futureQuotaValue = options.longs === String ? String(message.futureQuotaValue) : message.futureQuotaValue;
16593
+ else
16594
+ object.futureQuotaValue = options.longs === String ? $util.Long.prototype.toString.call(message.futureQuotaValue) : options.longs === Number ? new $util.LongBits(message.futureQuotaValue.low >>> 0, message.futureQuotaValue.high >>> 0).toNumber() : message.futureQuotaValue;
16595
+ if (options.oneofs)
16596
+ object._futureQuotaValue = "futureQuotaValue";
16597
+ }
15327
16598
  return object;
15328
16599
  };
15329
16600
 
@@ -16068,6 +17339,8 @@
16068
17339
  * @interface IFieldViolation
16069
17340
  * @property {string|null} [field] FieldViolation field
16070
17341
  * @property {string|null} [description] FieldViolation description
17342
+ * @property {string|null} [reason] FieldViolation reason
17343
+ * @property {google.rpc.ILocalizedMessage|null} [localizedMessage] FieldViolation localizedMessage
16071
17344
  */
16072
17345
 
16073
17346
  /**
@@ -16101,6 +17374,22 @@
16101
17374
  */
16102
17375
  FieldViolation.prototype.description = "";
16103
17376
 
17377
+ /**
17378
+ * FieldViolation reason.
17379
+ * @member {string} reason
17380
+ * @memberof google.rpc.BadRequest.FieldViolation
17381
+ * @instance
17382
+ */
17383
+ FieldViolation.prototype.reason = "";
17384
+
17385
+ /**
17386
+ * FieldViolation localizedMessage.
17387
+ * @member {google.rpc.ILocalizedMessage|null|undefined} localizedMessage
17388
+ * @memberof google.rpc.BadRequest.FieldViolation
17389
+ * @instance
17390
+ */
17391
+ FieldViolation.prototype.localizedMessage = null;
17392
+
16104
17393
  /**
16105
17394
  * Creates a new FieldViolation instance using the specified properties.
16106
17395
  * @function create
@@ -16129,6 +17418,10 @@
16129
17418
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.field);
16130
17419
  if (message.description != null && Object.hasOwnProperty.call(message, "description"))
16131
17420
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
17421
+ if (message.reason != null && Object.hasOwnProperty.call(message, "reason"))
17422
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.reason);
17423
+ if (message.localizedMessage != null && Object.hasOwnProperty.call(message, "localizedMessage"))
17424
+ $root.google.rpc.LocalizedMessage.encode(message.localizedMessage, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
16132
17425
  return writer;
16133
17426
  };
16134
17427
 
@@ -16173,6 +17466,14 @@
16173
17466
  message.description = reader.string();
16174
17467
  break;
16175
17468
  }
17469
+ case 3: {
17470
+ message.reason = reader.string();
17471
+ break;
17472
+ }
17473
+ case 4: {
17474
+ message.localizedMessage = $root.google.rpc.LocalizedMessage.decode(reader, reader.uint32());
17475
+ break;
17476
+ }
16176
17477
  default:
16177
17478
  reader.skipType(tag & 7);
16178
17479
  break;
@@ -16214,6 +17515,14 @@
16214
17515
  if (message.description != null && message.hasOwnProperty("description"))
16215
17516
  if (!$util.isString(message.description))
16216
17517
  return "description: string expected";
17518
+ if (message.reason != null && message.hasOwnProperty("reason"))
17519
+ if (!$util.isString(message.reason))
17520
+ return "reason: string expected";
17521
+ if (message.localizedMessage != null && message.hasOwnProperty("localizedMessage")) {
17522
+ var error = $root.google.rpc.LocalizedMessage.verify(message.localizedMessage);
17523
+ if (error)
17524
+ return "localizedMessage." + error;
17525
+ }
16217
17526
  return null;
16218
17527
  };
16219
17528
 
@@ -16233,6 +17542,13 @@
16233
17542
  message.field = String(object.field);
16234
17543
  if (object.description != null)
16235
17544
  message.description = String(object.description);
17545
+ if (object.reason != null)
17546
+ message.reason = String(object.reason);
17547
+ if (object.localizedMessage != null) {
17548
+ if (typeof object.localizedMessage !== "object")
17549
+ throw TypeError(".google.rpc.BadRequest.FieldViolation.localizedMessage: object expected");
17550
+ message.localizedMessage = $root.google.rpc.LocalizedMessage.fromObject(object.localizedMessage);
17551
+ }
16236
17552
  return message;
16237
17553
  };
16238
17554
 
@@ -16252,11 +17568,17 @@
16252
17568
  if (options.defaults) {
16253
17569
  object.field = "";
16254
17570
  object.description = "";
17571
+ object.reason = "";
17572
+ object.localizedMessage = null;
16255
17573
  }
16256
17574
  if (message.field != null && message.hasOwnProperty("field"))
16257
17575
  object.field = message.field;
16258
17576
  if (message.description != null && message.hasOwnProperty("description"))
16259
17577
  object.description = message.description;
17578
+ if (message.reason != null && message.hasOwnProperty("reason"))
17579
+ object.reason = message.reason;
17580
+ if (message.localizedMessage != null && message.hasOwnProperty("localizedMessage"))
17581
+ object.localizedMessage = $root.google.rpc.LocalizedMessage.toObject(message.localizedMessage, options);
16260
17582
  return object;
16261
17583
  };
16262
17584
 
@@ -96213,6 +97535,7 @@
96213
97535
  * @interface ICommonLanguageSettings
96214
97536
  * @property {string|null} [referenceDocsUri] CommonLanguageSettings referenceDocsUri
96215
97537
  * @property {Array.<google.api.ClientLibraryDestination>|null} [destinations] CommonLanguageSettings destinations
97538
+ * @property {google.api.ISelectiveGapicGeneration|null} [selectiveGapicGeneration] CommonLanguageSettings selectiveGapicGeneration
96216
97539
  */
96217
97540
 
96218
97541
  /**
@@ -96247,6 +97570,14 @@
96247
97570
  */
96248
97571
  CommonLanguageSettings.prototype.destinations = $util.emptyArray;
96249
97572
 
97573
+ /**
97574
+ * CommonLanguageSettings selectiveGapicGeneration.
97575
+ * @member {google.api.ISelectiveGapicGeneration|null|undefined} selectiveGapicGeneration
97576
+ * @memberof google.api.CommonLanguageSettings
97577
+ * @instance
97578
+ */
97579
+ CommonLanguageSettings.prototype.selectiveGapicGeneration = null;
97580
+
96250
97581
  /**
96251
97582
  * Creates a new CommonLanguageSettings instance using the specified properties.
96252
97583
  * @function create
@@ -96279,6 +97610,8 @@
96279
97610
  writer.int32(message.destinations[i]);
96280
97611
  writer.ldelim();
96281
97612
  }
97613
+ if (message.selectiveGapicGeneration != null && Object.hasOwnProperty.call(message, "selectiveGapicGeneration"))
97614
+ $root.google.api.SelectiveGapicGeneration.encode(message.selectiveGapicGeneration, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
96282
97615
  return writer;
96283
97616
  };
96284
97617
 
@@ -96330,6 +97663,10 @@
96330
97663
  message.destinations.push(reader.int32());
96331
97664
  break;
96332
97665
  }
97666
+ case 3: {
97667
+ message.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.decode(reader, reader.uint32());
97668
+ break;
97669
+ }
96333
97670
  default:
96334
97671
  reader.skipType(tag & 7);
96335
97672
  break;
@@ -96381,6 +97718,11 @@
96381
97718
  break;
96382
97719
  }
96383
97720
  }
97721
+ if (message.selectiveGapicGeneration != null && message.hasOwnProperty("selectiveGapicGeneration")) {
97722
+ var error = $root.google.api.SelectiveGapicGeneration.verify(message.selectiveGapicGeneration);
97723
+ if (error)
97724
+ return "selectiveGapicGeneration." + error;
97725
+ }
96384
97726
  return null;
96385
97727
  };
96386
97728
 
@@ -96423,6 +97765,11 @@
96423
97765
  break;
96424
97766
  }
96425
97767
  }
97768
+ if (object.selectiveGapicGeneration != null) {
97769
+ if (typeof object.selectiveGapicGeneration !== "object")
97770
+ throw TypeError(".google.api.CommonLanguageSettings.selectiveGapicGeneration: object expected");
97771
+ message.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.fromObject(object.selectiveGapicGeneration);
97772
+ }
96426
97773
  return message;
96427
97774
  };
96428
97775
 
@@ -96441,8 +97788,10 @@
96441
97788
  var object = {};
96442
97789
  if (options.arrays || options.defaults)
96443
97790
  object.destinations = [];
96444
- if (options.defaults)
97791
+ if (options.defaults) {
96445
97792
  object.referenceDocsUri = "";
97793
+ object.selectiveGapicGeneration = null;
97794
+ }
96446
97795
  if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
96447
97796
  object.referenceDocsUri = message.referenceDocsUri;
96448
97797
  if (message.destinations && message.destinations.length) {
@@ -96450,6 +97799,8 @@
96450
97799
  for (var j = 0; j < message.destinations.length; ++j)
96451
97800
  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];
96452
97801
  }
97802
+ if (message.selectiveGapicGeneration != null && message.hasOwnProperty("selectiveGapicGeneration"))
97803
+ object.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.toObject(message.selectiveGapicGeneration, options);
96453
97804
  return object;
96454
97805
  };
96455
97806
 
@@ -98272,6 +99623,7 @@
98272
99623
  * @memberof google.api
98273
99624
  * @interface IPythonSettings
98274
99625
  * @property {google.api.ICommonLanguageSettings|null} [common] PythonSettings common
99626
+ * @property {google.api.PythonSettings.IExperimentalFeatures|null} [experimentalFeatures] PythonSettings experimentalFeatures
98275
99627
  */
98276
99628
 
98277
99629
  /**
@@ -98297,6 +99649,14 @@
98297
99649
  */
98298
99650
  PythonSettings.prototype.common = null;
98299
99651
 
99652
+ /**
99653
+ * PythonSettings experimentalFeatures.
99654
+ * @member {google.api.PythonSettings.IExperimentalFeatures|null|undefined} experimentalFeatures
99655
+ * @memberof google.api.PythonSettings
99656
+ * @instance
99657
+ */
99658
+ PythonSettings.prototype.experimentalFeatures = null;
99659
+
98300
99660
  /**
98301
99661
  * Creates a new PythonSettings instance using the specified properties.
98302
99662
  * @function create
@@ -98323,6 +99683,8 @@
98323
99683
  writer = $Writer.create();
98324
99684
  if (message.common != null && Object.hasOwnProperty.call(message, "common"))
98325
99685
  $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
99686
+ if (message.experimentalFeatures != null && Object.hasOwnProperty.call(message, "experimentalFeatures"))
99687
+ $root.google.api.PythonSettings.ExperimentalFeatures.encode(message.experimentalFeatures, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
98326
99688
  return writer;
98327
99689
  };
98328
99690
 
@@ -98363,6 +99725,10 @@
98363
99725
  message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
98364
99726
  break;
98365
99727
  }
99728
+ case 2: {
99729
+ message.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.decode(reader, reader.uint32());
99730
+ break;
99731
+ }
98366
99732
  default:
98367
99733
  reader.skipType(tag & 7);
98368
99734
  break;
@@ -98403,6 +99769,11 @@
98403
99769
  if (error)
98404
99770
  return "common." + error;
98405
99771
  }
99772
+ if (message.experimentalFeatures != null && message.hasOwnProperty("experimentalFeatures")) {
99773
+ var error = $root.google.api.PythonSettings.ExperimentalFeatures.verify(message.experimentalFeatures);
99774
+ if (error)
99775
+ return "experimentalFeatures." + error;
99776
+ }
98406
99777
  return null;
98407
99778
  };
98408
99779
 
@@ -98423,6 +99794,11 @@
98423
99794
  throw TypeError(".google.api.PythonSettings.common: object expected");
98424
99795
  message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
98425
99796
  }
99797
+ if (object.experimentalFeatures != null) {
99798
+ if (typeof object.experimentalFeatures !== "object")
99799
+ throw TypeError(".google.api.PythonSettings.experimentalFeatures: object expected");
99800
+ message.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.fromObject(object.experimentalFeatures);
99801
+ }
98426
99802
  return message;
98427
99803
  };
98428
99804
 
@@ -98439,10 +99815,14 @@
98439
99815
  if (!options)
98440
99816
  options = {};
98441
99817
  var object = {};
98442
- if (options.defaults)
99818
+ if (options.defaults) {
98443
99819
  object.common = null;
99820
+ object.experimentalFeatures = null;
99821
+ }
98444
99822
  if (message.common != null && message.hasOwnProperty("common"))
98445
99823
  object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
99824
+ if (message.experimentalFeatures != null && message.hasOwnProperty("experimentalFeatures"))
99825
+ object.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.toObject(message.experimentalFeatures, options);
98446
99826
  return object;
98447
99827
  };
98448
99828
 
@@ -98472,6 +99852,258 @@
98472
99852
  return typeUrlPrefix + "/google.api.PythonSettings";
98473
99853
  };
98474
99854
 
99855
+ PythonSettings.ExperimentalFeatures = (function() {
99856
+
99857
+ /**
99858
+ * Properties of an ExperimentalFeatures.
99859
+ * @memberof google.api.PythonSettings
99860
+ * @interface IExperimentalFeatures
99861
+ * @property {boolean|null} [restAsyncIoEnabled] ExperimentalFeatures restAsyncIoEnabled
99862
+ * @property {boolean|null} [protobufPythonicTypesEnabled] ExperimentalFeatures protobufPythonicTypesEnabled
99863
+ * @property {boolean|null} [unversionedPackageDisabled] ExperimentalFeatures unversionedPackageDisabled
99864
+ */
99865
+
99866
+ /**
99867
+ * Constructs a new ExperimentalFeatures.
99868
+ * @memberof google.api.PythonSettings
99869
+ * @classdesc Represents an ExperimentalFeatures.
99870
+ * @implements IExperimentalFeatures
99871
+ * @constructor
99872
+ * @param {google.api.PythonSettings.IExperimentalFeatures=} [properties] Properties to set
99873
+ */
99874
+ function ExperimentalFeatures(properties) {
99875
+ if (properties)
99876
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
99877
+ if (properties[keys[i]] != null)
99878
+ this[keys[i]] = properties[keys[i]];
99879
+ }
99880
+
99881
+ /**
99882
+ * ExperimentalFeatures restAsyncIoEnabled.
99883
+ * @member {boolean} restAsyncIoEnabled
99884
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
99885
+ * @instance
99886
+ */
99887
+ ExperimentalFeatures.prototype.restAsyncIoEnabled = false;
99888
+
99889
+ /**
99890
+ * ExperimentalFeatures protobufPythonicTypesEnabled.
99891
+ * @member {boolean} protobufPythonicTypesEnabled
99892
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
99893
+ * @instance
99894
+ */
99895
+ ExperimentalFeatures.prototype.protobufPythonicTypesEnabled = false;
99896
+
99897
+ /**
99898
+ * ExperimentalFeatures unversionedPackageDisabled.
99899
+ * @member {boolean} unversionedPackageDisabled
99900
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
99901
+ * @instance
99902
+ */
99903
+ ExperimentalFeatures.prototype.unversionedPackageDisabled = false;
99904
+
99905
+ /**
99906
+ * Creates a new ExperimentalFeatures instance using the specified properties.
99907
+ * @function create
99908
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
99909
+ * @static
99910
+ * @param {google.api.PythonSettings.IExperimentalFeatures=} [properties] Properties to set
99911
+ * @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures instance
99912
+ */
99913
+ ExperimentalFeatures.create = function create(properties) {
99914
+ return new ExperimentalFeatures(properties);
99915
+ };
99916
+
99917
+ /**
99918
+ * Encodes the specified ExperimentalFeatures message. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
99919
+ * @function encode
99920
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
99921
+ * @static
99922
+ * @param {google.api.PythonSettings.IExperimentalFeatures} message ExperimentalFeatures message or plain object to encode
99923
+ * @param {$protobuf.Writer} [writer] Writer to encode to
99924
+ * @returns {$protobuf.Writer} Writer
99925
+ */
99926
+ ExperimentalFeatures.encode = function encode(message, writer) {
99927
+ if (!writer)
99928
+ writer = $Writer.create();
99929
+ if (message.restAsyncIoEnabled != null && Object.hasOwnProperty.call(message, "restAsyncIoEnabled"))
99930
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.restAsyncIoEnabled);
99931
+ if (message.protobufPythonicTypesEnabled != null && Object.hasOwnProperty.call(message, "protobufPythonicTypesEnabled"))
99932
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.protobufPythonicTypesEnabled);
99933
+ if (message.unversionedPackageDisabled != null && Object.hasOwnProperty.call(message, "unversionedPackageDisabled"))
99934
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.unversionedPackageDisabled);
99935
+ return writer;
99936
+ };
99937
+
99938
+ /**
99939
+ * Encodes the specified ExperimentalFeatures message, length delimited. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
99940
+ * @function encodeDelimited
99941
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
99942
+ * @static
99943
+ * @param {google.api.PythonSettings.IExperimentalFeatures} message ExperimentalFeatures message or plain object to encode
99944
+ * @param {$protobuf.Writer} [writer] Writer to encode to
99945
+ * @returns {$protobuf.Writer} Writer
99946
+ */
99947
+ ExperimentalFeatures.encodeDelimited = function encodeDelimited(message, writer) {
99948
+ return this.encode(message, writer).ldelim();
99949
+ };
99950
+
99951
+ /**
99952
+ * Decodes an ExperimentalFeatures message from the specified reader or buffer.
99953
+ * @function decode
99954
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
99955
+ * @static
99956
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
99957
+ * @param {number} [length] Message length if known beforehand
99958
+ * @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
99959
+ * @throws {Error} If the payload is not a reader or valid buffer
99960
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
99961
+ */
99962
+ ExperimentalFeatures.decode = function decode(reader, length, error) {
99963
+ if (!(reader instanceof $Reader))
99964
+ reader = $Reader.create(reader);
99965
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings.ExperimentalFeatures();
99966
+ while (reader.pos < end) {
99967
+ var tag = reader.uint32();
99968
+ if (tag === error)
99969
+ break;
99970
+ switch (tag >>> 3) {
99971
+ case 1: {
99972
+ message.restAsyncIoEnabled = reader.bool();
99973
+ break;
99974
+ }
99975
+ case 2: {
99976
+ message.protobufPythonicTypesEnabled = reader.bool();
99977
+ break;
99978
+ }
99979
+ case 3: {
99980
+ message.unversionedPackageDisabled = reader.bool();
99981
+ break;
99982
+ }
99983
+ default:
99984
+ reader.skipType(tag & 7);
99985
+ break;
99986
+ }
99987
+ }
99988
+ return message;
99989
+ };
99990
+
99991
+ /**
99992
+ * Decodes an ExperimentalFeatures message from the specified reader or buffer, length delimited.
99993
+ * @function decodeDelimited
99994
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
99995
+ * @static
99996
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
99997
+ * @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
99998
+ * @throws {Error} If the payload is not a reader or valid buffer
99999
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
100000
+ */
100001
+ ExperimentalFeatures.decodeDelimited = function decodeDelimited(reader) {
100002
+ if (!(reader instanceof $Reader))
100003
+ reader = new $Reader(reader);
100004
+ return this.decode(reader, reader.uint32());
100005
+ };
100006
+
100007
+ /**
100008
+ * Verifies an ExperimentalFeatures message.
100009
+ * @function verify
100010
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
100011
+ * @static
100012
+ * @param {Object.<string,*>} message Plain object to verify
100013
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
100014
+ */
100015
+ ExperimentalFeatures.verify = function verify(message) {
100016
+ if (typeof message !== "object" || message === null)
100017
+ return "object expected";
100018
+ if (message.restAsyncIoEnabled != null && message.hasOwnProperty("restAsyncIoEnabled"))
100019
+ if (typeof message.restAsyncIoEnabled !== "boolean")
100020
+ return "restAsyncIoEnabled: boolean expected";
100021
+ if (message.protobufPythonicTypesEnabled != null && message.hasOwnProperty("protobufPythonicTypesEnabled"))
100022
+ if (typeof message.protobufPythonicTypesEnabled !== "boolean")
100023
+ return "protobufPythonicTypesEnabled: boolean expected";
100024
+ if (message.unversionedPackageDisabled != null && message.hasOwnProperty("unversionedPackageDisabled"))
100025
+ if (typeof message.unversionedPackageDisabled !== "boolean")
100026
+ return "unversionedPackageDisabled: boolean expected";
100027
+ return null;
100028
+ };
100029
+
100030
+ /**
100031
+ * Creates an ExperimentalFeatures message from a plain object. Also converts values to their respective internal types.
100032
+ * @function fromObject
100033
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
100034
+ * @static
100035
+ * @param {Object.<string,*>} object Plain object
100036
+ * @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
100037
+ */
100038
+ ExperimentalFeatures.fromObject = function fromObject(object) {
100039
+ if (object instanceof $root.google.api.PythonSettings.ExperimentalFeatures)
100040
+ return object;
100041
+ var message = new $root.google.api.PythonSettings.ExperimentalFeatures();
100042
+ if (object.restAsyncIoEnabled != null)
100043
+ message.restAsyncIoEnabled = Boolean(object.restAsyncIoEnabled);
100044
+ if (object.protobufPythonicTypesEnabled != null)
100045
+ message.protobufPythonicTypesEnabled = Boolean(object.protobufPythonicTypesEnabled);
100046
+ if (object.unversionedPackageDisabled != null)
100047
+ message.unversionedPackageDisabled = Boolean(object.unversionedPackageDisabled);
100048
+ return message;
100049
+ };
100050
+
100051
+ /**
100052
+ * Creates a plain object from an ExperimentalFeatures message. Also converts values to other types if specified.
100053
+ * @function toObject
100054
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
100055
+ * @static
100056
+ * @param {google.api.PythonSettings.ExperimentalFeatures} message ExperimentalFeatures
100057
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
100058
+ * @returns {Object.<string,*>} Plain object
100059
+ */
100060
+ ExperimentalFeatures.toObject = function toObject(message, options) {
100061
+ if (!options)
100062
+ options = {};
100063
+ var object = {};
100064
+ if (options.defaults) {
100065
+ object.restAsyncIoEnabled = false;
100066
+ object.protobufPythonicTypesEnabled = false;
100067
+ object.unversionedPackageDisabled = false;
100068
+ }
100069
+ if (message.restAsyncIoEnabled != null && message.hasOwnProperty("restAsyncIoEnabled"))
100070
+ object.restAsyncIoEnabled = message.restAsyncIoEnabled;
100071
+ if (message.protobufPythonicTypesEnabled != null && message.hasOwnProperty("protobufPythonicTypesEnabled"))
100072
+ object.protobufPythonicTypesEnabled = message.protobufPythonicTypesEnabled;
100073
+ if (message.unversionedPackageDisabled != null && message.hasOwnProperty("unversionedPackageDisabled"))
100074
+ object.unversionedPackageDisabled = message.unversionedPackageDisabled;
100075
+ return object;
100076
+ };
100077
+
100078
+ /**
100079
+ * Converts this ExperimentalFeatures to JSON.
100080
+ * @function toJSON
100081
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
100082
+ * @instance
100083
+ * @returns {Object.<string,*>} JSON object
100084
+ */
100085
+ ExperimentalFeatures.prototype.toJSON = function toJSON() {
100086
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
100087
+ };
100088
+
100089
+ /**
100090
+ * Gets the default type url for ExperimentalFeatures
100091
+ * @function getTypeUrl
100092
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
100093
+ * @static
100094
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
100095
+ * @returns {string} The default type url
100096
+ */
100097
+ ExperimentalFeatures.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
100098
+ if (typeUrlPrefix === undefined) {
100099
+ typeUrlPrefix = "type.googleapis.com";
100100
+ }
100101
+ return typeUrlPrefix + "/google.api.PythonSettings.ExperimentalFeatures";
100102
+ };
100103
+
100104
+ return ExperimentalFeatures;
100105
+ })();
100106
+
98475
100107
  return PythonSettings;
98476
100108
  })();
98477
100109
 
@@ -99348,6 +100980,7 @@
99348
100980
  * @memberof google.api
99349
100981
  * @interface IGoSettings
99350
100982
  * @property {google.api.ICommonLanguageSettings|null} [common] GoSettings common
100983
+ * @property {Object.<string,string>|null} [renamedServices] GoSettings renamedServices
99351
100984
  */
99352
100985
 
99353
100986
  /**
@@ -99359,6 +100992,7 @@
99359
100992
  * @param {google.api.IGoSettings=} [properties] Properties to set
99360
100993
  */
99361
100994
  function GoSettings(properties) {
100995
+ this.renamedServices = {};
99362
100996
  if (properties)
99363
100997
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
99364
100998
  if (properties[keys[i]] != null)
@@ -99373,6 +101007,14 @@
99373
101007
  */
99374
101008
  GoSettings.prototype.common = null;
99375
101009
 
101010
+ /**
101011
+ * GoSettings renamedServices.
101012
+ * @member {Object.<string,string>} renamedServices
101013
+ * @memberof google.api.GoSettings
101014
+ * @instance
101015
+ */
101016
+ GoSettings.prototype.renamedServices = $util.emptyObject;
101017
+
99376
101018
  /**
99377
101019
  * Creates a new GoSettings instance using the specified properties.
99378
101020
  * @function create
@@ -99399,6 +101041,9 @@
99399
101041
  writer = $Writer.create();
99400
101042
  if (message.common != null && Object.hasOwnProperty.call(message, "common"))
99401
101043
  $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
101044
+ if (message.renamedServices != null && Object.hasOwnProperty.call(message, "renamedServices"))
101045
+ for (var keys = Object.keys(message.renamedServices), i = 0; i < keys.length; ++i)
101046
+ 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();
99402
101047
  return writer;
99403
101048
  };
99404
101049
 
@@ -99429,7 +101074,7 @@
99429
101074
  GoSettings.decode = function decode(reader, length, error) {
99430
101075
  if (!(reader instanceof $Reader))
99431
101076
  reader = $Reader.create(reader);
99432
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings();
101077
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings(), key, value;
99433
101078
  while (reader.pos < end) {
99434
101079
  var tag = reader.uint32();
99435
101080
  if (tag === error)
@@ -99439,6 +101084,29 @@
99439
101084
  message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
99440
101085
  break;
99441
101086
  }
101087
+ case 2: {
101088
+ if (message.renamedServices === $util.emptyObject)
101089
+ message.renamedServices = {};
101090
+ var end2 = reader.uint32() + reader.pos;
101091
+ key = "";
101092
+ value = "";
101093
+ while (reader.pos < end2) {
101094
+ var tag2 = reader.uint32();
101095
+ switch (tag2 >>> 3) {
101096
+ case 1:
101097
+ key = reader.string();
101098
+ break;
101099
+ case 2:
101100
+ value = reader.string();
101101
+ break;
101102
+ default:
101103
+ reader.skipType(tag2 & 7);
101104
+ break;
101105
+ }
101106
+ }
101107
+ message.renamedServices[key] = value;
101108
+ break;
101109
+ }
99442
101110
  default:
99443
101111
  reader.skipType(tag & 7);
99444
101112
  break;
@@ -99479,6 +101147,14 @@
99479
101147
  if (error)
99480
101148
  return "common." + error;
99481
101149
  }
101150
+ if (message.renamedServices != null && message.hasOwnProperty("renamedServices")) {
101151
+ if (!$util.isObject(message.renamedServices))
101152
+ return "renamedServices: object expected";
101153
+ var key = Object.keys(message.renamedServices);
101154
+ for (var i = 0; i < key.length; ++i)
101155
+ if (!$util.isString(message.renamedServices[key[i]]))
101156
+ return "renamedServices: string{k:string} expected";
101157
+ }
99482
101158
  return null;
99483
101159
  };
99484
101160
 
@@ -99499,6 +101175,13 @@
99499
101175
  throw TypeError(".google.api.GoSettings.common: object expected");
99500
101176
  message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
99501
101177
  }
101178
+ if (object.renamedServices) {
101179
+ if (typeof object.renamedServices !== "object")
101180
+ throw TypeError(".google.api.GoSettings.renamedServices: object expected");
101181
+ message.renamedServices = {};
101182
+ for (var keys = Object.keys(object.renamedServices), i = 0; i < keys.length; ++i)
101183
+ message.renamedServices[keys[i]] = String(object.renamedServices[keys[i]]);
101184
+ }
99502
101185
  return message;
99503
101186
  };
99504
101187
 
@@ -99515,10 +101198,18 @@
99515
101198
  if (!options)
99516
101199
  options = {};
99517
101200
  var object = {};
101201
+ if (options.objects || options.defaults)
101202
+ object.renamedServices = {};
99518
101203
  if (options.defaults)
99519
101204
  object.common = null;
99520
101205
  if (message.common != null && message.hasOwnProperty("common"))
99521
101206
  object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
101207
+ var keys2;
101208
+ if (message.renamedServices && (keys2 = Object.keys(message.renamedServices)).length) {
101209
+ object.renamedServices = {};
101210
+ for (var j = 0; j < keys2.length; ++j)
101211
+ object.renamedServices[keys2[j]] = message.renamedServices[keys2[j]];
101212
+ }
99522
101213
  return object;
99523
101214
  };
99524
101215
 
@@ -100157,6 +101848,251 @@
100157
101848
  return values;
100158
101849
  })();
100159
101850
 
101851
+ api.SelectiveGapicGeneration = (function() {
101852
+
101853
+ /**
101854
+ * Properties of a SelectiveGapicGeneration.
101855
+ * @memberof google.api
101856
+ * @interface ISelectiveGapicGeneration
101857
+ * @property {Array.<string>|null} [methods] SelectiveGapicGeneration methods
101858
+ * @property {boolean|null} [generateOmittedAsInternal] SelectiveGapicGeneration generateOmittedAsInternal
101859
+ */
101860
+
101861
+ /**
101862
+ * Constructs a new SelectiveGapicGeneration.
101863
+ * @memberof google.api
101864
+ * @classdesc Represents a SelectiveGapicGeneration.
101865
+ * @implements ISelectiveGapicGeneration
101866
+ * @constructor
101867
+ * @param {google.api.ISelectiveGapicGeneration=} [properties] Properties to set
101868
+ */
101869
+ function SelectiveGapicGeneration(properties) {
101870
+ this.methods = [];
101871
+ if (properties)
101872
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
101873
+ if (properties[keys[i]] != null)
101874
+ this[keys[i]] = properties[keys[i]];
101875
+ }
101876
+
101877
+ /**
101878
+ * SelectiveGapicGeneration methods.
101879
+ * @member {Array.<string>} methods
101880
+ * @memberof google.api.SelectiveGapicGeneration
101881
+ * @instance
101882
+ */
101883
+ SelectiveGapicGeneration.prototype.methods = $util.emptyArray;
101884
+
101885
+ /**
101886
+ * SelectiveGapicGeneration generateOmittedAsInternal.
101887
+ * @member {boolean} generateOmittedAsInternal
101888
+ * @memberof google.api.SelectiveGapicGeneration
101889
+ * @instance
101890
+ */
101891
+ SelectiveGapicGeneration.prototype.generateOmittedAsInternal = false;
101892
+
101893
+ /**
101894
+ * Creates a new SelectiveGapicGeneration instance using the specified properties.
101895
+ * @function create
101896
+ * @memberof google.api.SelectiveGapicGeneration
101897
+ * @static
101898
+ * @param {google.api.ISelectiveGapicGeneration=} [properties] Properties to set
101899
+ * @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration instance
101900
+ */
101901
+ SelectiveGapicGeneration.create = function create(properties) {
101902
+ return new SelectiveGapicGeneration(properties);
101903
+ };
101904
+
101905
+ /**
101906
+ * Encodes the specified SelectiveGapicGeneration message. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
101907
+ * @function encode
101908
+ * @memberof google.api.SelectiveGapicGeneration
101909
+ * @static
101910
+ * @param {google.api.ISelectiveGapicGeneration} message SelectiveGapicGeneration message or plain object to encode
101911
+ * @param {$protobuf.Writer} [writer] Writer to encode to
101912
+ * @returns {$protobuf.Writer} Writer
101913
+ */
101914
+ SelectiveGapicGeneration.encode = function encode(message, writer) {
101915
+ if (!writer)
101916
+ writer = $Writer.create();
101917
+ if (message.methods != null && message.methods.length)
101918
+ for (var i = 0; i < message.methods.length; ++i)
101919
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.methods[i]);
101920
+ if (message.generateOmittedAsInternal != null && Object.hasOwnProperty.call(message, "generateOmittedAsInternal"))
101921
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.generateOmittedAsInternal);
101922
+ return writer;
101923
+ };
101924
+
101925
+ /**
101926
+ * Encodes the specified SelectiveGapicGeneration message, length delimited. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
101927
+ * @function encodeDelimited
101928
+ * @memberof google.api.SelectiveGapicGeneration
101929
+ * @static
101930
+ * @param {google.api.ISelectiveGapicGeneration} message SelectiveGapicGeneration message or plain object to encode
101931
+ * @param {$protobuf.Writer} [writer] Writer to encode to
101932
+ * @returns {$protobuf.Writer} Writer
101933
+ */
101934
+ SelectiveGapicGeneration.encodeDelimited = function encodeDelimited(message, writer) {
101935
+ return this.encode(message, writer).ldelim();
101936
+ };
101937
+
101938
+ /**
101939
+ * Decodes a SelectiveGapicGeneration message from the specified reader or buffer.
101940
+ * @function decode
101941
+ * @memberof google.api.SelectiveGapicGeneration
101942
+ * @static
101943
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
101944
+ * @param {number} [length] Message length if known beforehand
101945
+ * @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
101946
+ * @throws {Error} If the payload is not a reader or valid buffer
101947
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
101948
+ */
101949
+ SelectiveGapicGeneration.decode = function decode(reader, length, error) {
101950
+ if (!(reader instanceof $Reader))
101951
+ reader = $Reader.create(reader);
101952
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.SelectiveGapicGeneration();
101953
+ while (reader.pos < end) {
101954
+ var tag = reader.uint32();
101955
+ if (tag === error)
101956
+ break;
101957
+ switch (tag >>> 3) {
101958
+ case 1: {
101959
+ if (!(message.methods && message.methods.length))
101960
+ message.methods = [];
101961
+ message.methods.push(reader.string());
101962
+ break;
101963
+ }
101964
+ case 2: {
101965
+ message.generateOmittedAsInternal = reader.bool();
101966
+ break;
101967
+ }
101968
+ default:
101969
+ reader.skipType(tag & 7);
101970
+ break;
101971
+ }
101972
+ }
101973
+ return message;
101974
+ };
101975
+
101976
+ /**
101977
+ * Decodes a SelectiveGapicGeneration message from the specified reader or buffer, length delimited.
101978
+ * @function decodeDelimited
101979
+ * @memberof google.api.SelectiveGapicGeneration
101980
+ * @static
101981
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
101982
+ * @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
101983
+ * @throws {Error} If the payload is not a reader or valid buffer
101984
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
101985
+ */
101986
+ SelectiveGapicGeneration.decodeDelimited = function decodeDelimited(reader) {
101987
+ if (!(reader instanceof $Reader))
101988
+ reader = new $Reader(reader);
101989
+ return this.decode(reader, reader.uint32());
101990
+ };
101991
+
101992
+ /**
101993
+ * Verifies a SelectiveGapicGeneration message.
101994
+ * @function verify
101995
+ * @memberof google.api.SelectiveGapicGeneration
101996
+ * @static
101997
+ * @param {Object.<string,*>} message Plain object to verify
101998
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
101999
+ */
102000
+ SelectiveGapicGeneration.verify = function verify(message) {
102001
+ if (typeof message !== "object" || message === null)
102002
+ return "object expected";
102003
+ if (message.methods != null && message.hasOwnProperty("methods")) {
102004
+ if (!Array.isArray(message.methods))
102005
+ return "methods: array expected";
102006
+ for (var i = 0; i < message.methods.length; ++i)
102007
+ if (!$util.isString(message.methods[i]))
102008
+ return "methods: string[] expected";
102009
+ }
102010
+ if (message.generateOmittedAsInternal != null && message.hasOwnProperty("generateOmittedAsInternal"))
102011
+ if (typeof message.generateOmittedAsInternal !== "boolean")
102012
+ return "generateOmittedAsInternal: boolean expected";
102013
+ return null;
102014
+ };
102015
+
102016
+ /**
102017
+ * Creates a SelectiveGapicGeneration message from a plain object. Also converts values to their respective internal types.
102018
+ * @function fromObject
102019
+ * @memberof google.api.SelectiveGapicGeneration
102020
+ * @static
102021
+ * @param {Object.<string,*>} object Plain object
102022
+ * @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
102023
+ */
102024
+ SelectiveGapicGeneration.fromObject = function fromObject(object) {
102025
+ if (object instanceof $root.google.api.SelectiveGapicGeneration)
102026
+ return object;
102027
+ var message = new $root.google.api.SelectiveGapicGeneration();
102028
+ if (object.methods) {
102029
+ if (!Array.isArray(object.methods))
102030
+ throw TypeError(".google.api.SelectiveGapicGeneration.methods: array expected");
102031
+ message.methods = [];
102032
+ for (var i = 0; i < object.methods.length; ++i)
102033
+ message.methods[i] = String(object.methods[i]);
102034
+ }
102035
+ if (object.generateOmittedAsInternal != null)
102036
+ message.generateOmittedAsInternal = Boolean(object.generateOmittedAsInternal);
102037
+ return message;
102038
+ };
102039
+
102040
+ /**
102041
+ * Creates a plain object from a SelectiveGapicGeneration message. Also converts values to other types if specified.
102042
+ * @function toObject
102043
+ * @memberof google.api.SelectiveGapicGeneration
102044
+ * @static
102045
+ * @param {google.api.SelectiveGapicGeneration} message SelectiveGapicGeneration
102046
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
102047
+ * @returns {Object.<string,*>} Plain object
102048
+ */
102049
+ SelectiveGapicGeneration.toObject = function toObject(message, options) {
102050
+ if (!options)
102051
+ options = {};
102052
+ var object = {};
102053
+ if (options.arrays || options.defaults)
102054
+ object.methods = [];
102055
+ if (options.defaults)
102056
+ object.generateOmittedAsInternal = false;
102057
+ if (message.methods && message.methods.length) {
102058
+ object.methods = [];
102059
+ for (var j = 0; j < message.methods.length; ++j)
102060
+ object.methods[j] = message.methods[j];
102061
+ }
102062
+ if (message.generateOmittedAsInternal != null && message.hasOwnProperty("generateOmittedAsInternal"))
102063
+ object.generateOmittedAsInternal = message.generateOmittedAsInternal;
102064
+ return object;
102065
+ };
102066
+
102067
+ /**
102068
+ * Converts this SelectiveGapicGeneration to JSON.
102069
+ * @function toJSON
102070
+ * @memberof google.api.SelectiveGapicGeneration
102071
+ * @instance
102072
+ * @returns {Object.<string,*>} JSON object
102073
+ */
102074
+ SelectiveGapicGeneration.prototype.toJSON = function toJSON() {
102075
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
102076
+ };
102077
+
102078
+ /**
102079
+ * Gets the default type url for SelectiveGapicGeneration
102080
+ * @function getTypeUrl
102081
+ * @memberof google.api.SelectiveGapicGeneration
102082
+ * @static
102083
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
102084
+ * @returns {string} The default type url
102085
+ */
102086
+ SelectiveGapicGeneration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
102087
+ if (typeUrlPrefix === undefined) {
102088
+ typeUrlPrefix = "type.googleapis.com";
102089
+ }
102090
+ return typeUrlPrefix + "/google.api.SelectiveGapicGeneration";
102091
+ };
102092
+
102093
+ return SelectiveGapicGeneration;
102094
+ })();
102095
+
100160
102096
  /**
100161
102097
  * LaunchStage enum.
100162
102098
  * @name google.api.LaunchStage