@google-apps/chat 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2161,6 +2161,7 @@
2161
2161
  * @name google.protobuf.Edition
2162
2162
  * @enum {number}
2163
2163
  * @property {number} EDITION_UNKNOWN=0 EDITION_UNKNOWN value
2164
+ * @property {number} EDITION_LEGACY=900 EDITION_LEGACY value
2164
2165
  * @property {number} EDITION_PROTO2=998 EDITION_PROTO2 value
2165
2166
  * @property {number} EDITION_PROTO3=999 EDITION_PROTO3 value
2166
2167
  * @property {number} EDITION_2023=1000 EDITION_2023 value
@@ -2175,6 +2176,7 @@
2175
2176
  protobuf.Edition = (function() {
2176
2177
  var valuesById = {}, values = Object.create(valuesById);
2177
2178
  values[valuesById[0] = "EDITION_UNKNOWN"] = 0;
2179
+ values[valuesById[900] = "EDITION_LEGACY"] = 900;
2178
2180
  values[valuesById[998] = "EDITION_PROTO2"] = 998;
2179
2181
  values[valuesById[999] = "EDITION_PROTO3"] = 999;
2180
2182
  values[valuesById[1000] = "EDITION_2023"] = 1000;
@@ -2199,6 +2201,7 @@
2199
2201
  * @property {Array.<string>|null} [dependency] FileDescriptorProto dependency
2200
2202
  * @property {Array.<number>|null} [publicDependency] FileDescriptorProto publicDependency
2201
2203
  * @property {Array.<number>|null} [weakDependency] FileDescriptorProto weakDependency
2204
+ * @property {Array.<string>|null} [optionDependency] FileDescriptorProto optionDependency
2202
2205
  * @property {Array.<google.protobuf.IDescriptorProto>|null} [messageType] FileDescriptorProto messageType
2203
2206
  * @property {Array.<google.protobuf.IEnumDescriptorProto>|null} [enumType] FileDescriptorProto enumType
2204
2207
  * @property {Array.<google.protobuf.IServiceDescriptorProto>|null} [service] FileDescriptorProto service
@@ -2221,6 +2224,7 @@
2221
2224
  this.dependency = [];
2222
2225
  this.publicDependency = [];
2223
2226
  this.weakDependency = [];
2227
+ this.optionDependency = [];
2224
2228
  this.messageType = [];
2225
2229
  this.enumType = [];
2226
2230
  this.service = [];
@@ -2271,6 +2275,14 @@
2271
2275
  */
2272
2276
  FileDescriptorProto.prototype.weakDependency = $util.emptyArray;
2273
2277
 
2278
+ /**
2279
+ * FileDescriptorProto optionDependency.
2280
+ * @member {Array.<string>} optionDependency
2281
+ * @memberof google.protobuf.FileDescriptorProto
2282
+ * @instance
2283
+ */
2284
+ FileDescriptorProto.prototype.optionDependency = $util.emptyArray;
2285
+
2274
2286
  /**
2275
2287
  * FileDescriptorProto messageType.
2276
2288
  * @member {Array.<google.protobuf.IDescriptorProto>} messageType
@@ -2392,6 +2404,9 @@
2392
2404
  writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax);
2393
2405
  if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
2394
2406
  writer.uint32(/* id 14, wireType 0 =*/112).int32(message.edition);
2407
+ if (message.optionDependency != null && message.optionDependency.length)
2408
+ for (var i = 0; i < message.optionDependency.length; ++i)
2409
+ writer.uint32(/* id 15, wireType 2 =*/122).string(message.optionDependency[i]);
2395
2410
  return writer;
2396
2411
  };
2397
2412
 
@@ -2464,6 +2479,12 @@
2464
2479
  message.weakDependency.push(reader.int32());
2465
2480
  break;
2466
2481
  }
2482
+ case 15: {
2483
+ if (!(message.optionDependency && message.optionDependency.length))
2484
+ message.optionDependency = [];
2485
+ message.optionDependency.push(reader.string());
2486
+ break;
2487
+ }
2467
2488
  case 4: {
2468
2489
  if (!(message.messageType && message.messageType.length))
2469
2490
  message.messageType = [];
@@ -2566,6 +2587,13 @@
2566
2587
  if (!$util.isInteger(message.weakDependency[i]))
2567
2588
  return "weakDependency: integer[] expected";
2568
2589
  }
2590
+ if (message.optionDependency != null && message.hasOwnProperty("optionDependency")) {
2591
+ if (!Array.isArray(message.optionDependency))
2592
+ return "optionDependency: array expected";
2593
+ for (var i = 0; i < message.optionDependency.length; ++i)
2594
+ if (!$util.isString(message.optionDependency[i]))
2595
+ return "optionDependency: string[] expected";
2596
+ }
2569
2597
  if (message.messageType != null && message.hasOwnProperty("messageType")) {
2570
2598
  if (!Array.isArray(message.messageType))
2571
2599
  return "messageType: array expected";
@@ -2620,6 +2648,7 @@
2620
2648
  default:
2621
2649
  return "edition: enum value expected";
2622
2650
  case 0:
2651
+ case 900:
2623
2652
  case 998:
2624
2653
  case 999:
2625
2654
  case 1000:
@@ -2672,6 +2701,13 @@
2672
2701
  for (var i = 0; i < object.weakDependency.length; ++i)
2673
2702
  message.weakDependency[i] = object.weakDependency[i] | 0;
2674
2703
  }
2704
+ if (object.optionDependency) {
2705
+ if (!Array.isArray(object.optionDependency))
2706
+ throw TypeError(".google.protobuf.FileDescriptorProto.optionDependency: array expected");
2707
+ message.optionDependency = [];
2708
+ for (var i = 0; i < object.optionDependency.length; ++i)
2709
+ message.optionDependency[i] = String(object.optionDependency[i]);
2710
+ }
2675
2711
  if (object.messageType) {
2676
2712
  if (!Array.isArray(object.messageType))
2677
2713
  throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected");
@@ -2735,6 +2771,10 @@
2735
2771
  case 0:
2736
2772
  message.edition = 0;
2737
2773
  break;
2774
+ case "EDITION_LEGACY":
2775
+ case 900:
2776
+ message.edition = 900;
2777
+ break;
2738
2778
  case "EDITION_PROTO2":
2739
2779
  case 998:
2740
2780
  message.edition = 998;
@@ -2800,6 +2840,7 @@
2800
2840
  object.extension = [];
2801
2841
  object.publicDependency = [];
2802
2842
  object.weakDependency = [];
2843
+ object.optionDependency = [];
2803
2844
  }
2804
2845
  if (options.defaults) {
2805
2846
  object.name = "";
@@ -2856,6 +2897,11 @@
2856
2897
  object.syntax = message.syntax;
2857
2898
  if (message.edition != null && message.hasOwnProperty("edition"))
2858
2899
  object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
2900
+ if (message.optionDependency && message.optionDependency.length) {
2901
+ object.optionDependency = [];
2902
+ for (var j = 0; j < message.optionDependency.length; ++j)
2903
+ object.optionDependency[j] = message.optionDependency[j];
2904
+ }
2859
2905
  return object;
2860
2906
  };
2861
2907
 
@@ -2904,6 +2950,7 @@
2904
2950
  * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options
2905
2951
  * @property {Array.<google.protobuf.DescriptorProto.IReservedRange>|null} [reservedRange] DescriptorProto reservedRange
2906
2952
  * @property {Array.<string>|null} [reservedName] DescriptorProto reservedName
2953
+ * @property {google.protobuf.SymbolVisibility|null} [visibility] DescriptorProto visibility
2907
2954
  */
2908
2955
 
2909
2956
  /**
@@ -3009,6 +3056,14 @@
3009
3056
  */
3010
3057
  DescriptorProto.prototype.reservedName = $util.emptyArray;
3011
3058
 
3059
+ /**
3060
+ * DescriptorProto visibility.
3061
+ * @member {google.protobuf.SymbolVisibility} visibility
3062
+ * @memberof google.protobuf.DescriptorProto
3063
+ * @instance
3064
+ */
3065
+ DescriptorProto.prototype.visibility = 0;
3066
+
3012
3067
  /**
3013
3068
  * Creates a new DescriptorProto instance using the specified properties.
3014
3069
  * @function create
@@ -3061,6 +3116,8 @@
3061
3116
  if (message.reservedName != null && message.reservedName.length)
3062
3117
  for (var i = 0; i < message.reservedName.length; ++i)
3063
3118
  writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]);
3119
+ if (message.visibility != null && Object.hasOwnProperty.call(message, "visibility"))
3120
+ writer.uint32(/* id 11, wireType 0 =*/88).int32(message.visibility);
3064
3121
  return writer;
3065
3122
  };
3066
3123
 
@@ -3153,6 +3210,10 @@
3153
3210
  message.reservedName.push(reader.string());
3154
3211
  break;
3155
3212
  }
3213
+ case 11: {
3214
+ message.visibility = reader.int32();
3215
+ break;
3216
+ }
3156
3217
  default:
3157
3218
  reader.skipType(tag & 7);
3158
3219
  break;
@@ -3266,6 +3327,15 @@
3266
3327
  if (!$util.isString(message.reservedName[i]))
3267
3328
  return "reservedName: string[] expected";
3268
3329
  }
3330
+ if (message.visibility != null && message.hasOwnProperty("visibility"))
3331
+ switch (message.visibility) {
3332
+ default:
3333
+ return "visibility: enum value expected";
3334
+ case 0:
3335
+ case 1:
3336
+ case 2:
3337
+ break;
3338
+ }
3269
3339
  return null;
3270
3340
  };
3271
3341
 
@@ -3365,6 +3435,26 @@
3365
3435
  for (var i = 0; i < object.reservedName.length; ++i)
3366
3436
  message.reservedName[i] = String(object.reservedName[i]);
3367
3437
  }
3438
+ switch (object.visibility) {
3439
+ default:
3440
+ if (typeof object.visibility === "number") {
3441
+ message.visibility = object.visibility;
3442
+ break;
3443
+ }
3444
+ break;
3445
+ case "VISIBILITY_UNSET":
3446
+ case 0:
3447
+ message.visibility = 0;
3448
+ break;
3449
+ case "VISIBILITY_LOCAL":
3450
+ case 1:
3451
+ message.visibility = 1;
3452
+ break;
3453
+ case "VISIBILITY_EXPORT":
3454
+ case 2:
3455
+ message.visibility = 2;
3456
+ break;
3457
+ }
3368
3458
  return message;
3369
3459
  };
3370
3460
 
@@ -3394,6 +3484,7 @@
3394
3484
  if (options.defaults) {
3395
3485
  object.name = "";
3396
3486
  object.options = null;
3487
+ object.visibility = options.enums === String ? "VISIBILITY_UNSET" : 0;
3397
3488
  }
3398
3489
  if (message.name != null && message.hasOwnProperty("name"))
3399
3490
  object.name = message.name;
@@ -3439,6 +3530,8 @@
3439
3530
  for (var j = 0; j < message.reservedName.length; ++j)
3440
3531
  object.reservedName[j] = message.reservedName[j];
3441
3532
  }
3533
+ if (message.visibility != null && message.hasOwnProperty("visibility"))
3534
+ object.visibility = options.enums === String ? $root.google.protobuf.SymbolVisibility[message.visibility] === undefined ? message.visibility : $root.google.protobuf.SymbolVisibility[message.visibility] : message.visibility;
3442
3535
  return object;
3443
3536
  };
3444
3537
 
@@ -5483,6 +5576,7 @@
5483
5576
  * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options
5484
5577
  * @property {Array.<google.protobuf.EnumDescriptorProto.IEnumReservedRange>|null} [reservedRange] EnumDescriptorProto reservedRange
5485
5578
  * @property {Array.<string>|null} [reservedName] EnumDescriptorProto reservedName
5579
+ * @property {google.protobuf.SymbolVisibility|null} [visibility] EnumDescriptorProto visibility
5486
5580
  */
5487
5581
 
5488
5582
  /**
@@ -5543,6 +5637,14 @@
5543
5637
  */
5544
5638
  EnumDescriptorProto.prototype.reservedName = $util.emptyArray;
5545
5639
 
5640
+ /**
5641
+ * EnumDescriptorProto visibility.
5642
+ * @member {google.protobuf.SymbolVisibility} visibility
5643
+ * @memberof google.protobuf.EnumDescriptorProto
5644
+ * @instance
5645
+ */
5646
+ EnumDescriptorProto.prototype.visibility = 0;
5647
+
5546
5648
  /**
5547
5649
  * Creates a new EnumDescriptorProto instance using the specified properties.
5548
5650
  * @function create
@@ -5580,6 +5682,8 @@
5580
5682
  if (message.reservedName != null && message.reservedName.length)
5581
5683
  for (var i = 0; i < message.reservedName.length; ++i)
5582
5684
  writer.uint32(/* id 5, wireType 2 =*/42).string(message.reservedName[i]);
5685
+ if (message.visibility != null && Object.hasOwnProperty.call(message, "visibility"))
5686
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.visibility);
5583
5687
  return writer;
5584
5688
  };
5585
5689
 
@@ -5642,6 +5746,10 @@
5642
5746
  message.reservedName.push(reader.string());
5643
5747
  break;
5644
5748
  }
5749
+ case 6: {
5750
+ message.visibility = reader.int32();
5751
+ break;
5752
+ }
5645
5753
  default:
5646
5754
  reader.skipType(tag & 7);
5647
5755
  break;
@@ -5710,6 +5818,15 @@
5710
5818
  if (!$util.isString(message.reservedName[i]))
5711
5819
  return "reservedName: string[] expected";
5712
5820
  }
5821
+ if (message.visibility != null && message.hasOwnProperty("visibility"))
5822
+ switch (message.visibility) {
5823
+ default:
5824
+ return "visibility: enum value expected";
5825
+ case 0:
5826
+ case 1:
5827
+ case 2:
5828
+ break;
5829
+ }
5713
5830
  return null;
5714
5831
  };
5715
5832
 
@@ -5759,6 +5876,26 @@
5759
5876
  for (var i = 0; i < object.reservedName.length; ++i)
5760
5877
  message.reservedName[i] = String(object.reservedName[i]);
5761
5878
  }
5879
+ switch (object.visibility) {
5880
+ default:
5881
+ if (typeof object.visibility === "number") {
5882
+ message.visibility = object.visibility;
5883
+ break;
5884
+ }
5885
+ break;
5886
+ case "VISIBILITY_UNSET":
5887
+ case 0:
5888
+ message.visibility = 0;
5889
+ break;
5890
+ case "VISIBILITY_LOCAL":
5891
+ case 1:
5892
+ message.visibility = 1;
5893
+ break;
5894
+ case "VISIBILITY_EXPORT":
5895
+ case 2:
5896
+ message.visibility = 2;
5897
+ break;
5898
+ }
5762
5899
  return message;
5763
5900
  };
5764
5901
 
@@ -5783,6 +5920,7 @@
5783
5920
  if (options.defaults) {
5784
5921
  object.name = "";
5785
5922
  object.options = null;
5923
+ object.visibility = options.enums === String ? "VISIBILITY_UNSET" : 0;
5786
5924
  }
5787
5925
  if (message.name != null && message.hasOwnProperty("name"))
5788
5926
  object.name = message.name;
@@ -5803,6 +5941,8 @@
5803
5941
  for (var j = 0; j < message.reservedName.length; ++j)
5804
5942
  object.reservedName[j] = message.reservedName[j];
5805
5943
  }
5944
+ if (message.visibility != null && message.hasOwnProperty("visibility"))
5945
+ object.visibility = options.enums === String ? $root.google.protobuf.SymbolVisibility[message.visibility] === undefined ? message.visibility : $root.google.protobuf.SymbolVisibility[message.visibility] : message.visibility;
5806
5946
  return object;
5807
5947
  };
5808
5948
 
@@ -8121,9 +8261,10 @@
8121
8261
  * @property {Array.<google.protobuf.FieldOptions.OptionTargetType>|null} [targets] FieldOptions targets
8122
8262
  * @property {Array.<google.protobuf.FieldOptions.IEditionDefault>|null} [editionDefaults] FieldOptions editionDefaults
8123
8263
  * @property {google.protobuf.IFeatureSet|null} [features] FieldOptions features
8264
+ * @property {google.protobuf.FieldOptions.IFeatureSupport|null} [featureSupport] FieldOptions featureSupport
8124
8265
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FieldOptions uninterpretedOption
8125
- * @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference
8126
8266
  * @property {Array.<google.api.FieldBehavior>|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior
8267
+ * @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference
8127
8268
  * @property {google.api.IFieldInfo|null} [".google.api.fieldInfo"] FieldOptions .google.api.fieldInfo
8128
8269
  */
8129
8270
 
@@ -8243,20 +8384,20 @@
8243
8384
  FieldOptions.prototype.features = null;
8244
8385
 
8245
8386
  /**
8246
- * FieldOptions uninterpretedOption.
8247
- * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
8387
+ * FieldOptions featureSupport.
8388
+ * @member {google.protobuf.FieldOptions.IFeatureSupport|null|undefined} featureSupport
8248
8389
  * @memberof google.protobuf.FieldOptions
8249
8390
  * @instance
8250
8391
  */
8251
- FieldOptions.prototype.uninterpretedOption = $util.emptyArray;
8392
+ FieldOptions.prototype.featureSupport = null;
8252
8393
 
8253
8394
  /**
8254
- * FieldOptions .google.api.resourceReference.
8255
- * @member {google.api.IResourceReference|null|undefined} .google.api.resourceReference
8395
+ * FieldOptions uninterpretedOption.
8396
+ * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
8256
8397
  * @memberof google.protobuf.FieldOptions
8257
8398
  * @instance
8258
8399
  */
8259
- FieldOptions.prototype[".google.api.resourceReference"] = null;
8400
+ FieldOptions.prototype.uninterpretedOption = $util.emptyArray;
8260
8401
 
8261
8402
  /**
8262
8403
  * FieldOptions .google.api.fieldBehavior.
@@ -8266,6 +8407,14 @@
8266
8407
  */
8267
8408
  FieldOptions.prototype[".google.api.fieldBehavior"] = $util.emptyArray;
8268
8409
 
8410
+ /**
8411
+ * FieldOptions .google.api.resourceReference.
8412
+ * @member {google.api.IResourceReference|null|undefined} .google.api.resourceReference
8413
+ * @memberof google.protobuf.FieldOptions
8414
+ * @instance
8415
+ */
8416
+ FieldOptions.prototype[".google.api.resourceReference"] = null;
8417
+
8269
8418
  /**
8270
8419
  * FieldOptions .google.api.fieldInfo.
8271
8420
  * @member {google.api.IFieldInfo|null|undefined} .google.api.fieldInfo
@@ -8324,6 +8473,8 @@
8324
8473
  $root.google.protobuf.FieldOptions.EditionDefault.encode(message.editionDefaults[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
8325
8474
  if (message.features != null && Object.hasOwnProperty.call(message, "features"))
8326
8475
  $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
8476
+ if (message.featureSupport != null && Object.hasOwnProperty.call(message, "featureSupport"))
8477
+ $root.google.protobuf.FieldOptions.FeatureSupport.encode(message.featureSupport, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
8327
8478
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
8328
8479
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
8329
8480
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -8427,16 +8578,16 @@
8427
8578
  message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
8428
8579
  break;
8429
8580
  }
8581
+ case 22: {
8582
+ message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.decode(reader, reader.uint32());
8583
+ break;
8584
+ }
8430
8585
  case 999: {
8431
8586
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
8432
8587
  message.uninterpretedOption = [];
8433
8588
  message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32()));
8434
8589
  break;
8435
8590
  }
8436
- case 1055: {
8437
- message[".google.api.resourceReference"] = $root.google.api.ResourceReference.decode(reader, reader.uint32());
8438
- break;
8439
- }
8440
8591
  case 1052: {
8441
8592
  if (!(message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length))
8442
8593
  message[".google.api.fieldBehavior"] = [];
@@ -8448,6 +8599,10 @@
8448
8599
  message[".google.api.fieldBehavior"].push(reader.int32());
8449
8600
  break;
8450
8601
  }
8602
+ case 1055: {
8603
+ message[".google.api.resourceReference"] = $root.google.api.ResourceReference.decode(reader, reader.uint32());
8604
+ break;
8605
+ }
8451
8606
  case 291403980: {
8452
8607
  message[".google.api.fieldInfo"] = $root.google.api.FieldInfo.decode(reader, reader.uint32());
8453
8608
  break;
@@ -8566,6 +8721,11 @@
8566
8721
  if (error)
8567
8722
  return "features." + error;
8568
8723
  }
8724
+ if (message.featureSupport != null && message.hasOwnProperty("featureSupport")) {
8725
+ var error = $root.google.protobuf.FieldOptions.FeatureSupport.verify(message.featureSupport);
8726
+ if (error)
8727
+ return "featureSupport." + error;
8728
+ }
8569
8729
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
8570
8730
  if (!Array.isArray(message.uninterpretedOption))
8571
8731
  return "uninterpretedOption: array expected";
@@ -8575,11 +8735,6 @@
8575
8735
  return "uninterpretedOption." + error;
8576
8736
  }
8577
8737
  }
8578
- if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) {
8579
- var error = $root.google.api.ResourceReference.verify(message[".google.api.resourceReference"]);
8580
- if (error)
8581
- return ".google.api.resourceReference." + error;
8582
- }
8583
8738
  if (message[".google.api.fieldBehavior"] != null && message.hasOwnProperty(".google.api.fieldBehavior")) {
8584
8739
  if (!Array.isArray(message[".google.api.fieldBehavior"]))
8585
8740
  return ".google.api.fieldBehavior: array expected";
@@ -8599,6 +8754,11 @@
8599
8754
  break;
8600
8755
  }
8601
8756
  }
8757
+ if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) {
8758
+ var error = $root.google.api.ResourceReference.verify(message[".google.api.resourceReference"]);
8759
+ if (error)
8760
+ return ".google.api.resourceReference." + error;
8761
+ }
8602
8762
  if (message[".google.api.fieldInfo"] != null && message.hasOwnProperty(".google.api.fieldInfo")) {
8603
8763
  var error = $root.google.api.FieldInfo.verify(message[".google.api.fieldInfo"]);
8604
8764
  if (error)
@@ -8759,6 +8919,11 @@
8759
8919
  throw TypeError(".google.protobuf.FieldOptions.features: object expected");
8760
8920
  message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
8761
8921
  }
8922
+ if (object.featureSupport != null) {
8923
+ if (typeof object.featureSupport !== "object")
8924
+ throw TypeError(".google.protobuf.FieldOptions.featureSupport: object expected");
8925
+ message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.fromObject(object.featureSupport);
8926
+ }
8762
8927
  if (object.uninterpretedOption) {
8763
8928
  if (!Array.isArray(object.uninterpretedOption))
8764
8929
  throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected");
@@ -8769,11 +8934,6 @@
8769
8934
  message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]);
8770
8935
  }
8771
8936
  }
8772
- if (object[".google.api.resourceReference"] != null) {
8773
- if (typeof object[".google.api.resourceReference"] !== "object")
8774
- throw TypeError(".google.protobuf.FieldOptions..google.api.resourceReference: object expected");
8775
- message[".google.api.resourceReference"] = $root.google.api.ResourceReference.fromObject(object[".google.api.resourceReference"]);
8776
- }
8777
8937
  if (object[".google.api.fieldBehavior"]) {
8778
8938
  if (!Array.isArray(object[".google.api.fieldBehavior"]))
8779
8939
  throw TypeError(".google.protobuf.FieldOptions..google.api.fieldBehavior: array expected");
@@ -8823,6 +8983,11 @@
8823
8983
  break;
8824
8984
  }
8825
8985
  }
8986
+ if (object[".google.api.resourceReference"] != null) {
8987
+ if (typeof object[".google.api.resourceReference"] !== "object")
8988
+ throw TypeError(".google.protobuf.FieldOptions..google.api.resourceReference: object expected");
8989
+ message[".google.api.resourceReference"] = $root.google.api.ResourceReference.fromObject(object[".google.api.resourceReference"]);
8990
+ }
8826
8991
  if (object[".google.api.fieldInfo"] != null) {
8827
8992
  if (typeof object[".google.api.fieldInfo"] !== "object")
8828
8993
  throw TypeError(".google.protobuf.FieldOptions..google.api.fieldInfo: object expected");
@@ -8861,6 +9026,7 @@
8861
9026
  object.debugRedact = false;
8862
9027
  object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0;
8863
9028
  object.features = null;
9029
+ object.featureSupport = null;
8864
9030
  object[".google.api.resourceReference"] = null;
8865
9031
  object[".google.api.fieldInfo"] = null;
8866
9032
  }
@@ -8894,6 +9060,8 @@
8894
9060
  }
8895
9061
  if (message.features != null && message.hasOwnProperty("features"))
8896
9062
  object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
9063
+ if (message.featureSupport != null && message.hasOwnProperty("featureSupport"))
9064
+ object.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.toObject(message.featureSupport, options);
8897
9065
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
8898
9066
  object.uninterpretedOption = [];
8899
9067
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -9168,6 +9336,7 @@
9168
9336
  default:
9169
9337
  return "edition: enum value expected";
9170
9338
  case 0:
9339
+ case 900:
9171
9340
  case 998:
9172
9341
  case 999:
9173
9342
  case 1000:
@@ -9209,6 +9378,10 @@
9209
9378
  case 0:
9210
9379
  message.edition = 0;
9211
9380
  break;
9381
+ case "EDITION_LEGACY":
9382
+ case 900:
9383
+ message.edition = 900;
9384
+ break;
9212
9385
  case "EDITION_PROTO2":
9213
9386
  case 998:
9214
9387
  message.edition = 998;
@@ -9308,6 +9481,488 @@
9308
9481
  return EditionDefault;
9309
9482
  })();
9310
9483
 
9484
+ FieldOptions.FeatureSupport = (function() {
9485
+
9486
+ /**
9487
+ * Properties of a FeatureSupport.
9488
+ * @memberof google.protobuf.FieldOptions
9489
+ * @interface IFeatureSupport
9490
+ * @property {google.protobuf.Edition|null} [editionIntroduced] FeatureSupport editionIntroduced
9491
+ * @property {google.protobuf.Edition|null} [editionDeprecated] FeatureSupport editionDeprecated
9492
+ * @property {string|null} [deprecationWarning] FeatureSupport deprecationWarning
9493
+ * @property {google.protobuf.Edition|null} [editionRemoved] FeatureSupport editionRemoved
9494
+ */
9495
+
9496
+ /**
9497
+ * Constructs a new FeatureSupport.
9498
+ * @memberof google.protobuf.FieldOptions
9499
+ * @classdesc Represents a FeatureSupport.
9500
+ * @implements IFeatureSupport
9501
+ * @constructor
9502
+ * @param {google.protobuf.FieldOptions.IFeatureSupport=} [properties] Properties to set
9503
+ */
9504
+ function FeatureSupport(properties) {
9505
+ if (properties)
9506
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
9507
+ if (properties[keys[i]] != null)
9508
+ this[keys[i]] = properties[keys[i]];
9509
+ }
9510
+
9511
+ /**
9512
+ * FeatureSupport editionIntroduced.
9513
+ * @member {google.protobuf.Edition} editionIntroduced
9514
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
9515
+ * @instance
9516
+ */
9517
+ FeatureSupport.prototype.editionIntroduced = 0;
9518
+
9519
+ /**
9520
+ * FeatureSupport editionDeprecated.
9521
+ * @member {google.protobuf.Edition} editionDeprecated
9522
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
9523
+ * @instance
9524
+ */
9525
+ FeatureSupport.prototype.editionDeprecated = 0;
9526
+
9527
+ /**
9528
+ * FeatureSupport deprecationWarning.
9529
+ * @member {string} deprecationWarning
9530
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
9531
+ * @instance
9532
+ */
9533
+ FeatureSupport.prototype.deprecationWarning = "";
9534
+
9535
+ /**
9536
+ * FeatureSupport editionRemoved.
9537
+ * @member {google.protobuf.Edition} editionRemoved
9538
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
9539
+ * @instance
9540
+ */
9541
+ FeatureSupport.prototype.editionRemoved = 0;
9542
+
9543
+ /**
9544
+ * Creates a new FeatureSupport instance using the specified properties.
9545
+ * @function create
9546
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
9547
+ * @static
9548
+ * @param {google.protobuf.FieldOptions.IFeatureSupport=} [properties] Properties to set
9549
+ * @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport instance
9550
+ */
9551
+ FeatureSupport.create = function create(properties) {
9552
+ return new FeatureSupport(properties);
9553
+ };
9554
+
9555
+ /**
9556
+ * Encodes the specified FeatureSupport message. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
9557
+ * @function encode
9558
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
9559
+ * @static
9560
+ * @param {google.protobuf.FieldOptions.IFeatureSupport} message FeatureSupport message or plain object to encode
9561
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9562
+ * @returns {$protobuf.Writer} Writer
9563
+ */
9564
+ FeatureSupport.encode = function encode(message, writer) {
9565
+ if (!writer)
9566
+ writer = $Writer.create();
9567
+ if (message.editionIntroduced != null && Object.hasOwnProperty.call(message, "editionIntroduced"))
9568
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.editionIntroduced);
9569
+ if (message.editionDeprecated != null && Object.hasOwnProperty.call(message, "editionDeprecated"))
9570
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.editionDeprecated);
9571
+ if (message.deprecationWarning != null && Object.hasOwnProperty.call(message, "deprecationWarning"))
9572
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.deprecationWarning);
9573
+ if (message.editionRemoved != null && Object.hasOwnProperty.call(message, "editionRemoved"))
9574
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.editionRemoved);
9575
+ return writer;
9576
+ };
9577
+
9578
+ /**
9579
+ * Encodes the specified FeatureSupport message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
9580
+ * @function encodeDelimited
9581
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
9582
+ * @static
9583
+ * @param {google.protobuf.FieldOptions.IFeatureSupport} message FeatureSupport message or plain object to encode
9584
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9585
+ * @returns {$protobuf.Writer} Writer
9586
+ */
9587
+ FeatureSupport.encodeDelimited = function encodeDelimited(message, writer) {
9588
+ return this.encode(message, writer).ldelim();
9589
+ };
9590
+
9591
+ /**
9592
+ * Decodes a FeatureSupport message from the specified reader or buffer.
9593
+ * @function decode
9594
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
9595
+ * @static
9596
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9597
+ * @param {number} [length] Message length if known beforehand
9598
+ * @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
9599
+ * @throws {Error} If the payload is not a reader or valid buffer
9600
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9601
+ */
9602
+ FeatureSupport.decode = function decode(reader, length, error) {
9603
+ if (!(reader instanceof $Reader))
9604
+ reader = $Reader.create(reader);
9605
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions.FeatureSupport();
9606
+ while (reader.pos < end) {
9607
+ var tag = reader.uint32();
9608
+ if (tag === error)
9609
+ break;
9610
+ switch (tag >>> 3) {
9611
+ case 1: {
9612
+ message.editionIntroduced = reader.int32();
9613
+ break;
9614
+ }
9615
+ case 2: {
9616
+ message.editionDeprecated = reader.int32();
9617
+ break;
9618
+ }
9619
+ case 3: {
9620
+ message.deprecationWarning = reader.string();
9621
+ break;
9622
+ }
9623
+ case 4: {
9624
+ message.editionRemoved = reader.int32();
9625
+ break;
9626
+ }
9627
+ default:
9628
+ reader.skipType(tag & 7);
9629
+ break;
9630
+ }
9631
+ }
9632
+ return message;
9633
+ };
9634
+
9635
+ /**
9636
+ * Decodes a FeatureSupport message from the specified reader or buffer, length delimited.
9637
+ * @function decodeDelimited
9638
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
9639
+ * @static
9640
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9641
+ * @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
9642
+ * @throws {Error} If the payload is not a reader or valid buffer
9643
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9644
+ */
9645
+ FeatureSupport.decodeDelimited = function decodeDelimited(reader) {
9646
+ if (!(reader instanceof $Reader))
9647
+ reader = new $Reader(reader);
9648
+ return this.decode(reader, reader.uint32());
9649
+ };
9650
+
9651
+ /**
9652
+ * Verifies a FeatureSupport message.
9653
+ * @function verify
9654
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
9655
+ * @static
9656
+ * @param {Object.<string,*>} message Plain object to verify
9657
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
9658
+ */
9659
+ FeatureSupport.verify = function verify(message) {
9660
+ if (typeof message !== "object" || message === null)
9661
+ return "object expected";
9662
+ if (message.editionIntroduced != null && message.hasOwnProperty("editionIntroduced"))
9663
+ switch (message.editionIntroduced) {
9664
+ default:
9665
+ return "editionIntroduced: enum value expected";
9666
+ case 0:
9667
+ case 900:
9668
+ case 998:
9669
+ case 999:
9670
+ case 1000:
9671
+ case 1001:
9672
+ case 1:
9673
+ case 2:
9674
+ case 99997:
9675
+ case 99998:
9676
+ case 99999:
9677
+ case 2147483647:
9678
+ break;
9679
+ }
9680
+ if (message.editionDeprecated != null && message.hasOwnProperty("editionDeprecated"))
9681
+ switch (message.editionDeprecated) {
9682
+ default:
9683
+ return "editionDeprecated: enum value expected";
9684
+ case 0:
9685
+ case 900:
9686
+ case 998:
9687
+ case 999:
9688
+ case 1000:
9689
+ case 1001:
9690
+ case 1:
9691
+ case 2:
9692
+ case 99997:
9693
+ case 99998:
9694
+ case 99999:
9695
+ case 2147483647:
9696
+ break;
9697
+ }
9698
+ if (message.deprecationWarning != null && message.hasOwnProperty("deprecationWarning"))
9699
+ if (!$util.isString(message.deprecationWarning))
9700
+ return "deprecationWarning: string expected";
9701
+ if (message.editionRemoved != null && message.hasOwnProperty("editionRemoved"))
9702
+ switch (message.editionRemoved) {
9703
+ default:
9704
+ return "editionRemoved: enum value expected";
9705
+ case 0:
9706
+ case 900:
9707
+ case 998:
9708
+ case 999:
9709
+ case 1000:
9710
+ case 1001:
9711
+ case 1:
9712
+ case 2:
9713
+ case 99997:
9714
+ case 99998:
9715
+ case 99999:
9716
+ case 2147483647:
9717
+ break;
9718
+ }
9719
+ return null;
9720
+ };
9721
+
9722
+ /**
9723
+ * Creates a FeatureSupport message from a plain object. Also converts values to their respective internal types.
9724
+ * @function fromObject
9725
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
9726
+ * @static
9727
+ * @param {Object.<string,*>} object Plain object
9728
+ * @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport
9729
+ */
9730
+ FeatureSupport.fromObject = function fromObject(object) {
9731
+ if (object instanceof $root.google.protobuf.FieldOptions.FeatureSupport)
9732
+ return object;
9733
+ var message = new $root.google.protobuf.FieldOptions.FeatureSupport();
9734
+ switch (object.editionIntroduced) {
9735
+ default:
9736
+ if (typeof object.editionIntroduced === "number") {
9737
+ message.editionIntroduced = object.editionIntroduced;
9738
+ break;
9739
+ }
9740
+ break;
9741
+ case "EDITION_UNKNOWN":
9742
+ case 0:
9743
+ message.editionIntroduced = 0;
9744
+ break;
9745
+ case "EDITION_LEGACY":
9746
+ case 900:
9747
+ message.editionIntroduced = 900;
9748
+ break;
9749
+ case "EDITION_PROTO2":
9750
+ case 998:
9751
+ message.editionIntroduced = 998;
9752
+ break;
9753
+ case "EDITION_PROTO3":
9754
+ case 999:
9755
+ message.editionIntroduced = 999;
9756
+ break;
9757
+ case "EDITION_2023":
9758
+ case 1000:
9759
+ message.editionIntroduced = 1000;
9760
+ break;
9761
+ case "EDITION_2024":
9762
+ case 1001:
9763
+ message.editionIntroduced = 1001;
9764
+ break;
9765
+ case "EDITION_1_TEST_ONLY":
9766
+ case 1:
9767
+ message.editionIntroduced = 1;
9768
+ break;
9769
+ case "EDITION_2_TEST_ONLY":
9770
+ case 2:
9771
+ message.editionIntroduced = 2;
9772
+ break;
9773
+ case "EDITION_99997_TEST_ONLY":
9774
+ case 99997:
9775
+ message.editionIntroduced = 99997;
9776
+ break;
9777
+ case "EDITION_99998_TEST_ONLY":
9778
+ case 99998:
9779
+ message.editionIntroduced = 99998;
9780
+ break;
9781
+ case "EDITION_99999_TEST_ONLY":
9782
+ case 99999:
9783
+ message.editionIntroduced = 99999;
9784
+ break;
9785
+ case "EDITION_MAX":
9786
+ case 2147483647:
9787
+ message.editionIntroduced = 2147483647;
9788
+ break;
9789
+ }
9790
+ switch (object.editionDeprecated) {
9791
+ default:
9792
+ if (typeof object.editionDeprecated === "number") {
9793
+ message.editionDeprecated = object.editionDeprecated;
9794
+ break;
9795
+ }
9796
+ break;
9797
+ case "EDITION_UNKNOWN":
9798
+ case 0:
9799
+ message.editionDeprecated = 0;
9800
+ break;
9801
+ case "EDITION_LEGACY":
9802
+ case 900:
9803
+ message.editionDeprecated = 900;
9804
+ break;
9805
+ case "EDITION_PROTO2":
9806
+ case 998:
9807
+ message.editionDeprecated = 998;
9808
+ break;
9809
+ case "EDITION_PROTO3":
9810
+ case 999:
9811
+ message.editionDeprecated = 999;
9812
+ break;
9813
+ case "EDITION_2023":
9814
+ case 1000:
9815
+ message.editionDeprecated = 1000;
9816
+ break;
9817
+ case "EDITION_2024":
9818
+ case 1001:
9819
+ message.editionDeprecated = 1001;
9820
+ break;
9821
+ case "EDITION_1_TEST_ONLY":
9822
+ case 1:
9823
+ message.editionDeprecated = 1;
9824
+ break;
9825
+ case "EDITION_2_TEST_ONLY":
9826
+ case 2:
9827
+ message.editionDeprecated = 2;
9828
+ break;
9829
+ case "EDITION_99997_TEST_ONLY":
9830
+ case 99997:
9831
+ message.editionDeprecated = 99997;
9832
+ break;
9833
+ case "EDITION_99998_TEST_ONLY":
9834
+ case 99998:
9835
+ message.editionDeprecated = 99998;
9836
+ break;
9837
+ case "EDITION_99999_TEST_ONLY":
9838
+ case 99999:
9839
+ message.editionDeprecated = 99999;
9840
+ break;
9841
+ case "EDITION_MAX":
9842
+ case 2147483647:
9843
+ message.editionDeprecated = 2147483647;
9844
+ break;
9845
+ }
9846
+ if (object.deprecationWarning != null)
9847
+ message.deprecationWarning = String(object.deprecationWarning);
9848
+ switch (object.editionRemoved) {
9849
+ default:
9850
+ if (typeof object.editionRemoved === "number") {
9851
+ message.editionRemoved = object.editionRemoved;
9852
+ break;
9853
+ }
9854
+ break;
9855
+ case "EDITION_UNKNOWN":
9856
+ case 0:
9857
+ message.editionRemoved = 0;
9858
+ break;
9859
+ case "EDITION_LEGACY":
9860
+ case 900:
9861
+ message.editionRemoved = 900;
9862
+ break;
9863
+ case "EDITION_PROTO2":
9864
+ case 998:
9865
+ message.editionRemoved = 998;
9866
+ break;
9867
+ case "EDITION_PROTO3":
9868
+ case 999:
9869
+ message.editionRemoved = 999;
9870
+ break;
9871
+ case "EDITION_2023":
9872
+ case 1000:
9873
+ message.editionRemoved = 1000;
9874
+ break;
9875
+ case "EDITION_2024":
9876
+ case 1001:
9877
+ message.editionRemoved = 1001;
9878
+ break;
9879
+ case "EDITION_1_TEST_ONLY":
9880
+ case 1:
9881
+ message.editionRemoved = 1;
9882
+ break;
9883
+ case "EDITION_2_TEST_ONLY":
9884
+ case 2:
9885
+ message.editionRemoved = 2;
9886
+ break;
9887
+ case "EDITION_99997_TEST_ONLY":
9888
+ case 99997:
9889
+ message.editionRemoved = 99997;
9890
+ break;
9891
+ case "EDITION_99998_TEST_ONLY":
9892
+ case 99998:
9893
+ message.editionRemoved = 99998;
9894
+ break;
9895
+ case "EDITION_99999_TEST_ONLY":
9896
+ case 99999:
9897
+ message.editionRemoved = 99999;
9898
+ break;
9899
+ case "EDITION_MAX":
9900
+ case 2147483647:
9901
+ message.editionRemoved = 2147483647;
9902
+ break;
9903
+ }
9904
+ return message;
9905
+ };
9906
+
9907
+ /**
9908
+ * Creates a plain object from a FeatureSupport message. Also converts values to other types if specified.
9909
+ * @function toObject
9910
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
9911
+ * @static
9912
+ * @param {google.protobuf.FieldOptions.FeatureSupport} message FeatureSupport
9913
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
9914
+ * @returns {Object.<string,*>} Plain object
9915
+ */
9916
+ FeatureSupport.toObject = function toObject(message, options) {
9917
+ if (!options)
9918
+ options = {};
9919
+ var object = {};
9920
+ if (options.defaults) {
9921
+ object.editionIntroduced = options.enums === String ? "EDITION_UNKNOWN" : 0;
9922
+ object.editionDeprecated = options.enums === String ? "EDITION_UNKNOWN" : 0;
9923
+ object.deprecationWarning = "";
9924
+ object.editionRemoved = options.enums === String ? "EDITION_UNKNOWN" : 0;
9925
+ }
9926
+ if (message.editionIntroduced != null && message.hasOwnProperty("editionIntroduced"))
9927
+ object.editionIntroduced = options.enums === String ? $root.google.protobuf.Edition[message.editionIntroduced] === undefined ? message.editionIntroduced : $root.google.protobuf.Edition[message.editionIntroduced] : message.editionIntroduced;
9928
+ if (message.editionDeprecated != null && message.hasOwnProperty("editionDeprecated"))
9929
+ object.editionDeprecated = options.enums === String ? $root.google.protobuf.Edition[message.editionDeprecated] === undefined ? message.editionDeprecated : $root.google.protobuf.Edition[message.editionDeprecated] : message.editionDeprecated;
9930
+ if (message.deprecationWarning != null && message.hasOwnProperty("deprecationWarning"))
9931
+ object.deprecationWarning = message.deprecationWarning;
9932
+ if (message.editionRemoved != null && message.hasOwnProperty("editionRemoved"))
9933
+ object.editionRemoved = options.enums === String ? $root.google.protobuf.Edition[message.editionRemoved] === undefined ? message.editionRemoved : $root.google.protobuf.Edition[message.editionRemoved] : message.editionRemoved;
9934
+ return object;
9935
+ };
9936
+
9937
+ /**
9938
+ * Converts this FeatureSupport to JSON.
9939
+ * @function toJSON
9940
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
9941
+ * @instance
9942
+ * @returns {Object.<string,*>} JSON object
9943
+ */
9944
+ FeatureSupport.prototype.toJSON = function toJSON() {
9945
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9946
+ };
9947
+
9948
+ /**
9949
+ * Gets the default type url for FeatureSupport
9950
+ * @function getTypeUrl
9951
+ * @memberof google.protobuf.FieldOptions.FeatureSupport
9952
+ * @static
9953
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
9954
+ * @returns {string} The default type url
9955
+ */
9956
+ FeatureSupport.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9957
+ if (typeUrlPrefix === undefined) {
9958
+ typeUrlPrefix = "type.googleapis.com";
9959
+ }
9960
+ return typeUrlPrefix + "/google.protobuf.FieldOptions.FeatureSupport";
9961
+ };
9962
+
9963
+ return FeatureSupport;
9964
+ })();
9965
+
9311
9966
  return FieldOptions;
9312
9967
  })();
9313
9968
 
@@ -9900,6 +10555,7 @@
9900
10555
  * @property {boolean|null} [deprecated] EnumValueOptions deprecated
9901
10556
  * @property {google.protobuf.IFeatureSet|null} [features] EnumValueOptions features
9902
10557
  * @property {boolean|null} [debugRedact] EnumValueOptions debugRedact
10558
+ * @property {google.protobuf.FieldOptions.IFeatureSupport|null} [featureSupport] EnumValueOptions featureSupport
9903
10559
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] EnumValueOptions uninterpretedOption
9904
10560
  */
9905
10561
 
@@ -9943,6 +10599,14 @@
9943
10599
  */
9944
10600
  EnumValueOptions.prototype.debugRedact = false;
9945
10601
 
10602
+ /**
10603
+ * EnumValueOptions featureSupport.
10604
+ * @member {google.protobuf.FieldOptions.IFeatureSupport|null|undefined} featureSupport
10605
+ * @memberof google.protobuf.EnumValueOptions
10606
+ * @instance
10607
+ */
10608
+ EnumValueOptions.prototype.featureSupport = null;
10609
+
9946
10610
  /**
9947
10611
  * EnumValueOptions uninterpretedOption.
9948
10612
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -9981,6 +10645,8 @@
9981
10645
  $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
9982
10646
  if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact"))
9983
10647
  writer.uint32(/* id 3, wireType 0 =*/24).bool(message.debugRedact);
10648
+ if (message.featureSupport != null && Object.hasOwnProperty.call(message, "featureSupport"))
10649
+ $root.google.protobuf.FieldOptions.FeatureSupport.encode(message.featureSupport, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
9984
10650
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
9985
10651
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
9986
10652
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -10032,6 +10698,10 @@
10032
10698
  message.debugRedact = reader.bool();
10033
10699
  break;
10034
10700
  }
10701
+ case 4: {
10702
+ message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.decode(reader, reader.uint32());
10703
+ break;
10704
+ }
10035
10705
  case 999: {
10036
10706
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
10037
10707
  message.uninterpretedOption = [];
@@ -10084,6 +10754,11 @@
10084
10754
  if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
10085
10755
  if (typeof message.debugRedact !== "boolean")
10086
10756
  return "debugRedact: boolean expected";
10757
+ if (message.featureSupport != null && message.hasOwnProperty("featureSupport")) {
10758
+ var error = $root.google.protobuf.FieldOptions.FeatureSupport.verify(message.featureSupport);
10759
+ if (error)
10760
+ return "featureSupport." + error;
10761
+ }
10087
10762
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
10088
10763
  if (!Array.isArray(message.uninterpretedOption))
10089
10764
  return "uninterpretedOption: array expected";
@@ -10117,6 +10792,11 @@
10117
10792
  }
10118
10793
  if (object.debugRedact != null)
10119
10794
  message.debugRedact = Boolean(object.debugRedact);
10795
+ if (object.featureSupport != null) {
10796
+ if (typeof object.featureSupport !== "object")
10797
+ throw TypeError(".google.protobuf.EnumValueOptions.featureSupport: object expected");
10798
+ message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.fromObject(object.featureSupport);
10799
+ }
10120
10800
  if (object.uninterpretedOption) {
10121
10801
  if (!Array.isArray(object.uninterpretedOption))
10122
10802
  throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected");
@@ -10149,6 +10829,7 @@
10149
10829
  object.deprecated = false;
10150
10830
  object.features = null;
10151
10831
  object.debugRedact = false;
10832
+ object.featureSupport = null;
10152
10833
  }
10153
10834
  if (message.deprecated != null && message.hasOwnProperty("deprecated"))
10154
10835
  object.deprecated = message.deprecated;
@@ -10156,6 +10837,8 @@
10156
10837
  object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
10157
10838
  if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
10158
10839
  object.debugRedact = message.debugRedact;
10840
+ if (message.featureSupport != null && message.hasOwnProperty("featureSupport"))
10841
+ object.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.toObject(message.featureSupport, options);
10159
10842
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
10160
10843
  object.uninterpretedOption = [];
10161
10844
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -11595,6 +12278,8 @@
11595
12278
  * @property {google.protobuf.FeatureSet.Utf8Validation|null} [utf8Validation] FeatureSet utf8Validation
11596
12279
  * @property {google.protobuf.FeatureSet.MessageEncoding|null} [messageEncoding] FeatureSet messageEncoding
11597
12280
  * @property {google.protobuf.FeatureSet.JsonFormat|null} [jsonFormat] FeatureSet jsonFormat
12281
+ * @property {google.protobuf.FeatureSet.EnforceNamingStyle|null} [enforceNamingStyle] FeatureSet enforceNamingStyle
12282
+ * @property {google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility|null} [defaultSymbolVisibility] FeatureSet defaultSymbolVisibility
11598
12283
  */
11599
12284
 
11600
12285
  /**
@@ -11660,6 +12345,22 @@
11660
12345
  */
11661
12346
  FeatureSet.prototype.jsonFormat = 0;
11662
12347
 
12348
+ /**
12349
+ * FeatureSet enforceNamingStyle.
12350
+ * @member {google.protobuf.FeatureSet.EnforceNamingStyle} enforceNamingStyle
12351
+ * @memberof google.protobuf.FeatureSet
12352
+ * @instance
12353
+ */
12354
+ FeatureSet.prototype.enforceNamingStyle = 0;
12355
+
12356
+ /**
12357
+ * FeatureSet defaultSymbolVisibility.
12358
+ * @member {google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility} defaultSymbolVisibility
12359
+ * @memberof google.protobuf.FeatureSet
12360
+ * @instance
12361
+ */
12362
+ FeatureSet.prototype.defaultSymbolVisibility = 0;
12363
+
11663
12364
  /**
11664
12365
  * Creates a new FeatureSet instance using the specified properties.
11665
12366
  * @function create
@@ -11696,6 +12397,10 @@
11696
12397
  writer.uint32(/* id 5, wireType 0 =*/40).int32(message.messageEncoding);
11697
12398
  if (message.jsonFormat != null && Object.hasOwnProperty.call(message, "jsonFormat"))
11698
12399
  writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jsonFormat);
12400
+ if (message.enforceNamingStyle != null && Object.hasOwnProperty.call(message, "enforceNamingStyle"))
12401
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.enforceNamingStyle);
12402
+ if (message.defaultSymbolVisibility != null && Object.hasOwnProperty.call(message, "defaultSymbolVisibility"))
12403
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.defaultSymbolVisibility);
11699
12404
  return writer;
11700
12405
  };
11701
12406
 
@@ -11756,6 +12461,14 @@
11756
12461
  message.jsonFormat = reader.int32();
11757
12462
  break;
11758
12463
  }
12464
+ case 7: {
12465
+ message.enforceNamingStyle = reader.int32();
12466
+ break;
12467
+ }
12468
+ case 8: {
12469
+ message.defaultSymbolVisibility = reader.int32();
12470
+ break;
12471
+ }
11759
12472
  default:
11760
12473
  reader.skipType(tag & 7);
11761
12474
  break;
@@ -11846,6 +12559,26 @@
11846
12559
  case 2:
11847
12560
  break;
11848
12561
  }
12562
+ if (message.enforceNamingStyle != null && message.hasOwnProperty("enforceNamingStyle"))
12563
+ switch (message.enforceNamingStyle) {
12564
+ default:
12565
+ return "enforceNamingStyle: enum value expected";
12566
+ case 0:
12567
+ case 1:
12568
+ case 2:
12569
+ break;
12570
+ }
12571
+ if (message.defaultSymbolVisibility != null && message.hasOwnProperty("defaultSymbolVisibility"))
12572
+ switch (message.defaultSymbolVisibility) {
12573
+ default:
12574
+ return "defaultSymbolVisibility: enum value expected";
12575
+ case 0:
12576
+ case 1:
12577
+ case 2:
12578
+ case 3:
12579
+ case 4:
12580
+ break;
12581
+ }
11849
12582
  return null;
11850
12583
  };
11851
12584
 
@@ -11985,6 +12718,54 @@
11985
12718
  message.jsonFormat = 2;
11986
12719
  break;
11987
12720
  }
12721
+ switch (object.enforceNamingStyle) {
12722
+ default:
12723
+ if (typeof object.enforceNamingStyle === "number") {
12724
+ message.enforceNamingStyle = object.enforceNamingStyle;
12725
+ break;
12726
+ }
12727
+ break;
12728
+ case "ENFORCE_NAMING_STYLE_UNKNOWN":
12729
+ case 0:
12730
+ message.enforceNamingStyle = 0;
12731
+ break;
12732
+ case "STYLE2024":
12733
+ case 1:
12734
+ message.enforceNamingStyle = 1;
12735
+ break;
12736
+ case "STYLE_LEGACY":
12737
+ case 2:
12738
+ message.enforceNamingStyle = 2;
12739
+ break;
12740
+ }
12741
+ switch (object.defaultSymbolVisibility) {
12742
+ default:
12743
+ if (typeof object.defaultSymbolVisibility === "number") {
12744
+ message.defaultSymbolVisibility = object.defaultSymbolVisibility;
12745
+ break;
12746
+ }
12747
+ break;
12748
+ case "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN":
12749
+ case 0:
12750
+ message.defaultSymbolVisibility = 0;
12751
+ break;
12752
+ case "EXPORT_ALL":
12753
+ case 1:
12754
+ message.defaultSymbolVisibility = 1;
12755
+ break;
12756
+ case "EXPORT_TOP_LEVEL":
12757
+ case 2:
12758
+ message.defaultSymbolVisibility = 2;
12759
+ break;
12760
+ case "LOCAL_ALL":
12761
+ case 3:
12762
+ message.defaultSymbolVisibility = 3;
12763
+ break;
12764
+ case "STRICT":
12765
+ case 4:
12766
+ message.defaultSymbolVisibility = 4;
12767
+ break;
12768
+ }
11988
12769
  return message;
11989
12770
  };
11990
12771
 
@@ -12008,6 +12789,8 @@
12008
12789
  object.utf8Validation = options.enums === String ? "UTF8_VALIDATION_UNKNOWN" : 0;
12009
12790
  object.messageEncoding = options.enums === String ? "MESSAGE_ENCODING_UNKNOWN" : 0;
12010
12791
  object.jsonFormat = options.enums === String ? "JSON_FORMAT_UNKNOWN" : 0;
12792
+ object.enforceNamingStyle = options.enums === String ? "ENFORCE_NAMING_STYLE_UNKNOWN" : 0;
12793
+ object.defaultSymbolVisibility = options.enums === String ? "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN" : 0;
12011
12794
  }
12012
12795
  if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence"))
12013
12796
  object.fieldPresence = options.enums === String ? $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] === undefined ? message.fieldPresence : $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] : message.fieldPresence;
@@ -12021,6 +12804,10 @@
12021
12804
  object.messageEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] === undefined ? message.messageEncoding : $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] : message.messageEncoding;
12022
12805
  if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat"))
12023
12806
  object.jsonFormat = options.enums === String ? $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] === undefined ? message.jsonFormat : $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] : message.jsonFormat;
12807
+ if (message.enforceNamingStyle != null && message.hasOwnProperty("enforceNamingStyle"))
12808
+ object.enforceNamingStyle = options.enums === String ? $root.google.protobuf.FeatureSet.EnforceNamingStyle[message.enforceNamingStyle] === undefined ? message.enforceNamingStyle : $root.google.protobuf.FeatureSet.EnforceNamingStyle[message.enforceNamingStyle] : message.enforceNamingStyle;
12809
+ if (message.defaultSymbolVisibility != null && message.hasOwnProperty("defaultSymbolVisibility"))
12810
+ 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;
12024
12811
  return object;
12025
12812
  };
12026
12813
 
@@ -12148,6 +12935,219 @@
12148
12935
  return values;
12149
12936
  })();
12150
12937
 
12938
+ /**
12939
+ * EnforceNamingStyle enum.
12940
+ * @name google.protobuf.FeatureSet.EnforceNamingStyle
12941
+ * @enum {number}
12942
+ * @property {number} ENFORCE_NAMING_STYLE_UNKNOWN=0 ENFORCE_NAMING_STYLE_UNKNOWN value
12943
+ * @property {number} STYLE2024=1 STYLE2024 value
12944
+ * @property {number} STYLE_LEGACY=2 STYLE_LEGACY value
12945
+ */
12946
+ FeatureSet.EnforceNamingStyle = (function() {
12947
+ var valuesById = {}, values = Object.create(valuesById);
12948
+ values[valuesById[0] = "ENFORCE_NAMING_STYLE_UNKNOWN"] = 0;
12949
+ values[valuesById[1] = "STYLE2024"] = 1;
12950
+ values[valuesById[2] = "STYLE_LEGACY"] = 2;
12951
+ return values;
12952
+ })();
12953
+
12954
+ FeatureSet.VisibilityFeature = (function() {
12955
+
12956
+ /**
12957
+ * Properties of a VisibilityFeature.
12958
+ * @memberof google.protobuf.FeatureSet
12959
+ * @interface IVisibilityFeature
12960
+ */
12961
+
12962
+ /**
12963
+ * Constructs a new VisibilityFeature.
12964
+ * @memberof google.protobuf.FeatureSet
12965
+ * @classdesc Represents a VisibilityFeature.
12966
+ * @implements IVisibilityFeature
12967
+ * @constructor
12968
+ * @param {google.protobuf.FeatureSet.IVisibilityFeature=} [properties] Properties to set
12969
+ */
12970
+ function VisibilityFeature(properties) {
12971
+ if (properties)
12972
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
12973
+ if (properties[keys[i]] != null)
12974
+ this[keys[i]] = properties[keys[i]];
12975
+ }
12976
+
12977
+ /**
12978
+ * Creates a new VisibilityFeature instance using the specified properties.
12979
+ * @function create
12980
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
12981
+ * @static
12982
+ * @param {google.protobuf.FeatureSet.IVisibilityFeature=} [properties] Properties to set
12983
+ * @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature instance
12984
+ */
12985
+ VisibilityFeature.create = function create(properties) {
12986
+ return new VisibilityFeature(properties);
12987
+ };
12988
+
12989
+ /**
12990
+ * Encodes the specified VisibilityFeature message. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
12991
+ * @function encode
12992
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
12993
+ * @static
12994
+ * @param {google.protobuf.FeatureSet.IVisibilityFeature} message VisibilityFeature message or plain object to encode
12995
+ * @param {$protobuf.Writer} [writer] Writer to encode to
12996
+ * @returns {$protobuf.Writer} Writer
12997
+ */
12998
+ VisibilityFeature.encode = function encode(message, writer) {
12999
+ if (!writer)
13000
+ writer = $Writer.create();
13001
+ return writer;
13002
+ };
13003
+
13004
+ /**
13005
+ * Encodes the specified VisibilityFeature message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
13006
+ * @function encodeDelimited
13007
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
13008
+ * @static
13009
+ * @param {google.protobuf.FeatureSet.IVisibilityFeature} message VisibilityFeature message or plain object to encode
13010
+ * @param {$protobuf.Writer} [writer] Writer to encode to
13011
+ * @returns {$protobuf.Writer} Writer
13012
+ */
13013
+ VisibilityFeature.encodeDelimited = function encodeDelimited(message, writer) {
13014
+ return this.encode(message, writer).ldelim();
13015
+ };
13016
+
13017
+ /**
13018
+ * Decodes a VisibilityFeature message from the specified reader or buffer.
13019
+ * @function decode
13020
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
13021
+ * @static
13022
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13023
+ * @param {number} [length] Message length if known beforehand
13024
+ * @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
13025
+ * @throws {Error} If the payload is not a reader or valid buffer
13026
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13027
+ */
13028
+ VisibilityFeature.decode = function decode(reader, length, error) {
13029
+ if (!(reader instanceof $Reader))
13030
+ reader = $Reader.create(reader);
13031
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSet.VisibilityFeature();
13032
+ while (reader.pos < end) {
13033
+ var tag = reader.uint32();
13034
+ if (tag === error)
13035
+ break;
13036
+ switch (tag >>> 3) {
13037
+ default:
13038
+ reader.skipType(tag & 7);
13039
+ break;
13040
+ }
13041
+ }
13042
+ return message;
13043
+ };
13044
+
13045
+ /**
13046
+ * Decodes a VisibilityFeature message from the specified reader or buffer, length delimited.
13047
+ * @function decodeDelimited
13048
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
13049
+ * @static
13050
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13051
+ * @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
13052
+ * @throws {Error} If the payload is not a reader or valid buffer
13053
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13054
+ */
13055
+ VisibilityFeature.decodeDelimited = function decodeDelimited(reader) {
13056
+ if (!(reader instanceof $Reader))
13057
+ reader = new $Reader(reader);
13058
+ return this.decode(reader, reader.uint32());
13059
+ };
13060
+
13061
+ /**
13062
+ * Verifies a VisibilityFeature message.
13063
+ * @function verify
13064
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
13065
+ * @static
13066
+ * @param {Object.<string,*>} message Plain object to verify
13067
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
13068
+ */
13069
+ VisibilityFeature.verify = function verify(message) {
13070
+ if (typeof message !== "object" || message === null)
13071
+ return "object expected";
13072
+ return null;
13073
+ };
13074
+
13075
+ /**
13076
+ * Creates a VisibilityFeature message from a plain object. Also converts values to their respective internal types.
13077
+ * @function fromObject
13078
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
13079
+ * @static
13080
+ * @param {Object.<string,*>} object Plain object
13081
+ * @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature
13082
+ */
13083
+ VisibilityFeature.fromObject = function fromObject(object) {
13084
+ if (object instanceof $root.google.protobuf.FeatureSet.VisibilityFeature)
13085
+ return object;
13086
+ return new $root.google.protobuf.FeatureSet.VisibilityFeature();
13087
+ };
13088
+
13089
+ /**
13090
+ * Creates a plain object from a VisibilityFeature message. Also converts values to other types if specified.
13091
+ * @function toObject
13092
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
13093
+ * @static
13094
+ * @param {google.protobuf.FeatureSet.VisibilityFeature} message VisibilityFeature
13095
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
13096
+ * @returns {Object.<string,*>} Plain object
13097
+ */
13098
+ VisibilityFeature.toObject = function toObject() {
13099
+ return {};
13100
+ };
13101
+
13102
+ /**
13103
+ * Converts this VisibilityFeature to JSON.
13104
+ * @function toJSON
13105
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
13106
+ * @instance
13107
+ * @returns {Object.<string,*>} JSON object
13108
+ */
13109
+ VisibilityFeature.prototype.toJSON = function toJSON() {
13110
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
13111
+ };
13112
+
13113
+ /**
13114
+ * Gets the default type url for VisibilityFeature
13115
+ * @function getTypeUrl
13116
+ * @memberof google.protobuf.FeatureSet.VisibilityFeature
13117
+ * @static
13118
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
13119
+ * @returns {string} The default type url
13120
+ */
13121
+ VisibilityFeature.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
13122
+ if (typeUrlPrefix === undefined) {
13123
+ typeUrlPrefix = "type.googleapis.com";
13124
+ }
13125
+ return typeUrlPrefix + "/google.protobuf.FeatureSet.VisibilityFeature";
13126
+ };
13127
+
13128
+ /**
13129
+ * DefaultSymbolVisibility enum.
13130
+ * @name google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility
13131
+ * @enum {number}
13132
+ * @property {number} DEFAULT_SYMBOL_VISIBILITY_UNKNOWN=0 DEFAULT_SYMBOL_VISIBILITY_UNKNOWN value
13133
+ * @property {number} EXPORT_ALL=1 EXPORT_ALL value
13134
+ * @property {number} EXPORT_TOP_LEVEL=2 EXPORT_TOP_LEVEL value
13135
+ * @property {number} LOCAL_ALL=3 LOCAL_ALL value
13136
+ * @property {number} STRICT=4 STRICT value
13137
+ */
13138
+ VisibilityFeature.DefaultSymbolVisibility = (function() {
13139
+ var valuesById = {}, values = Object.create(valuesById);
13140
+ values[valuesById[0] = "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN"] = 0;
13141
+ values[valuesById[1] = "EXPORT_ALL"] = 1;
13142
+ values[valuesById[2] = "EXPORT_TOP_LEVEL"] = 2;
13143
+ values[valuesById[3] = "LOCAL_ALL"] = 3;
13144
+ values[valuesById[4] = "STRICT"] = 4;
13145
+ return values;
13146
+ })();
13147
+
13148
+ return VisibilityFeature;
13149
+ })();
13150
+
12151
13151
  return FeatureSet;
12152
13152
  })();
12153
13153
 
@@ -12332,6 +13332,7 @@
12332
13332
  default:
12333
13333
  return "minimumEdition: enum value expected";
12334
13334
  case 0:
13335
+ case 900:
12335
13336
  case 998:
12336
13337
  case 999:
12337
13338
  case 1000:
@@ -12349,6 +13350,7 @@
12349
13350
  default:
12350
13351
  return "maximumEdition: enum value expected";
12351
13352
  case 0:
13353
+ case 900:
12352
13354
  case 998:
12353
13355
  case 999:
12354
13356
  case 1000:
@@ -12397,6 +13399,10 @@
12397
13399
  case 0:
12398
13400
  message.minimumEdition = 0;
12399
13401
  break;
13402
+ case "EDITION_LEGACY":
13403
+ case 900:
13404
+ message.minimumEdition = 900;
13405
+ break;
12400
13406
  case "EDITION_PROTO2":
12401
13407
  case 998:
12402
13408
  message.minimumEdition = 998;
@@ -12449,6 +13455,10 @@
12449
13455
  case 0:
12450
13456
  message.maximumEdition = 0;
12451
13457
  break;
13458
+ case "EDITION_LEGACY":
13459
+ case 900:
13460
+ message.maximumEdition = 900;
13461
+ break;
12452
13462
  case "EDITION_PROTO2":
12453
13463
  case 998:
12454
13464
  message.maximumEdition = 998;
@@ -12557,7 +13567,8 @@
12557
13567
  * @memberof google.protobuf.FeatureSetDefaults
12558
13568
  * @interface IFeatureSetEditionDefault
12559
13569
  * @property {google.protobuf.Edition|null} [edition] FeatureSetEditionDefault edition
12560
- * @property {google.protobuf.IFeatureSet|null} [features] FeatureSetEditionDefault features
13570
+ * @property {google.protobuf.IFeatureSet|null} [overridableFeatures] FeatureSetEditionDefault overridableFeatures
13571
+ * @property {google.protobuf.IFeatureSet|null} [fixedFeatures] FeatureSetEditionDefault fixedFeatures
12561
13572
  */
12562
13573
 
12563
13574
  /**
@@ -12584,12 +13595,20 @@
12584
13595
  FeatureSetEditionDefault.prototype.edition = 0;
12585
13596
 
12586
13597
  /**
12587
- * FeatureSetEditionDefault features.
12588
- * @member {google.protobuf.IFeatureSet|null|undefined} features
13598
+ * FeatureSetEditionDefault overridableFeatures.
13599
+ * @member {google.protobuf.IFeatureSet|null|undefined} overridableFeatures
13600
+ * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
13601
+ * @instance
13602
+ */
13603
+ FeatureSetEditionDefault.prototype.overridableFeatures = null;
13604
+
13605
+ /**
13606
+ * FeatureSetEditionDefault fixedFeatures.
13607
+ * @member {google.protobuf.IFeatureSet|null|undefined} fixedFeatures
12589
13608
  * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
12590
13609
  * @instance
12591
13610
  */
12592
- FeatureSetEditionDefault.prototype.features = null;
13611
+ FeatureSetEditionDefault.prototype.fixedFeatures = null;
12593
13612
 
12594
13613
  /**
12595
13614
  * Creates a new FeatureSetEditionDefault instance using the specified properties.
@@ -12615,10 +13634,12 @@
12615
13634
  FeatureSetEditionDefault.encode = function encode(message, writer) {
12616
13635
  if (!writer)
12617
13636
  writer = $Writer.create();
12618
- if (message.features != null && Object.hasOwnProperty.call(message, "features"))
12619
- $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
12620
13637
  if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
12621
13638
  writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition);
13639
+ if (message.overridableFeatures != null && Object.hasOwnProperty.call(message, "overridableFeatures"))
13640
+ $root.google.protobuf.FeatureSet.encode(message.overridableFeatures, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
13641
+ if (message.fixedFeatures != null && Object.hasOwnProperty.call(message, "fixedFeatures"))
13642
+ $root.google.protobuf.FeatureSet.encode(message.fixedFeatures, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
12622
13643
  return writer;
12623
13644
  };
12624
13645
 
@@ -12659,8 +13680,12 @@
12659
13680
  message.edition = reader.int32();
12660
13681
  break;
12661
13682
  }
12662
- case 2: {
12663
- message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
13683
+ case 4: {
13684
+ message.overridableFeatures = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
13685
+ break;
13686
+ }
13687
+ case 5: {
13688
+ message.fixedFeatures = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
12664
13689
  break;
12665
13690
  }
12666
13691
  default:
@@ -12703,6 +13728,7 @@
12703
13728
  default:
12704
13729
  return "edition: enum value expected";
12705
13730
  case 0:
13731
+ case 900:
12706
13732
  case 998:
12707
13733
  case 999:
12708
13734
  case 1000:
@@ -12715,10 +13741,15 @@
12715
13741
  case 2147483647:
12716
13742
  break;
12717
13743
  }
12718
- if (message.features != null && message.hasOwnProperty("features")) {
12719
- var error = $root.google.protobuf.FeatureSet.verify(message.features);
13744
+ if (message.overridableFeatures != null && message.hasOwnProperty("overridableFeatures")) {
13745
+ var error = $root.google.protobuf.FeatureSet.verify(message.overridableFeatures);
13746
+ if (error)
13747
+ return "overridableFeatures." + error;
13748
+ }
13749
+ if (message.fixedFeatures != null && message.hasOwnProperty("fixedFeatures")) {
13750
+ var error = $root.google.protobuf.FeatureSet.verify(message.fixedFeatures);
12720
13751
  if (error)
12721
- return "features." + error;
13752
+ return "fixedFeatures." + error;
12722
13753
  }
12723
13754
  return null;
12724
13755
  };
@@ -12746,6 +13777,10 @@
12746
13777
  case 0:
12747
13778
  message.edition = 0;
12748
13779
  break;
13780
+ case "EDITION_LEGACY":
13781
+ case 900:
13782
+ message.edition = 900;
13783
+ break;
12749
13784
  case "EDITION_PROTO2":
12750
13785
  case 998:
12751
13786
  message.edition = 998;
@@ -12787,10 +13822,15 @@
12787
13822
  message.edition = 2147483647;
12788
13823
  break;
12789
13824
  }
12790
- if (object.features != null) {
12791
- if (typeof object.features !== "object")
12792
- throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.features: object expected");
12793
- message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
13825
+ if (object.overridableFeatures != null) {
13826
+ if (typeof object.overridableFeatures !== "object")
13827
+ throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.overridableFeatures: object expected");
13828
+ message.overridableFeatures = $root.google.protobuf.FeatureSet.fromObject(object.overridableFeatures);
13829
+ }
13830
+ if (object.fixedFeatures != null) {
13831
+ if (typeof object.fixedFeatures !== "object")
13832
+ throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fixedFeatures: object expected");
13833
+ message.fixedFeatures = $root.google.protobuf.FeatureSet.fromObject(object.fixedFeatures);
12794
13834
  }
12795
13835
  return message;
12796
13836
  };
@@ -12809,13 +13849,16 @@
12809
13849
  options = {};
12810
13850
  var object = {};
12811
13851
  if (options.defaults) {
12812
- object.features = null;
12813
13852
  object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
13853
+ object.overridableFeatures = null;
13854
+ object.fixedFeatures = null;
12814
13855
  }
12815
- if (message.features != null && message.hasOwnProperty("features"))
12816
- object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
12817
13856
  if (message.edition != null && message.hasOwnProperty("edition"))
12818
13857
  object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
13858
+ if (message.overridableFeatures != null && message.hasOwnProperty("overridableFeatures"))
13859
+ object.overridableFeatures = $root.google.protobuf.FeatureSet.toObject(message.overridableFeatures, options);
13860
+ if (message.fixedFeatures != null && message.hasOwnProperty("fixedFeatures"))
13861
+ object.fixedFeatures = $root.google.protobuf.FeatureSet.toObject(message.fixedFeatures, options);
12819
13862
  return object;
12820
13863
  };
12821
13864
 
@@ -14030,6 +15073,22 @@
14030
15073
  return GeneratedCodeInfo;
14031
15074
  })();
14032
15075
 
15076
+ /**
15077
+ * SymbolVisibility enum.
15078
+ * @name google.protobuf.SymbolVisibility
15079
+ * @enum {number}
15080
+ * @property {number} VISIBILITY_UNSET=0 VISIBILITY_UNSET value
15081
+ * @property {number} VISIBILITY_LOCAL=1 VISIBILITY_LOCAL value
15082
+ * @property {number} VISIBILITY_EXPORT=2 VISIBILITY_EXPORT value
15083
+ */
15084
+ protobuf.SymbolVisibility = (function() {
15085
+ var valuesById = {}, values = Object.create(valuesById);
15086
+ values[valuesById[0] = "VISIBILITY_UNSET"] = 0;
15087
+ values[valuesById[1] = "VISIBILITY_LOCAL"] = 1;
15088
+ values[valuesById[2] = "VISIBILITY_EXPORT"] = 2;
15089
+ return values;
15090
+ })();
15091
+
14033
15092
  protobuf.Duration = (function() {
14034
15093
 
14035
15094
  /**
@@ -27760,6 +28819,8 @@
27760
28819
  * @property {google.chat.v1.RichLinkMetadata.RichLinkType|null} [richLinkType] RichLinkMetadata richLinkType
27761
28820
  * @property {google.chat.v1.IDriveLinkData|null} [driveLinkData] RichLinkMetadata driveLinkData
27762
28821
  * @property {google.chat.v1.IChatSpaceLinkData|null} [chatSpaceLinkData] RichLinkMetadata chatSpaceLinkData
28822
+ * @property {google.chat.v1.IMeetSpaceLinkData|null} [meetSpaceLinkData] RichLinkMetadata meetSpaceLinkData
28823
+ * @property {google.chat.v1.ICalendarEventLinkData|null} [calendarEventLinkData] RichLinkMetadata calendarEventLinkData
27763
28824
  */
27764
28825
 
27765
28826
  /**
@@ -27809,17 +28870,33 @@
27809
28870
  */
27810
28871
  RichLinkMetadata.prototype.chatSpaceLinkData = null;
27811
28872
 
28873
+ /**
28874
+ * RichLinkMetadata meetSpaceLinkData.
28875
+ * @member {google.chat.v1.IMeetSpaceLinkData|null|undefined} meetSpaceLinkData
28876
+ * @memberof google.chat.v1.RichLinkMetadata
28877
+ * @instance
28878
+ */
28879
+ RichLinkMetadata.prototype.meetSpaceLinkData = null;
28880
+
28881
+ /**
28882
+ * RichLinkMetadata calendarEventLinkData.
28883
+ * @member {google.chat.v1.ICalendarEventLinkData|null|undefined} calendarEventLinkData
28884
+ * @memberof google.chat.v1.RichLinkMetadata
28885
+ * @instance
28886
+ */
28887
+ RichLinkMetadata.prototype.calendarEventLinkData = null;
28888
+
27812
28889
  // OneOf field names bound to virtual getters and setters
27813
28890
  var $oneOfFields;
27814
28891
 
27815
28892
  /**
27816
28893
  * RichLinkMetadata data.
27817
- * @member {"driveLinkData"|"chatSpaceLinkData"|undefined} data
28894
+ * @member {"driveLinkData"|"chatSpaceLinkData"|"meetSpaceLinkData"|"calendarEventLinkData"|undefined} data
27818
28895
  * @memberof google.chat.v1.RichLinkMetadata
27819
28896
  * @instance
27820
28897
  */
27821
28898
  Object.defineProperty(RichLinkMetadata.prototype, "data", {
27822
- get: $util.oneOfGetter($oneOfFields = ["driveLinkData", "chatSpaceLinkData"]),
28899
+ get: $util.oneOfGetter($oneOfFields = ["driveLinkData", "chatSpaceLinkData", "meetSpaceLinkData", "calendarEventLinkData"]),
27823
28900
  set: $util.oneOfSetter($oneOfFields)
27824
28901
  });
27825
28902
 
@@ -27855,6 +28932,10 @@
27855
28932
  $root.google.chat.v1.DriveLinkData.encode(message.driveLinkData, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
27856
28933
  if (message.chatSpaceLinkData != null && Object.hasOwnProperty.call(message, "chatSpaceLinkData"))
27857
28934
  $root.google.chat.v1.ChatSpaceLinkData.encode(message.chatSpaceLinkData, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
28935
+ if (message.meetSpaceLinkData != null && Object.hasOwnProperty.call(message, "meetSpaceLinkData"))
28936
+ $root.google.chat.v1.MeetSpaceLinkData.encode(message.meetSpaceLinkData, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
28937
+ if (message.calendarEventLinkData != null && Object.hasOwnProperty.call(message, "calendarEventLinkData"))
28938
+ $root.google.chat.v1.CalendarEventLinkData.encode(message.calendarEventLinkData, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
27858
28939
  return writer;
27859
28940
  };
27860
28941
 
@@ -27907,6 +28988,14 @@
27907
28988
  message.chatSpaceLinkData = $root.google.chat.v1.ChatSpaceLinkData.decode(reader, reader.uint32());
27908
28989
  break;
27909
28990
  }
28991
+ case 5: {
28992
+ message.meetSpaceLinkData = $root.google.chat.v1.MeetSpaceLinkData.decode(reader, reader.uint32());
28993
+ break;
28994
+ }
28995
+ case 6: {
28996
+ message.calendarEventLinkData = $root.google.chat.v1.CalendarEventLinkData.decode(reader, reader.uint32());
28997
+ break;
28998
+ }
27910
28999
  default:
27911
29000
  reader.skipType(tag & 7);
27912
29001
  break;
@@ -27953,6 +29042,8 @@
27953
29042
  case 0:
27954
29043
  case 1:
27955
29044
  case 2:
29045
+ case 4:
29046
+ case 5:
27956
29047
  break;
27957
29048
  }
27958
29049
  if (message.driveLinkData != null && message.hasOwnProperty("driveLinkData")) {
@@ -27973,6 +29064,26 @@
27973
29064
  return "chatSpaceLinkData." + error;
27974
29065
  }
27975
29066
  }
29067
+ if (message.meetSpaceLinkData != null && message.hasOwnProperty("meetSpaceLinkData")) {
29068
+ if (properties.data === 1)
29069
+ return "data: multiple values";
29070
+ properties.data = 1;
29071
+ {
29072
+ var error = $root.google.chat.v1.MeetSpaceLinkData.verify(message.meetSpaceLinkData);
29073
+ if (error)
29074
+ return "meetSpaceLinkData." + error;
29075
+ }
29076
+ }
29077
+ if (message.calendarEventLinkData != null && message.hasOwnProperty("calendarEventLinkData")) {
29078
+ if (properties.data === 1)
29079
+ return "data: multiple values";
29080
+ properties.data = 1;
29081
+ {
29082
+ var error = $root.google.chat.v1.CalendarEventLinkData.verify(message.calendarEventLinkData);
29083
+ if (error)
29084
+ return "calendarEventLinkData." + error;
29085
+ }
29086
+ }
27976
29087
  return null;
27977
29088
  };
27978
29089
 
@@ -28009,6 +29120,14 @@
28009
29120
  case 2:
28010
29121
  message.richLinkType = 2;
28011
29122
  break;
29123
+ case "MEET_SPACE":
29124
+ case 4:
29125
+ message.richLinkType = 4;
29126
+ break;
29127
+ case "CALENDAR_EVENT":
29128
+ case 5:
29129
+ message.richLinkType = 5;
29130
+ break;
28012
29131
  }
28013
29132
  if (object.driveLinkData != null) {
28014
29133
  if (typeof object.driveLinkData !== "object")
@@ -28020,6 +29139,16 @@
28020
29139
  throw TypeError(".google.chat.v1.RichLinkMetadata.chatSpaceLinkData: object expected");
28021
29140
  message.chatSpaceLinkData = $root.google.chat.v1.ChatSpaceLinkData.fromObject(object.chatSpaceLinkData);
28022
29141
  }
29142
+ if (object.meetSpaceLinkData != null) {
29143
+ if (typeof object.meetSpaceLinkData !== "object")
29144
+ throw TypeError(".google.chat.v1.RichLinkMetadata.meetSpaceLinkData: object expected");
29145
+ message.meetSpaceLinkData = $root.google.chat.v1.MeetSpaceLinkData.fromObject(object.meetSpaceLinkData);
29146
+ }
29147
+ if (object.calendarEventLinkData != null) {
29148
+ if (typeof object.calendarEventLinkData !== "object")
29149
+ throw TypeError(".google.chat.v1.RichLinkMetadata.calendarEventLinkData: object expected");
29150
+ message.calendarEventLinkData = $root.google.chat.v1.CalendarEventLinkData.fromObject(object.calendarEventLinkData);
29151
+ }
28023
29152
  return message;
28024
29153
  };
28025
29154
 
@@ -28054,6 +29183,16 @@
28054
29183
  if (options.oneofs)
28055
29184
  object.data = "chatSpaceLinkData";
28056
29185
  }
29186
+ if (message.meetSpaceLinkData != null && message.hasOwnProperty("meetSpaceLinkData")) {
29187
+ object.meetSpaceLinkData = $root.google.chat.v1.MeetSpaceLinkData.toObject(message.meetSpaceLinkData, options);
29188
+ if (options.oneofs)
29189
+ object.data = "meetSpaceLinkData";
29190
+ }
29191
+ if (message.calendarEventLinkData != null && message.hasOwnProperty("calendarEventLinkData")) {
29192
+ object.calendarEventLinkData = $root.google.chat.v1.CalendarEventLinkData.toObject(message.calendarEventLinkData, options);
29193
+ if (options.oneofs)
29194
+ object.data = "calendarEventLinkData";
29195
+ }
28057
29196
  return object;
28058
29197
  };
28059
29198
 
@@ -28090,12 +29229,16 @@
28090
29229
  * @property {number} RICH_LINK_TYPE_UNSPECIFIED=0 RICH_LINK_TYPE_UNSPECIFIED value
28091
29230
  * @property {number} DRIVE_FILE=1 DRIVE_FILE value
28092
29231
  * @property {number} CHAT_SPACE=2 CHAT_SPACE value
29232
+ * @property {number} MEET_SPACE=4 MEET_SPACE value
29233
+ * @property {number} CALENDAR_EVENT=5 CALENDAR_EVENT value
28093
29234
  */
28094
29235
  RichLinkMetadata.RichLinkType = (function() {
28095
29236
  var valuesById = {}, values = Object.create(valuesById);
28096
29237
  values[valuesById[0] = "RICH_LINK_TYPE_UNSPECIFIED"] = 0;
28097
29238
  values[valuesById[1] = "DRIVE_FILE"] = 1;
28098
29239
  values[valuesById[2] = "CHAT_SPACE"] = 2;
29240
+ values[valuesById[4] = "MEET_SPACE"] = 4;
29241
+ values[valuesById[5] = "CALENDAR_EVENT"] = 5;
28099
29242
  return values;
28100
29243
  })();
28101
29244
 
@@ -28798,6 +29941,574 @@
28798
29941
  return ChatSpaceLinkData;
28799
29942
  })();
28800
29943
 
29944
+ v1.MeetSpaceLinkData = (function() {
29945
+
29946
+ /**
29947
+ * Properties of a MeetSpaceLinkData.
29948
+ * @memberof google.chat.v1
29949
+ * @interface IMeetSpaceLinkData
29950
+ * @property {string|null} [meetingCode] MeetSpaceLinkData meetingCode
29951
+ * @property {google.chat.v1.MeetSpaceLinkData.Type|null} [type] MeetSpaceLinkData type
29952
+ * @property {google.chat.v1.MeetSpaceLinkData.HuddleStatus|null} [huddleStatus] MeetSpaceLinkData huddleStatus
29953
+ */
29954
+
29955
+ /**
29956
+ * Constructs a new MeetSpaceLinkData.
29957
+ * @memberof google.chat.v1
29958
+ * @classdesc Represents a MeetSpaceLinkData.
29959
+ * @implements IMeetSpaceLinkData
29960
+ * @constructor
29961
+ * @param {google.chat.v1.IMeetSpaceLinkData=} [properties] Properties to set
29962
+ */
29963
+ function MeetSpaceLinkData(properties) {
29964
+ if (properties)
29965
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
29966
+ if (properties[keys[i]] != null)
29967
+ this[keys[i]] = properties[keys[i]];
29968
+ }
29969
+
29970
+ /**
29971
+ * MeetSpaceLinkData meetingCode.
29972
+ * @member {string} meetingCode
29973
+ * @memberof google.chat.v1.MeetSpaceLinkData
29974
+ * @instance
29975
+ */
29976
+ MeetSpaceLinkData.prototype.meetingCode = "";
29977
+
29978
+ /**
29979
+ * MeetSpaceLinkData type.
29980
+ * @member {google.chat.v1.MeetSpaceLinkData.Type} type
29981
+ * @memberof google.chat.v1.MeetSpaceLinkData
29982
+ * @instance
29983
+ */
29984
+ MeetSpaceLinkData.prototype.type = 0;
29985
+
29986
+ /**
29987
+ * MeetSpaceLinkData huddleStatus.
29988
+ * @member {google.chat.v1.MeetSpaceLinkData.HuddleStatus} huddleStatus
29989
+ * @memberof google.chat.v1.MeetSpaceLinkData
29990
+ * @instance
29991
+ */
29992
+ MeetSpaceLinkData.prototype.huddleStatus = 0;
29993
+
29994
+ /**
29995
+ * Creates a new MeetSpaceLinkData instance using the specified properties.
29996
+ * @function create
29997
+ * @memberof google.chat.v1.MeetSpaceLinkData
29998
+ * @static
29999
+ * @param {google.chat.v1.IMeetSpaceLinkData=} [properties] Properties to set
30000
+ * @returns {google.chat.v1.MeetSpaceLinkData} MeetSpaceLinkData instance
30001
+ */
30002
+ MeetSpaceLinkData.create = function create(properties) {
30003
+ return new MeetSpaceLinkData(properties);
30004
+ };
30005
+
30006
+ /**
30007
+ * Encodes the specified MeetSpaceLinkData message. Does not implicitly {@link google.chat.v1.MeetSpaceLinkData.verify|verify} messages.
30008
+ * @function encode
30009
+ * @memberof google.chat.v1.MeetSpaceLinkData
30010
+ * @static
30011
+ * @param {google.chat.v1.IMeetSpaceLinkData} message MeetSpaceLinkData message or plain object to encode
30012
+ * @param {$protobuf.Writer} [writer] Writer to encode to
30013
+ * @returns {$protobuf.Writer} Writer
30014
+ */
30015
+ MeetSpaceLinkData.encode = function encode(message, writer) {
30016
+ if (!writer)
30017
+ writer = $Writer.create();
30018
+ if (message.meetingCode != null && Object.hasOwnProperty.call(message, "meetingCode"))
30019
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.meetingCode);
30020
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
30021
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type);
30022
+ if (message.huddleStatus != null && Object.hasOwnProperty.call(message, "huddleStatus"))
30023
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.huddleStatus);
30024
+ return writer;
30025
+ };
30026
+
30027
+ /**
30028
+ * Encodes the specified MeetSpaceLinkData message, length delimited. Does not implicitly {@link google.chat.v1.MeetSpaceLinkData.verify|verify} messages.
30029
+ * @function encodeDelimited
30030
+ * @memberof google.chat.v1.MeetSpaceLinkData
30031
+ * @static
30032
+ * @param {google.chat.v1.IMeetSpaceLinkData} message MeetSpaceLinkData message or plain object to encode
30033
+ * @param {$protobuf.Writer} [writer] Writer to encode to
30034
+ * @returns {$protobuf.Writer} Writer
30035
+ */
30036
+ MeetSpaceLinkData.encodeDelimited = function encodeDelimited(message, writer) {
30037
+ return this.encode(message, writer).ldelim();
30038
+ };
30039
+
30040
+ /**
30041
+ * Decodes a MeetSpaceLinkData message from the specified reader or buffer.
30042
+ * @function decode
30043
+ * @memberof google.chat.v1.MeetSpaceLinkData
30044
+ * @static
30045
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
30046
+ * @param {number} [length] Message length if known beforehand
30047
+ * @returns {google.chat.v1.MeetSpaceLinkData} MeetSpaceLinkData
30048
+ * @throws {Error} If the payload is not a reader or valid buffer
30049
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
30050
+ */
30051
+ MeetSpaceLinkData.decode = function decode(reader, length, error) {
30052
+ if (!(reader instanceof $Reader))
30053
+ reader = $Reader.create(reader);
30054
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.MeetSpaceLinkData();
30055
+ while (reader.pos < end) {
30056
+ var tag = reader.uint32();
30057
+ if (tag === error)
30058
+ break;
30059
+ switch (tag >>> 3) {
30060
+ case 1: {
30061
+ message.meetingCode = reader.string();
30062
+ break;
30063
+ }
30064
+ case 2: {
30065
+ message.type = reader.int32();
30066
+ break;
30067
+ }
30068
+ case 3: {
30069
+ message.huddleStatus = reader.int32();
30070
+ break;
30071
+ }
30072
+ default:
30073
+ reader.skipType(tag & 7);
30074
+ break;
30075
+ }
30076
+ }
30077
+ return message;
30078
+ };
30079
+
30080
+ /**
30081
+ * Decodes a MeetSpaceLinkData message from the specified reader or buffer, length delimited.
30082
+ * @function decodeDelimited
30083
+ * @memberof google.chat.v1.MeetSpaceLinkData
30084
+ * @static
30085
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
30086
+ * @returns {google.chat.v1.MeetSpaceLinkData} MeetSpaceLinkData
30087
+ * @throws {Error} If the payload is not a reader or valid buffer
30088
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
30089
+ */
30090
+ MeetSpaceLinkData.decodeDelimited = function decodeDelimited(reader) {
30091
+ if (!(reader instanceof $Reader))
30092
+ reader = new $Reader(reader);
30093
+ return this.decode(reader, reader.uint32());
30094
+ };
30095
+
30096
+ /**
30097
+ * Verifies a MeetSpaceLinkData message.
30098
+ * @function verify
30099
+ * @memberof google.chat.v1.MeetSpaceLinkData
30100
+ * @static
30101
+ * @param {Object.<string,*>} message Plain object to verify
30102
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
30103
+ */
30104
+ MeetSpaceLinkData.verify = function verify(message) {
30105
+ if (typeof message !== "object" || message === null)
30106
+ return "object expected";
30107
+ if (message.meetingCode != null && message.hasOwnProperty("meetingCode"))
30108
+ if (!$util.isString(message.meetingCode))
30109
+ return "meetingCode: string expected";
30110
+ if (message.type != null && message.hasOwnProperty("type"))
30111
+ switch (message.type) {
30112
+ default:
30113
+ return "type: enum value expected";
30114
+ case 0:
30115
+ case 1:
30116
+ case 2:
30117
+ break;
30118
+ }
30119
+ if (message.huddleStatus != null && message.hasOwnProperty("huddleStatus"))
30120
+ switch (message.huddleStatus) {
30121
+ default:
30122
+ return "huddleStatus: enum value expected";
30123
+ case 0:
30124
+ case 1:
30125
+ case 2:
30126
+ case 3:
30127
+ break;
30128
+ }
30129
+ return null;
30130
+ };
30131
+
30132
+ /**
30133
+ * Creates a MeetSpaceLinkData message from a plain object. Also converts values to their respective internal types.
30134
+ * @function fromObject
30135
+ * @memberof google.chat.v1.MeetSpaceLinkData
30136
+ * @static
30137
+ * @param {Object.<string,*>} object Plain object
30138
+ * @returns {google.chat.v1.MeetSpaceLinkData} MeetSpaceLinkData
30139
+ */
30140
+ MeetSpaceLinkData.fromObject = function fromObject(object) {
30141
+ if (object instanceof $root.google.chat.v1.MeetSpaceLinkData)
30142
+ return object;
30143
+ var message = new $root.google.chat.v1.MeetSpaceLinkData();
30144
+ if (object.meetingCode != null)
30145
+ message.meetingCode = String(object.meetingCode);
30146
+ switch (object.type) {
30147
+ default:
30148
+ if (typeof object.type === "number") {
30149
+ message.type = object.type;
30150
+ break;
30151
+ }
30152
+ break;
30153
+ case "TYPE_UNSPECIFIED":
30154
+ case 0:
30155
+ message.type = 0;
30156
+ break;
30157
+ case "MEETING":
30158
+ case 1:
30159
+ message.type = 1;
30160
+ break;
30161
+ case "HUDDLE":
30162
+ case 2:
30163
+ message.type = 2;
30164
+ break;
30165
+ }
30166
+ switch (object.huddleStatus) {
30167
+ default:
30168
+ if (typeof object.huddleStatus === "number") {
30169
+ message.huddleStatus = object.huddleStatus;
30170
+ break;
30171
+ }
30172
+ break;
30173
+ case "HUDDLE_STATUS_UNSPECIFIED":
30174
+ case 0:
30175
+ message.huddleStatus = 0;
30176
+ break;
30177
+ case "STARTED":
30178
+ case 1:
30179
+ message.huddleStatus = 1;
30180
+ break;
30181
+ case "ENDED":
30182
+ case 2:
30183
+ message.huddleStatus = 2;
30184
+ break;
30185
+ case "MISSED":
30186
+ case 3:
30187
+ message.huddleStatus = 3;
30188
+ break;
30189
+ }
30190
+ return message;
30191
+ };
30192
+
30193
+ /**
30194
+ * Creates a plain object from a MeetSpaceLinkData message. Also converts values to other types if specified.
30195
+ * @function toObject
30196
+ * @memberof google.chat.v1.MeetSpaceLinkData
30197
+ * @static
30198
+ * @param {google.chat.v1.MeetSpaceLinkData} message MeetSpaceLinkData
30199
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
30200
+ * @returns {Object.<string,*>} Plain object
30201
+ */
30202
+ MeetSpaceLinkData.toObject = function toObject(message, options) {
30203
+ if (!options)
30204
+ options = {};
30205
+ var object = {};
30206
+ if (options.defaults) {
30207
+ object.meetingCode = "";
30208
+ object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0;
30209
+ object.huddleStatus = options.enums === String ? "HUDDLE_STATUS_UNSPECIFIED" : 0;
30210
+ }
30211
+ if (message.meetingCode != null && message.hasOwnProperty("meetingCode"))
30212
+ object.meetingCode = message.meetingCode;
30213
+ if (message.type != null && message.hasOwnProperty("type"))
30214
+ object.type = options.enums === String ? $root.google.chat.v1.MeetSpaceLinkData.Type[message.type] === undefined ? message.type : $root.google.chat.v1.MeetSpaceLinkData.Type[message.type] : message.type;
30215
+ if (message.huddleStatus != null && message.hasOwnProperty("huddleStatus"))
30216
+ object.huddleStatus = options.enums === String ? $root.google.chat.v1.MeetSpaceLinkData.HuddleStatus[message.huddleStatus] === undefined ? message.huddleStatus : $root.google.chat.v1.MeetSpaceLinkData.HuddleStatus[message.huddleStatus] : message.huddleStatus;
30217
+ return object;
30218
+ };
30219
+
30220
+ /**
30221
+ * Converts this MeetSpaceLinkData to JSON.
30222
+ * @function toJSON
30223
+ * @memberof google.chat.v1.MeetSpaceLinkData
30224
+ * @instance
30225
+ * @returns {Object.<string,*>} JSON object
30226
+ */
30227
+ MeetSpaceLinkData.prototype.toJSON = function toJSON() {
30228
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
30229
+ };
30230
+
30231
+ /**
30232
+ * Gets the default type url for MeetSpaceLinkData
30233
+ * @function getTypeUrl
30234
+ * @memberof google.chat.v1.MeetSpaceLinkData
30235
+ * @static
30236
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
30237
+ * @returns {string} The default type url
30238
+ */
30239
+ MeetSpaceLinkData.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
30240
+ if (typeUrlPrefix === undefined) {
30241
+ typeUrlPrefix = "type.googleapis.com";
30242
+ }
30243
+ return typeUrlPrefix + "/google.chat.v1.MeetSpaceLinkData";
30244
+ };
30245
+
30246
+ /**
30247
+ * Type enum.
30248
+ * @name google.chat.v1.MeetSpaceLinkData.Type
30249
+ * @enum {number}
30250
+ * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value
30251
+ * @property {number} MEETING=1 MEETING value
30252
+ * @property {number} HUDDLE=2 HUDDLE value
30253
+ */
30254
+ MeetSpaceLinkData.Type = (function() {
30255
+ var valuesById = {}, values = Object.create(valuesById);
30256
+ values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0;
30257
+ values[valuesById[1] = "MEETING"] = 1;
30258
+ values[valuesById[2] = "HUDDLE"] = 2;
30259
+ return values;
30260
+ })();
30261
+
30262
+ /**
30263
+ * HuddleStatus enum.
30264
+ * @name google.chat.v1.MeetSpaceLinkData.HuddleStatus
30265
+ * @enum {number}
30266
+ * @property {number} HUDDLE_STATUS_UNSPECIFIED=0 HUDDLE_STATUS_UNSPECIFIED value
30267
+ * @property {number} STARTED=1 STARTED value
30268
+ * @property {number} ENDED=2 ENDED value
30269
+ * @property {number} MISSED=3 MISSED value
30270
+ */
30271
+ MeetSpaceLinkData.HuddleStatus = (function() {
30272
+ var valuesById = {}, values = Object.create(valuesById);
30273
+ values[valuesById[0] = "HUDDLE_STATUS_UNSPECIFIED"] = 0;
30274
+ values[valuesById[1] = "STARTED"] = 1;
30275
+ values[valuesById[2] = "ENDED"] = 2;
30276
+ values[valuesById[3] = "MISSED"] = 3;
30277
+ return values;
30278
+ })();
30279
+
30280
+ return MeetSpaceLinkData;
30281
+ })();
30282
+
30283
+ v1.CalendarEventLinkData = (function() {
30284
+
30285
+ /**
30286
+ * Properties of a CalendarEventLinkData.
30287
+ * @memberof google.chat.v1
30288
+ * @interface ICalendarEventLinkData
30289
+ * @property {string|null} [calendarId] CalendarEventLinkData calendarId
30290
+ * @property {string|null} [eventId] CalendarEventLinkData eventId
30291
+ */
30292
+
30293
+ /**
30294
+ * Constructs a new CalendarEventLinkData.
30295
+ * @memberof google.chat.v1
30296
+ * @classdesc Represents a CalendarEventLinkData.
30297
+ * @implements ICalendarEventLinkData
30298
+ * @constructor
30299
+ * @param {google.chat.v1.ICalendarEventLinkData=} [properties] Properties to set
30300
+ */
30301
+ function CalendarEventLinkData(properties) {
30302
+ if (properties)
30303
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
30304
+ if (properties[keys[i]] != null)
30305
+ this[keys[i]] = properties[keys[i]];
30306
+ }
30307
+
30308
+ /**
30309
+ * CalendarEventLinkData calendarId.
30310
+ * @member {string} calendarId
30311
+ * @memberof google.chat.v1.CalendarEventLinkData
30312
+ * @instance
30313
+ */
30314
+ CalendarEventLinkData.prototype.calendarId = "";
30315
+
30316
+ /**
30317
+ * CalendarEventLinkData eventId.
30318
+ * @member {string} eventId
30319
+ * @memberof google.chat.v1.CalendarEventLinkData
30320
+ * @instance
30321
+ */
30322
+ CalendarEventLinkData.prototype.eventId = "";
30323
+
30324
+ /**
30325
+ * Creates a new CalendarEventLinkData instance using the specified properties.
30326
+ * @function create
30327
+ * @memberof google.chat.v1.CalendarEventLinkData
30328
+ * @static
30329
+ * @param {google.chat.v1.ICalendarEventLinkData=} [properties] Properties to set
30330
+ * @returns {google.chat.v1.CalendarEventLinkData} CalendarEventLinkData instance
30331
+ */
30332
+ CalendarEventLinkData.create = function create(properties) {
30333
+ return new CalendarEventLinkData(properties);
30334
+ };
30335
+
30336
+ /**
30337
+ * Encodes the specified CalendarEventLinkData message. Does not implicitly {@link google.chat.v1.CalendarEventLinkData.verify|verify} messages.
30338
+ * @function encode
30339
+ * @memberof google.chat.v1.CalendarEventLinkData
30340
+ * @static
30341
+ * @param {google.chat.v1.ICalendarEventLinkData} message CalendarEventLinkData message or plain object to encode
30342
+ * @param {$protobuf.Writer} [writer] Writer to encode to
30343
+ * @returns {$protobuf.Writer} Writer
30344
+ */
30345
+ CalendarEventLinkData.encode = function encode(message, writer) {
30346
+ if (!writer)
30347
+ writer = $Writer.create();
30348
+ if (message.calendarId != null && Object.hasOwnProperty.call(message, "calendarId"))
30349
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.calendarId);
30350
+ if (message.eventId != null && Object.hasOwnProperty.call(message, "eventId"))
30351
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.eventId);
30352
+ return writer;
30353
+ };
30354
+
30355
+ /**
30356
+ * Encodes the specified CalendarEventLinkData message, length delimited. Does not implicitly {@link google.chat.v1.CalendarEventLinkData.verify|verify} messages.
30357
+ * @function encodeDelimited
30358
+ * @memberof google.chat.v1.CalendarEventLinkData
30359
+ * @static
30360
+ * @param {google.chat.v1.ICalendarEventLinkData} message CalendarEventLinkData message or plain object to encode
30361
+ * @param {$protobuf.Writer} [writer] Writer to encode to
30362
+ * @returns {$protobuf.Writer} Writer
30363
+ */
30364
+ CalendarEventLinkData.encodeDelimited = function encodeDelimited(message, writer) {
30365
+ return this.encode(message, writer).ldelim();
30366
+ };
30367
+
30368
+ /**
30369
+ * Decodes a CalendarEventLinkData message from the specified reader or buffer.
30370
+ * @function decode
30371
+ * @memberof google.chat.v1.CalendarEventLinkData
30372
+ * @static
30373
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
30374
+ * @param {number} [length] Message length if known beforehand
30375
+ * @returns {google.chat.v1.CalendarEventLinkData} CalendarEventLinkData
30376
+ * @throws {Error} If the payload is not a reader or valid buffer
30377
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
30378
+ */
30379
+ CalendarEventLinkData.decode = function decode(reader, length, error) {
30380
+ if (!(reader instanceof $Reader))
30381
+ reader = $Reader.create(reader);
30382
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.CalendarEventLinkData();
30383
+ while (reader.pos < end) {
30384
+ var tag = reader.uint32();
30385
+ if (tag === error)
30386
+ break;
30387
+ switch (tag >>> 3) {
30388
+ case 1: {
30389
+ message.calendarId = reader.string();
30390
+ break;
30391
+ }
30392
+ case 2: {
30393
+ message.eventId = reader.string();
30394
+ break;
30395
+ }
30396
+ default:
30397
+ reader.skipType(tag & 7);
30398
+ break;
30399
+ }
30400
+ }
30401
+ return message;
30402
+ };
30403
+
30404
+ /**
30405
+ * Decodes a CalendarEventLinkData message from the specified reader or buffer, length delimited.
30406
+ * @function decodeDelimited
30407
+ * @memberof google.chat.v1.CalendarEventLinkData
30408
+ * @static
30409
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
30410
+ * @returns {google.chat.v1.CalendarEventLinkData} CalendarEventLinkData
30411
+ * @throws {Error} If the payload is not a reader or valid buffer
30412
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
30413
+ */
30414
+ CalendarEventLinkData.decodeDelimited = function decodeDelimited(reader) {
30415
+ if (!(reader instanceof $Reader))
30416
+ reader = new $Reader(reader);
30417
+ return this.decode(reader, reader.uint32());
30418
+ };
30419
+
30420
+ /**
30421
+ * Verifies a CalendarEventLinkData message.
30422
+ * @function verify
30423
+ * @memberof google.chat.v1.CalendarEventLinkData
30424
+ * @static
30425
+ * @param {Object.<string,*>} message Plain object to verify
30426
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
30427
+ */
30428
+ CalendarEventLinkData.verify = function verify(message) {
30429
+ if (typeof message !== "object" || message === null)
30430
+ return "object expected";
30431
+ if (message.calendarId != null && message.hasOwnProperty("calendarId"))
30432
+ if (!$util.isString(message.calendarId))
30433
+ return "calendarId: string expected";
30434
+ if (message.eventId != null && message.hasOwnProperty("eventId"))
30435
+ if (!$util.isString(message.eventId))
30436
+ return "eventId: string expected";
30437
+ return null;
30438
+ };
30439
+
30440
+ /**
30441
+ * Creates a CalendarEventLinkData message from a plain object. Also converts values to their respective internal types.
30442
+ * @function fromObject
30443
+ * @memberof google.chat.v1.CalendarEventLinkData
30444
+ * @static
30445
+ * @param {Object.<string,*>} object Plain object
30446
+ * @returns {google.chat.v1.CalendarEventLinkData} CalendarEventLinkData
30447
+ */
30448
+ CalendarEventLinkData.fromObject = function fromObject(object) {
30449
+ if (object instanceof $root.google.chat.v1.CalendarEventLinkData)
30450
+ return object;
30451
+ var message = new $root.google.chat.v1.CalendarEventLinkData();
30452
+ if (object.calendarId != null)
30453
+ message.calendarId = String(object.calendarId);
30454
+ if (object.eventId != null)
30455
+ message.eventId = String(object.eventId);
30456
+ return message;
30457
+ };
30458
+
30459
+ /**
30460
+ * Creates a plain object from a CalendarEventLinkData message. Also converts values to other types if specified.
30461
+ * @function toObject
30462
+ * @memberof google.chat.v1.CalendarEventLinkData
30463
+ * @static
30464
+ * @param {google.chat.v1.CalendarEventLinkData} message CalendarEventLinkData
30465
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
30466
+ * @returns {Object.<string,*>} Plain object
30467
+ */
30468
+ CalendarEventLinkData.toObject = function toObject(message, options) {
30469
+ if (!options)
30470
+ options = {};
30471
+ var object = {};
30472
+ if (options.defaults) {
30473
+ object.calendarId = "";
30474
+ object.eventId = "";
30475
+ }
30476
+ if (message.calendarId != null && message.hasOwnProperty("calendarId"))
30477
+ object.calendarId = message.calendarId;
30478
+ if (message.eventId != null && message.hasOwnProperty("eventId"))
30479
+ object.eventId = message.eventId;
30480
+ return object;
30481
+ };
30482
+
30483
+ /**
30484
+ * Converts this CalendarEventLinkData to JSON.
30485
+ * @function toJSON
30486
+ * @memberof google.chat.v1.CalendarEventLinkData
30487
+ * @instance
30488
+ * @returns {Object.<string,*>} JSON object
30489
+ */
30490
+ CalendarEventLinkData.prototype.toJSON = function toJSON() {
30491
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
30492
+ };
30493
+
30494
+ /**
30495
+ * Gets the default type url for CalendarEventLinkData
30496
+ * @function getTypeUrl
30497
+ * @memberof google.chat.v1.CalendarEventLinkData
30498
+ * @static
30499
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
30500
+ * @returns {string} The default type url
30501
+ */
30502
+ CalendarEventLinkData.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
30503
+ if (typeUrlPrefix === undefined) {
30504
+ typeUrlPrefix = "type.googleapis.com";
30505
+ }
30506
+ return typeUrlPrefix + "/google.chat.v1.CalendarEventLinkData";
30507
+ };
30508
+
30509
+ return CalendarEventLinkData;
30510
+ })();
30511
+
28801
30512
  /**
28802
30513
  * AnnotationType enum.
28803
30514
  * @name google.chat.v1.AnnotationType
@@ -60802,6 +62513,34 @@
60802
62513
  */
60803
62514
  var api = {};
60804
62515
 
62516
+ /**
62517
+ * FieldBehavior enum.
62518
+ * @name google.api.FieldBehavior
62519
+ * @enum {number}
62520
+ * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value
62521
+ * @property {number} OPTIONAL=1 OPTIONAL value
62522
+ * @property {number} REQUIRED=2 REQUIRED value
62523
+ * @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value
62524
+ * @property {number} INPUT_ONLY=4 INPUT_ONLY value
62525
+ * @property {number} IMMUTABLE=5 IMMUTABLE value
62526
+ * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value
62527
+ * @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value
62528
+ * @property {number} IDENTIFIER=8 IDENTIFIER value
62529
+ */
62530
+ api.FieldBehavior = (function() {
62531
+ var valuesById = {}, values = Object.create(valuesById);
62532
+ values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0;
62533
+ values[valuesById[1] = "OPTIONAL"] = 1;
62534
+ values[valuesById[2] = "REQUIRED"] = 2;
62535
+ values[valuesById[3] = "OUTPUT_ONLY"] = 3;
62536
+ values[valuesById[4] = "INPUT_ONLY"] = 4;
62537
+ values[valuesById[5] = "IMMUTABLE"] = 5;
62538
+ values[valuesById[6] = "UNORDERED_LIST"] = 6;
62539
+ values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7;
62540
+ values[valuesById[8] = "IDENTIFIER"] = 8;
62541
+ return values;
62542
+ })();
62543
+
60805
62544
  api.ResourceDescriptor = (function() {
60806
62545
 
60807
62546
  /**
@@ -61490,34 +63229,6 @@
61490
63229
  return ResourceReference;
61491
63230
  })();
61492
63231
 
61493
- /**
61494
- * FieldBehavior enum.
61495
- * @name google.api.FieldBehavior
61496
- * @enum {number}
61497
- * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value
61498
- * @property {number} OPTIONAL=1 OPTIONAL value
61499
- * @property {number} REQUIRED=2 REQUIRED value
61500
- * @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value
61501
- * @property {number} INPUT_ONLY=4 INPUT_ONLY value
61502
- * @property {number} IMMUTABLE=5 IMMUTABLE value
61503
- * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value
61504
- * @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value
61505
- * @property {number} IDENTIFIER=8 IDENTIFIER value
61506
- */
61507
- api.FieldBehavior = (function() {
61508
- var valuesById = {}, values = Object.create(valuesById);
61509
- values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0;
61510
- values[valuesById[1] = "OPTIONAL"] = 1;
61511
- values[valuesById[2] = "REQUIRED"] = 2;
61512
- values[valuesById[3] = "OUTPUT_ONLY"] = 3;
61513
- values[valuesById[4] = "INPUT_ONLY"] = 4;
61514
- values[valuesById[5] = "IMMUTABLE"] = 5;
61515
- values[valuesById[6] = "UNORDERED_LIST"] = 6;
61516
- values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7;
61517
- values[valuesById[8] = "IDENTIFIER"] = 8;
61518
- return values;
61519
- })();
61520
-
61521
63232
  api.FieldInfo = (function() {
61522
63233
 
61523
63234
  /**
@@ -61525,6 +63236,7 @@
61525
63236
  * @memberof google.api
61526
63237
  * @interface IFieldInfo
61527
63238
  * @property {google.api.FieldInfo.Format|null} [format] FieldInfo format
63239
+ * @property {Array.<google.api.ITypeReference>|null} [referencedTypes] FieldInfo referencedTypes
61528
63240
  */
61529
63241
 
61530
63242
  /**
@@ -61536,6 +63248,7 @@
61536
63248
  * @param {google.api.IFieldInfo=} [properties] Properties to set
61537
63249
  */
61538
63250
  function FieldInfo(properties) {
63251
+ this.referencedTypes = [];
61539
63252
  if (properties)
61540
63253
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
61541
63254
  if (properties[keys[i]] != null)
@@ -61550,6 +63263,14 @@
61550
63263
  */
61551
63264
  FieldInfo.prototype.format = 0;
61552
63265
 
63266
+ /**
63267
+ * FieldInfo referencedTypes.
63268
+ * @member {Array.<google.api.ITypeReference>} referencedTypes
63269
+ * @memberof google.api.FieldInfo
63270
+ * @instance
63271
+ */
63272
+ FieldInfo.prototype.referencedTypes = $util.emptyArray;
63273
+
61553
63274
  /**
61554
63275
  * Creates a new FieldInfo instance using the specified properties.
61555
63276
  * @function create
@@ -61576,6 +63297,9 @@
61576
63297
  writer = $Writer.create();
61577
63298
  if (message.format != null && Object.hasOwnProperty.call(message, "format"))
61578
63299
  writer.uint32(/* id 1, wireType 0 =*/8).int32(message.format);
63300
+ if (message.referencedTypes != null && message.referencedTypes.length)
63301
+ for (var i = 0; i < message.referencedTypes.length; ++i)
63302
+ $root.google.api.TypeReference.encode(message.referencedTypes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
61579
63303
  return writer;
61580
63304
  };
61581
63305
 
@@ -61616,6 +63340,12 @@
61616
63340
  message.format = reader.int32();
61617
63341
  break;
61618
63342
  }
63343
+ case 2: {
63344
+ if (!(message.referencedTypes && message.referencedTypes.length))
63345
+ message.referencedTypes = [];
63346
+ message.referencedTypes.push($root.google.api.TypeReference.decode(reader, reader.uint32()));
63347
+ break;
63348
+ }
61619
63349
  default:
61620
63350
  reader.skipType(tag & 7);
61621
63351
  break;
@@ -61662,6 +63392,15 @@
61662
63392
  case 4:
61663
63393
  break;
61664
63394
  }
63395
+ if (message.referencedTypes != null && message.hasOwnProperty("referencedTypes")) {
63396
+ if (!Array.isArray(message.referencedTypes))
63397
+ return "referencedTypes: array expected";
63398
+ for (var i = 0; i < message.referencedTypes.length; ++i) {
63399
+ var error = $root.google.api.TypeReference.verify(message.referencedTypes[i]);
63400
+ if (error)
63401
+ return "referencedTypes." + error;
63402
+ }
63403
+ }
61665
63404
  return null;
61666
63405
  };
61667
63406
 
@@ -61705,6 +63444,16 @@
61705
63444
  message.format = 4;
61706
63445
  break;
61707
63446
  }
63447
+ if (object.referencedTypes) {
63448
+ if (!Array.isArray(object.referencedTypes))
63449
+ throw TypeError(".google.api.FieldInfo.referencedTypes: array expected");
63450
+ message.referencedTypes = [];
63451
+ for (var i = 0; i < object.referencedTypes.length; ++i) {
63452
+ if (typeof object.referencedTypes[i] !== "object")
63453
+ throw TypeError(".google.api.FieldInfo.referencedTypes: object expected");
63454
+ message.referencedTypes[i] = $root.google.api.TypeReference.fromObject(object.referencedTypes[i]);
63455
+ }
63456
+ }
61708
63457
  return message;
61709
63458
  };
61710
63459
 
@@ -61721,10 +63470,17 @@
61721
63470
  if (!options)
61722
63471
  options = {};
61723
63472
  var object = {};
63473
+ if (options.arrays || options.defaults)
63474
+ object.referencedTypes = [];
61724
63475
  if (options.defaults)
61725
63476
  object.format = options.enums === String ? "FORMAT_UNSPECIFIED" : 0;
61726
63477
  if (message.format != null && message.hasOwnProperty("format"))
61727
63478
  object.format = options.enums === String ? $root.google.api.FieldInfo.Format[message.format] === undefined ? message.format : $root.google.api.FieldInfo.Format[message.format] : message.format;
63479
+ if (message.referencedTypes && message.referencedTypes.length) {
63480
+ object.referencedTypes = [];
63481
+ for (var j = 0; j < message.referencedTypes.length; ++j)
63482
+ object.referencedTypes[j] = $root.google.api.TypeReference.toObject(message.referencedTypes[j], options);
63483
+ }
61728
63484
  return object;
61729
63485
  };
61730
63486
 
@@ -61777,6 +63533,211 @@
61777
63533
  return FieldInfo;
61778
63534
  })();
61779
63535
 
63536
+ api.TypeReference = (function() {
63537
+
63538
+ /**
63539
+ * Properties of a TypeReference.
63540
+ * @memberof google.api
63541
+ * @interface ITypeReference
63542
+ * @property {string|null} [typeName] TypeReference typeName
63543
+ */
63544
+
63545
+ /**
63546
+ * Constructs a new TypeReference.
63547
+ * @memberof google.api
63548
+ * @classdesc Represents a TypeReference.
63549
+ * @implements ITypeReference
63550
+ * @constructor
63551
+ * @param {google.api.ITypeReference=} [properties] Properties to set
63552
+ */
63553
+ function TypeReference(properties) {
63554
+ if (properties)
63555
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
63556
+ if (properties[keys[i]] != null)
63557
+ this[keys[i]] = properties[keys[i]];
63558
+ }
63559
+
63560
+ /**
63561
+ * TypeReference typeName.
63562
+ * @member {string} typeName
63563
+ * @memberof google.api.TypeReference
63564
+ * @instance
63565
+ */
63566
+ TypeReference.prototype.typeName = "";
63567
+
63568
+ /**
63569
+ * Creates a new TypeReference instance using the specified properties.
63570
+ * @function create
63571
+ * @memberof google.api.TypeReference
63572
+ * @static
63573
+ * @param {google.api.ITypeReference=} [properties] Properties to set
63574
+ * @returns {google.api.TypeReference} TypeReference instance
63575
+ */
63576
+ TypeReference.create = function create(properties) {
63577
+ return new TypeReference(properties);
63578
+ };
63579
+
63580
+ /**
63581
+ * Encodes the specified TypeReference message. Does not implicitly {@link google.api.TypeReference.verify|verify} messages.
63582
+ * @function encode
63583
+ * @memberof google.api.TypeReference
63584
+ * @static
63585
+ * @param {google.api.ITypeReference} message TypeReference message or plain object to encode
63586
+ * @param {$protobuf.Writer} [writer] Writer to encode to
63587
+ * @returns {$protobuf.Writer} Writer
63588
+ */
63589
+ TypeReference.encode = function encode(message, writer) {
63590
+ if (!writer)
63591
+ writer = $Writer.create();
63592
+ if (message.typeName != null && Object.hasOwnProperty.call(message, "typeName"))
63593
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.typeName);
63594
+ return writer;
63595
+ };
63596
+
63597
+ /**
63598
+ * Encodes the specified TypeReference message, length delimited. Does not implicitly {@link google.api.TypeReference.verify|verify} messages.
63599
+ * @function encodeDelimited
63600
+ * @memberof google.api.TypeReference
63601
+ * @static
63602
+ * @param {google.api.ITypeReference} message TypeReference message or plain object to encode
63603
+ * @param {$protobuf.Writer} [writer] Writer to encode to
63604
+ * @returns {$protobuf.Writer} Writer
63605
+ */
63606
+ TypeReference.encodeDelimited = function encodeDelimited(message, writer) {
63607
+ return this.encode(message, writer).ldelim();
63608
+ };
63609
+
63610
+ /**
63611
+ * Decodes a TypeReference message from the specified reader or buffer.
63612
+ * @function decode
63613
+ * @memberof google.api.TypeReference
63614
+ * @static
63615
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
63616
+ * @param {number} [length] Message length if known beforehand
63617
+ * @returns {google.api.TypeReference} TypeReference
63618
+ * @throws {Error} If the payload is not a reader or valid buffer
63619
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
63620
+ */
63621
+ TypeReference.decode = function decode(reader, length, error) {
63622
+ if (!(reader instanceof $Reader))
63623
+ reader = $Reader.create(reader);
63624
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.TypeReference();
63625
+ while (reader.pos < end) {
63626
+ var tag = reader.uint32();
63627
+ if (tag === error)
63628
+ break;
63629
+ switch (tag >>> 3) {
63630
+ case 1: {
63631
+ message.typeName = reader.string();
63632
+ break;
63633
+ }
63634
+ default:
63635
+ reader.skipType(tag & 7);
63636
+ break;
63637
+ }
63638
+ }
63639
+ return message;
63640
+ };
63641
+
63642
+ /**
63643
+ * Decodes a TypeReference message from the specified reader or buffer, length delimited.
63644
+ * @function decodeDelimited
63645
+ * @memberof google.api.TypeReference
63646
+ * @static
63647
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
63648
+ * @returns {google.api.TypeReference} TypeReference
63649
+ * @throws {Error} If the payload is not a reader or valid buffer
63650
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
63651
+ */
63652
+ TypeReference.decodeDelimited = function decodeDelimited(reader) {
63653
+ if (!(reader instanceof $Reader))
63654
+ reader = new $Reader(reader);
63655
+ return this.decode(reader, reader.uint32());
63656
+ };
63657
+
63658
+ /**
63659
+ * Verifies a TypeReference message.
63660
+ * @function verify
63661
+ * @memberof google.api.TypeReference
63662
+ * @static
63663
+ * @param {Object.<string,*>} message Plain object to verify
63664
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
63665
+ */
63666
+ TypeReference.verify = function verify(message) {
63667
+ if (typeof message !== "object" || message === null)
63668
+ return "object expected";
63669
+ if (message.typeName != null && message.hasOwnProperty("typeName"))
63670
+ if (!$util.isString(message.typeName))
63671
+ return "typeName: string expected";
63672
+ return null;
63673
+ };
63674
+
63675
+ /**
63676
+ * Creates a TypeReference message from a plain object. Also converts values to their respective internal types.
63677
+ * @function fromObject
63678
+ * @memberof google.api.TypeReference
63679
+ * @static
63680
+ * @param {Object.<string,*>} object Plain object
63681
+ * @returns {google.api.TypeReference} TypeReference
63682
+ */
63683
+ TypeReference.fromObject = function fromObject(object) {
63684
+ if (object instanceof $root.google.api.TypeReference)
63685
+ return object;
63686
+ var message = new $root.google.api.TypeReference();
63687
+ if (object.typeName != null)
63688
+ message.typeName = String(object.typeName);
63689
+ return message;
63690
+ };
63691
+
63692
+ /**
63693
+ * Creates a plain object from a TypeReference message. Also converts values to other types if specified.
63694
+ * @function toObject
63695
+ * @memberof google.api.TypeReference
63696
+ * @static
63697
+ * @param {google.api.TypeReference} message TypeReference
63698
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
63699
+ * @returns {Object.<string,*>} Plain object
63700
+ */
63701
+ TypeReference.toObject = function toObject(message, options) {
63702
+ if (!options)
63703
+ options = {};
63704
+ var object = {};
63705
+ if (options.defaults)
63706
+ object.typeName = "";
63707
+ if (message.typeName != null && message.hasOwnProperty("typeName"))
63708
+ object.typeName = message.typeName;
63709
+ return object;
63710
+ };
63711
+
63712
+ /**
63713
+ * Converts this TypeReference to JSON.
63714
+ * @function toJSON
63715
+ * @memberof google.api.TypeReference
63716
+ * @instance
63717
+ * @returns {Object.<string,*>} JSON object
63718
+ */
63719
+ TypeReference.prototype.toJSON = function toJSON() {
63720
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
63721
+ };
63722
+
63723
+ /**
63724
+ * Gets the default type url for TypeReference
63725
+ * @function getTypeUrl
63726
+ * @memberof google.api.TypeReference
63727
+ * @static
63728
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
63729
+ * @returns {string} The default type url
63730
+ */
63731
+ TypeReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
63732
+ if (typeUrlPrefix === undefined) {
63733
+ typeUrlPrefix = "type.googleapis.com";
63734
+ }
63735
+ return typeUrlPrefix + "/google.api.TypeReference";
63736
+ };
63737
+
63738
+ return TypeReference;
63739
+ })();
63740
+
61780
63741
  api.Http = (function() {
61781
63742
 
61782
63743
  /**
@@ -62754,6 +64715,7 @@
62754
64715
  * @interface ICommonLanguageSettings
62755
64716
  * @property {string|null} [referenceDocsUri] CommonLanguageSettings referenceDocsUri
62756
64717
  * @property {Array.<google.api.ClientLibraryDestination>|null} [destinations] CommonLanguageSettings destinations
64718
+ * @property {google.api.ISelectiveGapicGeneration|null} [selectiveGapicGeneration] CommonLanguageSettings selectiveGapicGeneration
62757
64719
  */
62758
64720
 
62759
64721
  /**
@@ -62788,6 +64750,14 @@
62788
64750
  */
62789
64751
  CommonLanguageSettings.prototype.destinations = $util.emptyArray;
62790
64752
 
64753
+ /**
64754
+ * CommonLanguageSettings selectiveGapicGeneration.
64755
+ * @member {google.api.ISelectiveGapicGeneration|null|undefined} selectiveGapicGeneration
64756
+ * @memberof google.api.CommonLanguageSettings
64757
+ * @instance
64758
+ */
64759
+ CommonLanguageSettings.prototype.selectiveGapicGeneration = null;
64760
+
62791
64761
  /**
62792
64762
  * Creates a new CommonLanguageSettings instance using the specified properties.
62793
64763
  * @function create
@@ -62820,6 +64790,8 @@
62820
64790
  writer.int32(message.destinations[i]);
62821
64791
  writer.ldelim();
62822
64792
  }
64793
+ if (message.selectiveGapicGeneration != null && Object.hasOwnProperty.call(message, "selectiveGapicGeneration"))
64794
+ $root.google.api.SelectiveGapicGeneration.encode(message.selectiveGapicGeneration, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
62823
64795
  return writer;
62824
64796
  };
62825
64797
 
@@ -62871,6 +64843,10 @@
62871
64843
  message.destinations.push(reader.int32());
62872
64844
  break;
62873
64845
  }
64846
+ case 3: {
64847
+ message.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.decode(reader, reader.uint32());
64848
+ break;
64849
+ }
62874
64850
  default:
62875
64851
  reader.skipType(tag & 7);
62876
64852
  break;
@@ -62922,6 +64898,11 @@
62922
64898
  break;
62923
64899
  }
62924
64900
  }
64901
+ if (message.selectiveGapicGeneration != null && message.hasOwnProperty("selectiveGapicGeneration")) {
64902
+ var error = $root.google.api.SelectiveGapicGeneration.verify(message.selectiveGapicGeneration);
64903
+ if (error)
64904
+ return "selectiveGapicGeneration." + error;
64905
+ }
62925
64906
  return null;
62926
64907
  };
62927
64908
 
@@ -62964,6 +64945,11 @@
62964
64945
  break;
62965
64946
  }
62966
64947
  }
64948
+ if (object.selectiveGapicGeneration != null) {
64949
+ if (typeof object.selectiveGapicGeneration !== "object")
64950
+ throw TypeError(".google.api.CommonLanguageSettings.selectiveGapicGeneration: object expected");
64951
+ message.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.fromObject(object.selectiveGapicGeneration);
64952
+ }
62967
64953
  return message;
62968
64954
  };
62969
64955
 
@@ -62982,8 +64968,10 @@
62982
64968
  var object = {};
62983
64969
  if (options.arrays || options.defaults)
62984
64970
  object.destinations = [];
62985
- if (options.defaults)
64971
+ if (options.defaults) {
62986
64972
  object.referenceDocsUri = "";
64973
+ object.selectiveGapicGeneration = null;
64974
+ }
62987
64975
  if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
62988
64976
  object.referenceDocsUri = message.referenceDocsUri;
62989
64977
  if (message.destinations && message.destinations.length) {
@@ -62991,6 +64979,8 @@
62991
64979
  for (var j = 0; j < message.destinations.length; ++j)
62992
64980
  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];
62993
64981
  }
64982
+ if (message.selectiveGapicGeneration != null && message.hasOwnProperty("selectiveGapicGeneration"))
64983
+ object.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.toObject(message.selectiveGapicGeneration, options);
62994
64984
  return object;
62995
64985
  };
62996
64986
 
@@ -64813,6 +66803,7 @@
64813
66803
  * @memberof google.api
64814
66804
  * @interface IPythonSettings
64815
66805
  * @property {google.api.ICommonLanguageSettings|null} [common] PythonSettings common
66806
+ * @property {google.api.PythonSettings.IExperimentalFeatures|null} [experimentalFeatures] PythonSettings experimentalFeatures
64816
66807
  */
64817
66808
 
64818
66809
  /**
@@ -64838,6 +66829,14 @@
64838
66829
  */
64839
66830
  PythonSettings.prototype.common = null;
64840
66831
 
66832
+ /**
66833
+ * PythonSettings experimentalFeatures.
66834
+ * @member {google.api.PythonSettings.IExperimentalFeatures|null|undefined} experimentalFeatures
66835
+ * @memberof google.api.PythonSettings
66836
+ * @instance
66837
+ */
66838
+ PythonSettings.prototype.experimentalFeatures = null;
66839
+
64841
66840
  /**
64842
66841
  * Creates a new PythonSettings instance using the specified properties.
64843
66842
  * @function create
@@ -64864,6 +66863,8 @@
64864
66863
  writer = $Writer.create();
64865
66864
  if (message.common != null && Object.hasOwnProperty.call(message, "common"))
64866
66865
  $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
66866
+ if (message.experimentalFeatures != null && Object.hasOwnProperty.call(message, "experimentalFeatures"))
66867
+ $root.google.api.PythonSettings.ExperimentalFeatures.encode(message.experimentalFeatures, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
64867
66868
  return writer;
64868
66869
  };
64869
66870
 
@@ -64904,6 +66905,10 @@
64904
66905
  message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
64905
66906
  break;
64906
66907
  }
66908
+ case 2: {
66909
+ message.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.decode(reader, reader.uint32());
66910
+ break;
66911
+ }
64907
66912
  default:
64908
66913
  reader.skipType(tag & 7);
64909
66914
  break;
@@ -64944,6 +66949,11 @@
64944
66949
  if (error)
64945
66950
  return "common." + error;
64946
66951
  }
66952
+ if (message.experimentalFeatures != null && message.hasOwnProperty("experimentalFeatures")) {
66953
+ var error = $root.google.api.PythonSettings.ExperimentalFeatures.verify(message.experimentalFeatures);
66954
+ if (error)
66955
+ return "experimentalFeatures." + error;
66956
+ }
64947
66957
  return null;
64948
66958
  };
64949
66959
 
@@ -64964,6 +66974,11 @@
64964
66974
  throw TypeError(".google.api.PythonSettings.common: object expected");
64965
66975
  message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
64966
66976
  }
66977
+ if (object.experimentalFeatures != null) {
66978
+ if (typeof object.experimentalFeatures !== "object")
66979
+ throw TypeError(".google.api.PythonSettings.experimentalFeatures: object expected");
66980
+ message.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.fromObject(object.experimentalFeatures);
66981
+ }
64967
66982
  return message;
64968
66983
  };
64969
66984
 
@@ -64980,10 +66995,14 @@
64980
66995
  if (!options)
64981
66996
  options = {};
64982
66997
  var object = {};
64983
- if (options.defaults)
66998
+ if (options.defaults) {
64984
66999
  object.common = null;
67000
+ object.experimentalFeatures = null;
67001
+ }
64985
67002
  if (message.common != null && message.hasOwnProperty("common"))
64986
67003
  object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
67004
+ if (message.experimentalFeatures != null && message.hasOwnProperty("experimentalFeatures"))
67005
+ object.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.toObject(message.experimentalFeatures, options);
64987
67006
  return object;
64988
67007
  };
64989
67008
 
@@ -65013,6 +67032,258 @@
65013
67032
  return typeUrlPrefix + "/google.api.PythonSettings";
65014
67033
  };
65015
67034
 
67035
+ PythonSettings.ExperimentalFeatures = (function() {
67036
+
67037
+ /**
67038
+ * Properties of an ExperimentalFeatures.
67039
+ * @memberof google.api.PythonSettings
67040
+ * @interface IExperimentalFeatures
67041
+ * @property {boolean|null} [restAsyncIoEnabled] ExperimentalFeatures restAsyncIoEnabled
67042
+ * @property {boolean|null} [protobufPythonicTypesEnabled] ExperimentalFeatures protobufPythonicTypesEnabled
67043
+ * @property {boolean|null} [unversionedPackageDisabled] ExperimentalFeatures unversionedPackageDisabled
67044
+ */
67045
+
67046
+ /**
67047
+ * Constructs a new ExperimentalFeatures.
67048
+ * @memberof google.api.PythonSettings
67049
+ * @classdesc Represents an ExperimentalFeatures.
67050
+ * @implements IExperimentalFeatures
67051
+ * @constructor
67052
+ * @param {google.api.PythonSettings.IExperimentalFeatures=} [properties] Properties to set
67053
+ */
67054
+ function ExperimentalFeatures(properties) {
67055
+ if (properties)
67056
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
67057
+ if (properties[keys[i]] != null)
67058
+ this[keys[i]] = properties[keys[i]];
67059
+ }
67060
+
67061
+ /**
67062
+ * ExperimentalFeatures restAsyncIoEnabled.
67063
+ * @member {boolean} restAsyncIoEnabled
67064
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
67065
+ * @instance
67066
+ */
67067
+ ExperimentalFeatures.prototype.restAsyncIoEnabled = false;
67068
+
67069
+ /**
67070
+ * ExperimentalFeatures protobufPythonicTypesEnabled.
67071
+ * @member {boolean} protobufPythonicTypesEnabled
67072
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
67073
+ * @instance
67074
+ */
67075
+ ExperimentalFeatures.prototype.protobufPythonicTypesEnabled = false;
67076
+
67077
+ /**
67078
+ * ExperimentalFeatures unversionedPackageDisabled.
67079
+ * @member {boolean} unversionedPackageDisabled
67080
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
67081
+ * @instance
67082
+ */
67083
+ ExperimentalFeatures.prototype.unversionedPackageDisabled = false;
67084
+
67085
+ /**
67086
+ * Creates a new ExperimentalFeatures instance using the specified properties.
67087
+ * @function create
67088
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
67089
+ * @static
67090
+ * @param {google.api.PythonSettings.IExperimentalFeatures=} [properties] Properties to set
67091
+ * @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures instance
67092
+ */
67093
+ ExperimentalFeatures.create = function create(properties) {
67094
+ return new ExperimentalFeatures(properties);
67095
+ };
67096
+
67097
+ /**
67098
+ * Encodes the specified ExperimentalFeatures message. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
67099
+ * @function encode
67100
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
67101
+ * @static
67102
+ * @param {google.api.PythonSettings.IExperimentalFeatures} message ExperimentalFeatures message or plain object to encode
67103
+ * @param {$protobuf.Writer} [writer] Writer to encode to
67104
+ * @returns {$protobuf.Writer} Writer
67105
+ */
67106
+ ExperimentalFeatures.encode = function encode(message, writer) {
67107
+ if (!writer)
67108
+ writer = $Writer.create();
67109
+ if (message.restAsyncIoEnabled != null && Object.hasOwnProperty.call(message, "restAsyncIoEnabled"))
67110
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.restAsyncIoEnabled);
67111
+ if (message.protobufPythonicTypesEnabled != null && Object.hasOwnProperty.call(message, "protobufPythonicTypesEnabled"))
67112
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.protobufPythonicTypesEnabled);
67113
+ if (message.unversionedPackageDisabled != null && Object.hasOwnProperty.call(message, "unversionedPackageDisabled"))
67114
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.unversionedPackageDisabled);
67115
+ return writer;
67116
+ };
67117
+
67118
+ /**
67119
+ * Encodes the specified ExperimentalFeatures message, length delimited. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
67120
+ * @function encodeDelimited
67121
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
67122
+ * @static
67123
+ * @param {google.api.PythonSettings.IExperimentalFeatures} message ExperimentalFeatures message or plain object to encode
67124
+ * @param {$protobuf.Writer} [writer] Writer to encode to
67125
+ * @returns {$protobuf.Writer} Writer
67126
+ */
67127
+ ExperimentalFeatures.encodeDelimited = function encodeDelimited(message, writer) {
67128
+ return this.encode(message, writer).ldelim();
67129
+ };
67130
+
67131
+ /**
67132
+ * Decodes an ExperimentalFeatures message from the specified reader or buffer.
67133
+ * @function decode
67134
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
67135
+ * @static
67136
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
67137
+ * @param {number} [length] Message length if known beforehand
67138
+ * @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
67139
+ * @throws {Error} If the payload is not a reader or valid buffer
67140
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
67141
+ */
67142
+ ExperimentalFeatures.decode = function decode(reader, length, error) {
67143
+ if (!(reader instanceof $Reader))
67144
+ reader = $Reader.create(reader);
67145
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings.ExperimentalFeatures();
67146
+ while (reader.pos < end) {
67147
+ var tag = reader.uint32();
67148
+ if (tag === error)
67149
+ break;
67150
+ switch (tag >>> 3) {
67151
+ case 1: {
67152
+ message.restAsyncIoEnabled = reader.bool();
67153
+ break;
67154
+ }
67155
+ case 2: {
67156
+ message.protobufPythonicTypesEnabled = reader.bool();
67157
+ break;
67158
+ }
67159
+ case 3: {
67160
+ message.unversionedPackageDisabled = reader.bool();
67161
+ break;
67162
+ }
67163
+ default:
67164
+ reader.skipType(tag & 7);
67165
+ break;
67166
+ }
67167
+ }
67168
+ return message;
67169
+ };
67170
+
67171
+ /**
67172
+ * Decodes an ExperimentalFeatures message from the specified reader or buffer, length delimited.
67173
+ * @function decodeDelimited
67174
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
67175
+ * @static
67176
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
67177
+ * @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
67178
+ * @throws {Error} If the payload is not a reader or valid buffer
67179
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
67180
+ */
67181
+ ExperimentalFeatures.decodeDelimited = function decodeDelimited(reader) {
67182
+ if (!(reader instanceof $Reader))
67183
+ reader = new $Reader(reader);
67184
+ return this.decode(reader, reader.uint32());
67185
+ };
67186
+
67187
+ /**
67188
+ * Verifies an ExperimentalFeatures message.
67189
+ * @function verify
67190
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
67191
+ * @static
67192
+ * @param {Object.<string,*>} message Plain object to verify
67193
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
67194
+ */
67195
+ ExperimentalFeatures.verify = function verify(message) {
67196
+ if (typeof message !== "object" || message === null)
67197
+ return "object expected";
67198
+ if (message.restAsyncIoEnabled != null && message.hasOwnProperty("restAsyncIoEnabled"))
67199
+ if (typeof message.restAsyncIoEnabled !== "boolean")
67200
+ return "restAsyncIoEnabled: boolean expected";
67201
+ if (message.protobufPythonicTypesEnabled != null && message.hasOwnProperty("protobufPythonicTypesEnabled"))
67202
+ if (typeof message.protobufPythonicTypesEnabled !== "boolean")
67203
+ return "protobufPythonicTypesEnabled: boolean expected";
67204
+ if (message.unversionedPackageDisabled != null && message.hasOwnProperty("unversionedPackageDisabled"))
67205
+ if (typeof message.unversionedPackageDisabled !== "boolean")
67206
+ return "unversionedPackageDisabled: boolean expected";
67207
+ return null;
67208
+ };
67209
+
67210
+ /**
67211
+ * Creates an ExperimentalFeatures message from a plain object. Also converts values to their respective internal types.
67212
+ * @function fromObject
67213
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
67214
+ * @static
67215
+ * @param {Object.<string,*>} object Plain object
67216
+ * @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
67217
+ */
67218
+ ExperimentalFeatures.fromObject = function fromObject(object) {
67219
+ if (object instanceof $root.google.api.PythonSettings.ExperimentalFeatures)
67220
+ return object;
67221
+ var message = new $root.google.api.PythonSettings.ExperimentalFeatures();
67222
+ if (object.restAsyncIoEnabled != null)
67223
+ message.restAsyncIoEnabled = Boolean(object.restAsyncIoEnabled);
67224
+ if (object.protobufPythonicTypesEnabled != null)
67225
+ message.protobufPythonicTypesEnabled = Boolean(object.protobufPythonicTypesEnabled);
67226
+ if (object.unversionedPackageDisabled != null)
67227
+ message.unversionedPackageDisabled = Boolean(object.unversionedPackageDisabled);
67228
+ return message;
67229
+ };
67230
+
67231
+ /**
67232
+ * Creates a plain object from an ExperimentalFeatures message. Also converts values to other types if specified.
67233
+ * @function toObject
67234
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
67235
+ * @static
67236
+ * @param {google.api.PythonSettings.ExperimentalFeatures} message ExperimentalFeatures
67237
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
67238
+ * @returns {Object.<string,*>} Plain object
67239
+ */
67240
+ ExperimentalFeatures.toObject = function toObject(message, options) {
67241
+ if (!options)
67242
+ options = {};
67243
+ var object = {};
67244
+ if (options.defaults) {
67245
+ object.restAsyncIoEnabled = false;
67246
+ object.protobufPythonicTypesEnabled = false;
67247
+ object.unversionedPackageDisabled = false;
67248
+ }
67249
+ if (message.restAsyncIoEnabled != null && message.hasOwnProperty("restAsyncIoEnabled"))
67250
+ object.restAsyncIoEnabled = message.restAsyncIoEnabled;
67251
+ if (message.protobufPythonicTypesEnabled != null && message.hasOwnProperty("protobufPythonicTypesEnabled"))
67252
+ object.protobufPythonicTypesEnabled = message.protobufPythonicTypesEnabled;
67253
+ if (message.unversionedPackageDisabled != null && message.hasOwnProperty("unversionedPackageDisabled"))
67254
+ object.unversionedPackageDisabled = message.unversionedPackageDisabled;
67255
+ return object;
67256
+ };
67257
+
67258
+ /**
67259
+ * Converts this ExperimentalFeatures to JSON.
67260
+ * @function toJSON
67261
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
67262
+ * @instance
67263
+ * @returns {Object.<string,*>} JSON object
67264
+ */
67265
+ ExperimentalFeatures.prototype.toJSON = function toJSON() {
67266
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
67267
+ };
67268
+
67269
+ /**
67270
+ * Gets the default type url for ExperimentalFeatures
67271
+ * @function getTypeUrl
67272
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
67273
+ * @static
67274
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
67275
+ * @returns {string} The default type url
67276
+ */
67277
+ ExperimentalFeatures.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
67278
+ if (typeUrlPrefix === undefined) {
67279
+ typeUrlPrefix = "type.googleapis.com";
67280
+ }
67281
+ return typeUrlPrefix + "/google.api.PythonSettings.ExperimentalFeatures";
67282
+ };
67283
+
67284
+ return ExperimentalFeatures;
67285
+ })();
67286
+
65016
67287
  return PythonSettings;
65017
67288
  })();
65018
67289
 
@@ -65889,6 +68160,7 @@
65889
68160
  * @memberof google.api
65890
68161
  * @interface IGoSettings
65891
68162
  * @property {google.api.ICommonLanguageSettings|null} [common] GoSettings common
68163
+ * @property {Object.<string,string>|null} [renamedServices] GoSettings renamedServices
65892
68164
  */
65893
68165
 
65894
68166
  /**
@@ -65900,6 +68172,7 @@
65900
68172
  * @param {google.api.IGoSettings=} [properties] Properties to set
65901
68173
  */
65902
68174
  function GoSettings(properties) {
68175
+ this.renamedServices = {};
65903
68176
  if (properties)
65904
68177
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
65905
68178
  if (properties[keys[i]] != null)
@@ -65914,6 +68187,14 @@
65914
68187
  */
65915
68188
  GoSettings.prototype.common = null;
65916
68189
 
68190
+ /**
68191
+ * GoSettings renamedServices.
68192
+ * @member {Object.<string,string>} renamedServices
68193
+ * @memberof google.api.GoSettings
68194
+ * @instance
68195
+ */
68196
+ GoSettings.prototype.renamedServices = $util.emptyObject;
68197
+
65917
68198
  /**
65918
68199
  * Creates a new GoSettings instance using the specified properties.
65919
68200
  * @function create
@@ -65940,6 +68221,9 @@
65940
68221
  writer = $Writer.create();
65941
68222
  if (message.common != null && Object.hasOwnProperty.call(message, "common"))
65942
68223
  $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
68224
+ if (message.renamedServices != null && Object.hasOwnProperty.call(message, "renamedServices"))
68225
+ for (var keys = Object.keys(message.renamedServices), i = 0; i < keys.length; ++i)
68226
+ 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();
65943
68227
  return writer;
65944
68228
  };
65945
68229
 
@@ -65970,7 +68254,7 @@
65970
68254
  GoSettings.decode = function decode(reader, length, error) {
65971
68255
  if (!(reader instanceof $Reader))
65972
68256
  reader = $Reader.create(reader);
65973
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings();
68257
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings(), key, value;
65974
68258
  while (reader.pos < end) {
65975
68259
  var tag = reader.uint32();
65976
68260
  if (tag === error)
@@ -65980,6 +68264,29 @@
65980
68264
  message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
65981
68265
  break;
65982
68266
  }
68267
+ case 2: {
68268
+ if (message.renamedServices === $util.emptyObject)
68269
+ message.renamedServices = {};
68270
+ var end2 = reader.uint32() + reader.pos;
68271
+ key = "";
68272
+ value = "";
68273
+ while (reader.pos < end2) {
68274
+ var tag2 = reader.uint32();
68275
+ switch (tag2 >>> 3) {
68276
+ case 1:
68277
+ key = reader.string();
68278
+ break;
68279
+ case 2:
68280
+ value = reader.string();
68281
+ break;
68282
+ default:
68283
+ reader.skipType(tag2 & 7);
68284
+ break;
68285
+ }
68286
+ }
68287
+ message.renamedServices[key] = value;
68288
+ break;
68289
+ }
65983
68290
  default:
65984
68291
  reader.skipType(tag & 7);
65985
68292
  break;
@@ -66020,6 +68327,14 @@
66020
68327
  if (error)
66021
68328
  return "common." + error;
66022
68329
  }
68330
+ if (message.renamedServices != null && message.hasOwnProperty("renamedServices")) {
68331
+ if (!$util.isObject(message.renamedServices))
68332
+ return "renamedServices: object expected";
68333
+ var key = Object.keys(message.renamedServices);
68334
+ for (var i = 0; i < key.length; ++i)
68335
+ if (!$util.isString(message.renamedServices[key[i]]))
68336
+ return "renamedServices: string{k:string} expected";
68337
+ }
66023
68338
  return null;
66024
68339
  };
66025
68340
 
@@ -66040,6 +68355,13 @@
66040
68355
  throw TypeError(".google.api.GoSettings.common: object expected");
66041
68356
  message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
66042
68357
  }
68358
+ if (object.renamedServices) {
68359
+ if (typeof object.renamedServices !== "object")
68360
+ throw TypeError(".google.api.GoSettings.renamedServices: object expected");
68361
+ message.renamedServices = {};
68362
+ for (var keys = Object.keys(object.renamedServices), i = 0; i < keys.length; ++i)
68363
+ message.renamedServices[keys[i]] = String(object.renamedServices[keys[i]]);
68364
+ }
66043
68365
  return message;
66044
68366
  };
66045
68367
 
@@ -66056,10 +68378,18 @@
66056
68378
  if (!options)
66057
68379
  options = {};
66058
68380
  var object = {};
68381
+ if (options.objects || options.defaults)
68382
+ object.renamedServices = {};
66059
68383
  if (options.defaults)
66060
68384
  object.common = null;
66061
68385
  if (message.common != null && message.hasOwnProperty("common"))
66062
68386
  object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
68387
+ var keys2;
68388
+ if (message.renamedServices && (keys2 = Object.keys(message.renamedServices)).length) {
68389
+ object.renamedServices = {};
68390
+ for (var j = 0; j < keys2.length; ++j)
68391
+ object.renamedServices[keys2[j]] = message.renamedServices[keys2[j]];
68392
+ }
66063
68393
  return object;
66064
68394
  };
66065
68395
 
@@ -66698,6 +69028,251 @@
66698
69028
  return values;
66699
69029
  })();
66700
69030
 
69031
+ api.SelectiveGapicGeneration = (function() {
69032
+
69033
+ /**
69034
+ * Properties of a SelectiveGapicGeneration.
69035
+ * @memberof google.api
69036
+ * @interface ISelectiveGapicGeneration
69037
+ * @property {Array.<string>|null} [methods] SelectiveGapicGeneration methods
69038
+ * @property {boolean|null} [generateOmittedAsInternal] SelectiveGapicGeneration generateOmittedAsInternal
69039
+ */
69040
+
69041
+ /**
69042
+ * Constructs a new SelectiveGapicGeneration.
69043
+ * @memberof google.api
69044
+ * @classdesc Represents a SelectiveGapicGeneration.
69045
+ * @implements ISelectiveGapicGeneration
69046
+ * @constructor
69047
+ * @param {google.api.ISelectiveGapicGeneration=} [properties] Properties to set
69048
+ */
69049
+ function SelectiveGapicGeneration(properties) {
69050
+ this.methods = [];
69051
+ if (properties)
69052
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
69053
+ if (properties[keys[i]] != null)
69054
+ this[keys[i]] = properties[keys[i]];
69055
+ }
69056
+
69057
+ /**
69058
+ * SelectiveGapicGeneration methods.
69059
+ * @member {Array.<string>} methods
69060
+ * @memberof google.api.SelectiveGapicGeneration
69061
+ * @instance
69062
+ */
69063
+ SelectiveGapicGeneration.prototype.methods = $util.emptyArray;
69064
+
69065
+ /**
69066
+ * SelectiveGapicGeneration generateOmittedAsInternal.
69067
+ * @member {boolean} generateOmittedAsInternal
69068
+ * @memberof google.api.SelectiveGapicGeneration
69069
+ * @instance
69070
+ */
69071
+ SelectiveGapicGeneration.prototype.generateOmittedAsInternal = false;
69072
+
69073
+ /**
69074
+ * Creates a new SelectiveGapicGeneration instance using the specified properties.
69075
+ * @function create
69076
+ * @memberof google.api.SelectiveGapicGeneration
69077
+ * @static
69078
+ * @param {google.api.ISelectiveGapicGeneration=} [properties] Properties to set
69079
+ * @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration instance
69080
+ */
69081
+ SelectiveGapicGeneration.create = function create(properties) {
69082
+ return new SelectiveGapicGeneration(properties);
69083
+ };
69084
+
69085
+ /**
69086
+ * Encodes the specified SelectiveGapicGeneration message. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
69087
+ * @function encode
69088
+ * @memberof google.api.SelectiveGapicGeneration
69089
+ * @static
69090
+ * @param {google.api.ISelectiveGapicGeneration} message SelectiveGapicGeneration message or plain object to encode
69091
+ * @param {$protobuf.Writer} [writer] Writer to encode to
69092
+ * @returns {$protobuf.Writer} Writer
69093
+ */
69094
+ SelectiveGapicGeneration.encode = function encode(message, writer) {
69095
+ if (!writer)
69096
+ writer = $Writer.create();
69097
+ if (message.methods != null && message.methods.length)
69098
+ for (var i = 0; i < message.methods.length; ++i)
69099
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.methods[i]);
69100
+ if (message.generateOmittedAsInternal != null && Object.hasOwnProperty.call(message, "generateOmittedAsInternal"))
69101
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.generateOmittedAsInternal);
69102
+ return writer;
69103
+ };
69104
+
69105
+ /**
69106
+ * Encodes the specified SelectiveGapicGeneration message, length delimited. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
69107
+ * @function encodeDelimited
69108
+ * @memberof google.api.SelectiveGapicGeneration
69109
+ * @static
69110
+ * @param {google.api.ISelectiveGapicGeneration} message SelectiveGapicGeneration message or plain object to encode
69111
+ * @param {$protobuf.Writer} [writer] Writer to encode to
69112
+ * @returns {$protobuf.Writer} Writer
69113
+ */
69114
+ SelectiveGapicGeneration.encodeDelimited = function encodeDelimited(message, writer) {
69115
+ return this.encode(message, writer).ldelim();
69116
+ };
69117
+
69118
+ /**
69119
+ * Decodes a SelectiveGapicGeneration message from the specified reader or buffer.
69120
+ * @function decode
69121
+ * @memberof google.api.SelectiveGapicGeneration
69122
+ * @static
69123
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
69124
+ * @param {number} [length] Message length if known beforehand
69125
+ * @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
69126
+ * @throws {Error} If the payload is not a reader or valid buffer
69127
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
69128
+ */
69129
+ SelectiveGapicGeneration.decode = function decode(reader, length, error) {
69130
+ if (!(reader instanceof $Reader))
69131
+ reader = $Reader.create(reader);
69132
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.SelectiveGapicGeneration();
69133
+ while (reader.pos < end) {
69134
+ var tag = reader.uint32();
69135
+ if (tag === error)
69136
+ break;
69137
+ switch (tag >>> 3) {
69138
+ case 1: {
69139
+ if (!(message.methods && message.methods.length))
69140
+ message.methods = [];
69141
+ message.methods.push(reader.string());
69142
+ break;
69143
+ }
69144
+ case 2: {
69145
+ message.generateOmittedAsInternal = reader.bool();
69146
+ break;
69147
+ }
69148
+ default:
69149
+ reader.skipType(tag & 7);
69150
+ break;
69151
+ }
69152
+ }
69153
+ return message;
69154
+ };
69155
+
69156
+ /**
69157
+ * Decodes a SelectiveGapicGeneration message from the specified reader or buffer, length delimited.
69158
+ * @function decodeDelimited
69159
+ * @memberof google.api.SelectiveGapicGeneration
69160
+ * @static
69161
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
69162
+ * @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
69163
+ * @throws {Error} If the payload is not a reader or valid buffer
69164
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
69165
+ */
69166
+ SelectiveGapicGeneration.decodeDelimited = function decodeDelimited(reader) {
69167
+ if (!(reader instanceof $Reader))
69168
+ reader = new $Reader(reader);
69169
+ return this.decode(reader, reader.uint32());
69170
+ };
69171
+
69172
+ /**
69173
+ * Verifies a SelectiveGapicGeneration message.
69174
+ * @function verify
69175
+ * @memberof google.api.SelectiveGapicGeneration
69176
+ * @static
69177
+ * @param {Object.<string,*>} message Plain object to verify
69178
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
69179
+ */
69180
+ SelectiveGapicGeneration.verify = function verify(message) {
69181
+ if (typeof message !== "object" || message === null)
69182
+ return "object expected";
69183
+ if (message.methods != null && message.hasOwnProperty("methods")) {
69184
+ if (!Array.isArray(message.methods))
69185
+ return "methods: array expected";
69186
+ for (var i = 0; i < message.methods.length; ++i)
69187
+ if (!$util.isString(message.methods[i]))
69188
+ return "methods: string[] expected";
69189
+ }
69190
+ if (message.generateOmittedAsInternal != null && message.hasOwnProperty("generateOmittedAsInternal"))
69191
+ if (typeof message.generateOmittedAsInternal !== "boolean")
69192
+ return "generateOmittedAsInternal: boolean expected";
69193
+ return null;
69194
+ };
69195
+
69196
+ /**
69197
+ * Creates a SelectiveGapicGeneration message from a plain object. Also converts values to their respective internal types.
69198
+ * @function fromObject
69199
+ * @memberof google.api.SelectiveGapicGeneration
69200
+ * @static
69201
+ * @param {Object.<string,*>} object Plain object
69202
+ * @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
69203
+ */
69204
+ SelectiveGapicGeneration.fromObject = function fromObject(object) {
69205
+ if (object instanceof $root.google.api.SelectiveGapicGeneration)
69206
+ return object;
69207
+ var message = new $root.google.api.SelectiveGapicGeneration();
69208
+ if (object.methods) {
69209
+ if (!Array.isArray(object.methods))
69210
+ throw TypeError(".google.api.SelectiveGapicGeneration.methods: array expected");
69211
+ message.methods = [];
69212
+ for (var i = 0; i < object.methods.length; ++i)
69213
+ message.methods[i] = String(object.methods[i]);
69214
+ }
69215
+ if (object.generateOmittedAsInternal != null)
69216
+ message.generateOmittedAsInternal = Boolean(object.generateOmittedAsInternal);
69217
+ return message;
69218
+ };
69219
+
69220
+ /**
69221
+ * Creates a plain object from a SelectiveGapicGeneration message. Also converts values to other types if specified.
69222
+ * @function toObject
69223
+ * @memberof google.api.SelectiveGapicGeneration
69224
+ * @static
69225
+ * @param {google.api.SelectiveGapicGeneration} message SelectiveGapicGeneration
69226
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
69227
+ * @returns {Object.<string,*>} Plain object
69228
+ */
69229
+ SelectiveGapicGeneration.toObject = function toObject(message, options) {
69230
+ if (!options)
69231
+ options = {};
69232
+ var object = {};
69233
+ if (options.arrays || options.defaults)
69234
+ object.methods = [];
69235
+ if (options.defaults)
69236
+ object.generateOmittedAsInternal = false;
69237
+ if (message.methods && message.methods.length) {
69238
+ object.methods = [];
69239
+ for (var j = 0; j < message.methods.length; ++j)
69240
+ object.methods[j] = message.methods[j];
69241
+ }
69242
+ if (message.generateOmittedAsInternal != null && message.hasOwnProperty("generateOmittedAsInternal"))
69243
+ object.generateOmittedAsInternal = message.generateOmittedAsInternal;
69244
+ return object;
69245
+ };
69246
+
69247
+ /**
69248
+ * Converts this SelectiveGapicGeneration to JSON.
69249
+ * @function toJSON
69250
+ * @memberof google.api.SelectiveGapicGeneration
69251
+ * @instance
69252
+ * @returns {Object.<string,*>} JSON object
69253
+ */
69254
+ SelectiveGapicGeneration.prototype.toJSON = function toJSON() {
69255
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
69256
+ };
69257
+
69258
+ /**
69259
+ * Gets the default type url for SelectiveGapicGeneration
69260
+ * @function getTypeUrl
69261
+ * @memberof google.api.SelectiveGapicGeneration
69262
+ * @static
69263
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
69264
+ * @returns {string} The default type url
69265
+ */
69266
+ SelectiveGapicGeneration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
69267
+ if (typeUrlPrefix === undefined) {
69268
+ typeUrlPrefix = "type.googleapis.com";
69269
+ }
69270
+ return typeUrlPrefix + "/google.api.SelectiveGapicGeneration";
69271
+ };
69272
+
69273
+ return SelectiveGapicGeneration;
69274
+ })();
69275
+
66701
69276
  /**
66702
69277
  * LaunchStage enum.
66703
69278
  * @name google.api.LaunchStage