@google-cloud/spanner 7.6.0 → 7.7.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.
@@ -6645,12 +6645,9 @@
6645
6645
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
6646
6646
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
6647
6647
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
6648
- if (message[".google.api.fieldBehavior"] != null && message[".google.api.fieldBehavior"].length) {
6649
- writer.uint32(/* id 1052, wireType 2 =*/8418).fork();
6648
+ if (message[".google.api.fieldBehavior"] != null && message[".google.api.fieldBehavior"].length)
6650
6649
  for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i)
6651
- writer.int32(message[".google.api.fieldBehavior"][i]);
6652
- writer.ldelim();
6653
- }
6650
+ writer.uint32(/* id 1052, wireType 0 =*/8416).int32(message[".google.api.fieldBehavior"][i]);
6654
6651
  if (message[".google.api.resourceReference"] != null && Object.hasOwnProperty.call(message, ".google.api.resourceReference"))
6655
6652
  $root.google.api.ResourceReference.encode(message[".google.api.resourceReference"], writer.uint32(/* id 1055, wireType 2 =*/8442).fork()).ldelim();
6656
6653
  return writer;
@@ -8496,6 +8493,7 @@
8496
8493
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] ServiceOptions uninterpretedOption
8497
8494
  * @property {string|null} [".google.api.defaultHost"] ServiceOptions .google.api.defaultHost
8498
8495
  * @property {string|null} [".google.api.oauthScopes"] ServiceOptions .google.api.oauthScopes
8496
+ * @property {string|null} [".google.api.apiVersion"] ServiceOptions .google.api.apiVersion
8499
8497
  */
8500
8498
 
8501
8499
  /**
@@ -8554,6 +8552,14 @@
8554
8552
  */
8555
8553
  ServiceOptions.prototype[".google.api.oauthScopes"] = "";
8556
8554
 
8555
+ /**
8556
+ * ServiceOptions .google.api.apiVersion.
8557
+ * @member {string} .google.api.apiVersion
8558
+ * @memberof google.protobuf.ServiceOptions
8559
+ * @instance
8560
+ */
8561
+ ServiceOptions.prototype[".google.api.apiVersion"] = "";
8562
+
8557
8563
  /**
8558
8564
  * Creates a new ServiceOptions instance using the specified properties.
8559
8565
  * @function create
@@ -8589,6 +8595,8 @@
8589
8595
  writer.uint32(/* id 1049, wireType 2 =*/8394).string(message[".google.api.defaultHost"]);
8590
8596
  if (message[".google.api.oauthScopes"] != null && Object.hasOwnProperty.call(message, ".google.api.oauthScopes"))
8591
8597
  writer.uint32(/* id 1050, wireType 2 =*/8402).string(message[".google.api.oauthScopes"]);
8598
+ if (message[".google.api.apiVersion"] != null && Object.hasOwnProperty.call(message, ".google.api.apiVersion"))
8599
+ writer.uint32(/* id 525000001, wireType 2 =*/4200000010).string(message[".google.api.apiVersion"]);
8592
8600
  return writer;
8593
8601
  };
8594
8602
 
@@ -8645,6 +8653,10 @@
8645
8653
  message[".google.api.oauthScopes"] = reader.string();
8646
8654
  break;
8647
8655
  }
8656
+ case 525000001: {
8657
+ message[".google.api.apiVersion"] = reader.string();
8658
+ break;
8659
+ }
8648
8660
  default:
8649
8661
  reader.skipType(tag & 7);
8650
8662
  break;
@@ -8703,6 +8715,9 @@
8703
8715
  if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes"))
8704
8716
  if (!$util.isString(message[".google.api.oauthScopes"]))
8705
8717
  return ".google.api.oauthScopes: string expected";
8718
+ if (message[".google.api.apiVersion"] != null && message.hasOwnProperty(".google.api.apiVersion"))
8719
+ if (!$util.isString(message[".google.api.apiVersion"]))
8720
+ return ".google.api.apiVersion: string expected";
8706
8721
  return null;
8707
8722
  };
8708
8723
 
@@ -8739,6 +8754,8 @@
8739
8754
  message[".google.api.defaultHost"] = String(object[".google.api.defaultHost"]);
8740
8755
  if (object[".google.api.oauthScopes"] != null)
8741
8756
  message[".google.api.oauthScopes"] = String(object[".google.api.oauthScopes"]);
8757
+ if (object[".google.api.apiVersion"] != null)
8758
+ message[".google.api.apiVersion"] = String(object[".google.api.apiVersion"]);
8742
8759
  return message;
8743
8760
  };
8744
8761
 
@@ -8762,6 +8779,7 @@
8762
8779
  object.features = null;
8763
8780
  object[".google.api.defaultHost"] = "";
8764
8781
  object[".google.api.oauthScopes"] = "";
8782
+ object[".google.api.apiVersion"] = "";
8765
8783
  }
8766
8784
  if (message.deprecated != null && message.hasOwnProperty("deprecated"))
8767
8785
  object.deprecated = message.deprecated;
@@ -8776,6 +8794,8 @@
8776
8794
  object[".google.api.defaultHost"] = message[".google.api.defaultHost"];
8777
8795
  if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes"))
8778
8796
  object[".google.api.oauthScopes"] = message[".google.api.oauthScopes"];
8797
+ if (message[".google.api.apiVersion"] != null && message.hasOwnProperty(".google.api.apiVersion"))
8798
+ object[".google.api.apiVersion"] = message[".google.api.apiVersion"];
8779
8799
  return object;
8780
8800
  };
8781
8801
 
@@ -30337,6 +30357,22 @@
30337
30357
  return OperationProgress;
30338
30358
  })();
30339
30359
 
30360
+ /**
30361
+ * FulfillmentPeriod enum.
30362
+ * @name google.spanner.admin.instance.v1.FulfillmentPeriod
30363
+ * @enum {number}
30364
+ * @property {number} FULFILLMENT_PERIOD_UNSPECIFIED=0 FULFILLMENT_PERIOD_UNSPECIFIED value
30365
+ * @property {number} FULFILLMENT_PERIOD_NORMAL=1 FULFILLMENT_PERIOD_NORMAL value
30366
+ * @property {number} FULFILLMENT_PERIOD_EXTENDED=2 FULFILLMENT_PERIOD_EXTENDED value
30367
+ */
30368
+ v1.FulfillmentPeriod = (function() {
30369
+ var valuesById = {}, values = Object.create(valuesById);
30370
+ values[valuesById[0] = "FULFILLMENT_PERIOD_UNSPECIFIED"] = 0;
30371
+ values[valuesById[1] = "FULFILLMENT_PERIOD_NORMAL"] = 1;
30372
+ values[valuesById[2] = "FULFILLMENT_PERIOD_EXTENDED"] = 2;
30373
+ return values;
30374
+ })();
30375
+
30340
30376
  v1.InstanceAdmin = (function() {
30341
30377
 
30342
30378
  /**
@@ -36798,6 +36834,7 @@
36798
36834
  * @property {google.protobuf.ITimestamp|null} [startTime] CreateInstanceMetadata startTime
36799
36835
  * @property {google.protobuf.ITimestamp|null} [cancelTime] CreateInstanceMetadata cancelTime
36800
36836
  * @property {google.protobuf.ITimestamp|null} [endTime] CreateInstanceMetadata endTime
36837
+ * @property {google.spanner.admin.instance.v1.FulfillmentPeriod|null} [expectedFulfillmentPeriod] CreateInstanceMetadata expectedFulfillmentPeriod
36801
36838
  */
36802
36839
 
36803
36840
  /**
@@ -36847,6 +36884,14 @@
36847
36884
  */
36848
36885
  CreateInstanceMetadata.prototype.endTime = null;
36849
36886
 
36887
+ /**
36888
+ * CreateInstanceMetadata expectedFulfillmentPeriod.
36889
+ * @member {google.spanner.admin.instance.v1.FulfillmentPeriod} expectedFulfillmentPeriod
36890
+ * @memberof google.spanner.admin.instance.v1.CreateInstanceMetadata
36891
+ * @instance
36892
+ */
36893
+ CreateInstanceMetadata.prototype.expectedFulfillmentPeriod = 0;
36894
+
36850
36895
  /**
36851
36896
  * Creates a new CreateInstanceMetadata instance using the specified properties.
36852
36897
  * @function create
@@ -36879,6 +36924,8 @@
36879
36924
  $root.google.protobuf.Timestamp.encode(message.cancelTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
36880
36925
  if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime"))
36881
36926
  $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
36927
+ if (message.expectedFulfillmentPeriod != null && Object.hasOwnProperty.call(message, "expectedFulfillmentPeriod"))
36928
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.expectedFulfillmentPeriod);
36882
36929
  return writer;
36883
36930
  };
36884
36931
 
@@ -36929,6 +36976,10 @@
36929
36976
  message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
36930
36977
  break;
36931
36978
  }
36979
+ case 5: {
36980
+ message.expectedFulfillmentPeriod = reader.int32();
36981
+ break;
36982
+ }
36932
36983
  default:
36933
36984
  reader.skipType(tag & 7);
36934
36985
  break;
@@ -36984,6 +37035,15 @@
36984
37035
  if (error)
36985
37036
  return "endTime." + error;
36986
37037
  }
37038
+ if (message.expectedFulfillmentPeriod != null && message.hasOwnProperty("expectedFulfillmentPeriod"))
37039
+ switch (message.expectedFulfillmentPeriod) {
37040
+ default:
37041
+ return "expectedFulfillmentPeriod: enum value expected";
37042
+ case 0:
37043
+ case 1:
37044
+ case 2:
37045
+ break;
37046
+ }
36987
37047
  return null;
36988
37048
  };
36989
37049
 
@@ -37019,6 +37079,26 @@
37019
37079
  throw TypeError(".google.spanner.admin.instance.v1.CreateInstanceMetadata.endTime: object expected");
37020
37080
  message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime);
37021
37081
  }
37082
+ switch (object.expectedFulfillmentPeriod) {
37083
+ default:
37084
+ if (typeof object.expectedFulfillmentPeriod === "number") {
37085
+ message.expectedFulfillmentPeriod = object.expectedFulfillmentPeriod;
37086
+ break;
37087
+ }
37088
+ break;
37089
+ case "FULFILLMENT_PERIOD_UNSPECIFIED":
37090
+ case 0:
37091
+ message.expectedFulfillmentPeriod = 0;
37092
+ break;
37093
+ case "FULFILLMENT_PERIOD_NORMAL":
37094
+ case 1:
37095
+ message.expectedFulfillmentPeriod = 1;
37096
+ break;
37097
+ case "FULFILLMENT_PERIOD_EXTENDED":
37098
+ case 2:
37099
+ message.expectedFulfillmentPeriod = 2;
37100
+ break;
37101
+ }
37022
37102
  return message;
37023
37103
  };
37024
37104
 
@@ -37040,6 +37120,7 @@
37040
37120
  object.startTime = null;
37041
37121
  object.cancelTime = null;
37042
37122
  object.endTime = null;
37123
+ object.expectedFulfillmentPeriod = options.enums === String ? "FULFILLMENT_PERIOD_UNSPECIFIED" : 0;
37043
37124
  }
37044
37125
  if (message.instance != null && message.hasOwnProperty("instance"))
37045
37126
  object.instance = $root.google.spanner.admin.instance.v1.Instance.toObject(message.instance, options);
@@ -37049,6 +37130,8 @@
37049
37130
  object.cancelTime = $root.google.protobuf.Timestamp.toObject(message.cancelTime, options);
37050
37131
  if (message.endTime != null && message.hasOwnProperty("endTime"))
37051
37132
  object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options);
37133
+ if (message.expectedFulfillmentPeriod != null && message.hasOwnProperty("expectedFulfillmentPeriod"))
37134
+ object.expectedFulfillmentPeriod = options.enums === String ? $root.google.spanner.admin.instance.v1.FulfillmentPeriod[message.expectedFulfillmentPeriod] === undefined ? message.expectedFulfillmentPeriod : $root.google.spanner.admin.instance.v1.FulfillmentPeriod[message.expectedFulfillmentPeriod] : message.expectedFulfillmentPeriod;
37052
37135
  return object;
37053
37136
  };
37054
37137
 
@@ -37091,6 +37174,7 @@
37091
37174
  * @property {google.protobuf.ITimestamp|null} [startTime] UpdateInstanceMetadata startTime
37092
37175
  * @property {google.protobuf.ITimestamp|null} [cancelTime] UpdateInstanceMetadata cancelTime
37093
37176
  * @property {google.protobuf.ITimestamp|null} [endTime] UpdateInstanceMetadata endTime
37177
+ * @property {google.spanner.admin.instance.v1.FulfillmentPeriod|null} [expectedFulfillmentPeriod] UpdateInstanceMetadata expectedFulfillmentPeriod
37094
37178
  */
37095
37179
 
37096
37180
  /**
@@ -37140,6 +37224,14 @@
37140
37224
  */
37141
37225
  UpdateInstanceMetadata.prototype.endTime = null;
37142
37226
 
37227
+ /**
37228
+ * UpdateInstanceMetadata expectedFulfillmentPeriod.
37229
+ * @member {google.spanner.admin.instance.v1.FulfillmentPeriod} expectedFulfillmentPeriod
37230
+ * @memberof google.spanner.admin.instance.v1.UpdateInstanceMetadata
37231
+ * @instance
37232
+ */
37233
+ UpdateInstanceMetadata.prototype.expectedFulfillmentPeriod = 0;
37234
+
37143
37235
  /**
37144
37236
  * Creates a new UpdateInstanceMetadata instance using the specified properties.
37145
37237
  * @function create
@@ -37172,6 +37264,8 @@
37172
37264
  $root.google.protobuf.Timestamp.encode(message.cancelTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
37173
37265
  if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime"))
37174
37266
  $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
37267
+ if (message.expectedFulfillmentPeriod != null && Object.hasOwnProperty.call(message, "expectedFulfillmentPeriod"))
37268
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.expectedFulfillmentPeriod);
37175
37269
  return writer;
37176
37270
  };
37177
37271
 
@@ -37222,6 +37316,10 @@
37222
37316
  message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
37223
37317
  break;
37224
37318
  }
37319
+ case 5: {
37320
+ message.expectedFulfillmentPeriod = reader.int32();
37321
+ break;
37322
+ }
37225
37323
  default:
37226
37324
  reader.skipType(tag & 7);
37227
37325
  break;
@@ -37277,6 +37375,15 @@
37277
37375
  if (error)
37278
37376
  return "endTime." + error;
37279
37377
  }
37378
+ if (message.expectedFulfillmentPeriod != null && message.hasOwnProperty("expectedFulfillmentPeriod"))
37379
+ switch (message.expectedFulfillmentPeriod) {
37380
+ default:
37381
+ return "expectedFulfillmentPeriod: enum value expected";
37382
+ case 0:
37383
+ case 1:
37384
+ case 2:
37385
+ break;
37386
+ }
37280
37387
  return null;
37281
37388
  };
37282
37389
 
@@ -37312,6 +37419,26 @@
37312
37419
  throw TypeError(".google.spanner.admin.instance.v1.UpdateInstanceMetadata.endTime: object expected");
37313
37420
  message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime);
37314
37421
  }
37422
+ switch (object.expectedFulfillmentPeriod) {
37423
+ default:
37424
+ if (typeof object.expectedFulfillmentPeriod === "number") {
37425
+ message.expectedFulfillmentPeriod = object.expectedFulfillmentPeriod;
37426
+ break;
37427
+ }
37428
+ break;
37429
+ case "FULFILLMENT_PERIOD_UNSPECIFIED":
37430
+ case 0:
37431
+ message.expectedFulfillmentPeriod = 0;
37432
+ break;
37433
+ case "FULFILLMENT_PERIOD_NORMAL":
37434
+ case 1:
37435
+ message.expectedFulfillmentPeriod = 1;
37436
+ break;
37437
+ case "FULFILLMENT_PERIOD_EXTENDED":
37438
+ case 2:
37439
+ message.expectedFulfillmentPeriod = 2;
37440
+ break;
37441
+ }
37315
37442
  return message;
37316
37443
  };
37317
37444
 
@@ -37333,6 +37460,7 @@
37333
37460
  object.startTime = null;
37334
37461
  object.cancelTime = null;
37335
37462
  object.endTime = null;
37463
+ object.expectedFulfillmentPeriod = options.enums === String ? "FULFILLMENT_PERIOD_UNSPECIFIED" : 0;
37336
37464
  }
37337
37465
  if (message.instance != null && message.hasOwnProperty("instance"))
37338
37466
  object.instance = $root.google.spanner.admin.instance.v1.Instance.toObject(message.instance, options);
@@ -37342,6 +37470,8 @@
37342
37470
  object.cancelTime = $root.google.protobuf.Timestamp.toObject(message.cancelTime, options);
37343
37471
  if (message.endTime != null && message.hasOwnProperty("endTime"))
37344
37472
  object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options);
37473
+ if (message.expectedFulfillmentPeriod != null && message.hasOwnProperty("expectedFulfillmentPeriod"))
37474
+ object.expectedFulfillmentPeriod = options.enums === String ? $root.google.spanner.admin.instance.v1.FulfillmentPeriod[message.expectedFulfillmentPeriod] === undefined ? message.expectedFulfillmentPeriod : $root.google.spanner.admin.instance.v1.FulfillmentPeriod[message.expectedFulfillmentPeriod] : message.expectedFulfillmentPeriod;
37345
37475
  return object;
37346
37476
  };
37347
37477
 
@@ -41676,6 +41806,7 @@
41676
41806
  * @memberof google.spanner.executor.v1
41677
41807
  * @interface ISpannerAction
41678
41808
  * @property {string|null} [databasePath] SpannerAction databasePath
41809
+ * @property {google.spanner.executor.v1.ISpannerOptions|null} [spannerOptions] SpannerAction spannerOptions
41679
41810
  * @property {google.spanner.executor.v1.IStartTransactionAction|null} [start] SpannerAction start
41680
41811
  * @property {google.spanner.executor.v1.IFinishTransactionAction|null} [finish] SpannerAction finish
41681
41812
  * @property {google.spanner.executor.v1.IReadAction|null} [read] SpannerAction read
@@ -41717,6 +41848,14 @@
41717
41848
  */
41718
41849
  SpannerAction.prototype.databasePath = "";
41719
41850
 
41851
+ /**
41852
+ * SpannerAction spannerOptions.
41853
+ * @member {google.spanner.executor.v1.ISpannerOptions|null|undefined} spannerOptions
41854
+ * @memberof google.spanner.executor.v1.SpannerAction
41855
+ * @instance
41856
+ */
41857
+ SpannerAction.prototype.spannerOptions = null;
41858
+
41720
41859
  /**
41721
41860
  * SpannerAction start.
41722
41861
  * @member {google.spanner.executor.v1.IStartTransactionAction|null|undefined} start
@@ -41885,6 +42024,8 @@
41885
42024
  writer = $Writer.create();
41886
42025
  if (message.databasePath != null && Object.hasOwnProperty.call(message, "databasePath"))
41887
42026
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.databasePath);
42027
+ if (message.spannerOptions != null && Object.hasOwnProperty.call(message, "spannerOptions"))
42028
+ $root.google.spanner.executor.v1.SpannerOptions.encode(message.spannerOptions, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
41888
42029
  if (message.start != null && Object.hasOwnProperty.call(message, "start"))
41889
42030
  $root.google.spanner.executor.v1.StartTransactionAction.encode(message.start, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
41890
42031
  if (message.finish != null && Object.hasOwnProperty.call(message, "finish"))
@@ -41955,6 +42096,10 @@
41955
42096
  message.databasePath = reader.string();
41956
42097
  break;
41957
42098
  }
42099
+ case 2: {
42100
+ message.spannerOptions = $root.google.spanner.executor.v1.SpannerOptions.decode(reader, reader.uint32());
42101
+ break;
42102
+ }
41958
42103
  case 10: {
41959
42104
  message.start = $root.google.spanner.executor.v1.StartTransactionAction.decode(reader, reader.uint32());
41960
42105
  break;
@@ -42058,6 +42203,11 @@
42058
42203
  if (message.databasePath != null && message.hasOwnProperty("databasePath"))
42059
42204
  if (!$util.isString(message.databasePath))
42060
42205
  return "databasePath: string expected";
42206
+ if (message.spannerOptions != null && message.hasOwnProperty("spannerOptions")) {
42207
+ var error = $root.google.spanner.executor.v1.SpannerOptions.verify(message.spannerOptions);
42208
+ if (error)
42209
+ return "spannerOptions." + error;
42210
+ }
42061
42211
  if (message.start != null && message.hasOwnProperty("start")) {
42062
42212
  properties.action = 1;
42063
42213
  {
@@ -42233,6 +42383,11 @@
42233
42383
  var message = new $root.google.spanner.executor.v1.SpannerAction();
42234
42384
  if (object.databasePath != null)
42235
42385
  message.databasePath = String(object.databasePath);
42386
+ if (object.spannerOptions != null) {
42387
+ if (typeof object.spannerOptions !== "object")
42388
+ throw TypeError(".google.spanner.executor.v1.SpannerAction.spannerOptions: object expected");
42389
+ message.spannerOptions = $root.google.spanner.executor.v1.SpannerOptions.fromObject(object.spannerOptions);
42390
+ }
42236
42391
  if (object.start != null) {
42237
42392
  if (typeof object.start !== "object")
42238
42393
  throw TypeError(".google.spanner.executor.v1.SpannerAction.start: object expected");
@@ -42329,10 +42484,14 @@
42329
42484
  if (!options)
42330
42485
  options = {};
42331
42486
  var object = {};
42332
- if (options.defaults)
42487
+ if (options.defaults) {
42333
42488
  object.databasePath = "";
42489
+ object.spannerOptions = null;
42490
+ }
42334
42491
  if (message.databasePath != null && message.hasOwnProperty("databasePath"))
42335
42492
  object.databasePath = message.databasePath;
42493
+ if (message.spannerOptions != null && message.hasOwnProperty("spannerOptions"))
42494
+ object.spannerOptions = $root.google.spanner.executor.v1.SpannerOptions.toObject(message.spannerOptions, options);
42336
42495
  if (message.start != null && message.hasOwnProperty("start")) {
42337
42496
  object.start = $root.google.spanner.executor.v1.StartTransactionAction.toObject(message.start, options);
42338
42497
  if (options.oneofs)
@@ -48951,7 +49110,7 @@
48951
49110
  * @property {google.spanner.executor.v1.IListCloudBackupOperationsAction|null} [listCloudBackupOperations] AdminAction listCloudBackupOperations
48952
49111
  * @property {google.spanner.executor.v1.IGetOperationAction|null} [getOperation] AdminAction getOperation
48953
49112
  * @property {google.spanner.executor.v1.ICancelOperationAction|null} [cancelOperation] AdminAction cancelOperation
48954
- * @property {google.spanner.executor.v1.IReconfigureCloudDatabaseAction|null} [reconfigureCloudDatabase] AdminAction reconfigureCloudDatabase
49113
+ * @property {google.spanner.executor.v1.IChangeQuorumCloudDatabaseAction|null} [changeQuorumCloudDatabase] AdminAction changeQuorumCloudDatabase
48955
49114
  */
48956
49115
 
48957
49116
  /**
@@ -49186,24 +49345,24 @@
49186
49345
  AdminAction.prototype.cancelOperation = null;
49187
49346
 
49188
49347
  /**
49189
- * AdminAction reconfigureCloudDatabase.
49190
- * @member {google.spanner.executor.v1.IReconfigureCloudDatabaseAction|null|undefined} reconfigureCloudDatabase
49348
+ * AdminAction changeQuorumCloudDatabase.
49349
+ * @member {google.spanner.executor.v1.IChangeQuorumCloudDatabaseAction|null|undefined} changeQuorumCloudDatabase
49191
49350
  * @memberof google.spanner.executor.v1.AdminAction
49192
49351
  * @instance
49193
49352
  */
49194
- AdminAction.prototype.reconfigureCloudDatabase = null;
49353
+ AdminAction.prototype.changeQuorumCloudDatabase = null;
49195
49354
 
49196
49355
  // OneOf field names bound to virtual getters and setters
49197
49356
  var $oneOfFields;
49198
49357
 
49199
49358
  /**
49200
49359
  * AdminAction action.
49201
- * @member {"createUserInstanceConfig"|"updateUserInstanceConfig"|"deleteUserInstanceConfig"|"getCloudInstanceConfig"|"listInstanceConfigs"|"createCloudInstance"|"updateCloudInstance"|"deleteCloudInstance"|"listCloudInstances"|"getCloudInstance"|"createCloudDatabase"|"updateCloudDatabaseDdl"|"updateCloudDatabase"|"dropCloudDatabase"|"listCloudDatabases"|"listCloudDatabaseOperations"|"restoreCloudDatabase"|"getCloudDatabase"|"createCloudBackup"|"copyCloudBackup"|"getCloudBackup"|"updateCloudBackup"|"deleteCloudBackup"|"listCloudBackups"|"listCloudBackupOperations"|"getOperation"|"cancelOperation"|"reconfigureCloudDatabase"|undefined} action
49360
+ * @member {"createUserInstanceConfig"|"updateUserInstanceConfig"|"deleteUserInstanceConfig"|"getCloudInstanceConfig"|"listInstanceConfigs"|"createCloudInstance"|"updateCloudInstance"|"deleteCloudInstance"|"listCloudInstances"|"getCloudInstance"|"createCloudDatabase"|"updateCloudDatabaseDdl"|"updateCloudDatabase"|"dropCloudDatabase"|"listCloudDatabases"|"listCloudDatabaseOperations"|"restoreCloudDatabase"|"getCloudDatabase"|"createCloudBackup"|"copyCloudBackup"|"getCloudBackup"|"updateCloudBackup"|"deleteCloudBackup"|"listCloudBackups"|"listCloudBackupOperations"|"getOperation"|"cancelOperation"|"changeQuorumCloudDatabase"|undefined} action
49202
49361
  * @memberof google.spanner.executor.v1.AdminAction
49203
49362
  * @instance
49204
49363
  */
49205
49364
  Object.defineProperty(AdminAction.prototype, "action", {
49206
- get: $util.oneOfGetter($oneOfFields = ["createUserInstanceConfig", "updateUserInstanceConfig", "deleteUserInstanceConfig", "getCloudInstanceConfig", "listInstanceConfigs", "createCloudInstance", "updateCloudInstance", "deleteCloudInstance", "listCloudInstances", "getCloudInstance", "createCloudDatabase", "updateCloudDatabaseDdl", "updateCloudDatabase", "dropCloudDatabase", "listCloudDatabases", "listCloudDatabaseOperations", "restoreCloudDatabase", "getCloudDatabase", "createCloudBackup", "copyCloudBackup", "getCloudBackup", "updateCloudBackup", "deleteCloudBackup", "listCloudBackups", "listCloudBackupOperations", "getOperation", "cancelOperation", "reconfigureCloudDatabase"]),
49365
+ get: $util.oneOfGetter($oneOfFields = ["createUserInstanceConfig", "updateUserInstanceConfig", "deleteUserInstanceConfig", "getCloudInstanceConfig", "listInstanceConfigs", "createCloudInstance", "updateCloudInstance", "deleteCloudInstance", "listCloudInstances", "getCloudInstance", "createCloudDatabase", "updateCloudDatabaseDdl", "updateCloudDatabase", "dropCloudDatabase", "listCloudDatabases", "listCloudDatabaseOperations", "restoreCloudDatabase", "getCloudDatabase", "createCloudBackup", "copyCloudBackup", "getCloudBackup", "updateCloudBackup", "deleteCloudBackup", "listCloudBackups", "listCloudBackupOperations", "getOperation", "cancelOperation", "changeQuorumCloudDatabase"]),
49207
49366
  set: $util.oneOfSetter($oneOfFields)
49208
49367
  });
49209
49368
 
@@ -49285,8 +49444,8 @@
49285
49444
  $root.google.spanner.executor.v1.CancelOperationAction.encode(message.cancelOperation, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
49286
49445
  if (message.updateCloudDatabase != null && Object.hasOwnProperty.call(message, "updateCloudDatabase"))
49287
49446
  $root.google.spanner.executor.v1.UpdateCloudDatabaseAction.encode(message.updateCloudDatabase, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
49288
- if (message.reconfigureCloudDatabase != null && Object.hasOwnProperty.call(message, "reconfigureCloudDatabase"))
49289
- $root.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.encode(message.reconfigureCloudDatabase, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim();
49447
+ if (message.changeQuorumCloudDatabase != null && Object.hasOwnProperty.call(message, "changeQuorumCloudDatabase"))
49448
+ $root.google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction.encode(message.changeQuorumCloudDatabase, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim();
49290
49449
  return writer;
49291
49450
  };
49292
49451
 
@@ -49430,7 +49589,7 @@
49430
49589
  break;
49431
49590
  }
49432
49591
  case 28: {
49433
- message.reconfigureCloudDatabase = $root.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.decode(reader, reader.uint32());
49592
+ message.changeQuorumCloudDatabase = $root.google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction.decode(reader, reader.uint32());
49434
49593
  break;
49435
49594
  }
49436
49595
  default:
@@ -49737,14 +49896,14 @@
49737
49896
  return "cancelOperation." + error;
49738
49897
  }
49739
49898
  }
49740
- if (message.reconfigureCloudDatabase != null && message.hasOwnProperty("reconfigureCloudDatabase")) {
49899
+ if (message.changeQuorumCloudDatabase != null && message.hasOwnProperty("changeQuorumCloudDatabase")) {
49741
49900
  if (properties.action === 1)
49742
49901
  return "action: multiple values";
49743
49902
  properties.action = 1;
49744
49903
  {
49745
- var error = $root.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.verify(message.reconfigureCloudDatabase);
49904
+ var error = $root.google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction.verify(message.changeQuorumCloudDatabase);
49746
49905
  if (error)
49747
- return "reconfigureCloudDatabase." + error;
49906
+ return "changeQuorumCloudDatabase." + error;
49748
49907
  }
49749
49908
  }
49750
49909
  return null;
@@ -49897,10 +50056,10 @@
49897
50056
  throw TypeError(".google.spanner.executor.v1.AdminAction.cancelOperation: object expected");
49898
50057
  message.cancelOperation = $root.google.spanner.executor.v1.CancelOperationAction.fromObject(object.cancelOperation);
49899
50058
  }
49900
- if (object.reconfigureCloudDatabase != null) {
49901
- if (typeof object.reconfigureCloudDatabase !== "object")
49902
- throw TypeError(".google.spanner.executor.v1.AdminAction.reconfigureCloudDatabase: object expected");
49903
- message.reconfigureCloudDatabase = $root.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.fromObject(object.reconfigureCloudDatabase);
50059
+ if (object.changeQuorumCloudDatabase != null) {
50060
+ if (typeof object.changeQuorumCloudDatabase !== "object")
50061
+ throw TypeError(".google.spanner.executor.v1.AdminAction.changeQuorumCloudDatabase: object expected");
50062
+ message.changeQuorumCloudDatabase = $root.google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction.fromObject(object.changeQuorumCloudDatabase);
49904
50063
  }
49905
50064
  return message;
49906
50065
  };
@@ -50053,10 +50212,10 @@
50053
50212
  if (options.oneofs)
50054
50213
  object.action = "updateCloudDatabase";
50055
50214
  }
50056
- if (message.reconfigureCloudDatabase != null && message.hasOwnProperty("reconfigureCloudDatabase")) {
50057
- object.reconfigureCloudDatabase = $root.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.toObject(message.reconfigureCloudDatabase, options);
50215
+ if (message.changeQuorumCloudDatabase != null && message.hasOwnProperty("changeQuorumCloudDatabase")) {
50216
+ object.changeQuorumCloudDatabase = $root.google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction.toObject(message.changeQuorumCloudDatabase, options);
50058
50217
  if (options.oneofs)
50059
- object.action = "reconfigureCloudDatabase";
50218
+ object.action = "changeQuorumCloudDatabase";
50060
50219
  }
50061
50220
  return object;
50062
50221
  };
@@ -53840,25 +53999,25 @@
53840
53999
  return DropCloudDatabaseAction;
53841
54000
  })();
53842
54001
 
53843
- v1.ReconfigureCloudDatabaseAction = (function() {
54002
+ v1.ChangeQuorumCloudDatabaseAction = (function() {
53844
54003
 
53845
54004
  /**
53846
- * Properties of a ReconfigureCloudDatabaseAction.
54005
+ * Properties of a ChangeQuorumCloudDatabaseAction.
53847
54006
  * @memberof google.spanner.executor.v1
53848
- * @interface IReconfigureCloudDatabaseAction
53849
- * @property {string|null} [databaseUri] ReconfigureCloudDatabaseAction databaseUri
53850
- * @property {Array.<string>|null} [servingLocations] ReconfigureCloudDatabaseAction servingLocations
54007
+ * @interface IChangeQuorumCloudDatabaseAction
54008
+ * @property {string|null} [databaseUri] ChangeQuorumCloudDatabaseAction databaseUri
54009
+ * @property {Array.<string>|null} [servingLocations] ChangeQuorumCloudDatabaseAction servingLocations
53851
54010
  */
53852
54011
 
53853
54012
  /**
53854
- * Constructs a new ReconfigureCloudDatabaseAction.
54013
+ * Constructs a new ChangeQuorumCloudDatabaseAction.
53855
54014
  * @memberof google.spanner.executor.v1
53856
- * @classdesc Represents a ReconfigureCloudDatabaseAction.
53857
- * @implements IReconfigureCloudDatabaseAction
54015
+ * @classdesc Represents a ChangeQuorumCloudDatabaseAction.
54016
+ * @implements IChangeQuorumCloudDatabaseAction
53858
54017
  * @constructor
53859
- * @param {google.spanner.executor.v1.IReconfigureCloudDatabaseAction=} [properties] Properties to set
54018
+ * @param {google.spanner.executor.v1.IChangeQuorumCloudDatabaseAction=} [properties] Properties to set
53860
54019
  */
53861
- function ReconfigureCloudDatabaseAction(properties) {
54020
+ function ChangeQuorumCloudDatabaseAction(properties) {
53862
54021
  this.servingLocations = [];
53863
54022
  if (properties)
53864
54023
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
@@ -53867,57 +54026,57 @@
53867
54026
  }
53868
54027
 
53869
54028
  /**
53870
- * ReconfigureCloudDatabaseAction databaseUri.
54029
+ * ChangeQuorumCloudDatabaseAction databaseUri.
53871
54030
  * @member {string|null|undefined} databaseUri
53872
- * @memberof google.spanner.executor.v1.ReconfigureCloudDatabaseAction
54031
+ * @memberof google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction
53873
54032
  * @instance
53874
54033
  */
53875
- ReconfigureCloudDatabaseAction.prototype.databaseUri = null;
54034
+ ChangeQuorumCloudDatabaseAction.prototype.databaseUri = null;
53876
54035
 
53877
54036
  /**
53878
- * ReconfigureCloudDatabaseAction servingLocations.
54037
+ * ChangeQuorumCloudDatabaseAction servingLocations.
53879
54038
  * @member {Array.<string>} servingLocations
53880
- * @memberof google.spanner.executor.v1.ReconfigureCloudDatabaseAction
54039
+ * @memberof google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction
53881
54040
  * @instance
53882
54041
  */
53883
- ReconfigureCloudDatabaseAction.prototype.servingLocations = $util.emptyArray;
54042
+ ChangeQuorumCloudDatabaseAction.prototype.servingLocations = $util.emptyArray;
53884
54043
 
53885
54044
  // OneOf field names bound to virtual getters and setters
53886
54045
  var $oneOfFields;
53887
54046
 
53888
54047
  /**
53889
- * ReconfigureCloudDatabaseAction _databaseUri.
54048
+ * ChangeQuorumCloudDatabaseAction _databaseUri.
53890
54049
  * @member {"databaseUri"|undefined} _databaseUri
53891
- * @memberof google.spanner.executor.v1.ReconfigureCloudDatabaseAction
54050
+ * @memberof google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction
53892
54051
  * @instance
53893
54052
  */
53894
- Object.defineProperty(ReconfigureCloudDatabaseAction.prototype, "_databaseUri", {
54053
+ Object.defineProperty(ChangeQuorumCloudDatabaseAction.prototype, "_databaseUri", {
53895
54054
  get: $util.oneOfGetter($oneOfFields = ["databaseUri"]),
53896
54055
  set: $util.oneOfSetter($oneOfFields)
53897
54056
  });
53898
54057
 
53899
54058
  /**
53900
- * Creates a new ReconfigureCloudDatabaseAction instance using the specified properties.
54059
+ * Creates a new ChangeQuorumCloudDatabaseAction instance using the specified properties.
53901
54060
  * @function create
53902
- * @memberof google.spanner.executor.v1.ReconfigureCloudDatabaseAction
54061
+ * @memberof google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction
53903
54062
  * @static
53904
- * @param {google.spanner.executor.v1.IReconfigureCloudDatabaseAction=} [properties] Properties to set
53905
- * @returns {google.spanner.executor.v1.ReconfigureCloudDatabaseAction} ReconfigureCloudDatabaseAction instance
54063
+ * @param {google.spanner.executor.v1.IChangeQuorumCloudDatabaseAction=} [properties] Properties to set
54064
+ * @returns {google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction} ChangeQuorumCloudDatabaseAction instance
53906
54065
  */
53907
- ReconfigureCloudDatabaseAction.create = function create(properties) {
53908
- return new ReconfigureCloudDatabaseAction(properties);
54066
+ ChangeQuorumCloudDatabaseAction.create = function create(properties) {
54067
+ return new ChangeQuorumCloudDatabaseAction(properties);
53909
54068
  };
53910
54069
 
53911
54070
  /**
53912
- * Encodes the specified ReconfigureCloudDatabaseAction message. Does not implicitly {@link google.spanner.executor.v1.ReconfigureCloudDatabaseAction.verify|verify} messages.
54071
+ * Encodes the specified ChangeQuorumCloudDatabaseAction message. Does not implicitly {@link google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction.verify|verify} messages.
53913
54072
  * @function encode
53914
- * @memberof google.spanner.executor.v1.ReconfigureCloudDatabaseAction
54073
+ * @memberof google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction
53915
54074
  * @static
53916
- * @param {google.spanner.executor.v1.IReconfigureCloudDatabaseAction} message ReconfigureCloudDatabaseAction message or plain object to encode
54075
+ * @param {google.spanner.executor.v1.IChangeQuorumCloudDatabaseAction} message ChangeQuorumCloudDatabaseAction message or plain object to encode
53917
54076
  * @param {$protobuf.Writer} [writer] Writer to encode to
53918
54077
  * @returns {$protobuf.Writer} Writer
53919
54078
  */
53920
- ReconfigureCloudDatabaseAction.encode = function encode(message, writer) {
54079
+ ChangeQuorumCloudDatabaseAction.encode = function encode(message, writer) {
53921
54080
  if (!writer)
53922
54081
  writer = $Writer.create();
53923
54082
  if (message.databaseUri != null && Object.hasOwnProperty.call(message, "databaseUri"))
@@ -53929,33 +54088,33 @@
53929
54088
  };
53930
54089
 
53931
54090
  /**
53932
- * Encodes the specified ReconfigureCloudDatabaseAction message, length delimited. Does not implicitly {@link google.spanner.executor.v1.ReconfigureCloudDatabaseAction.verify|verify} messages.
54091
+ * Encodes the specified ChangeQuorumCloudDatabaseAction message, length delimited. Does not implicitly {@link google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction.verify|verify} messages.
53933
54092
  * @function encodeDelimited
53934
- * @memberof google.spanner.executor.v1.ReconfigureCloudDatabaseAction
54093
+ * @memberof google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction
53935
54094
  * @static
53936
- * @param {google.spanner.executor.v1.IReconfigureCloudDatabaseAction} message ReconfigureCloudDatabaseAction message or plain object to encode
54095
+ * @param {google.spanner.executor.v1.IChangeQuorumCloudDatabaseAction} message ChangeQuorumCloudDatabaseAction message or plain object to encode
53937
54096
  * @param {$protobuf.Writer} [writer] Writer to encode to
53938
54097
  * @returns {$protobuf.Writer} Writer
53939
54098
  */
53940
- ReconfigureCloudDatabaseAction.encodeDelimited = function encodeDelimited(message, writer) {
54099
+ ChangeQuorumCloudDatabaseAction.encodeDelimited = function encodeDelimited(message, writer) {
53941
54100
  return this.encode(message, writer).ldelim();
53942
54101
  };
53943
54102
 
53944
54103
  /**
53945
- * Decodes a ReconfigureCloudDatabaseAction message from the specified reader or buffer.
54104
+ * Decodes a ChangeQuorumCloudDatabaseAction message from the specified reader or buffer.
53946
54105
  * @function decode
53947
- * @memberof google.spanner.executor.v1.ReconfigureCloudDatabaseAction
54106
+ * @memberof google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction
53948
54107
  * @static
53949
54108
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
53950
54109
  * @param {number} [length] Message length if known beforehand
53951
- * @returns {google.spanner.executor.v1.ReconfigureCloudDatabaseAction} ReconfigureCloudDatabaseAction
54110
+ * @returns {google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction} ChangeQuorumCloudDatabaseAction
53952
54111
  * @throws {Error} If the payload is not a reader or valid buffer
53953
54112
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
53954
54113
  */
53955
- ReconfigureCloudDatabaseAction.decode = function decode(reader, length) {
54114
+ ChangeQuorumCloudDatabaseAction.decode = function decode(reader, length) {
53956
54115
  if (!(reader instanceof $Reader))
53957
54116
  reader = $Reader.create(reader);
53958
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.spanner.executor.v1.ReconfigureCloudDatabaseAction();
54117
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction();
53959
54118
  while (reader.pos < end) {
53960
54119
  var tag = reader.uint32();
53961
54120
  switch (tag >>> 3) {
@@ -53978,30 +54137,30 @@
53978
54137
  };
53979
54138
 
53980
54139
  /**
53981
- * Decodes a ReconfigureCloudDatabaseAction message from the specified reader or buffer, length delimited.
54140
+ * Decodes a ChangeQuorumCloudDatabaseAction message from the specified reader or buffer, length delimited.
53982
54141
  * @function decodeDelimited
53983
- * @memberof google.spanner.executor.v1.ReconfigureCloudDatabaseAction
54142
+ * @memberof google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction
53984
54143
  * @static
53985
54144
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
53986
- * @returns {google.spanner.executor.v1.ReconfigureCloudDatabaseAction} ReconfigureCloudDatabaseAction
54145
+ * @returns {google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction} ChangeQuorumCloudDatabaseAction
53987
54146
  * @throws {Error} If the payload is not a reader or valid buffer
53988
54147
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
53989
54148
  */
53990
- ReconfigureCloudDatabaseAction.decodeDelimited = function decodeDelimited(reader) {
54149
+ ChangeQuorumCloudDatabaseAction.decodeDelimited = function decodeDelimited(reader) {
53991
54150
  if (!(reader instanceof $Reader))
53992
54151
  reader = new $Reader(reader);
53993
54152
  return this.decode(reader, reader.uint32());
53994
54153
  };
53995
54154
 
53996
54155
  /**
53997
- * Verifies a ReconfigureCloudDatabaseAction message.
54156
+ * Verifies a ChangeQuorumCloudDatabaseAction message.
53998
54157
  * @function verify
53999
- * @memberof google.spanner.executor.v1.ReconfigureCloudDatabaseAction
54158
+ * @memberof google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction
54000
54159
  * @static
54001
54160
  * @param {Object.<string,*>} message Plain object to verify
54002
54161
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
54003
54162
  */
54004
- ReconfigureCloudDatabaseAction.verify = function verify(message) {
54163
+ ChangeQuorumCloudDatabaseAction.verify = function verify(message) {
54005
54164
  if (typeof message !== "object" || message === null)
54006
54165
  return "object expected";
54007
54166
  var properties = {};
@@ -54021,22 +54180,22 @@
54021
54180
  };
54022
54181
 
54023
54182
  /**
54024
- * Creates a ReconfigureCloudDatabaseAction message from a plain object. Also converts values to their respective internal types.
54183
+ * Creates a ChangeQuorumCloudDatabaseAction message from a plain object. Also converts values to their respective internal types.
54025
54184
  * @function fromObject
54026
- * @memberof google.spanner.executor.v1.ReconfigureCloudDatabaseAction
54185
+ * @memberof google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction
54027
54186
  * @static
54028
54187
  * @param {Object.<string,*>} object Plain object
54029
- * @returns {google.spanner.executor.v1.ReconfigureCloudDatabaseAction} ReconfigureCloudDatabaseAction
54188
+ * @returns {google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction} ChangeQuorumCloudDatabaseAction
54030
54189
  */
54031
- ReconfigureCloudDatabaseAction.fromObject = function fromObject(object) {
54032
- if (object instanceof $root.google.spanner.executor.v1.ReconfigureCloudDatabaseAction)
54190
+ ChangeQuorumCloudDatabaseAction.fromObject = function fromObject(object) {
54191
+ if (object instanceof $root.google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction)
54033
54192
  return object;
54034
- var message = new $root.google.spanner.executor.v1.ReconfigureCloudDatabaseAction();
54193
+ var message = new $root.google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction();
54035
54194
  if (object.databaseUri != null)
54036
54195
  message.databaseUri = String(object.databaseUri);
54037
54196
  if (object.servingLocations) {
54038
54197
  if (!Array.isArray(object.servingLocations))
54039
- throw TypeError(".google.spanner.executor.v1.ReconfigureCloudDatabaseAction.servingLocations: array expected");
54198
+ throw TypeError(".google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction.servingLocations: array expected");
54040
54199
  message.servingLocations = [];
54041
54200
  for (var i = 0; i < object.servingLocations.length; ++i)
54042
54201
  message.servingLocations[i] = String(object.servingLocations[i]);
@@ -54045,15 +54204,15 @@
54045
54204
  };
54046
54205
 
54047
54206
  /**
54048
- * Creates a plain object from a ReconfigureCloudDatabaseAction message. Also converts values to other types if specified.
54207
+ * Creates a plain object from a ChangeQuorumCloudDatabaseAction message. Also converts values to other types if specified.
54049
54208
  * @function toObject
54050
- * @memberof google.spanner.executor.v1.ReconfigureCloudDatabaseAction
54209
+ * @memberof google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction
54051
54210
  * @static
54052
- * @param {google.spanner.executor.v1.ReconfigureCloudDatabaseAction} message ReconfigureCloudDatabaseAction
54211
+ * @param {google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction} message ChangeQuorumCloudDatabaseAction
54053
54212
  * @param {$protobuf.IConversionOptions} [options] Conversion options
54054
54213
  * @returns {Object.<string,*>} Plain object
54055
54214
  */
54056
- ReconfigureCloudDatabaseAction.toObject = function toObject(message, options) {
54215
+ ChangeQuorumCloudDatabaseAction.toObject = function toObject(message, options) {
54057
54216
  if (!options)
54058
54217
  options = {};
54059
54218
  var object = {};
@@ -54073,32 +54232,32 @@
54073
54232
  };
54074
54233
 
54075
54234
  /**
54076
- * Converts this ReconfigureCloudDatabaseAction to JSON.
54235
+ * Converts this ChangeQuorumCloudDatabaseAction to JSON.
54077
54236
  * @function toJSON
54078
- * @memberof google.spanner.executor.v1.ReconfigureCloudDatabaseAction
54237
+ * @memberof google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction
54079
54238
  * @instance
54080
54239
  * @returns {Object.<string,*>} JSON object
54081
54240
  */
54082
- ReconfigureCloudDatabaseAction.prototype.toJSON = function toJSON() {
54241
+ ChangeQuorumCloudDatabaseAction.prototype.toJSON = function toJSON() {
54083
54242
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
54084
54243
  };
54085
54244
 
54086
54245
  /**
54087
- * Gets the default type url for ReconfigureCloudDatabaseAction
54246
+ * Gets the default type url for ChangeQuorumCloudDatabaseAction
54088
54247
  * @function getTypeUrl
54089
- * @memberof google.spanner.executor.v1.ReconfigureCloudDatabaseAction
54248
+ * @memberof google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction
54090
54249
  * @static
54091
54250
  * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
54092
54251
  * @returns {string} The default type url
54093
54252
  */
54094
- ReconfigureCloudDatabaseAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
54253
+ ChangeQuorumCloudDatabaseAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
54095
54254
  if (typeUrlPrefix === undefined) {
54096
54255
  typeUrlPrefix = "type.googleapis.com";
54097
54256
  }
54098
- return typeUrlPrefix + "/google.spanner.executor.v1.ReconfigureCloudDatabaseAction";
54257
+ return typeUrlPrefix + "/google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction";
54099
54258
  };
54100
54259
 
54101
- return ReconfigureCloudDatabaseAction;
54260
+ return ChangeQuorumCloudDatabaseAction;
54102
54261
  })();
54103
54262
 
54104
54263
  v1.ListCloudDatabasesAction = (function() {
@@ -55229,6 +55388,7 @@
55229
55388
  * @property {string|null} [backupId] RestoreCloudDatabaseAction backupId
55230
55389
  * @property {string|null} [databaseInstanceId] RestoreCloudDatabaseAction databaseInstanceId
55231
55390
  * @property {string|null} [databaseId] RestoreCloudDatabaseAction databaseId
55391
+ * @property {google.spanner.admin.database.v1.IEncryptionConfig|null} [encryptionConfig] RestoreCloudDatabaseAction encryptionConfig
55232
55392
  */
55233
55393
 
55234
55394
  /**
@@ -55286,6 +55446,14 @@
55286
55446
  */
55287
55447
  RestoreCloudDatabaseAction.prototype.databaseId = "";
55288
55448
 
55449
+ /**
55450
+ * RestoreCloudDatabaseAction encryptionConfig.
55451
+ * @member {google.spanner.admin.database.v1.IEncryptionConfig|null|undefined} encryptionConfig
55452
+ * @memberof google.spanner.executor.v1.RestoreCloudDatabaseAction
55453
+ * @instance
55454
+ */
55455
+ RestoreCloudDatabaseAction.prototype.encryptionConfig = null;
55456
+
55289
55457
  /**
55290
55458
  * Creates a new RestoreCloudDatabaseAction instance using the specified properties.
55291
55459
  * @function create
@@ -55320,6 +55488,8 @@
55320
55488
  writer.uint32(/* id 4, wireType 2 =*/34).string(message.databaseInstanceId);
55321
55489
  if (message.databaseId != null && Object.hasOwnProperty.call(message, "databaseId"))
55322
55490
  writer.uint32(/* id 5, wireType 2 =*/42).string(message.databaseId);
55491
+ if (message.encryptionConfig != null && Object.hasOwnProperty.call(message, "encryptionConfig"))
55492
+ $root.google.spanner.admin.database.v1.EncryptionConfig.encode(message.encryptionConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
55323
55493
  return writer;
55324
55494
  };
55325
55495
 
@@ -55374,6 +55544,10 @@
55374
55544
  message.databaseId = reader.string();
55375
55545
  break;
55376
55546
  }
55547
+ case 7: {
55548
+ message.encryptionConfig = $root.google.spanner.admin.database.v1.EncryptionConfig.decode(reader, reader.uint32());
55549
+ break;
55550
+ }
55377
55551
  default:
55378
55552
  reader.skipType(tag & 7);
55379
55553
  break;
@@ -55424,6 +55598,11 @@
55424
55598
  if (message.databaseId != null && message.hasOwnProperty("databaseId"))
55425
55599
  if (!$util.isString(message.databaseId))
55426
55600
  return "databaseId: string expected";
55601
+ if (message.encryptionConfig != null && message.hasOwnProperty("encryptionConfig")) {
55602
+ var error = $root.google.spanner.admin.database.v1.EncryptionConfig.verify(message.encryptionConfig);
55603
+ if (error)
55604
+ return "encryptionConfig." + error;
55605
+ }
55427
55606
  return null;
55428
55607
  };
55429
55608
 
@@ -55449,6 +55628,11 @@
55449
55628
  message.databaseInstanceId = String(object.databaseInstanceId);
55450
55629
  if (object.databaseId != null)
55451
55630
  message.databaseId = String(object.databaseId);
55631
+ if (object.encryptionConfig != null) {
55632
+ if (typeof object.encryptionConfig !== "object")
55633
+ throw TypeError(".google.spanner.executor.v1.RestoreCloudDatabaseAction.encryptionConfig: object expected");
55634
+ message.encryptionConfig = $root.google.spanner.admin.database.v1.EncryptionConfig.fromObject(object.encryptionConfig);
55635
+ }
55452
55636
  return message;
55453
55637
  };
55454
55638
 
@@ -55471,6 +55655,7 @@
55471
55655
  object.backupId = "";
55472
55656
  object.databaseInstanceId = "";
55473
55657
  object.databaseId = "";
55658
+ object.encryptionConfig = null;
55474
55659
  }
55475
55660
  if (message.projectId != null && message.hasOwnProperty("projectId"))
55476
55661
  object.projectId = message.projectId;
@@ -55482,6 +55667,8 @@
55482
55667
  object.databaseInstanceId = message.databaseInstanceId;
55483
55668
  if (message.databaseId != null && message.hasOwnProperty("databaseId"))
55484
55669
  object.databaseId = message.databaseId;
55670
+ if (message.encryptionConfig != null && message.hasOwnProperty("encryptionConfig"))
55671
+ object.encryptionConfig = $root.google.spanner.admin.database.v1.EncryptionConfig.toObject(message.encryptionConfig, options);
55485
55672
  return object;
55486
55673
  };
55487
55674
 
@@ -55776,6 +55963,7 @@
55776
55963
  * @property {string|null} [databaseId] CreateCloudBackupAction databaseId
55777
55964
  * @property {google.protobuf.ITimestamp|null} [expireTime] CreateCloudBackupAction expireTime
55778
55965
  * @property {google.protobuf.ITimestamp|null} [versionTime] CreateCloudBackupAction versionTime
55966
+ * @property {google.spanner.admin.database.v1.IEncryptionConfig|null} [encryptionConfig] CreateCloudBackupAction encryptionConfig
55779
55967
  */
55780
55968
 
55781
55969
  /**
@@ -55841,6 +56029,14 @@
55841
56029
  */
55842
56030
  CreateCloudBackupAction.prototype.versionTime = null;
55843
56031
 
56032
+ /**
56033
+ * CreateCloudBackupAction encryptionConfig.
56034
+ * @member {google.spanner.admin.database.v1.IEncryptionConfig|null|undefined} encryptionConfig
56035
+ * @memberof google.spanner.executor.v1.CreateCloudBackupAction
56036
+ * @instance
56037
+ */
56038
+ CreateCloudBackupAction.prototype.encryptionConfig = null;
56039
+
55844
56040
  // OneOf field names bound to virtual getters and setters
55845
56041
  var $oneOfFields;
55846
56042
 
@@ -55891,6 +56087,8 @@
55891
56087
  $root.google.protobuf.Timestamp.encode(message.expireTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
55892
56088
  if (message.versionTime != null && Object.hasOwnProperty.call(message, "versionTime"))
55893
56089
  $root.google.protobuf.Timestamp.encode(message.versionTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
56090
+ if (message.encryptionConfig != null && Object.hasOwnProperty.call(message, "encryptionConfig"))
56091
+ $root.google.spanner.admin.database.v1.EncryptionConfig.encode(message.encryptionConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
55894
56092
  return writer;
55895
56093
  };
55896
56094
 
@@ -55949,6 +56147,10 @@
55949
56147
  message.versionTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
55950
56148
  break;
55951
56149
  }
56150
+ case 7: {
56151
+ message.encryptionConfig = $root.google.spanner.admin.database.v1.EncryptionConfig.decode(reader, reader.uint32());
56152
+ break;
56153
+ }
55952
56154
  default:
55953
56155
  reader.skipType(tag & 7);
55954
56156
  break;
@@ -56010,6 +56212,11 @@
56010
56212
  return "versionTime." + error;
56011
56213
  }
56012
56214
  }
56215
+ if (message.encryptionConfig != null && message.hasOwnProperty("encryptionConfig")) {
56216
+ var error = $root.google.spanner.admin.database.v1.EncryptionConfig.verify(message.encryptionConfig);
56217
+ if (error)
56218
+ return "encryptionConfig." + error;
56219
+ }
56013
56220
  return null;
56014
56221
  };
56015
56222
 
@@ -56043,6 +56250,11 @@
56043
56250
  throw TypeError(".google.spanner.executor.v1.CreateCloudBackupAction.versionTime: object expected");
56044
56251
  message.versionTime = $root.google.protobuf.Timestamp.fromObject(object.versionTime);
56045
56252
  }
56253
+ if (object.encryptionConfig != null) {
56254
+ if (typeof object.encryptionConfig !== "object")
56255
+ throw TypeError(".google.spanner.executor.v1.CreateCloudBackupAction.encryptionConfig: object expected");
56256
+ message.encryptionConfig = $root.google.spanner.admin.database.v1.EncryptionConfig.fromObject(object.encryptionConfig);
56257
+ }
56046
56258
  return message;
56047
56259
  };
56048
56260
 
@@ -56065,6 +56277,7 @@
56065
56277
  object.backupId = "";
56066
56278
  object.databaseId = "";
56067
56279
  object.expireTime = null;
56280
+ object.encryptionConfig = null;
56068
56281
  }
56069
56282
  if (message.projectId != null && message.hasOwnProperty("projectId"))
56070
56283
  object.projectId = message.projectId;
@@ -56081,6 +56294,8 @@
56081
56294
  if (options.oneofs)
56082
56295
  object._versionTime = "versionTime";
56083
56296
  }
56297
+ if (message.encryptionConfig != null && message.hasOwnProperty("encryptionConfig"))
56298
+ object.encryptionConfig = $root.google.spanner.admin.database.v1.EncryptionConfig.toObject(message.encryptionConfig, options);
56084
56299
  return object;
56085
56300
  };
56086
56301
 
@@ -65492,6 +65707,417 @@
65492
65707
  return HeartbeatRecord;
65493
65708
  })();
65494
65709
 
65710
+ v1.SpannerOptions = (function() {
65711
+
65712
+ /**
65713
+ * Properties of a SpannerOptions.
65714
+ * @memberof google.spanner.executor.v1
65715
+ * @interface ISpannerOptions
65716
+ * @property {google.spanner.executor.v1.ISessionPoolOptions|null} [sessionPoolOptions] SpannerOptions sessionPoolOptions
65717
+ */
65718
+
65719
+ /**
65720
+ * Constructs a new SpannerOptions.
65721
+ * @memberof google.spanner.executor.v1
65722
+ * @classdesc Represents a SpannerOptions.
65723
+ * @implements ISpannerOptions
65724
+ * @constructor
65725
+ * @param {google.spanner.executor.v1.ISpannerOptions=} [properties] Properties to set
65726
+ */
65727
+ function SpannerOptions(properties) {
65728
+ if (properties)
65729
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
65730
+ if (properties[keys[i]] != null)
65731
+ this[keys[i]] = properties[keys[i]];
65732
+ }
65733
+
65734
+ /**
65735
+ * SpannerOptions sessionPoolOptions.
65736
+ * @member {google.spanner.executor.v1.ISessionPoolOptions|null|undefined} sessionPoolOptions
65737
+ * @memberof google.spanner.executor.v1.SpannerOptions
65738
+ * @instance
65739
+ */
65740
+ SpannerOptions.prototype.sessionPoolOptions = null;
65741
+
65742
+ /**
65743
+ * Creates a new SpannerOptions instance using the specified properties.
65744
+ * @function create
65745
+ * @memberof google.spanner.executor.v1.SpannerOptions
65746
+ * @static
65747
+ * @param {google.spanner.executor.v1.ISpannerOptions=} [properties] Properties to set
65748
+ * @returns {google.spanner.executor.v1.SpannerOptions} SpannerOptions instance
65749
+ */
65750
+ SpannerOptions.create = function create(properties) {
65751
+ return new SpannerOptions(properties);
65752
+ };
65753
+
65754
+ /**
65755
+ * Encodes the specified SpannerOptions message. Does not implicitly {@link google.spanner.executor.v1.SpannerOptions.verify|verify} messages.
65756
+ * @function encode
65757
+ * @memberof google.spanner.executor.v1.SpannerOptions
65758
+ * @static
65759
+ * @param {google.spanner.executor.v1.ISpannerOptions} message SpannerOptions message or plain object to encode
65760
+ * @param {$protobuf.Writer} [writer] Writer to encode to
65761
+ * @returns {$protobuf.Writer} Writer
65762
+ */
65763
+ SpannerOptions.encode = function encode(message, writer) {
65764
+ if (!writer)
65765
+ writer = $Writer.create();
65766
+ if (message.sessionPoolOptions != null && Object.hasOwnProperty.call(message, "sessionPoolOptions"))
65767
+ $root.google.spanner.executor.v1.SessionPoolOptions.encode(message.sessionPoolOptions, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
65768
+ return writer;
65769
+ };
65770
+
65771
+ /**
65772
+ * Encodes the specified SpannerOptions message, length delimited. Does not implicitly {@link google.spanner.executor.v1.SpannerOptions.verify|verify} messages.
65773
+ * @function encodeDelimited
65774
+ * @memberof google.spanner.executor.v1.SpannerOptions
65775
+ * @static
65776
+ * @param {google.spanner.executor.v1.ISpannerOptions} message SpannerOptions message or plain object to encode
65777
+ * @param {$protobuf.Writer} [writer] Writer to encode to
65778
+ * @returns {$protobuf.Writer} Writer
65779
+ */
65780
+ SpannerOptions.encodeDelimited = function encodeDelimited(message, writer) {
65781
+ return this.encode(message, writer).ldelim();
65782
+ };
65783
+
65784
+ /**
65785
+ * Decodes a SpannerOptions message from the specified reader or buffer.
65786
+ * @function decode
65787
+ * @memberof google.spanner.executor.v1.SpannerOptions
65788
+ * @static
65789
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
65790
+ * @param {number} [length] Message length if known beforehand
65791
+ * @returns {google.spanner.executor.v1.SpannerOptions} SpannerOptions
65792
+ * @throws {Error} If the payload is not a reader or valid buffer
65793
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
65794
+ */
65795
+ SpannerOptions.decode = function decode(reader, length) {
65796
+ if (!(reader instanceof $Reader))
65797
+ reader = $Reader.create(reader);
65798
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.spanner.executor.v1.SpannerOptions();
65799
+ while (reader.pos < end) {
65800
+ var tag = reader.uint32();
65801
+ switch (tag >>> 3) {
65802
+ case 1: {
65803
+ message.sessionPoolOptions = $root.google.spanner.executor.v1.SessionPoolOptions.decode(reader, reader.uint32());
65804
+ break;
65805
+ }
65806
+ default:
65807
+ reader.skipType(tag & 7);
65808
+ break;
65809
+ }
65810
+ }
65811
+ return message;
65812
+ };
65813
+
65814
+ /**
65815
+ * Decodes a SpannerOptions message from the specified reader or buffer, length delimited.
65816
+ * @function decodeDelimited
65817
+ * @memberof google.spanner.executor.v1.SpannerOptions
65818
+ * @static
65819
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
65820
+ * @returns {google.spanner.executor.v1.SpannerOptions} SpannerOptions
65821
+ * @throws {Error} If the payload is not a reader or valid buffer
65822
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
65823
+ */
65824
+ SpannerOptions.decodeDelimited = function decodeDelimited(reader) {
65825
+ if (!(reader instanceof $Reader))
65826
+ reader = new $Reader(reader);
65827
+ return this.decode(reader, reader.uint32());
65828
+ };
65829
+
65830
+ /**
65831
+ * Verifies a SpannerOptions message.
65832
+ * @function verify
65833
+ * @memberof google.spanner.executor.v1.SpannerOptions
65834
+ * @static
65835
+ * @param {Object.<string,*>} message Plain object to verify
65836
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
65837
+ */
65838
+ SpannerOptions.verify = function verify(message) {
65839
+ if (typeof message !== "object" || message === null)
65840
+ return "object expected";
65841
+ if (message.sessionPoolOptions != null && message.hasOwnProperty("sessionPoolOptions")) {
65842
+ var error = $root.google.spanner.executor.v1.SessionPoolOptions.verify(message.sessionPoolOptions);
65843
+ if (error)
65844
+ return "sessionPoolOptions." + error;
65845
+ }
65846
+ return null;
65847
+ };
65848
+
65849
+ /**
65850
+ * Creates a SpannerOptions message from a plain object. Also converts values to their respective internal types.
65851
+ * @function fromObject
65852
+ * @memberof google.spanner.executor.v1.SpannerOptions
65853
+ * @static
65854
+ * @param {Object.<string,*>} object Plain object
65855
+ * @returns {google.spanner.executor.v1.SpannerOptions} SpannerOptions
65856
+ */
65857
+ SpannerOptions.fromObject = function fromObject(object) {
65858
+ if (object instanceof $root.google.spanner.executor.v1.SpannerOptions)
65859
+ return object;
65860
+ var message = new $root.google.spanner.executor.v1.SpannerOptions();
65861
+ if (object.sessionPoolOptions != null) {
65862
+ if (typeof object.sessionPoolOptions !== "object")
65863
+ throw TypeError(".google.spanner.executor.v1.SpannerOptions.sessionPoolOptions: object expected");
65864
+ message.sessionPoolOptions = $root.google.spanner.executor.v1.SessionPoolOptions.fromObject(object.sessionPoolOptions);
65865
+ }
65866
+ return message;
65867
+ };
65868
+
65869
+ /**
65870
+ * Creates a plain object from a SpannerOptions message. Also converts values to other types if specified.
65871
+ * @function toObject
65872
+ * @memberof google.spanner.executor.v1.SpannerOptions
65873
+ * @static
65874
+ * @param {google.spanner.executor.v1.SpannerOptions} message SpannerOptions
65875
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
65876
+ * @returns {Object.<string,*>} Plain object
65877
+ */
65878
+ SpannerOptions.toObject = function toObject(message, options) {
65879
+ if (!options)
65880
+ options = {};
65881
+ var object = {};
65882
+ if (options.defaults)
65883
+ object.sessionPoolOptions = null;
65884
+ if (message.sessionPoolOptions != null && message.hasOwnProperty("sessionPoolOptions"))
65885
+ object.sessionPoolOptions = $root.google.spanner.executor.v1.SessionPoolOptions.toObject(message.sessionPoolOptions, options);
65886
+ return object;
65887
+ };
65888
+
65889
+ /**
65890
+ * Converts this SpannerOptions to JSON.
65891
+ * @function toJSON
65892
+ * @memberof google.spanner.executor.v1.SpannerOptions
65893
+ * @instance
65894
+ * @returns {Object.<string,*>} JSON object
65895
+ */
65896
+ SpannerOptions.prototype.toJSON = function toJSON() {
65897
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
65898
+ };
65899
+
65900
+ /**
65901
+ * Gets the default type url for SpannerOptions
65902
+ * @function getTypeUrl
65903
+ * @memberof google.spanner.executor.v1.SpannerOptions
65904
+ * @static
65905
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
65906
+ * @returns {string} The default type url
65907
+ */
65908
+ SpannerOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
65909
+ if (typeUrlPrefix === undefined) {
65910
+ typeUrlPrefix = "type.googleapis.com";
65911
+ }
65912
+ return typeUrlPrefix + "/google.spanner.executor.v1.SpannerOptions";
65913
+ };
65914
+
65915
+ return SpannerOptions;
65916
+ })();
65917
+
65918
+ v1.SessionPoolOptions = (function() {
65919
+
65920
+ /**
65921
+ * Properties of a SessionPoolOptions.
65922
+ * @memberof google.spanner.executor.v1
65923
+ * @interface ISessionPoolOptions
65924
+ * @property {boolean|null} [useMultiplexed] SessionPoolOptions useMultiplexed
65925
+ */
65926
+
65927
+ /**
65928
+ * Constructs a new SessionPoolOptions.
65929
+ * @memberof google.spanner.executor.v1
65930
+ * @classdesc Represents a SessionPoolOptions.
65931
+ * @implements ISessionPoolOptions
65932
+ * @constructor
65933
+ * @param {google.spanner.executor.v1.ISessionPoolOptions=} [properties] Properties to set
65934
+ */
65935
+ function SessionPoolOptions(properties) {
65936
+ if (properties)
65937
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
65938
+ if (properties[keys[i]] != null)
65939
+ this[keys[i]] = properties[keys[i]];
65940
+ }
65941
+
65942
+ /**
65943
+ * SessionPoolOptions useMultiplexed.
65944
+ * @member {boolean} useMultiplexed
65945
+ * @memberof google.spanner.executor.v1.SessionPoolOptions
65946
+ * @instance
65947
+ */
65948
+ SessionPoolOptions.prototype.useMultiplexed = false;
65949
+
65950
+ /**
65951
+ * Creates a new SessionPoolOptions instance using the specified properties.
65952
+ * @function create
65953
+ * @memberof google.spanner.executor.v1.SessionPoolOptions
65954
+ * @static
65955
+ * @param {google.spanner.executor.v1.ISessionPoolOptions=} [properties] Properties to set
65956
+ * @returns {google.spanner.executor.v1.SessionPoolOptions} SessionPoolOptions instance
65957
+ */
65958
+ SessionPoolOptions.create = function create(properties) {
65959
+ return new SessionPoolOptions(properties);
65960
+ };
65961
+
65962
+ /**
65963
+ * Encodes the specified SessionPoolOptions message. Does not implicitly {@link google.spanner.executor.v1.SessionPoolOptions.verify|verify} messages.
65964
+ * @function encode
65965
+ * @memberof google.spanner.executor.v1.SessionPoolOptions
65966
+ * @static
65967
+ * @param {google.spanner.executor.v1.ISessionPoolOptions} message SessionPoolOptions message or plain object to encode
65968
+ * @param {$protobuf.Writer} [writer] Writer to encode to
65969
+ * @returns {$protobuf.Writer} Writer
65970
+ */
65971
+ SessionPoolOptions.encode = function encode(message, writer) {
65972
+ if (!writer)
65973
+ writer = $Writer.create();
65974
+ if (message.useMultiplexed != null && Object.hasOwnProperty.call(message, "useMultiplexed"))
65975
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useMultiplexed);
65976
+ return writer;
65977
+ };
65978
+
65979
+ /**
65980
+ * Encodes the specified SessionPoolOptions message, length delimited. Does not implicitly {@link google.spanner.executor.v1.SessionPoolOptions.verify|verify} messages.
65981
+ * @function encodeDelimited
65982
+ * @memberof google.spanner.executor.v1.SessionPoolOptions
65983
+ * @static
65984
+ * @param {google.spanner.executor.v1.ISessionPoolOptions} message SessionPoolOptions message or plain object to encode
65985
+ * @param {$protobuf.Writer} [writer] Writer to encode to
65986
+ * @returns {$protobuf.Writer} Writer
65987
+ */
65988
+ SessionPoolOptions.encodeDelimited = function encodeDelimited(message, writer) {
65989
+ return this.encode(message, writer).ldelim();
65990
+ };
65991
+
65992
+ /**
65993
+ * Decodes a SessionPoolOptions message from the specified reader or buffer.
65994
+ * @function decode
65995
+ * @memberof google.spanner.executor.v1.SessionPoolOptions
65996
+ * @static
65997
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
65998
+ * @param {number} [length] Message length if known beforehand
65999
+ * @returns {google.spanner.executor.v1.SessionPoolOptions} SessionPoolOptions
66000
+ * @throws {Error} If the payload is not a reader or valid buffer
66001
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
66002
+ */
66003
+ SessionPoolOptions.decode = function decode(reader, length) {
66004
+ if (!(reader instanceof $Reader))
66005
+ reader = $Reader.create(reader);
66006
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.spanner.executor.v1.SessionPoolOptions();
66007
+ while (reader.pos < end) {
66008
+ var tag = reader.uint32();
66009
+ switch (tag >>> 3) {
66010
+ case 1: {
66011
+ message.useMultiplexed = reader.bool();
66012
+ break;
66013
+ }
66014
+ default:
66015
+ reader.skipType(tag & 7);
66016
+ break;
66017
+ }
66018
+ }
66019
+ return message;
66020
+ };
66021
+
66022
+ /**
66023
+ * Decodes a SessionPoolOptions message from the specified reader or buffer, length delimited.
66024
+ * @function decodeDelimited
66025
+ * @memberof google.spanner.executor.v1.SessionPoolOptions
66026
+ * @static
66027
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
66028
+ * @returns {google.spanner.executor.v1.SessionPoolOptions} SessionPoolOptions
66029
+ * @throws {Error} If the payload is not a reader or valid buffer
66030
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
66031
+ */
66032
+ SessionPoolOptions.decodeDelimited = function decodeDelimited(reader) {
66033
+ if (!(reader instanceof $Reader))
66034
+ reader = new $Reader(reader);
66035
+ return this.decode(reader, reader.uint32());
66036
+ };
66037
+
66038
+ /**
66039
+ * Verifies a SessionPoolOptions message.
66040
+ * @function verify
66041
+ * @memberof google.spanner.executor.v1.SessionPoolOptions
66042
+ * @static
66043
+ * @param {Object.<string,*>} message Plain object to verify
66044
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
66045
+ */
66046
+ SessionPoolOptions.verify = function verify(message) {
66047
+ if (typeof message !== "object" || message === null)
66048
+ return "object expected";
66049
+ if (message.useMultiplexed != null && message.hasOwnProperty("useMultiplexed"))
66050
+ if (typeof message.useMultiplexed !== "boolean")
66051
+ return "useMultiplexed: boolean expected";
66052
+ return null;
66053
+ };
66054
+
66055
+ /**
66056
+ * Creates a SessionPoolOptions message from a plain object. Also converts values to their respective internal types.
66057
+ * @function fromObject
66058
+ * @memberof google.spanner.executor.v1.SessionPoolOptions
66059
+ * @static
66060
+ * @param {Object.<string,*>} object Plain object
66061
+ * @returns {google.spanner.executor.v1.SessionPoolOptions} SessionPoolOptions
66062
+ */
66063
+ SessionPoolOptions.fromObject = function fromObject(object) {
66064
+ if (object instanceof $root.google.spanner.executor.v1.SessionPoolOptions)
66065
+ return object;
66066
+ var message = new $root.google.spanner.executor.v1.SessionPoolOptions();
66067
+ if (object.useMultiplexed != null)
66068
+ message.useMultiplexed = Boolean(object.useMultiplexed);
66069
+ return message;
66070
+ };
66071
+
66072
+ /**
66073
+ * Creates a plain object from a SessionPoolOptions message. Also converts values to other types if specified.
66074
+ * @function toObject
66075
+ * @memberof google.spanner.executor.v1.SessionPoolOptions
66076
+ * @static
66077
+ * @param {google.spanner.executor.v1.SessionPoolOptions} message SessionPoolOptions
66078
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
66079
+ * @returns {Object.<string,*>} Plain object
66080
+ */
66081
+ SessionPoolOptions.toObject = function toObject(message, options) {
66082
+ if (!options)
66083
+ options = {};
66084
+ var object = {};
66085
+ if (options.defaults)
66086
+ object.useMultiplexed = false;
66087
+ if (message.useMultiplexed != null && message.hasOwnProperty("useMultiplexed"))
66088
+ object.useMultiplexed = message.useMultiplexed;
66089
+ return object;
66090
+ };
66091
+
66092
+ /**
66093
+ * Converts this SessionPoolOptions to JSON.
66094
+ * @function toJSON
66095
+ * @memberof google.spanner.executor.v1.SessionPoolOptions
66096
+ * @instance
66097
+ * @returns {Object.<string,*>} JSON object
66098
+ */
66099
+ SessionPoolOptions.prototype.toJSON = function toJSON() {
66100
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
66101
+ };
66102
+
66103
+ /**
66104
+ * Gets the default type url for SessionPoolOptions
66105
+ * @function getTypeUrl
66106
+ * @memberof google.spanner.executor.v1.SessionPoolOptions
66107
+ * @static
66108
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
66109
+ * @returns {string} The default type url
66110
+ */
66111
+ SessionPoolOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
66112
+ if (typeUrlPrefix === undefined) {
66113
+ typeUrlPrefix = "type.googleapis.com";
66114
+ }
66115
+ return typeUrlPrefix + "/google.spanner.executor.v1.SessionPoolOptions";
66116
+ };
66117
+
66118
+ return SessionPoolOptions;
66119
+ })();
66120
+
65495
66121
  return v1;
65496
66122
  })();
65497
66123
 
@@ -84259,6 +84885,7 @@
84259
84885
  * @property {google.api.ClientLibraryOrganization|null} [organization] Publishing organization
84260
84886
  * @property {Array.<google.api.IClientLibrarySettings>|null} [librarySettings] Publishing librarySettings
84261
84887
  * @property {string|null} [protoReferenceDocumentationUri] Publishing protoReferenceDocumentationUri
84888
+ * @property {string|null} [restReferenceDocumentationUri] Publishing restReferenceDocumentationUri
84262
84889
  */
84263
84890
 
84264
84891
  /**
@@ -84359,6 +84986,14 @@
84359
84986
  */
84360
84987
  Publishing.prototype.protoReferenceDocumentationUri = "";
84361
84988
 
84989
+ /**
84990
+ * Publishing restReferenceDocumentationUri.
84991
+ * @member {string} restReferenceDocumentationUri
84992
+ * @memberof google.api.Publishing
84993
+ * @instance
84994
+ */
84995
+ Publishing.prototype.restReferenceDocumentationUri = "";
84996
+
84362
84997
  /**
84363
84998
  * Creates a new Publishing instance using the specified properties.
84364
84999
  * @function create
@@ -84406,6 +85041,8 @@
84406
85041
  $root.google.api.ClientLibrarySettings.encode(message.librarySettings[i], writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim();
84407
85042
  if (message.protoReferenceDocumentationUri != null && Object.hasOwnProperty.call(message, "protoReferenceDocumentationUri"))
84408
85043
  writer.uint32(/* id 110, wireType 2 =*/882).string(message.protoReferenceDocumentationUri);
85044
+ if (message.restReferenceDocumentationUri != null && Object.hasOwnProperty.call(message, "restReferenceDocumentationUri"))
85045
+ writer.uint32(/* id 111, wireType 2 =*/890).string(message.restReferenceDocumentationUri);
84409
85046
  return writer;
84410
85047
  };
84411
85048
 
@@ -84486,6 +85123,10 @@
84486
85123
  message.protoReferenceDocumentationUri = reader.string();
84487
85124
  break;
84488
85125
  }
85126
+ case 111: {
85127
+ message.restReferenceDocumentationUri = reader.string();
85128
+ break;
85129
+ }
84489
85130
  default:
84490
85131
  reader.skipType(tag & 7);
84491
85132
  break;
@@ -84578,6 +85219,9 @@
84578
85219
  if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri"))
84579
85220
  if (!$util.isString(message.protoReferenceDocumentationUri))
84580
85221
  return "protoReferenceDocumentationUri: string expected";
85222
+ if (message.restReferenceDocumentationUri != null && message.hasOwnProperty("restReferenceDocumentationUri"))
85223
+ if (!$util.isString(message.restReferenceDocumentationUri))
85224
+ return "restReferenceDocumentationUri: string expected";
84581
85225
  return null;
84582
85226
  };
84583
85227
 
@@ -84672,6 +85316,8 @@
84672
85316
  }
84673
85317
  if (object.protoReferenceDocumentationUri != null)
84674
85318
  message.protoReferenceDocumentationUri = String(object.protoReferenceDocumentationUri);
85319
+ if (object.restReferenceDocumentationUri != null)
85320
+ message.restReferenceDocumentationUri = String(object.restReferenceDocumentationUri);
84675
85321
  return message;
84676
85322
  };
84677
85323
 
@@ -84701,6 +85347,7 @@
84701
85347
  object.docTagPrefix = "";
84702
85348
  object.organization = options.enums === String ? "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" : 0;
84703
85349
  object.protoReferenceDocumentationUri = "";
85350
+ object.restReferenceDocumentationUri = "";
84704
85351
  }
84705
85352
  if (message.methodSettings && message.methodSettings.length) {
84706
85353
  object.methodSettings = [];
@@ -84731,6 +85378,8 @@
84731
85378
  }
84732
85379
  if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri"))
84733
85380
  object.protoReferenceDocumentationUri = message.protoReferenceDocumentationUri;
85381
+ if (message.restReferenceDocumentationUri != null && message.hasOwnProperty("restReferenceDocumentationUri"))
85382
+ object.restReferenceDocumentationUri = message.restReferenceDocumentationUri;
84734
85383
  return object;
84735
85384
  };
84736
85385