@google-cloud/spanner 5.16.2 → 5.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +43 -0
- package/README.md +25 -12
- package/build/protos/google/spanner/admin/database/v1/backup.proto +177 -9
- package/build/protos/google/spanner/admin/database/v1/common.proto +14 -2
- package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +40 -5
- package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +8 -5
- package/build/protos/google/spanner/v1/commit_response.proto +2 -4
- package/build/protos/google/spanner/v1/keys.proto +0 -1
- package/build/protos/google/spanner/v1/mutation.proto +5 -5
- package/build/protos/google/spanner/v1/query_plan.proto +18 -19
- package/build/protos/google/spanner/v1/result_set.proto +1 -1
- package/build/protos/google/spanner/v1/spanner.proto +21 -19
- package/build/protos/google/spanner/v1/transaction.proto +19 -32
- package/build/protos/google/spanner/v1/type.proto +33 -7
- package/build/protos/protos.d.ts +463 -64
- package/build/protos/protos.js +1267 -182
- package/build/protos/protos.json +221 -21
- package/build/src/backup.d.ts +22 -4
- package/build/src/backup.js +60 -29
- package/build/src/codec.d.ts +11 -0
- package/build/src/codec.js +41 -3
- package/build/src/database.d.ts +1 -1
- package/build/src/database.js +2 -2
- package/build/src/index.d.ts +20 -5
- package/build/src/index.js +26 -7
- package/build/src/instance.d.ts +44 -5
- package/build/src/instance.js +61 -6
- package/build/src/partial-result-stream.js +3 -0
- package/build/src/session-pool.d.ts +4 -4
- package/build/src/session-pool.js +6 -6
- package/build/src/transaction.js +1 -1
- package/build/src/v1/database_admin_client.d.ts +175 -10
- package/build/src/v1/database_admin_client.js +113 -11
- package/build/src/v1/database_admin_client_config.json +5 -0
- package/build/src/v1/instance_admin_client.js +2 -3
- package/build/src/v1/spanner_client.d.ts +1 -31
- package/build/src/v1/spanner_client.js +11 -9
- package/package.json +4 -4
package/build/protos/protos.js
CHANGED
|
@@ -13978,6 +13978,9 @@
|
|
|
13978
13978
|
* @property {google.spanner.admin.database.v1.Backup.State|null} [state] Backup state
|
|
13979
13979
|
* @property {Array.<string>|null} [referencingDatabases] Backup referencingDatabases
|
|
13980
13980
|
* @property {google.spanner.admin.database.v1.IEncryptionInfo|null} [encryptionInfo] Backup encryptionInfo
|
|
13981
|
+
* @property {google.spanner.admin.database.v1.DatabaseDialect|null} [databaseDialect] Backup databaseDialect
|
|
13982
|
+
* @property {Array.<string>|null} [referencingBackups] Backup referencingBackups
|
|
13983
|
+
* @property {google.protobuf.ITimestamp|null} [maxExpireTime] Backup maxExpireTime
|
|
13981
13984
|
*/
|
|
13982
13985
|
|
|
13983
13986
|
/**
|
|
@@ -13990,6 +13993,7 @@
|
|
|
13990
13993
|
*/
|
|
13991
13994
|
function Backup(properties) {
|
|
13992
13995
|
this.referencingDatabases = [];
|
|
13996
|
+
this.referencingBackups = [];
|
|
13993
13997
|
if (properties)
|
|
13994
13998
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
13995
13999
|
if (properties[keys[i]] != null)
|
|
@@ -14068,6 +14072,30 @@
|
|
|
14068
14072
|
*/
|
|
14069
14073
|
Backup.prototype.encryptionInfo = null;
|
|
14070
14074
|
|
|
14075
|
+
/**
|
|
14076
|
+
* Backup databaseDialect.
|
|
14077
|
+
* @member {google.spanner.admin.database.v1.DatabaseDialect} databaseDialect
|
|
14078
|
+
* @memberof google.spanner.admin.database.v1.Backup
|
|
14079
|
+
* @instance
|
|
14080
|
+
*/
|
|
14081
|
+
Backup.prototype.databaseDialect = 0;
|
|
14082
|
+
|
|
14083
|
+
/**
|
|
14084
|
+
* Backup referencingBackups.
|
|
14085
|
+
* @member {Array.<string>} referencingBackups
|
|
14086
|
+
* @memberof google.spanner.admin.database.v1.Backup
|
|
14087
|
+
* @instance
|
|
14088
|
+
*/
|
|
14089
|
+
Backup.prototype.referencingBackups = $util.emptyArray;
|
|
14090
|
+
|
|
14091
|
+
/**
|
|
14092
|
+
* Backup maxExpireTime.
|
|
14093
|
+
* @member {google.protobuf.ITimestamp|null|undefined} maxExpireTime
|
|
14094
|
+
* @memberof google.spanner.admin.database.v1.Backup
|
|
14095
|
+
* @instance
|
|
14096
|
+
*/
|
|
14097
|
+
Backup.prototype.maxExpireTime = null;
|
|
14098
|
+
|
|
14071
14099
|
/**
|
|
14072
14100
|
* Creates a new Backup instance using the specified properties.
|
|
14073
14101
|
* @function create
|
|
@@ -14111,6 +14139,13 @@
|
|
|
14111
14139
|
$root.google.spanner.admin.database.v1.EncryptionInfo.encode(message.encryptionInfo, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
14112
14140
|
if (message.versionTime != null && Object.hasOwnProperty.call(message, "versionTime"))
|
|
14113
14141
|
$root.google.protobuf.Timestamp.encode(message.versionTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
14142
|
+
if (message.databaseDialect != null && Object.hasOwnProperty.call(message, "databaseDialect"))
|
|
14143
|
+
writer.uint32(/* id 10, wireType 0 =*/80).int32(message.databaseDialect);
|
|
14144
|
+
if (message.referencingBackups != null && message.referencingBackups.length)
|
|
14145
|
+
for (var i = 0; i < message.referencingBackups.length; ++i)
|
|
14146
|
+
writer.uint32(/* id 11, wireType 2 =*/90).string(message.referencingBackups[i]);
|
|
14147
|
+
if (message.maxExpireTime != null && Object.hasOwnProperty.call(message, "maxExpireTime"))
|
|
14148
|
+
$root.google.protobuf.Timestamp.encode(message.maxExpireTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
14114
14149
|
return writer;
|
|
14115
14150
|
};
|
|
14116
14151
|
|
|
@@ -14174,6 +14209,17 @@
|
|
|
14174
14209
|
case 8:
|
|
14175
14210
|
message.encryptionInfo = $root.google.spanner.admin.database.v1.EncryptionInfo.decode(reader, reader.uint32());
|
|
14176
14211
|
break;
|
|
14212
|
+
case 10:
|
|
14213
|
+
message.databaseDialect = reader.int32();
|
|
14214
|
+
break;
|
|
14215
|
+
case 11:
|
|
14216
|
+
if (!(message.referencingBackups && message.referencingBackups.length))
|
|
14217
|
+
message.referencingBackups = [];
|
|
14218
|
+
message.referencingBackups.push(reader.string());
|
|
14219
|
+
break;
|
|
14220
|
+
case 12:
|
|
14221
|
+
message.maxExpireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
14222
|
+
break;
|
|
14177
14223
|
default:
|
|
14178
14224
|
reader.skipType(tag & 7);
|
|
14179
14225
|
break;
|
|
@@ -14254,6 +14300,27 @@
|
|
|
14254
14300
|
if (error)
|
|
14255
14301
|
return "encryptionInfo." + error;
|
|
14256
14302
|
}
|
|
14303
|
+
if (message.databaseDialect != null && message.hasOwnProperty("databaseDialect"))
|
|
14304
|
+
switch (message.databaseDialect) {
|
|
14305
|
+
default:
|
|
14306
|
+
return "databaseDialect: enum value expected";
|
|
14307
|
+
case 0:
|
|
14308
|
+
case 1:
|
|
14309
|
+
case 2:
|
|
14310
|
+
break;
|
|
14311
|
+
}
|
|
14312
|
+
if (message.referencingBackups != null && message.hasOwnProperty("referencingBackups")) {
|
|
14313
|
+
if (!Array.isArray(message.referencingBackups))
|
|
14314
|
+
return "referencingBackups: array expected";
|
|
14315
|
+
for (var i = 0; i < message.referencingBackups.length; ++i)
|
|
14316
|
+
if (!$util.isString(message.referencingBackups[i]))
|
|
14317
|
+
return "referencingBackups: string[] expected";
|
|
14318
|
+
}
|
|
14319
|
+
if (message.maxExpireTime != null && message.hasOwnProperty("maxExpireTime")) {
|
|
14320
|
+
var error = $root.google.protobuf.Timestamp.verify(message.maxExpireTime);
|
|
14321
|
+
if (error)
|
|
14322
|
+
return "maxExpireTime." + error;
|
|
14323
|
+
}
|
|
14257
14324
|
return null;
|
|
14258
14325
|
};
|
|
14259
14326
|
|
|
@@ -14323,6 +14390,32 @@
|
|
|
14323
14390
|
throw TypeError(".google.spanner.admin.database.v1.Backup.encryptionInfo: object expected");
|
|
14324
14391
|
message.encryptionInfo = $root.google.spanner.admin.database.v1.EncryptionInfo.fromObject(object.encryptionInfo);
|
|
14325
14392
|
}
|
|
14393
|
+
switch (object.databaseDialect) {
|
|
14394
|
+
case "DATABASE_DIALECT_UNSPECIFIED":
|
|
14395
|
+
case 0:
|
|
14396
|
+
message.databaseDialect = 0;
|
|
14397
|
+
break;
|
|
14398
|
+
case "GOOGLE_STANDARD_SQL":
|
|
14399
|
+
case 1:
|
|
14400
|
+
message.databaseDialect = 1;
|
|
14401
|
+
break;
|
|
14402
|
+
case "POSTGRESQL":
|
|
14403
|
+
case 2:
|
|
14404
|
+
message.databaseDialect = 2;
|
|
14405
|
+
break;
|
|
14406
|
+
}
|
|
14407
|
+
if (object.referencingBackups) {
|
|
14408
|
+
if (!Array.isArray(object.referencingBackups))
|
|
14409
|
+
throw TypeError(".google.spanner.admin.database.v1.Backup.referencingBackups: array expected");
|
|
14410
|
+
message.referencingBackups = [];
|
|
14411
|
+
for (var i = 0; i < object.referencingBackups.length; ++i)
|
|
14412
|
+
message.referencingBackups[i] = String(object.referencingBackups[i]);
|
|
14413
|
+
}
|
|
14414
|
+
if (object.maxExpireTime != null) {
|
|
14415
|
+
if (typeof object.maxExpireTime !== "object")
|
|
14416
|
+
throw TypeError(".google.spanner.admin.database.v1.Backup.maxExpireTime: object expected");
|
|
14417
|
+
message.maxExpireTime = $root.google.protobuf.Timestamp.fromObject(object.maxExpireTime);
|
|
14418
|
+
}
|
|
14326
14419
|
return message;
|
|
14327
14420
|
};
|
|
14328
14421
|
|
|
@@ -14339,8 +14432,10 @@
|
|
|
14339
14432
|
if (!options)
|
|
14340
14433
|
options = {};
|
|
14341
14434
|
var object = {};
|
|
14342
|
-
if (options.arrays || options.defaults)
|
|
14435
|
+
if (options.arrays || options.defaults) {
|
|
14343
14436
|
object.referencingDatabases = [];
|
|
14437
|
+
object.referencingBackups = [];
|
|
14438
|
+
}
|
|
14344
14439
|
if (options.defaults) {
|
|
14345
14440
|
object.name = "";
|
|
14346
14441
|
object.database = "";
|
|
@@ -14354,6 +14449,8 @@
|
|
|
14354
14449
|
object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
|
|
14355
14450
|
object.encryptionInfo = null;
|
|
14356
14451
|
object.versionTime = null;
|
|
14452
|
+
object.databaseDialect = options.enums === String ? "DATABASE_DIALECT_UNSPECIFIED" : 0;
|
|
14453
|
+
object.maxExpireTime = null;
|
|
14357
14454
|
}
|
|
14358
14455
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
14359
14456
|
object.name = message.name;
|
|
@@ -14379,6 +14476,15 @@
|
|
|
14379
14476
|
object.encryptionInfo = $root.google.spanner.admin.database.v1.EncryptionInfo.toObject(message.encryptionInfo, options);
|
|
14380
14477
|
if (message.versionTime != null && message.hasOwnProperty("versionTime"))
|
|
14381
14478
|
object.versionTime = $root.google.protobuf.Timestamp.toObject(message.versionTime, options);
|
|
14479
|
+
if (message.databaseDialect != null && message.hasOwnProperty("databaseDialect"))
|
|
14480
|
+
object.databaseDialect = options.enums === String ? $root.google.spanner.admin.database.v1.DatabaseDialect[message.databaseDialect] : message.databaseDialect;
|
|
14481
|
+
if (message.referencingBackups && message.referencingBackups.length) {
|
|
14482
|
+
object.referencingBackups = [];
|
|
14483
|
+
for (var j = 0; j < message.referencingBackups.length; ++j)
|
|
14484
|
+
object.referencingBackups[j] = message.referencingBackups[j];
|
|
14485
|
+
}
|
|
14486
|
+
if (message.maxExpireTime != null && message.hasOwnProperty("maxExpireTime"))
|
|
14487
|
+
object.maxExpireTime = $root.google.protobuf.Timestamp.toObject(message.maxExpireTime, options);
|
|
14382
14488
|
return object;
|
|
14383
14489
|
};
|
|
14384
14490
|
|
|
@@ -14805,7 +14911,557 @@
|
|
|
14805
14911
|
message.name = reader.string();
|
|
14806
14912
|
break;
|
|
14807
14913
|
case 2:
|
|
14808
|
-
message.database = reader.string();
|
|
14914
|
+
message.database = reader.string();
|
|
14915
|
+
break;
|
|
14916
|
+
case 3:
|
|
14917
|
+
message.progress = $root.google.spanner.admin.database.v1.OperationProgress.decode(reader, reader.uint32());
|
|
14918
|
+
break;
|
|
14919
|
+
case 4:
|
|
14920
|
+
message.cancelTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
14921
|
+
break;
|
|
14922
|
+
default:
|
|
14923
|
+
reader.skipType(tag & 7);
|
|
14924
|
+
break;
|
|
14925
|
+
}
|
|
14926
|
+
}
|
|
14927
|
+
return message;
|
|
14928
|
+
};
|
|
14929
|
+
|
|
14930
|
+
/**
|
|
14931
|
+
* Decodes a CreateBackupMetadata message from the specified reader or buffer, length delimited.
|
|
14932
|
+
* @function decodeDelimited
|
|
14933
|
+
* @memberof google.spanner.admin.database.v1.CreateBackupMetadata
|
|
14934
|
+
* @static
|
|
14935
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14936
|
+
* @returns {google.spanner.admin.database.v1.CreateBackupMetadata} CreateBackupMetadata
|
|
14937
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14938
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14939
|
+
*/
|
|
14940
|
+
CreateBackupMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
14941
|
+
if (!(reader instanceof $Reader))
|
|
14942
|
+
reader = new $Reader(reader);
|
|
14943
|
+
return this.decode(reader, reader.uint32());
|
|
14944
|
+
};
|
|
14945
|
+
|
|
14946
|
+
/**
|
|
14947
|
+
* Verifies a CreateBackupMetadata message.
|
|
14948
|
+
* @function verify
|
|
14949
|
+
* @memberof google.spanner.admin.database.v1.CreateBackupMetadata
|
|
14950
|
+
* @static
|
|
14951
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
14952
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
14953
|
+
*/
|
|
14954
|
+
CreateBackupMetadata.verify = function verify(message) {
|
|
14955
|
+
if (typeof message !== "object" || message === null)
|
|
14956
|
+
return "object expected";
|
|
14957
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
14958
|
+
if (!$util.isString(message.name))
|
|
14959
|
+
return "name: string expected";
|
|
14960
|
+
if (message.database != null && message.hasOwnProperty("database"))
|
|
14961
|
+
if (!$util.isString(message.database))
|
|
14962
|
+
return "database: string expected";
|
|
14963
|
+
if (message.progress != null && message.hasOwnProperty("progress")) {
|
|
14964
|
+
var error = $root.google.spanner.admin.database.v1.OperationProgress.verify(message.progress);
|
|
14965
|
+
if (error)
|
|
14966
|
+
return "progress." + error;
|
|
14967
|
+
}
|
|
14968
|
+
if (message.cancelTime != null && message.hasOwnProperty("cancelTime")) {
|
|
14969
|
+
var error = $root.google.protobuf.Timestamp.verify(message.cancelTime);
|
|
14970
|
+
if (error)
|
|
14971
|
+
return "cancelTime." + error;
|
|
14972
|
+
}
|
|
14973
|
+
return null;
|
|
14974
|
+
};
|
|
14975
|
+
|
|
14976
|
+
/**
|
|
14977
|
+
* Creates a CreateBackupMetadata message from a plain object. Also converts values to their respective internal types.
|
|
14978
|
+
* @function fromObject
|
|
14979
|
+
* @memberof google.spanner.admin.database.v1.CreateBackupMetadata
|
|
14980
|
+
* @static
|
|
14981
|
+
* @param {Object.<string,*>} object Plain object
|
|
14982
|
+
* @returns {google.spanner.admin.database.v1.CreateBackupMetadata} CreateBackupMetadata
|
|
14983
|
+
*/
|
|
14984
|
+
CreateBackupMetadata.fromObject = function fromObject(object) {
|
|
14985
|
+
if (object instanceof $root.google.spanner.admin.database.v1.CreateBackupMetadata)
|
|
14986
|
+
return object;
|
|
14987
|
+
var message = new $root.google.spanner.admin.database.v1.CreateBackupMetadata();
|
|
14988
|
+
if (object.name != null)
|
|
14989
|
+
message.name = String(object.name);
|
|
14990
|
+
if (object.database != null)
|
|
14991
|
+
message.database = String(object.database);
|
|
14992
|
+
if (object.progress != null) {
|
|
14993
|
+
if (typeof object.progress !== "object")
|
|
14994
|
+
throw TypeError(".google.spanner.admin.database.v1.CreateBackupMetadata.progress: object expected");
|
|
14995
|
+
message.progress = $root.google.spanner.admin.database.v1.OperationProgress.fromObject(object.progress);
|
|
14996
|
+
}
|
|
14997
|
+
if (object.cancelTime != null) {
|
|
14998
|
+
if (typeof object.cancelTime !== "object")
|
|
14999
|
+
throw TypeError(".google.spanner.admin.database.v1.CreateBackupMetadata.cancelTime: object expected");
|
|
15000
|
+
message.cancelTime = $root.google.protobuf.Timestamp.fromObject(object.cancelTime);
|
|
15001
|
+
}
|
|
15002
|
+
return message;
|
|
15003
|
+
};
|
|
15004
|
+
|
|
15005
|
+
/**
|
|
15006
|
+
* Creates a plain object from a CreateBackupMetadata message. Also converts values to other types if specified.
|
|
15007
|
+
* @function toObject
|
|
15008
|
+
* @memberof google.spanner.admin.database.v1.CreateBackupMetadata
|
|
15009
|
+
* @static
|
|
15010
|
+
* @param {google.spanner.admin.database.v1.CreateBackupMetadata} message CreateBackupMetadata
|
|
15011
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
15012
|
+
* @returns {Object.<string,*>} Plain object
|
|
15013
|
+
*/
|
|
15014
|
+
CreateBackupMetadata.toObject = function toObject(message, options) {
|
|
15015
|
+
if (!options)
|
|
15016
|
+
options = {};
|
|
15017
|
+
var object = {};
|
|
15018
|
+
if (options.defaults) {
|
|
15019
|
+
object.name = "";
|
|
15020
|
+
object.database = "";
|
|
15021
|
+
object.progress = null;
|
|
15022
|
+
object.cancelTime = null;
|
|
15023
|
+
}
|
|
15024
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
15025
|
+
object.name = message.name;
|
|
15026
|
+
if (message.database != null && message.hasOwnProperty("database"))
|
|
15027
|
+
object.database = message.database;
|
|
15028
|
+
if (message.progress != null && message.hasOwnProperty("progress"))
|
|
15029
|
+
object.progress = $root.google.spanner.admin.database.v1.OperationProgress.toObject(message.progress, options);
|
|
15030
|
+
if (message.cancelTime != null && message.hasOwnProperty("cancelTime"))
|
|
15031
|
+
object.cancelTime = $root.google.protobuf.Timestamp.toObject(message.cancelTime, options);
|
|
15032
|
+
return object;
|
|
15033
|
+
};
|
|
15034
|
+
|
|
15035
|
+
/**
|
|
15036
|
+
* Converts this CreateBackupMetadata to JSON.
|
|
15037
|
+
* @function toJSON
|
|
15038
|
+
* @memberof google.spanner.admin.database.v1.CreateBackupMetadata
|
|
15039
|
+
* @instance
|
|
15040
|
+
* @returns {Object.<string,*>} JSON object
|
|
15041
|
+
*/
|
|
15042
|
+
CreateBackupMetadata.prototype.toJSON = function toJSON() {
|
|
15043
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
15044
|
+
};
|
|
15045
|
+
|
|
15046
|
+
return CreateBackupMetadata;
|
|
15047
|
+
})();
|
|
15048
|
+
|
|
15049
|
+
v1.CopyBackupRequest = (function() {
|
|
15050
|
+
|
|
15051
|
+
/**
|
|
15052
|
+
* Properties of a CopyBackupRequest.
|
|
15053
|
+
* @memberof google.spanner.admin.database.v1
|
|
15054
|
+
* @interface ICopyBackupRequest
|
|
15055
|
+
* @property {string|null} [parent] CopyBackupRequest parent
|
|
15056
|
+
* @property {string|null} [backupId] CopyBackupRequest backupId
|
|
15057
|
+
* @property {string|null} [sourceBackup] CopyBackupRequest sourceBackup
|
|
15058
|
+
* @property {google.protobuf.ITimestamp|null} [expireTime] CopyBackupRequest expireTime
|
|
15059
|
+
* @property {google.spanner.admin.database.v1.ICopyBackupEncryptionConfig|null} [encryptionConfig] CopyBackupRequest encryptionConfig
|
|
15060
|
+
*/
|
|
15061
|
+
|
|
15062
|
+
/**
|
|
15063
|
+
* Constructs a new CopyBackupRequest.
|
|
15064
|
+
* @memberof google.spanner.admin.database.v1
|
|
15065
|
+
* @classdesc Represents a CopyBackupRequest.
|
|
15066
|
+
* @implements ICopyBackupRequest
|
|
15067
|
+
* @constructor
|
|
15068
|
+
* @param {google.spanner.admin.database.v1.ICopyBackupRequest=} [properties] Properties to set
|
|
15069
|
+
*/
|
|
15070
|
+
function CopyBackupRequest(properties) {
|
|
15071
|
+
if (properties)
|
|
15072
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15073
|
+
if (properties[keys[i]] != null)
|
|
15074
|
+
this[keys[i]] = properties[keys[i]];
|
|
15075
|
+
}
|
|
15076
|
+
|
|
15077
|
+
/**
|
|
15078
|
+
* CopyBackupRequest parent.
|
|
15079
|
+
* @member {string} parent
|
|
15080
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupRequest
|
|
15081
|
+
* @instance
|
|
15082
|
+
*/
|
|
15083
|
+
CopyBackupRequest.prototype.parent = "";
|
|
15084
|
+
|
|
15085
|
+
/**
|
|
15086
|
+
* CopyBackupRequest backupId.
|
|
15087
|
+
* @member {string} backupId
|
|
15088
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupRequest
|
|
15089
|
+
* @instance
|
|
15090
|
+
*/
|
|
15091
|
+
CopyBackupRequest.prototype.backupId = "";
|
|
15092
|
+
|
|
15093
|
+
/**
|
|
15094
|
+
* CopyBackupRequest sourceBackup.
|
|
15095
|
+
* @member {string} sourceBackup
|
|
15096
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupRequest
|
|
15097
|
+
* @instance
|
|
15098
|
+
*/
|
|
15099
|
+
CopyBackupRequest.prototype.sourceBackup = "";
|
|
15100
|
+
|
|
15101
|
+
/**
|
|
15102
|
+
* CopyBackupRequest expireTime.
|
|
15103
|
+
* @member {google.protobuf.ITimestamp|null|undefined} expireTime
|
|
15104
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupRequest
|
|
15105
|
+
* @instance
|
|
15106
|
+
*/
|
|
15107
|
+
CopyBackupRequest.prototype.expireTime = null;
|
|
15108
|
+
|
|
15109
|
+
/**
|
|
15110
|
+
* CopyBackupRequest encryptionConfig.
|
|
15111
|
+
* @member {google.spanner.admin.database.v1.ICopyBackupEncryptionConfig|null|undefined} encryptionConfig
|
|
15112
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupRequest
|
|
15113
|
+
* @instance
|
|
15114
|
+
*/
|
|
15115
|
+
CopyBackupRequest.prototype.encryptionConfig = null;
|
|
15116
|
+
|
|
15117
|
+
/**
|
|
15118
|
+
* Creates a new CopyBackupRequest instance using the specified properties.
|
|
15119
|
+
* @function create
|
|
15120
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupRequest
|
|
15121
|
+
* @static
|
|
15122
|
+
* @param {google.spanner.admin.database.v1.ICopyBackupRequest=} [properties] Properties to set
|
|
15123
|
+
* @returns {google.spanner.admin.database.v1.CopyBackupRequest} CopyBackupRequest instance
|
|
15124
|
+
*/
|
|
15125
|
+
CopyBackupRequest.create = function create(properties) {
|
|
15126
|
+
return new CopyBackupRequest(properties);
|
|
15127
|
+
};
|
|
15128
|
+
|
|
15129
|
+
/**
|
|
15130
|
+
* Encodes the specified CopyBackupRequest message. Does not implicitly {@link google.spanner.admin.database.v1.CopyBackupRequest.verify|verify} messages.
|
|
15131
|
+
* @function encode
|
|
15132
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupRequest
|
|
15133
|
+
* @static
|
|
15134
|
+
* @param {google.spanner.admin.database.v1.ICopyBackupRequest} message CopyBackupRequest message or plain object to encode
|
|
15135
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15136
|
+
* @returns {$protobuf.Writer} Writer
|
|
15137
|
+
*/
|
|
15138
|
+
CopyBackupRequest.encode = function encode(message, writer) {
|
|
15139
|
+
if (!writer)
|
|
15140
|
+
writer = $Writer.create();
|
|
15141
|
+
if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
|
|
15142
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
|
|
15143
|
+
if (message.backupId != null && Object.hasOwnProperty.call(message, "backupId"))
|
|
15144
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.backupId);
|
|
15145
|
+
if (message.sourceBackup != null && Object.hasOwnProperty.call(message, "sourceBackup"))
|
|
15146
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.sourceBackup);
|
|
15147
|
+
if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime"))
|
|
15148
|
+
$root.google.protobuf.Timestamp.encode(message.expireTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
15149
|
+
if (message.encryptionConfig != null && Object.hasOwnProperty.call(message, "encryptionConfig"))
|
|
15150
|
+
$root.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encode(message.encryptionConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
15151
|
+
return writer;
|
|
15152
|
+
};
|
|
15153
|
+
|
|
15154
|
+
/**
|
|
15155
|
+
* Encodes the specified CopyBackupRequest message, length delimited. Does not implicitly {@link google.spanner.admin.database.v1.CopyBackupRequest.verify|verify} messages.
|
|
15156
|
+
* @function encodeDelimited
|
|
15157
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupRequest
|
|
15158
|
+
* @static
|
|
15159
|
+
* @param {google.spanner.admin.database.v1.ICopyBackupRequest} message CopyBackupRequest message or plain object to encode
|
|
15160
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15161
|
+
* @returns {$protobuf.Writer} Writer
|
|
15162
|
+
*/
|
|
15163
|
+
CopyBackupRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15164
|
+
return this.encode(message, writer).ldelim();
|
|
15165
|
+
};
|
|
15166
|
+
|
|
15167
|
+
/**
|
|
15168
|
+
* Decodes a CopyBackupRequest message from the specified reader or buffer.
|
|
15169
|
+
* @function decode
|
|
15170
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupRequest
|
|
15171
|
+
* @static
|
|
15172
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15173
|
+
* @param {number} [length] Message length if known beforehand
|
|
15174
|
+
* @returns {google.spanner.admin.database.v1.CopyBackupRequest} CopyBackupRequest
|
|
15175
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15176
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15177
|
+
*/
|
|
15178
|
+
CopyBackupRequest.decode = function decode(reader, length) {
|
|
15179
|
+
if (!(reader instanceof $Reader))
|
|
15180
|
+
reader = $Reader.create(reader);
|
|
15181
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.spanner.admin.database.v1.CopyBackupRequest();
|
|
15182
|
+
while (reader.pos < end) {
|
|
15183
|
+
var tag = reader.uint32();
|
|
15184
|
+
switch (tag >>> 3) {
|
|
15185
|
+
case 1:
|
|
15186
|
+
message.parent = reader.string();
|
|
15187
|
+
break;
|
|
15188
|
+
case 2:
|
|
15189
|
+
message.backupId = reader.string();
|
|
15190
|
+
break;
|
|
15191
|
+
case 3:
|
|
15192
|
+
message.sourceBackup = reader.string();
|
|
15193
|
+
break;
|
|
15194
|
+
case 4:
|
|
15195
|
+
message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
15196
|
+
break;
|
|
15197
|
+
case 5:
|
|
15198
|
+
message.encryptionConfig = $root.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.decode(reader, reader.uint32());
|
|
15199
|
+
break;
|
|
15200
|
+
default:
|
|
15201
|
+
reader.skipType(tag & 7);
|
|
15202
|
+
break;
|
|
15203
|
+
}
|
|
15204
|
+
}
|
|
15205
|
+
return message;
|
|
15206
|
+
};
|
|
15207
|
+
|
|
15208
|
+
/**
|
|
15209
|
+
* Decodes a CopyBackupRequest message from the specified reader or buffer, length delimited.
|
|
15210
|
+
* @function decodeDelimited
|
|
15211
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupRequest
|
|
15212
|
+
* @static
|
|
15213
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15214
|
+
* @returns {google.spanner.admin.database.v1.CopyBackupRequest} CopyBackupRequest
|
|
15215
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15216
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15217
|
+
*/
|
|
15218
|
+
CopyBackupRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
15219
|
+
if (!(reader instanceof $Reader))
|
|
15220
|
+
reader = new $Reader(reader);
|
|
15221
|
+
return this.decode(reader, reader.uint32());
|
|
15222
|
+
};
|
|
15223
|
+
|
|
15224
|
+
/**
|
|
15225
|
+
* Verifies a CopyBackupRequest message.
|
|
15226
|
+
* @function verify
|
|
15227
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupRequest
|
|
15228
|
+
* @static
|
|
15229
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
15230
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
15231
|
+
*/
|
|
15232
|
+
CopyBackupRequest.verify = function verify(message) {
|
|
15233
|
+
if (typeof message !== "object" || message === null)
|
|
15234
|
+
return "object expected";
|
|
15235
|
+
if (message.parent != null && message.hasOwnProperty("parent"))
|
|
15236
|
+
if (!$util.isString(message.parent))
|
|
15237
|
+
return "parent: string expected";
|
|
15238
|
+
if (message.backupId != null && message.hasOwnProperty("backupId"))
|
|
15239
|
+
if (!$util.isString(message.backupId))
|
|
15240
|
+
return "backupId: string expected";
|
|
15241
|
+
if (message.sourceBackup != null && message.hasOwnProperty("sourceBackup"))
|
|
15242
|
+
if (!$util.isString(message.sourceBackup))
|
|
15243
|
+
return "sourceBackup: string expected";
|
|
15244
|
+
if (message.expireTime != null && message.hasOwnProperty("expireTime")) {
|
|
15245
|
+
var error = $root.google.protobuf.Timestamp.verify(message.expireTime);
|
|
15246
|
+
if (error)
|
|
15247
|
+
return "expireTime." + error;
|
|
15248
|
+
}
|
|
15249
|
+
if (message.encryptionConfig != null && message.hasOwnProperty("encryptionConfig")) {
|
|
15250
|
+
var error = $root.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.verify(message.encryptionConfig);
|
|
15251
|
+
if (error)
|
|
15252
|
+
return "encryptionConfig." + error;
|
|
15253
|
+
}
|
|
15254
|
+
return null;
|
|
15255
|
+
};
|
|
15256
|
+
|
|
15257
|
+
/**
|
|
15258
|
+
* Creates a CopyBackupRequest message from a plain object. Also converts values to their respective internal types.
|
|
15259
|
+
* @function fromObject
|
|
15260
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupRequest
|
|
15261
|
+
* @static
|
|
15262
|
+
* @param {Object.<string,*>} object Plain object
|
|
15263
|
+
* @returns {google.spanner.admin.database.v1.CopyBackupRequest} CopyBackupRequest
|
|
15264
|
+
*/
|
|
15265
|
+
CopyBackupRequest.fromObject = function fromObject(object) {
|
|
15266
|
+
if (object instanceof $root.google.spanner.admin.database.v1.CopyBackupRequest)
|
|
15267
|
+
return object;
|
|
15268
|
+
var message = new $root.google.spanner.admin.database.v1.CopyBackupRequest();
|
|
15269
|
+
if (object.parent != null)
|
|
15270
|
+
message.parent = String(object.parent);
|
|
15271
|
+
if (object.backupId != null)
|
|
15272
|
+
message.backupId = String(object.backupId);
|
|
15273
|
+
if (object.sourceBackup != null)
|
|
15274
|
+
message.sourceBackup = String(object.sourceBackup);
|
|
15275
|
+
if (object.expireTime != null) {
|
|
15276
|
+
if (typeof object.expireTime !== "object")
|
|
15277
|
+
throw TypeError(".google.spanner.admin.database.v1.CopyBackupRequest.expireTime: object expected");
|
|
15278
|
+
message.expireTime = $root.google.protobuf.Timestamp.fromObject(object.expireTime);
|
|
15279
|
+
}
|
|
15280
|
+
if (object.encryptionConfig != null) {
|
|
15281
|
+
if (typeof object.encryptionConfig !== "object")
|
|
15282
|
+
throw TypeError(".google.spanner.admin.database.v1.CopyBackupRequest.encryptionConfig: object expected");
|
|
15283
|
+
message.encryptionConfig = $root.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.fromObject(object.encryptionConfig);
|
|
15284
|
+
}
|
|
15285
|
+
return message;
|
|
15286
|
+
};
|
|
15287
|
+
|
|
15288
|
+
/**
|
|
15289
|
+
* Creates a plain object from a CopyBackupRequest message. Also converts values to other types if specified.
|
|
15290
|
+
* @function toObject
|
|
15291
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupRequest
|
|
15292
|
+
* @static
|
|
15293
|
+
* @param {google.spanner.admin.database.v1.CopyBackupRequest} message CopyBackupRequest
|
|
15294
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
15295
|
+
* @returns {Object.<string,*>} Plain object
|
|
15296
|
+
*/
|
|
15297
|
+
CopyBackupRequest.toObject = function toObject(message, options) {
|
|
15298
|
+
if (!options)
|
|
15299
|
+
options = {};
|
|
15300
|
+
var object = {};
|
|
15301
|
+
if (options.defaults) {
|
|
15302
|
+
object.parent = "";
|
|
15303
|
+
object.backupId = "";
|
|
15304
|
+
object.sourceBackup = "";
|
|
15305
|
+
object.expireTime = null;
|
|
15306
|
+
object.encryptionConfig = null;
|
|
15307
|
+
}
|
|
15308
|
+
if (message.parent != null && message.hasOwnProperty("parent"))
|
|
15309
|
+
object.parent = message.parent;
|
|
15310
|
+
if (message.backupId != null && message.hasOwnProperty("backupId"))
|
|
15311
|
+
object.backupId = message.backupId;
|
|
15312
|
+
if (message.sourceBackup != null && message.hasOwnProperty("sourceBackup"))
|
|
15313
|
+
object.sourceBackup = message.sourceBackup;
|
|
15314
|
+
if (message.expireTime != null && message.hasOwnProperty("expireTime"))
|
|
15315
|
+
object.expireTime = $root.google.protobuf.Timestamp.toObject(message.expireTime, options);
|
|
15316
|
+
if (message.encryptionConfig != null && message.hasOwnProperty("encryptionConfig"))
|
|
15317
|
+
object.encryptionConfig = $root.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.toObject(message.encryptionConfig, options);
|
|
15318
|
+
return object;
|
|
15319
|
+
};
|
|
15320
|
+
|
|
15321
|
+
/**
|
|
15322
|
+
* Converts this CopyBackupRequest to JSON.
|
|
15323
|
+
* @function toJSON
|
|
15324
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupRequest
|
|
15325
|
+
* @instance
|
|
15326
|
+
* @returns {Object.<string,*>} JSON object
|
|
15327
|
+
*/
|
|
15328
|
+
CopyBackupRequest.prototype.toJSON = function toJSON() {
|
|
15329
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
15330
|
+
};
|
|
15331
|
+
|
|
15332
|
+
return CopyBackupRequest;
|
|
15333
|
+
})();
|
|
15334
|
+
|
|
15335
|
+
v1.CopyBackupMetadata = (function() {
|
|
15336
|
+
|
|
15337
|
+
/**
|
|
15338
|
+
* Properties of a CopyBackupMetadata.
|
|
15339
|
+
* @memberof google.spanner.admin.database.v1
|
|
15340
|
+
* @interface ICopyBackupMetadata
|
|
15341
|
+
* @property {string|null} [name] CopyBackupMetadata name
|
|
15342
|
+
* @property {string|null} [sourceBackup] CopyBackupMetadata sourceBackup
|
|
15343
|
+
* @property {google.spanner.admin.database.v1.IOperationProgress|null} [progress] CopyBackupMetadata progress
|
|
15344
|
+
* @property {google.protobuf.ITimestamp|null} [cancelTime] CopyBackupMetadata cancelTime
|
|
15345
|
+
*/
|
|
15346
|
+
|
|
15347
|
+
/**
|
|
15348
|
+
* Constructs a new CopyBackupMetadata.
|
|
15349
|
+
* @memberof google.spanner.admin.database.v1
|
|
15350
|
+
* @classdesc Represents a CopyBackupMetadata.
|
|
15351
|
+
* @implements ICopyBackupMetadata
|
|
15352
|
+
* @constructor
|
|
15353
|
+
* @param {google.spanner.admin.database.v1.ICopyBackupMetadata=} [properties] Properties to set
|
|
15354
|
+
*/
|
|
15355
|
+
function CopyBackupMetadata(properties) {
|
|
15356
|
+
if (properties)
|
|
15357
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15358
|
+
if (properties[keys[i]] != null)
|
|
15359
|
+
this[keys[i]] = properties[keys[i]];
|
|
15360
|
+
}
|
|
15361
|
+
|
|
15362
|
+
/**
|
|
15363
|
+
* CopyBackupMetadata name.
|
|
15364
|
+
* @member {string} name
|
|
15365
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupMetadata
|
|
15366
|
+
* @instance
|
|
15367
|
+
*/
|
|
15368
|
+
CopyBackupMetadata.prototype.name = "";
|
|
15369
|
+
|
|
15370
|
+
/**
|
|
15371
|
+
* CopyBackupMetadata sourceBackup.
|
|
15372
|
+
* @member {string} sourceBackup
|
|
15373
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupMetadata
|
|
15374
|
+
* @instance
|
|
15375
|
+
*/
|
|
15376
|
+
CopyBackupMetadata.prototype.sourceBackup = "";
|
|
15377
|
+
|
|
15378
|
+
/**
|
|
15379
|
+
* CopyBackupMetadata progress.
|
|
15380
|
+
* @member {google.spanner.admin.database.v1.IOperationProgress|null|undefined} progress
|
|
15381
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupMetadata
|
|
15382
|
+
* @instance
|
|
15383
|
+
*/
|
|
15384
|
+
CopyBackupMetadata.prototype.progress = null;
|
|
15385
|
+
|
|
15386
|
+
/**
|
|
15387
|
+
* CopyBackupMetadata cancelTime.
|
|
15388
|
+
* @member {google.protobuf.ITimestamp|null|undefined} cancelTime
|
|
15389
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupMetadata
|
|
15390
|
+
* @instance
|
|
15391
|
+
*/
|
|
15392
|
+
CopyBackupMetadata.prototype.cancelTime = null;
|
|
15393
|
+
|
|
15394
|
+
/**
|
|
15395
|
+
* Creates a new CopyBackupMetadata instance using the specified properties.
|
|
15396
|
+
* @function create
|
|
15397
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupMetadata
|
|
15398
|
+
* @static
|
|
15399
|
+
* @param {google.spanner.admin.database.v1.ICopyBackupMetadata=} [properties] Properties to set
|
|
15400
|
+
* @returns {google.spanner.admin.database.v1.CopyBackupMetadata} CopyBackupMetadata instance
|
|
15401
|
+
*/
|
|
15402
|
+
CopyBackupMetadata.create = function create(properties) {
|
|
15403
|
+
return new CopyBackupMetadata(properties);
|
|
15404
|
+
};
|
|
15405
|
+
|
|
15406
|
+
/**
|
|
15407
|
+
* Encodes the specified CopyBackupMetadata message. Does not implicitly {@link google.spanner.admin.database.v1.CopyBackupMetadata.verify|verify} messages.
|
|
15408
|
+
* @function encode
|
|
15409
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupMetadata
|
|
15410
|
+
* @static
|
|
15411
|
+
* @param {google.spanner.admin.database.v1.ICopyBackupMetadata} message CopyBackupMetadata message or plain object to encode
|
|
15412
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15413
|
+
* @returns {$protobuf.Writer} Writer
|
|
15414
|
+
*/
|
|
15415
|
+
CopyBackupMetadata.encode = function encode(message, writer) {
|
|
15416
|
+
if (!writer)
|
|
15417
|
+
writer = $Writer.create();
|
|
15418
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
15419
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
15420
|
+
if (message.sourceBackup != null && Object.hasOwnProperty.call(message, "sourceBackup"))
|
|
15421
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceBackup);
|
|
15422
|
+
if (message.progress != null && Object.hasOwnProperty.call(message, "progress"))
|
|
15423
|
+
$root.google.spanner.admin.database.v1.OperationProgress.encode(message.progress, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
15424
|
+
if (message.cancelTime != null && Object.hasOwnProperty.call(message, "cancelTime"))
|
|
15425
|
+
$root.google.protobuf.Timestamp.encode(message.cancelTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
15426
|
+
return writer;
|
|
15427
|
+
};
|
|
15428
|
+
|
|
15429
|
+
/**
|
|
15430
|
+
* Encodes the specified CopyBackupMetadata message, length delimited. Does not implicitly {@link google.spanner.admin.database.v1.CopyBackupMetadata.verify|verify} messages.
|
|
15431
|
+
* @function encodeDelimited
|
|
15432
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupMetadata
|
|
15433
|
+
* @static
|
|
15434
|
+
* @param {google.spanner.admin.database.v1.ICopyBackupMetadata} message CopyBackupMetadata message or plain object to encode
|
|
15435
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15436
|
+
* @returns {$protobuf.Writer} Writer
|
|
15437
|
+
*/
|
|
15438
|
+
CopyBackupMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15439
|
+
return this.encode(message, writer).ldelim();
|
|
15440
|
+
};
|
|
15441
|
+
|
|
15442
|
+
/**
|
|
15443
|
+
* Decodes a CopyBackupMetadata message from the specified reader or buffer.
|
|
15444
|
+
* @function decode
|
|
15445
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupMetadata
|
|
15446
|
+
* @static
|
|
15447
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15448
|
+
* @param {number} [length] Message length if known beforehand
|
|
15449
|
+
* @returns {google.spanner.admin.database.v1.CopyBackupMetadata} CopyBackupMetadata
|
|
15450
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15451
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15452
|
+
*/
|
|
15453
|
+
CopyBackupMetadata.decode = function decode(reader, length) {
|
|
15454
|
+
if (!(reader instanceof $Reader))
|
|
15455
|
+
reader = $Reader.create(reader);
|
|
15456
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.spanner.admin.database.v1.CopyBackupMetadata();
|
|
15457
|
+
while (reader.pos < end) {
|
|
15458
|
+
var tag = reader.uint32();
|
|
15459
|
+
switch (tag >>> 3) {
|
|
15460
|
+
case 1:
|
|
15461
|
+
message.name = reader.string();
|
|
15462
|
+
break;
|
|
15463
|
+
case 2:
|
|
15464
|
+
message.sourceBackup = reader.string();
|
|
14809
15465
|
break;
|
|
14810
15466
|
case 3:
|
|
14811
15467
|
message.progress = $root.google.spanner.admin.database.v1.OperationProgress.decode(reader, reader.uint32());
|
|
@@ -14822,38 +15478,38 @@
|
|
|
14822
15478
|
};
|
|
14823
15479
|
|
|
14824
15480
|
/**
|
|
14825
|
-
* Decodes a
|
|
15481
|
+
* Decodes a CopyBackupMetadata message from the specified reader or buffer, length delimited.
|
|
14826
15482
|
* @function decodeDelimited
|
|
14827
|
-
* @memberof google.spanner.admin.database.v1.
|
|
15483
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupMetadata
|
|
14828
15484
|
* @static
|
|
14829
15485
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14830
|
-
* @returns {google.spanner.admin.database.v1.
|
|
15486
|
+
* @returns {google.spanner.admin.database.v1.CopyBackupMetadata} CopyBackupMetadata
|
|
14831
15487
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14832
15488
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14833
15489
|
*/
|
|
14834
|
-
|
|
15490
|
+
CopyBackupMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
14835
15491
|
if (!(reader instanceof $Reader))
|
|
14836
15492
|
reader = new $Reader(reader);
|
|
14837
15493
|
return this.decode(reader, reader.uint32());
|
|
14838
15494
|
};
|
|
14839
15495
|
|
|
14840
15496
|
/**
|
|
14841
|
-
* Verifies a
|
|
15497
|
+
* Verifies a CopyBackupMetadata message.
|
|
14842
15498
|
* @function verify
|
|
14843
|
-
* @memberof google.spanner.admin.database.v1.
|
|
15499
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupMetadata
|
|
14844
15500
|
* @static
|
|
14845
15501
|
* @param {Object.<string,*>} message Plain object to verify
|
|
14846
15502
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
14847
15503
|
*/
|
|
14848
|
-
|
|
15504
|
+
CopyBackupMetadata.verify = function verify(message) {
|
|
14849
15505
|
if (typeof message !== "object" || message === null)
|
|
14850
15506
|
return "object expected";
|
|
14851
15507
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
14852
15508
|
if (!$util.isString(message.name))
|
|
14853
15509
|
return "name: string expected";
|
|
14854
|
-
if (message.
|
|
14855
|
-
if (!$util.isString(message.
|
|
14856
|
-
return "
|
|
15510
|
+
if (message.sourceBackup != null && message.hasOwnProperty("sourceBackup"))
|
|
15511
|
+
if (!$util.isString(message.sourceBackup))
|
|
15512
|
+
return "sourceBackup: string expected";
|
|
14857
15513
|
if (message.progress != null && message.hasOwnProperty("progress")) {
|
|
14858
15514
|
var error = $root.google.spanner.admin.database.v1.OperationProgress.verify(message.progress);
|
|
14859
15515
|
if (error)
|
|
@@ -14868,57 +15524,57 @@
|
|
|
14868
15524
|
};
|
|
14869
15525
|
|
|
14870
15526
|
/**
|
|
14871
|
-
* Creates a
|
|
15527
|
+
* Creates a CopyBackupMetadata message from a plain object. Also converts values to their respective internal types.
|
|
14872
15528
|
* @function fromObject
|
|
14873
|
-
* @memberof google.spanner.admin.database.v1.
|
|
15529
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupMetadata
|
|
14874
15530
|
* @static
|
|
14875
15531
|
* @param {Object.<string,*>} object Plain object
|
|
14876
|
-
* @returns {google.spanner.admin.database.v1.
|
|
15532
|
+
* @returns {google.spanner.admin.database.v1.CopyBackupMetadata} CopyBackupMetadata
|
|
14877
15533
|
*/
|
|
14878
|
-
|
|
14879
|
-
if (object instanceof $root.google.spanner.admin.database.v1.
|
|
15534
|
+
CopyBackupMetadata.fromObject = function fromObject(object) {
|
|
15535
|
+
if (object instanceof $root.google.spanner.admin.database.v1.CopyBackupMetadata)
|
|
14880
15536
|
return object;
|
|
14881
|
-
var message = new $root.google.spanner.admin.database.v1.
|
|
15537
|
+
var message = new $root.google.spanner.admin.database.v1.CopyBackupMetadata();
|
|
14882
15538
|
if (object.name != null)
|
|
14883
15539
|
message.name = String(object.name);
|
|
14884
|
-
if (object.
|
|
14885
|
-
message.
|
|
15540
|
+
if (object.sourceBackup != null)
|
|
15541
|
+
message.sourceBackup = String(object.sourceBackup);
|
|
14886
15542
|
if (object.progress != null) {
|
|
14887
15543
|
if (typeof object.progress !== "object")
|
|
14888
|
-
throw TypeError(".google.spanner.admin.database.v1.
|
|
15544
|
+
throw TypeError(".google.spanner.admin.database.v1.CopyBackupMetadata.progress: object expected");
|
|
14889
15545
|
message.progress = $root.google.spanner.admin.database.v1.OperationProgress.fromObject(object.progress);
|
|
14890
15546
|
}
|
|
14891
15547
|
if (object.cancelTime != null) {
|
|
14892
15548
|
if (typeof object.cancelTime !== "object")
|
|
14893
|
-
throw TypeError(".google.spanner.admin.database.v1.
|
|
15549
|
+
throw TypeError(".google.spanner.admin.database.v1.CopyBackupMetadata.cancelTime: object expected");
|
|
14894
15550
|
message.cancelTime = $root.google.protobuf.Timestamp.fromObject(object.cancelTime);
|
|
14895
15551
|
}
|
|
14896
15552
|
return message;
|
|
14897
15553
|
};
|
|
14898
15554
|
|
|
14899
15555
|
/**
|
|
14900
|
-
* Creates a plain object from a
|
|
15556
|
+
* Creates a plain object from a CopyBackupMetadata message. Also converts values to other types if specified.
|
|
14901
15557
|
* @function toObject
|
|
14902
|
-
* @memberof google.spanner.admin.database.v1.
|
|
15558
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupMetadata
|
|
14903
15559
|
* @static
|
|
14904
|
-
* @param {google.spanner.admin.database.v1.
|
|
15560
|
+
* @param {google.spanner.admin.database.v1.CopyBackupMetadata} message CopyBackupMetadata
|
|
14905
15561
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
14906
15562
|
* @returns {Object.<string,*>} Plain object
|
|
14907
15563
|
*/
|
|
14908
|
-
|
|
15564
|
+
CopyBackupMetadata.toObject = function toObject(message, options) {
|
|
14909
15565
|
if (!options)
|
|
14910
15566
|
options = {};
|
|
14911
15567
|
var object = {};
|
|
14912
15568
|
if (options.defaults) {
|
|
14913
15569
|
object.name = "";
|
|
14914
|
-
object.
|
|
15570
|
+
object.sourceBackup = "";
|
|
14915
15571
|
object.progress = null;
|
|
14916
15572
|
object.cancelTime = null;
|
|
14917
15573
|
}
|
|
14918
15574
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
14919
15575
|
object.name = message.name;
|
|
14920
|
-
if (message.
|
|
14921
|
-
object.
|
|
15576
|
+
if (message.sourceBackup != null && message.hasOwnProperty("sourceBackup"))
|
|
15577
|
+
object.sourceBackup = message.sourceBackup;
|
|
14922
15578
|
if (message.progress != null && message.hasOwnProperty("progress"))
|
|
14923
15579
|
object.progress = $root.google.spanner.admin.database.v1.OperationProgress.toObject(message.progress, options);
|
|
14924
15580
|
if (message.cancelTime != null && message.hasOwnProperty("cancelTime"))
|
|
@@ -14927,17 +15583,17 @@
|
|
|
14927
15583
|
};
|
|
14928
15584
|
|
|
14929
15585
|
/**
|
|
14930
|
-
* Converts this
|
|
15586
|
+
* Converts this CopyBackupMetadata to JSON.
|
|
14931
15587
|
* @function toJSON
|
|
14932
|
-
* @memberof google.spanner.admin.database.v1.
|
|
15588
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupMetadata
|
|
14933
15589
|
* @instance
|
|
14934
15590
|
* @returns {Object.<string,*>} JSON object
|
|
14935
15591
|
*/
|
|
14936
|
-
|
|
15592
|
+
CopyBackupMetadata.prototype.toJSON = function toJSON() {
|
|
14937
15593
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
14938
15594
|
};
|
|
14939
15595
|
|
|
14940
|
-
return
|
|
15596
|
+
return CopyBackupMetadata;
|
|
14941
15597
|
})();
|
|
14942
15598
|
|
|
14943
15599
|
v1.UpdateBackupRequest = (function() {
|
|
@@ -16755,38 +17411,289 @@
|
|
|
16755
17411
|
};
|
|
16756
17412
|
|
|
16757
17413
|
/**
|
|
16758
|
-
* Converts this BackupInfo to JSON.
|
|
17414
|
+
* Converts this BackupInfo to JSON.
|
|
17415
|
+
* @function toJSON
|
|
17416
|
+
* @memberof google.spanner.admin.database.v1.BackupInfo
|
|
17417
|
+
* @instance
|
|
17418
|
+
* @returns {Object.<string,*>} JSON object
|
|
17419
|
+
*/
|
|
17420
|
+
BackupInfo.prototype.toJSON = function toJSON() {
|
|
17421
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
17422
|
+
};
|
|
17423
|
+
|
|
17424
|
+
return BackupInfo;
|
|
17425
|
+
})();
|
|
17426
|
+
|
|
17427
|
+
v1.CreateBackupEncryptionConfig = (function() {
|
|
17428
|
+
|
|
17429
|
+
/**
|
|
17430
|
+
* Properties of a CreateBackupEncryptionConfig.
|
|
17431
|
+
* @memberof google.spanner.admin.database.v1
|
|
17432
|
+
* @interface ICreateBackupEncryptionConfig
|
|
17433
|
+
* @property {google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType|null} [encryptionType] CreateBackupEncryptionConfig encryptionType
|
|
17434
|
+
* @property {string|null} [kmsKeyName] CreateBackupEncryptionConfig kmsKeyName
|
|
17435
|
+
*/
|
|
17436
|
+
|
|
17437
|
+
/**
|
|
17438
|
+
* Constructs a new CreateBackupEncryptionConfig.
|
|
17439
|
+
* @memberof google.spanner.admin.database.v1
|
|
17440
|
+
* @classdesc Represents a CreateBackupEncryptionConfig.
|
|
17441
|
+
* @implements ICreateBackupEncryptionConfig
|
|
17442
|
+
* @constructor
|
|
17443
|
+
* @param {google.spanner.admin.database.v1.ICreateBackupEncryptionConfig=} [properties] Properties to set
|
|
17444
|
+
*/
|
|
17445
|
+
function CreateBackupEncryptionConfig(properties) {
|
|
17446
|
+
if (properties)
|
|
17447
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17448
|
+
if (properties[keys[i]] != null)
|
|
17449
|
+
this[keys[i]] = properties[keys[i]];
|
|
17450
|
+
}
|
|
17451
|
+
|
|
17452
|
+
/**
|
|
17453
|
+
* CreateBackupEncryptionConfig encryptionType.
|
|
17454
|
+
* @member {google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType} encryptionType
|
|
17455
|
+
* @memberof google.spanner.admin.database.v1.CreateBackupEncryptionConfig
|
|
17456
|
+
* @instance
|
|
17457
|
+
*/
|
|
17458
|
+
CreateBackupEncryptionConfig.prototype.encryptionType = 0;
|
|
17459
|
+
|
|
17460
|
+
/**
|
|
17461
|
+
* CreateBackupEncryptionConfig kmsKeyName.
|
|
17462
|
+
* @member {string} kmsKeyName
|
|
17463
|
+
* @memberof google.spanner.admin.database.v1.CreateBackupEncryptionConfig
|
|
17464
|
+
* @instance
|
|
17465
|
+
*/
|
|
17466
|
+
CreateBackupEncryptionConfig.prototype.kmsKeyName = "";
|
|
17467
|
+
|
|
17468
|
+
/**
|
|
17469
|
+
* Creates a new CreateBackupEncryptionConfig instance using the specified properties.
|
|
17470
|
+
* @function create
|
|
17471
|
+
* @memberof google.spanner.admin.database.v1.CreateBackupEncryptionConfig
|
|
17472
|
+
* @static
|
|
17473
|
+
* @param {google.spanner.admin.database.v1.ICreateBackupEncryptionConfig=} [properties] Properties to set
|
|
17474
|
+
* @returns {google.spanner.admin.database.v1.CreateBackupEncryptionConfig} CreateBackupEncryptionConfig instance
|
|
17475
|
+
*/
|
|
17476
|
+
CreateBackupEncryptionConfig.create = function create(properties) {
|
|
17477
|
+
return new CreateBackupEncryptionConfig(properties);
|
|
17478
|
+
};
|
|
17479
|
+
|
|
17480
|
+
/**
|
|
17481
|
+
* Encodes the specified CreateBackupEncryptionConfig message. Does not implicitly {@link google.spanner.admin.database.v1.CreateBackupEncryptionConfig.verify|verify} messages.
|
|
17482
|
+
* @function encode
|
|
17483
|
+
* @memberof google.spanner.admin.database.v1.CreateBackupEncryptionConfig
|
|
17484
|
+
* @static
|
|
17485
|
+
* @param {google.spanner.admin.database.v1.ICreateBackupEncryptionConfig} message CreateBackupEncryptionConfig message or plain object to encode
|
|
17486
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17487
|
+
* @returns {$protobuf.Writer} Writer
|
|
17488
|
+
*/
|
|
17489
|
+
CreateBackupEncryptionConfig.encode = function encode(message, writer) {
|
|
17490
|
+
if (!writer)
|
|
17491
|
+
writer = $Writer.create();
|
|
17492
|
+
if (message.encryptionType != null && Object.hasOwnProperty.call(message, "encryptionType"))
|
|
17493
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.encryptionType);
|
|
17494
|
+
if (message.kmsKeyName != null && Object.hasOwnProperty.call(message, "kmsKeyName"))
|
|
17495
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.kmsKeyName);
|
|
17496
|
+
return writer;
|
|
17497
|
+
};
|
|
17498
|
+
|
|
17499
|
+
/**
|
|
17500
|
+
* Encodes the specified CreateBackupEncryptionConfig message, length delimited. Does not implicitly {@link google.spanner.admin.database.v1.CreateBackupEncryptionConfig.verify|verify} messages.
|
|
17501
|
+
* @function encodeDelimited
|
|
17502
|
+
* @memberof google.spanner.admin.database.v1.CreateBackupEncryptionConfig
|
|
17503
|
+
* @static
|
|
17504
|
+
* @param {google.spanner.admin.database.v1.ICreateBackupEncryptionConfig} message CreateBackupEncryptionConfig message or plain object to encode
|
|
17505
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17506
|
+
* @returns {$protobuf.Writer} Writer
|
|
17507
|
+
*/
|
|
17508
|
+
CreateBackupEncryptionConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17509
|
+
return this.encode(message, writer).ldelim();
|
|
17510
|
+
};
|
|
17511
|
+
|
|
17512
|
+
/**
|
|
17513
|
+
* Decodes a CreateBackupEncryptionConfig message from the specified reader or buffer.
|
|
17514
|
+
* @function decode
|
|
17515
|
+
* @memberof google.spanner.admin.database.v1.CreateBackupEncryptionConfig
|
|
17516
|
+
* @static
|
|
17517
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17518
|
+
* @param {number} [length] Message length if known beforehand
|
|
17519
|
+
* @returns {google.spanner.admin.database.v1.CreateBackupEncryptionConfig} CreateBackupEncryptionConfig
|
|
17520
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17521
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17522
|
+
*/
|
|
17523
|
+
CreateBackupEncryptionConfig.decode = function decode(reader, length) {
|
|
17524
|
+
if (!(reader instanceof $Reader))
|
|
17525
|
+
reader = $Reader.create(reader);
|
|
17526
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.spanner.admin.database.v1.CreateBackupEncryptionConfig();
|
|
17527
|
+
while (reader.pos < end) {
|
|
17528
|
+
var tag = reader.uint32();
|
|
17529
|
+
switch (tag >>> 3) {
|
|
17530
|
+
case 1:
|
|
17531
|
+
message.encryptionType = reader.int32();
|
|
17532
|
+
break;
|
|
17533
|
+
case 2:
|
|
17534
|
+
message.kmsKeyName = reader.string();
|
|
17535
|
+
break;
|
|
17536
|
+
default:
|
|
17537
|
+
reader.skipType(tag & 7);
|
|
17538
|
+
break;
|
|
17539
|
+
}
|
|
17540
|
+
}
|
|
17541
|
+
return message;
|
|
17542
|
+
};
|
|
17543
|
+
|
|
17544
|
+
/**
|
|
17545
|
+
* Decodes a CreateBackupEncryptionConfig message from the specified reader or buffer, length delimited.
|
|
17546
|
+
* @function decodeDelimited
|
|
17547
|
+
* @memberof google.spanner.admin.database.v1.CreateBackupEncryptionConfig
|
|
17548
|
+
* @static
|
|
17549
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17550
|
+
* @returns {google.spanner.admin.database.v1.CreateBackupEncryptionConfig} CreateBackupEncryptionConfig
|
|
17551
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17552
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17553
|
+
*/
|
|
17554
|
+
CreateBackupEncryptionConfig.decodeDelimited = function decodeDelimited(reader) {
|
|
17555
|
+
if (!(reader instanceof $Reader))
|
|
17556
|
+
reader = new $Reader(reader);
|
|
17557
|
+
return this.decode(reader, reader.uint32());
|
|
17558
|
+
};
|
|
17559
|
+
|
|
17560
|
+
/**
|
|
17561
|
+
* Verifies a CreateBackupEncryptionConfig message.
|
|
17562
|
+
* @function verify
|
|
17563
|
+
* @memberof google.spanner.admin.database.v1.CreateBackupEncryptionConfig
|
|
17564
|
+
* @static
|
|
17565
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
17566
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
17567
|
+
*/
|
|
17568
|
+
CreateBackupEncryptionConfig.verify = function verify(message) {
|
|
17569
|
+
if (typeof message !== "object" || message === null)
|
|
17570
|
+
return "object expected";
|
|
17571
|
+
if (message.encryptionType != null && message.hasOwnProperty("encryptionType"))
|
|
17572
|
+
switch (message.encryptionType) {
|
|
17573
|
+
default:
|
|
17574
|
+
return "encryptionType: enum value expected";
|
|
17575
|
+
case 0:
|
|
17576
|
+
case 1:
|
|
17577
|
+
case 2:
|
|
17578
|
+
case 3:
|
|
17579
|
+
break;
|
|
17580
|
+
}
|
|
17581
|
+
if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName"))
|
|
17582
|
+
if (!$util.isString(message.kmsKeyName))
|
|
17583
|
+
return "kmsKeyName: string expected";
|
|
17584
|
+
return null;
|
|
17585
|
+
};
|
|
17586
|
+
|
|
17587
|
+
/**
|
|
17588
|
+
* Creates a CreateBackupEncryptionConfig message from a plain object. Also converts values to their respective internal types.
|
|
17589
|
+
* @function fromObject
|
|
17590
|
+
* @memberof google.spanner.admin.database.v1.CreateBackupEncryptionConfig
|
|
17591
|
+
* @static
|
|
17592
|
+
* @param {Object.<string,*>} object Plain object
|
|
17593
|
+
* @returns {google.spanner.admin.database.v1.CreateBackupEncryptionConfig} CreateBackupEncryptionConfig
|
|
17594
|
+
*/
|
|
17595
|
+
CreateBackupEncryptionConfig.fromObject = function fromObject(object) {
|
|
17596
|
+
if (object instanceof $root.google.spanner.admin.database.v1.CreateBackupEncryptionConfig)
|
|
17597
|
+
return object;
|
|
17598
|
+
var message = new $root.google.spanner.admin.database.v1.CreateBackupEncryptionConfig();
|
|
17599
|
+
switch (object.encryptionType) {
|
|
17600
|
+
case "ENCRYPTION_TYPE_UNSPECIFIED":
|
|
17601
|
+
case 0:
|
|
17602
|
+
message.encryptionType = 0;
|
|
17603
|
+
break;
|
|
17604
|
+
case "USE_DATABASE_ENCRYPTION":
|
|
17605
|
+
case 1:
|
|
17606
|
+
message.encryptionType = 1;
|
|
17607
|
+
break;
|
|
17608
|
+
case "GOOGLE_DEFAULT_ENCRYPTION":
|
|
17609
|
+
case 2:
|
|
17610
|
+
message.encryptionType = 2;
|
|
17611
|
+
break;
|
|
17612
|
+
case "CUSTOMER_MANAGED_ENCRYPTION":
|
|
17613
|
+
case 3:
|
|
17614
|
+
message.encryptionType = 3;
|
|
17615
|
+
break;
|
|
17616
|
+
}
|
|
17617
|
+
if (object.kmsKeyName != null)
|
|
17618
|
+
message.kmsKeyName = String(object.kmsKeyName);
|
|
17619
|
+
return message;
|
|
17620
|
+
};
|
|
17621
|
+
|
|
17622
|
+
/**
|
|
17623
|
+
* Creates a plain object from a CreateBackupEncryptionConfig message. Also converts values to other types if specified.
|
|
17624
|
+
* @function toObject
|
|
17625
|
+
* @memberof google.spanner.admin.database.v1.CreateBackupEncryptionConfig
|
|
17626
|
+
* @static
|
|
17627
|
+
* @param {google.spanner.admin.database.v1.CreateBackupEncryptionConfig} message CreateBackupEncryptionConfig
|
|
17628
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
17629
|
+
* @returns {Object.<string,*>} Plain object
|
|
17630
|
+
*/
|
|
17631
|
+
CreateBackupEncryptionConfig.toObject = function toObject(message, options) {
|
|
17632
|
+
if (!options)
|
|
17633
|
+
options = {};
|
|
17634
|
+
var object = {};
|
|
17635
|
+
if (options.defaults) {
|
|
17636
|
+
object.encryptionType = options.enums === String ? "ENCRYPTION_TYPE_UNSPECIFIED" : 0;
|
|
17637
|
+
object.kmsKeyName = "";
|
|
17638
|
+
}
|
|
17639
|
+
if (message.encryptionType != null && message.hasOwnProperty("encryptionType"))
|
|
17640
|
+
object.encryptionType = options.enums === String ? $root.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType[message.encryptionType] : message.encryptionType;
|
|
17641
|
+
if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName"))
|
|
17642
|
+
object.kmsKeyName = message.kmsKeyName;
|
|
17643
|
+
return object;
|
|
17644
|
+
};
|
|
17645
|
+
|
|
17646
|
+
/**
|
|
17647
|
+
* Converts this CreateBackupEncryptionConfig to JSON.
|
|
16759
17648
|
* @function toJSON
|
|
16760
|
-
* @memberof google.spanner.admin.database.v1.
|
|
17649
|
+
* @memberof google.spanner.admin.database.v1.CreateBackupEncryptionConfig
|
|
16761
17650
|
* @instance
|
|
16762
17651
|
* @returns {Object.<string,*>} JSON object
|
|
16763
17652
|
*/
|
|
16764
|
-
|
|
17653
|
+
CreateBackupEncryptionConfig.prototype.toJSON = function toJSON() {
|
|
16765
17654
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
16766
17655
|
};
|
|
16767
17656
|
|
|
16768
|
-
|
|
17657
|
+
/**
|
|
17658
|
+
* EncryptionType enum.
|
|
17659
|
+
* @name google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType
|
|
17660
|
+
* @enum {number}
|
|
17661
|
+
* @property {number} ENCRYPTION_TYPE_UNSPECIFIED=0 ENCRYPTION_TYPE_UNSPECIFIED value
|
|
17662
|
+
* @property {number} USE_DATABASE_ENCRYPTION=1 USE_DATABASE_ENCRYPTION value
|
|
17663
|
+
* @property {number} GOOGLE_DEFAULT_ENCRYPTION=2 GOOGLE_DEFAULT_ENCRYPTION value
|
|
17664
|
+
* @property {number} CUSTOMER_MANAGED_ENCRYPTION=3 CUSTOMER_MANAGED_ENCRYPTION value
|
|
17665
|
+
*/
|
|
17666
|
+
CreateBackupEncryptionConfig.EncryptionType = (function() {
|
|
17667
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
17668
|
+
values[valuesById[0] = "ENCRYPTION_TYPE_UNSPECIFIED"] = 0;
|
|
17669
|
+
values[valuesById[1] = "USE_DATABASE_ENCRYPTION"] = 1;
|
|
17670
|
+
values[valuesById[2] = "GOOGLE_DEFAULT_ENCRYPTION"] = 2;
|
|
17671
|
+
values[valuesById[3] = "CUSTOMER_MANAGED_ENCRYPTION"] = 3;
|
|
17672
|
+
return values;
|
|
17673
|
+
})();
|
|
17674
|
+
|
|
17675
|
+
return CreateBackupEncryptionConfig;
|
|
16769
17676
|
})();
|
|
16770
17677
|
|
|
16771
|
-
v1.
|
|
17678
|
+
v1.CopyBackupEncryptionConfig = (function() {
|
|
16772
17679
|
|
|
16773
17680
|
/**
|
|
16774
|
-
* Properties of a
|
|
17681
|
+
* Properties of a CopyBackupEncryptionConfig.
|
|
16775
17682
|
* @memberof google.spanner.admin.database.v1
|
|
16776
|
-
* @interface
|
|
16777
|
-
* @property {google.spanner.admin.database.v1.
|
|
16778
|
-
* @property {string|null} [kmsKeyName]
|
|
17683
|
+
* @interface ICopyBackupEncryptionConfig
|
|
17684
|
+
* @property {google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType|null} [encryptionType] CopyBackupEncryptionConfig encryptionType
|
|
17685
|
+
* @property {string|null} [kmsKeyName] CopyBackupEncryptionConfig kmsKeyName
|
|
16779
17686
|
*/
|
|
16780
17687
|
|
|
16781
17688
|
/**
|
|
16782
|
-
* Constructs a new
|
|
17689
|
+
* Constructs a new CopyBackupEncryptionConfig.
|
|
16783
17690
|
* @memberof google.spanner.admin.database.v1
|
|
16784
|
-
* @classdesc Represents a
|
|
16785
|
-
* @implements
|
|
17691
|
+
* @classdesc Represents a CopyBackupEncryptionConfig.
|
|
17692
|
+
* @implements ICopyBackupEncryptionConfig
|
|
16786
17693
|
* @constructor
|
|
16787
|
-
* @param {google.spanner.admin.database.v1.
|
|
17694
|
+
* @param {google.spanner.admin.database.v1.ICopyBackupEncryptionConfig=} [properties] Properties to set
|
|
16788
17695
|
*/
|
|
16789
|
-
function
|
|
17696
|
+
function CopyBackupEncryptionConfig(properties) {
|
|
16790
17697
|
if (properties)
|
|
16791
17698
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
16792
17699
|
if (properties[keys[i]] != null)
|
|
@@ -16794,43 +17701,43 @@
|
|
|
16794
17701
|
}
|
|
16795
17702
|
|
|
16796
17703
|
/**
|
|
16797
|
-
*
|
|
16798
|
-
* @member {google.spanner.admin.database.v1.
|
|
16799
|
-
* @memberof google.spanner.admin.database.v1.
|
|
17704
|
+
* CopyBackupEncryptionConfig encryptionType.
|
|
17705
|
+
* @member {google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType} encryptionType
|
|
17706
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupEncryptionConfig
|
|
16800
17707
|
* @instance
|
|
16801
17708
|
*/
|
|
16802
|
-
|
|
17709
|
+
CopyBackupEncryptionConfig.prototype.encryptionType = 0;
|
|
16803
17710
|
|
|
16804
17711
|
/**
|
|
16805
|
-
*
|
|
17712
|
+
* CopyBackupEncryptionConfig kmsKeyName.
|
|
16806
17713
|
* @member {string} kmsKeyName
|
|
16807
|
-
* @memberof google.spanner.admin.database.v1.
|
|
17714
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupEncryptionConfig
|
|
16808
17715
|
* @instance
|
|
16809
17716
|
*/
|
|
16810
|
-
|
|
17717
|
+
CopyBackupEncryptionConfig.prototype.kmsKeyName = "";
|
|
16811
17718
|
|
|
16812
17719
|
/**
|
|
16813
|
-
* Creates a new
|
|
17720
|
+
* Creates a new CopyBackupEncryptionConfig instance using the specified properties.
|
|
16814
17721
|
* @function create
|
|
16815
|
-
* @memberof google.spanner.admin.database.v1.
|
|
17722
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupEncryptionConfig
|
|
16816
17723
|
* @static
|
|
16817
|
-
* @param {google.spanner.admin.database.v1.
|
|
16818
|
-
* @returns {google.spanner.admin.database.v1.
|
|
17724
|
+
* @param {google.spanner.admin.database.v1.ICopyBackupEncryptionConfig=} [properties] Properties to set
|
|
17725
|
+
* @returns {google.spanner.admin.database.v1.CopyBackupEncryptionConfig} CopyBackupEncryptionConfig instance
|
|
16819
17726
|
*/
|
|
16820
|
-
|
|
16821
|
-
return new
|
|
17727
|
+
CopyBackupEncryptionConfig.create = function create(properties) {
|
|
17728
|
+
return new CopyBackupEncryptionConfig(properties);
|
|
16822
17729
|
};
|
|
16823
17730
|
|
|
16824
17731
|
/**
|
|
16825
|
-
* Encodes the specified
|
|
17732
|
+
* Encodes the specified CopyBackupEncryptionConfig message. Does not implicitly {@link google.spanner.admin.database.v1.CopyBackupEncryptionConfig.verify|verify} messages.
|
|
16826
17733
|
* @function encode
|
|
16827
|
-
* @memberof google.spanner.admin.database.v1.
|
|
17734
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupEncryptionConfig
|
|
16828
17735
|
* @static
|
|
16829
|
-
* @param {google.spanner.admin.database.v1.
|
|
17736
|
+
* @param {google.spanner.admin.database.v1.ICopyBackupEncryptionConfig} message CopyBackupEncryptionConfig message or plain object to encode
|
|
16830
17737
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16831
17738
|
* @returns {$protobuf.Writer} Writer
|
|
16832
17739
|
*/
|
|
16833
|
-
|
|
17740
|
+
CopyBackupEncryptionConfig.encode = function encode(message, writer) {
|
|
16834
17741
|
if (!writer)
|
|
16835
17742
|
writer = $Writer.create();
|
|
16836
17743
|
if (message.encryptionType != null && Object.hasOwnProperty.call(message, "encryptionType"))
|
|
@@ -16841,33 +17748,33 @@
|
|
|
16841
17748
|
};
|
|
16842
17749
|
|
|
16843
17750
|
/**
|
|
16844
|
-
* Encodes the specified
|
|
17751
|
+
* Encodes the specified CopyBackupEncryptionConfig message, length delimited. Does not implicitly {@link google.spanner.admin.database.v1.CopyBackupEncryptionConfig.verify|verify} messages.
|
|
16845
17752
|
* @function encodeDelimited
|
|
16846
|
-
* @memberof google.spanner.admin.database.v1.
|
|
17753
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupEncryptionConfig
|
|
16847
17754
|
* @static
|
|
16848
|
-
* @param {google.spanner.admin.database.v1.
|
|
17755
|
+
* @param {google.spanner.admin.database.v1.ICopyBackupEncryptionConfig} message CopyBackupEncryptionConfig message or plain object to encode
|
|
16849
17756
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16850
17757
|
* @returns {$protobuf.Writer} Writer
|
|
16851
17758
|
*/
|
|
16852
|
-
|
|
17759
|
+
CopyBackupEncryptionConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
16853
17760
|
return this.encode(message, writer).ldelim();
|
|
16854
17761
|
};
|
|
16855
17762
|
|
|
16856
17763
|
/**
|
|
16857
|
-
* Decodes a
|
|
17764
|
+
* Decodes a CopyBackupEncryptionConfig message from the specified reader or buffer.
|
|
16858
17765
|
* @function decode
|
|
16859
|
-
* @memberof google.spanner.admin.database.v1.
|
|
17766
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupEncryptionConfig
|
|
16860
17767
|
* @static
|
|
16861
17768
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16862
17769
|
* @param {number} [length] Message length if known beforehand
|
|
16863
|
-
* @returns {google.spanner.admin.database.v1.
|
|
17770
|
+
* @returns {google.spanner.admin.database.v1.CopyBackupEncryptionConfig} CopyBackupEncryptionConfig
|
|
16864
17771
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16865
17772
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16866
17773
|
*/
|
|
16867
|
-
|
|
17774
|
+
CopyBackupEncryptionConfig.decode = function decode(reader, length) {
|
|
16868
17775
|
if (!(reader instanceof $Reader))
|
|
16869
17776
|
reader = $Reader.create(reader);
|
|
16870
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.spanner.admin.database.v1.
|
|
17777
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.spanner.admin.database.v1.CopyBackupEncryptionConfig();
|
|
16871
17778
|
while (reader.pos < end) {
|
|
16872
17779
|
var tag = reader.uint32();
|
|
16873
17780
|
switch (tag >>> 3) {
|
|
@@ -16886,30 +17793,30 @@
|
|
|
16886
17793
|
};
|
|
16887
17794
|
|
|
16888
17795
|
/**
|
|
16889
|
-
* Decodes a
|
|
17796
|
+
* Decodes a CopyBackupEncryptionConfig message from the specified reader or buffer, length delimited.
|
|
16890
17797
|
* @function decodeDelimited
|
|
16891
|
-
* @memberof google.spanner.admin.database.v1.
|
|
17798
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupEncryptionConfig
|
|
16892
17799
|
* @static
|
|
16893
17800
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16894
|
-
* @returns {google.spanner.admin.database.v1.
|
|
17801
|
+
* @returns {google.spanner.admin.database.v1.CopyBackupEncryptionConfig} CopyBackupEncryptionConfig
|
|
16895
17802
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16896
17803
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16897
17804
|
*/
|
|
16898
|
-
|
|
17805
|
+
CopyBackupEncryptionConfig.decodeDelimited = function decodeDelimited(reader) {
|
|
16899
17806
|
if (!(reader instanceof $Reader))
|
|
16900
17807
|
reader = new $Reader(reader);
|
|
16901
17808
|
return this.decode(reader, reader.uint32());
|
|
16902
17809
|
};
|
|
16903
17810
|
|
|
16904
17811
|
/**
|
|
16905
|
-
* Verifies a
|
|
17812
|
+
* Verifies a CopyBackupEncryptionConfig message.
|
|
16906
17813
|
* @function verify
|
|
16907
|
-
* @memberof google.spanner.admin.database.v1.
|
|
17814
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupEncryptionConfig
|
|
16908
17815
|
* @static
|
|
16909
17816
|
* @param {Object.<string,*>} message Plain object to verify
|
|
16910
17817
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
16911
17818
|
*/
|
|
16912
|
-
|
|
17819
|
+
CopyBackupEncryptionConfig.verify = function verify(message) {
|
|
16913
17820
|
if (typeof message !== "object" || message === null)
|
|
16914
17821
|
return "object expected";
|
|
16915
17822
|
if (message.encryptionType != null && message.hasOwnProperty("encryptionType"))
|
|
@@ -16929,23 +17836,23 @@
|
|
|
16929
17836
|
};
|
|
16930
17837
|
|
|
16931
17838
|
/**
|
|
16932
|
-
* Creates a
|
|
17839
|
+
* Creates a CopyBackupEncryptionConfig message from a plain object. Also converts values to their respective internal types.
|
|
16933
17840
|
* @function fromObject
|
|
16934
|
-
* @memberof google.spanner.admin.database.v1.
|
|
17841
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupEncryptionConfig
|
|
16935
17842
|
* @static
|
|
16936
17843
|
* @param {Object.<string,*>} object Plain object
|
|
16937
|
-
* @returns {google.spanner.admin.database.v1.
|
|
17844
|
+
* @returns {google.spanner.admin.database.v1.CopyBackupEncryptionConfig} CopyBackupEncryptionConfig
|
|
16938
17845
|
*/
|
|
16939
|
-
|
|
16940
|
-
if (object instanceof $root.google.spanner.admin.database.v1.
|
|
17846
|
+
CopyBackupEncryptionConfig.fromObject = function fromObject(object) {
|
|
17847
|
+
if (object instanceof $root.google.spanner.admin.database.v1.CopyBackupEncryptionConfig)
|
|
16941
17848
|
return object;
|
|
16942
|
-
var message = new $root.google.spanner.admin.database.v1.
|
|
17849
|
+
var message = new $root.google.spanner.admin.database.v1.CopyBackupEncryptionConfig();
|
|
16943
17850
|
switch (object.encryptionType) {
|
|
16944
17851
|
case "ENCRYPTION_TYPE_UNSPECIFIED":
|
|
16945
17852
|
case 0:
|
|
16946
17853
|
message.encryptionType = 0;
|
|
16947
17854
|
break;
|
|
16948
|
-
case "
|
|
17855
|
+
case "USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION":
|
|
16949
17856
|
case 1:
|
|
16950
17857
|
message.encryptionType = 1;
|
|
16951
17858
|
break;
|
|
@@ -16964,15 +17871,15 @@
|
|
|
16964
17871
|
};
|
|
16965
17872
|
|
|
16966
17873
|
/**
|
|
16967
|
-
* Creates a plain object from a
|
|
17874
|
+
* Creates a plain object from a CopyBackupEncryptionConfig message. Also converts values to other types if specified.
|
|
16968
17875
|
* @function toObject
|
|
16969
|
-
* @memberof google.spanner.admin.database.v1.
|
|
17876
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupEncryptionConfig
|
|
16970
17877
|
* @static
|
|
16971
|
-
* @param {google.spanner.admin.database.v1.
|
|
17878
|
+
* @param {google.spanner.admin.database.v1.CopyBackupEncryptionConfig} message CopyBackupEncryptionConfig
|
|
16972
17879
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
16973
17880
|
* @returns {Object.<string,*>} Plain object
|
|
16974
17881
|
*/
|
|
16975
|
-
|
|
17882
|
+
CopyBackupEncryptionConfig.toObject = function toObject(message, options) {
|
|
16976
17883
|
if (!options)
|
|
16977
17884
|
options = {};
|
|
16978
17885
|
var object = {};
|
|
@@ -16981,42 +17888,42 @@
|
|
|
16981
17888
|
object.kmsKeyName = "";
|
|
16982
17889
|
}
|
|
16983
17890
|
if (message.encryptionType != null && message.hasOwnProperty("encryptionType"))
|
|
16984
|
-
object.encryptionType = options.enums === String ? $root.google.spanner.admin.database.v1.
|
|
17891
|
+
object.encryptionType = options.enums === String ? $root.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType[message.encryptionType] : message.encryptionType;
|
|
16985
17892
|
if (message.kmsKeyName != null && message.hasOwnProperty("kmsKeyName"))
|
|
16986
17893
|
object.kmsKeyName = message.kmsKeyName;
|
|
16987
17894
|
return object;
|
|
16988
17895
|
};
|
|
16989
17896
|
|
|
16990
17897
|
/**
|
|
16991
|
-
* Converts this
|
|
17898
|
+
* Converts this CopyBackupEncryptionConfig to JSON.
|
|
16992
17899
|
* @function toJSON
|
|
16993
|
-
* @memberof google.spanner.admin.database.v1.
|
|
17900
|
+
* @memberof google.spanner.admin.database.v1.CopyBackupEncryptionConfig
|
|
16994
17901
|
* @instance
|
|
16995
17902
|
* @returns {Object.<string,*>} JSON object
|
|
16996
17903
|
*/
|
|
16997
|
-
|
|
17904
|
+
CopyBackupEncryptionConfig.prototype.toJSON = function toJSON() {
|
|
16998
17905
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
16999
17906
|
};
|
|
17000
17907
|
|
|
17001
17908
|
/**
|
|
17002
17909
|
* EncryptionType enum.
|
|
17003
|
-
* @name google.spanner.admin.database.v1.
|
|
17910
|
+
* @name google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType
|
|
17004
17911
|
* @enum {number}
|
|
17005
17912
|
* @property {number} ENCRYPTION_TYPE_UNSPECIFIED=0 ENCRYPTION_TYPE_UNSPECIFIED value
|
|
17006
|
-
* @property {number}
|
|
17913
|
+
* @property {number} USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION=1 USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION value
|
|
17007
17914
|
* @property {number} GOOGLE_DEFAULT_ENCRYPTION=2 GOOGLE_DEFAULT_ENCRYPTION value
|
|
17008
17915
|
* @property {number} CUSTOMER_MANAGED_ENCRYPTION=3 CUSTOMER_MANAGED_ENCRYPTION value
|
|
17009
17916
|
*/
|
|
17010
|
-
|
|
17917
|
+
CopyBackupEncryptionConfig.EncryptionType = (function() {
|
|
17011
17918
|
var valuesById = {}, values = Object.create(valuesById);
|
|
17012
17919
|
values[valuesById[0] = "ENCRYPTION_TYPE_UNSPECIFIED"] = 0;
|
|
17013
|
-
values[valuesById[1] = "
|
|
17920
|
+
values[valuesById[1] = "USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION"] = 1;
|
|
17014
17921
|
values[valuesById[2] = "GOOGLE_DEFAULT_ENCRYPTION"] = 2;
|
|
17015
17922
|
values[valuesById[3] = "CUSTOMER_MANAGED_ENCRYPTION"] = 3;
|
|
17016
17923
|
return values;
|
|
17017
17924
|
})();
|
|
17018
17925
|
|
|
17019
|
-
return
|
|
17926
|
+
return CopyBackupEncryptionConfig;
|
|
17020
17927
|
})();
|
|
17021
17928
|
|
|
17022
17929
|
v1.OperationProgress = (function() {
|
|
@@ -17719,6 +18626,22 @@
|
|
|
17719
18626
|
return EncryptionInfo;
|
|
17720
18627
|
})();
|
|
17721
18628
|
|
|
18629
|
+
/**
|
|
18630
|
+
* DatabaseDialect enum.
|
|
18631
|
+
* @name google.spanner.admin.database.v1.DatabaseDialect
|
|
18632
|
+
* @enum {number}
|
|
18633
|
+
* @property {number} DATABASE_DIALECT_UNSPECIFIED=0 DATABASE_DIALECT_UNSPECIFIED value
|
|
18634
|
+
* @property {number} GOOGLE_STANDARD_SQL=1 GOOGLE_STANDARD_SQL value
|
|
18635
|
+
* @property {number} POSTGRESQL=2 POSTGRESQL value
|
|
18636
|
+
*/
|
|
18637
|
+
v1.DatabaseDialect = (function() {
|
|
18638
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
18639
|
+
values[valuesById[0] = "DATABASE_DIALECT_UNSPECIFIED"] = 0;
|
|
18640
|
+
values[valuesById[1] = "GOOGLE_STANDARD_SQL"] = 1;
|
|
18641
|
+
values[valuesById[2] = "POSTGRESQL"] = 2;
|
|
18642
|
+
return values;
|
|
18643
|
+
})();
|
|
18644
|
+
|
|
17722
18645
|
v1.DatabaseAdmin = (function() {
|
|
17723
18646
|
|
|
17724
18647
|
/**
|
|
@@ -17752,7 +18675,7 @@
|
|
|
17752
18675
|
};
|
|
17753
18676
|
|
|
17754
18677
|
/**
|
|
17755
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
18678
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|listDatabases}.
|
|
17756
18679
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
17757
18680
|
* @typedef ListDatabasesCallback
|
|
17758
18681
|
* @type {function}
|
|
@@ -17785,7 +18708,7 @@
|
|
|
17785
18708
|
*/
|
|
17786
18709
|
|
|
17787
18710
|
/**
|
|
17788
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
18711
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|createDatabase}.
|
|
17789
18712
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
17790
18713
|
* @typedef CreateDatabaseCallback
|
|
17791
18714
|
* @type {function}
|
|
@@ -17818,7 +18741,7 @@
|
|
|
17818
18741
|
*/
|
|
17819
18742
|
|
|
17820
18743
|
/**
|
|
17821
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
18744
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|getDatabase}.
|
|
17822
18745
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
17823
18746
|
* @typedef GetDatabaseCallback
|
|
17824
18747
|
* @type {function}
|
|
@@ -17851,7 +18774,7 @@
|
|
|
17851
18774
|
*/
|
|
17852
18775
|
|
|
17853
18776
|
/**
|
|
17854
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
18777
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|updateDatabaseDdl}.
|
|
17855
18778
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
17856
18779
|
* @typedef UpdateDatabaseDdlCallback
|
|
17857
18780
|
* @type {function}
|
|
@@ -17884,7 +18807,7 @@
|
|
|
17884
18807
|
*/
|
|
17885
18808
|
|
|
17886
18809
|
/**
|
|
17887
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
18810
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|dropDatabase}.
|
|
17888
18811
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
17889
18812
|
* @typedef DropDatabaseCallback
|
|
17890
18813
|
* @type {function}
|
|
@@ -17917,7 +18840,7 @@
|
|
|
17917
18840
|
*/
|
|
17918
18841
|
|
|
17919
18842
|
/**
|
|
17920
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
18843
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|getDatabaseDdl}.
|
|
17921
18844
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
17922
18845
|
* @typedef GetDatabaseDdlCallback
|
|
17923
18846
|
* @type {function}
|
|
@@ -17950,7 +18873,7 @@
|
|
|
17950
18873
|
*/
|
|
17951
18874
|
|
|
17952
18875
|
/**
|
|
17953
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
18876
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|setIamPolicy}.
|
|
17954
18877
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
17955
18878
|
* @typedef SetIamPolicyCallback
|
|
17956
18879
|
* @type {function}
|
|
@@ -17983,7 +18906,7 @@
|
|
|
17983
18906
|
*/
|
|
17984
18907
|
|
|
17985
18908
|
/**
|
|
17986
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
18909
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|getIamPolicy}.
|
|
17987
18910
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
17988
18911
|
* @typedef GetIamPolicyCallback
|
|
17989
18912
|
* @type {function}
|
|
@@ -18016,7 +18939,7 @@
|
|
|
18016
18939
|
*/
|
|
18017
18940
|
|
|
18018
18941
|
/**
|
|
18019
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
18942
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|testIamPermissions}.
|
|
18020
18943
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
18021
18944
|
* @typedef TestIamPermissionsCallback
|
|
18022
18945
|
* @type {function}
|
|
@@ -18049,7 +18972,7 @@
|
|
|
18049
18972
|
*/
|
|
18050
18973
|
|
|
18051
18974
|
/**
|
|
18052
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
18975
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|createBackup}.
|
|
18053
18976
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
18054
18977
|
* @typedef CreateBackupCallback
|
|
18055
18978
|
* @type {function}
|
|
@@ -18082,7 +19005,40 @@
|
|
|
18082
19005
|
*/
|
|
18083
19006
|
|
|
18084
19007
|
/**
|
|
18085
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
19008
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|copyBackup}.
|
|
19009
|
+
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
19010
|
+
* @typedef CopyBackupCallback
|
|
19011
|
+
* @type {function}
|
|
19012
|
+
* @param {Error|null} error Error, if any
|
|
19013
|
+
* @param {google.longrunning.Operation} [response] Operation
|
|
19014
|
+
*/
|
|
19015
|
+
|
|
19016
|
+
/**
|
|
19017
|
+
* Calls CopyBackup.
|
|
19018
|
+
* @function copyBackup
|
|
19019
|
+
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
19020
|
+
* @instance
|
|
19021
|
+
* @param {google.spanner.admin.database.v1.ICopyBackupRequest} request CopyBackupRequest message or plain object
|
|
19022
|
+
* @param {google.spanner.admin.database.v1.DatabaseAdmin.CopyBackupCallback} callback Node-style callback called with the error, if any, and Operation
|
|
19023
|
+
* @returns {undefined}
|
|
19024
|
+
* @variation 1
|
|
19025
|
+
*/
|
|
19026
|
+
Object.defineProperty(DatabaseAdmin.prototype.copyBackup = function copyBackup(request, callback) {
|
|
19027
|
+
return this.rpcCall(copyBackup, $root.google.spanner.admin.database.v1.CopyBackupRequest, $root.google.longrunning.Operation, request, callback);
|
|
19028
|
+
}, "name", { value: "CopyBackup" });
|
|
19029
|
+
|
|
19030
|
+
/**
|
|
19031
|
+
* Calls CopyBackup.
|
|
19032
|
+
* @function copyBackup
|
|
19033
|
+
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
19034
|
+
* @instance
|
|
19035
|
+
* @param {google.spanner.admin.database.v1.ICopyBackupRequest} request CopyBackupRequest message or plain object
|
|
19036
|
+
* @returns {Promise<google.longrunning.Operation>} Promise
|
|
19037
|
+
* @variation 2
|
|
19038
|
+
*/
|
|
19039
|
+
|
|
19040
|
+
/**
|
|
19041
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|getBackup}.
|
|
18086
19042
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
18087
19043
|
* @typedef GetBackupCallback
|
|
18088
19044
|
* @type {function}
|
|
@@ -18115,7 +19071,7 @@
|
|
|
18115
19071
|
*/
|
|
18116
19072
|
|
|
18117
19073
|
/**
|
|
18118
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
19074
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|updateBackup}.
|
|
18119
19075
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
18120
19076
|
* @typedef UpdateBackupCallback
|
|
18121
19077
|
* @type {function}
|
|
@@ -18148,7 +19104,7 @@
|
|
|
18148
19104
|
*/
|
|
18149
19105
|
|
|
18150
19106
|
/**
|
|
18151
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
19107
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|deleteBackup}.
|
|
18152
19108
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
18153
19109
|
* @typedef DeleteBackupCallback
|
|
18154
19110
|
* @type {function}
|
|
@@ -18181,7 +19137,7 @@
|
|
|
18181
19137
|
*/
|
|
18182
19138
|
|
|
18183
19139
|
/**
|
|
18184
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
19140
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|listBackups}.
|
|
18185
19141
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
18186
19142
|
* @typedef ListBackupsCallback
|
|
18187
19143
|
* @type {function}
|
|
@@ -18214,7 +19170,7 @@
|
|
|
18214
19170
|
*/
|
|
18215
19171
|
|
|
18216
19172
|
/**
|
|
18217
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
19173
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|restoreDatabase}.
|
|
18218
19174
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
18219
19175
|
* @typedef RestoreDatabaseCallback
|
|
18220
19176
|
* @type {function}
|
|
@@ -18247,7 +19203,7 @@
|
|
|
18247
19203
|
*/
|
|
18248
19204
|
|
|
18249
19205
|
/**
|
|
18250
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
19206
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|listDatabaseOperations}.
|
|
18251
19207
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
18252
19208
|
* @typedef ListDatabaseOperationsCallback
|
|
18253
19209
|
* @type {function}
|
|
@@ -18280,7 +19236,7 @@
|
|
|
18280
19236
|
*/
|
|
18281
19237
|
|
|
18282
19238
|
/**
|
|
18283
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
19239
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|listBackupOperations}.
|
|
18284
19240
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
18285
19241
|
* @typedef ListBackupOperationsCallback
|
|
18286
19242
|
* @type {function}
|
|
@@ -18577,6 +19533,7 @@
|
|
|
18577
19533
|
* @property {string|null} [versionRetentionPeriod] Database versionRetentionPeriod
|
|
18578
19534
|
* @property {google.protobuf.ITimestamp|null} [earliestVersionTime] Database earliestVersionTime
|
|
18579
19535
|
* @property {string|null} [defaultLeader] Database defaultLeader
|
|
19536
|
+
* @property {google.spanner.admin.database.v1.DatabaseDialect|null} [databaseDialect] Database databaseDialect
|
|
18580
19537
|
*/
|
|
18581
19538
|
|
|
18582
19539
|
/**
|
|
@@ -18667,6 +19624,14 @@
|
|
|
18667
19624
|
*/
|
|
18668
19625
|
Database.prototype.defaultLeader = "";
|
|
18669
19626
|
|
|
19627
|
+
/**
|
|
19628
|
+
* Database databaseDialect.
|
|
19629
|
+
* @member {google.spanner.admin.database.v1.DatabaseDialect} databaseDialect
|
|
19630
|
+
* @memberof google.spanner.admin.database.v1.Database
|
|
19631
|
+
* @instance
|
|
19632
|
+
*/
|
|
19633
|
+
Database.prototype.databaseDialect = 0;
|
|
19634
|
+
|
|
18670
19635
|
/**
|
|
18671
19636
|
* Creates a new Database instance using the specified properties.
|
|
18672
19637
|
* @function create
|
|
@@ -18710,6 +19675,8 @@
|
|
|
18710
19675
|
$root.google.spanner.admin.database.v1.EncryptionInfo.encode(message.encryptionInfo[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
18711
19676
|
if (message.defaultLeader != null && Object.hasOwnProperty.call(message, "defaultLeader"))
|
|
18712
19677
|
writer.uint32(/* id 9, wireType 2 =*/74).string(message.defaultLeader);
|
|
19678
|
+
if (message.databaseDialect != null && Object.hasOwnProperty.call(message, "databaseDialect"))
|
|
19679
|
+
writer.uint32(/* id 10, wireType 0 =*/80).int32(message.databaseDialect);
|
|
18713
19680
|
return writer;
|
|
18714
19681
|
};
|
|
18715
19682
|
|
|
@@ -18773,6 +19740,9 @@
|
|
|
18773
19740
|
case 9:
|
|
18774
19741
|
message.defaultLeader = reader.string();
|
|
18775
19742
|
break;
|
|
19743
|
+
case 10:
|
|
19744
|
+
message.databaseDialect = reader.int32();
|
|
19745
|
+
break;
|
|
18776
19746
|
default:
|
|
18777
19747
|
reader.skipType(tag & 7);
|
|
18778
19748
|
break;
|
|
@@ -18856,6 +19826,15 @@
|
|
|
18856
19826
|
if (message.defaultLeader != null && message.hasOwnProperty("defaultLeader"))
|
|
18857
19827
|
if (!$util.isString(message.defaultLeader))
|
|
18858
19828
|
return "defaultLeader: string expected";
|
|
19829
|
+
if (message.databaseDialect != null && message.hasOwnProperty("databaseDialect"))
|
|
19830
|
+
switch (message.databaseDialect) {
|
|
19831
|
+
default:
|
|
19832
|
+
return "databaseDialect: enum value expected";
|
|
19833
|
+
case 0:
|
|
19834
|
+
case 1:
|
|
19835
|
+
case 2:
|
|
19836
|
+
break;
|
|
19837
|
+
}
|
|
18859
19838
|
return null;
|
|
18860
19839
|
};
|
|
18861
19840
|
|
|
@@ -18925,6 +19904,20 @@
|
|
|
18925
19904
|
}
|
|
18926
19905
|
if (object.defaultLeader != null)
|
|
18927
19906
|
message.defaultLeader = String(object.defaultLeader);
|
|
19907
|
+
switch (object.databaseDialect) {
|
|
19908
|
+
case "DATABASE_DIALECT_UNSPECIFIED":
|
|
19909
|
+
case 0:
|
|
19910
|
+
message.databaseDialect = 0;
|
|
19911
|
+
break;
|
|
19912
|
+
case "GOOGLE_STANDARD_SQL":
|
|
19913
|
+
case 1:
|
|
19914
|
+
message.databaseDialect = 1;
|
|
19915
|
+
break;
|
|
19916
|
+
case "POSTGRESQL":
|
|
19917
|
+
case 2:
|
|
19918
|
+
message.databaseDialect = 2;
|
|
19919
|
+
break;
|
|
19920
|
+
}
|
|
18928
19921
|
return message;
|
|
18929
19922
|
};
|
|
18930
19923
|
|
|
@@ -18952,6 +19945,7 @@
|
|
|
18952
19945
|
object.versionRetentionPeriod = "";
|
|
18953
19946
|
object.earliestVersionTime = null;
|
|
18954
19947
|
object.defaultLeader = "";
|
|
19948
|
+
object.databaseDialect = options.enums === String ? "DATABASE_DIALECT_UNSPECIFIED" : 0;
|
|
18955
19949
|
}
|
|
18956
19950
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
18957
19951
|
object.name = message.name;
|
|
@@ -18974,6 +19968,8 @@
|
|
|
18974
19968
|
}
|
|
18975
19969
|
if (message.defaultLeader != null && message.hasOwnProperty("defaultLeader"))
|
|
18976
19970
|
object.defaultLeader = message.defaultLeader;
|
|
19971
|
+
if (message.databaseDialect != null && message.hasOwnProperty("databaseDialect"))
|
|
19972
|
+
object.databaseDialect = options.enums === String ? $root.google.spanner.admin.database.v1.DatabaseDialect[message.databaseDialect] : message.databaseDialect;
|
|
18977
19973
|
return object;
|
|
18978
19974
|
};
|
|
18979
19975
|
|
|
@@ -19482,6 +20478,7 @@
|
|
|
19482
20478
|
* @property {string|null} [createStatement] CreateDatabaseRequest createStatement
|
|
19483
20479
|
* @property {Array.<string>|null} [extraStatements] CreateDatabaseRequest extraStatements
|
|
19484
20480
|
* @property {google.spanner.admin.database.v1.IEncryptionConfig|null} [encryptionConfig] CreateDatabaseRequest encryptionConfig
|
|
20481
|
+
* @property {google.spanner.admin.database.v1.DatabaseDialect|null} [databaseDialect] CreateDatabaseRequest databaseDialect
|
|
19485
20482
|
*/
|
|
19486
20483
|
|
|
19487
20484
|
/**
|
|
@@ -19532,6 +20529,14 @@
|
|
|
19532
20529
|
*/
|
|
19533
20530
|
CreateDatabaseRequest.prototype.encryptionConfig = null;
|
|
19534
20531
|
|
|
20532
|
+
/**
|
|
20533
|
+
* CreateDatabaseRequest databaseDialect.
|
|
20534
|
+
* @member {google.spanner.admin.database.v1.DatabaseDialect} databaseDialect
|
|
20535
|
+
* @memberof google.spanner.admin.database.v1.CreateDatabaseRequest
|
|
20536
|
+
* @instance
|
|
20537
|
+
*/
|
|
20538
|
+
CreateDatabaseRequest.prototype.databaseDialect = 0;
|
|
20539
|
+
|
|
19535
20540
|
/**
|
|
19536
20541
|
* Creates a new CreateDatabaseRequest instance using the specified properties.
|
|
19537
20542
|
* @function create
|
|
@@ -19565,6 +20570,8 @@
|
|
|
19565
20570
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.extraStatements[i]);
|
|
19566
20571
|
if (message.encryptionConfig != null && Object.hasOwnProperty.call(message, "encryptionConfig"))
|
|
19567
20572
|
$root.google.spanner.admin.database.v1.EncryptionConfig.encode(message.encryptionConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
20573
|
+
if (message.databaseDialect != null && Object.hasOwnProperty.call(message, "databaseDialect"))
|
|
20574
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.databaseDialect);
|
|
19568
20575
|
return writer;
|
|
19569
20576
|
};
|
|
19570
20577
|
|
|
@@ -19613,6 +20620,9 @@
|
|
|
19613
20620
|
case 4:
|
|
19614
20621
|
message.encryptionConfig = $root.google.spanner.admin.database.v1.EncryptionConfig.decode(reader, reader.uint32());
|
|
19615
20622
|
break;
|
|
20623
|
+
case 5:
|
|
20624
|
+
message.databaseDialect = reader.int32();
|
|
20625
|
+
break;
|
|
19616
20626
|
default:
|
|
19617
20627
|
reader.skipType(tag & 7);
|
|
19618
20628
|
break;
|
|
@@ -19666,6 +20676,15 @@
|
|
|
19666
20676
|
if (error)
|
|
19667
20677
|
return "encryptionConfig." + error;
|
|
19668
20678
|
}
|
|
20679
|
+
if (message.databaseDialect != null && message.hasOwnProperty("databaseDialect"))
|
|
20680
|
+
switch (message.databaseDialect) {
|
|
20681
|
+
default:
|
|
20682
|
+
return "databaseDialect: enum value expected";
|
|
20683
|
+
case 0:
|
|
20684
|
+
case 1:
|
|
20685
|
+
case 2:
|
|
20686
|
+
break;
|
|
20687
|
+
}
|
|
19669
20688
|
return null;
|
|
19670
20689
|
};
|
|
19671
20690
|
|
|
@@ -19697,6 +20716,20 @@
|
|
|
19697
20716
|
throw TypeError(".google.spanner.admin.database.v1.CreateDatabaseRequest.encryptionConfig: object expected");
|
|
19698
20717
|
message.encryptionConfig = $root.google.spanner.admin.database.v1.EncryptionConfig.fromObject(object.encryptionConfig);
|
|
19699
20718
|
}
|
|
20719
|
+
switch (object.databaseDialect) {
|
|
20720
|
+
case "DATABASE_DIALECT_UNSPECIFIED":
|
|
20721
|
+
case 0:
|
|
20722
|
+
message.databaseDialect = 0;
|
|
20723
|
+
break;
|
|
20724
|
+
case "GOOGLE_STANDARD_SQL":
|
|
20725
|
+
case 1:
|
|
20726
|
+
message.databaseDialect = 1;
|
|
20727
|
+
break;
|
|
20728
|
+
case "POSTGRESQL":
|
|
20729
|
+
case 2:
|
|
20730
|
+
message.databaseDialect = 2;
|
|
20731
|
+
break;
|
|
20732
|
+
}
|
|
19700
20733
|
return message;
|
|
19701
20734
|
};
|
|
19702
20735
|
|
|
@@ -19719,6 +20752,7 @@
|
|
|
19719
20752
|
object.parent = "";
|
|
19720
20753
|
object.createStatement = "";
|
|
19721
20754
|
object.encryptionConfig = null;
|
|
20755
|
+
object.databaseDialect = options.enums === String ? "DATABASE_DIALECT_UNSPECIFIED" : 0;
|
|
19722
20756
|
}
|
|
19723
20757
|
if (message.parent != null && message.hasOwnProperty("parent"))
|
|
19724
20758
|
object.parent = message.parent;
|
|
@@ -19731,6 +20765,8 @@
|
|
|
19731
20765
|
}
|
|
19732
20766
|
if (message.encryptionConfig != null && message.hasOwnProperty("encryptionConfig"))
|
|
19733
20767
|
object.encryptionConfig = $root.google.spanner.admin.database.v1.EncryptionConfig.toObject(message.encryptionConfig, options);
|
|
20768
|
+
if (message.databaseDialect != null && message.hasOwnProperty("databaseDialect"))
|
|
20769
|
+
object.databaseDialect = options.enums === String ? $root.google.spanner.admin.database.v1.DatabaseDialect[message.databaseDialect] : message.databaseDialect;
|
|
19734
20770
|
return object;
|
|
19735
20771
|
};
|
|
19736
20772
|
|
|
@@ -22930,7 +23966,7 @@
|
|
|
22930
23966
|
};
|
|
22931
23967
|
|
|
22932
23968
|
/**
|
|
22933
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
23969
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|listInstanceConfigs}.
|
|
22934
23970
|
* @memberof google.spanner.admin.instance.v1.InstanceAdmin
|
|
22935
23971
|
* @typedef ListInstanceConfigsCallback
|
|
22936
23972
|
* @type {function}
|
|
@@ -22963,7 +23999,7 @@
|
|
|
22963
23999
|
*/
|
|
22964
24000
|
|
|
22965
24001
|
/**
|
|
22966
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
24002
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|getInstanceConfig}.
|
|
22967
24003
|
* @memberof google.spanner.admin.instance.v1.InstanceAdmin
|
|
22968
24004
|
* @typedef GetInstanceConfigCallback
|
|
22969
24005
|
* @type {function}
|
|
@@ -22996,7 +24032,7 @@
|
|
|
22996
24032
|
*/
|
|
22997
24033
|
|
|
22998
24034
|
/**
|
|
22999
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
24035
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|listInstances}.
|
|
23000
24036
|
* @memberof google.spanner.admin.instance.v1.InstanceAdmin
|
|
23001
24037
|
* @typedef ListInstancesCallback
|
|
23002
24038
|
* @type {function}
|
|
@@ -23029,7 +24065,7 @@
|
|
|
23029
24065
|
*/
|
|
23030
24066
|
|
|
23031
24067
|
/**
|
|
23032
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
24068
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|getInstance}.
|
|
23033
24069
|
* @memberof google.spanner.admin.instance.v1.InstanceAdmin
|
|
23034
24070
|
* @typedef GetInstanceCallback
|
|
23035
24071
|
* @type {function}
|
|
@@ -23062,7 +24098,7 @@
|
|
|
23062
24098
|
*/
|
|
23063
24099
|
|
|
23064
24100
|
/**
|
|
23065
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
24101
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|createInstance}.
|
|
23066
24102
|
* @memberof google.spanner.admin.instance.v1.InstanceAdmin
|
|
23067
24103
|
* @typedef CreateInstanceCallback
|
|
23068
24104
|
* @type {function}
|
|
@@ -23095,7 +24131,7 @@
|
|
|
23095
24131
|
*/
|
|
23096
24132
|
|
|
23097
24133
|
/**
|
|
23098
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
24134
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|updateInstance}.
|
|
23099
24135
|
* @memberof google.spanner.admin.instance.v1.InstanceAdmin
|
|
23100
24136
|
* @typedef UpdateInstanceCallback
|
|
23101
24137
|
* @type {function}
|
|
@@ -23128,7 +24164,7 @@
|
|
|
23128
24164
|
*/
|
|
23129
24165
|
|
|
23130
24166
|
/**
|
|
23131
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
24167
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|deleteInstance}.
|
|
23132
24168
|
* @memberof google.spanner.admin.instance.v1.InstanceAdmin
|
|
23133
24169
|
* @typedef DeleteInstanceCallback
|
|
23134
24170
|
* @type {function}
|
|
@@ -23161,7 +24197,7 @@
|
|
|
23161
24197
|
*/
|
|
23162
24198
|
|
|
23163
24199
|
/**
|
|
23164
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
24200
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|setIamPolicy}.
|
|
23165
24201
|
* @memberof google.spanner.admin.instance.v1.InstanceAdmin
|
|
23166
24202
|
* @typedef SetIamPolicyCallback
|
|
23167
24203
|
* @type {function}
|
|
@@ -23194,7 +24230,7 @@
|
|
|
23194
24230
|
*/
|
|
23195
24231
|
|
|
23196
24232
|
/**
|
|
23197
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
24233
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|getIamPolicy}.
|
|
23198
24234
|
* @memberof google.spanner.admin.instance.v1.InstanceAdmin
|
|
23199
24235
|
* @typedef GetIamPolicyCallback
|
|
23200
24236
|
* @type {function}
|
|
@@ -23227,7 +24263,7 @@
|
|
|
23227
24263
|
*/
|
|
23228
24264
|
|
|
23229
24265
|
/**
|
|
23230
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
24266
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|testIamPermissions}.
|
|
23231
24267
|
* @memberof google.spanner.admin.instance.v1.InstanceAdmin
|
|
23232
24268
|
* @typedef TestIamPermissionsCallback
|
|
23233
24269
|
* @type {function}
|
|
@@ -29039,6 +30075,22 @@
|
|
|
29039
30075
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
29040
30076
|
};
|
|
29041
30077
|
|
|
30078
|
+
/**
|
|
30079
|
+
* Kind enum.
|
|
30080
|
+
* @name google.spanner.v1.PlanNode.Kind
|
|
30081
|
+
* @enum {number}
|
|
30082
|
+
* @property {number} KIND_UNSPECIFIED=0 KIND_UNSPECIFIED value
|
|
30083
|
+
* @property {number} RELATIONAL=1 RELATIONAL value
|
|
30084
|
+
* @property {number} SCALAR=2 SCALAR value
|
|
30085
|
+
*/
|
|
30086
|
+
PlanNode.Kind = (function() {
|
|
30087
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
30088
|
+
values[valuesById[0] = "KIND_UNSPECIFIED"] = 0;
|
|
30089
|
+
values[valuesById[1] = "RELATIONAL"] = 1;
|
|
30090
|
+
values[valuesById[2] = "SCALAR"] = 2;
|
|
30091
|
+
return values;
|
|
30092
|
+
})();
|
|
30093
|
+
|
|
29042
30094
|
PlanNode.ChildLink = (function() {
|
|
29043
30095
|
|
|
29044
30096
|
/**
|
|
@@ -29516,22 +30568,6 @@
|
|
|
29516
30568
|
return ShortRepresentation;
|
|
29517
30569
|
})();
|
|
29518
30570
|
|
|
29519
|
-
/**
|
|
29520
|
-
* Kind enum.
|
|
29521
|
-
* @name google.spanner.v1.PlanNode.Kind
|
|
29522
|
-
* @enum {number}
|
|
29523
|
-
* @property {number} KIND_UNSPECIFIED=0 KIND_UNSPECIFIED value
|
|
29524
|
-
* @property {number} RELATIONAL=1 RELATIONAL value
|
|
29525
|
-
* @property {number} SCALAR=2 SCALAR value
|
|
29526
|
-
*/
|
|
29527
|
-
PlanNode.Kind = (function() {
|
|
29528
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
29529
|
-
values[valuesById[0] = "KIND_UNSPECIFIED"] = 0;
|
|
29530
|
-
values[valuesById[1] = "RELATIONAL"] = 1;
|
|
29531
|
-
values[valuesById[2] = "SCALAR"] = 2;
|
|
29532
|
-
return values;
|
|
29533
|
-
})();
|
|
29534
|
-
|
|
29535
30571
|
return PlanNode;
|
|
29536
30572
|
})();
|
|
29537
30573
|
|
|
@@ -32325,6 +33361,7 @@
|
|
|
32325
33361
|
* @property {google.spanner.v1.TypeCode|null} [code] Type code
|
|
32326
33362
|
* @property {google.spanner.v1.IType|null} [arrayElementType] Type arrayElementType
|
|
32327
33363
|
* @property {google.spanner.v1.IStructType|null} [structType] Type structType
|
|
33364
|
+
* @property {google.spanner.v1.TypeAnnotationCode|null} [typeAnnotation] Type typeAnnotation
|
|
32328
33365
|
*/
|
|
32329
33366
|
|
|
32330
33367
|
/**
|
|
@@ -32366,6 +33403,14 @@
|
|
|
32366
33403
|
*/
|
|
32367
33404
|
Type.prototype.structType = null;
|
|
32368
33405
|
|
|
33406
|
+
/**
|
|
33407
|
+
* Type typeAnnotation.
|
|
33408
|
+
* @member {google.spanner.v1.TypeAnnotationCode} typeAnnotation
|
|
33409
|
+
* @memberof google.spanner.v1.Type
|
|
33410
|
+
* @instance
|
|
33411
|
+
*/
|
|
33412
|
+
Type.prototype.typeAnnotation = 0;
|
|
33413
|
+
|
|
32369
33414
|
/**
|
|
32370
33415
|
* Creates a new Type instance using the specified properties.
|
|
32371
33416
|
* @function create
|
|
@@ -32396,6 +33441,8 @@
|
|
|
32396
33441
|
$root.google.spanner.v1.Type.encode(message.arrayElementType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
32397
33442
|
if (message.structType != null && Object.hasOwnProperty.call(message, "structType"))
|
|
32398
33443
|
$root.google.spanner.v1.StructType.encode(message.structType, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
33444
|
+
if (message.typeAnnotation != null && Object.hasOwnProperty.call(message, "typeAnnotation"))
|
|
33445
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.typeAnnotation);
|
|
32399
33446
|
return writer;
|
|
32400
33447
|
};
|
|
32401
33448
|
|
|
@@ -32439,6 +33486,9 @@
|
|
|
32439
33486
|
case 3:
|
|
32440
33487
|
message.structType = $root.google.spanner.v1.StructType.decode(reader, reader.uint32());
|
|
32441
33488
|
break;
|
|
33489
|
+
case 4:
|
|
33490
|
+
message.typeAnnotation = reader.int32();
|
|
33491
|
+
break;
|
|
32442
33492
|
default:
|
|
32443
33493
|
reader.skipType(tag & 7);
|
|
32444
33494
|
break;
|
|
@@ -32502,6 +33552,14 @@
|
|
|
32502
33552
|
if (error)
|
|
32503
33553
|
return "structType." + error;
|
|
32504
33554
|
}
|
|
33555
|
+
if (message.typeAnnotation != null && message.hasOwnProperty("typeAnnotation"))
|
|
33556
|
+
switch (message.typeAnnotation) {
|
|
33557
|
+
default:
|
|
33558
|
+
return "typeAnnotation: enum value expected";
|
|
33559
|
+
case 0:
|
|
33560
|
+
case 2:
|
|
33561
|
+
break;
|
|
33562
|
+
}
|
|
32505
33563
|
return null;
|
|
32506
33564
|
};
|
|
32507
33565
|
|
|
@@ -32577,6 +33635,16 @@
|
|
|
32577
33635
|
throw TypeError(".google.spanner.v1.Type.structType: object expected");
|
|
32578
33636
|
message.structType = $root.google.spanner.v1.StructType.fromObject(object.structType);
|
|
32579
33637
|
}
|
|
33638
|
+
switch (object.typeAnnotation) {
|
|
33639
|
+
case "TYPE_ANNOTATION_CODE_UNSPECIFIED":
|
|
33640
|
+
case 0:
|
|
33641
|
+
message.typeAnnotation = 0;
|
|
33642
|
+
break;
|
|
33643
|
+
case "PG_NUMERIC":
|
|
33644
|
+
case 2:
|
|
33645
|
+
message.typeAnnotation = 2;
|
|
33646
|
+
break;
|
|
33647
|
+
}
|
|
32580
33648
|
return message;
|
|
32581
33649
|
};
|
|
32582
33650
|
|
|
@@ -32597,6 +33665,7 @@
|
|
|
32597
33665
|
object.code = options.enums === String ? "TYPE_CODE_UNSPECIFIED" : 0;
|
|
32598
33666
|
object.arrayElementType = null;
|
|
32599
33667
|
object.structType = null;
|
|
33668
|
+
object.typeAnnotation = options.enums === String ? "TYPE_ANNOTATION_CODE_UNSPECIFIED" : 0;
|
|
32600
33669
|
}
|
|
32601
33670
|
if (message.code != null && message.hasOwnProperty("code"))
|
|
32602
33671
|
object.code = options.enums === String ? $root.google.spanner.v1.TypeCode[message.code] : message.code;
|
|
@@ -32604,6 +33673,8 @@
|
|
|
32604
33673
|
object.arrayElementType = $root.google.spanner.v1.Type.toObject(message.arrayElementType, options);
|
|
32605
33674
|
if (message.structType != null && message.hasOwnProperty("structType"))
|
|
32606
33675
|
object.structType = $root.google.spanner.v1.StructType.toObject(message.structType, options);
|
|
33676
|
+
if (message.typeAnnotation != null && message.hasOwnProperty("typeAnnotation"))
|
|
33677
|
+
object.typeAnnotation = options.enums === String ? $root.google.spanner.v1.TypeAnnotationCode[message.typeAnnotation] : message.typeAnnotation;
|
|
32607
33678
|
return object;
|
|
32608
33679
|
};
|
|
32609
33680
|
|
|
@@ -33078,6 +34149,20 @@
|
|
|
33078
34149
|
return values;
|
|
33079
34150
|
})();
|
|
33080
34151
|
|
|
34152
|
+
/**
|
|
34153
|
+
* TypeAnnotationCode enum.
|
|
34154
|
+
* @name google.spanner.v1.TypeAnnotationCode
|
|
34155
|
+
* @enum {number}
|
|
34156
|
+
* @property {number} TYPE_ANNOTATION_CODE_UNSPECIFIED=0 TYPE_ANNOTATION_CODE_UNSPECIFIED value
|
|
34157
|
+
* @property {number} PG_NUMERIC=2 PG_NUMERIC value
|
|
34158
|
+
*/
|
|
34159
|
+
v1.TypeAnnotationCode = (function() {
|
|
34160
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
34161
|
+
values[valuesById[0] = "TYPE_ANNOTATION_CODE_UNSPECIFIED"] = 0;
|
|
34162
|
+
values[valuesById[2] = "PG_NUMERIC"] = 2;
|
|
34163
|
+
return values;
|
|
34164
|
+
})();
|
|
34165
|
+
|
|
33081
34166
|
v1.Spanner = (function() {
|
|
33082
34167
|
|
|
33083
34168
|
/**
|
|
@@ -33111,7 +34196,7 @@
|
|
|
33111
34196
|
};
|
|
33112
34197
|
|
|
33113
34198
|
/**
|
|
33114
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
34199
|
+
* Callback as used by {@link google.spanner.v1.Spanner|createSession}.
|
|
33115
34200
|
* @memberof google.spanner.v1.Spanner
|
|
33116
34201
|
* @typedef CreateSessionCallback
|
|
33117
34202
|
* @type {function}
|
|
@@ -33144,7 +34229,7 @@
|
|
|
33144
34229
|
*/
|
|
33145
34230
|
|
|
33146
34231
|
/**
|
|
33147
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
34232
|
+
* Callback as used by {@link google.spanner.v1.Spanner|batchCreateSessions}.
|
|
33148
34233
|
* @memberof google.spanner.v1.Spanner
|
|
33149
34234
|
* @typedef BatchCreateSessionsCallback
|
|
33150
34235
|
* @type {function}
|
|
@@ -33177,7 +34262,7 @@
|
|
|
33177
34262
|
*/
|
|
33178
34263
|
|
|
33179
34264
|
/**
|
|
33180
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
34265
|
+
* Callback as used by {@link google.spanner.v1.Spanner|getSession}.
|
|
33181
34266
|
* @memberof google.spanner.v1.Spanner
|
|
33182
34267
|
* @typedef GetSessionCallback
|
|
33183
34268
|
* @type {function}
|
|
@@ -33210,7 +34295,7 @@
|
|
|
33210
34295
|
*/
|
|
33211
34296
|
|
|
33212
34297
|
/**
|
|
33213
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
34298
|
+
* Callback as used by {@link google.spanner.v1.Spanner|listSessions}.
|
|
33214
34299
|
* @memberof google.spanner.v1.Spanner
|
|
33215
34300
|
* @typedef ListSessionsCallback
|
|
33216
34301
|
* @type {function}
|
|
@@ -33243,7 +34328,7 @@
|
|
|
33243
34328
|
*/
|
|
33244
34329
|
|
|
33245
34330
|
/**
|
|
33246
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
34331
|
+
* Callback as used by {@link google.spanner.v1.Spanner|deleteSession}.
|
|
33247
34332
|
* @memberof google.spanner.v1.Spanner
|
|
33248
34333
|
* @typedef DeleteSessionCallback
|
|
33249
34334
|
* @type {function}
|
|
@@ -33276,7 +34361,7 @@
|
|
|
33276
34361
|
*/
|
|
33277
34362
|
|
|
33278
34363
|
/**
|
|
33279
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
34364
|
+
* Callback as used by {@link google.spanner.v1.Spanner|executeSql}.
|
|
33280
34365
|
* @memberof google.spanner.v1.Spanner
|
|
33281
34366
|
* @typedef ExecuteSqlCallback
|
|
33282
34367
|
* @type {function}
|
|
@@ -33309,7 +34394,7 @@
|
|
|
33309
34394
|
*/
|
|
33310
34395
|
|
|
33311
34396
|
/**
|
|
33312
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
34397
|
+
* Callback as used by {@link google.spanner.v1.Spanner|executeStreamingSql}.
|
|
33313
34398
|
* @memberof google.spanner.v1.Spanner
|
|
33314
34399
|
* @typedef ExecuteStreamingSqlCallback
|
|
33315
34400
|
* @type {function}
|
|
@@ -33342,7 +34427,7 @@
|
|
|
33342
34427
|
*/
|
|
33343
34428
|
|
|
33344
34429
|
/**
|
|
33345
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
34430
|
+
* Callback as used by {@link google.spanner.v1.Spanner|executeBatchDml}.
|
|
33346
34431
|
* @memberof google.spanner.v1.Spanner
|
|
33347
34432
|
* @typedef ExecuteBatchDmlCallback
|
|
33348
34433
|
* @type {function}
|
|
@@ -33375,7 +34460,7 @@
|
|
|
33375
34460
|
*/
|
|
33376
34461
|
|
|
33377
34462
|
/**
|
|
33378
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
34463
|
+
* Callback as used by {@link google.spanner.v1.Spanner|read}.
|
|
33379
34464
|
* @memberof google.spanner.v1.Spanner
|
|
33380
34465
|
* @typedef ReadCallback
|
|
33381
34466
|
* @type {function}
|
|
@@ -33408,7 +34493,7 @@
|
|
|
33408
34493
|
*/
|
|
33409
34494
|
|
|
33410
34495
|
/**
|
|
33411
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
34496
|
+
* Callback as used by {@link google.spanner.v1.Spanner|streamingRead}.
|
|
33412
34497
|
* @memberof google.spanner.v1.Spanner
|
|
33413
34498
|
* @typedef StreamingReadCallback
|
|
33414
34499
|
* @type {function}
|
|
@@ -33441,7 +34526,7 @@
|
|
|
33441
34526
|
*/
|
|
33442
34527
|
|
|
33443
34528
|
/**
|
|
33444
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
34529
|
+
* Callback as used by {@link google.spanner.v1.Spanner|beginTransaction}.
|
|
33445
34530
|
* @memberof google.spanner.v1.Spanner
|
|
33446
34531
|
* @typedef BeginTransactionCallback
|
|
33447
34532
|
* @type {function}
|
|
@@ -33474,7 +34559,7 @@
|
|
|
33474
34559
|
*/
|
|
33475
34560
|
|
|
33476
34561
|
/**
|
|
33477
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
34562
|
+
* Callback as used by {@link google.spanner.v1.Spanner|commit}.
|
|
33478
34563
|
* @memberof google.spanner.v1.Spanner
|
|
33479
34564
|
* @typedef CommitCallback
|
|
33480
34565
|
* @type {function}
|
|
@@ -33507,7 +34592,7 @@
|
|
|
33507
34592
|
*/
|
|
33508
34593
|
|
|
33509
34594
|
/**
|
|
33510
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
34595
|
+
* Callback as used by {@link google.spanner.v1.Spanner|rollback}.
|
|
33511
34596
|
* @memberof google.spanner.v1.Spanner
|
|
33512
34597
|
* @typedef RollbackCallback
|
|
33513
34598
|
* @type {function}
|
|
@@ -33540,7 +34625,7 @@
|
|
|
33540
34625
|
*/
|
|
33541
34626
|
|
|
33542
34627
|
/**
|
|
33543
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
34628
|
+
* Callback as used by {@link google.spanner.v1.Spanner|partitionQuery}.
|
|
33544
34629
|
* @memberof google.spanner.v1.Spanner
|
|
33545
34630
|
* @typedef PartitionQueryCallback
|
|
33546
34631
|
* @type {function}
|
|
@@ -33573,7 +34658,7 @@
|
|
|
33573
34658
|
*/
|
|
33574
34659
|
|
|
33575
34660
|
/**
|
|
33576
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
34661
|
+
* Callback as used by {@link google.spanner.v1.Spanner|partitionRead}.
|
|
33577
34662
|
* @memberof google.spanner.v1.Spanner
|
|
33578
34663
|
* @typedef PartitionReadCallback
|
|
33579
34664
|
* @type {function}
|
|
@@ -36218,6 +37303,22 @@
|
|
|
36218
37303
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
36219
37304
|
};
|
|
36220
37305
|
|
|
37306
|
+
/**
|
|
37307
|
+
* QueryMode enum.
|
|
37308
|
+
* @name google.spanner.v1.ExecuteSqlRequest.QueryMode
|
|
37309
|
+
* @enum {number}
|
|
37310
|
+
* @property {number} NORMAL=0 NORMAL value
|
|
37311
|
+
* @property {number} PLAN=1 PLAN value
|
|
37312
|
+
* @property {number} PROFILE=2 PROFILE value
|
|
37313
|
+
*/
|
|
37314
|
+
ExecuteSqlRequest.QueryMode = (function() {
|
|
37315
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
37316
|
+
values[valuesById[0] = "NORMAL"] = 0;
|
|
37317
|
+
values[valuesById[1] = "PLAN"] = 1;
|
|
37318
|
+
values[valuesById[2] = "PROFILE"] = 2;
|
|
37319
|
+
return values;
|
|
37320
|
+
})();
|
|
37321
|
+
|
|
36221
37322
|
ExecuteSqlRequest.QueryOptions = (function() {
|
|
36222
37323
|
|
|
36223
37324
|
/**
|
|
@@ -36428,22 +37529,6 @@
|
|
|
36428
37529
|
return QueryOptions;
|
|
36429
37530
|
})();
|
|
36430
37531
|
|
|
36431
|
-
/**
|
|
36432
|
-
* QueryMode enum.
|
|
36433
|
-
* @name google.spanner.v1.ExecuteSqlRequest.QueryMode
|
|
36434
|
-
* @enum {number}
|
|
36435
|
-
* @property {number} NORMAL=0 NORMAL value
|
|
36436
|
-
* @property {number} PLAN=1 PLAN value
|
|
36437
|
-
* @property {number} PROFILE=2 PROFILE value
|
|
36438
|
-
*/
|
|
36439
|
-
ExecuteSqlRequest.QueryMode = (function() {
|
|
36440
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
36441
|
-
values[valuesById[0] = "NORMAL"] = 0;
|
|
36442
|
-
values[valuesById[1] = "PLAN"] = 1;
|
|
36443
|
-
values[valuesById[2] = "PROFILE"] = 2;
|
|
36444
|
-
return values;
|
|
36445
|
-
})();
|
|
36446
|
-
|
|
36447
37532
|
return ExecuteSqlRequest;
|
|
36448
37533
|
})();
|
|
36449
37534
|
|
|
@@ -41558,7 +42643,7 @@
|
|
|
41558
42643
|
};
|
|
41559
42644
|
|
|
41560
42645
|
/**
|
|
41561
|
-
* Callback as used by {@link google.longrunning.Operations
|
|
42646
|
+
* Callback as used by {@link google.longrunning.Operations|listOperations}.
|
|
41562
42647
|
* @memberof google.longrunning.Operations
|
|
41563
42648
|
* @typedef ListOperationsCallback
|
|
41564
42649
|
* @type {function}
|
|
@@ -41591,7 +42676,7 @@
|
|
|
41591
42676
|
*/
|
|
41592
42677
|
|
|
41593
42678
|
/**
|
|
41594
|
-
* Callback as used by {@link google.longrunning.Operations
|
|
42679
|
+
* Callback as used by {@link google.longrunning.Operations|getOperation}.
|
|
41595
42680
|
* @memberof google.longrunning.Operations
|
|
41596
42681
|
* @typedef GetOperationCallback
|
|
41597
42682
|
* @type {function}
|
|
@@ -41624,7 +42709,7 @@
|
|
|
41624
42709
|
*/
|
|
41625
42710
|
|
|
41626
42711
|
/**
|
|
41627
|
-
* Callback as used by {@link google.longrunning.Operations
|
|
42712
|
+
* Callback as used by {@link google.longrunning.Operations|deleteOperation}.
|
|
41628
42713
|
* @memberof google.longrunning.Operations
|
|
41629
42714
|
* @typedef DeleteOperationCallback
|
|
41630
42715
|
* @type {function}
|
|
@@ -41657,7 +42742,7 @@
|
|
|
41657
42742
|
*/
|
|
41658
42743
|
|
|
41659
42744
|
/**
|
|
41660
|
-
* Callback as used by {@link google.longrunning.Operations
|
|
42745
|
+
* Callback as used by {@link google.longrunning.Operations|cancelOperation}.
|
|
41661
42746
|
* @memberof google.longrunning.Operations
|
|
41662
42747
|
* @typedef CancelOperationCallback
|
|
41663
42748
|
* @type {function}
|
|
@@ -41690,7 +42775,7 @@
|
|
|
41690
42775
|
*/
|
|
41691
42776
|
|
|
41692
42777
|
/**
|
|
41693
|
-
* Callback as used by {@link google.longrunning.Operations
|
|
42778
|
+
* Callback as used by {@link google.longrunning.Operations|waitOperation}.
|
|
41694
42779
|
* @memberof google.longrunning.Operations
|
|
41695
42780
|
* @typedef WaitOperationCallback
|
|
41696
42781
|
* @type {function}
|
|
@@ -43568,7 +44653,7 @@
|
|
|
43568
44653
|
};
|
|
43569
44654
|
|
|
43570
44655
|
/**
|
|
43571
|
-
* Callback as used by {@link google.iam.v1.IAMPolicy
|
|
44656
|
+
* Callback as used by {@link google.iam.v1.IAMPolicy|setIamPolicy}.
|
|
43572
44657
|
* @memberof google.iam.v1.IAMPolicy
|
|
43573
44658
|
* @typedef SetIamPolicyCallback
|
|
43574
44659
|
* @type {function}
|
|
@@ -43601,7 +44686,7 @@
|
|
|
43601
44686
|
*/
|
|
43602
44687
|
|
|
43603
44688
|
/**
|
|
43604
|
-
* Callback as used by {@link google.iam.v1.IAMPolicy
|
|
44689
|
+
* Callback as used by {@link google.iam.v1.IAMPolicy|getIamPolicy}.
|
|
43605
44690
|
* @memberof google.iam.v1.IAMPolicy
|
|
43606
44691
|
* @typedef GetIamPolicyCallback
|
|
43607
44692
|
* @type {function}
|
|
@@ -43634,7 +44719,7 @@
|
|
|
43634
44719
|
*/
|
|
43635
44720
|
|
|
43636
44721
|
/**
|
|
43637
|
-
* Callback as used by {@link google.iam.v1.IAMPolicy
|
|
44722
|
+
* Callback as used by {@link google.iam.v1.IAMPolicy|testIamPermissions}.
|
|
43638
44723
|
* @memberof google.iam.v1.IAMPolicy
|
|
43639
44724
|
* @typedef TestIamPermissionsCallback
|
|
43640
44725
|
* @type {function}
|