@google-cloud/spanner 7.13.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 +12 -0
- package/build/protos/google/spanner/admin/database/v1/backup.proto +9 -2
- package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +203 -62
- package/build/protos/protos.d.ts +338 -0
- package/build/protos/protos.js +765 -0
- package/build/protos/protos.json +80 -1
- 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
|
@@ -34225,6 +34225,39 @@
|
|
|
34225
34225
|
* @variation 2
|
|
34226
34226
|
*/
|
|
34227
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
|
+
|
|
34228
34261
|
return InstanceAdmin;
|
|
34229
34262
|
})();
|
|
34230
34263
|
|
|
@@ -35933,6 +35966,7 @@
|
|
|
35933
35966
|
* @property {Array.<string>|null} [endpointUris] Instance endpointUris
|
|
35934
35967
|
* @property {google.protobuf.ITimestamp|null} [createTime] Instance createTime
|
|
35935
35968
|
* @property {google.protobuf.ITimestamp|null} [updateTime] Instance updateTime
|
|
35969
|
+
* @property {google.spanner.admin.instance.v1.Instance.Edition|null} [edition] Instance edition
|
|
35936
35970
|
*/
|
|
35937
35971
|
|
|
35938
35972
|
/**
|
|
@@ -36040,6 +36074,14 @@
|
|
|
36040
36074
|
*/
|
|
36041
36075
|
Instance.prototype.updateTime = null;
|
|
36042
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
|
+
|
|
36043
36085
|
/**
|
|
36044
36086
|
* Creates a new Instance instance using the specified properties.
|
|
36045
36087
|
* @function create
|
|
@@ -36088,6 +36130,8 @@
|
|
|
36088
36130
|
$root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
36089
36131
|
if (message.autoscalingConfig != null && Object.hasOwnProperty.call(message, "autoscalingConfig"))
|
|
36090
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);
|
|
36091
36135
|
return writer;
|
|
36092
36136
|
};
|
|
36093
36137
|
|
|
@@ -36187,6 +36231,10 @@
|
|
|
36187
36231
|
message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
36188
36232
|
break;
|
|
36189
36233
|
}
|
|
36234
|
+
case 20: {
|
|
36235
|
+
message.edition = reader.int32();
|
|
36236
|
+
break;
|
|
36237
|
+
}
|
|
36190
36238
|
default:
|
|
36191
36239
|
reader.skipType(tag & 7);
|
|
36192
36240
|
break;
|
|
@@ -36276,6 +36324,16 @@
|
|
|
36276
36324
|
if (error)
|
|
36277
36325
|
return "updateTime." + error;
|
|
36278
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
|
+
}
|
|
36279
36337
|
return null;
|
|
36280
36338
|
};
|
|
36281
36339
|
|
|
@@ -36350,6 +36408,30 @@
|
|
|
36350
36408
|
throw TypeError(".google.spanner.admin.instance.v1.Instance.updateTime: object expected");
|
|
36351
36409
|
message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
|
|
36352
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
|
+
}
|
|
36353
36435
|
return message;
|
|
36354
36436
|
};
|
|
36355
36437
|
|
|
@@ -36380,6 +36462,7 @@
|
|
|
36380
36462
|
object.createTime = null;
|
|
36381
36463
|
object.updateTime = null;
|
|
36382
36464
|
object.autoscalingConfig = null;
|
|
36465
|
+
object.edition = options.enums === String ? "EDITION_UNSPECIFIED" : 0;
|
|
36383
36466
|
}
|
|
36384
36467
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
36385
36468
|
object.name = message.name;
|
|
@@ -36410,6 +36493,8 @@
|
|
|
36410
36493
|
object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
|
|
36411
36494
|
if (message.autoscalingConfig != null && message.hasOwnProperty("autoscalingConfig"))
|
|
36412
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;
|
|
36413
36498
|
return object;
|
|
36414
36499
|
};
|
|
36415
36500
|
|
|
@@ -36455,6 +36540,24 @@
|
|
|
36455
36540
|
return values;
|
|
36456
36541
|
})();
|
|
36457
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
|
+
|
|
36458
36561
|
return Instance;
|
|
36459
36562
|
})();
|
|
36460
36563
|
|
|
@@ -44400,6 +44503,668 @@
|
|
|
44400
44503
|
return ListInstancePartitionOperationsResponse;
|
|
44401
44504
|
})();
|
|
44402
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
|
+
|
|
44403
45168
|
return v1;
|
|
44404
45169
|
})();
|
|
44405
45170
|
|