@google-apps/chat 0.16.0 → 0.18.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
@@ -47971,6 +49682,7 @@
47971
49682
  * @property {boolean|null} [adminInstalled] Space adminInstalled
47972
49683
  * @property {google.chat.v1.Space.IMembershipCount|null} [membershipCount] Space membershipCount
47973
49684
  * @property {google.chat.v1.Space.IAccessSettings|null} [accessSettings] Space accessSettings
49685
+ * @property {string|null} [customer] Space customer
47974
49686
  * @property {string|null} [spaceUri] Space spaceUri
47975
49687
  * @property {google.chat.v1.Space.PredefinedPermissionSettings|null} [predefinedPermissionSettings] Space predefinedPermissionSettings
47976
49688
  * @property {google.chat.v1.Space.IPermissionSettings|null} [permissionSettings] Space permissionSettings
@@ -48120,6 +49832,14 @@
48120
49832
  */
48121
49833
  Space.prototype.accessSettings = null;
48122
49834
 
49835
+ /**
49836
+ * Space customer.
49837
+ * @member {string|null|undefined} customer
49838
+ * @memberof google.chat.v1.Space
49839
+ * @instance
49840
+ */
49841
+ Space.prototype.customer = null;
49842
+
48123
49843
  /**
48124
49844
  * Space spaceUri.
48125
49845
  * @member {string} spaceUri
@@ -48155,6 +49875,12 @@
48155
49875
  // OneOf field names bound to virtual getters and setters
48156
49876
  var $oneOfFields;
48157
49877
 
49878
+ // Virtual OneOf for proto3 optional field
49879
+ Object.defineProperty(Space.prototype, "_customer", {
49880
+ get: $util.oneOfGetter($oneOfFields = ["customer"]),
49881
+ set: $util.oneOfSetter($oneOfFields)
49882
+ });
49883
+
48158
49884
  /**
48159
49885
  * Space spacePermissionSettings.
48160
49886
  * @member {"predefinedPermissionSettings"|"permissionSettings"|undefined} spacePermissionSettings
@@ -48222,6 +49948,8 @@
48222
49948
  $root.google.chat.v1.Space.MembershipCount.encode(message.membershipCount, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
48223
49949
  if (message.accessSettings != null && Object.hasOwnProperty.call(message, "accessSettings"))
48224
49950
  $root.google.chat.v1.Space.AccessSettings.encode(message.accessSettings, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
49951
+ if (message.customer != null && Object.hasOwnProperty.call(message, "customer"))
49952
+ writer.uint32(/* id 24, wireType 2 =*/194).string(message.customer);
48225
49953
  if (message.spaceUri != null && Object.hasOwnProperty.call(message, "spaceUri"))
48226
49954
  writer.uint32(/* id 25, wireType 2 =*/202).string(message.spaceUri);
48227
49955
  if (message.predefinedPermissionSettings != null && Object.hasOwnProperty.call(message, "predefinedPermissionSettings"))
@@ -48330,6 +50058,10 @@
48330
50058
  message.accessSettings = $root.google.chat.v1.Space.AccessSettings.decode(reader, reader.uint32());
48331
50059
  break;
48332
50060
  }
50061
+ case 24: {
50062
+ message.customer = reader.string();
50063
+ break;
50064
+ }
48333
50065
  case 25: {
48334
50066
  message.spaceUri = reader.string();
48335
50067
  break;
@@ -48466,6 +50198,11 @@
48466
50198
  if (error)
48467
50199
  return "accessSettings." + error;
48468
50200
  }
50201
+ if (message.customer != null && message.hasOwnProperty("customer")) {
50202
+ properties._customer = 1;
50203
+ if (!$util.isString(message.customer))
50204
+ return "customer: string expected";
50205
+ }
48469
50206
  if (message.spaceUri != null && message.hasOwnProperty("spaceUri"))
48470
50207
  if (!$util.isString(message.spaceUri))
48471
50208
  return "spaceUri: string expected";
@@ -48637,6 +50374,8 @@
48637
50374
  throw TypeError(".google.chat.v1.Space.accessSettings: object expected");
48638
50375
  message.accessSettings = $root.google.chat.v1.Space.AccessSettings.fromObject(object.accessSettings);
48639
50376
  }
50377
+ if (object.customer != null)
50378
+ message.customer = String(object.customer);
48640
50379
  if (object.spaceUri != null)
48641
50380
  message.spaceUri = String(object.spaceUri);
48642
50381
  switch (object.predefinedPermissionSettings) {
@@ -48737,6 +50476,11 @@
48737
50476
  object.membershipCount = $root.google.chat.v1.Space.MembershipCount.toObject(message.membershipCount, options);
48738
50477
  if (message.accessSettings != null && message.hasOwnProperty("accessSettings"))
48739
50478
  object.accessSettings = $root.google.chat.v1.Space.AccessSettings.toObject(message.accessSettings, options);
50479
+ if (message.customer != null && message.hasOwnProperty("customer")) {
50480
+ object.customer = message.customer;
50481
+ if (options.oneofs)
50482
+ object._customer = "customer";
50483
+ }
48740
50484
  if (message.spaceUri != null && message.hasOwnProperty("spaceUri"))
48741
50485
  object.spaceUri = message.spaceUri;
48742
50486
  if (message.predefinedPermissionSettings != null && message.hasOwnProperty("predefinedPermissionSettings")) {
@@ -60802,6 +62546,34 @@
60802
62546
  */
60803
62547
  var api = {};
60804
62548
 
62549
+ /**
62550
+ * FieldBehavior enum.
62551
+ * @name google.api.FieldBehavior
62552
+ * @enum {number}
62553
+ * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value
62554
+ * @property {number} OPTIONAL=1 OPTIONAL value
62555
+ * @property {number} REQUIRED=2 REQUIRED value
62556
+ * @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value
62557
+ * @property {number} INPUT_ONLY=4 INPUT_ONLY value
62558
+ * @property {number} IMMUTABLE=5 IMMUTABLE value
62559
+ * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value
62560
+ * @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value
62561
+ * @property {number} IDENTIFIER=8 IDENTIFIER value
62562
+ */
62563
+ api.FieldBehavior = (function() {
62564
+ var valuesById = {}, values = Object.create(valuesById);
62565
+ values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0;
62566
+ values[valuesById[1] = "OPTIONAL"] = 1;
62567
+ values[valuesById[2] = "REQUIRED"] = 2;
62568
+ values[valuesById[3] = "OUTPUT_ONLY"] = 3;
62569
+ values[valuesById[4] = "INPUT_ONLY"] = 4;
62570
+ values[valuesById[5] = "IMMUTABLE"] = 5;
62571
+ values[valuesById[6] = "UNORDERED_LIST"] = 6;
62572
+ values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7;
62573
+ values[valuesById[8] = "IDENTIFIER"] = 8;
62574
+ return values;
62575
+ })();
62576
+
60805
62577
  api.ResourceDescriptor = (function() {
60806
62578
 
60807
62579
  /**
@@ -61490,34 +63262,6 @@
61490
63262
  return ResourceReference;
61491
63263
  })();
61492
63264
 
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
63265
  api.FieldInfo = (function() {
61522
63266
 
61523
63267
  /**
@@ -61525,6 +63269,7 @@
61525
63269
  * @memberof google.api
61526
63270
  * @interface IFieldInfo
61527
63271
  * @property {google.api.FieldInfo.Format|null} [format] FieldInfo format
63272
+ * @property {Array.<google.api.ITypeReference>|null} [referencedTypes] FieldInfo referencedTypes
61528
63273
  */
61529
63274
 
61530
63275
  /**
@@ -61536,6 +63281,7 @@
61536
63281
  * @param {google.api.IFieldInfo=} [properties] Properties to set
61537
63282
  */
61538
63283
  function FieldInfo(properties) {
63284
+ this.referencedTypes = [];
61539
63285
  if (properties)
61540
63286
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
61541
63287
  if (properties[keys[i]] != null)
@@ -61550,6 +63296,14 @@
61550
63296
  */
61551
63297
  FieldInfo.prototype.format = 0;
61552
63298
 
63299
+ /**
63300
+ * FieldInfo referencedTypes.
63301
+ * @member {Array.<google.api.ITypeReference>} referencedTypes
63302
+ * @memberof google.api.FieldInfo
63303
+ * @instance
63304
+ */
63305
+ FieldInfo.prototype.referencedTypes = $util.emptyArray;
63306
+
61553
63307
  /**
61554
63308
  * Creates a new FieldInfo instance using the specified properties.
61555
63309
  * @function create
@@ -61576,6 +63330,9 @@
61576
63330
  writer = $Writer.create();
61577
63331
  if (message.format != null && Object.hasOwnProperty.call(message, "format"))
61578
63332
  writer.uint32(/* id 1, wireType 0 =*/8).int32(message.format);
63333
+ if (message.referencedTypes != null && message.referencedTypes.length)
63334
+ for (var i = 0; i < message.referencedTypes.length; ++i)
63335
+ $root.google.api.TypeReference.encode(message.referencedTypes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
61579
63336
  return writer;
61580
63337
  };
61581
63338
 
@@ -61616,6 +63373,12 @@
61616
63373
  message.format = reader.int32();
61617
63374
  break;
61618
63375
  }
63376
+ case 2: {
63377
+ if (!(message.referencedTypes && message.referencedTypes.length))
63378
+ message.referencedTypes = [];
63379
+ message.referencedTypes.push($root.google.api.TypeReference.decode(reader, reader.uint32()));
63380
+ break;
63381
+ }
61619
63382
  default:
61620
63383
  reader.skipType(tag & 7);
61621
63384
  break;
@@ -61662,6 +63425,15 @@
61662
63425
  case 4:
61663
63426
  break;
61664
63427
  }
63428
+ if (message.referencedTypes != null && message.hasOwnProperty("referencedTypes")) {
63429
+ if (!Array.isArray(message.referencedTypes))
63430
+ return "referencedTypes: array expected";
63431
+ for (var i = 0; i < message.referencedTypes.length; ++i) {
63432
+ var error = $root.google.api.TypeReference.verify(message.referencedTypes[i]);
63433
+ if (error)
63434
+ return "referencedTypes." + error;
63435
+ }
63436
+ }
61665
63437
  return null;
61666
63438
  };
61667
63439
 
@@ -61705,6 +63477,16 @@
61705
63477
  message.format = 4;
61706
63478
  break;
61707
63479
  }
63480
+ if (object.referencedTypes) {
63481
+ if (!Array.isArray(object.referencedTypes))
63482
+ throw TypeError(".google.api.FieldInfo.referencedTypes: array expected");
63483
+ message.referencedTypes = [];
63484
+ for (var i = 0; i < object.referencedTypes.length; ++i) {
63485
+ if (typeof object.referencedTypes[i] !== "object")
63486
+ throw TypeError(".google.api.FieldInfo.referencedTypes: object expected");
63487
+ message.referencedTypes[i] = $root.google.api.TypeReference.fromObject(object.referencedTypes[i]);
63488
+ }
63489
+ }
61708
63490
  return message;
61709
63491
  };
61710
63492
 
@@ -61721,10 +63503,17 @@
61721
63503
  if (!options)
61722
63504
  options = {};
61723
63505
  var object = {};
63506
+ if (options.arrays || options.defaults)
63507
+ object.referencedTypes = [];
61724
63508
  if (options.defaults)
61725
63509
  object.format = options.enums === String ? "FORMAT_UNSPECIFIED" : 0;
61726
63510
  if (message.format != null && message.hasOwnProperty("format"))
61727
63511
  object.format = options.enums === String ? $root.google.api.FieldInfo.Format[message.format] === undefined ? message.format : $root.google.api.FieldInfo.Format[message.format] : message.format;
63512
+ if (message.referencedTypes && message.referencedTypes.length) {
63513
+ object.referencedTypes = [];
63514
+ for (var j = 0; j < message.referencedTypes.length; ++j)
63515
+ object.referencedTypes[j] = $root.google.api.TypeReference.toObject(message.referencedTypes[j], options);
63516
+ }
61728
63517
  return object;
61729
63518
  };
61730
63519
 
@@ -61777,6 +63566,211 @@
61777
63566
  return FieldInfo;
61778
63567
  })();
61779
63568
 
63569
+ api.TypeReference = (function() {
63570
+
63571
+ /**
63572
+ * Properties of a TypeReference.
63573
+ * @memberof google.api
63574
+ * @interface ITypeReference
63575
+ * @property {string|null} [typeName] TypeReference typeName
63576
+ */
63577
+
63578
+ /**
63579
+ * Constructs a new TypeReference.
63580
+ * @memberof google.api
63581
+ * @classdesc Represents a TypeReference.
63582
+ * @implements ITypeReference
63583
+ * @constructor
63584
+ * @param {google.api.ITypeReference=} [properties] Properties to set
63585
+ */
63586
+ function TypeReference(properties) {
63587
+ if (properties)
63588
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
63589
+ if (properties[keys[i]] != null)
63590
+ this[keys[i]] = properties[keys[i]];
63591
+ }
63592
+
63593
+ /**
63594
+ * TypeReference typeName.
63595
+ * @member {string} typeName
63596
+ * @memberof google.api.TypeReference
63597
+ * @instance
63598
+ */
63599
+ TypeReference.prototype.typeName = "";
63600
+
63601
+ /**
63602
+ * Creates a new TypeReference instance using the specified properties.
63603
+ * @function create
63604
+ * @memberof google.api.TypeReference
63605
+ * @static
63606
+ * @param {google.api.ITypeReference=} [properties] Properties to set
63607
+ * @returns {google.api.TypeReference} TypeReference instance
63608
+ */
63609
+ TypeReference.create = function create(properties) {
63610
+ return new TypeReference(properties);
63611
+ };
63612
+
63613
+ /**
63614
+ * Encodes the specified TypeReference message. Does not implicitly {@link google.api.TypeReference.verify|verify} messages.
63615
+ * @function encode
63616
+ * @memberof google.api.TypeReference
63617
+ * @static
63618
+ * @param {google.api.ITypeReference} message TypeReference message or plain object to encode
63619
+ * @param {$protobuf.Writer} [writer] Writer to encode to
63620
+ * @returns {$protobuf.Writer} Writer
63621
+ */
63622
+ TypeReference.encode = function encode(message, writer) {
63623
+ if (!writer)
63624
+ writer = $Writer.create();
63625
+ if (message.typeName != null && Object.hasOwnProperty.call(message, "typeName"))
63626
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.typeName);
63627
+ return writer;
63628
+ };
63629
+
63630
+ /**
63631
+ * Encodes the specified TypeReference message, length delimited. Does not implicitly {@link google.api.TypeReference.verify|verify} messages.
63632
+ * @function encodeDelimited
63633
+ * @memberof google.api.TypeReference
63634
+ * @static
63635
+ * @param {google.api.ITypeReference} message TypeReference message or plain object to encode
63636
+ * @param {$protobuf.Writer} [writer] Writer to encode to
63637
+ * @returns {$protobuf.Writer} Writer
63638
+ */
63639
+ TypeReference.encodeDelimited = function encodeDelimited(message, writer) {
63640
+ return this.encode(message, writer).ldelim();
63641
+ };
63642
+
63643
+ /**
63644
+ * Decodes a TypeReference message from the specified reader or buffer.
63645
+ * @function decode
63646
+ * @memberof google.api.TypeReference
63647
+ * @static
63648
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
63649
+ * @param {number} [length] Message length if known beforehand
63650
+ * @returns {google.api.TypeReference} TypeReference
63651
+ * @throws {Error} If the payload is not a reader or valid buffer
63652
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
63653
+ */
63654
+ TypeReference.decode = function decode(reader, length, error) {
63655
+ if (!(reader instanceof $Reader))
63656
+ reader = $Reader.create(reader);
63657
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.TypeReference();
63658
+ while (reader.pos < end) {
63659
+ var tag = reader.uint32();
63660
+ if (tag === error)
63661
+ break;
63662
+ switch (tag >>> 3) {
63663
+ case 1: {
63664
+ message.typeName = reader.string();
63665
+ break;
63666
+ }
63667
+ default:
63668
+ reader.skipType(tag & 7);
63669
+ break;
63670
+ }
63671
+ }
63672
+ return message;
63673
+ };
63674
+
63675
+ /**
63676
+ * Decodes a TypeReference message from the specified reader or buffer, length delimited.
63677
+ * @function decodeDelimited
63678
+ * @memberof google.api.TypeReference
63679
+ * @static
63680
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
63681
+ * @returns {google.api.TypeReference} TypeReference
63682
+ * @throws {Error} If the payload is not a reader or valid buffer
63683
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
63684
+ */
63685
+ TypeReference.decodeDelimited = function decodeDelimited(reader) {
63686
+ if (!(reader instanceof $Reader))
63687
+ reader = new $Reader(reader);
63688
+ return this.decode(reader, reader.uint32());
63689
+ };
63690
+
63691
+ /**
63692
+ * Verifies a TypeReference message.
63693
+ * @function verify
63694
+ * @memberof google.api.TypeReference
63695
+ * @static
63696
+ * @param {Object.<string,*>} message Plain object to verify
63697
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
63698
+ */
63699
+ TypeReference.verify = function verify(message) {
63700
+ if (typeof message !== "object" || message === null)
63701
+ return "object expected";
63702
+ if (message.typeName != null && message.hasOwnProperty("typeName"))
63703
+ if (!$util.isString(message.typeName))
63704
+ return "typeName: string expected";
63705
+ return null;
63706
+ };
63707
+
63708
+ /**
63709
+ * Creates a TypeReference message from a plain object. Also converts values to their respective internal types.
63710
+ * @function fromObject
63711
+ * @memberof google.api.TypeReference
63712
+ * @static
63713
+ * @param {Object.<string,*>} object Plain object
63714
+ * @returns {google.api.TypeReference} TypeReference
63715
+ */
63716
+ TypeReference.fromObject = function fromObject(object) {
63717
+ if (object instanceof $root.google.api.TypeReference)
63718
+ return object;
63719
+ var message = new $root.google.api.TypeReference();
63720
+ if (object.typeName != null)
63721
+ message.typeName = String(object.typeName);
63722
+ return message;
63723
+ };
63724
+
63725
+ /**
63726
+ * Creates a plain object from a TypeReference message. Also converts values to other types if specified.
63727
+ * @function toObject
63728
+ * @memberof google.api.TypeReference
63729
+ * @static
63730
+ * @param {google.api.TypeReference} message TypeReference
63731
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
63732
+ * @returns {Object.<string,*>} Plain object
63733
+ */
63734
+ TypeReference.toObject = function toObject(message, options) {
63735
+ if (!options)
63736
+ options = {};
63737
+ var object = {};
63738
+ if (options.defaults)
63739
+ object.typeName = "";
63740
+ if (message.typeName != null && message.hasOwnProperty("typeName"))
63741
+ object.typeName = message.typeName;
63742
+ return object;
63743
+ };
63744
+
63745
+ /**
63746
+ * Converts this TypeReference to JSON.
63747
+ * @function toJSON
63748
+ * @memberof google.api.TypeReference
63749
+ * @instance
63750
+ * @returns {Object.<string,*>} JSON object
63751
+ */
63752
+ TypeReference.prototype.toJSON = function toJSON() {
63753
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
63754
+ };
63755
+
63756
+ /**
63757
+ * Gets the default type url for TypeReference
63758
+ * @function getTypeUrl
63759
+ * @memberof google.api.TypeReference
63760
+ * @static
63761
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
63762
+ * @returns {string} The default type url
63763
+ */
63764
+ TypeReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
63765
+ if (typeUrlPrefix === undefined) {
63766
+ typeUrlPrefix = "type.googleapis.com";
63767
+ }
63768
+ return typeUrlPrefix + "/google.api.TypeReference";
63769
+ };
63770
+
63771
+ return TypeReference;
63772
+ })();
63773
+
61780
63774
  api.Http = (function() {
61781
63775
 
61782
63776
  /**
@@ -62754,6 +64748,7 @@
62754
64748
  * @interface ICommonLanguageSettings
62755
64749
  * @property {string|null} [referenceDocsUri] CommonLanguageSettings referenceDocsUri
62756
64750
  * @property {Array.<google.api.ClientLibraryDestination>|null} [destinations] CommonLanguageSettings destinations
64751
+ * @property {google.api.ISelectiveGapicGeneration|null} [selectiveGapicGeneration] CommonLanguageSettings selectiveGapicGeneration
62757
64752
  */
62758
64753
 
62759
64754
  /**
@@ -62788,6 +64783,14 @@
62788
64783
  */
62789
64784
  CommonLanguageSettings.prototype.destinations = $util.emptyArray;
62790
64785
 
64786
+ /**
64787
+ * CommonLanguageSettings selectiveGapicGeneration.
64788
+ * @member {google.api.ISelectiveGapicGeneration|null|undefined} selectiveGapicGeneration
64789
+ * @memberof google.api.CommonLanguageSettings
64790
+ * @instance
64791
+ */
64792
+ CommonLanguageSettings.prototype.selectiveGapicGeneration = null;
64793
+
62791
64794
  /**
62792
64795
  * Creates a new CommonLanguageSettings instance using the specified properties.
62793
64796
  * @function create
@@ -62820,6 +64823,8 @@
62820
64823
  writer.int32(message.destinations[i]);
62821
64824
  writer.ldelim();
62822
64825
  }
64826
+ if (message.selectiveGapicGeneration != null && Object.hasOwnProperty.call(message, "selectiveGapicGeneration"))
64827
+ $root.google.api.SelectiveGapicGeneration.encode(message.selectiveGapicGeneration, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
62823
64828
  return writer;
62824
64829
  };
62825
64830
 
@@ -62871,6 +64876,10 @@
62871
64876
  message.destinations.push(reader.int32());
62872
64877
  break;
62873
64878
  }
64879
+ case 3: {
64880
+ message.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.decode(reader, reader.uint32());
64881
+ break;
64882
+ }
62874
64883
  default:
62875
64884
  reader.skipType(tag & 7);
62876
64885
  break;
@@ -62922,6 +64931,11 @@
62922
64931
  break;
62923
64932
  }
62924
64933
  }
64934
+ if (message.selectiveGapicGeneration != null && message.hasOwnProperty("selectiveGapicGeneration")) {
64935
+ var error = $root.google.api.SelectiveGapicGeneration.verify(message.selectiveGapicGeneration);
64936
+ if (error)
64937
+ return "selectiveGapicGeneration." + error;
64938
+ }
62925
64939
  return null;
62926
64940
  };
62927
64941
 
@@ -62964,6 +64978,11 @@
62964
64978
  break;
62965
64979
  }
62966
64980
  }
64981
+ if (object.selectiveGapicGeneration != null) {
64982
+ if (typeof object.selectiveGapicGeneration !== "object")
64983
+ throw TypeError(".google.api.CommonLanguageSettings.selectiveGapicGeneration: object expected");
64984
+ message.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.fromObject(object.selectiveGapicGeneration);
64985
+ }
62967
64986
  return message;
62968
64987
  };
62969
64988
 
@@ -62982,8 +65001,10 @@
62982
65001
  var object = {};
62983
65002
  if (options.arrays || options.defaults)
62984
65003
  object.destinations = [];
62985
- if (options.defaults)
65004
+ if (options.defaults) {
62986
65005
  object.referenceDocsUri = "";
65006
+ object.selectiveGapicGeneration = null;
65007
+ }
62987
65008
  if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
62988
65009
  object.referenceDocsUri = message.referenceDocsUri;
62989
65010
  if (message.destinations && message.destinations.length) {
@@ -62991,6 +65012,8 @@
62991
65012
  for (var j = 0; j < message.destinations.length; ++j)
62992
65013
  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
65014
  }
65015
+ if (message.selectiveGapicGeneration != null && message.hasOwnProperty("selectiveGapicGeneration"))
65016
+ object.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.toObject(message.selectiveGapicGeneration, options);
62994
65017
  return object;
62995
65018
  };
62996
65019
 
@@ -64813,6 +66836,7 @@
64813
66836
  * @memberof google.api
64814
66837
  * @interface IPythonSettings
64815
66838
  * @property {google.api.ICommonLanguageSettings|null} [common] PythonSettings common
66839
+ * @property {google.api.PythonSettings.IExperimentalFeatures|null} [experimentalFeatures] PythonSettings experimentalFeatures
64816
66840
  */
64817
66841
 
64818
66842
  /**
@@ -64838,6 +66862,14 @@
64838
66862
  */
64839
66863
  PythonSettings.prototype.common = null;
64840
66864
 
66865
+ /**
66866
+ * PythonSettings experimentalFeatures.
66867
+ * @member {google.api.PythonSettings.IExperimentalFeatures|null|undefined} experimentalFeatures
66868
+ * @memberof google.api.PythonSettings
66869
+ * @instance
66870
+ */
66871
+ PythonSettings.prototype.experimentalFeatures = null;
66872
+
64841
66873
  /**
64842
66874
  * Creates a new PythonSettings instance using the specified properties.
64843
66875
  * @function create
@@ -64864,6 +66896,8 @@
64864
66896
  writer = $Writer.create();
64865
66897
  if (message.common != null && Object.hasOwnProperty.call(message, "common"))
64866
66898
  $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
66899
+ if (message.experimentalFeatures != null && Object.hasOwnProperty.call(message, "experimentalFeatures"))
66900
+ $root.google.api.PythonSettings.ExperimentalFeatures.encode(message.experimentalFeatures, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
64867
66901
  return writer;
64868
66902
  };
64869
66903
 
@@ -64904,6 +66938,10 @@
64904
66938
  message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
64905
66939
  break;
64906
66940
  }
66941
+ case 2: {
66942
+ message.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.decode(reader, reader.uint32());
66943
+ break;
66944
+ }
64907
66945
  default:
64908
66946
  reader.skipType(tag & 7);
64909
66947
  break;
@@ -64944,6 +66982,11 @@
64944
66982
  if (error)
64945
66983
  return "common." + error;
64946
66984
  }
66985
+ if (message.experimentalFeatures != null && message.hasOwnProperty("experimentalFeatures")) {
66986
+ var error = $root.google.api.PythonSettings.ExperimentalFeatures.verify(message.experimentalFeatures);
66987
+ if (error)
66988
+ return "experimentalFeatures." + error;
66989
+ }
64947
66990
  return null;
64948
66991
  };
64949
66992
 
@@ -64964,6 +67007,11 @@
64964
67007
  throw TypeError(".google.api.PythonSettings.common: object expected");
64965
67008
  message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
64966
67009
  }
67010
+ if (object.experimentalFeatures != null) {
67011
+ if (typeof object.experimentalFeatures !== "object")
67012
+ throw TypeError(".google.api.PythonSettings.experimentalFeatures: object expected");
67013
+ message.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.fromObject(object.experimentalFeatures);
67014
+ }
64967
67015
  return message;
64968
67016
  };
64969
67017
 
@@ -64980,10 +67028,14 @@
64980
67028
  if (!options)
64981
67029
  options = {};
64982
67030
  var object = {};
64983
- if (options.defaults)
67031
+ if (options.defaults) {
64984
67032
  object.common = null;
67033
+ object.experimentalFeatures = null;
67034
+ }
64985
67035
  if (message.common != null && message.hasOwnProperty("common"))
64986
67036
  object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
67037
+ if (message.experimentalFeatures != null && message.hasOwnProperty("experimentalFeatures"))
67038
+ object.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.toObject(message.experimentalFeatures, options);
64987
67039
  return object;
64988
67040
  };
64989
67041
 
@@ -65013,6 +67065,258 @@
65013
67065
  return typeUrlPrefix + "/google.api.PythonSettings";
65014
67066
  };
65015
67067
 
67068
+ PythonSettings.ExperimentalFeatures = (function() {
67069
+
67070
+ /**
67071
+ * Properties of an ExperimentalFeatures.
67072
+ * @memberof google.api.PythonSettings
67073
+ * @interface IExperimentalFeatures
67074
+ * @property {boolean|null} [restAsyncIoEnabled] ExperimentalFeatures restAsyncIoEnabled
67075
+ * @property {boolean|null} [protobufPythonicTypesEnabled] ExperimentalFeatures protobufPythonicTypesEnabled
67076
+ * @property {boolean|null} [unversionedPackageDisabled] ExperimentalFeatures unversionedPackageDisabled
67077
+ */
67078
+
67079
+ /**
67080
+ * Constructs a new ExperimentalFeatures.
67081
+ * @memberof google.api.PythonSettings
67082
+ * @classdesc Represents an ExperimentalFeatures.
67083
+ * @implements IExperimentalFeatures
67084
+ * @constructor
67085
+ * @param {google.api.PythonSettings.IExperimentalFeatures=} [properties] Properties to set
67086
+ */
67087
+ function ExperimentalFeatures(properties) {
67088
+ if (properties)
67089
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
67090
+ if (properties[keys[i]] != null)
67091
+ this[keys[i]] = properties[keys[i]];
67092
+ }
67093
+
67094
+ /**
67095
+ * ExperimentalFeatures restAsyncIoEnabled.
67096
+ * @member {boolean} restAsyncIoEnabled
67097
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
67098
+ * @instance
67099
+ */
67100
+ ExperimentalFeatures.prototype.restAsyncIoEnabled = false;
67101
+
67102
+ /**
67103
+ * ExperimentalFeatures protobufPythonicTypesEnabled.
67104
+ * @member {boolean} protobufPythonicTypesEnabled
67105
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
67106
+ * @instance
67107
+ */
67108
+ ExperimentalFeatures.prototype.protobufPythonicTypesEnabled = false;
67109
+
67110
+ /**
67111
+ * ExperimentalFeatures unversionedPackageDisabled.
67112
+ * @member {boolean} unversionedPackageDisabled
67113
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
67114
+ * @instance
67115
+ */
67116
+ ExperimentalFeatures.prototype.unversionedPackageDisabled = false;
67117
+
67118
+ /**
67119
+ * Creates a new ExperimentalFeatures instance using the specified properties.
67120
+ * @function create
67121
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
67122
+ * @static
67123
+ * @param {google.api.PythonSettings.IExperimentalFeatures=} [properties] Properties to set
67124
+ * @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures instance
67125
+ */
67126
+ ExperimentalFeatures.create = function create(properties) {
67127
+ return new ExperimentalFeatures(properties);
67128
+ };
67129
+
67130
+ /**
67131
+ * Encodes the specified ExperimentalFeatures message. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
67132
+ * @function encode
67133
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
67134
+ * @static
67135
+ * @param {google.api.PythonSettings.IExperimentalFeatures} message ExperimentalFeatures message or plain object to encode
67136
+ * @param {$protobuf.Writer} [writer] Writer to encode to
67137
+ * @returns {$protobuf.Writer} Writer
67138
+ */
67139
+ ExperimentalFeatures.encode = function encode(message, writer) {
67140
+ if (!writer)
67141
+ writer = $Writer.create();
67142
+ if (message.restAsyncIoEnabled != null && Object.hasOwnProperty.call(message, "restAsyncIoEnabled"))
67143
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.restAsyncIoEnabled);
67144
+ if (message.protobufPythonicTypesEnabled != null && Object.hasOwnProperty.call(message, "protobufPythonicTypesEnabled"))
67145
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.protobufPythonicTypesEnabled);
67146
+ if (message.unversionedPackageDisabled != null && Object.hasOwnProperty.call(message, "unversionedPackageDisabled"))
67147
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.unversionedPackageDisabled);
67148
+ return writer;
67149
+ };
67150
+
67151
+ /**
67152
+ * Encodes the specified ExperimentalFeatures message, length delimited. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
67153
+ * @function encodeDelimited
67154
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
67155
+ * @static
67156
+ * @param {google.api.PythonSettings.IExperimentalFeatures} message ExperimentalFeatures message or plain object to encode
67157
+ * @param {$protobuf.Writer} [writer] Writer to encode to
67158
+ * @returns {$protobuf.Writer} Writer
67159
+ */
67160
+ ExperimentalFeatures.encodeDelimited = function encodeDelimited(message, writer) {
67161
+ return this.encode(message, writer).ldelim();
67162
+ };
67163
+
67164
+ /**
67165
+ * Decodes an ExperimentalFeatures message from the specified reader or buffer.
67166
+ * @function decode
67167
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
67168
+ * @static
67169
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
67170
+ * @param {number} [length] Message length if known beforehand
67171
+ * @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
67172
+ * @throws {Error} If the payload is not a reader or valid buffer
67173
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
67174
+ */
67175
+ ExperimentalFeatures.decode = function decode(reader, length, error) {
67176
+ if (!(reader instanceof $Reader))
67177
+ reader = $Reader.create(reader);
67178
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings.ExperimentalFeatures();
67179
+ while (reader.pos < end) {
67180
+ var tag = reader.uint32();
67181
+ if (tag === error)
67182
+ break;
67183
+ switch (tag >>> 3) {
67184
+ case 1: {
67185
+ message.restAsyncIoEnabled = reader.bool();
67186
+ break;
67187
+ }
67188
+ case 2: {
67189
+ message.protobufPythonicTypesEnabled = reader.bool();
67190
+ break;
67191
+ }
67192
+ case 3: {
67193
+ message.unversionedPackageDisabled = reader.bool();
67194
+ break;
67195
+ }
67196
+ default:
67197
+ reader.skipType(tag & 7);
67198
+ break;
67199
+ }
67200
+ }
67201
+ return message;
67202
+ };
67203
+
67204
+ /**
67205
+ * Decodes an ExperimentalFeatures message from the specified reader or buffer, length delimited.
67206
+ * @function decodeDelimited
67207
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
67208
+ * @static
67209
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
67210
+ * @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
67211
+ * @throws {Error} If the payload is not a reader or valid buffer
67212
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
67213
+ */
67214
+ ExperimentalFeatures.decodeDelimited = function decodeDelimited(reader) {
67215
+ if (!(reader instanceof $Reader))
67216
+ reader = new $Reader(reader);
67217
+ return this.decode(reader, reader.uint32());
67218
+ };
67219
+
67220
+ /**
67221
+ * Verifies an ExperimentalFeatures message.
67222
+ * @function verify
67223
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
67224
+ * @static
67225
+ * @param {Object.<string,*>} message Plain object to verify
67226
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
67227
+ */
67228
+ ExperimentalFeatures.verify = function verify(message) {
67229
+ if (typeof message !== "object" || message === null)
67230
+ return "object expected";
67231
+ if (message.restAsyncIoEnabled != null && message.hasOwnProperty("restAsyncIoEnabled"))
67232
+ if (typeof message.restAsyncIoEnabled !== "boolean")
67233
+ return "restAsyncIoEnabled: boolean expected";
67234
+ if (message.protobufPythonicTypesEnabled != null && message.hasOwnProperty("protobufPythonicTypesEnabled"))
67235
+ if (typeof message.protobufPythonicTypesEnabled !== "boolean")
67236
+ return "protobufPythonicTypesEnabled: boolean expected";
67237
+ if (message.unversionedPackageDisabled != null && message.hasOwnProperty("unversionedPackageDisabled"))
67238
+ if (typeof message.unversionedPackageDisabled !== "boolean")
67239
+ return "unversionedPackageDisabled: boolean expected";
67240
+ return null;
67241
+ };
67242
+
67243
+ /**
67244
+ * Creates an ExperimentalFeatures message from a plain object. Also converts values to their respective internal types.
67245
+ * @function fromObject
67246
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
67247
+ * @static
67248
+ * @param {Object.<string,*>} object Plain object
67249
+ * @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
67250
+ */
67251
+ ExperimentalFeatures.fromObject = function fromObject(object) {
67252
+ if (object instanceof $root.google.api.PythonSettings.ExperimentalFeatures)
67253
+ return object;
67254
+ var message = new $root.google.api.PythonSettings.ExperimentalFeatures();
67255
+ if (object.restAsyncIoEnabled != null)
67256
+ message.restAsyncIoEnabled = Boolean(object.restAsyncIoEnabled);
67257
+ if (object.protobufPythonicTypesEnabled != null)
67258
+ message.protobufPythonicTypesEnabled = Boolean(object.protobufPythonicTypesEnabled);
67259
+ if (object.unversionedPackageDisabled != null)
67260
+ message.unversionedPackageDisabled = Boolean(object.unversionedPackageDisabled);
67261
+ return message;
67262
+ };
67263
+
67264
+ /**
67265
+ * Creates a plain object from an ExperimentalFeatures message. Also converts values to other types if specified.
67266
+ * @function toObject
67267
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
67268
+ * @static
67269
+ * @param {google.api.PythonSettings.ExperimentalFeatures} message ExperimentalFeatures
67270
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
67271
+ * @returns {Object.<string,*>} Plain object
67272
+ */
67273
+ ExperimentalFeatures.toObject = function toObject(message, options) {
67274
+ if (!options)
67275
+ options = {};
67276
+ var object = {};
67277
+ if (options.defaults) {
67278
+ object.restAsyncIoEnabled = false;
67279
+ object.protobufPythonicTypesEnabled = false;
67280
+ object.unversionedPackageDisabled = false;
67281
+ }
67282
+ if (message.restAsyncIoEnabled != null && message.hasOwnProperty("restAsyncIoEnabled"))
67283
+ object.restAsyncIoEnabled = message.restAsyncIoEnabled;
67284
+ if (message.protobufPythonicTypesEnabled != null && message.hasOwnProperty("protobufPythonicTypesEnabled"))
67285
+ object.protobufPythonicTypesEnabled = message.protobufPythonicTypesEnabled;
67286
+ if (message.unversionedPackageDisabled != null && message.hasOwnProperty("unversionedPackageDisabled"))
67287
+ object.unversionedPackageDisabled = message.unversionedPackageDisabled;
67288
+ return object;
67289
+ };
67290
+
67291
+ /**
67292
+ * Converts this ExperimentalFeatures to JSON.
67293
+ * @function toJSON
67294
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
67295
+ * @instance
67296
+ * @returns {Object.<string,*>} JSON object
67297
+ */
67298
+ ExperimentalFeatures.prototype.toJSON = function toJSON() {
67299
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
67300
+ };
67301
+
67302
+ /**
67303
+ * Gets the default type url for ExperimentalFeatures
67304
+ * @function getTypeUrl
67305
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
67306
+ * @static
67307
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
67308
+ * @returns {string} The default type url
67309
+ */
67310
+ ExperimentalFeatures.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
67311
+ if (typeUrlPrefix === undefined) {
67312
+ typeUrlPrefix = "type.googleapis.com";
67313
+ }
67314
+ return typeUrlPrefix + "/google.api.PythonSettings.ExperimentalFeatures";
67315
+ };
67316
+
67317
+ return ExperimentalFeatures;
67318
+ })();
67319
+
65016
67320
  return PythonSettings;
65017
67321
  })();
65018
67322
 
@@ -65889,6 +68193,7 @@
65889
68193
  * @memberof google.api
65890
68194
  * @interface IGoSettings
65891
68195
  * @property {google.api.ICommonLanguageSettings|null} [common] GoSettings common
68196
+ * @property {Object.<string,string>|null} [renamedServices] GoSettings renamedServices
65892
68197
  */
65893
68198
 
65894
68199
  /**
@@ -65900,6 +68205,7 @@
65900
68205
  * @param {google.api.IGoSettings=} [properties] Properties to set
65901
68206
  */
65902
68207
  function GoSettings(properties) {
68208
+ this.renamedServices = {};
65903
68209
  if (properties)
65904
68210
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
65905
68211
  if (properties[keys[i]] != null)
@@ -65914,6 +68220,14 @@
65914
68220
  */
65915
68221
  GoSettings.prototype.common = null;
65916
68222
 
68223
+ /**
68224
+ * GoSettings renamedServices.
68225
+ * @member {Object.<string,string>} renamedServices
68226
+ * @memberof google.api.GoSettings
68227
+ * @instance
68228
+ */
68229
+ GoSettings.prototype.renamedServices = $util.emptyObject;
68230
+
65917
68231
  /**
65918
68232
  * Creates a new GoSettings instance using the specified properties.
65919
68233
  * @function create
@@ -65940,6 +68254,9 @@
65940
68254
  writer = $Writer.create();
65941
68255
  if (message.common != null && Object.hasOwnProperty.call(message, "common"))
65942
68256
  $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
68257
+ if (message.renamedServices != null && Object.hasOwnProperty.call(message, "renamedServices"))
68258
+ for (var keys = Object.keys(message.renamedServices), i = 0; i < keys.length; ++i)
68259
+ 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
68260
  return writer;
65944
68261
  };
65945
68262
 
@@ -65970,7 +68287,7 @@
65970
68287
  GoSettings.decode = function decode(reader, length, error) {
65971
68288
  if (!(reader instanceof $Reader))
65972
68289
  reader = $Reader.create(reader);
65973
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings();
68290
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings(), key, value;
65974
68291
  while (reader.pos < end) {
65975
68292
  var tag = reader.uint32();
65976
68293
  if (tag === error)
@@ -65980,6 +68297,29 @@
65980
68297
  message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
65981
68298
  break;
65982
68299
  }
68300
+ case 2: {
68301
+ if (message.renamedServices === $util.emptyObject)
68302
+ message.renamedServices = {};
68303
+ var end2 = reader.uint32() + reader.pos;
68304
+ key = "";
68305
+ value = "";
68306
+ while (reader.pos < end2) {
68307
+ var tag2 = reader.uint32();
68308
+ switch (tag2 >>> 3) {
68309
+ case 1:
68310
+ key = reader.string();
68311
+ break;
68312
+ case 2:
68313
+ value = reader.string();
68314
+ break;
68315
+ default:
68316
+ reader.skipType(tag2 & 7);
68317
+ break;
68318
+ }
68319
+ }
68320
+ message.renamedServices[key] = value;
68321
+ break;
68322
+ }
65983
68323
  default:
65984
68324
  reader.skipType(tag & 7);
65985
68325
  break;
@@ -66020,6 +68360,14 @@
66020
68360
  if (error)
66021
68361
  return "common." + error;
66022
68362
  }
68363
+ if (message.renamedServices != null && message.hasOwnProperty("renamedServices")) {
68364
+ if (!$util.isObject(message.renamedServices))
68365
+ return "renamedServices: object expected";
68366
+ var key = Object.keys(message.renamedServices);
68367
+ for (var i = 0; i < key.length; ++i)
68368
+ if (!$util.isString(message.renamedServices[key[i]]))
68369
+ return "renamedServices: string{k:string} expected";
68370
+ }
66023
68371
  return null;
66024
68372
  };
66025
68373
 
@@ -66040,6 +68388,13 @@
66040
68388
  throw TypeError(".google.api.GoSettings.common: object expected");
66041
68389
  message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
66042
68390
  }
68391
+ if (object.renamedServices) {
68392
+ if (typeof object.renamedServices !== "object")
68393
+ throw TypeError(".google.api.GoSettings.renamedServices: object expected");
68394
+ message.renamedServices = {};
68395
+ for (var keys = Object.keys(object.renamedServices), i = 0; i < keys.length; ++i)
68396
+ message.renamedServices[keys[i]] = String(object.renamedServices[keys[i]]);
68397
+ }
66043
68398
  return message;
66044
68399
  };
66045
68400
 
@@ -66056,10 +68411,18 @@
66056
68411
  if (!options)
66057
68412
  options = {};
66058
68413
  var object = {};
68414
+ if (options.objects || options.defaults)
68415
+ object.renamedServices = {};
66059
68416
  if (options.defaults)
66060
68417
  object.common = null;
66061
68418
  if (message.common != null && message.hasOwnProperty("common"))
66062
68419
  object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
68420
+ var keys2;
68421
+ if (message.renamedServices && (keys2 = Object.keys(message.renamedServices)).length) {
68422
+ object.renamedServices = {};
68423
+ for (var j = 0; j < keys2.length; ++j)
68424
+ object.renamedServices[keys2[j]] = message.renamedServices[keys2[j]];
68425
+ }
66063
68426
  return object;
66064
68427
  };
66065
68428
 
@@ -66698,6 +69061,251 @@
66698
69061
  return values;
66699
69062
  })();
66700
69063
 
69064
+ api.SelectiveGapicGeneration = (function() {
69065
+
69066
+ /**
69067
+ * Properties of a SelectiveGapicGeneration.
69068
+ * @memberof google.api
69069
+ * @interface ISelectiveGapicGeneration
69070
+ * @property {Array.<string>|null} [methods] SelectiveGapicGeneration methods
69071
+ * @property {boolean|null} [generateOmittedAsInternal] SelectiveGapicGeneration generateOmittedAsInternal
69072
+ */
69073
+
69074
+ /**
69075
+ * Constructs a new SelectiveGapicGeneration.
69076
+ * @memberof google.api
69077
+ * @classdesc Represents a SelectiveGapicGeneration.
69078
+ * @implements ISelectiveGapicGeneration
69079
+ * @constructor
69080
+ * @param {google.api.ISelectiveGapicGeneration=} [properties] Properties to set
69081
+ */
69082
+ function SelectiveGapicGeneration(properties) {
69083
+ this.methods = [];
69084
+ if (properties)
69085
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
69086
+ if (properties[keys[i]] != null)
69087
+ this[keys[i]] = properties[keys[i]];
69088
+ }
69089
+
69090
+ /**
69091
+ * SelectiveGapicGeneration methods.
69092
+ * @member {Array.<string>} methods
69093
+ * @memberof google.api.SelectiveGapicGeneration
69094
+ * @instance
69095
+ */
69096
+ SelectiveGapicGeneration.prototype.methods = $util.emptyArray;
69097
+
69098
+ /**
69099
+ * SelectiveGapicGeneration generateOmittedAsInternal.
69100
+ * @member {boolean} generateOmittedAsInternal
69101
+ * @memberof google.api.SelectiveGapicGeneration
69102
+ * @instance
69103
+ */
69104
+ SelectiveGapicGeneration.prototype.generateOmittedAsInternal = false;
69105
+
69106
+ /**
69107
+ * Creates a new SelectiveGapicGeneration instance using the specified properties.
69108
+ * @function create
69109
+ * @memberof google.api.SelectiveGapicGeneration
69110
+ * @static
69111
+ * @param {google.api.ISelectiveGapicGeneration=} [properties] Properties to set
69112
+ * @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration instance
69113
+ */
69114
+ SelectiveGapicGeneration.create = function create(properties) {
69115
+ return new SelectiveGapicGeneration(properties);
69116
+ };
69117
+
69118
+ /**
69119
+ * Encodes the specified SelectiveGapicGeneration message. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
69120
+ * @function encode
69121
+ * @memberof google.api.SelectiveGapicGeneration
69122
+ * @static
69123
+ * @param {google.api.ISelectiveGapicGeneration} message SelectiveGapicGeneration message or plain object to encode
69124
+ * @param {$protobuf.Writer} [writer] Writer to encode to
69125
+ * @returns {$protobuf.Writer} Writer
69126
+ */
69127
+ SelectiveGapicGeneration.encode = function encode(message, writer) {
69128
+ if (!writer)
69129
+ writer = $Writer.create();
69130
+ if (message.methods != null && message.methods.length)
69131
+ for (var i = 0; i < message.methods.length; ++i)
69132
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.methods[i]);
69133
+ if (message.generateOmittedAsInternal != null && Object.hasOwnProperty.call(message, "generateOmittedAsInternal"))
69134
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.generateOmittedAsInternal);
69135
+ return writer;
69136
+ };
69137
+
69138
+ /**
69139
+ * Encodes the specified SelectiveGapicGeneration message, length delimited. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
69140
+ * @function encodeDelimited
69141
+ * @memberof google.api.SelectiveGapicGeneration
69142
+ * @static
69143
+ * @param {google.api.ISelectiveGapicGeneration} message SelectiveGapicGeneration message or plain object to encode
69144
+ * @param {$protobuf.Writer} [writer] Writer to encode to
69145
+ * @returns {$protobuf.Writer} Writer
69146
+ */
69147
+ SelectiveGapicGeneration.encodeDelimited = function encodeDelimited(message, writer) {
69148
+ return this.encode(message, writer).ldelim();
69149
+ };
69150
+
69151
+ /**
69152
+ * Decodes a SelectiveGapicGeneration message from the specified reader or buffer.
69153
+ * @function decode
69154
+ * @memberof google.api.SelectiveGapicGeneration
69155
+ * @static
69156
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
69157
+ * @param {number} [length] Message length if known beforehand
69158
+ * @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
69159
+ * @throws {Error} If the payload is not a reader or valid buffer
69160
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
69161
+ */
69162
+ SelectiveGapicGeneration.decode = function decode(reader, length, error) {
69163
+ if (!(reader instanceof $Reader))
69164
+ reader = $Reader.create(reader);
69165
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.SelectiveGapicGeneration();
69166
+ while (reader.pos < end) {
69167
+ var tag = reader.uint32();
69168
+ if (tag === error)
69169
+ break;
69170
+ switch (tag >>> 3) {
69171
+ case 1: {
69172
+ if (!(message.methods && message.methods.length))
69173
+ message.methods = [];
69174
+ message.methods.push(reader.string());
69175
+ break;
69176
+ }
69177
+ case 2: {
69178
+ message.generateOmittedAsInternal = reader.bool();
69179
+ break;
69180
+ }
69181
+ default:
69182
+ reader.skipType(tag & 7);
69183
+ break;
69184
+ }
69185
+ }
69186
+ return message;
69187
+ };
69188
+
69189
+ /**
69190
+ * Decodes a SelectiveGapicGeneration message from the specified reader or buffer, length delimited.
69191
+ * @function decodeDelimited
69192
+ * @memberof google.api.SelectiveGapicGeneration
69193
+ * @static
69194
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
69195
+ * @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
69196
+ * @throws {Error} If the payload is not a reader or valid buffer
69197
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
69198
+ */
69199
+ SelectiveGapicGeneration.decodeDelimited = function decodeDelimited(reader) {
69200
+ if (!(reader instanceof $Reader))
69201
+ reader = new $Reader(reader);
69202
+ return this.decode(reader, reader.uint32());
69203
+ };
69204
+
69205
+ /**
69206
+ * Verifies a SelectiveGapicGeneration message.
69207
+ * @function verify
69208
+ * @memberof google.api.SelectiveGapicGeneration
69209
+ * @static
69210
+ * @param {Object.<string,*>} message Plain object to verify
69211
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
69212
+ */
69213
+ SelectiveGapicGeneration.verify = function verify(message) {
69214
+ if (typeof message !== "object" || message === null)
69215
+ return "object expected";
69216
+ if (message.methods != null && message.hasOwnProperty("methods")) {
69217
+ if (!Array.isArray(message.methods))
69218
+ return "methods: array expected";
69219
+ for (var i = 0; i < message.methods.length; ++i)
69220
+ if (!$util.isString(message.methods[i]))
69221
+ return "methods: string[] expected";
69222
+ }
69223
+ if (message.generateOmittedAsInternal != null && message.hasOwnProperty("generateOmittedAsInternal"))
69224
+ if (typeof message.generateOmittedAsInternal !== "boolean")
69225
+ return "generateOmittedAsInternal: boolean expected";
69226
+ return null;
69227
+ };
69228
+
69229
+ /**
69230
+ * Creates a SelectiveGapicGeneration message from a plain object. Also converts values to their respective internal types.
69231
+ * @function fromObject
69232
+ * @memberof google.api.SelectiveGapicGeneration
69233
+ * @static
69234
+ * @param {Object.<string,*>} object Plain object
69235
+ * @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
69236
+ */
69237
+ SelectiveGapicGeneration.fromObject = function fromObject(object) {
69238
+ if (object instanceof $root.google.api.SelectiveGapicGeneration)
69239
+ return object;
69240
+ var message = new $root.google.api.SelectiveGapicGeneration();
69241
+ if (object.methods) {
69242
+ if (!Array.isArray(object.methods))
69243
+ throw TypeError(".google.api.SelectiveGapicGeneration.methods: array expected");
69244
+ message.methods = [];
69245
+ for (var i = 0; i < object.methods.length; ++i)
69246
+ message.methods[i] = String(object.methods[i]);
69247
+ }
69248
+ if (object.generateOmittedAsInternal != null)
69249
+ message.generateOmittedAsInternal = Boolean(object.generateOmittedAsInternal);
69250
+ return message;
69251
+ };
69252
+
69253
+ /**
69254
+ * Creates a plain object from a SelectiveGapicGeneration message. Also converts values to other types if specified.
69255
+ * @function toObject
69256
+ * @memberof google.api.SelectiveGapicGeneration
69257
+ * @static
69258
+ * @param {google.api.SelectiveGapicGeneration} message SelectiveGapicGeneration
69259
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
69260
+ * @returns {Object.<string,*>} Plain object
69261
+ */
69262
+ SelectiveGapicGeneration.toObject = function toObject(message, options) {
69263
+ if (!options)
69264
+ options = {};
69265
+ var object = {};
69266
+ if (options.arrays || options.defaults)
69267
+ object.methods = [];
69268
+ if (options.defaults)
69269
+ object.generateOmittedAsInternal = false;
69270
+ if (message.methods && message.methods.length) {
69271
+ object.methods = [];
69272
+ for (var j = 0; j < message.methods.length; ++j)
69273
+ object.methods[j] = message.methods[j];
69274
+ }
69275
+ if (message.generateOmittedAsInternal != null && message.hasOwnProperty("generateOmittedAsInternal"))
69276
+ object.generateOmittedAsInternal = message.generateOmittedAsInternal;
69277
+ return object;
69278
+ };
69279
+
69280
+ /**
69281
+ * Converts this SelectiveGapicGeneration to JSON.
69282
+ * @function toJSON
69283
+ * @memberof google.api.SelectiveGapicGeneration
69284
+ * @instance
69285
+ * @returns {Object.<string,*>} JSON object
69286
+ */
69287
+ SelectiveGapicGeneration.prototype.toJSON = function toJSON() {
69288
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
69289
+ };
69290
+
69291
+ /**
69292
+ * Gets the default type url for SelectiveGapicGeneration
69293
+ * @function getTypeUrl
69294
+ * @memberof google.api.SelectiveGapicGeneration
69295
+ * @static
69296
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
69297
+ * @returns {string} The default type url
69298
+ */
69299
+ SelectiveGapicGeneration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
69300
+ if (typeUrlPrefix === undefined) {
69301
+ typeUrlPrefix = "type.googleapis.com";
69302
+ }
69303
+ return typeUrlPrefix + "/google.api.SelectiveGapicGeneration";
69304
+ };
69305
+
69306
+ return SelectiveGapicGeneration;
69307
+ })();
69308
+
66701
69309
  /**
66702
69310
  * LaunchStage enum.
66703
69311
  * @name google.api.LaunchStage