@google-cloud/spanner 7.6.0 → 7.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/README.md +4 -0
- package/build/protos/google/spanner/admin/database/v1/backup.proto +190 -109
- package/build/protos/google/spanner/admin/database/v1/common.proto +30 -10
- package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +166 -100
- package/build/protos/google/spanner/admin/instance/v1/common.proto +15 -1
- package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +6 -0
- package/build/protos/google/spanner/executor/v1/cloud_executor.proto +30 -6
- package/build/protos/google/spanner/v1/commit_response.proto +1 -1
- package/build/protos/google/spanner/v1/keys.proto +1 -1
- package/build/protos/google/spanner/v1/mutation.proto +1 -1
- package/build/protos/google/spanner/v1/query_plan.proto +1 -1
- package/build/protos/google/spanner/v1/result_set.proto +1 -1
- package/build/protos/google/spanner/v1/spanner.proto +1 -1
- package/build/protos/google/spanner/v1/transaction.proto +1 -1
- package/build/protos/google/spanner/v1/type.proto +1 -1
- package/build/protos/protos.d.ts +310 -40
- package/build/protos/protos.js +942 -89
- package/build/protos/protos.json +115 -5
- package/build/src/codec.d.ts +56 -1
- package/build/src/codec.js +109 -4
- package/build/src/database.d.ts +41 -5
- package/build/src/database.js +37 -2
- package/build/src/index.d.ts +50 -1
- package/build/src/index.js +53 -0
- package/build/src/partial-result-stream.d.ts +41 -0
- package/build/src/partial-result-stream.js +6 -1
- package/build/src/table.d.ts +1 -0
- package/build/src/table.js +36 -2
- package/build/src/transaction-runner.d.ts +1 -0
- package/build/src/transaction-runner.js +3 -0
- package/build/src/transaction.d.ts +55 -0
- package/build/src/transaction.js +28 -2
- package/build/src/v1/database_admin_client.d.ts +175 -126
- package/build/src/v1/database_admin_client.js +95 -64
- package/build/src/v1/instance_admin_client.js +10 -7
- package/build/src/v1/spanner_client.js +10 -7
- package/build/src/v1/spanner_client_config.json +15 -14
- package/build/src/v1/spanner_executor_proxy_client.js +10 -7
- package/package.json +3 -3
package/build/protos/protos.js
CHANGED
|
@@ -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
|
|
|
@@ -17678,6 +17698,7 @@
|
|
|
17678
17698
|
* @property {google.spanner.admin.database.v1.Backup.State|null} [state] Backup state
|
|
17679
17699
|
* @property {Array.<string>|null} [referencingDatabases] Backup referencingDatabases
|
|
17680
17700
|
* @property {google.spanner.admin.database.v1.IEncryptionInfo|null} [encryptionInfo] Backup encryptionInfo
|
|
17701
|
+
* @property {Array.<google.spanner.admin.database.v1.IEncryptionInfo>|null} [encryptionInformation] Backup encryptionInformation
|
|
17681
17702
|
* @property {google.spanner.admin.database.v1.DatabaseDialect|null} [databaseDialect] Backup databaseDialect
|
|
17682
17703
|
* @property {Array.<string>|null} [referencingBackups] Backup referencingBackups
|
|
17683
17704
|
* @property {google.protobuf.ITimestamp|null} [maxExpireTime] Backup maxExpireTime
|
|
@@ -17693,6 +17714,7 @@
|
|
|
17693
17714
|
*/
|
|
17694
17715
|
function Backup(properties) {
|
|
17695
17716
|
this.referencingDatabases = [];
|
|
17717
|
+
this.encryptionInformation = [];
|
|
17696
17718
|
this.referencingBackups = [];
|
|
17697
17719
|
if (properties)
|
|
17698
17720
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -17772,6 +17794,14 @@
|
|
|
17772
17794
|
*/
|
|
17773
17795
|
Backup.prototype.encryptionInfo = null;
|
|
17774
17796
|
|
|
17797
|
+
/**
|
|
17798
|
+
* Backup encryptionInformation.
|
|
17799
|
+
* @member {Array.<google.spanner.admin.database.v1.IEncryptionInfo>} encryptionInformation
|
|
17800
|
+
* @memberof google.spanner.admin.database.v1.Backup
|
|
17801
|
+
* @instance
|
|
17802
|
+
*/
|
|
17803
|
+
Backup.prototype.encryptionInformation = $util.emptyArray;
|
|
17804
|
+
|
|
17775
17805
|
/**
|
|
17776
17806
|
* Backup databaseDialect.
|
|
17777
17807
|
* @member {google.spanner.admin.database.v1.DatabaseDialect} databaseDialect
|
|
@@ -17846,6 +17876,9 @@
|
|
|
17846
17876
|
writer.uint32(/* id 11, wireType 2 =*/90).string(message.referencingBackups[i]);
|
|
17847
17877
|
if (message.maxExpireTime != null && Object.hasOwnProperty.call(message, "maxExpireTime"))
|
|
17848
17878
|
$root.google.protobuf.Timestamp.encode(message.maxExpireTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
17879
|
+
if (message.encryptionInformation != null && message.encryptionInformation.length)
|
|
17880
|
+
for (var i = 0; i < message.encryptionInformation.length; ++i)
|
|
17881
|
+
$root.google.spanner.admin.database.v1.EncryptionInfo.encode(message.encryptionInformation[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
|
17849
17882
|
return writer;
|
|
17850
17883
|
};
|
|
17851
17884
|
|
|
@@ -17918,6 +17951,12 @@
|
|
|
17918
17951
|
message.encryptionInfo = $root.google.spanner.admin.database.v1.EncryptionInfo.decode(reader, reader.uint32());
|
|
17919
17952
|
break;
|
|
17920
17953
|
}
|
|
17954
|
+
case 13: {
|
|
17955
|
+
if (!(message.encryptionInformation && message.encryptionInformation.length))
|
|
17956
|
+
message.encryptionInformation = [];
|
|
17957
|
+
message.encryptionInformation.push($root.google.spanner.admin.database.v1.EncryptionInfo.decode(reader, reader.uint32()));
|
|
17958
|
+
break;
|
|
17959
|
+
}
|
|
17921
17960
|
case 10: {
|
|
17922
17961
|
message.databaseDialect = reader.int32();
|
|
17923
17962
|
break;
|
|
@@ -18012,6 +18051,15 @@
|
|
|
18012
18051
|
if (error)
|
|
18013
18052
|
return "encryptionInfo." + error;
|
|
18014
18053
|
}
|
|
18054
|
+
if (message.encryptionInformation != null && message.hasOwnProperty("encryptionInformation")) {
|
|
18055
|
+
if (!Array.isArray(message.encryptionInformation))
|
|
18056
|
+
return "encryptionInformation: array expected";
|
|
18057
|
+
for (var i = 0; i < message.encryptionInformation.length; ++i) {
|
|
18058
|
+
var error = $root.google.spanner.admin.database.v1.EncryptionInfo.verify(message.encryptionInformation[i]);
|
|
18059
|
+
if (error)
|
|
18060
|
+
return "encryptionInformation." + error;
|
|
18061
|
+
}
|
|
18062
|
+
}
|
|
18015
18063
|
if (message.databaseDialect != null && message.hasOwnProperty("databaseDialect"))
|
|
18016
18064
|
switch (message.databaseDialect) {
|
|
18017
18065
|
default:
|
|
@@ -18108,6 +18156,16 @@
|
|
|
18108
18156
|
throw TypeError(".google.spanner.admin.database.v1.Backup.encryptionInfo: object expected");
|
|
18109
18157
|
message.encryptionInfo = $root.google.spanner.admin.database.v1.EncryptionInfo.fromObject(object.encryptionInfo);
|
|
18110
18158
|
}
|
|
18159
|
+
if (object.encryptionInformation) {
|
|
18160
|
+
if (!Array.isArray(object.encryptionInformation))
|
|
18161
|
+
throw TypeError(".google.spanner.admin.database.v1.Backup.encryptionInformation: array expected");
|
|
18162
|
+
message.encryptionInformation = [];
|
|
18163
|
+
for (var i = 0; i < object.encryptionInformation.length; ++i) {
|
|
18164
|
+
if (typeof object.encryptionInformation[i] !== "object")
|
|
18165
|
+
throw TypeError(".google.spanner.admin.database.v1.Backup.encryptionInformation: object expected");
|
|
18166
|
+
message.encryptionInformation[i] = $root.google.spanner.admin.database.v1.EncryptionInfo.fromObject(object.encryptionInformation[i]);
|
|
18167
|
+
}
|
|
18168
|
+
}
|
|
18111
18169
|
switch (object.databaseDialect) {
|
|
18112
18170
|
default:
|
|
18113
18171
|
if (typeof object.databaseDialect === "number") {
|
|
@@ -18159,6 +18217,7 @@
|
|
|
18159
18217
|
if (options.arrays || options.defaults) {
|
|
18160
18218
|
object.referencingDatabases = [];
|
|
18161
18219
|
object.referencingBackups = [];
|
|
18220
|
+
object.encryptionInformation = [];
|
|
18162
18221
|
}
|
|
18163
18222
|
if (options.defaults) {
|
|
18164
18223
|
object.name = "";
|
|
@@ -18209,6 +18268,11 @@
|
|
|
18209
18268
|
}
|
|
18210
18269
|
if (message.maxExpireTime != null && message.hasOwnProperty("maxExpireTime"))
|
|
18211
18270
|
object.maxExpireTime = $root.google.protobuf.Timestamp.toObject(message.maxExpireTime, options);
|
|
18271
|
+
if (message.encryptionInformation && message.encryptionInformation.length) {
|
|
18272
|
+
object.encryptionInformation = [];
|
|
18273
|
+
for (var j = 0; j < message.encryptionInformation.length; ++j)
|
|
18274
|
+
object.encryptionInformation[j] = $root.google.spanner.admin.database.v1.EncryptionInfo.toObject(message.encryptionInformation[j], options);
|
|
18275
|
+
}
|
|
18212
18276
|
return object;
|
|
18213
18277
|
};
|
|
18214
18278
|
|
|
@@ -21388,6 +21452,7 @@
|
|
|
21388
21452
|
* @interface ICreateBackupEncryptionConfig
|
|
21389
21453
|
* @property {google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType|null} [encryptionType] CreateBackupEncryptionConfig encryptionType
|
|
21390
21454
|
* @property {string|null} [kmsKeyName] CreateBackupEncryptionConfig kmsKeyName
|
|
21455
|
+
* @property {Array.<string>|null} [kmsKeyNames] CreateBackupEncryptionConfig kmsKeyNames
|
|
21391
21456
|
*/
|
|
21392
21457
|
|
|
21393
21458
|
/**
|
|
@@ -21399,6 +21464,7 @@
|
|
|
21399
21464
|
* @param {google.spanner.admin.database.v1.ICreateBackupEncryptionConfig=} [properties] Properties to set
|
|
21400
21465
|
*/
|
|
21401
21466
|
function CreateBackupEncryptionConfig(properties) {
|
|
21467
|
+
this.kmsKeyNames = [];
|
|
21402
21468
|
if (properties)
|
|
21403
21469
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
21404
21470
|
if (properties[keys[i]] != null)
|
|
@@ -21421,6 +21487,14 @@
|
|
|
21421
21487
|
*/
|
|
21422
21488
|
CreateBackupEncryptionConfig.prototype.kmsKeyName = "";
|
|
21423
21489
|
|
|
21490
|
+
/**
|
|
21491
|
+
* CreateBackupEncryptionConfig kmsKeyNames.
|
|
21492
|
+
* @member {Array.<string>} kmsKeyNames
|
|
21493
|
+
* @memberof google.spanner.admin.database.v1.CreateBackupEncryptionConfig
|
|
21494
|
+
* @instance
|
|
21495
|
+
*/
|
|
21496
|
+
CreateBackupEncryptionConfig.prototype.kmsKeyNames = $util.emptyArray;
|
|
21497
|
+
|
|
21424
21498
|
/**
|
|
21425
21499
|
* Creates a new CreateBackupEncryptionConfig instance using the specified properties.
|
|
21426
21500
|
* @function create
|
|
@@ -21449,6 +21523,9 @@
|
|
|
21449
21523
|
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.encryptionType);
|
|
21450
21524
|
if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName"))
|
|
21451
21525
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.kmsKeyName);
|
|
21526
|
+
if (message.kmsKeyNames != null && message.kmsKeyNames.length)
|
|
21527
|
+
for (var i = 0; i < message.kmsKeyNames.length; ++i)
|
|
21528
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.kmsKeyNames[i]);
|
|
21452
21529
|
return writer;
|
|
21453
21530
|
};
|
|
21454
21531
|
|
|
@@ -21491,6 +21568,12 @@
|
|
|
21491
21568
|
message.kmsKeyName = reader.string();
|
|
21492
21569
|
break;
|
|
21493
21570
|
}
|
|
21571
|
+
case 3: {
|
|
21572
|
+
if (!(message.kmsKeyNames && message.kmsKeyNames.length))
|
|
21573
|
+
message.kmsKeyNames = [];
|
|
21574
|
+
message.kmsKeyNames.push(reader.string());
|
|
21575
|
+
break;
|
|
21576
|
+
}
|
|
21494
21577
|
default:
|
|
21495
21578
|
reader.skipType(tag & 7);
|
|
21496
21579
|
break;
|
|
@@ -21539,6 +21622,13 @@
|
|
|
21539
21622
|
if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName"))
|
|
21540
21623
|
if (!$util.isString(message.kmsKeyName))
|
|
21541
21624
|
return "kmsKeyName: string expected";
|
|
21625
|
+
if (message.kmsKeyNames != null && message.hasOwnProperty("kmsKeyNames")) {
|
|
21626
|
+
if (!Array.isArray(message.kmsKeyNames))
|
|
21627
|
+
return "kmsKeyNames: array expected";
|
|
21628
|
+
for (var i = 0; i < message.kmsKeyNames.length; ++i)
|
|
21629
|
+
if (!$util.isString(message.kmsKeyNames[i]))
|
|
21630
|
+
return "kmsKeyNames: string[] expected";
|
|
21631
|
+
}
|
|
21542
21632
|
return null;
|
|
21543
21633
|
};
|
|
21544
21634
|
|
|
@@ -21580,6 +21670,13 @@
|
|
|
21580
21670
|
}
|
|
21581
21671
|
if (object.kmsKeyName != null)
|
|
21582
21672
|
message.kmsKeyName = String(object.kmsKeyName);
|
|
21673
|
+
if (object.kmsKeyNames) {
|
|
21674
|
+
if (!Array.isArray(object.kmsKeyNames))
|
|
21675
|
+
throw TypeError(".google.spanner.admin.database.v1.CreateBackupEncryptionConfig.kmsKeyNames: array expected");
|
|
21676
|
+
message.kmsKeyNames = [];
|
|
21677
|
+
for (var i = 0; i < object.kmsKeyNames.length; ++i)
|
|
21678
|
+
message.kmsKeyNames[i] = String(object.kmsKeyNames[i]);
|
|
21679
|
+
}
|
|
21583
21680
|
return message;
|
|
21584
21681
|
};
|
|
21585
21682
|
|
|
@@ -21596,6 +21693,8 @@
|
|
|
21596
21693
|
if (!options)
|
|
21597
21694
|
options = {};
|
|
21598
21695
|
var object = {};
|
|
21696
|
+
if (options.arrays || options.defaults)
|
|
21697
|
+
object.kmsKeyNames = [];
|
|
21599
21698
|
if (options.defaults) {
|
|
21600
21699
|
object.encryptionType = options.enums === String ? "ENCRYPTION_TYPE_UNSPECIFIED" : 0;
|
|
21601
21700
|
object.kmsKeyName = "";
|
|
@@ -21604,6 +21703,11 @@
|
|
|
21604
21703
|
object.encryptionType = options.enums === String ? $root.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType[message.encryptionType] === undefined ? message.encryptionType : $root.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType[message.encryptionType] : message.encryptionType;
|
|
21605
21704
|
if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName"))
|
|
21606
21705
|
object.kmsKeyName = message.kmsKeyName;
|
|
21706
|
+
if (message.kmsKeyNames && message.kmsKeyNames.length) {
|
|
21707
|
+
object.kmsKeyNames = [];
|
|
21708
|
+
for (var j = 0; j < message.kmsKeyNames.length; ++j)
|
|
21709
|
+
object.kmsKeyNames[j] = message.kmsKeyNames[j];
|
|
21710
|
+
}
|
|
21607
21711
|
return object;
|
|
21608
21712
|
};
|
|
21609
21713
|
|
|
@@ -21662,6 +21766,7 @@
|
|
|
21662
21766
|
* @interface ICopyBackupEncryptionConfig
|
|
21663
21767
|
* @property {google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType|null} [encryptionType] CopyBackupEncryptionConfig encryptionType
|
|
21664
21768
|
* @property {string|null} [kmsKeyName] CopyBackupEncryptionConfig kmsKeyName
|
|
21769
|
+
* @property {Array.<string>|null} [kmsKeyNames] CopyBackupEncryptionConfig kmsKeyNames
|
|
21665
21770
|
*/
|
|
21666
21771
|
|
|
21667
21772
|
/**
|
|
@@ -21673,6 +21778,7 @@
|
|
|
21673
21778
|
* @param {google.spanner.admin.database.v1.ICopyBackupEncryptionConfig=} [properties] Properties to set
|
|
21674
21779
|
*/
|
|
21675
21780
|
function CopyBackupEncryptionConfig(properties) {
|
|
21781
|
+
this.kmsKeyNames = [];
|
|
21676
21782
|
if (properties)
|
|
21677
21783
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
21678
21784
|
if (properties[keys[i]] != null)
|
|
@@ -21695,6 +21801,14 @@
|
|
|
21695
21801
|
*/
|
|
21696
21802
|
CopyBackupEncryptionConfig.prototype.kmsKeyName = "";
|
|
21697
21803
|
|
|
21804
|
+
/**
|
|
21805
|
+
* CopyBackupEncryptionConfig kmsKeyNames.
|
|
21806
|
+
* @member {Array.<string>} kmsKeyNames
|
|
21807
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupEncryptionConfig
|
|
21808
|
+
* @instance
|
|
21809
|
+
*/
|
|
21810
|
+
CopyBackupEncryptionConfig.prototype.kmsKeyNames = $util.emptyArray;
|
|
21811
|
+
|
|
21698
21812
|
/**
|
|
21699
21813
|
* Creates a new CopyBackupEncryptionConfig instance using the specified properties.
|
|
21700
21814
|
* @function create
|
|
@@ -21723,6 +21837,9 @@
|
|
|
21723
21837
|
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.encryptionType);
|
|
21724
21838
|
if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName"))
|
|
21725
21839
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.kmsKeyName);
|
|
21840
|
+
if (message.kmsKeyNames != null && message.kmsKeyNames.length)
|
|
21841
|
+
for (var i = 0; i < message.kmsKeyNames.length; ++i)
|
|
21842
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.kmsKeyNames[i]);
|
|
21726
21843
|
return writer;
|
|
21727
21844
|
};
|
|
21728
21845
|
|
|
@@ -21765,6 +21882,12 @@
|
|
|
21765
21882
|
message.kmsKeyName = reader.string();
|
|
21766
21883
|
break;
|
|
21767
21884
|
}
|
|
21885
|
+
case 3: {
|
|
21886
|
+
if (!(message.kmsKeyNames && message.kmsKeyNames.length))
|
|
21887
|
+
message.kmsKeyNames = [];
|
|
21888
|
+
message.kmsKeyNames.push(reader.string());
|
|
21889
|
+
break;
|
|
21890
|
+
}
|
|
21768
21891
|
default:
|
|
21769
21892
|
reader.skipType(tag & 7);
|
|
21770
21893
|
break;
|
|
@@ -21813,6 +21936,13 @@
|
|
|
21813
21936
|
if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName"))
|
|
21814
21937
|
if (!$util.isString(message.kmsKeyName))
|
|
21815
21938
|
return "kmsKeyName: string expected";
|
|
21939
|
+
if (message.kmsKeyNames != null && message.hasOwnProperty("kmsKeyNames")) {
|
|
21940
|
+
if (!Array.isArray(message.kmsKeyNames))
|
|
21941
|
+
return "kmsKeyNames: array expected";
|
|
21942
|
+
for (var i = 0; i < message.kmsKeyNames.length; ++i)
|
|
21943
|
+
if (!$util.isString(message.kmsKeyNames[i]))
|
|
21944
|
+
return "kmsKeyNames: string[] expected";
|
|
21945
|
+
}
|
|
21816
21946
|
return null;
|
|
21817
21947
|
};
|
|
21818
21948
|
|
|
@@ -21854,6 +21984,13 @@
|
|
|
21854
21984
|
}
|
|
21855
21985
|
if (object.kmsKeyName != null)
|
|
21856
21986
|
message.kmsKeyName = String(object.kmsKeyName);
|
|
21987
|
+
if (object.kmsKeyNames) {
|
|
21988
|
+
if (!Array.isArray(object.kmsKeyNames))
|
|
21989
|
+
throw TypeError(".google.spanner.admin.database.v1.CopyBackupEncryptionConfig.kmsKeyNames: array expected");
|
|
21990
|
+
message.kmsKeyNames = [];
|
|
21991
|
+
for (var i = 0; i < object.kmsKeyNames.length; ++i)
|
|
21992
|
+
message.kmsKeyNames[i] = String(object.kmsKeyNames[i]);
|
|
21993
|
+
}
|
|
21857
21994
|
return message;
|
|
21858
21995
|
};
|
|
21859
21996
|
|
|
@@ -21870,6 +22007,8 @@
|
|
|
21870
22007
|
if (!options)
|
|
21871
22008
|
options = {};
|
|
21872
22009
|
var object = {};
|
|
22010
|
+
if (options.arrays || options.defaults)
|
|
22011
|
+
object.kmsKeyNames = [];
|
|
21873
22012
|
if (options.defaults) {
|
|
21874
22013
|
object.encryptionType = options.enums === String ? "ENCRYPTION_TYPE_UNSPECIFIED" : 0;
|
|
21875
22014
|
object.kmsKeyName = "";
|
|
@@ -21878,6 +22017,11 @@
|
|
|
21878
22017
|
object.encryptionType = options.enums === String ? $root.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType[message.encryptionType] === undefined ? message.encryptionType : $root.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType[message.encryptionType] : message.encryptionType;
|
|
21879
22018
|
if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName"))
|
|
21880
22019
|
object.kmsKeyName = message.kmsKeyName;
|
|
22020
|
+
if (message.kmsKeyNames && message.kmsKeyNames.length) {
|
|
22021
|
+
object.kmsKeyNames = [];
|
|
22022
|
+
for (var j = 0; j < message.kmsKeyNames.length; ++j)
|
|
22023
|
+
object.kmsKeyNames[j] = message.kmsKeyNames[j];
|
|
22024
|
+
}
|
|
21881
22025
|
return object;
|
|
21882
22026
|
};
|
|
21883
22027
|
|
|
@@ -22195,6 +22339,7 @@
|
|
|
22195
22339
|
* @memberof google.spanner.admin.database.v1
|
|
22196
22340
|
* @interface IEncryptionConfig
|
|
22197
22341
|
* @property {string|null} [kmsKeyName] EncryptionConfig kmsKeyName
|
|
22342
|
+
* @property {Array.<string>|null} [kmsKeyNames] EncryptionConfig kmsKeyNames
|
|
22198
22343
|
*/
|
|
22199
22344
|
|
|
22200
22345
|
/**
|
|
@@ -22206,6 +22351,7 @@
|
|
|
22206
22351
|
* @param {google.spanner.admin.database.v1.IEncryptionConfig=} [properties] Properties to set
|
|
22207
22352
|
*/
|
|
22208
22353
|
function EncryptionConfig(properties) {
|
|
22354
|
+
this.kmsKeyNames = [];
|
|
22209
22355
|
if (properties)
|
|
22210
22356
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
22211
22357
|
if (properties[keys[i]] != null)
|
|
@@ -22220,6 +22366,14 @@
|
|
|
22220
22366
|
*/
|
|
22221
22367
|
EncryptionConfig.prototype.kmsKeyName = "";
|
|
22222
22368
|
|
|
22369
|
+
/**
|
|
22370
|
+
* EncryptionConfig kmsKeyNames.
|
|
22371
|
+
* @member {Array.<string>} kmsKeyNames
|
|
22372
|
+
* @memberof google.spanner.admin.database.v1.EncryptionConfig
|
|
22373
|
+
* @instance
|
|
22374
|
+
*/
|
|
22375
|
+
EncryptionConfig.prototype.kmsKeyNames = $util.emptyArray;
|
|
22376
|
+
|
|
22223
22377
|
/**
|
|
22224
22378
|
* Creates a new EncryptionConfig instance using the specified properties.
|
|
22225
22379
|
* @function create
|
|
@@ -22246,6 +22400,9 @@
|
|
|
22246
22400
|
writer = $Writer.create();
|
|
22247
22401
|
if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName"))
|
|
22248
22402
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.kmsKeyName);
|
|
22403
|
+
if (message.kmsKeyNames != null && message.kmsKeyNames.length)
|
|
22404
|
+
for (var i = 0; i < message.kmsKeyNames.length; ++i)
|
|
22405
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.kmsKeyNames[i]);
|
|
22249
22406
|
return writer;
|
|
22250
22407
|
};
|
|
22251
22408
|
|
|
@@ -22284,6 +22441,12 @@
|
|
|
22284
22441
|
message.kmsKeyName = reader.string();
|
|
22285
22442
|
break;
|
|
22286
22443
|
}
|
|
22444
|
+
case 3: {
|
|
22445
|
+
if (!(message.kmsKeyNames && message.kmsKeyNames.length))
|
|
22446
|
+
message.kmsKeyNames = [];
|
|
22447
|
+
message.kmsKeyNames.push(reader.string());
|
|
22448
|
+
break;
|
|
22449
|
+
}
|
|
22287
22450
|
default:
|
|
22288
22451
|
reader.skipType(tag & 7);
|
|
22289
22452
|
break;
|
|
@@ -22322,6 +22485,13 @@
|
|
|
22322
22485
|
if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName"))
|
|
22323
22486
|
if (!$util.isString(message.kmsKeyName))
|
|
22324
22487
|
return "kmsKeyName: string expected";
|
|
22488
|
+
if (message.kmsKeyNames != null && message.hasOwnProperty("kmsKeyNames")) {
|
|
22489
|
+
if (!Array.isArray(message.kmsKeyNames))
|
|
22490
|
+
return "kmsKeyNames: array expected";
|
|
22491
|
+
for (var i = 0; i < message.kmsKeyNames.length; ++i)
|
|
22492
|
+
if (!$util.isString(message.kmsKeyNames[i]))
|
|
22493
|
+
return "kmsKeyNames: string[] expected";
|
|
22494
|
+
}
|
|
22325
22495
|
return null;
|
|
22326
22496
|
};
|
|
22327
22497
|
|
|
@@ -22339,6 +22509,13 @@
|
|
|
22339
22509
|
var message = new $root.google.spanner.admin.database.v1.EncryptionConfig();
|
|
22340
22510
|
if (object.kmsKeyName != null)
|
|
22341
22511
|
message.kmsKeyName = String(object.kmsKeyName);
|
|
22512
|
+
if (object.kmsKeyNames) {
|
|
22513
|
+
if (!Array.isArray(object.kmsKeyNames))
|
|
22514
|
+
throw TypeError(".google.spanner.admin.database.v1.EncryptionConfig.kmsKeyNames: array expected");
|
|
22515
|
+
message.kmsKeyNames = [];
|
|
22516
|
+
for (var i = 0; i < object.kmsKeyNames.length; ++i)
|
|
22517
|
+
message.kmsKeyNames[i] = String(object.kmsKeyNames[i]);
|
|
22518
|
+
}
|
|
22342
22519
|
return message;
|
|
22343
22520
|
};
|
|
22344
22521
|
|
|
@@ -22355,10 +22532,17 @@
|
|
|
22355
22532
|
if (!options)
|
|
22356
22533
|
options = {};
|
|
22357
22534
|
var object = {};
|
|
22535
|
+
if (options.arrays || options.defaults)
|
|
22536
|
+
object.kmsKeyNames = [];
|
|
22358
22537
|
if (options.defaults)
|
|
22359
22538
|
object.kmsKeyName = "";
|
|
22360
22539
|
if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName"))
|
|
22361
22540
|
object.kmsKeyName = message.kmsKeyName;
|
|
22541
|
+
if (message.kmsKeyNames && message.kmsKeyNames.length) {
|
|
22542
|
+
object.kmsKeyNames = [];
|
|
22543
|
+
for (var j = 0; j < message.kmsKeyNames.length; ++j)
|
|
22544
|
+
object.kmsKeyNames[j] = message.kmsKeyNames[j];
|
|
22545
|
+
}
|
|
22362
22546
|
return object;
|
|
22363
22547
|
};
|
|
22364
22548
|
|
|
@@ -28467,6 +28651,7 @@
|
|
|
28467
28651
|
* @interface IRestoreDatabaseEncryptionConfig
|
|
28468
28652
|
* @property {google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType|null} [encryptionType] RestoreDatabaseEncryptionConfig encryptionType
|
|
28469
28653
|
* @property {string|null} [kmsKeyName] RestoreDatabaseEncryptionConfig kmsKeyName
|
|
28654
|
+
* @property {Array.<string>|null} [kmsKeyNames] RestoreDatabaseEncryptionConfig kmsKeyNames
|
|
28470
28655
|
*/
|
|
28471
28656
|
|
|
28472
28657
|
/**
|
|
@@ -28478,6 +28663,7 @@
|
|
|
28478
28663
|
* @param {google.spanner.admin.database.v1.IRestoreDatabaseEncryptionConfig=} [properties] Properties to set
|
|
28479
28664
|
*/
|
|
28480
28665
|
function RestoreDatabaseEncryptionConfig(properties) {
|
|
28666
|
+
this.kmsKeyNames = [];
|
|
28481
28667
|
if (properties)
|
|
28482
28668
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
28483
28669
|
if (properties[keys[i]] != null)
|
|
@@ -28500,6 +28686,14 @@
|
|
|
28500
28686
|
*/
|
|
28501
28687
|
RestoreDatabaseEncryptionConfig.prototype.kmsKeyName = "";
|
|
28502
28688
|
|
|
28689
|
+
/**
|
|
28690
|
+
* RestoreDatabaseEncryptionConfig kmsKeyNames.
|
|
28691
|
+
* @member {Array.<string>} kmsKeyNames
|
|
28692
|
+
* @memberof google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig
|
|
28693
|
+
* @instance
|
|
28694
|
+
*/
|
|
28695
|
+
RestoreDatabaseEncryptionConfig.prototype.kmsKeyNames = $util.emptyArray;
|
|
28696
|
+
|
|
28503
28697
|
/**
|
|
28504
28698
|
* Creates a new RestoreDatabaseEncryptionConfig instance using the specified properties.
|
|
28505
28699
|
* @function create
|
|
@@ -28528,6 +28722,9 @@
|
|
|
28528
28722
|
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.encryptionType);
|
|
28529
28723
|
if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName"))
|
|
28530
28724
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.kmsKeyName);
|
|
28725
|
+
if (message.kmsKeyNames != null && message.kmsKeyNames.length)
|
|
28726
|
+
for (var i = 0; i < message.kmsKeyNames.length; ++i)
|
|
28727
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.kmsKeyNames[i]);
|
|
28531
28728
|
return writer;
|
|
28532
28729
|
};
|
|
28533
28730
|
|
|
@@ -28570,6 +28767,12 @@
|
|
|
28570
28767
|
message.kmsKeyName = reader.string();
|
|
28571
28768
|
break;
|
|
28572
28769
|
}
|
|
28770
|
+
case 3: {
|
|
28771
|
+
if (!(message.kmsKeyNames && message.kmsKeyNames.length))
|
|
28772
|
+
message.kmsKeyNames = [];
|
|
28773
|
+
message.kmsKeyNames.push(reader.string());
|
|
28774
|
+
break;
|
|
28775
|
+
}
|
|
28573
28776
|
default:
|
|
28574
28777
|
reader.skipType(tag & 7);
|
|
28575
28778
|
break;
|
|
@@ -28618,6 +28821,13 @@
|
|
|
28618
28821
|
if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName"))
|
|
28619
28822
|
if (!$util.isString(message.kmsKeyName))
|
|
28620
28823
|
return "kmsKeyName: string expected";
|
|
28824
|
+
if (message.kmsKeyNames != null && message.hasOwnProperty("kmsKeyNames")) {
|
|
28825
|
+
if (!Array.isArray(message.kmsKeyNames))
|
|
28826
|
+
return "kmsKeyNames: array expected";
|
|
28827
|
+
for (var i = 0; i < message.kmsKeyNames.length; ++i)
|
|
28828
|
+
if (!$util.isString(message.kmsKeyNames[i]))
|
|
28829
|
+
return "kmsKeyNames: string[] expected";
|
|
28830
|
+
}
|
|
28621
28831
|
return null;
|
|
28622
28832
|
};
|
|
28623
28833
|
|
|
@@ -28659,6 +28869,13 @@
|
|
|
28659
28869
|
}
|
|
28660
28870
|
if (object.kmsKeyName != null)
|
|
28661
28871
|
message.kmsKeyName = String(object.kmsKeyName);
|
|
28872
|
+
if (object.kmsKeyNames) {
|
|
28873
|
+
if (!Array.isArray(object.kmsKeyNames))
|
|
28874
|
+
throw TypeError(".google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.kmsKeyNames: array expected");
|
|
28875
|
+
message.kmsKeyNames = [];
|
|
28876
|
+
for (var i = 0; i < object.kmsKeyNames.length; ++i)
|
|
28877
|
+
message.kmsKeyNames[i] = String(object.kmsKeyNames[i]);
|
|
28878
|
+
}
|
|
28662
28879
|
return message;
|
|
28663
28880
|
};
|
|
28664
28881
|
|
|
@@ -28675,6 +28892,8 @@
|
|
|
28675
28892
|
if (!options)
|
|
28676
28893
|
options = {};
|
|
28677
28894
|
var object = {};
|
|
28895
|
+
if (options.arrays || options.defaults)
|
|
28896
|
+
object.kmsKeyNames = [];
|
|
28678
28897
|
if (options.defaults) {
|
|
28679
28898
|
object.encryptionType = options.enums === String ? "ENCRYPTION_TYPE_UNSPECIFIED" : 0;
|
|
28680
28899
|
object.kmsKeyName = "";
|
|
@@ -28683,6 +28902,11 @@
|
|
|
28683
28902
|
object.encryptionType = options.enums === String ? $root.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType[message.encryptionType] === undefined ? message.encryptionType : $root.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType[message.encryptionType] : message.encryptionType;
|
|
28684
28903
|
if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName"))
|
|
28685
28904
|
object.kmsKeyName = message.kmsKeyName;
|
|
28905
|
+
if (message.kmsKeyNames && message.kmsKeyNames.length) {
|
|
28906
|
+
object.kmsKeyNames = [];
|
|
28907
|
+
for (var j = 0; j < message.kmsKeyNames.length; ++j)
|
|
28908
|
+
object.kmsKeyNames[j] = message.kmsKeyNames[j];
|
|
28909
|
+
}
|
|
28686
28910
|
return object;
|
|
28687
28911
|
};
|
|
28688
28912
|
|
|
@@ -30337,6 +30561,22 @@
|
|
|
30337
30561
|
return OperationProgress;
|
|
30338
30562
|
})();
|
|
30339
30563
|
|
|
30564
|
+
/**
|
|
30565
|
+
* FulfillmentPeriod enum.
|
|
30566
|
+
* @name google.spanner.admin.instance.v1.FulfillmentPeriod
|
|
30567
|
+
* @enum {number}
|
|
30568
|
+
* @property {number} FULFILLMENT_PERIOD_UNSPECIFIED=0 FULFILLMENT_PERIOD_UNSPECIFIED value
|
|
30569
|
+
* @property {number} FULFILLMENT_PERIOD_NORMAL=1 FULFILLMENT_PERIOD_NORMAL value
|
|
30570
|
+
* @property {number} FULFILLMENT_PERIOD_EXTENDED=2 FULFILLMENT_PERIOD_EXTENDED value
|
|
30571
|
+
*/
|
|
30572
|
+
v1.FulfillmentPeriod = (function() {
|
|
30573
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
30574
|
+
values[valuesById[0] = "FULFILLMENT_PERIOD_UNSPECIFIED"] = 0;
|
|
30575
|
+
values[valuesById[1] = "FULFILLMENT_PERIOD_NORMAL"] = 1;
|
|
30576
|
+
values[valuesById[2] = "FULFILLMENT_PERIOD_EXTENDED"] = 2;
|
|
30577
|
+
return values;
|
|
30578
|
+
})();
|
|
30579
|
+
|
|
30340
30580
|
v1.InstanceAdmin = (function() {
|
|
30341
30581
|
|
|
30342
30582
|
/**
|
|
@@ -36798,6 +37038,7 @@
|
|
|
36798
37038
|
* @property {google.protobuf.ITimestamp|null} [startTime] CreateInstanceMetadata startTime
|
|
36799
37039
|
* @property {google.protobuf.ITimestamp|null} [cancelTime] CreateInstanceMetadata cancelTime
|
|
36800
37040
|
* @property {google.protobuf.ITimestamp|null} [endTime] CreateInstanceMetadata endTime
|
|
37041
|
+
* @property {google.spanner.admin.instance.v1.FulfillmentPeriod|null} [expectedFulfillmentPeriod] CreateInstanceMetadata expectedFulfillmentPeriod
|
|
36801
37042
|
*/
|
|
36802
37043
|
|
|
36803
37044
|
/**
|
|
@@ -36847,6 +37088,14 @@
|
|
|
36847
37088
|
*/
|
|
36848
37089
|
CreateInstanceMetadata.prototype.endTime = null;
|
|
36849
37090
|
|
|
37091
|
+
/**
|
|
37092
|
+
* CreateInstanceMetadata expectedFulfillmentPeriod.
|
|
37093
|
+
* @member {google.spanner.admin.instance.v1.FulfillmentPeriod} expectedFulfillmentPeriod
|
|
37094
|
+
* @memberof google.spanner.admin.instance.v1.CreateInstanceMetadata
|
|
37095
|
+
* @instance
|
|
37096
|
+
*/
|
|
37097
|
+
CreateInstanceMetadata.prototype.expectedFulfillmentPeriod = 0;
|
|
37098
|
+
|
|
36850
37099
|
/**
|
|
36851
37100
|
* Creates a new CreateInstanceMetadata instance using the specified properties.
|
|
36852
37101
|
* @function create
|
|
@@ -36879,6 +37128,8 @@
|
|
|
36879
37128
|
$root.google.protobuf.Timestamp.encode(message.cancelTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
36880
37129
|
if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime"))
|
|
36881
37130
|
$root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
37131
|
+
if (message.expectedFulfillmentPeriod != null && Object.hasOwnProperty.call(message, "expectedFulfillmentPeriod"))
|
|
37132
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.expectedFulfillmentPeriod);
|
|
36882
37133
|
return writer;
|
|
36883
37134
|
};
|
|
36884
37135
|
|
|
@@ -36929,6 +37180,10 @@
|
|
|
36929
37180
|
message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
36930
37181
|
break;
|
|
36931
37182
|
}
|
|
37183
|
+
case 5: {
|
|
37184
|
+
message.expectedFulfillmentPeriod = reader.int32();
|
|
37185
|
+
break;
|
|
37186
|
+
}
|
|
36932
37187
|
default:
|
|
36933
37188
|
reader.skipType(tag & 7);
|
|
36934
37189
|
break;
|
|
@@ -36984,6 +37239,15 @@
|
|
|
36984
37239
|
if (error)
|
|
36985
37240
|
return "endTime." + error;
|
|
36986
37241
|
}
|
|
37242
|
+
if (message.expectedFulfillmentPeriod != null && message.hasOwnProperty("expectedFulfillmentPeriod"))
|
|
37243
|
+
switch (message.expectedFulfillmentPeriod) {
|
|
37244
|
+
default:
|
|
37245
|
+
return "expectedFulfillmentPeriod: enum value expected";
|
|
37246
|
+
case 0:
|
|
37247
|
+
case 1:
|
|
37248
|
+
case 2:
|
|
37249
|
+
break;
|
|
37250
|
+
}
|
|
36987
37251
|
return null;
|
|
36988
37252
|
};
|
|
36989
37253
|
|
|
@@ -37019,6 +37283,26 @@
|
|
|
37019
37283
|
throw TypeError(".google.spanner.admin.instance.v1.CreateInstanceMetadata.endTime: object expected");
|
|
37020
37284
|
message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime);
|
|
37021
37285
|
}
|
|
37286
|
+
switch (object.expectedFulfillmentPeriod) {
|
|
37287
|
+
default:
|
|
37288
|
+
if (typeof object.expectedFulfillmentPeriod === "number") {
|
|
37289
|
+
message.expectedFulfillmentPeriod = object.expectedFulfillmentPeriod;
|
|
37290
|
+
break;
|
|
37291
|
+
}
|
|
37292
|
+
break;
|
|
37293
|
+
case "FULFILLMENT_PERIOD_UNSPECIFIED":
|
|
37294
|
+
case 0:
|
|
37295
|
+
message.expectedFulfillmentPeriod = 0;
|
|
37296
|
+
break;
|
|
37297
|
+
case "FULFILLMENT_PERIOD_NORMAL":
|
|
37298
|
+
case 1:
|
|
37299
|
+
message.expectedFulfillmentPeriod = 1;
|
|
37300
|
+
break;
|
|
37301
|
+
case "FULFILLMENT_PERIOD_EXTENDED":
|
|
37302
|
+
case 2:
|
|
37303
|
+
message.expectedFulfillmentPeriod = 2;
|
|
37304
|
+
break;
|
|
37305
|
+
}
|
|
37022
37306
|
return message;
|
|
37023
37307
|
};
|
|
37024
37308
|
|
|
@@ -37040,6 +37324,7 @@
|
|
|
37040
37324
|
object.startTime = null;
|
|
37041
37325
|
object.cancelTime = null;
|
|
37042
37326
|
object.endTime = null;
|
|
37327
|
+
object.expectedFulfillmentPeriod = options.enums === String ? "FULFILLMENT_PERIOD_UNSPECIFIED" : 0;
|
|
37043
37328
|
}
|
|
37044
37329
|
if (message.instance != null && message.hasOwnProperty("instance"))
|
|
37045
37330
|
object.instance = $root.google.spanner.admin.instance.v1.Instance.toObject(message.instance, options);
|
|
@@ -37049,6 +37334,8 @@
|
|
|
37049
37334
|
object.cancelTime = $root.google.protobuf.Timestamp.toObject(message.cancelTime, options);
|
|
37050
37335
|
if (message.endTime != null && message.hasOwnProperty("endTime"))
|
|
37051
37336
|
object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options);
|
|
37337
|
+
if (message.expectedFulfillmentPeriod != null && message.hasOwnProperty("expectedFulfillmentPeriod"))
|
|
37338
|
+
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
37339
|
return object;
|
|
37053
37340
|
};
|
|
37054
37341
|
|
|
@@ -37091,6 +37378,7 @@
|
|
|
37091
37378
|
* @property {google.protobuf.ITimestamp|null} [startTime] UpdateInstanceMetadata startTime
|
|
37092
37379
|
* @property {google.protobuf.ITimestamp|null} [cancelTime] UpdateInstanceMetadata cancelTime
|
|
37093
37380
|
* @property {google.protobuf.ITimestamp|null} [endTime] UpdateInstanceMetadata endTime
|
|
37381
|
+
* @property {google.spanner.admin.instance.v1.FulfillmentPeriod|null} [expectedFulfillmentPeriod] UpdateInstanceMetadata expectedFulfillmentPeriod
|
|
37094
37382
|
*/
|
|
37095
37383
|
|
|
37096
37384
|
/**
|
|
@@ -37140,6 +37428,14 @@
|
|
|
37140
37428
|
*/
|
|
37141
37429
|
UpdateInstanceMetadata.prototype.endTime = null;
|
|
37142
37430
|
|
|
37431
|
+
/**
|
|
37432
|
+
* UpdateInstanceMetadata expectedFulfillmentPeriod.
|
|
37433
|
+
* @member {google.spanner.admin.instance.v1.FulfillmentPeriod} expectedFulfillmentPeriod
|
|
37434
|
+
* @memberof google.spanner.admin.instance.v1.UpdateInstanceMetadata
|
|
37435
|
+
* @instance
|
|
37436
|
+
*/
|
|
37437
|
+
UpdateInstanceMetadata.prototype.expectedFulfillmentPeriod = 0;
|
|
37438
|
+
|
|
37143
37439
|
/**
|
|
37144
37440
|
* Creates a new UpdateInstanceMetadata instance using the specified properties.
|
|
37145
37441
|
* @function create
|
|
@@ -37172,6 +37468,8 @@
|
|
|
37172
37468
|
$root.google.protobuf.Timestamp.encode(message.cancelTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
37173
37469
|
if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime"))
|
|
37174
37470
|
$root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
37471
|
+
if (message.expectedFulfillmentPeriod != null && Object.hasOwnProperty.call(message, "expectedFulfillmentPeriod"))
|
|
37472
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.expectedFulfillmentPeriod);
|
|
37175
37473
|
return writer;
|
|
37176
37474
|
};
|
|
37177
37475
|
|
|
@@ -37222,6 +37520,10 @@
|
|
|
37222
37520
|
message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
37223
37521
|
break;
|
|
37224
37522
|
}
|
|
37523
|
+
case 5: {
|
|
37524
|
+
message.expectedFulfillmentPeriod = reader.int32();
|
|
37525
|
+
break;
|
|
37526
|
+
}
|
|
37225
37527
|
default:
|
|
37226
37528
|
reader.skipType(tag & 7);
|
|
37227
37529
|
break;
|
|
@@ -37277,6 +37579,15 @@
|
|
|
37277
37579
|
if (error)
|
|
37278
37580
|
return "endTime." + error;
|
|
37279
37581
|
}
|
|
37582
|
+
if (message.expectedFulfillmentPeriod != null && message.hasOwnProperty("expectedFulfillmentPeriod"))
|
|
37583
|
+
switch (message.expectedFulfillmentPeriod) {
|
|
37584
|
+
default:
|
|
37585
|
+
return "expectedFulfillmentPeriod: enum value expected";
|
|
37586
|
+
case 0:
|
|
37587
|
+
case 1:
|
|
37588
|
+
case 2:
|
|
37589
|
+
break;
|
|
37590
|
+
}
|
|
37280
37591
|
return null;
|
|
37281
37592
|
};
|
|
37282
37593
|
|
|
@@ -37312,6 +37623,26 @@
|
|
|
37312
37623
|
throw TypeError(".google.spanner.admin.instance.v1.UpdateInstanceMetadata.endTime: object expected");
|
|
37313
37624
|
message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime);
|
|
37314
37625
|
}
|
|
37626
|
+
switch (object.expectedFulfillmentPeriod) {
|
|
37627
|
+
default:
|
|
37628
|
+
if (typeof object.expectedFulfillmentPeriod === "number") {
|
|
37629
|
+
message.expectedFulfillmentPeriod = object.expectedFulfillmentPeriod;
|
|
37630
|
+
break;
|
|
37631
|
+
}
|
|
37632
|
+
break;
|
|
37633
|
+
case "FULFILLMENT_PERIOD_UNSPECIFIED":
|
|
37634
|
+
case 0:
|
|
37635
|
+
message.expectedFulfillmentPeriod = 0;
|
|
37636
|
+
break;
|
|
37637
|
+
case "FULFILLMENT_PERIOD_NORMAL":
|
|
37638
|
+
case 1:
|
|
37639
|
+
message.expectedFulfillmentPeriod = 1;
|
|
37640
|
+
break;
|
|
37641
|
+
case "FULFILLMENT_PERIOD_EXTENDED":
|
|
37642
|
+
case 2:
|
|
37643
|
+
message.expectedFulfillmentPeriod = 2;
|
|
37644
|
+
break;
|
|
37645
|
+
}
|
|
37315
37646
|
return message;
|
|
37316
37647
|
};
|
|
37317
37648
|
|
|
@@ -37333,6 +37664,7 @@
|
|
|
37333
37664
|
object.startTime = null;
|
|
37334
37665
|
object.cancelTime = null;
|
|
37335
37666
|
object.endTime = null;
|
|
37667
|
+
object.expectedFulfillmentPeriod = options.enums === String ? "FULFILLMENT_PERIOD_UNSPECIFIED" : 0;
|
|
37336
37668
|
}
|
|
37337
37669
|
if (message.instance != null && message.hasOwnProperty("instance"))
|
|
37338
37670
|
object.instance = $root.google.spanner.admin.instance.v1.Instance.toObject(message.instance, options);
|
|
@@ -37342,6 +37674,8 @@
|
|
|
37342
37674
|
object.cancelTime = $root.google.protobuf.Timestamp.toObject(message.cancelTime, options);
|
|
37343
37675
|
if (message.endTime != null && message.hasOwnProperty("endTime"))
|
|
37344
37676
|
object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options);
|
|
37677
|
+
if (message.expectedFulfillmentPeriod != null && message.hasOwnProperty("expectedFulfillmentPeriod"))
|
|
37678
|
+
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
37679
|
return object;
|
|
37346
37680
|
};
|
|
37347
37681
|
|
|
@@ -41676,6 +42010,7 @@
|
|
|
41676
42010
|
* @memberof google.spanner.executor.v1
|
|
41677
42011
|
* @interface ISpannerAction
|
|
41678
42012
|
* @property {string|null} [databasePath] SpannerAction databasePath
|
|
42013
|
+
* @property {google.spanner.executor.v1.ISpannerOptions|null} [spannerOptions] SpannerAction spannerOptions
|
|
41679
42014
|
* @property {google.spanner.executor.v1.IStartTransactionAction|null} [start] SpannerAction start
|
|
41680
42015
|
* @property {google.spanner.executor.v1.IFinishTransactionAction|null} [finish] SpannerAction finish
|
|
41681
42016
|
* @property {google.spanner.executor.v1.IReadAction|null} [read] SpannerAction read
|
|
@@ -41717,6 +42052,14 @@
|
|
|
41717
42052
|
*/
|
|
41718
42053
|
SpannerAction.prototype.databasePath = "";
|
|
41719
42054
|
|
|
42055
|
+
/**
|
|
42056
|
+
* SpannerAction spannerOptions.
|
|
42057
|
+
* @member {google.spanner.executor.v1.ISpannerOptions|null|undefined} spannerOptions
|
|
42058
|
+
* @memberof google.spanner.executor.v1.SpannerAction
|
|
42059
|
+
* @instance
|
|
42060
|
+
*/
|
|
42061
|
+
SpannerAction.prototype.spannerOptions = null;
|
|
42062
|
+
|
|
41720
42063
|
/**
|
|
41721
42064
|
* SpannerAction start.
|
|
41722
42065
|
* @member {google.spanner.executor.v1.IStartTransactionAction|null|undefined} start
|
|
@@ -41885,6 +42228,8 @@
|
|
|
41885
42228
|
writer = $Writer.create();
|
|
41886
42229
|
if (message.databasePath != null && Object.hasOwnProperty.call(message, "databasePath"))
|
|
41887
42230
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.databasePath);
|
|
42231
|
+
if (message.spannerOptions != null && Object.hasOwnProperty.call(message, "spannerOptions"))
|
|
42232
|
+
$root.google.spanner.executor.v1.SpannerOptions.encode(message.spannerOptions, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
41888
42233
|
if (message.start != null && Object.hasOwnProperty.call(message, "start"))
|
|
41889
42234
|
$root.google.spanner.executor.v1.StartTransactionAction.encode(message.start, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
41890
42235
|
if (message.finish != null && Object.hasOwnProperty.call(message, "finish"))
|
|
@@ -41955,6 +42300,10 @@
|
|
|
41955
42300
|
message.databasePath = reader.string();
|
|
41956
42301
|
break;
|
|
41957
42302
|
}
|
|
42303
|
+
case 2: {
|
|
42304
|
+
message.spannerOptions = $root.google.spanner.executor.v1.SpannerOptions.decode(reader, reader.uint32());
|
|
42305
|
+
break;
|
|
42306
|
+
}
|
|
41958
42307
|
case 10: {
|
|
41959
42308
|
message.start = $root.google.spanner.executor.v1.StartTransactionAction.decode(reader, reader.uint32());
|
|
41960
42309
|
break;
|
|
@@ -42058,6 +42407,11 @@
|
|
|
42058
42407
|
if (message.databasePath != null && message.hasOwnProperty("databasePath"))
|
|
42059
42408
|
if (!$util.isString(message.databasePath))
|
|
42060
42409
|
return "databasePath: string expected";
|
|
42410
|
+
if (message.spannerOptions != null && message.hasOwnProperty("spannerOptions")) {
|
|
42411
|
+
var error = $root.google.spanner.executor.v1.SpannerOptions.verify(message.spannerOptions);
|
|
42412
|
+
if (error)
|
|
42413
|
+
return "spannerOptions." + error;
|
|
42414
|
+
}
|
|
42061
42415
|
if (message.start != null && message.hasOwnProperty("start")) {
|
|
42062
42416
|
properties.action = 1;
|
|
42063
42417
|
{
|
|
@@ -42233,6 +42587,11 @@
|
|
|
42233
42587
|
var message = new $root.google.spanner.executor.v1.SpannerAction();
|
|
42234
42588
|
if (object.databasePath != null)
|
|
42235
42589
|
message.databasePath = String(object.databasePath);
|
|
42590
|
+
if (object.spannerOptions != null) {
|
|
42591
|
+
if (typeof object.spannerOptions !== "object")
|
|
42592
|
+
throw TypeError(".google.spanner.executor.v1.SpannerAction.spannerOptions: object expected");
|
|
42593
|
+
message.spannerOptions = $root.google.spanner.executor.v1.SpannerOptions.fromObject(object.spannerOptions);
|
|
42594
|
+
}
|
|
42236
42595
|
if (object.start != null) {
|
|
42237
42596
|
if (typeof object.start !== "object")
|
|
42238
42597
|
throw TypeError(".google.spanner.executor.v1.SpannerAction.start: object expected");
|
|
@@ -42329,10 +42688,14 @@
|
|
|
42329
42688
|
if (!options)
|
|
42330
42689
|
options = {};
|
|
42331
42690
|
var object = {};
|
|
42332
|
-
if (options.defaults)
|
|
42691
|
+
if (options.defaults) {
|
|
42333
42692
|
object.databasePath = "";
|
|
42693
|
+
object.spannerOptions = null;
|
|
42694
|
+
}
|
|
42334
42695
|
if (message.databasePath != null && message.hasOwnProperty("databasePath"))
|
|
42335
42696
|
object.databasePath = message.databasePath;
|
|
42697
|
+
if (message.spannerOptions != null && message.hasOwnProperty("spannerOptions"))
|
|
42698
|
+
object.spannerOptions = $root.google.spanner.executor.v1.SpannerOptions.toObject(message.spannerOptions, options);
|
|
42336
42699
|
if (message.start != null && message.hasOwnProperty("start")) {
|
|
42337
42700
|
object.start = $root.google.spanner.executor.v1.StartTransactionAction.toObject(message.start, options);
|
|
42338
42701
|
if (options.oneofs)
|
|
@@ -48951,7 +49314,7 @@
|
|
|
48951
49314
|
* @property {google.spanner.executor.v1.IListCloudBackupOperationsAction|null} [listCloudBackupOperations] AdminAction listCloudBackupOperations
|
|
48952
49315
|
* @property {google.spanner.executor.v1.IGetOperationAction|null} [getOperation] AdminAction getOperation
|
|
48953
49316
|
* @property {google.spanner.executor.v1.ICancelOperationAction|null} [cancelOperation] AdminAction cancelOperation
|
|
48954
|
-
* @property {google.spanner.executor.v1.
|
|
49317
|
+
* @property {google.spanner.executor.v1.IChangeQuorumCloudDatabaseAction|null} [changeQuorumCloudDatabase] AdminAction changeQuorumCloudDatabase
|
|
48955
49318
|
*/
|
|
48956
49319
|
|
|
48957
49320
|
/**
|
|
@@ -49186,24 +49549,24 @@
|
|
|
49186
49549
|
AdminAction.prototype.cancelOperation = null;
|
|
49187
49550
|
|
|
49188
49551
|
/**
|
|
49189
|
-
* AdminAction
|
|
49190
|
-
* @member {google.spanner.executor.v1.
|
|
49552
|
+
* AdminAction changeQuorumCloudDatabase.
|
|
49553
|
+
* @member {google.spanner.executor.v1.IChangeQuorumCloudDatabaseAction|null|undefined} changeQuorumCloudDatabase
|
|
49191
49554
|
* @memberof google.spanner.executor.v1.AdminAction
|
|
49192
49555
|
* @instance
|
|
49193
49556
|
*/
|
|
49194
|
-
AdminAction.prototype.
|
|
49557
|
+
AdminAction.prototype.changeQuorumCloudDatabase = null;
|
|
49195
49558
|
|
|
49196
49559
|
// OneOf field names bound to virtual getters and setters
|
|
49197
49560
|
var $oneOfFields;
|
|
49198
49561
|
|
|
49199
49562
|
/**
|
|
49200
49563
|
* 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"|"
|
|
49564
|
+
* @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
49565
|
* @memberof google.spanner.executor.v1.AdminAction
|
|
49203
49566
|
* @instance
|
|
49204
49567
|
*/
|
|
49205
49568
|
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", "
|
|
49569
|
+
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
49570
|
set: $util.oneOfSetter($oneOfFields)
|
|
49208
49571
|
});
|
|
49209
49572
|
|
|
@@ -49285,8 +49648,8 @@
|
|
|
49285
49648
|
$root.google.spanner.executor.v1.CancelOperationAction.encode(message.cancelOperation, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
|
|
49286
49649
|
if (message.updateCloudDatabase != null && Object.hasOwnProperty.call(message, "updateCloudDatabase"))
|
|
49287
49650
|
$root.google.spanner.executor.v1.UpdateCloudDatabaseAction.encode(message.updateCloudDatabase, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
|
|
49288
|
-
if (message.
|
|
49289
|
-
$root.google.spanner.executor.v1.
|
|
49651
|
+
if (message.changeQuorumCloudDatabase != null && Object.hasOwnProperty.call(message, "changeQuorumCloudDatabase"))
|
|
49652
|
+
$root.google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction.encode(message.changeQuorumCloudDatabase, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim();
|
|
49290
49653
|
return writer;
|
|
49291
49654
|
};
|
|
49292
49655
|
|
|
@@ -49430,7 +49793,7 @@
|
|
|
49430
49793
|
break;
|
|
49431
49794
|
}
|
|
49432
49795
|
case 28: {
|
|
49433
|
-
message.
|
|
49796
|
+
message.changeQuorumCloudDatabase = $root.google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction.decode(reader, reader.uint32());
|
|
49434
49797
|
break;
|
|
49435
49798
|
}
|
|
49436
49799
|
default:
|
|
@@ -49737,14 +50100,14 @@
|
|
|
49737
50100
|
return "cancelOperation." + error;
|
|
49738
50101
|
}
|
|
49739
50102
|
}
|
|
49740
|
-
if (message.
|
|
50103
|
+
if (message.changeQuorumCloudDatabase != null && message.hasOwnProperty("changeQuorumCloudDatabase")) {
|
|
49741
50104
|
if (properties.action === 1)
|
|
49742
50105
|
return "action: multiple values";
|
|
49743
50106
|
properties.action = 1;
|
|
49744
50107
|
{
|
|
49745
|
-
var error = $root.google.spanner.executor.v1.
|
|
50108
|
+
var error = $root.google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction.verify(message.changeQuorumCloudDatabase);
|
|
49746
50109
|
if (error)
|
|
49747
|
-
return "
|
|
50110
|
+
return "changeQuorumCloudDatabase." + error;
|
|
49748
50111
|
}
|
|
49749
50112
|
}
|
|
49750
50113
|
return null;
|
|
@@ -49897,10 +50260,10 @@
|
|
|
49897
50260
|
throw TypeError(".google.spanner.executor.v1.AdminAction.cancelOperation: object expected");
|
|
49898
50261
|
message.cancelOperation = $root.google.spanner.executor.v1.CancelOperationAction.fromObject(object.cancelOperation);
|
|
49899
50262
|
}
|
|
49900
|
-
if (object.
|
|
49901
|
-
if (typeof object.
|
|
49902
|
-
throw TypeError(".google.spanner.executor.v1.AdminAction.
|
|
49903
|
-
message.
|
|
50263
|
+
if (object.changeQuorumCloudDatabase != null) {
|
|
50264
|
+
if (typeof object.changeQuorumCloudDatabase !== "object")
|
|
50265
|
+
throw TypeError(".google.spanner.executor.v1.AdminAction.changeQuorumCloudDatabase: object expected");
|
|
50266
|
+
message.changeQuorumCloudDatabase = $root.google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction.fromObject(object.changeQuorumCloudDatabase);
|
|
49904
50267
|
}
|
|
49905
50268
|
return message;
|
|
49906
50269
|
};
|
|
@@ -50053,10 +50416,10 @@
|
|
|
50053
50416
|
if (options.oneofs)
|
|
50054
50417
|
object.action = "updateCloudDatabase";
|
|
50055
50418
|
}
|
|
50056
|
-
if (message.
|
|
50057
|
-
object.
|
|
50419
|
+
if (message.changeQuorumCloudDatabase != null && message.hasOwnProperty("changeQuorumCloudDatabase")) {
|
|
50420
|
+
object.changeQuorumCloudDatabase = $root.google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction.toObject(message.changeQuorumCloudDatabase, options);
|
|
50058
50421
|
if (options.oneofs)
|
|
50059
|
-
object.action = "
|
|
50422
|
+
object.action = "changeQuorumCloudDatabase";
|
|
50060
50423
|
}
|
|
50061
50424
|
return object;
|
|
50062
50425
|
};
|
|
@@ -53840,25 +54203,25 @@
|
|
|
53840
54203
|
return DropCloudDatabaseAction;
|
|
53841
54204
|
})();
|
|
53842
54205
|
|
|
53843
|
-
v1.
|
|
54206
|
+
v1.ChangeQuorumCloudDatabaseAction = (function() {
|
|
53844
54207
|
|
|
53845
54208
|
/**
|
|
53846
|
-
* Properties of a
|
|
54209
|
+
* Properties of a ChangeQuorumCloudDatabaseAction.
|
|
53847
54210
|
* @memberof google.spanner.executor.v1
|
|
53848
|
-
* @interface
|
|
53849
|
-
* @property {string|null} [databaseUri]
|
|
53850
|
-
* @property {Array.<string>|null} [servingLocations]
|
|
54211
|
+
* @interface IChangeQuorumCloudDatabaseAction
|
|
54212
|
+
* @property {string|null} [databaseUri] ChangeQuorumCloudDatabaseAction databaseUri
|
|
54213
|
+
* @property {Array.<string>|null} [servingLocations] ChangeQuorumCloudDatabaseAction servingLocations
|
|
53851
54214
|
*/
|
|
53852
54215
|
|
|
53853
54216
|
/**
|
|
53854
|
-
* Constructs a new
|
|
54217
|
+
* Constructs a new ChangeQuorumCloudDatabaseAction.
|
|
53855
54218
|
* @memberof google.spanner.executor.v1
|
|
53856
|
-
* @classdesc Represents a
|
|
53857
|
-
* @implements
|
|
54219
|
+
* @classdesc Represents a ChangeQuorumCloudDatabaseAction.
|
|
54220
|
+
* @implements IChangeQuorumCloudDatabaseAction
|
|
53858
54221
|
* @constructor
|
|
53859
|
-
* @param {google.spanner.executor.v1.
|
|
54222
|
+
* @param {google.spanner.executor.v1.IChangeQuorumCloudDatabaseAction=} [properties] Properties to set
|
|
53860
54223
|
*/
|
|
53861
|
-
function
|
|
54224
|
+
function ChangeQuorumCloudDatabaseAction(properties) {
|
|
53862
54225
|
this.servingLocations = [];
|
|
53863
54226
|
if (properties)
|
|
53864
54227
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -53867,57 +54230,57 @@
|
|
|
53867
54230
|
}
|
|
53868
54231
|
|
|
53869
54232
|
/**
|
|
53870
|
-
*
|
|
54233
|
+
* ChangeQuorumCloudDatabaseAction databaseUri.
|
|
53871
54234
|
* @member {string|null|undefined} databaseUri
|
|
53872
|
-
* @memberof google.spanner.executor.v1.
|
|
54235
|
+
* @memberof google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction
|
|
53873
54236
|
* @instance
|
|
53874
54237
|
*/
|
|
53875
|
-
|
|
54238
|
+
ChangeQuorumCloudDatabaseAction.prototype.databaseUri = null;
|
|
53876
54239
|
|
|
53877
54240
|
/**
|
|
53878
|
-
*
|
|
54241
|
+
* ChangeQuorumCloudDatabaseAction servingLocations.
|
|
53879
54242
|
* @member {Array.<string>} servingLocations
|
|
53880
|
-
* @memberof google.spanner.executor.v1.
|
|
54243
|
+
* @memberof google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction
|
|
53881
54244
|
* @instance
|
|
53882
54245
|
*/
|
|
53883
|
-
|
|
54246
|
+
ChangeQuorumCloudDatabaseAction.prototype.servingLocations = $util.emptyArray;
|
|
53884
54247
|
|
|
53885
54248
|
// OneOf field names bound to virtual getters and setters
|
|
53886
54249
|
var $oneOfFields;
|
|
53887
54250
|
|
|
53888
54251
|
/**
|
|
53889
|
-
*
|
|
54252
|
+
* ChangeQuorumCloudDatabaseAction _databaseUri.
|
|
53890
54253
|
* @member {"databaseUri"|undefined} _databaseUri
|
|
53891
|
-
* @memberof google.spanner.executor.v1.
|
|
54254
|
+
* @memberof google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction
|
|
53892
54255
|
* @instance
|
|
53893
54256
|
*/
|
|
53894
|
-
Object.defineProperty(
|
|
54257
|
+
Object.defineProperty(ChangeQuorumCloudDatabaseAction.prototype, "_databaseUri", {
|
|
53895
54258
|
get: $util.oneOfGetter($oneOfFields = ["databaseUri"]),
|
|
53896
54259
|
set: $util.oneOfSetter($oneOfFields)
|
|
53897
54260
|
});
|
|
53898
54261
|
|
|
53899
54262
|
/**
|
|
53900
|
-
* Creates a new
|
|
54263
|
+
* Creates a new ChangeQuorumCloudDatabaseAction instance using the specified properties.
|
|
53901
54264
|
* @function create
|
|
53902
|
-
* @memberof google.spanner.executor.v1.
|
|
54265
|
+
* @memberof google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction
|
|
53903
54266
|
* @static
|
|
53904
|
-
* @param {google.spanner.executor.v1.
|
|
53905
|
-
* @returns {google.spanner.executor.v1.
|
|
54267
|
+
* @param {google.spanner.executor.v1.IChangeQuorumCloudDatabaseAction=} [properties] Properties to set
|
|
54268
|
+
* @returns {google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction} ChangeQuorumCloudDatabaseAction instance
|
|
53906
54269
|
*/
|
|
53907
|
-
|
|
53908
|
-
return new
|
|
54270
|
+
ChangeQuorumCloudDatabaseAction.create = function create(properties) {
|
|
54271
|
+
return new ChangeQuorumCloudDatabaseAction(properties);
|
|
53909
54272
|
};
|
|
53910
54273
|
|
|
53911
54274
|
/**
|
|
53912
|
-
* Encodes the specified
|
|
54275
|
+
* Encodes the specified ChangeQuorumCloudDatabaseAction message. Does not implicitly {@link google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction.verify|verify} messages.
|
|
53913
54276
|
* @function encode
|
|
53914
|
-
* @memberof google.spanner.executor.v1.
|
|
54277
|
+
* @memberof google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction
|
|
53915
54278
|
* @static
|
|
53916
|
-
* @param {google.spanner.executor.v1.
|
|
54279
|
+
* @param {google.spanner.executor.v1.IChangeQuorumCloudDatabaseAction} message ChangeQuorumCloudDatabaseAction message or plain object to encode
|
|
53917
54280
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
53918
54281
|
* @returns {$protobuf.Writer} Writer
|
|
53919
54282
|
*/
|
|
53920
|
-
|
|
54283
|
+
ChangeQuorumCloudDatabaseAction.encode = function encode(message, writer) {
|
|
53921
54284
|
if (!writer)
|
|
53922
54285
|
writer = $Writer.create();
|
|
53923
54286
|
if (message.databaseUri != null && Object.hasOwnProperty.call(message, "databaseUri"))
|
|
@@ -53929,33 +54292,33 @@
|
|
|
53929
54292
|
};
|
|
53930
54293
|
|
|
53931
54294
|
/**
|
|
53932
|
-
* Encodes the specified
|
|
54295
|
+
* Encodes the specified ChangeQuorumCloudDatabaseAction message, length delimited. Does not implicitly {@link google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction.verify|verify} messages.
|
|
53933
54296
|
* @function encodeDelimited
|
|
53934
|
-
* @memberof google.spanner.executor.v1.
|
|
54297
|
+
* @memberof google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction
|
|
53935
54298
|
* @static
|
|
53936
|
-
* @param {google.spanner.executor.v1.
|
|
54299
|
+
* @param {google.spanner.executor.v1.IChangeQuorumCloudDatabaseAction} message ChangeQuorumCloudDatabaseAction message or plain object to encode
|
|
53937
54300
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
53938
54301
|
* @returns {$protobuf.Writer} Writer
|
|
53939
54302
|
*/
|
|
53940
|
-
|
|
54303
|
+
ChangeQuorumCloudDatabaseAction.encodeDelimited = function encodeDelimited(message, writer) {
|
|
53941
54304
|
return this.encode(message, writer).ldelim();
|
|
53942
54305
|
};
|
|
53943
54306
|
|
|
53944
54307
|
/**
|
|
53945
|
-
* Decodes a
|
|
54308
|
+
* Decodes a ChangeQuorumCloudDatabaseAction message from the specified reader or buffer.
|
|
53946
54309
|
* @function decode
|
|
53947
|
-
* @memberof google.spanner.executor.v1.
|
|
54310
|
+
* @memberof google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction
|
|
53948
54311
|
* @static
|
|
53949
54312
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
53950
54313
|
* @param {number} [length] Message length if known beforehand
|
|
53951
|
-
* @returns {google.spanner.executor.v1.
|
|
54314
|
+
* @returns {google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction} ChangeQuorumCloudDatabaseAction
|
|
53952
54315
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
53953
54316
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
53954
54317
|
*/
|
|
53955
|
-
|
|
54318
|
+
ChangeQuorumCloudDatabaseAction.decode = function decode(reader, length) {
|
|
53956
54319
|
if (!(reader instanceof $Reader))
|
|
53957
54320
|
reader = $Reader.create(reader);
|
|
53958
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.spanner.executor.v1.
|
|
54321
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction();
|
|
53959
54322
|
while (reader.pos < end) {
|
|
53960
54323
|
var tag = reader.uint32();
|
|
53961
54324
|
switch (tag >>> 3) {
|
|
@@ -53978,30 +54341,30 @@
|
|
|
53978
54341
|
};
|
|
53979
54342
|
|
|
53980
54343
|
/**
|
|
53981
|
-
* Decodes a
|
|
54344
|
+
* Decodes a ChangeQuorumCloudDatabaseAction message from the specified reader or buffer, length delimited.
|
|
53982
54345
|
* @function decodeDelimited
|
|
53983
|
-
* @memberof google.spanner.executor.v1.
|
|
54346
|
+
* @memberof google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction
|
|
53984
54347
|
* @static
|
|
53985
54348
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
53986
|
-
* @returns {google.spanner.executor.v1.
|
|
54349
|
+
* @returns {google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction} ChangeQuorumCloudDatabaseAction
|
|
53987
54350
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
53988
54351
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
53989
54352
|
*/
|
|
53990
|
-
|
|
54353
|
+
ChangeQuorumCloudDatabaseAction.decodeDelimited = function decodeDelimited(reader) {
|
|
53991
54354
|
if (!(reader instanceof $Reader))
|
|
53992
54355
|
reader = new $Reader(reader);
|
|
53993
54356
|
return this.decode(reader, reader.uint32());
|
|
53994
54357
|
};
|
|
53995
54358
|
|
|
53996
54359
|
/**
|
|
53997
|
-
* Verifies a
|
|
54360
|
+
* Verifies a ChangeQuorumCloudDatabaseAction message.
|
|
53998
54361
|
* @function verify
|
|
53999
|
-
* @memberof google.spanner.executor.v1.
|
|
54362
|
+
* @memberof google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction
|
|
54000
54363
|
* @static
|
|
54001
54364
|
* @param {Object.<string,*>} message Plain object to verify
|
|
54002
54365
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
54003
54366
|
*/
|
|
54004
|
-
|
|
54367
|
+
ChangeQuorumCloudDatabaseAction.verify = function verify(message) {
|
|
54005
54368
|
if (typeof message !== "object" || message === null)
|
|
54006
54369
|
return "object expected";
|
|
54007
54370
|
var properties = {};
|
|
@@ -54021,22 +54384,22 @@
|
|
|
54021
54384
|
};
|
|
54022
54385
|
|
|
54023
54386
|
/**
|
|
54024
|
-
* Creates a
|
|
54387
|
+
* Creates a ChangeQuorumCloudDatabaseAction message from a plain object. Also converts values to their respective internal types.
|
|
54025
54388
|
* @function fromObject
|
|
54026
|
-
* @memberof google.spanner.executor.v1.
|
|
54389
|
+
* @memberof google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction
|
|
54027
54390
|
* @static
|
|
54028
54391
|
* @param {Object.<string,*>} object Plain object
|
|
54029
|
-
* @returns {google.spanner.executor.v1.
|
|
54392
|
+
* @returns {google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction} ChangeQuorumCloudDatabaseAction
|
|
54030
54393
|
*/
|
|
54031
|
-
|
|
54032
|
-
if (object instanceof $root.google.spanner.executor.v1.
|
|
54394
|
+
ChangeQuorumCloudDatabaseAction.fromObject = function fromObject(object) {
|
|
54395
|
+
if (object instanceof $root.google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction)
|
|
54033
54396
|
return object;
|
|
54034
|
-
var message = new $root.google.spanner.executor.v1.
|
|
54397
|
+
var message = new $root.google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction();
|
|
54035
54398
|
if (object.databaseUri != null)
|
|
54036
54399
|
message.databaseUri = String(object.databaseUri);
|
|
54037
54400
|
if (object.servingLocations) {
|
|
54038
54401
|
if (!Array.isArray(object.servingLocations))
|
|
54039
|
-
throw TypeError(".google.spanner.executor.v1.
|
|
54402
|
+
throw TypeError(".google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction.servingLocations: array expected");
|
|
54040
54403
|
message.servingLocations = [];
|
|
54041
54404
|
for (var i = 0; i < object.servingLocations.length; ++i)
|
|
54042
54405
|
message.servingLocations[i] = String(object.servingLocations[i]);
|
|
@@ -54045,15 +54408,15 @@
|
|
|
54045
54408
|
};
|
|
54046
54409
|
|
|
54047
54410
|
/**
|
|
54048
|
-
* Creates a plain object from a
|
|
54411
|
+
* Creates a plain object from a ChangeQuorumCloudDatabaseAction message. Also converts values to other types if specified.
|
|
54049
54412
|
* @function toObject
|
|
54050
|
-
* @memberof google.spanner.executor.v1.
|
|
54413
|
+
* @memberof google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction
|
|
54051
54414
|
* @static
|
|
54052
|
-
* @param {google.spanner.executor.v1.
|
|
54415
|
+
* @param {google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction} message ChangeQuorumCloudDatabaseAction
|
|
54053
54416
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
54054
54417
|
* @returns {Object.<string,*>} Plain object
|
|
54055
54418
|
*/
|
|
54056
|
-
|
|
54419
|
+
ChangeQuorumCloudDatabaseAction.toObject = function toObject(message, options) {
|
|
54057
54420
|
if (!options)
|
|
54058
54421
|
options = {};
|
|
54059
54422
|
var object = {};
|
|
@@ -54073,32 +54436,32 @@
|
|
|
54073
54436
|
};
|
|
54074
54437
|
|
|
54075
54438
|
/**
|
|
54076
|
-
* Converts this
|
|
54439
|
+
* Converts this ChangeQuorumCloudDatabaseAction to JSON.
|
|
54077
54440
|
* @function toJSON
|
|
54078
|
-
* @memberof google.spanner.executor.v1.
|
|
54441
|
+
* @memberof google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction
|
|
54079
54442
|
* @instance
|
|
54080
54443
|
* @returns {Object.<string,*>} JSON object
|
|
54081
54444
|
*/
|
|
54082
|
-
|
|
54445
|
+
ChangeQuorumCloudDatabaseAction.prototype.toJSON = function toJSON() {
|
|
54083
54446
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
54084
54447
|
};
|
|
54085
54448
|
|
|
54086
54449
|
/**
|
|
54087
|
-
* Gets the default type url for
|
|
54450
|
+
* Gets the default type url for ChangeQuorumCloudDatabaseAction
|
|
54088
54451
|
* @function getTypeUrl
|
|
54089
|
-
* @memberof google.spanner.executor.v1.
|
|
54452
|
+
* @memberof google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction
|
|
54090
54453
|
* @static
|
|
54091
54454
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
54092
54455
|
* @returns {string} The default type url
|
|
54093
54456
|
*/
|
|
54094
|
-
|
|
54457
|
+
ChangeQuorumCloudDatabaseAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
54095
54458
|
if (typeUrlPrefix === undefined) {
|
|
54096
54459
|
typeUrlPrefix = "type.googleapis.com";
|
|
54097
54460
|
}
|
|
54098
|
-
return typeUrlPrefix + "/google.spanner.executor.v1.
|
|
54461
|
+
return typeUrlPrefix + "/google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction";
|
|
54099
54462
|
};
|
|
54100
54463
|
|
|
54101
|
-
return
|
|
54464
|
+
return ChangeQuorumCloudDatabaseAction;
|
|
54102
54465
|
})();
|
|
54103
54466
|
|
|
54104
54467
|
v1.ListCloudDatabasesAction = (function() {
|
|
@@ -55229,6 +55592,7 @@
|
|
|
55229
55592
|
* @property {string|null} [backupId] RestoreCloudDatabaseAction backupId
|
|
55230
55593
|
* @property {string|null} [databaseInstanceId] RestoreCloudDatabaseAction databaseInstanceId
|
|
55231
55594
|
* @property {string|null} [databaseId] RestoreCloudDatabaseAction databaseId
|
|
55595
|
+
* @property {google.spanner.admin.database.v1.IEncryptionConfig|null} [encryptionConfig] RestoreCloudDatabaseAction encryptionConfig
|
|
55232
55596
|
*/
|
|
55233
55597
|
|
|
55234
55598
|
/**
|
|
@@ -55286,6 +55650,14 @@
|
|
|
55286
55650
|
*/
|
|
55287
55651
|
RestoreCloudDatabaseAction.prototype.databaseId = "";
|
|
55288
55652
|
|
|
55653
|
+
/**
|
|
55654
|
+
* RestoreCloudDatabaseAction encryptionConfig.
|
|
55655
|
+
* @member {google.spanner.admin.database.v1.IEncryptionConfig|null|undefined} encryptionConfig
|
|
55656
|
+
* @memberof google.spanner.executor.v1.RestoreCloudDatabaseAction
|
|
55657
|
+
* @instance
|
|
55658
|
+
*/
|
|
55659
|
+
RestoreCloudDatabaseAction.prototype.encryptionConfig = null;
|
|
55660
|
+
|
|
55289
55661
|
/**
|
|
55290
55662
|
* Creates a new RestoreCloudDatabaseAction instance using the specified properties.
|
|
55291
55663
|
* @function create
|
|
@@ -55320,6 +55692,8 @@
|
|
|
55320
55692
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.databaseInstanceId);
|
|
55321
55693
|
if (message.databaseId != null && Object.hasOwnProperty.call(message, "databaseId"))
|
|
55322
55694
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.databaseId);
|
|
55695
|
+
if (message.encryptionConfig != null && Object.hasOwnProperty.call(message, "encryptionConfig"))
|
|
55696
|
+
$root.google.spanner.admin.database.v1.EncryptionConfig.encode(message.encryptionConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
55323
55697
|
return writer;
|
|
55324
55698
|
};
|
|
55325
55699
|
|
|
@@ -55374,6 +55748,10 @@
|
|
|
55374
55748
|
message.databaseId = reader.string();
|
|
55375
55749
|
break;
|
|
55376
55750
|
}
|
|
55751
|
+
case 7: {
|
|
55752
|
+
message.encryptionConfig = $root.google.spanner.admin.database.v1.EncryptionConfig.decode(reader, reader.uint32());
|
|
55753
|
+
break;
|
|
55754
|
+
}
|
|
55377
55755
|
default:
|
|
55378
55756
|
reader.skipType(tag & 7);
|
|
55379
55757
|
break;
|
|
@@ -55424,6 +55802,11 @@
|
|
|
55424
55802
|
if (message.databaseId != null && message.hasOwnProperty("databaseId"))
|
|
55425
55803
|
if (!$util.isString(message.databaseId))
|
|
55426
55804
|
return "databaseId: string expected";
|
|
55805
|
+
if (message.encryptionConfig != null && message.hasOwnProperty("encryptionConfig")) {
|
|
55806
|
+
var error = $root.google.spanner.admin.database.v1.EncryptionConfig.verify(message.encryptionConfig);
|
|
55807
|
+
if (error)
|
|
55808
|
+
return "encryptionConfig." + error;
|
|
55809
|
+
}
|
|
55427
55810
|
return null;
|
|
55428
55811
|
};
|
|
55429
55812
|
|
|
@@ -55449,6 +55832,11 @@
|
|
|
55449
55832
|
message.databaseInstanceId = String(object.databaseInstanceId);
|
|
55450
55833
|
if (object.databaseId != null)
|
|
55451
55834
|
message.databaseId = String(object.databaseId);
|
|
55835
|
+
if (object.encryptionConfig != null) {
|
|
55836
|
+
if (typeof object.encryptionConfig !== "object")
|
|
55837
|
+
throw TypeError(".google.spanner.executor.v1.RestoreCloudDatabaseAction.encryptionConfig: object expected");
|
|
55838
|
+
message.encryptionConfig = $root.google.spanner.admin.database.v1.EncryptionConfig.fromObject(object.encryptionConfig);
|
|
55839
|
+
}
|
|
55452
55840
|
return message;
|
|
55453
55841
|
};
|
|
55454
55842
|
|
|
@@ -55471,6 +55859,7 @@
|
|
|
55471
55859
|
object.backupId = "";
|
|
55472
55860
|
object.databaseInstanceId = "";
|
|
55473
55861
|
object.databaseId = "";
|
|
55862
|
+
object.encryptionConfig = null;
|
|
55474
55863
|
}
|
|
55475
55864
|
if (message.projectId != null && message.hasOwnProperty("projectId"))
|
|
55476
55865
|
object.projectId = message.projectId;
|
|
@@ -55482,6 +55871,8 @@
|
|
|
55482
55871
|
object.databaseInstanceId = message.databaseInstanceId;
|
|
55483
55872
|
if (message.databaseId != null && message.hasOwnProperty("databaseId"))
|
|
55484
55873
|
object.databaseId = message.databaseId;
|
|
55874
|
+
if (message.encryptionConfig != null && message.hasOwnProperty("encryptionConfig"))
|
|
55875
|
+
object.encryptionConfig = $root.google.spanner.admin.database.v1.EncryptionConfig.toObject(message.encryptionConfig, options);
|
|
55485
55876
|
return object;
|
|
55486
55877
|
};
|
|
55487
55878
|
|
|
@@ -55776,6 +56167,7 @@
|
|
|
55776
56167
|
* @property {string|null} [databaseId] CreateCloudBackupAction databaseId
|
|
55777
56168
|
* @property {google.protobuf.ITimestamp|null} [expireTime] CreateCloudBackupAction expireTime
|
|
55778
56169
|
* @property {google.protobuf.ITimestamp|null} [versionTime] CreateCloudBackupAction versionTime
|
|
56170
|
+
* @property {google.spanner.admin.database.v1.IEncryptionConfig|null} [encryptionConfig] CreateCloudBackupAction encryptionConfig
|
|
55779
56171
|
*/
|
|
55780
56172
|
|
|
55781
56173
|
/**
|
|
@@ -55841,6 +56233,14 @@
|
|
|
55841
56233
|
*/
|
|
55842
56234
|
CreateCloudBackupAction.prototype.versionTime = null;
|
|
55843
56235
|
|
|
56236
|
+
/**
|
|
56237
|
+
* CreateCloudBackupAction encryptionConfig.
|
|
56238
|
+
* @member {google.spanner.admin.database.v1.IEncryptionConfig|null|undefined} encryptionConfig
|
|
56239
|
+
* @memberof google.spanner.executor.v1.CreateCloudBackupAction
|
|
56240
|
+
* @instance
|
|
56241
|
+
*/
|
|
56242
|
+
CreateCloudBackupAction.prototype.encryptionConfig = null;
|
|
56243
|
+
|
|
55844
56244
|
// OneOf field names bound to virtual getters and setters
|
|
55845
56245
|
var $oneOfFields;
|
|
55846
56246
|
|
|
@@ -55891,6 +56291,8 @@
|
|
|
55891
56291
|
$root.google.protobuf.Timestamp.encode(message.expireTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
55892
56292
|
if (message.versionTime != null && Object.hasOwnProperty.call(message, "versionTime"))
|
|
55893
56293
|
$root.google.protobuf.Timestamp.encode(message.versionTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
56294
|
+
if (message.encryptionConfig != null && Object.hasOwnProperty.call(message, "encryptionConfig"))
|
|
56295
|
+
$root.google.spanner.admin.database.v1.EncryptionConfig.encode(message.encryptionConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
55894
56296
|
return writer;
|
|
55895
56297
|
};
|
|
55896
56298
|
|
|
@@ -55949,6 +56351,10 @@
|
|
|
55949
56351
|
message.versionTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
55950
56352
|
break;
|
|
55951
56353
|
}
|
|
56354
|
+
case 7: {
|
|
56355
|
+
message.encryptionConfig = $root.google.spanner.admin.database.v1.EncryptionConfig.decode(reader, reader.uint32());
|
|
56356
|
+
break;
|
|
56357
|
+
}
|
|
55952
56358
|
default:
|
|
55953
56359
|
reader.skipType(tag & 7);
|
|
55954
56360
|
break;
|
|
@@ -56010,6 +56416,11 @@
|
|
|
56010
56416
|
return "versionTime." + error;
|
|
56011
56417
|
}
|
|
56012
56418
|
}
|
|
56419
|
+
if (message.encryptionConfig != null && message.hasOwnProperty("encryptionConfig")) {
|
|
56420
|
+
var error = $root.google.spanner.admin.database.v1.EncryptionConfig.verify(message.encryptionConfig);
|
|
56421
|
+
if (error)
|
|
56422
|
+
return "encryptionConfig." + error;
|
|
56423
|
+
}
|
|
56013
56424
|
return null;
|
|
56014
56425
|
};
|
|
56015
56426
|
|
|
@@ -56043,6 +56454,11 @@
|
|
|
56043
56454
|
throw TypeError(".google.spanner.executor.v1.CreateCloudBackupAction.versionTime: object expected");
|
|
56044
56455
|
message.versionTime = $root.google.protobuf.Timestamp.fromObject(object.versionTime);
|
|
56045
56456
|
}
|
|
56457
|
+
if (object.encryptionConfig != null) {
|
|
56458
|
+
if (typeof object.encryptionConfig !== "object")
|
|
56459
|
+
throw TypeError(".google.spanner.executor.v1.CreateCloudBackupAction.encryptionConfig: object expected");
|
|
56460
|
+
message.encryptionConfig = $root.google.spanner.admin.database.v1.EncryptionConfig.fromObject(object.encryptionConfig);
|
|
56461
|
+
}
|
|
56046
56462
|
return message;
|
|
56047
56463
|
};
|
|
56048
56464
|
|
|
@@ -56065,6 +56481,7 @@
|
|
|
56065
56481
|
object.backupId = "";
|
|
56066
56482
|
object.databaseId = "";
|
|
56067
56483
|
object.expireTime = null;
|
|
56484
|
+
object.encryptionConfig = null;
|
|
56068
56485
|
}
|
|
56069
56486
|
if (message.projectId != null && message.hasOwnProperty("projectId"))
|
|
56070
56487
|
object.projectId = message.projectId;
|
|
@@ -56081,6 +56498,8 @@
|
|
|
56081
56498
|
if (options.oneofs)
|
|
56082
56499
|
object._versionTime = "versionTime";
|
|
56083
56500
|
}
|
|
56501
|
+
if (message.encryptionConfig != null && message.hasOwnProperty("encryptionConfig"))
|
|
56502
|
+
object.encryptionConfig = $root.google.spanner.admin.database.v1.EncryptionConfig.toObject(message.encryptionConfig, options);
|
|
56084
56503
|
return object;
|
|
56085
56504
|
};
|
|
56086
56505
|
|
|
@@ -65492,6 +65911,417 @@
|
|
|
65492
65911
|
return HeartbeatRecord;
|
|
65493
65912
|
})();
|
|
65494
65913
|
|
|
65914
|
+
v1.SpannerOptions = (function() {
|
|
65915
|
+
|
|
65916
|
+
/**
|
|
65917
|
+
* Properties of a SpannerOptions.
|
|
65918
|
+
* @memberof google.spanner.executor.v1
|
|
65919
|
+
* @interface ISpannerOptions
|
|
65920
|
+
* @property {google.spanner.executor.v1.ISessionPoolOptions|null} [sessionPoolOptions] SpannerOptions sessionPoolOptions
|
|
65921
|
+
*/
|
|
65922
|
+
|
|
65923
|
+
/**
|
|
65924
|
+
* Constructs a new SpannerOptions.
|
|
65925
|
+
* @memberof google.spanner.executor.v1
|
|
65926
|
+
* @classdesc Represents a SpannerOptions.
|
|
65927
|
+
* @implements ISpannerOptions
|
|
65928
|
+
* @constructor
|
|
65929
|
+
* @param {google.spanner.executor.v1.ISpannerOptions=} [properties] Properties to set
|
|
65930
|
+
*/
|
|
65931
|
+
function SpannerOptions(properties) {
|
|
65932
|
+
if (properties)
|
|
65933
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
65934
|
+
if (properties[keys[i]] != null)
|
|
65935
|
+
this[keys[i]] = properties[keys[i]];
|
|
65936
|
+
}
|
|
65937
|
+
|
|
65938
|
+
/**
|
|
65939
|
+
* SpannerOptions sessionPoolOptions.
|
|
65940
|
+
* @member {google.spanner.executor.v1.ISessionPoolOptions|null|undefined} sessionPoolOptions
|
|
65941
|
+
* @memberof google.spanner.executor.v1.SpannerOptions
|
|
65942
|
+
* @instance
|
|
65943
|
+
*/
|
|
65944
|
+
SpannerOptions.prototype.sessionPoolOptions = null;
|
|
65945
|
+
|
|
65946
|
+
/**
|
|
65947
|
+
* Creates a new SpannerOptions instance using the specified properties.
|
|
65948
|
+
* @function create
|
|
65949
|
+
* @memberof google.spanner.executor.v1.SpannerOptions
|
|
65950
|
+
* @static
|
|
65951
|
+
* @param {google.spanner.executor.v1.ISpannerOptions=} [properties] Properties to set
|
|
65952
|
+
* @returns {google.spanner.executor.v1.SpannerOptions} SpannerOptions instance
|
|
65953
|
+
*/
|
|
65954
|
+
SpannerOptions.create = function create(properties) {
|
|
65955
|
+
return new SpannerOptions(properties);
|
|
65956
|
+
};
|
|
65957
|
+
|
|
65958
|
+
/**
|
|
65959
|
+
* Encodes the specified SpannerOptions message. Does not implicitly {@link google.spanner.executor.v1.SpannerOptions.verify|verify} messages.
|
|
65960
|
+
* @function encode
|
|
65961
|
+
* @memberof google.spanner.executor.v1.SpannerOptions
|
|
65962
|
+
* @static
|
|
65963
|
+
* @param {google.spanner.executor.v1.ISpannerOptions} message SpannerOptions message or plain object to encode
|
|
65964
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
65965
|
+
* @returns {$protobuf.Writer} Writer
|
|
65966
|
+
*/
|
|
65967
|
+
SpannerOptions.encode = function encode(message, writer) {
|
|
65968
|
+
if (!writer)
|
|
65969
|
+
writer = $Writer.create();
|
|
65970
|
+
if (message.sessionPoolOptions != null && Object.hasOwnProperty.call(message, "sessionPoolOptions"))
|
|
65971
|
+
$root.google.spanner.executor.v1.SessionPoolOptions.encode(message.sessionPoolOptions, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
65972
|
+
return writer;
|
|
65973
|
+
};
|
|
65974
|
+
|
|
65975
|
+
/**
|
|
65976
|
+
* Encodes the specified SpannerOptions message, length delimited. Does not implicitly {@link google.spanner.executor.v1.SpannerOptions.verify|verify} messages.
|
|
65977
|
+
* @function encodeDelimited
|
|
65978
|
+
* @memberof google.spanner.executor.v1.SpannerOptions
|
|
65979
|
+
* @static
|
|
65980
|
+
* @param {google.spanner.executor.v1.ISpannerOptions} message SpannerOptions message or plain object to encode
|
|
65981
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
65982
|
+
* @returns {$protobuf.Writer} Writer
|
|
65983
|
+
*/
|
|
65984
|
+
SpannerOptions.encodeDelimited = function encodeDelimited(message, writer) {
|
|
65985
|
+
return this.encode(message, writer).ldelim();
|
|
65986
|
+
};
|
|
65987
|
+
|
|
65988
|
+
/**
|
|
65989
|
+
* Decodes a SpannerOptions message from the specified reader or buffer.
|
|
65990
|
+
* @function decode
|
|
65991
|
+
* @memberof google.spanner.executor.v1.SpannerOptions
|
|
65992
|
+
* @static
|
|
65993
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
65994
|
+
* @param {number} [length] Message length if known beforehand
|
|
65995
|
+
* @returns {google.spanner.executor.v1.SpannerOptions} SpannerOptions
|
|
65996
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
65997
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
65998
|
+
*/
|
|
65999
|
+
SpannerOptions.decode = function decode(reader, length) {
|
|
66000
|
+
if (!(reader instanceof $Reader))
|
|
66001
|
+
reader = $Reader.create(reader);
|
|
66002
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.spanner.executor.v1.SpannerOptions();
|
|
66003
|
+
while (reader.pos < end) {
|
|
66004
|
+
var tag = reader.uint32();
|
|
66005
|
+
switch (tag >>> 3) {
|
|
66006
|
+
case 1: {
|
|
66007
|
+
message.sessionPoolOptions = $root.google.spanner.executor.v1.SessionPoolOptions.decode(reader, reader.uint32());
|
|
66008
|
+
break;
|
|
66009
|
+
}
|
|
66010
|
+
default:
|
|
66011
|
+
reader.skipType(tag & 7);
|
|
66012
|
+
break;
|
|
66013
|
+
}
|
|
66014
|
+
}
|
|
66015
|
+
return message;
|
|
66016
|
+
};
|
|
66017
|
+
|
|
66018
|
+
/**
|
|
66019
|
+
* Decodes a SpannerOptions message from the specified reader or buffer, length delimited.
|
|
66020
|
+
* @function decodeDelimited
|
|
66021
|
+
* @memberof google.spanner.executor.v1.SpannerOptions
|
|
66022
|
+
* @static
|
|
66023
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
66024
|
+
* @returns {google.spanner.executor.v1.SpannerOptions} SpannerOptions
|
|
66025
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
66026
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
66027
|
+
*/
|
|
66028
|
+
SpannerOptions.decodeDelimited = function decodeDelimited(reader) {
|
|
66029
|
+
if (!(reader instanceof $Reader))
|
|
66030
|
+
reader = new $Reader(reader);
|
|
66031
|
+
return this.decode(reader, reader.uint32());
|
|
66032
|
+
};
|
|
66033
|
+
|
|
66034
|
+
/**
|
|
66035
|
+
* Verifies a SpannerOptions message.
|
|
66036
|
+
* @function verify
|
|
66037
|
+
* @memberof google.spanner.executor.v1.SpannerOptions
|
|
66038
|
+
* @static
|
|
66039
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
66040
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
66041
|
+
*/
|
|
66042
|
+
SpannerOptions.verify = function verify(message) {
|
|
66043
|
+
if (typeof message !== "object" || message === null)
|
|
66044
|
+
return "object expected";
|
|
66045
|
+
if (message.sessionPoolOptions != null && message.hasOwnProperty("sessionPoolOptions")) {
|
|
66046
|
+
var error = $root.google.spanner.executor.v1.SessionPoolOptions.verify(message.sessionPoolOptions);
|
|
66047
|
+
if (error)
|
|
66048
|
+
return "sessionPoolOptions." + error;
|
|
66049
|
+
}
|
|
66050
|
+
return null;
|
|
66051
|
+
};
|
|
66052
|
+
|
|
66053
|
+
/**
|
|
66054
|
+
* Creates a SpannerOptions message from a plain object. Also converts values to their respective internal types.
|
|
66055
|
+
* @function fromObject
|
|
66056
|
+
* @memberof google.spanner.executor.v1.SpannerOptions
|
|
66057
|
+
* @static
|
|
66058
|
+
* @param {Object.<string,*>} object Plain object
|
|
66059
|
+
* @returns {google.spanner.executor.v1.SpannerOptions} SpannerOptions
|
|
66060
|
+
*/
|
|
66061
|
+
SpannerOptions.fromObject = function fromObject(object) {
|
|
66062
|
+
if (object instanceof $root.google.spanner.executor.v1.SpannerOptions)
|
|
66063
|
+
return object;
|
|
66064
|
+
var message = new $root.google.spanner.executor.v1.SpannerOptions();
|
|
66065
|
+
if (object.sessionPoolOptions != null) {
|
|
66066
|
+
if (typeof object.sessionPoolOptions !== "object")
|
|
66067
|
+
throw TypeError(".google.spanner.executor.v1.SpannerOptions.sessionPoolOptions: object expected");
|
|
66068
|
+
message.sessionPoolOptions = $root.google.spanner.executor.v1.SessionPoolOptions.fromObject(object.sessionPoolOptions);
|
|
66069
|
+
}
|
|
66070
|
+
return message;
|
|
66071
|
+
};
|
|
66072
|
+
|
|
66073
|
+
/**
|
|
66074
|
+
* Creates a plain object from a SpannerOptions message. Also converts values to other types if specified.
|
|
66075
|
+
* @function toObject
|
|
66076
|
+
* @memberof google.spanner.executor.v1.SpannerOptions
|
|
66077
|
+
* @static
|
|
66078
|
+
* @param {google.spanner.executor.v1.SpannerOptions} message SpannerOptions
|
|
66079
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
66080
|
+
* @returns {Object.<string,*>} Plain object
|
|
66081
|
+
*/
|
|
66082
|
+
SpannerOptions.toObject = function toObject(message, options) {
|
|
66083
|
+
if (!options)
|
|
66084
|
+
options = {};
|
|
66085
|
+
var object = {};
|
|
66086
|
+
if (options.defaults)
|
|
66087
|
+
object.sessionPoolOptions = null;
|
|
66088
|
+
if (message.sessionPoolOptions != null && message.hasOwnProperty("sessionPoolOptions"))
|
|
66089
|
+
object.sessionPoolOptions = $root.google.spanner.executor.v1.SessionPoolOptions.toObject(message.sessionPoolOptions, options);
|
|
66090
|
+
return object;
|
|
66091
|
+
};
|
|
66092
|
+
|
|
66093
|
+
/**
|
|
66094
|
+
* Converts this SpannerOptions to JSON.
|
|
66095
|
+
* @function toJSON
|
|
66096
|
+
* @memberof google.spanner.executor.v1.SpannerOptions
|
|
66097
|
+
* @instance
|
|
66098
|
+
* @returns {Object.<string,*>} JSON object
|
|
66099
|
+
*/
|
|
66100
|
+
SpannerOptions.prototype.toJSON = function toJSON() {
|
|
66101
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
66102
|
+
};
|
|
66103
|
+
|
|
66104
|
+
/**
|
|
66105
|
+
* Gets the default type url for SpannerOptions
|
|
66106
|
+
* @function getTypeUrl
|
|
66107
|
+
* @memberof google.spanner.executor.v1.SpannerOptions
|
|
66108
|
+
* @static
|
|
66109
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
66110
|
+
* @returns {string} The default type url
|
|
66111
|
+
*/
|
|
66112
|
+
SpannerOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
66113
|
+
if (typeUrlPrefix === undefined) {
|
|
66114
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
66115
|
+
}
|
|
66116
|
+
return typeUrlPrefix + "/google.spanner.executor.v1.SpannerOptions";
|
|
66117
|
+
};
|
|
66118
|
+
|
|
66119
|
+
return SpannerOptions;
|
|
66120
|
+
})();
|
|
66121
|
+
|
|
66122
|
+
v1.SessionPoolOptions = (function() {
|
|
66123
|
+
|
|
66124
|
+
/**
|
|
66125
|
+
* Properties of a SessionPoolOptions.
|
|
66126
|
+
* @memberof google.spanner.executor.v1
|
|
66127
|
+
* @interface ISessionPoolOptions
|
|
66128
|
+
* @property {boolean|null} [useMultiplexed] SessionPoolOptions useMultiplexed
|
|
66129
|
+
*/
|
|
66130
|
+
|
|
66131
|
+
/**
|
|
66132
|
+
* Constructs a new SessionPoolOptions.
|
|
66133
|
+
* @memberof google.spanner.executor.v1
|
|
66134
|
+
* @classdesc Represents a SessionPoolOptions.
|
|
66135
|
+
* @implements ISessionPoolOptions
|
|
66136
|
+
* @constructor
|
|
66137
|
+
* @param {google.spanner.executor.v1.ISessionPoolOptions=} [properties] Properties to set
|
|
66138
|
+
*/
|
|
66139
|
+
function SessionPoolOptions(properties) {
|
|
66140
|
+
if (properties)
|
|
66141
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
66142
|
+
if (properties[keys[i]] != null)
|
|
66143
|
+
this[keys[i]] = properties[keys[i]];
|
|
66144
|
+
}
|
|
66145
|
+
|
|
66146
|
+
/**
|
|
66147
|
+
* SessionPoolOptions useMultiplexed.
|
|
66148
|
+
* @member {boolean} useMultiplexed
|
|
66149
|
+
* @memberof google.spanner.executor.v1.SessionPoolOptions
|
|
66150
|
+
* @instance
|
|
66151
|
+
*/
|
|
66152
|
+
SessionPoolOptions.prototype.useMultiplexed = false;
|
|
66153
|
+
|
|
66154
|
+
/**
|
|
66155
|
+
* Creates a new SessionPoolOptions instance using the specified properties.
|
|
66156
|
+
* @function create
|
|
66157
|
+
* @memberof google.spanner.executor.v1.SessionPoolOptions
|
|
66158
|
+
* @static
|
|
66159
|
+
* @param {google.spanner.executor.v1.ISessionPoolOptions=} [properties] Properties to set
|
|
66160
|
+
* @returns {google.spanner.executor.v1.SessionPoolOptions} SessionPoolOptions instance
|
|
66161
|
+
*/
|
|
66162
|
+
SessionPoolOptions.create = function create(properties) {
|
|
66163
|
+
return new SessionPoolOptions(properties);
|
|
66164
|
+
};
|
|
66165
|
+
|
|
66166
|
+
/**
|
|
66167
|
+
* Encodes the specified SessionPoolOptions message. Does not implicitly {@link google.spanner.executor.v1.SessionPoolOptions.verify|verify} messages.
|
|
66168
|
+
* @function encode
|
|
66169
|
+
* @memberof google.spanner.executor.v1.SessionPoolOptions
|
|
66170
|
+
* @static
|
|
66171
|
+
* @param {google.spanner.executor.v1.ISessionPoolOptions} message SessionPoolOptions message or plain object to encode
|
|
66172
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
66173
|
+
* @returns {$protobuf.Writer} Writer
|
|
66174
|
+
*/
|
|
66175
|
+
SessionPoolOptions.encode = function encode(message, writer) {
|
|
66176
|
+
if (!writer)
|
|
66177
|
+
writer = $Writer.create();
|
|
66178
|
+
if (message.useMultiplexed != null && Object.hasOwnProperty.call(message, "useMultiplexed"))
|
|
66179
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useMultiplexed);
|
|
66180
|
+
return writer;
|
|
66181
|
+
};
|
|
66182
|
+
|
|
66183
|
+
/**
|
|
66184
|
+
* Encodes the specified SessionPoolOptions message, length delimited. Does not implicitly {@link google.spanner.executor.v1.SessionPoolOptions.verify|verify} messages.
|
|
66185
|
+
* @function encodeDelimited
|
|
66186
|
+
* @memberof google.spanner.executor.v1.SessionPoolOptions
|
|
66187
|
+
* @static
|
|
66188
|
+
* @param {google.spanner.executor.v1.ISessionPoolOptions} message SessionPoolOptions message or plain object to encode
|
|
66189
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
66190
|
+
* @returns {$protobuf.Writer} Writer
|
|
66191
|
+
*/
|
|
66192
|
+
SessionPoolOptions.encodeDelimited = function encodeDelimited(message, writer) {
|
|
66193
|
+
return this.encode(message, writer).ldelim();
|
|
66194
|
+
};
|
|
66195
|
+
|
|
66196
|
+
/**
|
|
66197
|
+
* Decodes a SessionPoolOptions message from the specified reader or buffer.
|
|
66198
|
+
* @function decode
|
|
66199
|
+
* @memberof google.spanner.executor.v1.SessionPoolOptions
|
|
66200
|
+
* @static
|
|
66201
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
66202
|
+
* @param {number} [length] Message length if known beforehand
|
|
66203
|
+
* @returns {google.spanner.executor.v1.SessionPoolOptions} SessionPoolOptions
|
|
66204
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
66205
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
66206
|
+
*/
|
|
66207
|
+
SessionPoolOptions.decode = function decode(reader, length) {
|
|
66208
|
+
if (!(reader instanceof $Reader))
|
|
66209
|
+
reader = $Reader.create(reader);
|
|
66210
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.spanner.executor.v1.SessionPoolOptions();
|
|
66211
|
+
while (reader.pos < end) {
|
|
66212
|
+
var tag = reader.uint32();
|
|
66213
|
+
switch (tag >>> 3) {
|
|
66214
|
+
case 1: {
|
|
66215
|
+
message.useMultiplexed = reader.bool();
|
|
66216
|
+
break;
|
|
66217
|
+
}
|
|
66218
|
+
default:
|
|
66219
|
+
reader.skipType(tag & 7);
|
|
66220
|
+
break;
|
|
66221
|
+
}
|
|
66222
|
+
}
|
|
66223
|
+
return message;
|
|
66224
|
+
};
|
|
66225
|
+
|
|
66226
|
+
/**
|
|
66227
|
+
* Decodes a SessionPoolOptions message from the specified reader or buffer, length delimited.
|
|
66228
|
+
* @function decodeDelimited
|
|
66229
|
+
* @memberof google.spanner.executor.v1.SessionPoolOptions
|
|
66230
|
+
* @static
|
|
66231
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
66232
|
+
* @returns {google.spanner.executor.v1.SessionPoolOptions} SessionPoolOptions
|
|
66233
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
66234
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
66235
|
+
*/
|
|
66236
|
+
SessionPoolOptions.decodeDelimited = function decodeDelimited(reader) {
|
|
66237
|
+
if (!(reader instanceof $Reader))
|
|
66238
|
+
reader = new $Reader(reader);
|
|
66239
|
+
return this.decode(reader, reader.uint32());
|
|
66240
|
+
};
|
|
66241
|
+
|
|
66242
|
+
/**
|
|
66243
|
+
* Verifies a SessionPoolOptions message.
|
|
66244
|
+
* @function verify
|
|
66245
|
+
* @memberof google.spanner.executor.v1.SessionPoolOptions
|
|
66246
|
+
* @static
|
|
66247
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
66248
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
66249
|
+
*/
|
|
66250
|
+
SessionPoolOptions.verify = function verify(message) {
|
|
66251
|
+
if (typeof message !== "object" || message === null)
|
|
66252
|
+
return "object expected";
|
|
66253
|
+
if (message.useMultiplexed != null && message.hasOwnProperty("useMultiplexed"))
|
|
66254
|
+
if (typeof message.useMultiplexed !== "boolean")
|
|
66255
|
+
return "useMultiplexed: boolean expected";
|
|
66256
|
+
return null;
|
|
66257
|
+
};
|
|
66258
|
+
|
|
66259
|
+
/**
|
|
66260
|
+
* Creates a SessionPoolOptions message from a plain object. Also converts values to their respective internal types.
|
|
66261
|
+
* @function fromObject
|
|
66262
|
+
* @memberof google.spanner.executor.v1.SessionPoolOptions
|
|
66263
|
+
* @static
|
|
66264
|
+
* @param {Object.<string,*>} object Plain object
|
|
66265
|
+
* @returns {google.spanner.executor.v1.SessionPoolOptions} SessionPoolOptions
|
|
66266
|
+
*/
|
|
66267
|
+
SessionPoolOptions.fromObject = function fromObject(object) {
|
|
66268
|
+
if (object instanceof $root.google.spanner.executor.v1.SessionPoolOptions)
|
|
66269
|
+
return object;
|
|
66270
|
+
var message = new $root.google.spanner.executor.v1.SessionPoolOptions();
|
|
66271
|
+
if (object.useMultiplexed != null)
|
|
66272
|
+
message.useMultiplexed = Boolean(object.useMultiplexed);
|
|
66273
|
+
return message;
|
|
66274
|
+
};
|
|
66275
|
+
|
|
66276
|
+
/**
|
|
66277
|
+
* Creates a plain object from a SessionPoolOptions message. Also converts values to other types if specified.
|
|
66278
|
+
* @function toObject
|
|
66279
|
+
* @memberof google.spanner.executor.v1.SessionPoolOptions
|
|
66280
|
+
* @static
|
|
66281
|
+
* @param {google.spanner.executor.v1.SessionPoolOptions} message SessionPoolOptions
|
|
66282
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
66283
|
+
* @returns {Object.<string,*>} Plain object
|
|
66284
|
+
*/
|
|
66285
|
+
SessionPoolOptions.toObject = function toObject(message, options) {
|
|
66286
|
+
if (!options)
|
|
66287
|
+
options = {};
|
|
66288
|
+
var object = {};
|
|
66289
|
+
if (options.defaults)
|
|
66290
|
+
object.useMultiplexed = false;
|
|
66291
|
+
if (message.useMultiplexed != null && message.hasOwnProperty("useMultiplexed"))
|
|
66292
|
+
object.useMultiplexed = message.useMultiplexed;
|
|
66293
|
+
return object;
|
|
66294
|
+
};
|
|
66295
|
+
|
|
66296
|
+
/**
|
|
66297
|
+
* Converts this SessionPoolOptions to JSON.
|
|
66298
|
+
* @function toJSON
|
|
66299
|
+
* @memberof google.spanner.executor.v1.SessionPoolOptions
|
|
66300
|
+
* @instance
|
|
66301
|
+
* @returns {Object.<string,*>} JSON object
|
|
66302
|
+
*/
|
|
66303
|
+
SessionPoolOptions.prototype.toJSON = function toJSON() {
|
|
66304
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
66305
|
+
};
|
|
66306
|
+
|
|
66307
|
+
/**
|
|
66308
|
+
* Gets the default type url for SessionPoolOptions
|
|
66309
|
+
* @function getTypeUrl
|
|
66310
|
+
* @memberof google.spanner.executor.v1.SessionPoolOptions
|
|
66311
|
+
* @static
|
|
66312
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
66313
|
+
* @returns {string} The default type url
|
|
66314
|
+
*/
|
|
66315
|
+
SessionPoolOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
66316
|
+
if (typeUrlPrefix === undefined) {
|
|
66317
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
66318
|
+
}
|
|
66319
|
+
return typeUrlPrefix + "/google.spanner.executor.v1.SessionPoolOptions";
|
|
66320
|
+
};
|
|
66321
|
+
|
|
66322
|
+
return SessionPoolOptions;
|
|
66323
|
+
})();
|
|
66324
|
+
|
|
65495
66325
|
return v1;
|
|
65496
66326
|
})();
|
|
65497
66327
|
|
|
@@ -84259,6 +85089,7 @@
|
|
|
84259
85089
|
* @property {google.api.ClientLibraryOrganization|null} [organization] Publishing organization
|
|
84260
85090
|
* @property {Array.<google.api.IClientLibrarySettings>|null} [librarySettings] Publishing librarySettings
|
|
84261
85091
|
* @property {string|null} [protoReferenceDocumentationUri] Publishing protoReferenceDocumentationUri
|
|
85092
|
+
* @property {string|null} [restReferenceDocumentationUri] Publishing restReferenceDocumentationUri
|
|
84262
85093
|
*/
|
|
84263
85094
|
|
|
84264
85095
|
/**
|
|
@@ -84359,6 +85190,14 @@
|
|
|
84359
85190
|
*/
|
|
84360
85191
|
Publishing.prototype.protoReferenceDocumentationUri = "";
|
|
84361
85192
|
|
|
85193
|
+
/**
|
|
85194
|
+
* Publishing restReferenceDocumentationUri.
|
|
85195
|
+
* @member {string} restReferenceDocumentationUri
|
|
85196
|
+
* @memberof google.api.Publishing
|
|
85197
|
+
* @instance
|
|
85198
|
+
*/
|
|
85199
|
+
Publishing.prototype.restReferenceDocumentationUri = "";
|
|
85200
|
+
|
|
84362
85201
|
/**
|
|
84363
85202
|
* Creates a new Publishing instance using the specified properties.
|
|
84364
85203
|
* @function create
|
|
@@ -84406,6 +85245,8 @@
|
|
|
84406
85245
|
$root.google.api.ClientLibrarySettings.encode(message.librarySettings[i], writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim();
|
|
84407
85246
|
if (message.protoReferenceDocumentationUri != null && Object.hasOwnProperty.call(message, "protoReferenceDocumentationUri"))
|
|
84408
85247
|
writer.uint32(/* id 110, wireType 2 =*/882).string(message.protoReferenceDocumentationUri);
|
|
85248
|
+
if (message.restReferenceDocumentationUri != null && Object.hasOwnProperty.call(message, "restReferenceDocumentationUri"))
|
|
85249
|
+
writer.uint32(/* id 111, wireType 2 =*/890).string(message.restReferenceDocumentationUri);
|
|
84409
85250
|
return writer;
|
|
84410
85251
|
};
|
|
84411
85252
|
|
|
@@ -84486,6 +85327,10 @@
|
|
|
84486
85327
|
message.protoReferenceDocumentationUri = reader.string();
|
|
84487
85328
|
break;
|
|
84488
85329
|
}
|
|
85330
|
+
case 111: {
|
|
85331
|
+
message.restReferenceDocumentationUri = reader.string();
|
|
85332
|
+
break;
|
|
85333
|
+
}
|
|
84489
85334
|
default:
|
|
84490
85335
|
reader.skipType(tag & 7);
|
|
84491
85336
|
break;
|
|
@@ -84578,6 +85423,9 @@
|
|
|
84578
85423
|
if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri"))
|
|
84579
85424
|
if (!$util.isString(message.protoReferenceDocumentationUri))
|
|
84580
85425
|
return "protoReferenceDocumentationUri: string expected";
|
|
85426
|
+
if (message.restReferenceDocumentationUri != null && message.hasOwnProperty("restReferenceDocumentationUri"))
|
|
85427
|
+
if (!$util.isString(message.restReferenceDocumentationUri))
|
|
85428
|
+
return "restReferenceDocumentationUri: string expected";
|
|
84581
85429
|
return null;
|
|
84582
85430
|
};
|
|
84583
85431
|
|
|
@@ -84672,6 +85520,8 @@
|
|
|
84672
85520
|
}
|
|
84673
85521
|
if (object.protoReferenceDocumentationUri != null)
|
|
84674
85522
|
message.protoReferenceDocumentationUri = String(object.protoReferenceDocumentationUri);
|
|
85523
|
+
if (object.restReferenceDocumentationUri != null)
|
|
85524
|
+
message.restReferenceDocumentationUri = String(object.restReferenceDocumentationUri);
|
|
84675
85525
|
return message;
|
|
84676
85526
|
};
|
|
84677
85527
|
|
|
@@ -84701,6 +85551,7 @@
|
|
|
84701
85551
|
object.docTagPrefix = "";
|
|
84702
85552
|
object.organization = options.enums === String ? "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" : 0;
|
|
84703
85553
|
object.protoReferenceDocumentationUri = "";
|
|
85554
|
+
object.restReferenceDocumentationUri = "";
|
|
84704
85555
|
}
|
|
84705
85556
|
if (message.methodSettings && message.methodSettings.length) {
|
|
84706
85557
|
object.methodSettings = [];
|
|
@@ -84731,6 +85582,8 @@
|
|
|
84731
85582
|
}
|
|
84732
85583
|
if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri"))
|
|
84733
85584
|
object.protoReferenceDocumentationUri = message.protoReferenceDocumentationUri;
|
|
85585
|
+
if (message.restReferenceDocumentationUri != null && message.hasOwnProperty("restReferenceDocumentationUri"))
|
|
85586
|
+
object.restReferenceDocumentationUri = message.restReferenceDocumentationUri;
|
|
84734
85587
|
return object;
|
|
84735
85588
|
};
|
|
84736
85589
|
|