@google-cloud/spanner 7.12.0 → 7.14.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 +24 -0
- package/build/protos/google/spanner/admin/database/v1/backup.proto +51 -1
- package/build/protos/google/spanner/admin/database/v1/backup_schedule.proto +3 -0
- package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +203 -62
- package/build/protos/protos.d.ts +460 -1
- package/build/protos/protos.js +1102 -2
- package/build/protos/protos.json +116 -1
- package/build/src/transaction.js +13 -4
- package/build/src/v1/database_admin_client.d.ts +9 -0
- package/build/src/v1/database_admin_client.js +6 -0
- package/build/src/v1/instance_admin_client.d.ts +141 -43
- package/build/src/v1/instance_admin_client.js +44 -4
- package/build/src/v1/instance_admin_client_config.json +4 -0
- package/package.json +3 -3
package/build/protos/protos.js
CHANGED
|
@@ -17695,6 +17695,8 @@
|
|
|
17695
17695
|
* @property {string|null} [name] Backup name
|
|
17696
17696
|
* @property {google.protobuf.ITimestamp|null} [createTime] Backup createTime
|
|
17697
17697
|
* @property {number|Long|null} [sizeBytes] Backup sizeBytes
|
|
17698
|
+
* @property {number|Long|null} [freeableSizeBytes] Backup freeableSizeBytes
|
|
17699
|
+
* @property {number|Long|null} [exclusiveSizeBytes] Backup exclusiveSizeBytes
|
|
17698
17700
|
* @property {google.spanner.admin.database.v1.Backup.State|null} [state] Backup state
|
|
17699
17701
|
* @property {Array.<string>|null} [referencingDatabases] Backup referencingDatabases
|
|
17700
17702
|
* @property {google.spanner.admin.database.v1.IEncryptionInfo|null} [encryptionInfo] Backup encryptionInfo
|
|
@@ -17703,6 +17705,8 @@
|
|
|
17703
17705
|
* @property {Array.<string>|null} [referencingBackups] Backup referencingBackups
|
|
17704
17706
|
* @property {google.protobuf.ITimestamp|null} [maxExpireTime] Backup maxExpireTime
|
|
17705
17707
|
* @property {Array.<string>|null} [backupSchedules] Backup backupSchedules
|
|
17708
|
+
* @property {string|null} [incrementalBackupChainId] Backup incrementalBackupChainId
|
|
17709
|
+
* @property {google.protobuf.ITimestamp|null} [oldestVersionTime] Backup oldestVersionTime
|
|
17706
17710
|
*/
|
|
17707
17711
|
|
|
17708
17712
|
/**
|
|
@@ -17772,6 +17776,22 @@
|
|
|
17772
17776
|
*/
|
|
17773
17777
|
Backup.prototype.sizeBytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
17774
17778
|
|
|
17779
|
+
/**
|
|
17780
|
+
* Backup freeableSizeBytes.
|
|
17781
|
+
* @member {number|Long} freeableSizeBytes
|
|
17782
|
+
* @memberof google.spanner.admin.database.v1.Backup
|
|
17783
|
+
* @instance
|
|
17784
|
+
*/
|
|
17785
|
+
Backup.prototype.freeableSizeBytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
17786
|
+
|
|
17787
|
+
/**
|
|
17788
|
+
* Backup exclusiveSizeBytes.
|
|
17789
|
+
* @member {number|Long} exclusiveSizeBytes
|
|
17790
|
+
* @memberof google.spanner.admin.database.v1.Backup
|
|
17791
|
+
* @instance
|
|
17792
|
+
*/
|
|
17793
|
+
Backup.prototype.exclusiveSizeBytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
17794
|
+
|
|
17775
17795
|
/**
|
|
17776
17796
|
* Backup state.
|
|
17777
17797
|
* @member {google.spanner.admin.database.v1.Backup.State} state
|
|
@@ -17836,6 +17856,22 @@
|
|
|
17836
17856
|
*/
|
|
17837
17857
|
Backup.prototype.backupSchedules = $util.emptyArray;
|
|
17838
17858
|
|
|
17859
|
+
/**
|
|
17860
|
+
* Backup incrementalBackupChainId.
|
|
17861
|
+
* @member {string} incrementalBackupChainId
|
|
17862
|
+
* @memberof google.spanner.admin.database.v1.Backup
|
|
17863
|
+
* @instance
|
|
17864
|
+
*/
|
|
17865
|
+
Backup.prototype.incrementalBackupChainId = "";
|
|
17866
|
+
|
|
17867
|
+
/**
|
|
17868
|
+
* Backup oldestVersionTime.
|
|
17869
|
+
* @member {google.protobuf.ITimestamp|null|undefined} oldestVersionTime
|
|
17870
|
+
* @memberof google.spanner.admin.database.v1.Backup
|
|
17871
|
+
* @instance
|
|
17872
|
+
*/
|
|
17873
|
+
Backup.prototype.oldestVersionTime = null;
|
|
17874
|
+
|
|
17839
17875
|
/**
|
|
17840
17876
|
* Creates a new Backup instance using the specified properties.
|
|
17841
17877
|
* @function create
|
|
@@ -17892,6 +17928,14 @@
|
|
|
17892
17928
|
if (message.backupSchedules != null && message.backupSchedules.length)
|
|
17893
17929
|
for (var i = 0; i < message.backupSchedules.length; ++i)
|
|
17894
17930
|
writer.uint32(/* id 14, wireType 2 =*/114).string(message.backupSchedules[i]);
|
|
17931
|
+
if (message.freeableSizeBytes != null && Object.hasOwnProperty.call(message, "freeableSizeBytes"))
|
|
17932
|
+
writer.uint32(/* id 15, wireType 0 =*/120).int64(message.freeableSizeBytes);
|
|
17933
|
+
if (message.exclusiveSizeBytes != null && Object.hasOwnProperty.call(message, "exclusiveSizeBytes"))
|
|
17934
|
+
writer.uint32(/* id 16, wireType 0 =*/128).int64(message.exclusiveSizeBytes);
|
|
17935
|
+
if (message.incrementalBackupChainId != null && Object.hasOwnProperty.call(message, "incrementalBackupChainId"))
|
|
17936
|
+
writer.uint32(/* id 17, wireType 2 =*/138).string(message.incrementalBackupChainId);
|
|
17937
|
+
if (message.oldestVersionTime != null && Object.hasOwnProperty.call(message, "oldestVersionTime"))
|
|
17938
|
+
$root.google.protobuf.Timestamp.encode(message.oldestVersionTime, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
|
17895
17939
|
return writer;
|
|
17896
17940
|
};
|
|
17897
17941
|
|
|
@@ -17950,6 +17994,14 @@
|
|
|
17950
17994
|
message.sizeBytes = reader.int64();
|
|
17951
17995
|
break;
|
|
17952
17996
|
}
|
|
17997
|
+
case 15: {
|
|
17998
|
+
message.freeableSizeBytes = reader.int64();
|
|
17999
|
+
break;
|
|
18000
|
+
}
|
|
18001
|
+
case 16: {
|
|
18002
|
+
message.exclusiveSizeBytes = reader.int64();
|
|
18003
|
+
break;
|
|
18004
|
+
}
|
|
17953
18005
|
case 6: {
|
|
17954
18006
|
message.state = reader.int32();
|
|
17955
18007
|
break;
|
|
@@ -17990,6 +18042,14 @@
|
|
|
17990
18042
|
message.backupSchedules.push(reader.string());
|
|
17991
18043
|
break;
|
|
17992
18044
|
}
|
|
18045
|
+
case 17: {
|
|
18046
|
+
message.incrementalBackupChainId = reader.string();
|
|
18047
|
+
break;
|
|
18048
|
+
}
|
|
18049
|
+
case 18: {
|
|
18050
|
+
message.oldestVersionTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
18051
|
+
break;
|
|
18052
|
+
}
|
|
17993
18053
|
default:
|
|
17994
18054
|
reader.skipType(tag & 7);
|
|
17995
18055
|
break;
|
|
@@ -18049,6 +18109,12 @@
|
|
|
18049
18109
|
if (message.sizeBytes != null && message.hasOwnProperty("sizeBytes"))
|
|
18050
18110
|
if (!$util.isInteger(message.sizeBytes) && !(message.sizeBytes && $util.isInteger(message.sizeBytes.low) && $util.isInteger(message.sizeBytes.high)))
|
|
18051
18111
|
return "sizeBytes: integer|Long expected";
|
|
18112
|
+
if (message.freeableSizeBytes != null && message.hasOwnProperty("freeableSizeBytes"))
|
|
18113
|
+
if (!$util.isInteger(message.freeableSizeBytes) && !(message.freeableSizeBytes && $util.isInteger(message.freeableSizeBytes.low) && $util.isInteger(message.freeableSizeBytes.high)))
|
|
18114
|
+
return "freeableSizeBytes: integer|Long expected";
|
|
18115
|
+
if (message.exclusiveSizeBytes != null && message.hasOwnProperty("exclusiveSizeBytes"))
|
|
18116
|
+
if (!$util.isInteger(message.exclusiveSizeBytes) && !(message.exclusiveSizeBytes && $util.isInteger(message.exclusiveSizeBytes.low) && $util.isInteger(message.exclusiveSizeBytes.high)))
|
|
18117
|
+
return "exclusiveSizeBytes: integer|Long expected";
|
|
18052
18118
|
if (message.state != null && message.hasOwnProperty("state"))
|
|
18053
18119
|
switch (message.state) {
|
|
18054
18120
|
default:
|
|
@@ -18107,6 +18173,14 @@
|
|
|
18107
18173
|
if (!$util.isString(message.backupSchedules[i]))
|
|
18108
18174
|
return "backupSchedules: string[] expected";
|
|
18109
18175
|
}
|
|
18176
|
+
if (message.incrementalBackupChainId != null && message.hasOwnProperty("incrementalBackupChainId"))
|
|
18177
|
+
if (!$util.isString(message.incrementalBackupChainId))
|
|
18178
|
+
return "incrementalBackupChainId: string expected";
|
|
18179
|
+
if (message.oldestVersionTime != null && message.hasOwnProperty("oldestVersionTime")) {
|
|
18180
|
+
var error = $root.google.protobuf.Timestamp.verify(message.oldestVersionTime);
|
|
18181
|
+
if (error)
|
|
18182
|
+
return "oldestVersionTime." + error;
|
|
18183
|
+
}
|
|
18110
18184
|
return null;
|
|
18111
18185
|
};
|
|
18112
18186
|
|
|
@@ -18150,6 +18224,24 @@
|
|
|
18150
18224
|
message.sizeBytes = object.sizeBytes;
|
|
18151
18225
|
else if (typeof object.sizeBytes === "object")
|
|
18152
18226
|
message.sizeBytes = new $util.LongBits(object.sizeBytes.low >>> 0, object.sizeBytes.high >>> 0).toNumber();
|
|
18227
|
+
if (object.freeableSizeBytes != null)
|
|
18228
|
+
if ($util.Long)
|
|
18229
|
+
(message.freeableSizeBytes = $util.Long.fromValue(object.freeableSizeBytes)).unsigned = false;
|
|
18230
|
+
else if (typeof object.freeableSizeBytes === "string")
|
|
18231
|
+
message.freeableSizeBytes = parseInt(object.freeableSizeBytes, 10);
|
|
18232
|
+
else if (typeof object.freeableSizeBytes === "number")
|
|
18233
|
+
message.freeableSizeBytes = object.freeableSizeBytes;
|
|
18234
|
+
else if (typeof object.freeableSizeBytes === "object")
|
|
18235
|
+
message.freeableSizeBytes = new $util.LongBits(object.freeableSizeBytes.low >>> 0, object.freeableSizeBytes.high >>> 0).toNumber();
|
|
18236
|
+
if (object.exclusiveSizeBytes != null)
|
|
18237
|
+
if ($util.Long)
|
|
18238
|
+
(message.exclusiveSizeBytes = $util.Long.fromValue(object.exclusiveSizeBytes)).unsigned = false;
|
|
18239
|
+
else if (typeof object.exclusiveSizeBytes === "string")
|
|
18240
|
+
message.exclusiveSizeBytes = parseInt(object.exclusiveSizeBytes, 10);
|
|
18241
|
+
else if (typeof object.exclusiveSizeBytes === "number")
|
|
18242
|
+
message.exclusiveSizeBytes = object.exclusiveSizeBytes;
|
|
18243
|
+
else if (typeof object.exclusiveSizeBytes === "object")
|
|
18244
|
+
message.exclusiveSizeBytes = new $util.LongBits(object.exclusiveSizeBytes.low >>> 0, object.exclusiveSizeBytes.high >>> 0).toNumber();
|
|
18153
18245
|
switch (object.state) {
|
|
18154
18246
|
default:
|
|
18155
18247
|
if (typeof object.state === "number") {
|
|
@@ -18231,6 +18323,13 @@
|
|
|
18231
18323
|
for (var i = 0; i < object.backupSchedules.length; ++i)
|
|
18232
18324
|
message.backupSchedules[i] = String(object.backupSchedules[i]);
|
|
18233
18325
|
}
|
|
18326
|
+
if (object.incrementalBackupChainId != null)
|
|
18327
|
+
message.incrementalBackupChainId = String(object.incrementalBackupChainId);
|
|
18328
|
+
if (object.oldestVersionTime != null) {
|
|
18329
|
+
if (typeof object.oldestVersionTime !== "object")
|
|
18330
|
+
throw TypeError(".google.spanner.admin.database.v1.Backup.oldestVersionTime: object expected");
|
|
18331
|
+
message.oldestVersionTime = $root.google.protobuf.Timestamp.fromObject(object.oldestVersionTime);
|
|
18332
|
+
}
|
|
18234
18333
|
return message;
|
|
18235
18334
|
};
|
|
18236
18335
|
|
|
@@ -18268,6 +18367,18 @@
|
|
|
18268
18367
|
object.versionTime = null;
|
|
18269
18368
|
object.databaseDialect = options.enums === String ? "DATABASE_DIALECT_UNSPECIFIED" : 0;
|
|
18270
18369
|
object.maxExpireTime = null;
|
|
18370
|
+
if ($util.Long) {
|
|
18371
|
+
var long = new $util.Long(0, 0, false);
|
|
18372
|
+
object.freeableSizeBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
18373
|
+
} else
|
|
18374
|
+
object.freeableSizeBytes = options.longs === String ? "0" : 0;
|
|
18375
|
+
if ($util.Long) {
|
|
18376
|
+
var long = new $util.Long(0, 0, false);
|
|
18377
|
+
object.exclusiveSizeBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
18378
|
+
} else
|
|
18379
|
+
object.exclusiveSizeBytes = options.longs === String ? "0" : 0;
|
|
18380
|
+
object.incrementalBackupChainId = "";
|
|
18381
|
+
object.oldestVersionTime = null;
|
|
18271
18382
|
}
|
|
18272
18383
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
18273
18384
|
object.name = message.name;
|
|
@@ -18312,6 +18423,20 @@
|
|
|
18312
18423
|
for (var j = 0; j < message.backupSchedules.length; ++j)
|
|
18313
18424
|
object.backupSchedules[j] = message.backupSchedules[j];
|
|
18314
18425
|
}
|
|
18426
|
+
if (message.freeableSizeBytes != null && message.hasOwnProperty("freeableSizeBytes"))
|
|
18427
|
+
if (typeof message.freeableSizeBytes === "number")
|
|
18428
|
+
object.freeableSizeBytes = options.longs === String ? String(message.freeableSizeBytes) : message.freeableSizeBytes;
|
|
18429
|
+
else
|
|
18430
|
+
object.freeableSizeBytes = options.longs === String ? $util.Long.prototype.toString.call(message.freeableSizeBytes) : options.longs === Number ? new $util.LongBits(message.freeableSizeBytes.low >>> 0, message.freeableSizeBytes.high >>> 0).toNumber() : message.freeableSizeBytes;
|
|
18431
|
+
if (message.exclusiveSizeBytes != null && message.hasOwnProperty("exclusiveSizeBytes"))
|
|
18432
|
+
if (typeof message.exclusiveSizeBytes === "number")
|
|
18433
|
+
object.exclusiveSizeBytes = options.longs === String ? String(message.exclusiveSizeBytes) : message.exclusiveSizeBytes;
|
|
18434
|
+
else
|
|
18435
|
+
object.exclusiveSizeBytes = options.longs === String ? $util.Long.prototype.toString.call(message.exclusiveSizeBytes) : options.longs === Number ? new $util.LongBits(message.exclusiveSizeBytes.low >>> 0, message.exclusiveSizeBytes.high >>> 0).toNumber() : message.exclusiveSizeBytes;
|
|
18436
|
+
if (message.incrementalBackupChainId != null && message.hasOwnProperty("incrementalBackupChainId"))
|
|
18437
|
+
object.incrementalBackupChainId = message.incrementalBackupChainId;
|
|
18438
|
+
if (message.oldestVersionTime != null && message.hasOwnProperty("oldestVersionTime"))
|
|
18439
|
+
object.oldestVersionTime = $root.google.protobuf.Timestamp.toObject(message.oldestVersionTime, options);
|
|
18315
18440
|
return object;
|
|
18316
18441
|
};
|
|
18317
18442
|
|
|
@@ -22286,6 +22411,181 @@
|
|
|
22286
22411
|
return FullBackupSpec;
|
|
22287
22412
|
})();
|
|
22288
22413
|
|
|
22414
|
+
v1.IncrementalBackupSpec = (function() {
|
|
22415
|
+
|
|
22416
|
+
/**
|
|
22417
|
+
* Properties of an IncrementalBackupSpec.
|
|
22418
|
+
* @memberof google.spanner.admin.database.v1
|
|
22419
|
+
* @interface IIncrementalBackupSpec
|
|
22420
|
+
*/
|
|
22421
|
+
|
|
22422
|
+
/**
|
|
22423
|
+
* Constructs a new IncrementalBackupSpec.
|
|
22424
|
+
* @memberof google.spanner.admin.database.v1
|
|
22425
|
+
* @classdesc Represents an IncrementalBackupSpec.
|
|
22426
|
+
* @implements IIncrementalBackupSpec
|
|
22427
|
+
* @constructor
|
|
22428
|
+
* @param {google.spanner.admin.database.v1.IIncrementalBackupSpec=} [properties] Properties to set
|
|
22429
|
+
*/
|
|
22430
|
+
function IncrementalBackupSpec(properties) {
|
|
22431
|
+
if (properties)
|
|
22432
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
22433
|
+
if (properties[keys[i]] != null)
|
|
22434
|
+
this[keys[i]] = properties[keys[i]];
|
|
22435
|
+
}
|
|
22436
|
+
|
|
22437
|
+
/**
|
|
22438
|
+
* Creates a new IncrementalBackupSpec instance using the specified properties.
|
|
22439
|
+
* @function create
|
|
22440
|
+
* @memberof google.spanner.admin.database.v1.IncrementalBackupSpec
|
|
22441
|
+
* @static
|
|
22442
|
+
* @param {google.spanner.admin.database.v1.IIncrementalBackupSpec=} [properties] Properties to set
|
|
22443
|
+
* @returns {google.spanner.admin.database.v1.IncrementalBackupSpec} IncrementalBackupSpec instance
|
|
22444
|
+
*/
|
|
22445
|
+
IncrementalBackupSpec.create = function create(properties) {
|
|
22446
|
+
return new IncrementalBackupSpec(properties);
|
|
22447
|
+
};
|
|
22448
|
+
|
|
22449
|
+
/**
|
|
22450
|
+
* Encodes the specified IncrementalBackupSpec message. Does not implicitly {@link google.spanner.admin.database.v1.IncrementalBackupSpec.verify|verify} messages.
|
|
22451
|
+
* @function encode
|
|
22452
|
+
* @memberof google.spanner.admin.database.v1.IncrementalBackupSpec
|
|
22453
|
+
* @static
|
|
22454
|
+
* @param {google.spanner.admin.database.v1.IIncrementalBackupSpec} message IncrementalBackupSpec message or plain object to encode
|
|
22455
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
22456
|
+
* @returns {$protobuf.Writer} Writer
|
|
22457
|
+
*/
|
|
22458
|
+
IncrementalBackupSpec.encode = function encode(message, writer) {
|
|
22459
|
+
if (!writer)
|
|
22460
|
+
writer = $Writer.create();
|
|
22461
|
+
return writer;
|
|
22462
|
+
};
|
|
22463
|
+
|
|
22464
|
+
/**
|
|
22465
|
+
* Encodes the specified IncrementalBackupSpec message, length delimited. Does not implicitly {@link google.spanner.admin.database.v1.IncrementalBackupSpec.verify|verify} messages.
|
|
22466
|
+
* @function encodeDelimited
|
|
22467
|
+
* @memberof google.spanner.admin.database.v1.IncrementalBackupSpec
|
|
22468
|
+
* @static
|
|
22469
|
+
* @param {google.spanner.admin.database.v1.IIncrementalBackupSpec} message IncrementalBackupSpec message or plain object to encode
|
|
22470
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
22471
|
+
* @returns {$protobuf.Writer} Writer
|
|
22472
|
+
*/
|
|
22473
|
+
IncrementalBackupSpec.encodeDelimited = function encodeDelimited(message, writer) {
|
|
22474
|
+
return this.encode(message, writer).ldelim();
|
|
22475
|
+
};
|
|
22476
|
+
|
|
22477
|
+
/**
|
|
22478
|
+
* Decodes an IncrementalBackupSpec message from the specified reader or buffer.
|
|
22479
|
+
* @function decode
|
|
22480
|
+
* @memberof google.spanner.admin.database.v1.IncrementalBackupSpec
|
|
22481
|
+
* @static
|
|
22482
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
22483
|
+
* @param {number} [length] Message length if known beforehand
|
|
22484
|
+
* @returns {google.spanner.admin.database.v1.IncrementalBackupSpec} IncrementalBackupSpec
|
|
22485
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
22486
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
22487
|
+
*/
|
|
22488
|
+
IncrementalBackupSpec.decode = function decode(reader, length) {
|
|
22489
|
+
if (!(reader instanceof $Reader))
|
|
22490
|
+
reader = $Reader.create(reader);
|
|
22491
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.spanner.admin.database.v1.IncrementalBackupSpec();
|
|
22492
|
+
while (reader.pos < end) {
|
|
22493
|
+
var tag = reader.uint32();
|
|
22494
|
+
switch (tag >>> 3) {
|
|
22495
|
+
default:
|
|
22496
|
+
reader.skipType(tag & 7);
|
|
22497
|
+
break;
|
|
22498
|
+
}
|
|
22499
|
+
}
|
|
22500
|
+
return message;
|
|
22501
|
+
};
|
|
22502
|
+
|
|
22503
|
+
/**
|
|
22504
|
+
* Decodes an IncrementalBackupSpec message from the specified reader or buffer, length delimited.
|
|
22505
|
+
* @function decodeDelimited
|
|
22506
|
+
* @memberof google.spanner.admin.database.v1.IncrementalBackupSpec
|
|
22507
|
+
* @static
|
|
22508
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
22509
|
+
* @returns {google.spanner.admin.database.v1.IncrementalBackupSpec} IncrementalBackupSpec
|
|
22510
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
22511
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
22512
|
+
*/
|
|
22513
|
+
IncrementalBackupSpec.decodeDelimited = function decodeDelimited(reader) {
|
|
22514
|
+
if (!(reader instanceof $Reader))
|
|
22515
|
+
reader = new $Reader(reader);
|
|
22516
|
+
return this.decode(reader, reader.uint32());
|
|
22517
|
+
};
|
|
22518
|
+
|
|
22519
|
+
/**
|
|
22520
|
+
* Verifies an IncrementalBackupSpec message.
|
|
22521
|
+
* @function verify
|
|
22522
|
+
* @memberof google.spanner.admin.database.v1.IncrementalBackupSpec
|
|
22523
|
+
* @static
|
|
22524
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
22525
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
22526
|
+
*/
|
|
22527
|
+
IncrementalBackupSpec.verify = function verify(message) {
|
|
22528
|
+
if (typeof message !== "object" || message === null)
|
|
22529
|
+
return "object expected";
|
|
22530
|
+
return null;
|
|
22531
|
+
};
|
|
22532
|
+
|
|
22533
|
+
/**
|
|
22534
|
+
* Creates an IncrementalBackupSpec message from a plain object. Also converts values to their respective internal types.
|
|
22535
|
+
* @function fromObject
|
|
22536
|
+
* @memberof google.spanner.admin.database.v1.IncrementalBackupSpec
|
|
22537
|
+
* @static
|
|
22538
|
+
* @param {Object.<string,*>} object Plain object
|
|
22539
|
+
* @returns {google.spanner.admin.database.v1.IncrementalBackupSpec} IncrementalBackupSpec
|
|
22540
|
+
*/
|
|
22541
|
+
IncrementalBackupSpec.fromObject = function fromObject(object) {
|
|
22542
|
+
if (object instanceof $root.google.spanner.admin.database.v1.IncrementalBackupSpec)
|
|
22543
|
+
return object;
|
|
22544
|
+
return new $root.google.spanner.admin.database.v1.IncrementalBackupSpec();
|
|
22545
|
+
};
|
|
22546
|
+
|
|
22547
|
+
/**
|
|
22548
|
+
* Creates a plain object from an IncrementalBackupSpec message. Also converts values to other types if specified.
|
|
22549
|
+
* @function toObject
|
|
22550
|
+
* @memberof google.spanner.admin.database.v1.IncrementalBackupSpec
|
|
22551
|
+
* @static
|
|
22552
|
+
* @param {google.spanner.admin.database.v1.IncrementalBackupSpec} message IncrementalBackupSpec
|
|
22553
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
22554
|
+
* @returns {Object.<string,*>} Plain object
|
|
22555
|
+
*/
|
|
22556
|
+
IncrementalBackupSpec.toObject = function toObject() {
|
|
22557
|
+
return {};
|
|
22558
|
+
};
|
|
22559
|
+
|
|
22560
|
+
/**
|
|
22561
|
+
* Converts this IncrementalBackupSpec to JSON.
|
|
22562
|
+
* @function toJSON
|
|
22563
|
+
* @memberof google.spanner.admin.database.v1.IncrementalBackupSpec
|
|
22564
|
+
* @instance
|
|
22565
|
+
* @returns {Object.<string,*>} JSON object
|
|
22566
|
+
*/
|
|
22567
|
+
IncrementalBackupSpec.prototype.toJSON = function toJSON() {
|
|
22568
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
22569
|
+
};
|
|
22570
|
+
|
|
22571
|
+
/**
|
|
22572
|
+
* Gets the default type url for IncrementalBackupSpec
|
|
22573
|
+
* @function getTypeUrl
|
|
22574
|
+
* @memberof google.spanner.admin.database.v1.IncrementalBackupSpec
|
|
22575
|
+
* @static
|
|
22576
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
22577
|
+
* @returns {string} The default type url
|
|
22578
|
+
*/
|
|
22579
|
+
IncrementalBackupSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
22580
|
+
if (typeUrlPrefix === undefined) {
|
|
22581
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
22582
|
+
}
|
|
22583
|
+
return typeUrlPrefix + "/google.spanner.admin.database.v1.IncrementalBackupSpec";
|
|
22584
|
+
};
|
|
22585
|
+
|
|
22586
|
+
return IncrementalBackupSpec;
|
|
22587
|
+
})();
|
|
22588
|
+
|
|
22289
22589
|
v1.OperationProgress = (function() {
|
|
22290
22590
|
|
|
22291
22591
|
/**
|
|
@@ -23338,6 +23638,7 @@
|
|
|
23338
23638
|
* @property {google.protobuf.IDuration|null} [retentionDuration] BackupSchedule retentionDuration
|
|
23339
23639
|
* @property {google.spanner.admin.database.v1.ICreateBackupEncryptionConfig|null} [encryptionConfig] BackupSchedule encryptionConfig
|
|
23340
23640
|
* @property {google.spanner.admin.database.v1.IFullBackupSpec|null} [fullBackupSpec] BackupSchedule fullBackupSpec
|
|
23641
|
+
* @property {google.spanner.admin.database.v1.IIncrementalBackupSpec|null} [incrementalBackupSpec] BackupSchedule incrementalBackupSpec
|
|
23341
23642
|
* @property {google.protobuf.ITimestamp|null} [updateTime] BackupSchedule updateTime
|
|
23342
23643
|
*/
|
|
23343
23644
|
|
|
@@ -23396,6 +23697,14 @@
|
|
|
23396
23697
|
*/
|
|
23397
23698
|
BackupSchedule.prototype.fullBackupSpec = null;
|
|
23398
23699
|
|
|
23700
|
+
/**
|
|
23701
|
+
* BackupSchedule incrementalBackupSpec.
|
|
23702
|
+
* @member {google.spanner.admin.database.v1.IIncrementalBackupSpec|null|undefined} incrementalBackupSpec
|
|
23703
|
+
* @memberof google.spanner.admin.database.v1.BackupSchedule
|
|
23704
|
+
* @instance
|
|
23705
|
+
*/
|
|
23706
|
+
BackupSchedule.prototype.incrementalBackupSpec = null;
|
|
23707
|
+
|
|
23399
23708
|
/**
|
|
23400
23709
|
* BackupSchedule updateTime.
|
|
23401
23710
|
* @member {google.protobuf.ITimestamp|null|undefined} updateTime
|
|
@@ -23409,12 +23718,12 @@
|
|
|
23409
23718
|
|
|
23410
23719
|
/**
|
|
23411
23720
|
* BackupSchedule backupTypeSpec.
|
|
23412
|
-
* @member {"fullBackupSpec"|undefined} backupTypeSpec
|
|
23721
|
+
* @member {"fullBackupSpec"|"incrementalBackupSpec"|undefined} backupTypeSpec
|
|
23413
23722
|
* @memberof google.spanner.admin.database.v1.BackupSchedule
|
|
23414
23723
|
* @instance
|
|
23415
23724
|
*/
|
|
23416
23725
|
Object.defineProperty(BackupSchedule.prototype, "backupTypeSpec", {
|
|
23417
|
-
get: $util.oneOfGetter($oneOfFields = ["fullBackupSpec"]),
|
|
23726
|
+
get: $util.oneOfGetter($oneOfFields = ["fullBackupSpec", "incrementalBackupSpec"]),
|
|
23418
23727
|
set: $util.oneOfSetter($oneOfFields)
|
|
23419
23728
|
});
|
|
23420
23729
|
|
|
@@ -23452,6 +23761,8 @@
|
|
|
23452
23761
|
$root.google.spanner.admin.database.v1.BackupScheduleSpec.encode(message.spec, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
23453
23762
|
if (message.fullBackupSpec != null && Object.hasOwnProperty.call(message, "fullBackupSpec"))
|
|
23454
23763
|
$root.google.spanner.admin.database.v1.FullBackupSpec.encode(message.fullBackupSpec, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
23764
|
+
if (message.incrementalBackupSpec != null && Object.hasOwnProperty.call(message, "incrementalBackupSpec"))
|
|
23765
|
+
$root.google.spanner.admin.database.v1.IncrementalBackupSpec.encode(message.incrementalBackupSpec, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
23455
23766
|
if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
|
|
23456
23767
|
$root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
23457
23768
|
return writer;
|
|
@@ -23508,6 +23819,10 @@
|
|
|
23508
23819
|
message.fullBackupSpec = $root.google.spanner.admin.database.v1.FullBackupSpec.decode(reader, reader.uint32());
|
|
23509
23820
|
break;
|
|
23510
23821
|
}
|
|
23822
|
+
case 8: {
|
|
23823
|
+
message.incrementalBackupSpec = $root.google.spanner.admin.database.v1.IncrementalBackupSpec.decode(reader, reader.uint32());
|
|
23824
|
+
break;
|
|
23825
|
+
}
|
|
23511
23826
|
case 9: {
|
|
23512
23827
|
message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
23513
23828
|
break;
|
|
@@ -23574,6 +23889,16 @@
|
|
|
23574
23889
|
return "fullBackupSpec." + error;
|
|
23575
23890
|
}
|
|
23576
23891
|
}
|
|
23892
|
+
if (message.incrementalBackupSpec != null && message.hasOwnProperty("incrementalBackupSpec")) {
|
|
23893
|
+
if (properties.backupTypeSpec === 1)
|
|
23894
|
+
return "backupTypeSpec: multiple values";
|
|
23895
|
+
properties.backupTypeSpec = 1;
|
|
23896
|
+
{
|
|
23897
|
+
var error = $root.google.spanner.admin.database.v1.IncrementalBackupSpec.verify(message.incrementalBackupSpec);
|
|
23898
|
+
if (error)
|
|
23899
|
+
return "incrementalBackupSpec." + error;
|
|
23900
|
+
}
|
|
23901
|
+
}
|
|
23577
23902
|
if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
|
|
23578
23903
|
var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
|
|
23579
23904
|
if (error)
|
|
@@ -23616,6 +23941,11 @@
|
|
|
23616
23941
|
throw TypeError(".google.spanner.admin.database.v1.BackupSchedule.fullBackupSpec: object expected");
|
|
23617
23942
|
message.fullBackupSpec = $root.google.spanner.admin.database.v1.FullBackupSpec.fromObject(object.fullBackupSpec);
|
|
23618
23943
|
}
|
|
23944
|
+
if (object.incrementalBackupSpec != null) {
|
|
23945
|
+
if (typeof object.incrementalBackupSpec !== "object")
|
|
23946
|
+
throw TypeError(".google.spanner.admin.database.v1.BackupSchedule.incrementalBackupSpec: object expected");
|
|
23947
|
+
message.incrementalBackupSpec = $root.google.spanner.admin.database.v1.IncrementalBackupSpec.fromObject(object.incrementalBackupSpec);
|
|
23948
|
+
}
|
|
23619
23949
|
if (object.updateTime != null) {
|
|
23620
23950
|
if (typeof object.updateTime !== "object")
|
|
23621
23951
|
throw TypeError(".google.spanner.admin.database.v1.BackupSchedule.updateTime: object expected");
|
|
@@ -23657,6 +23987,11 @@
|
|
|
23657
23987
|
if (options.oneofs)
|
|
23658
23988
|
object.backupTypeSpec = "fullBackupSpec";
|
|
23659
23989
|
}
|
|
23990
|
+
if (message.incrementalBackupSpec != null && message.hasOwnProperty("incrementalBackupSpec")) {
|
|
23991
|
+
object.incrementalBackupSpec = $root.google.spanner.admin.database.v1.IncrementalBackupSpec.toObject(message.incrementalBackupSpec, options);
|
|
23992
|
+
if (options.oneofs)
|
|
23993
|
+
object.backupTypeSpec = "incrementalBackupSpec";
|
|
23994
|
+
}
|
|
23660
23995
|
if (message.updateTime != null && message.hasOwnProperty("updateTime"))
|
|
23661
23996
|
object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
|
|
23662
23997
|
return object;
|
|
@@ -33890,6 +34225,39 @@
|
|
|
33890
34225
|
* @variation 2
|
|
33891
34226
|
*/
|
|
33892
34227
|
|
|
34228
|
+
/**
|
|
34229
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|moveInstance}.
|
|
34230
|
+
* @memberof google.spanner.admin.instance.v1.InstanceAdmin
|
|
34231
|
+
* @typedef MoveInstanceCallback
|
|
34232
|
+
* @type {function}
|
|
34233
|
+
* @param {Error|null} error Error, if any
|
|
34234
|
+
* @param {google.longrunning.Operation} [response] Operation
|
|
34235
|
+
*/
|
|
34236
|
+
|
|
34237
|
+
/**
|
|
34238
|
+
* Calls MoveInstance.
|
|
34239
|
+
* @function moveInstance
|
|
34240
|
+
* @memberof google.spanner.admin.instance.v1.InstanceAdmin
|
|
34241
|
+
* @instance
|
|
34242
|
+
* @param {google.spanner.admin.instance.v1.IMoveInstanceRequest} request MoveInstanceRequest message or plain object
|
|
34243
|
+
* @param {google.spanner.admin.instance.v1.InstanceAdmin.MoveInstanceCallback} callback Node-style callback called with the error, if any, and Operation
|
|
34244
|
+
* @returns {undefined}
|
|
34245
|
+
* @variation 1
|
|
34246
|
+
*/
|
|
34247
|
+
Object.defineProperty(InstanceAdmin.prototype.moveInstance = function moveInstance(request, callback) {
|
|
34248
|
+
return this.rpcCall(moveInstance, $root.google.spanner.admin.instance.v1.MoveInstanceRequest, $root.google.longrunning.Operation, request, callback);
|
|
34249
|
+
}, "name", { value: "MoveInstance" });
|
|
34250
|
+
|
|
34251
|
+
/**
|
|
34252
|
+
* Calls MoveInstance.
|
|
34253
|
+
* @function moveInstance
|
|
34254
|
+
* @memberof google.spanner.admin.instance.v1.InstanceAdmin
|
|
34255
|
+
* @instance
|
|
34256
|
+
* @param {google.spanner.admin.instance.v1.IMoveInstanceRequest} request MoveInstanceRequest message or plain object
|
|
34257
|
+
* @returns {Promise<google.longrunning.Operation>} Promise
|
|
34258
|
+
* @variation 2
|
|
34259
|
+
*/
|
|
34260
|
+
|
|
33893
34261
|
return InstanceAdmin;
|
|
33894
34262
|
})();
|
|
33895
34263
|
|
|
@@ -35598,6 +35966,7 @@
|
|
|
35598
35966
|
* @property {Array.<string>|null} [endpointUris] Instance endpointUris
|
|
35599
35967
|
* @property {google.protobuf.ITimestamp|null} [createTime] Instance createTime
|
|
35600
35968
|
* @property {google.protobuf.ITimestamp|null} [updateTime] Instance updateTime
|
|
35969
|
+
* @property {google.spanner.admin.instance.v1.Instance.Edition|null} [edition] Instance edition
|
|
35601
35970
|
*/
|
|
35602
35971
|
|
|
35603
35972
|
/**
|
|
@@ -35705,6 +36074,14 @@
|
|
|
35705
36074
|
*/
|
|
35706
36075
|
Instance.prototype.updateTime = null;
|
|
35707
36076
|
|
|
36077
|
+
/**
|
|
36078
|
+
* Instance edition.
|
|
36079
|
+
* @member {google.spanner.admin.instance.v1.Instance.Edition} edition
|
|
36080
|
+
* @memberof google.spanner.admin.instance.v1.Instance
|
|
36081
|
+
* @instance
|
|
36082
|
+
*/
|
|
36083
|
+
Instance.prototype.edition = 0;
|
|
36084
|
+
|
|
35708
36085
|
/**
|
|
35709
36086
|
* Creates a new Instance instance using the specified properties.
|
|
35710
36087
|
* @function create
|
|
@@ -35753,6 +36130,8 @@
|
|
|
35753
36130
|
$root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
35754
36131
|
if (message.autoscalingConfig != null && Object.hasOwnProperty.call(message, "autoscalingConfig"))
|
|
35755
36132
|
$root.google.spanner.admin.instance.v1.AutoscalingConfig.encode(message.autoscalingConfig, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
36133
|
+
if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
|
|
36134
|
+
writer.uint32(/* id 20, wireType 0 =*/160).int32(message.edition);
|
|
35756
36135
|
return writer;
|
|
35757
36136
|
};
|
|
35758
36137
|
|
|
@@ -35852,6 +36231,10 @@
|
|
|
35852
36231
|
message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
35853
36232
|
break;
|
|
35854
36233
|
}
|
|
36234
|
+
case 20: {
|
|
36235
|
+
message.edition = reader.int32();
|
|
36236
|
+
break;
|
|
36237
|
+
}
|
|
35855
36238
|
default:
|
|
35856
36239
|
reader.skipType(tag & 7);
|
|
35857
36240
|
break;
|
|
@@ -35941,6 +36324,16 @@
|
|
|
35941
36324
|
if (error)
|
|
35942
36325
|
return "updateTime." + error;
|
|
35943
36326
|
}
|
|
36327
|
+
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
36328
|
+
switch (message.edition) {
|
|
36329
|
+
default:
|
|
36330
|
+
return "edition: enum value expected";
|
|
36331
|
+
case 0:
|
|
36332
|
+
case 1:
|
|
36333
|
+
case 2:
|
|
36334
|
+
case 3:
|
|
36335
|
+
break;
|
|
36336
|
+
}
|
|
35944
36337
|
return null;
|
|
35945
36338
|
};
|
|
35946
36339
|
|
|
@@ -36015,6 +36408,30 @@
|
|
|
36015
36408
|
throw TypeError(".google.spanner.admin.instance.v1.Instance.updateTime: object expected");
|
|
36016
36409
|
message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
|
|
36017
36410
|
}
|
|
36411
|
+
switch (object.edition) {
|
|
36412
|
+
default:
|
|
36413
|
+
if (typeof object.edition === "number") {
|
|
36414
|
+
message.edition = object.edition;
|
|
36415
|
+
break;
|
|
36416
|
+
}
|
|
36417
|
+
break;
|
|
36418
|
+
case "EDITION_UNSPECIFIED":
|
|
36419
|
+
case 0:
|
|
36420
|
+
message.edition = 0;
|
|
36421
|
+
break;
|
|
36422
|
+
case "STANDARD":
|
|
36423
|
+
case 1:
|
|
36424
|
+
message.edition = 1;
|
|
36425
|
+
break;
|
|
36426
|
+
case "ENTERPRISE":
|
|
36427
|
+
case 2:
|
|
36428
|
+
message.edition = 2;
|
|
36429
|
+
break;
|
|
36430
|
+
case "ENTERPRISE_PLUS":
|
|
36431
|
+
case 3:
|
|
36432
|
+
message.edition = 3;
|
|
36433
|
+
break;
|
|
36434
|
+
}
|
|
36018
36435
|
return message;
|
|
36019
36436
|
};
|
|
36020
36437
|
|
|
@@ -36045,6 +36462,7 @@
|
|
|
36045
36462
|
object.createTime = null;
|
|
36046
36463
|
object.updateTime = null;
|
|
36047
36464
|
object.autoscalingConfig = null;
|
|
36465
|
+
object.edition = options.enums === String ? "EDITION_UNSPECIFIED" : 0;
|
|
36048
36466
|
}
|
|
36049
36467
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
36050
36468
|
object.name = message.name;
|
|
@@ -36075,6 +36493,8 @@
|
|
|
36075
36493
|
object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
|
|
36076
36494
|
if (message.autoscalingConfig != null && message.hasOwnProperty("autoscalingConfig"))
|
|
36077
36495
|
object.autoscalingConfig = $root.google.spanner.admin.instance.v1.AutoscalingConfig.toObject(message.autoscalingConfig, options);
|
|
36496
|
+
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
36497
|
+
object.edition = options.enums === String ? $root.google.spanner.admin.instance.v1.Instance.Edition[message.edition] === undefined ? message.edition : $root.google.spanner.admin.instance.v1.Instance.Edition[message.edition] : message.edition;
|
|
36078
36498
|
return object;
|
|
36079
36499
|
};
|
|
36080
36500
|
|
|
@@ -36120,6 +36540,24 @@
|
|
|
36120
36540
|
return values;
|
|
36121
36541
|
})();
|
|
36122
36542
|
|
|
36543
|
+
/**
|
|
36544
|
+
* Edition enum.
|
|
36545
|
+
* @name google.spanner.admin.instance.v1.Instance.Edition
|
|
36546
|
+
* @enum {number}
|
|
36547
|
+
* @property {number} EDITION_UNSPECIFIED=0 EDITION_UNSPECIFIED value
|
|
36548
|
+
* @property {number} STANDARD=1 STANDARD value
|
|
36549
|
+
* @property {number} ENTERPRISE=2 ENTERPRISE value
|
|
36550
|
+
* @property {number} ENTERPRISE_PLUS=3 ENTERPRISE_PLUS value
|
|
36551
|
+
*/
|
|
36552
|
+
Instance.Edition = (function() {
|
|
36553
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
36554
|
+
values[valuesById[0] = "EDITION_UNSPECIFIED"] = 0;
|
|
36555
|
+
values[valuesById[1] = "STANDARD"] = 1;
|
|
36556
|
+
values[valuesById[2] = "ENTERPRISE"] = 2;
|
|
36557
|
+
values[valuesById[3] = "ENTERPRISE_PLUS"] = 3;
|
|
36558
|
+
return values;
|
|
36559
|
+
})();
|
|
36560
|
+
|
|
36123
36561
|
return Instance;
|
|
36124
36562
|
})();
|
|
36125
36563
|
|
|
@@ -44065,6 +44503,668 @@
|
|
|
44065
44503
|
return ListInstancePartitionOperationsResponse;
|
|
44066
44504
|
})();
|
|
44067
44505
|
|
|
44506
|
+
v1.MoveInstanceRequest = (function() {
|
|
44507
|
+
|
|
44508
|
+
/**
|
|
44509
|
+
* Properties of a MoveInstanceRequest.
|
|
44510
|
+
* @memberof google.spanner.admin.instance.v1
|
|
44511
|
+
* @interface IMoveInstanceRequest
|
|
44512
|
+
* @property {string|null} [name] MoveInstanceRequest name
|
|
44513
|
+
* @property {string|null} [targetConfig] MoveInstanceRequest targetConfig
|
|
44514
|
+
*/
|
|
44515
|
+
|
|
44516
|
+
/**
|
|
44517
|
+
* Constructs a new MoveInstanceRequest.
|
|
44518
|
+
* @memberof google.spanner.admin.instance.v1
|
|
44519
|
+
* @classdesc Represents a MoveInstanceRequest.
|
|
44520
|
+
* @implements IMoveInstanceRequest
|
|
44521
|
+
* @constructor
|
|
44522
|
+
* @param {google.spanner.admin.instance.v1.IMoveInstanceRequest=} [properties] Properties to set
|
|
44523
|
+
*/
|
|
44524
|
+
function MoveInstanceRequest(properties) {
|
|
44525
|
+
if (properties)
|
|
44526
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
44527
|
+
if (properties[keys[i]] != null)
|
|
44528
|
+
this[keys[i]] = properties[keys[i]];
|
|
44529
|
+
}
|
|
44530
|
+
|
|
44531
|
+
/**
|
|
44532
|
+
* MoveInstanceRequest name.
|
|
44533
|
+
* @member {string} name
|
|
44534
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceRequest
|
|
44535
|
+
* @instance
|
|
44536
|
+
*/
|
|
44537
|
+
MoveInstanceRequest.prototype.name = "";
|
|
44538
|
+
|
|
44539
|
+
/**
|
|
44540
|
+
* MoveInstanceRequest targetConfig.
|
|
44541
|
+
* @member {string} targetConfig
|
|
44542
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceRequest
|
|
44543
|
+
* @instance
|
|
44544
|
+
*/
|
|
44545
|
+
MoveInstanceRequest.prototype.targetConfig = "";
|
|
44546
|
+
|
|
44547
|
+
/**
|
|
44548
|
+
* Creates a new MoveInstanceRequest instance using the specified properties.
|
|
44549
|
+
* @function create
|
|
44550
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceRequest
|
|
44551
|
+
* @static
|
|
44552
|
+
* @param {google.spanner.admin.instance.v1.IMoveInstanceRequest=} [properties] Properties to set
|
|
44553
|
+
* @returns {google.spanner.admin.instance.v1.MoveInstanceRequest} MoveInstanceRequest instance
|
|
44554
|
+
*/
|
|
44555
|
+
MoveInstanceRequest.create = function create(properties) {
|
|
44556
|
+
return new MoveInstanceRequest(properties);
|
|
44557
|
+
};
|
|
44558
|
+
|
|
44559
|
+
/**
|
|
44560
|
+
* Encodes the specified MoveInstanceRequest message. Does not implicitly {@link google.spanner.admin.instance.v1.MoveInstanceRequest.verify|verify} messages.
|
|
44561
|
+
* @function encode
|
|
44562
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceRequest
|
|
44563
|
+
* @static
|
|
44564
|
+
* @param {google.spanner.admin.instance.v1.IMoveInstanceRequest} message MoveInstanceRequest message or plain object to encode
|
|
44565
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
44566
|
+
* @returns {$protobuf.Writer} Writer
|
|
44567
|
+
*/
|
|
44568
|
+
MoveInstanceRequest.encode = function encode(message, writer) {
|
|
44569
|
+
if (!writer)
|
|
44570
|
+
writer = $Writer.create();
|
|
44571
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
44572
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
44573
|
+
if (message.targetConfig != null && Object.hasOwnProperty.call(message, "targetConfig"))
|
|
44574
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.targetConfig);
|
|
44575
|
+
return writer;
|
|
44576
|
+
};
|
|
44577
|
+
|
|
44578
|
+
/**
|
|
44579
|
+
* Encodes the specified MoveInstanceRequest message, length delimited. Does not implicitly {@link google.spanner.admin.instance.v1.MoveInstanceRequest.verify|verify} messages.
|
|
44580
|
+
* @function encodeDelimited
|
|
44581
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceRequest
|
|
44582
|
+
* @static
|
|
44583
|
+
* @param {google.spanner.admin.instance.v1.IMoveInstanceRequest} message MoveInstanceRequest message or plain object to encode
|
|
44584
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
44585
|
+
* @returns {$protobuf.Writer} Writer
|
|
44586
|
+
*/
|
|
44587
|
+
MoveInstanceRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
44588
|
+
return this.encode(message, writer).ldelim();
|
|
44589
|
+
};
|
|
44590
|
+
|
|
44591
|
+
/**
|
|
44592
|
+
* Decodes a MoveInstanceRequest message from the specified reader or buffer.
|
|
44593
|
+
* @function decode
|
|
44594
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceRequest
|
|
44595
|
+
* @static
|
|
44596
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
44597
|
+
* @param {number} [length] Message length if known beforehand
|
|
44598
|
+
* @returns {google.spanner.admin.instance.v1.MoveInstanceRequest} MoveInstanceRequest
|
|
44599
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
44600
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
44601
|
+
*/
|
|
44602
|
+
MoveInstanceRequest.decode = function decode(reader, length) {
|
|
44603
|
+
if (!(reader instanceof $Reader))
|
|
44604
|
+
reader = $Reader.create(reader);
|
|
44605
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.spanner.admin.instance.v1.MoveInstanceRequest();
|
|
44606
|
+
while (reader.pos < end) {
|
|
44607
|
+
var tag = reader.uint32();
|
|
44608
|
+
switch (tag >>> 3) {
|
|
44609
|
+
case 1: {
|
|
44610
|
+
message.name = reader.string();
|
|
44611
|
+
break;
|
|
44612
|
+
}
|
|
44613
|
+
case 2: {
|
|
44614
|
+
message.targetConfig = reader.string();
|
|
44615
|
+
break;
|
|
44616
|
+
}
|
|
44617
|
+
default:
|
|
44618
|
+
reader.skipType(tag & 7);
|
|
44619
|
+
break;
|
|
44620
|
+
}
|
|
44621
|
+
}
|
|
44622
|
+
return message;
|
|
44623
|
+
};
|
|
44624
|
+
|
|
44625
|
+
/**
|
|
44626
|
+
* Decodes a MoveInstanceRequest message from the specified reader or buffer, length delimited.
|
|
44627
|
+
* @function decodeDelimited
|
|
44628
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceRequest
|
|
44629
|
+
* @static
|
|
44630
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
44631
|
+
* @returns {google.spanner.admin.instance.v1.MoveInstanceRequest} MoveInstanceRequest
|
|
44632
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
44633
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
44634
|
+
*/
|
|
44635
|
+
MoveInstanceRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
44636
|
+
if (!(reader instanceof $Reader))
|
|
44637
|
+
reader = new $Reader(reader);
|
|
44638
|
+
return this.decode(reader, reader.uint32());
|
|
44639
|
+
};
|
|
44640
|
+
|
|
44641
|
+
/**
|
|
44642
|
+
* Verifies a MoveInstanceRequest message.
|
|
44643
|
+
* @function verify
|
|
44644
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceRequest
|
|
44645
|
+
* @static
|
|
44646
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
44647
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
44648
|
+
*/
|
|
44649
|
+
MoveInstanceRequest.verify = function verify(message) {
|
|
44650
|
+
if (typeof message !== "object" || message === null)
|
|
44651
|
+
return "object expected";
|
|
44652
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
44653
|
+
if (!$util.isString(message.name))
|
|
44654
|
+
return "name: string expected";
|
|
44655
|
+
if (message.targetConfig != null && message.hasOwnProperty("targetConfig"))
|
|
44656
|
+
if (!$util.isString(message.targetConfig))
|
|
44657
|
+
return "targetConfig: string expected";
|
|
44658
|
+
return null;
|
|
44659
|
+
};
|
|
44660
|
+
|
|
44661
|
+
/**
|
|
44662
|
+
* Creates a MoveInstanceRequest message from a plain object. Also converts values to their respective internal types.
|
|
44663
|
+
* @function fromObject
|
|
44664
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceRequest
|
|
44665
|
+
* @static
|
|
44666
|
+
* @param {Object.<string,*>} object Plain object
|
|
44667
|
+
* @returns {google.spanner.admin.instance.v1.MoveInstanceRequest} MoveInstanceRequest
|
|
44668
|
+
*/
|
|
44669
|
+
MoveInstanceRequest.fromObject = function fromObject(object) {
|
|
44670
|
+
if (object instanceof $root.google.spanner.admin.instance.v1.MoveInstanceRequest)
|
|
44671
|
+
return object;
|
|
44672
|
+
var message = new $root.google.spanner.admin.instance.v1.MoveInstanceRequest();
|
|
44673
|
+
if (object.name != null)
|
|
44674
|
+
message.name = String(object.name);
|
|
44675
|
+
if (object.targetConfig != null)
|
|
44676
|
+
message.targetConfig = String(object.targetConfig);
|
|
44677
|
+
return message;
|
|
44678
|
+
};
|
|
44679
|
+
|
|
44680
|
+
/**
|
|
44681
|
+
* Creates a plain object from a MoveInstanceRequest message. Also converts values to other types if specified.
|
|
44682
|
+
* @function toObject
|
|
44683
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceRequest
|
|
44684
|
+
* @static
|
|
44685
|
+
* @param {google.spanner.admin.instance.v1.MoveInstanceRequest} message MoveInstanceRequest
|
|
44686
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
44687
|
+
* @returns {Object.<string,*>} Plain object
|
|
44688
|
+
*/
|
|
44689
|
+
MoveInstanceRequest.toObject = function toObject(message, options) {
|
|
44690
|
+
if (!options)
|
|
44691
|
+
options = {};
|
|
44692
|
+
var object = {};
|
|
44693
|
+
if (options.defaults) {
|
|
44694
|
+
object.name = "";
|
|
44695
|
+
object.targetConfig = "";
|
|
44696
|
+
}
|
|
44697
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
44698
|
+
object.name = message.name;
|
|
44699
|
+
if (message.targetConfig != null && message.hasOwnProperty("targetConfig"))
|
|
44700
|
+
object.targetConfig = message.targetConfig;
|
|
44701
|
+
return object;
|
|
44702
|
+
};
|
|
44703
|
+
|
|
44704
|
+
/**
|
|
44705
|
+
* Converts this MoveInstanceRequest to JSON.
|
|
44706
|
+
* @function toJSON
|
|
44707
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceRequest
|
|
44708
|
+
* @instance
|
|
44709
|
+
* @returns {Object.<string,*>} JSON object
|
|
44710
|
+
*/
|
|
44711
|
+
MoveInstanceRequest.prototype.toJSON = function toJSON() {
|
|
44712
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
44713
|
+
};
|
|
44714
|
+
|
|
44715
|
+
/**
|
|
44716
|
+
* Gets the default type url for MoveInstanceRequest
|
|
44717
|
+
* @function getTypeUrl
|
|
44718
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceRequest
|
|
44719
|
+
* @static
|
|
44720
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
44721
|
+
* @returns {string} The default type url
|
|
44722
|
+
*/
|
|
44723
|
+
MoveInstanceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
44724
|
+
if (typeUrlPrefix === undefined) {
|
|
44725
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
44726
|
+
}
|
|
44727
|
+
return typeUrlPrefix + "/google.spanner.admin.instance.v1.MoveInstanceRequest";
|
|
44728
|
+
};
|
|
44729
|
+
|
|
44730
|
+
return MoveInstanceRequest;
|
|
44731
|
+
})();
|
|
44732
|
+
|
|
44733
|
+
v1.MoveInstanceResponse = (function() {
|
|
44734
|
+
|
|
44735
|
+
/**
|
|
44736
|
+
* Properties of a MoveInstanceResponse.
|
|
44737
|
+
* @memberof google.spanner.admin.instance.v1
|
|
44738
|
+
* @interface IMoveInstanceResponse
|
|
44739
|
+
*/
|
|
44740
|
+
|
|
44741
|
+
/**
|
|
44742
|
+
* Constructs a new MoveInstanceResponse.
|
|
44743
|
+
* @memberof google.spanner.admin.instance.v1
|
|
44744
|
+
* @classdesc Represents a MoveInstanceResponse.
|
|
44745
|
+
* @implements IMoveInstanceResponse
|
|
44746
|
+
* @constructor
|
|
44747
|
+
* @param {google.spanner.admin.instance.v1.IMoveInstanceResponse=} [properties] Properties to set
|
|
44748
|
+
*/
|
|
44749
|
+
function MoveInstanceResponse(properties) {
|
|
44750
|
+
if (properties)
|
|
44751
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
44752
|
+
if (properties[keys[i]] != null)
|
|
44753
|
+
this[keys[i]] = properties[keys[i]];
|
|
44754
|
+
}
|
|
44755
|
+
|
|
44756
|
+
/**
|
|
44757
|
+
* Creates a new MoveInstanceResponse instance using the specified properties.
|
|
44758
|
+
* @function create
|
|
44759
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceResponse
|
|
44760
|
+
* @static
|
|
44761
|
+
* @param {google.spanner.admin.instance.v1.IMoveInstanceResponse=} [properties] Properties to set
|
|
44762
|
+
* @returns {google.spanner.admin.instance.v1.MoveInstanceResponse} MoveInstanceResponse instance
|
|
44763
|
+
*/
|
|
44764
|
+
MoveInstanceResponse.create = function create(properties) {
|
|
44765
|
+
return new MoveInstanceResponse(properties);
|
|
44766
|
+
};
|
|
44767
|
+
|
|
44768
|
+
/**
|
|
44769
|
+
* Encodes the specified MoveInstanceResponse message. Does not implicitly {@link google.spanner.admin.instance.v1.MoveInstanceResponse.verify|verify} messages.
|
|
44770
|
+
* @function encode
|
|
44771
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceResponse
|
|
44772
|
+
* @static
|
|
44773
|
+
* @param {google.spanner.admin.instance.v1.IMoveInstanceResponse} message MoveInstanceResponse message or plain object to encode
|
|
44774
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
44775
|
+
* @returns {$protobuf.Writer} Writer
|
|
44776
|
+
*/
|
|
44777
|
+
MoveInstanceResponse.encode = function encode(message, writer) {
|
|
44778
|
+
if (!writer)
|
|
44779
|
+
writer = $Writer.create();
|
|
44780
|
+
return writer;
|
|
44781
|
+
};
|
|
44782
|
+
|
|
44783
|
+
/**
|
|
44784
|
+
* Encodes the specified MoveInstanceResponse message, length delimited. Does not implicitly {@link google.spanner.admin.instance.v1.MoveInstanceResponse.verify|verify} messages.
|
|
44785
|
+
* @function encodeDelimited
|
|
44786
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceResponse
|
|
44787
|
+
* @static
|
|
44788
|
+
* @param {google.spanner.admin.instance.v1.IMoveInstanceResponse} message MoveInstanceResponse message or plain object to encode
|
|
44789
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
44790
|
+
* @returns {$protobuf.Writer} Writer
|
|
44791
|
+
*/
|
|
44792
|
+
MoveInstanceResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
44793
|
+
return this.encode(message, writer).ldelim();
|
|
44794
|
+
};
|
|
44795
|
+
|
|
44796
|
+
/**
|
|
44797
|
+
* Decodes a MoveInstanceResponse message from the specified reader or buffer.
|
|
44798
|
+
* @function decode
|
|
44799
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceResponse
|
|
44800
|
+
* @static
|
|
44801
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
44802
|
+
* @param {number} [length] Message length if known beforehand
|
|
44803
|
+
* @returns {google.spanner.admin.instance.v1.MoveInstanceResponse} MoveInstanceResponse
|
|
44804
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
44805
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
44806
|
+
*/
|
|
44807
|
+
MoveInstanceResponse.decode = function decode(reader, length) {
|
|
44808
|
+
if (!(reader instanceof $Reader))
|
|
44809
|
+
reader = $Reader.create(reader);
|
|
44810
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.spanner.admin.instance.v1.MoveInstanceResponse();
|
|
44811
|
+
while (reader.pos < end) {
|
|
44812
|
+
var tag = reader.uint32();
|
|
44813
|
+
switch (tag >>> 3) {
|
|
44814
|
+
default:
|
|
44815
|
+
reader.skipType(tag & 7);
|
|
44816
|
+
break;
|
|
44817
|
+
}
|
|
44818
|
+
}
|
|
44819
|
+
return message;
|
|
44820
|
+
};
|
|
44821
|
+
|
|
44822
|
+
/**
|
|
44823
|
+
* Decodes a MoveInstanceResponse message from the specified reader or buffer, length delimited.
|
|
44824
|
+
* @function decodeDelimited
|
|
44825
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceResponse
|
|
44826
|
+
* @static
|
|
44827
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
44828
|
+
* @returns {google.spanner.admin.instance.v1.MoveInstanceResponse} MoveInstanceResponse
|
|
44829
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
44830
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
44831
|
+
*/
|
|
44832
|
+
MoveInstanceResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
44833
|
+
if (!(reader instanceof $Reader))
|
|
44834
|
+
reader = new $Reader(reader);
|
|
44835
|
+
return this.decode(reader, reader.uint32());
|
|
44836
|
+
};
|
|
44837
|
+
|
|
44838
|
+
/**
|
|
44839
|
+
* Verifies a MoveInstanceResponse message.
|
|
44840
|
+
* @function verify
|
|
44841
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceResponse
|
|
44842
|
+
* @static
|
|
44843
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
44844
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
44845
|
+
*/
|
|
44846
|
+
MoveInstanceResponse.verify = function verify(message) {
|
|
44847
|
+
if (typeof message !== "object" || message === null)
|
|
44848
|
+
return "object expected";
|
|
44849
|
+
return null;
|
|
44850
|
+
};
|
|
44851
|
+
|
|
44852
|
+
/**
|
|
44853
|
+
* Creates a MoveInstanceResponse message from a plain object. Also converts values to their respective internal types.
|
|
44854
|
+
* @function fromObject
|
|
44855
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceResponse
|
|
44856
|
+
* @static
|
|
44857
|
+
* @param {Object.<string,*>} object Plain object
|
|
44858
|
+
* @returns {google.spanner.admin.instance.v1.MoveInstanceResponse} MoveInstanceResponse
|
|
44859
|
+
*/
|
|
44860
|
+
MoveInstanceResponse.fromObject = function fromObject(object) {
|
|
44861
|
+
if (object instanceof $root.google.spanner.admin.instance.v1.MoveInstanceResponse)
|
|
44862
|
+
return object;
|
|
44863
|
+
return new $root.google.spanner.admin.instance.v1.MoveInstanceResponse();
|
|
44864
|
+
};
|
|
44865
|
+
|
|
44866
|
+
/**
|
|
44867
|
+
* Creates a plain object from a MoveInstanceResponse message. Also converts values to other types if specified.
|
|
44868
|
+
* @function toObject
|
|
44869
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceResponse
|
|
44870
|
+
* @static
|
|
44871
|
+
* @param {google.spanner.admin.instance.v1.MoveInstanceResponse} message MoveInstanceResponse
|
|
44872
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
44873
|
+
* @returns {Object.<string,*>} Plain object
|
|
44874
|
+
*/
|
|
44875
|
+
MoveInstanceResponse.toObject = function toObject() {
|
|
44876
|
+
return {};
|
|
44877
|
+
};
|
|
44878
|
+
|
|
44879
|
+
/**
|
|
44880
|
+
* Converts this MoveInstanceResponse to JSON.
|
|
44881
|
+
* @function toJSON
|
|
44882
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceResponse
|
|
44883
|
+
* @instance
|
|
44884
|
+
* @returns {Object.<string,*>} JSON object
|
|
44885
|
+
*/
|
|
44886
|
+
MoveInstanceResponse.prototype.toJSON = function toJSON() {
|
|
44887
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
44888
|
+
};
|
|
44889
|
+
|
|
44890
|
+
/**
|
|
44891
|
+
* Gets the default type url for MoveInstanceResponse
|
|
44892
|
+
* @function getTypeUrl
|
|
44893
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceResponse
|
|
44894
|
+
* @static
|
|
44895
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
44896
|
+
* @returns {string} The default type url
|
|
44897
|
+
*/
|
|
44898
|
+
MoveInstanceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
44899
|
+
if (typeUrlPrefix === undefined) {
|
|
44900
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
44901
|
+
}
|
|
44902
|
+
return typeUrlPrefix + "/google.spanner.admin.instance.v1.MoveInstanceResponse";
|
|
44903
|
+
};
|
|
44904
|
+
|
|
44905
|
+
return MoveInstanceResponse;
|
|
44906
|
+
})();
|
|
44907
|
+
|
|
44908
|
+
v1.MoveInstanceMetadata = (function() {
|
|
44909
|
+
|
|
44910
|
+
/**
|
|
44911
|
+
* Properties of a MoveInstanceMetadata.
|
|
44912
|
+
* @memberof google.spanner.admin.instance.v1
|
|
44913
|
+
* @interface IMoveInstanceMetadata
|
|
44914
|
+
* @property {string|null} [targetConfig] MoveInstanceMetadata targetConfig
|
|
44915
|
+
* @property {google.spanner.admin.instance.v1.IOperationProgress|null} [progress] MoveInstanceMetadata progress
|
|
44916
|
+
* @property {google.protobuf.ITimestamp|null} [cancelTime] MoveInstanceMetadata cancelTime
|
|
44917
|
+
*/
|
|
44918
|
+
|
|
44919
|
+
/**
|
|
44920
|
+
* Constructs a new MoveInstanceMetadata.
|
|
44921
|
+
* @memberof google.spanner.admin.instance.v1
|
|
44922
|
+
* @classdesc Represents a MoveInstanceMetadata.
|
|
44923
|
+
* @implements IMoveInstanceMetadata
|
|
44924
|
+
* @constructor
|
|
44925
|
+
* @param {google.spanner.admin.instance.v1.IMoveInstanceMetadata=} [properties] Properties to set
|
|
44926
|
+
*/
|
|
44927
|
+
function MoveInstanceMetadata(properties) {
|
|
44928
|
+
if (properties)
|
|
44929
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
44930
|
+
if (properties[keys[i]] != null)
|
|
44931
|
+
this[keys[i]] = properties[keys[i]];
|
|
44932
|
+
}
|
|
44933
|
+
|
|
44934
|
+
/**
|
|
44935
|
+
* MoveInstanceMetadata targetConfig.
|
|
44936
|
+
* @member {string} targetConfig
|
|
44937
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceMetadata
|
|
44938
|
+
* @instance
|
|
44939
|
+
*/
|
|
44940
|
+
MoveInstanceMetadata.prototype.targetConfig = "";
|
|
44941
|
+
|
|
44942
|
+
/**
|
|
44943
|
+
* MoveInstanceMetadata progress.
|
|
44944
|
+
* @member {google.spanner.admin.instance.v1.IOperationProgress|null|undefined} progress
|
|
44945
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceMetadata
|
|
44946
|
+
* @instance
|
|
44947
|
+
*/
|
|
44948
|
+
MoveInstanceMetadata.prototype.progress = null;
|
|
44949
|
+
|
|
44950
|
+
/**
|
|
44951
|
+
* MoveInstanceMetadata cancelTime.
|
|
44952
|
+
* @member {google.protobuf.ITimestamp|null|undefined} cancelTime
|
|
44953
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceMetadata
|
|
44954
|
+
* @instance
|
|
44955
|
+
*/
|
|
44956
|
+
MoveInstanceMetadata.prototype.cancelTime = null;
|
|
44957
|
+
|
|
44958
|
+
/**
|
|
44959
|
+
* Creates a new MoveInstanceMetadata instance using the specified properties.
|
|
44960
|
+
* @function create
|
|
44961
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceMetadata
|
|
44962
|
+
* @static
|
|
44963
|
+
* @param {google.spanner.admin.instance.v1.IMoveInstanceMetadata=} [properties] Properties to set
|
|
44964
|
+
* @returns {google.spanner.admin.instance.v1.MoveInstanceMetadata} MoveInstanceMetadata instance
|
|
44965
|
+
*/
|
|
44966
|
+
MoveInstanceMetadata.create = function create(properties) {
|
|
44967
|
+
return new MoveInstanceMetadata(properties);
|
|
44968
|
+
};
|
|
44969
|
+
|
|
44970
|
+
/**
|
|
44971
|
+
* Encodes the specified MoveInstanceMetadata message. Does not implicitly {@link google.spanner.admin.instance.v1.MoveInstanceMetadata.verify|verify} messages.
|
|
44972
|
+
* @function encode
|
|
44973
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceMetadata
|
|
44974
|
+
* @static
|
|
44975
|
+
* @param {google.spanner.admin.instance.v1.IMoveInstanceMetadata} message MoveInstanceMetadata message or plain object to encode
|
|
44976
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
44977
|
+
* @returns {$protobuf.Writer} Writer
|
|
44978
|
+
*/
|
|
44979
|
+
MoveInstanceMetadata.encode = function encode(message, writer) {
|
|
44980
|
+
if (!writer)
|
|
44981
|
+
writer = $Writer.create();
|
|
44982
|
+
if (message.targetConfig != null && Object.hasOwnProperty.call(message, "targetConfig"))
|
|
44983
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.targetConfig);
|
|
44984
|
+
if (message.progress != null && Object.hasOwnProperty.call(message, "progress"))
|
|
44985
|
+
$root.google.spanner.admin.instance.v1.OperationProgress.encode(message.progress, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
44986
|
+
if (message.cancelTime != null && Object.hasOwnProperty.call(message, "cancelTime"))
|
|
44987
|
+
$root.google.protobuf.Timestamp.encode(message.cancelTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
44988
|
+
return writer;
|
|
44989
|
+
};
|
|
44990
|
+
|
|
44991
|
+
/**
|
|
44992
|
+
* Encodes the specified MoveInstanceMetadata message, length delimited. Does not implicitly {@link google.spanner.admin.instance.v1.MoveInstanceMetadata.verify|verify} messages.
|
|
44993
|
+
* @function encodeDelimited
|
|
44994
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceMetadata
|
|
44995
|
+
* @static
|
|
44996
|
+
* @param {google.spanner.admin.instance.v1.IMoveInstanceMetadata} message MoveInstanceMetadata message or plain object to encode
|
|
44997
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
44998
|
+
* @returns {$protobuf.Writer} Writer
|
|
44999
|
+
*/
|
|
45000
|
+
MoveInstanceMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
45001
|
+
return this.encode(message, writer).ldelim();
|
|
45002
|
+
};
|
|
45003
|
+
|
|
45004
|
+
/**
|
|
45005
|
+
* Decodes a MoveInstanceMetadata message from the specified reader or buffer.
|
|
45006
|
+
* @function decode
|
|
45007
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceMetadata
|
|
45008
|
+
* @static
|
|
45009
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
45010
|
+
* @param {number} [length] Message length if known beforehand
|
|
45011
|
+
* @returns {google.spanner.admin.instance.v1.MoveInstanceMetadata} MoveInstanceMetadata
|
|
45012
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
45013
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
45014
|
+
*/
|
|
45015
|
+
MoveInstanceMetadata.decode = function decode(reader, length) {
|
|
45016
|
+
if (!(reader instanceof $Reader))
|
|
45017
|
+
reader = $Reader.create(reader);
|
|
45018
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.spanner.admin.instance.v1.MoveInstanceMetadata();
|
|
45019
|
+
while (reader.pos < end) {
|
|
45020
|
+
var tag = reader.uint32();
|
|
45021
|
+
switch (tag >>> 3) {
|
|
45022
|
+
case 1: {
|
|
45023
|
+
message.targetConfig = reader.string();
|
|
45024
|
+
break;
|
|
45025
|
+
}
|
|
45026
|
+
case 2: {
|
|
45027
|
+
message.progress = $root.google.spanner.admin.instance.v1.OperationProgress.decode(reader, reader.uint32());
|
|
45028
|
+
break;
|
|
45029
|
+
}
|
|
45030
|
+
case 3: {
|
|
45031
|
+
message.cancelTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
45032
|
+
break;
|
|
45033
|
+
}
|
|
45034
|
+
default:
|
|
45035
|
+
reader.skipType(tag & 7);
|
|
45036
|
+
break;
|
|
45037
|
+
}
|
|
45038
|
+
}
|
|
45039
|
+
return message;
|
|
45040
|
+
};
|
|
45041
|
+
|
|
45042
|
+
/**
|
|
45043
|
+
* Decodes a MoveInstanceMetadata message from the specified reader or buffer, length delimited.
|
|
45044
|
+
* @function decodeDelimited
|
|
45045
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceMetadata
|
|
45046
|
+
* @static
|
|
45047
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
45048
|
+
* @returns {google.spanner.admin.instance.v1.MoveInstanceMetadata} MoveInstanceMetadata
|
|
45049
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
45050
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
45051
|
+
*/
|
|
45052
|
+
MoveInstanceMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
45053
|
+
if (!(reader instanceof $Reader))
|
|
45054
|
+
reader = new $Reader(reader);
|
|
45055
|
+
return this.decode(reader, reader.uint32());
|
|
45056
|
+
};
|
|
45057
|
+
|
|
45058
|
+
/**
|
|
45059
|
+
* Verifies a MoveInstanceMetadata message.
|
|
45060
|
+
* @function verify
|
|
45061
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceMetadata
|
|
45062
|
+
* @static
|
|
45063
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
45064
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
45065
|
+
*/
|
|
45066
|
+
MoveInstanceMetadata.verify = function verify(message) {
|
|
45067
|
+
if (typeof message !== "object" || message === null)
|
|
45068
|
+
return "object expected";
|
|
45069
|
+
if (message.targetConfig != null && message.hasOwnProperty("targetConfig"))
|
|
45070
|
+
if (!$util.isString(message.targetConfig))
|
|
45071
|
+
return "targetConfig: string expected";
|
|
45072
|
+
if (message.progress != null && message.hasOwnProperty("progress")) {
|
|
45073
|
+
var error = $root.google.spanner.admin.instance.v1.OperationProgress.verify(message.progress);
|
|
45074
|
+
if (error)
|
|
45075
|
+
return "progress." + error;
|
|
45076
|
+
}
|
|
45077
|
+
if (message.cancelTime != null && message.hasOwnProperty("cancelTime")) {
|
|
45078
|
+
var error = $root.google.protobuf.Timestamp.verify(message.cancelTime);
|
|
45079
|
+
if (error)
|
|
45080
|
+
return "cancelTime." + error;
|
|
45081
|
+
}
|
|
45082
|
+
return null;
|
|
45083
|
+
};
|
|
45084
|
+
|
|
45085
|
+
/**
|
|
45086
|
+
* Creates a MoveInstanceMetadata message from a plain object. Also converts values to their respective internal types.
|
|
45087
|
+
* @function fromObject
|
|
45088
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceMetadata
|
|
45089
|
+
* @static
|
|
45090
|
+
* @param {Object.<string,*>} object Plain object
|
|
45091
|
+
* @returns {google.spanner.admin.instance.v1.MoveInstanceMetadata} MoveInstanceMetadata
|
|
45092
|
+
*/
|
|
45093
|
+
MoveInstanceMetadata.fromObject = function fromObject(object) {
|
|
45094
|
+
if (object instanceof $root.google.spanner.admin.instance.v1.MoveInstanceMetadata)
|
|
45095
|
+
return object;
|
|
45096
|
+
var message = new $root.google.spanner.admin.instance.v1.MoveInstanceMetadata();
|
|
45097
|
+
if (object.targetConfig != null)
|
|
45098
|
+
message.targetConfig = String(object.targetConfig);
|
|
45099
|
+
if (object.progress != null) {
|
|
45100
|
+
if (typeof object.progress !== "object")
|
|
45101
|
+
throw TypeError(".google.spanner.admin.instance.v1.MoveInstanceMetadata.progress: object expected");
|
|
45102
|
+
message.progress = $root.google.spanner.admin.instance.v1.OperationProgress.fromObject(object.progress);
|
|
45103
|
+
}
|
|
45104
|
+
if (object.cancelTime != null) {
|
|
45105
|
+
if (typeof object.cancelTime !== "object")
|
|
45106
|
+
throw TypeError(".google.spanner.admin.instance.v1.MoveInstanceMetadata.cancelTime: object expected");
|
|
45107
|
+
message.cancelTime = $root.google.protobuf.Timestamp.fromObject(object.cancelTime);
|
|
45108
|
+
}
|
|
45109
|
+
return message;
|
|
45110
|
+
};
|
|
45111
|
+
|
|
45112
|
+
/**
|
|
45113
|
+
* Creates a plain object from a MoveInstanceMetadata message. Also converts values to other types if specified.
|
|
45114
|
+
* @function toObject
|
|
45115
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceMetadata
|
|
45116
|
+
* @static
|
|
45117
|
+
* @param {google.spanner.admin.instance.v1.MoveInstanceMetadata} message MoveInstanceMetadata
|
|
45118
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
45119
|
+
* @returns {Object.<string,*>} Plain object
|
|
45120
|
+
*/
|
|
45121
|
+
MoveInstanceMetadata.toObject = function toObject(message, options) {
|
|
45122
|
+
if (!options)
|
|
45123
|
+
options = {};
|
|
45124
|
+
var object = {};
|
|
45125
|
+
if (options.defaults) {
|
|
45126
|
+
object.targetConfig = "";
|
|
45127
|
+
object.progress = null;
|
|
45128
|
+
object.cancelTime = null;
|
|
45129
|
+
}
|
|
45130
|
+
if (message.targetConfig != null && message.hasOwnProperty("targetConfig"))
|
|
45131
|
+
object.targetConfig = message.targetConfig;
|
|
45132
|
+
if (message.progress != null && message.hasOwnProperty("progress"))
|
|
45133
|
+
object.progress = $root.google.spanner.admin.instance.v1.OperationProgress.toObject(message.progress, options);
|
|
45134
|
+
if (message.cancelTime != null && message.hasOwnProperty("cancelTime"))
|
|
45135
|
+
object.cancelTime = $root.google.protobuf.Timestamp.toObject(message.cancelTime, options);
|
|
45136
|
+
return object;
|
|
45137
|
+
};
|
|
45138
|
+
|
|
45139
|
+
/**
|
|
45140
|
+
* Converts this MoveInstanceMetadata to JSON.
|
|
45141
|
+
* @function toJSON
|
|
45142
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceMetadata
|
|
45143
|
+
* @instance
|
|
45144
|
+
* @returns {Object.<string,*>} JSON object
|
|
45145
|
+
*/
|
|
45146
|
+
MoveInstanceMetadata.prototype.toJSON = function toJSON() {
|
|
45147
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
45148
|
+
};
|
|
45149
|
+
|
|
45150
|
+
/**
|
|
45151
|
+
* Gets the default type url for MoveInstanceMetadata
|
|
45152
|
+
* @function getTypeUrl
|
|
45153
|
+
* @memberof google.spanner.admin.instance.v1.MoveInstanceMetadata
|
|
45154
|
+
* @static
|
|
45155
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
45156
|
+
* @returns {string} The default type url
|
|
45157
|
+
*/
|
|
45158
|
+
MoveInstanceMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
45159
|
+
if (typeUrlPrefix === undefined) {
|
|
45160
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
45161
|
+
}
|
|
45162
|
+
return typeUrlPrefix + "/google.spanner.admin.instance.v1.MoveInstanceMetadata";
|
|
45163
|
+
};
|
|
45164
|
+
|
|
45165
|
+
return MoveInstanceMetadata;
|
|
45166
|
+
})();
|
|
45167
|
+
|
|
44068
45168
|
return v1;
|
|
44069
45169
|
})();
|
|
44070
45170
|
|