@google-cloud/spanner 7.17.1 → 7.18.1
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 +14 -0
- package/README.md +1 -0
- package/build/protos/google/spanner/admin/database/v1/backup_schedule.proto +1 -1
- package/build/protos/google/spanner/admin/instance/v1/common.proto +1 -0
- package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +225 -98
- package/build/protos/google/spanner/v1/type.proto +4 -0
- package/build/protos/protos.d.ts +319 -1
- package/build/protos/protos.js +870 -48
- package/build/protos/protos.json +96 -7
- package/build/src/database.d.ts +0 -1
- package/build/src/instance-config.d.ts +0 -1
- package/build/src/instance.d.ts +0 -1
- package/build/src/instrument.js +3 -0
- package/build/src/session-factory.d.ts +0 -1
- package/build/src/session.d.ts +0 -1
- package/build/src/v1/database_admin_client.js +1 -1
- package/build/src/v1/instance_admin_client.d.ts +60 -57
- package/build/src/v1/instance_admin_client.js +15 -13
- package/build/src/v1/spanner_client.js +1 -1
- package/build/src/v1/spanner_executor_proxy_client.js +1 -1
- package/package.json +1 -1
package/build/protos/protos.js
CHANGED
|
@@ -34778,6 +34778,9 @@
|
|
|
34778
34778
|
* @property {Array.<string>|null} [leaderOptions] InstanceConfig leaderOptions
|
|
34779
34779
|
* @property {boolean|null} [reconciling] InstanceConfig reconciling
|
|
34780
34780
|
* @property {google.spanner.admin.instance.v1.InstanceConfig.State|null} [state] InstanceConfig state
|
|
34781
|
+
* @property {google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability|null} [freeInstanceAvailability] InstanceConfig freeInstanceAvailability
|
|
34782
|
+
* @property {google.spanner.admin.instance.v1.InstanceConfig.QuorumType|null} [quorumType] InstanceConfig quorumType
|
|
34783
|
+
* @property {number|Long|null} [storageLimitPerProcessingUnit] InstanceConfig storageLimitPerProcessingUnit
|
|
34781
34784
|
*/
|
|
34782
34785
|
|
|
34783
34786
|
/**
|
|
@@ -34887,6 +34890,30 @@
|
|
|
34887
34890
|
*/
|
|
34888
34891
|
InstanceConfig.prototype.state = 0;
|
|
34889
34892
|
|
|
34893
|
+
/**
|
|
34894
|
+
* InstanceConfig freeInstanceAvailability.
|
|
34895
|
+
* @member {google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability} freeInstanceAvailability
|
|
34896
|
+
* @memberof google.spanner.admin.instance.v1.InstanceConfig
|
|
34897
|
+
* @instance
|
|
34898
|
+
*/
|
|
34899
|
+
InstanceConfig.prototype.freeInstanceAvailability = 0;
|
|
34900
|
+
|
|
34901
|
+
/**
|
|
34902
|
+
* InstanceConfig quorumType.
|
|
34903
|
+
* @member {google.spanner.admin.instance.v1.InstanceConfig.QuorumType} quorumType
|
|
34904
|
+
* @memberof google.spanner.admin.instance.v1.InstanceConfig
|
|
34905
|
+
* @instance
|
|
34906
|
+
*/
|
|
34907
|
+
InstanceConfig.prototype.quorumType = 0;
|
|
34908
|
+
|
|
34909
|
+
/**
|
|
34910
|
+
* InstanceConfig storageLimitPerProcessingUnit.
|
|
34911
|
+
* @member {number|Long} storageLimitPerProcessingUnit
|
|
34912
|
+
* @memberof google.spanner.admin.instance.v1.InstanceConfig
|
|
34913
|
+
* @instance
|
|
34914
|
+
*/
|
|
34915
|
+
InstanceConfig.prototype.storageLimitPerProcessingUnit = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
34916
|
+
|
|
34890
34917
|
/**
|
|
34891
34918
|
* Creates a new InstanceConfig instance using the specified properties.
|
|
34892
34919
|
* @function create
|
|
@@ -34937,6 +34964,12 @@
|
|
|
34937
34964
|
writer.uint32(/* id 10, wireType 0 =*/80).bool(message.reconciling);
|
|
34938
34965
|
if (message.state != null && Object.hasOwnProperty.call(message, "state"))
|
|
34939
34966
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.state);
|
|
34967
|
+
if (message.freeInstanceAvailability != null && Object.hasOwnProperty.call(message, "freeInstanceAvailability"))
|
|
34968
|
+
writer.uint32(/* id 12, wireType 0 =*/96).int32(message.freeInstanceAvailability);
|
|
34969
|
+
if (message.quorumType != null && Object.hasOwnProperty.call(message, "quorumType"))
|
|
34970
|
+
writer.uint32(/* id 18, wireType 0 =*/144).int32(message.quorumType);
|
|
34971
|
+
if (message.storageLimitPerProcessingUnit != null && Object.hasOwnProperty.call(message, "storageLimitPerProcessingUnit"))
|
|
34972
|
+
writer.uint32(/* id 19, wireType 0 =*/152).int64(message.storageLimitPerProcessingUnit);
|
|
34940
34973
|
return writer;
|
|
34941
34974
|
};
|
|
34942
34975
|
|
|
@@ -35040,6 +35073,18 @@
|
|
|
35040
35073
|
message.state = reader.int32();
|
|
35041
35074
|
break;
|
|
35042
35075
|
}
|
|
35076
|
+
case 12: {
|
|
35077
|
+
message.freeInstanceAvailability = reader.int32();
|
|
35078
|
+
break;
|
|
35079
|
+
}
|
|
35080
|
+
case 18: {
|
|
35081
|
+
message.quorumType = reader.int32();
|
|
35082
|
+
break;
|
|
35083
|
+
}
|
|
35084
|
+
case 19: {
|
|
35085
|
+
message.storageLimitPerProcessingUnit = reader.int64();
|
|
35086
|
+
break;
|
|
35087
|
+
}
|
|
35043
35088
|
default:
|
|
35044
35089
|
reader.skipType(tag & 7);
|
|
35045
35090
|
break;
|
|
@@ -35141,6 +35186,30 @@
|
|
|
35141
35186
|
case 2:
|
|
35142
35187
|
break;
|
|
35143
35188
|
}
|
|
35189
|
+
if (message.freeInstanceAvailability != null && message.hasOwnProperty("freeInstanceAvailability"))
|
|
35190
|
+
switch (message.freeInstanceAvailability) {
|
|
35191
|
+
default:
|
|
35192
|
+
return "freeInstanceAvailability: enum value expected";
|
|
35193
|
+
case 0:
|
|
35194
|
+
case 1:
|
|
35195
|
+
case 2:
|
|
35196
|
+
case 3:
|
|
35197
|
+
case 4:
|
|
35198
|
+
break;
|
|
35199
|
+
}
|
|
35200
|
+
if (message.quorumType != null && message.hasOwnProperty("quorumType"))
|
|
35201
|
+
switch (message.quorumType) {
|
|
35202
|
+
default:
|
|
35203
|
+
return "quorumType: enum value expected";
|
|
35204
|
+
case 0:
|
|
35205
|
+
case 1:
|
|
35206
|
+
case 2:
|
|
35207
|
+
case 3:
|
|
35208
|
+
break;
|
|
35209
|
+
}
|
|
35210
|
+
if (message.storageLimitPerProcessingUnit != null && message.hasOwnProperty("storageLimitPerProcessingUnit"))
|
|
35211
|
+
if (!$util.isInteger(message.storageLimitPerProcessingUnit) && !(message.storageLimitPerProcessingUnit && $util.isInteger(message.storageLimitPerProcessingUnit.low) && $util.isInteger(message.storageLimitPerProcessingUnit.high)))
|
|
35212
|
+
return "storageLimitPerProcessingUnit: integer|Long expected";
|
|
35144
35213
|
return null;
|
|
35145
35214
|
};
|
|
35146
35215
|
|
|
@@ -35240,6 +35309,67 @@
|
|
|
35240
35309
|
message.state = 2;
|
|
35241
35310
|
break;
|
|
35242
35311
|
}
|
|
35312
|
+
switch (object.freeInstanceAvailability) {
|
|
35313
|
+
default:
|
|
35314
|
+
if (typeof object.freeInstanceAvailability === "number") {
|
|
35315
|
+
message.freeInstanceAvailability = object.freeInstanceAvailability;
|
|
35316
|
+
break;
|
|
35317
|
+
}
|
|
35318
|
+
break;
|
|
35319
|
+
case "FREE_INSTANCE_AVAILABILITY_UNSPECIFIED":
|
|
35320
|
+
case 0:
|
|
35321
|
+
message.freeInstanceAvailability = 0;
|
|
35322
|
+
break;
|
|
35323
|
+
case "AVAILABLE":
|
|
35324
|
+
case 1:
|
|
35325
|
+
message.freeInstanceAvailability = 1;
|
|
35326
|
+
break;
|
|
35327
|
+
case "UNSUPPORTED":
|
|
35328
|
+
case 2:
|
|
35329
|
+
message.freeInstanceAvailability = 2;
|
|
35330
|
+
break;
|
|
35331
|
+
case "DISABLED":
|
|
35332
|
+
case 3:
|
|
35333
|
+
message.freeInstanceAvailability = 3;
|
|
35334
|
+
break;
|
|
35335
|
+
case "QUOTA_EXCEEDED":
|
|
35336
|
+
case 4:
|
|
35337
|
+
message.freeInstanceAvailability = 4;
|
|
35338
|
+
break;
|
|
35339
|
+
}
|
|
35340
|
+
switch (object.quorumType) {
|
|
35341
|
+
default:
|
|
35342
|
+
if (typeof object.quorumType === "number") {
|
|
35343
|
+
message.quorumType = object.quorumType;
|
|
35344
|
+
break;
|
|
35345
|
+
}
|
|
35346
|
+
break;
|
|
35347
|
+
case "QUORUM_TYPE_UNSPECIFIED":
|
|
35348
|
+
case 0:
|
|
35349
|
+
message.quorumType = 0;
|
|
35350
|
+
break;
|
|
35351
|
+
case "REGION":
|
|
35352
|
+
case 1:
|
|
35353
|
+
message.quorumType = 1;
|
|
35354
|
+
break;
|
|
35355
|
+
case "DUAL_REGION":
|
|
35356
|
+
case 2:
|
|
35357
|
+
message.quorumType = 2;
|
|
35358
|
+
break;
|
|
35359
|
+
case "MULTI_REGION":
|
|
35360
|
+
case 3:
|
|
35361
|
+
message.quorumType = 3;
|
|
35362
|
+
break;
|
|
35363
|
+
}
|
|
35364
|
+
if (object.storageLimitPerProcessingUnit != null)
|
|
35365
|
+
if ($util.Long)
|
|
35366
|
+
(message.storageLimitPerProcessingUnit = $util.Long.fromValue(object.storageLimitPerProcessingUnit)).unsigned = false;
|
|
35367
|
+
else if (typeof object.storageLimitPerProcessingUnit === "string")
|
|
35368
|
+
message.storageLimitPerProcessingUnit = parseInt(object.storageLimitPerProcessingUnit, 10);
|
|
35369
|
+
else if (typeof object.storageLimitPerProcessingUnit === "number")
|
|
35370
|
+
message.storageLimitPerProcessingUnit = object.storageLimitPerProcessingUnit;
|
|
35371
|
+
else if (typeof object.storageLimitPerProcessingUnit === "object")
|
|
35372
|
+
message.storageLimitPerProcessingUnit = new $util.LongBits(object.storageLimitPerProcessingUnit.low >>> 0, object.storageLimitPerProcessingUnit.high >>> 0).toNumber();
|
|
35243
35373
|
return message;
|
|
35244
35374
|
};
|
|
35245
35375
|
|
|
@@ -35271,6 +35401,13 @@
|
|
|
35271
35401
|
object.etag = "";
|
|
35272
35402
|
object.reconciling = false;
|
|
35273
35403
|
object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
|
|
35404
|
+
object.freeInstanceAvailability = options.enums === String ? "FREE_INSTANCE_AVAILABILITY_UNSPECIFIED" : 0;
|
|
35405
|
+
object.quorumType = options.enums === String ? "QUORUM_TYPE_UNSPECIFIED" : 0;
|
|
35406
|
+
if ($util.Long) {
|
|
35407
|
+
var long = new $util.Long(0, 0, false);
|
|
35408
|
+
object.storageLimitPerProcessingUnit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
35409
|
+
} else
|
|
35410
|
+
object.storageLimitPerProcessingUnit = options.longs === String ? "0" : 0;
|
|
35274
35411
|
}
|
|
35275
35412
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
35276
35413
|
object.name = message.name;
|
|
@@ -35307,6 +35444,15 @@
|
|
|
35307
35444
|
object.reconciling = message.reconciling;
|
|
35308
35445
|
if (message.state != null && message.hasOwnProperty("state"))
|
|
35309
35446
|
object.state = options.enums === String ? $root.google.spanner.admin.instance.v1.InstanceConfig.State[message.state] === undefined ? message.state : $root.google.spanner.admin.instance.v1.InstanceConfig.State[message.state] : message.state;
|
|
35447
|
+
if (message.freeInstanceAvailability != null && message.hasOwnProperty("freeInstanceAvailability"))
|
|
35448
|
+
object.freeInstanceAvailability = options.enums === String ? $root.google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability[message.freeInstanceAvailability] === undefined ? message.freeInstanceAvailability : $root.google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability[message.freeInstanceAvailability] : message.freeInstanceAvailability;
|
|
35449
|
+
if (message.quorumType != null && message.hasOwnProperty("quorumType"))
|
|
35450
|
+
object.quorumType = options.enums === String ? $root.google.spanner.admin.instance.v1.InstanceConfig.QuorumType[message.quorumType] === undefined ? message.quorumType : $root.google.spanner.admin.instance.v1.InstanceConfig.QuorumType[message.quorumType] : message.quorumType;
|
|
35451
|
+
if (message.storageLimitPerProcessingUnit != null && message.hasOwnProperty("storageLimitPerProcessingUnit"))
|
|
35452
|
+
if (typeof message.storageLimitPerProcessingUnit === "number")
|
|
35453
|
+
object.storageLimitPerProcessingUnit = options.longs === String ? String(message.storageLimitPerProcessingUnit) : message.storageLimitPerProcessingUnit;
|
|
35454
|
+
else
|
|
35455
|
+
object.storageLimitPerProcessingUnit = options.longs === String ? $util.Long.prototype.toString.call(message.storageLimitPerProcessingUnit) : options.longs === Number ? new $util.LongBits(message.storageLimitPerProcessingUnit.low >>> 0, message.storageLimitPerProcessingUnit.high >>> 0).toNumber() : message.storageLimitPerProcessingUnit;
|
|
35310
35456
|
return object;
|
|
35311
35457
|
};
|
|
35312
35458
|
|
|
@@ -35368,6 +35514,44 @@
|
|
|
35368
35514
|
return values;
|
|
35369
35515
|
})();
|
|
35370
35516
|
|
|
35517
|
+
/**
|
|
35518
|
+
* FreeInstanceAvailability enum.
|
|
35519
|
+
* @name google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability
|
|
35520
|
+
* @enum {number}
|
|
35521
|
+
* @property {number} FREE_INSTANCE_AVAILABILITY_UNSPECIFIED=0 FREE_INSTANCE_AVAILABILITY_UNSPECIFIED value
|
|
35522
|
+
* @property {number} AVAILABLE=1 AVAILABLE value
|
|
35523
|
+
* @property {number} UNSUPPORTED=2 UNSUPPORTED value
|
|
35524
|
+
* @property {number} DISABLED=3 DISABLED value
|
|
35525
|
+
* @property {number} QUOTA_EXCEEDED=4 QUOTA_EXCEEDED value
|
|
35526
|
+
*/
|
|
35527
|
+
InstanceConfig.FreeInstanceAvailability = (function() {
|
|
35528
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
35529
|
+
values[valuesById[0] = "FREE_INSTANCE_AVAILABILITY_UNSPECIFIED"] = 0;
|
|
35530
|
+
values[valuesById[1] = "AVAILABLE"] = 1;
|
|
35531
|
+
values[valuesById[2] = "UNSUPPORTED"] = 2;
|
|
35532
|
+
values[valuesById[3] = "DISABLED"] = 3;
|
|
35533
|
+
values[valuesById[4] = "QUOTA_EXCEEDED"] = 4;
|
|
35534
|
+
return values;
|
|
35535
|
+
})();
|
|
35536
|
+
|
|
35537
|
+
/**
|
|
35538
|
+
* QuorumType enum.
|
|
35539
|
+
* @name google.spanner.admin.instance.v1.InstanceConfig.QuorumType
|
|
35540
|
+
* @enum {number}
|
|
35541
|
+
* @property {number} QUORUM_TYPE_UNSPECIFIED=0 QUORUM_TYPE_UNSPECIFIED value
|
|
35542
|
+
* @property {number} REGION=1 REGION value
|
|
35543
|
+
* @property {number} DUAL_REGION=2 DUAL_REGION value
|
|
35544
|
+
* @property {number} MULTI_REGION=3 MULTI_REGION value
|
|
35545
|
+
*/
|
|
35546
|
+
InstanceConfig.QuorumType = (function() {
|
|
35547
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
35548
|
+
values[valuesById[0] = "QUORUM_TYPE_UNSPECIFIED"] = 0;
|
|
35549
|
+
values[valuesById[1] = "REGION"] = 1;
|
|
35550
|
+
values[valuesById[2] = "DUAL_REGION"] = 2;
|
|
35551
|
+
values[valuesById[3] = "MULTI_REGION"] = 3;
|
|
35552
|
+
return values;
|
|
35553
|
+
})();
|
|
35554
|
+
|
|
35371
35555
|
return InstanceConfig;
|
|
35372
35556
|
})();
|
|
35373
35557
|
|
|
@@ -36960,9 +37144,11 @@
|
|
|
36960
37144
|
* @property {google.spanner.admin.instance.v1.IAutoscalingConfig|null} [autoscalingConfig] Instance autoscalingConfig
|
|
36961
37145
|
* @property {google.spanner.admin.instance.v1.Instance.State|null} [state] Instance state
|
|
36962
37146
|
* @property {Object.<string,string>|null} [labels] Instance labels
|
|
37147
|
+
* @property {google.spanner.admin.instance.v1.Instance.InstanceType|null} [instanceType] Instance instanceType
|
|
36963
37148
|
* @property {Array.<string>|null} [endpointUris] Instance endpointUris
|
|
36964
37149
|
* @property {google.protobuf.ITimestamp|null} [createTime] Instance createTime
|
|
36965
37150
|
* @property {google.protobuf.ITimestamp|null} [updateTime] Instance updateTime
|
|
37151
|
+
* @property {google.spanner.admin.instance.v1.IFreeInstanceMetadata|null} [freeInstanceMetadata] Instance freeInstanceMetadata
|
|
36966
37152
|
* @property {google.spanner.admin.instance.v1.Instance.Edition|null} [edition] Instance edition
|
|
36967
37153
|
* @property {google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType|null} [defaultBackupScheduleType] Instance defaultBackupScheduleType
|
|
36968
37154
|
*/
|
|
@@ -37057,6 +37243,14 @@
|
|
|
37057
37243
|
*/
|
|
37058
37244
|
Instance.prototype.labels = $util.emptyObject;
|
|
37059
37245
|
|
|
37246
|
+
/**
|
|
37247
|
+
* Instance instanceType.
|
|
37248
|
+
* @member {google.spanner.admin.instance.v1.Instance.InstanceType} instanceType
|
|
37249
|
+
* @memberof google.spanner.admin.instance.v1.Instance
|
|
37250
|
+
* @instance
|
|
37251
|
+
*/
|
|
37252
|
+
Instance.prototype.instanceType = 0;
|
|
37253
|
+
|
|
37060
37254
|
/**
|
|
37061
37255
|
* Instance endpointUris.
|
|
37062
37256
|
* @member {Array.<string>} endpointUris
|
|
@@ -37081,6 +37275,14 @@
|
|
|
37081
37275
|
*/
|
|
37082
37276
|
Instance.prototype.updateTime = null;
|
|
37083
37277
|
|
|
37278
|
+
/**
|
|
37279
|
+
* Instance freeInstanceMetadata.
|
|
37280
|
+
* @member {google.spanner.admin.instance.v1.IFreeInstanceMetadata|null|undefined} freeInstanceMetadata
|
|
37281
|
+
* @memberof google.spanner.admin.instance.v1.Instance
|
|
37282
|
+
* @instance
|
|
37283
|
+
*/
|
|
37284
|
+
Instance.prototype.freeInstanceMetadata = null;
|
|
37285
|
+
|
|
37084
37286
|
/**
|
|
37085
37287
|
* Instance edition.
|
|
37086
37288
|
* @member {google.spanner.admin.instance.v1.Instance.Edition} edition
|
|
@@ -37139,10 +37341,14 @@
|
|
|
37139
37341
|
writer.uint32(/* id 8, wireType 2 =*/66).string(message.endpointUris[i]);
|
|
37140
37342
|
if (message.processingUnits != null && Object.hasOwnProperty.call(message, "processingUnits"))
|
|
37141
37343
|
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.processingUnits);
|
|
37344
|
+
if (message.instanceType != null && Object.hasOwnProperty.call(message, "instanceType"))
|
|
37345
|
+
writer.uint32(/* id 10, wireType 0 =*/80).int32(message.instanceType);
|
|
37142
37346
|
if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
|
|
37143
37347
|
$root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
37144
37348
|
if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
|
|
37145
37349
|
$root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
37350
|
+
if (message.freeInstanceMetadata != null && Object.hasOwnProperty.call(message, "freeInstanceMetadata"))
|
|
37351
|
+
$root.google.spanner.admin.instance.v1.FreeInstanceMetadata.encode(message.freeInstanceMetadata, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
|
37146
37352
|
if (message.autoscalingConfig != null && Object.hasOwnProperty.call(message, "autoscalingConfig"))
|
|
37147
37353
|
$root.google.spanner.admin.instance.v1.AutoscalingConfig.encode(message.autoscalingConfig, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
37148
37354
|
if (message.replicaComputeCapacity != null && message.replicaComputeCapacity.length)
|
|
@@ -37243,6 +37449,10 @@
|
|
|
37243
37449
|
message.labels[key] = value;
|
|
37244
37450
|
break;
|
|
37245
37451
|
}
|
|
37452
|
+
case 10: {
|
|
37453
|
+
message.instanceType = reader.int32();
|
|
37454
|
+
break;
|
|
37455
|
+
}
|
|
37246
37456
|
case 8: {
|
|
37247
37457
|
if (!(message.endpointUris && message.endpointUris.length))
|
|
37248
37458
|
message.endpointUris = [];
|
|
@@ -37257,6 +37467,10 @@
|
|
|
37257
37467
|
message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
37258
37468
|
break;
|
|
37259
37469
|
}
|
|
37470
|
+
case 13: {
|
|
37471
|
+
message.freeInstanceMetadata = $root.google.spanner.admin.instance.v1.FreeInstanceMetadata.decode(reader, reader.uint32());
|
|
37472
|
+
break;
|
|
37473
|
+
}
|
|
37260
37474
|
case 20: {
|
|
37261
37475
|
message.edition = reader.int32();
|
|
37262
37476
|
break;
|
|
@@ -37346,6 +37560,15 @@
|
|
|
37346
37560
|
if (!$util.isString(message.labels[key[i]]))
|
|
37347
37561
|
return "labels: string{k:string} expected";
|
|
37348
37562
|
}
|
|
37563
|
+
if (message.instanceType != null && message.hasOwnProperty("instanceType"))
|
|
37564
|
+
switch (message.instanceType) {
|
|
37565
|
+
default:
|
|
37566
|
+
return "instanceType: enum value expected";
|
|
37567
|
+
case 0:
|
|
37568
|
+
case 1:
|
|
37569
|
+
case 2:
|
|
37570
|
+
break;
|
|
37571
|
+
}
|
|
37349
37572
|
if (message.endpointUris != null && message.hasOwnProperty("endpointUris")) {
|
|
37350
37573
|
if (!Array.isArray(message.endpointUris))
|
|
37351
37574
|
return "endpointUris: array expected";
|
|
@@ -37363,6 +37586,11 @@
|
|
|
37363
37586
|
if (error)
|
|
37364
37587
|
return "updateTime." + error;
|
|
37365
37588
|
}
|
|
37589
|
+
if (message.freeInstanceMetadata != null && message.hasOwnProperty("freeInstanceMetadata")) {
|
|
37590
|
+
var error = $root.google.spanner.admin.instance.v1.FreeInstanceMetadata.verify(message.freeInstanceMetadata);
|
|
37591
|
+
if (error)
|
|
37592
|
+
return "freeInstanceMetadata." + error;
|
|
37593
|
+
}
|
|
37366
37594
|
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
37367
37595
|
switch (message.edition) {
|
|
37368
37596
|
default:
|
|
@@ -37449,6 +37677,26 @@
|
|
|
37449
37677
|
for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i)
|
|
37450
37678
|
message.labels[keys[i]] = String(object.labels[keys[i]]);
|
|
37451
37679
|
}
|
|
37680
|
+
switch (object.instanceType) {
|
|
37681
|
+
default:
|
|
37682
|
+
if (typeof object.instanceType === "number") {
|
|
37683
|
+
message.instanceType = object.instanceType;
|
|
37684
|
+
break;
|
|
37685
|
+
}
|
|
37686
|
+
break;
|
|
37687
|
+
case "INSTANCE_TYPE_UNSPECIFIED":
|
|
37688
|
+
case 0:
|
|
37689
|
+
message.instanceType = 0;
|
|
37690
|
+
break;
|
|
37691
|
+
case "PROVISIONED":
|
|
37692
|
+
case 1:
|
|
37693
|
+
message.instanceType = 1;
|
|
37694
|
+
break;
|
|
37695
|
+
case "FREE_INSTANCE":
|
|
37696
|
+
case 2:
|
|
37697
|
+
message.instanceType = 2;
|
|
37698
|
+
break;
|
|
37699
|
+
}
|
|
37452
37700
|
if (object.endpointUris) {
|
|
37453
37701
|
if (!Array.isArray(object.endpointUris))
|
|
37454
37702
|
throw TypeError(".google.spanner.admin.instance.v1.Instance.endpointUris: array expected");
|
|
@@ -37466,6 +37714,11 @@
|
|
|
37466
37714
|
throw TypeError(".google.spanner.admin.instance.v1.Instance.updateTime: object expected");
|
|
37467
37715
|
message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
|
|
37468
37716
|
}
|
|
37717
|
+
if (object.freeInstanceMetadata != null) {
|
|
37718
|
+
if (typeof object.freeInstanceMetadata !== "object")
|
|
37719
|
+
throw TypeError(".google.spanner.admin.instance.v1.Instance.freeInstanceMetadata: object expected");
|
|
37720
|
+
message.freeInstanceMetadata = $root.google.spanner.admin.instance.v1.FreeInstanceMetadata.fromObject(object.freeInstanceMetadata);
|
|
37721
|
+
}
|
|
37469
37722
|
switch (object.edition) {
|
|
37470
37723
|
default:
|
|
37471
37724
|
if (typeof object.edition === "number") {
|
|
@@ -37539,8 +37792,10 @@
|
|
|
37539
37792
|
object.nodeCount = 0;
|
|
37540
37793
|
object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
|
|
37541
37794
|
object.processingUnits = 0;
|
|
37795
|
+
object.instanceType = options.enums === String ? "INSTANCE_TYPE_UNSPECIFIED" : 0;
|
|
37542
37796
|
object.createTime = null;
|
|
37543
37797
|
object.updateTime = null;
|
|
37798
|
+
object.freeInstanceMetadata = null;
|
|
37544
37799
|
object.autoscalingConfig = null;
|
|
37545
37800
|
object.edition = options.enums === String ? "EDITION_UNSPECIFIED" : 0;
|
|
37546
37801
|
object.defaultBackupScheduleType = options.enums === String ? "DEFAULT_BACKUP_SCHEDULE_TYPE_UNSPECIFIED" : 0;
|
|
@@ -37568,10 +37823,14 @@
|
|
|
37568
37823
|
}
|
|
37569
37824
|
if (message.processingUnits != null && message.hasOwnProperty("processingUnits"))
|
|
37570
37825
|
object.processingUnits = message.processingUnits;
|
|
37826
|
+
if (message.instanceType != null && message.hasOwnProperty("instanceType"))
|
|
37827
|
+
object.instanceType = options.enums === String ? $root.google.spanner.admin.instance.v1.Instance.InstanceType[message.instanceType] === undefined ? message.instanceType : $root.google.spanner.admin.instance.v1.Instance.InstanceType[message.instanceType] : message.instanceType;
|
|
37571
37828
|
if (message.createTime != null && message.hasOwnProperty("createTime"))
|
|
37572
37829
|
object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
|
|
37573
37830
|
if (message.updateTime != null && message.hasOwnProperty("updateTime"))
|
|
37574
37831
|
object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
|
|
37832
|
+
if (message.freeInstanceMetadata != null && message.hasOwnProperty("freeInstanceMetadata"))
|
|
37833
|
+
object.freeInstanceMetadata = $root.google.spanner.admin.instance.v1.FreeInstanceMetadata.toObject(message.freeInstanceMetadata, options);
|
|
37575
37834
|
if (message.autoscalingConfig != null && message.hasOwnProperty("autoscalingConfig"))
|
|
37576
37835
|
object.autoscalingConfig = $root.google.spanner.admin.instance.v1.AutoscalingConfig.toObject(message.autoscalingConfig, options);
|
|
37577
37836
|
if (message.replicaComputeCapacity && message.replicaComputeCapacity.length) {
|
|
@@ -37628,6 +37887,22 @@
|
|
|
37628
37887
|
return values;
|
|
37629
37888
|
})();
|
|
37630
37889
|
|
|
37890
|
+
/**
|
|
37891
|
+
* InstanceType enum.
|
|
37892
|
+
* @name google.spanner.admin.instance.v1.Instance.InstanceType
|
|
37893
|
+
* @enum {number}
|
|
37894
|
+
* @property {number} INSTANCE_TYPE_UNSPECIFIED=0 INSTANCE_TYPE_UNSPECIFIED value
|
|
37895
|
+
* @property {number} PROVISIONED=1 PROVISIONED value
|
|
37896
|
+
* @property {number} FREE_INSTANCE=2 FREE_INSTANCE value
|
|
37897
|
+
*/
|
|
37898
|
+
Instance.InstanceType = (function() {
|
|
37899
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
37900
|
+
values[valuesById[0] = "INSTANCE_TYPE_UNSPECIFIED"] = 0;
|
|
37901
|
+
values[valuesById[1] = "PROVISIONED"] = 1;
|
|
37902
|
+
values[valuesById[2] = "FREE_INSTANCE"] = 2;
|
|
37903
|
+
return values;
|
|
37904
|
+
})();
|
|
37905
|
+
|
|
37631
37906
|
/**
|
|
37632
37907
|
* Edition enum.
|
|
37633
37908
|
* @name google.spanner.admin.instance.v1.Instance.Edition
|
|
@@ -41871,6 +42146,306 @@
|
|
|
41871
42146
|
return UpdateInstanceMetadata;
|
|
41872
42147
|
})();
|
|
41873
42148
|
|
|
42149
|
+
v1.FreeInstanceMetadata = (function() {
|
|
42150
|
+
|
|
42151
|
+
/**
|
|
42152
|
+
* Properties of a FreeInstanceMetadata.
|
|
42153
|
+
* @memberof google.spanner.admin.instance.v1
|
|
42154
|
+
* @interface IFreeInstanceMetadata
|
|
42155
|
+
* @property {google.protobuf.ITimestamp|null} [expireTime] FreeInstanceMetadata expireTime
|
|
42156
|
+
* @property {google.protobuf.ITimestamp|null} [upgradeTime] FreeInstanceMetadata upgradeTime
|
|
42157
|
+
* @property {google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior|null} [expireBehavior] FreeInstanceMetadata expireBehavior
|
|
42158
|
+
*/
|
|
42159
|
+
|
|
42160
|
+
/**
|
|
42161
|
+
* Constructs a new FreeInstanceMetadata.
|
|
42162
|
+
* @memberof google.spanner.admin.instance.v1
|
|
42163
|
+
* @classdesc Represents a FreeInstanceMetadata.
|
|
42164
|
+
* @implements IFreeInstanceMetadata
|
|
42165
|
+
* @constructor
|
|
42166
|
+
* @param {google.spanner.admin.instance.v1.IFreeInstanceMetadata=} [properties] Properties to set
|
|
42167
|
+
*/
|
|
42168
|
+
function FreeInstanceMetadata(properties) {
|
|
42169
|
+
if (properties)
|
|
42170
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
42171
|
+
if (properties[keys[i]] != null)
|
|
42172
|
+
this[keys[i]] = properties[keys[i]];
|
|
42173
|
+
}
|
|
42174
|
+
|
|
42175
|
+
/**
|
|
42176
|
+
* FreeInstanceMetadata expireTime.
|
|
42177
|
+
* @member {google.protobuf.ITimestamp|null|undefined} expireTime
|
|
42178
|
+
* @memberof google.spanner.admin.instance.v1.FreeInstanceMetadata
|
|
42179
|
+
* @instance
|
|
42180
|
+
*/
|
|
42181
|
+
FreeInstanceMetadata.prototype.expireTime = null;
|
|
42182
|
+
|
|
42183
|
+
/**
|
|
42184
|
+
* FreeInstanceMetadata upgradeTime.
|
|
42185
|
+
* @member {google.protobuf.ITimestamp|null|undefined} upgradeTime
|
|
42186
|
+
* @memberof google.spanner.admin.instance.v1.FreeInstanceMetadata
|
|
42187
|
+
* @instance
|
|
42188
|
+
*/
|
|
42189
|
+
FreeInstanceMetadata.prototype.upgradeTime = null;
|
|
42190
|
+
|
|
42191
|
+
/**
|
|
42192
|
+
* FreeInstanceMetadata expireBehavior.
|
|
42193
|
+
* @member {google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior} expireBehavior
|
|
42194
|
+
* @memberof google.spanner.admin.instance.v1.FreeInstanceMetadata
|
|
42195
|
+
* @instance
|
|
42196
|
+
*/
|
|
42197
|
+
FreeInstanceMetadata.prototype.expireBehavior = 0;
|
|
42198
|
+
|
|
42199
|
+
/**
|
|
42200
|
+
* Creates a new FreeInstanceMetadata instance using the specified properties.
|
|
42201
|
+
* @function create
|
|
42202
|
+
* @memberof google.spanner.admin.instance.v1.FreeInstanceMetadata
|
|
42203
|
+
* @static
|
|
42204
|
+
* @param {google.spanner.admin.instance.v1.IFreeInstanceMetadata=} [properties] Properties to set
|
|
42205
|
+
* @returns {google.spanner.admin.instance.v1.FreeInstanceMetadata} FreeInstanceMetadata instance
|
|
42206
|
+
*/
|
|
42207
|
+
FreeInstanceMetadata.create = function create(properties) {
|
|
42208
|
+
return new FreeInstanceMetadata(properties);
|
|
42209
|
+
};
|
|
42210
|
+
|
|
42211
|
+
/**
|
|
42212
|
+
* Encodes the specified FreeInstanceMetadata message. Does not implicitly {@link google.spanner.admin.instance.v1.FreeInstanceMetadata.verify|verify} messages.
|
|
42213
|
+
* @function encode
|
|
42214
|
+
* @memberof google.spanner.admin.instance.v1.FreeInstanceMetadata
|
|
42215
|
+
* @static
|
|
42216
|
+
* @param {google.spanner.admin.instance.v1.IFreeInstanceMetadata} message FreeInstanceMetadata message or plain object to encode
|
|
42217
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
42218
|
+
* @returns {$protobuf.Writer} Writer
|
|
42219
|
+
*/
|
|
42220
|
+
FreeInstanceMetadata.encode = function encode(message, writer) {
|
|
42221
|
+
if (!writer)
|
|
42222
|
+
writer = $Writer.create();
|
|
42223
|
+
if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime"))
|
|
42224
|
+
$root.google.protobuf.Timestamp.encode(message.expireTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
42225
|
+
if (message.upgradeTime != null && Object.hasOwnProperty.call(message, "upgradeTime"))
|
|
42226
|
+
$root.google.protobuf.Timestamp.encode(message.upgradeTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
42227
|
+
if (message.expireBehavior != null && Object.hasOwnProperty.call(message, "expireBehavior"))
|
|
42228
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.expireBehavior);
|
|
42229
|
+
return writer;
|
|
42230
|
+
};
|
|
42231
|
+
|
|
42232
|
+
/**
|
|
42233
|
+
* Encodes the specified FreeInstanceMetadata message, length delimited. Does not implicitly {@link google.spanner.admin.instance.v1.FreeInstanceMetadata.verify|verify} messages.
|
|
42234
|
+
* @function encodeDelimited
|
|
42235
|
+
* @memberof google.spanner.admin.instance.v1.FreeInstanceMetadata
|
|
42236
|
+
* @static
|
|
42237
|
+
* @param {google.spanner.admin.instance.v1.IFreeInstanceMetadata} message FreeInstanceMetadata message or plain object to encode
|
|
42238
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
42239
|
+
* @returns {$protobuf.Writer} Writer
|
|
42240
|
+
*/
|
|
42241
|
+
FreeInstanceMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
42242
|
+
return this.encode(message, writer).ldelim();
|
|
42243
|
+
};
|
|
42244
|
+
|
|
42245
|
+
/**
|
|
42246
|
+
* Decodes a FreeInstanceMetadata message from the specified reader or buffer.
|
|
42247
|
+
* @function decode
|
|
42248
|
+
* @memberof google.spanner.admin.instance.v1.FreeInstanceMetadata
|
|
42249
|
+
* @static
|
|
42250
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
42251
|
+
* @param {number} [length] Message length if known beforehand
|
|
42252
|
+
* @returns {google.spanner.admin.instance.v1.FreeInstanceMetadata} FreeInstanceMetadata
|
|
42253
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
42254
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
42255
|
+
*/
|
|
42256
|
+
FreeInstanceMetadata.decode = function decode(reader, length) {
|
|
42257
|
+
if (!(reader instanceof $Reader))
|
|
42258
|
+
reader = $Reader.create(reader);
|
|
42259
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.spanner.admin.instance.v1.FreeInstanceMetadata();
|
|
42260
|
+
while (reader.pos < end) {
|
|
42261
|
+
var tag = reader.uint32();
|
|
42262
|
+
switch (tag >>> 3) {
|
|
42263
|
+
case 1: {
|
|
42264
|
+
message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
42265
|
+
break;
|
|
42266
|
+
}
|
|
42267
|
+
case 2: {
|
|
42268
|
+
message.upgradeTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
42269
|
+
break;
|
|
42270
|
+
}
|
|
42271
|
+
case 3: {
|
|
42272
|
+
message.expireBehavior = reader.int32();
|
|
42273
|
+
break;
|
|
42274
|
+
}
|
|
42275
|
+
default:
|
|
42276
|
+
reader.skipType(tag & 7);
|
|
42277
|
+
break;
|
|
42278
|
+
}
|
|
42279
|
+
}
|
|
42280
|
+
return message;
|
|
42281
|
+
};
|
|
42282
|
+
|
|
42283
|
+
/**
|
|
42284
|
+
* Decodes a FreeInstanceMetadata message from the specified reader or buffer, length delimited.
|
|
42285
|
+
* @function decodeDelimited
|
|
42286
|
+
* @memberof google.spanner.admin.instance.v1.FreeInstanceMetadata
|
|
42287
|
+
* @static
|
|
42288
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
42289
|
+
* @returns {google.spanner.admin.instance.v1.FreeInstanceMetadata} FreeInstanceMetadata
|
|
42290
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
42291
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
42292
|
+
*/
|
|
42293
|
+
FreeInstanceMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
42294
|
+
if (!(reader instanceof $Reader))
|
|
42295
|
+
reader = new $Reader(reader);
|
|
42296
|
+
return this.decode(reader, reader.uint32());
|
|
42297
|
+
};
|
|
42298
|
+
|
|
42299
|
+
/**
|
|
42300
|
+
* Verifies a FreeInstanceMetadata message.
|
|
42301
|
+
* @function verify
|
|
42302
|
+
* @memberof google.spanner.admin.instance.v1.FreeInstanceMetadata
|
|
42303
|
+
* @static
|
|
42304
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
42305
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
42306
|
+
*/
|
|
42307
|
+
FreeInstanceMetadata.verify = function verify(message) {
|
|
42308
|
+
if (typeof message !== "object" || message === null)
|
|
42309
|
+
return "object expected";
|
|
42310
|
+
if (message.expireTime != null && message.hasOwnProperty("expireTime")) {
|
|
42311
|
+
var error = $root.google.protobuf.Timestamp.verify(message.expireTime);
|
|
42312
|
+
if (error)
|
|
42313
|
+
return "expireTime." + error;
|
|
42314
|
+
}
|
|
42315
|
+
if (message.upgradeTime != null && message.hasOwnProperty("upgradeTime")) {
|
|
42316
|
+
var error = $root.google.protobuf.Timestamp.verify(message.upgradeTime);
|
|
42317
|
+
if (error)
|
|
42318
|
+
return "upgradeTime." + error;
|
|
42319
|
+
}
|
|
42320
|
+
if (message.expireBehavior != null && message.hasOwnProperty("expireBehavior"))
|
|
42321
|
+
switch (message.expireBehavior) {
|
|
42322
|
+
default:
|
|
42323
|
+
return "expireBehavior: enum value expected";
|
|
42324
|
+
case 0:
|
|
42325
|
+
case 1:
|
|
42326
|
+
case 2:
|
|
42327
|
+
break;
|
|
42328
|
+
}
|
|
42329
|
+
return null;
|
|
42330
|
+
};
|
|
42331
|
+
|
|
42332
|
+
/**
|
|
42333
|
+
* Creates a FreeInstanceMetadata message from a plain object. Also converts values to their respective internal types.
|
|
42334
|
+
* @function fromObject
|
|
42335
|
+
* @memberof google.spanner.admin.instance.v1.FreeInstanceMetadata
|
|
42336
|
+
* @static
|
|
42337
|
+
* @param {Object.<string,*>} object Plain object
|
|
42338
|
+
* @returns {google.spanner.admin.instance.v1.FreeInstanceMetadata} FreeInstanceMetadata
|
|
42339
|
+
*/
|
|
42340
|
+
FreeInstanceMetadata.fromObject = function fromObject(object) {
|
|
42341
|
+
if (object instanceof $root.google.spanner.admin.instance.v1.FreeInstanceMetadata)
|
|
42342
|
+
return object;
|
|
42343
|
+
var message = new $root.google.spanner.admin.instance.v1.FreeInstanceMetadata();
|
|
42344
|
+
if (object.expireTime != null) {
|
|
42345
|
+
if (typeof object.expireTime !== "object")
|
|
42346
|
+
throw TypeError(".google.spanner.admin.instance.v1.FreeInstanceMetadata.expireTime: object expected");
|
|
42347
|
+
message.expireTime = $root.google.protobuf.Timestamp.fromObject(object.expireTime);
|
|
42348
|
+
}
|
|
42349
|
+
if (object.upgradeTime != null) {
|
|
42350
|
+
if (typeof object.upgradeTime !== "object")
|
|
42351
|
+
throw TypeError(".google.spanner.admin.instance.v1.FreeInstanceMetadata.upgradeTime: object expected");
|
|
42352
|
+
message.upgradeTime = $root.google.protobuf.Timestamp.fromObject(object.upgradeTime);
|
|
42353
|
+
}
|
|
42354
|
+
switch (object.expireBehavior) {
|
|
42355
|
+
default:
|
|
42356
|
+
if (typeof object.expireBehavior === "number") {
|
|
42357
|
+
message.expireBehavior = object.expireBehavior;
|
|
42358
|
+
break;
|
|
42359
|
+
}
|
|
42360
|
+
break;
|
|
42361
|
+
case "EXPIRE_BEHAVIOR_UNSPECIFIED":
|
|
42362
|
+
case 0:
|
|
42363
|
+
message.expireBehavior = 0;
|
|
42364
|
+
break;
|
|
42365
|
+
case "FREE_TO_PROVISIONED":
|
|
42366
|
+
case 1:
|
|
42367
|
+
message.expireBehavior = 1;
|
|
42368
|
+
break;
|
|
42369
|
+
case "REMOVE_AFTER_GRACE_PERIOD":
|
|
42370
|
+
case 2:
|
|
42371
|
+
message.expireBehavior = 2;
|
|
42372
|
+
break;
|
|
42373
|
+
}
|
|
42374
|
+
return message;
|
|
42375
|
+
};
|
|
42376
|
+
|
|
42377
|
+
/**
|
|
42378
|
+
* Creates a plain object from a FreeInstanceMetadata message. Also converts values to other types if specified.
|
|
42379
|
+
* @function toObject
|
|
42380
|
+
* @memberof google.spanner.admin.instance.v1.FreeInstanceMetadata
|
|
42381
|
+
* @static
|
|
42382
|
+
* @param {google.spanner.admin.instance.v1.FreeInstanceMetadata} message FreeInstanceMetadata
|
|
42383
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
42384
|
+
* @returns {Object.<string,*>} Plain object
|
|
42385
|
+
*/
|
|
42386
|
+
FreeInstanceMetadata.toObject = function toObject(message, options) {
|
|
42387
|
+
if (!options)
|
|
42388
|
+
options = {};
|
|
42389
|
+
var object = {};
|
|
42390
|
+
if (options.defaults) {
|
|
42391
|
+
object.expireTime = null;
|
|
42392
|
+
object.upgradeTime = null;
|
|
42393
|
+
object.expireBehavior = options.enums === String ? "EXPIRE_BEHAVIOR_UNSPECIFIED" : 0;
|
|
42394
|
+
}
|
|
42395
|
+
if (message.expireTime != null && message.hasOwnProperty("expireTime"))
|
|
42396
|
+
object.expireTime = $root.google.protobuf.Timestamp.toObject(message.expireTime, options);
|
|
42397
|
+
if (message.upgradeTime != null && message.hasOwnProperty("upgradeTime"))
|
|
42398
|
+
object.upgradeTime = $root.google.protobuf.Timestamp.toObject(message.upgradeTime, options);
|
|
42399
|
+
if (message.expireBehavior != null && message.hasOwnProperty("expireBehavior"))
|
|
42400
|
+
object.expireBehavior = options.enums === String ? $root.google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior[message.expireBehavior] === undefined ? message.expireBehavior : $root.google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior[message.expireBehavior] : message.expireBehavior;
|
|
42401
|
+
return object;
|
|
42402
|
+
};
|
|
42403
|
+
|
|
42404
|
+
/**
|
|
42405
|
+
* Converts this FreeInstanceMetadata to JSON.
|
|
42406
|
+
* @function toJSON
|
|
42407
|
+
* @memberof google.spanner.admin.instance.v1.FreeInstanceMetadata
|
|
42408
|
+
* @instance
|
|
42409
|
+
* @returns {Object.<string,*>} JSON object
|
|
42410
|
+
*/
|
|
42411
|
+
FreeInstanceMetadata.prototype.toJSON = function toJSON() {
|
|
42412
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
42413
|
+
};
|
|
42414
|
+
|
|
42415
|
+
/**
|
|
42416
|
+
* Gets the default type url for FreeInstanceMetadata
|
|
42417
|
+
* @function getTypeUrl
|
|
42418
|
+
* @memberof google.spanner.admin.instance.v1.FreeInstanceMetadata
|
|
42419
|
+
* @static
|
|
42420
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
42421
|
+
* @returns {string} The default type url
|
|
42422
|
+
*/
|
|
42423
|
+
FreeInstanceMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
42424
|
+
if (typeUrlPrefix === undefined) {
|
|
42425
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
42426
|
+
}
|
|
42427
|
+
return typeUrlPrefix + "/google.spanner.admin.instance.v1.FreeInstanceMetadata";
|
|
42428
|
+
};
|
|
42429
|
+
|
|
42430
|
+
/**
|
|
42431
|
+
* ExpireBehavior enum.
|
|
42432
|
+
* @name google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior
|
|
42433
|
+
* @enum {number}
|
|
42434
|
+
* @property {number} EXPIRE_BEHAVIOR_UNSPECIFIED=0 EXPIRE_BEHAVIOR_UNSPECIFIED value
|
|
42435
|
+
* @property {number} FREE_TO_PROVISIONED=1 FREE_TO_PROVISIONED value
|
|
42436
|
+
* @property {number} REMOVE_AFTER_GRACE_PERIOD=2 REMOVE_AFTER_GRACE_PERIOD value
|
|
42437
|
+
*/
|
|
42438
|
+
FreeInstanceMetadata.ExpireBehavior = (function() {
|
|
42439
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
42440
|
+
values[valuesById[0] = "EXPIRE_BEHAVIOR_UNSPECIFIED"] = 0;
|
|
42441
|
+
values[valuesById[1] = "FREE_TO_PROVISIONED"] = 1;
|
|
42442
|
+
values[valuesById[2] = "REMOVE_AFTER_GRACE_PERIOD"] = 2;
|
|
42443
|
+
return values;
|
|
42444
|
+
})();
|
|
42445
|
+
|
|
42446
|
+
return FreeInstanceMetadata;
|
|
42447
|
+
})();
|
|
42448
|
+
|
|
41874
42449
|
v1.CreateInstanceConfigMetadata = (function() {
|
|
41875
42450
|
|
|
41876
42451
|
/**
|
|
@@ -47740,7 +48315,12 @@
|
|
|
47740
48315
|
// OneOf field names bound to virtual getters and setters
|
|
47741
48316
|
var $oneOfFields;
|
|
47742
48317
|
|
|
47743
|
-
|
|
48318
|
+
/**
|
|
48319
|
+
* ReadAction _index.
|
|
48320
|
+
* @member {"index"|undefined} _index
|
|
48321
|
+
* @memberof google.spanner.executor.v1.ReadAction
|
|
48322
|
+
* @instance
|
|
48323
|
+
*/
|
|
47744
48324
|
Object.defineProperty(ReadAction.prototype, "_index", {
|
|
47745
48325
|
get: $util.oneOfGetter($oneOfFields = ["index"]),
|
|
47746
48326
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -48552,7 +49132,12 @@
|
|
|
48552
49132
|
// OneOf field names bound to virtual getters and setters
|
|
48553
49133
|
var $oneOfFields;
|
|
48554
49134
|
|
|
48555
|
-
|
|
49135
|
+
/**
|
|
49136
|
+
* DmlAction _autocommitIfSupported.
|
|
49137
|
+
* @member {"autocommitIfSupported"|undefined} _autocommitIfSupported
|
|
49138
|
+
* @memberof google.spanner.executor.v1.DmlAction
|
|
49139
|
+
* @instance
|
|
49140
|
+
*/
|
|
48556
49141
|
Object.defineProperty(DmlAction.prototype, "_autocommitIfSupported", {
|
|
48557
49142
|
get: $util.oneOfGetter($oneOfFields = ["autocommitIfSupported"]),
|
|
48558
49143
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -49122,7 +49707,12 @@
|
|
|
49122
49707
|
set: $util.oneOfSetter($oneOfFields)
|
|
49123
49708
|
});
|
|
49124
49709
|
|
|
49125
|
-
|
|
49710
|
+
/**
|
|
49711
|
+
* Value _arrayType.
|
|
49712
|
+
* @member {"arrayType"|undefined} _arrayType
|
|
49713
|
+
* @memberof google.spanner.executor.v1.Value
|
|
49714
|
+
* @instance
|
|
49715
|
+
*/
|
|
49126
49716
|
Object.defineProperty(Value.prototype, "_arrayType", {
|
|
49127
49717
|
get: $util.oneOfGetter($oneOfFields = ["arrayType"]),
|
|
49128
49718
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -49611,7 +50201,12 @@
|
|
|
49611
50201
|
// OneOf field names bound to virtual getters and setters
|
|
49612
50202
|
var $oneOfFields;
|
|
49613
50203
|
|
|
49614
|
-
|
|
50204
|
+
/**
|
|
50205
|
+
* KeyRange _type.
|
|
50206
|
+
* @member {"type"|undefined} _type
|
|
50207
|
+
* @memberof google.spanner.executor.v1.KeyRange
|
|
50208
|
+
* @instance
|
|
50209
|
+
*/
|
|
49615
50210
|
Object.defineProperty(KeyRange.prototype, "_type", {
|
|
49616
50211
|
get: $util.oneOfGetter($oneOfFields = ["type"]),
|
|
49617
50212
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -51839,7 +52434,12 @@
|
|
|
51839
52434
|
// OneOf field names bound to virtual getters and setters
|
|
51840
52435
|
var $oneOfFields;
|
|
51841
52436
|
|
|
51842
|
-
|
|
52437
|
+
/**
|
|
52438
|
+
* PartitionedUpdateAction _options.
|
|
52439
|
+
* @member {"options"|undefined} _options
|
|
52440
|
+
* @memberof google.spanner.executor.v1.PartitionedUpdateAction
|
|
52441
|
+
* @instance
|
|
52442
|
+
*/
|
|
51843
52443
|
Object.defineProperty(PartitionedUpdateAction.prototype, "_options", {
|
|
51844
52444
|
get: $util.oneOfGetter($oneOfFields = ["options"]),
|
|
51845
52445
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -52087,13 +52687,23 @@
|
|
|
52087
52687
|
// OneOf field names bound to virtual getters and setters
|
|
52088
52688
|
var $oneOfFields;
|
|
52089
52689
|
|
|
52090
|
-
|
|
52690
|
+
/**
|
|
52691
|
+
* ExecutePartitionedUpdateOptions _rpcPriority.
|
|
52692
|
+
* @member {"rpcPriority"|undefined} _rpcPriority
|
|
52693
|
+
* @memberof google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions
|
|
52694
|
+
* @instance
|
|
52695
|
+
*/
|
|
52091
52696
|
Object.defineProperty(ExecutePartitionedUpdateOptions.prototype, "_rpcPriority", {
|
|
52092
52697
|
get: $util.oneOfGetter($oneOfFields = ["rpcPriority"]),
|
|
52093
52698
|
set: $util.oneOfSetter($oneOfFields)
|
|
52094
52699
|
});
|
|
52095
52700
|
|
|
52096
|
-
|
|
52701
|
+
/**
|
|
52702
|
+
* ExecutePartitionedUpdateOptions _tag.
|
|
52703
|
+
* @member {"tag"|undefined} _tag
|
|
52704
|
+
* @memberof google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions
|
|
52705
|
+
* @instance
|
|
52706
|
+
*/
|
|
52097
52707
|
Object.defineProperty(ExecutePartitionedUpdateOptions.prototype, "_tag", {
|
|
52098
52708
|
get: $util.oneOfGetter($oneOfFields = ["tag"]),
|
|
52099
52709
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -52387,13 +52997,23 @@
|
|
|
52387
52997
|
// OneOf field names bound to virtual getters and setters
|
|
52388
52998
|
var $oneOfFields;
|
|
52389
52999
|
|
|
52390
|
-
|
|
53000
|
+
/**
|
|
53001
|
+
* StartTransactionAction _concurrency.
|
|
53002
|
+
* @member {"concurrency"|undefined} _concurrency
|
|
53003
|
+
* @memberof google.spanner.executor.v1.StartTransactionAction
|
|
53004
|
+
* @instance
|
|
53005
|
+
*/
|
|
52391
53006
|
Object.defineProperty(StartTransactionAction.prototype, "_concurrency", {
|
|
52392
53007
|
get: $util.oneOfGetter($oneOfFields = ["concurrency"]),
|
|
52393
53008
|
set: $util.oneOfSetter($oneOfFields)
|
|
52394
53009
|
});
|
|
52395
53010
|
|
|
52396
|
-
|
|
53011
|
+
/**
|
|
53012
|
+
* StartTransactionAction _executionOptions.
|
|
53013
|
+
* @member {"executionOptions"|undefined} _executionOptions
|
|
53014
|
+
* @memberof google.spanner.executor.v1.StartTransactionAction
|
|
53015
|
+
* @instance
|
|
53016
|
+
*/
|
|
52397
53017
|
Object.defineProperty(StartTransactionAction.prototype, "_executionOptions", {
|
|
52398
53018
|
get: $util.oneOfGetter($oneOfFields = ["executionOptions"]),
|
|
52399
53019
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -55626,7 +56246,12 @@
|
|
|
55626
56246
|
// OneOf field names bound to virtual getters and setters
|
|
55627
56247
|
var $oneOfFields;
|
|
55628
56248
|
|
|
55629
|
-
|
|
56249
|
+
/**
|
|
56250
|
+
* UpdateUserInstanceConfigAction _displayName.
|
|
56251
|
+
* @member {"displayName"|undefined} _displayName
|
|
56252
|
+
* @memberof google.spanner.executor.v1.UpdateUserInstanceConfigAction
|
|
56253
|
+
* @instance
|
|
56254
|
+
*/
|
|
55630
56255
|
Object.defineProperty(UpdateUserInstanceConfigAction.prototype, "_displayName", {
|
|
55631
56256
|
get: $util.oneOfGetter($oneOfFields = ["displayName"]),
|
|
55632
56257
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -56393,13 +57018,23 @@
|
|
|
56393
57018
|
// OneOf field names bound to virtual getters and setters
|
|
56394
57019
|
var $oneOfFields;
|
|
56395
57020
|
|
|
56396
|
-
|
|
57021
|
+
/**
|
|
57022
|
+
* ListCloudInstanceConfigsAction _pageSize.
|
|
57023
|
+
* @member {"pageSize"|undefined} _pageSize
|
|
57024
|
+
* @memberof google.spanner.executor.v1.ListCloudInstanceConfigsAction
|
|
57025
|
+
* @instance
|
|
57026
|
+
*/
|
|
56397
57027
|
Object.defineProperty(ListCloudInstanceConfigsAction.prototype, "_pageSize", {
|
|
56398
57028
|
get: $util.oneOfGetter($oneOfFields = ["pageSize"]),
|
|
56399
57029
|
set: $util.oneOfSetter($oneOfFields)
|
|
56400
57030
|
});
|
|
56401
57031
|
|
|
56402
|
-
|
|
57032
|
+
/**
|
|
57033
|
+
* ListCloudInstanceConfigsAction _pageToken.
|
|
57034
|
+
* @member {"pageToken"|undefined} _pageToken
|
|
57035
|
+
* @memberof google.spanner.executor.v1.ListCloudInstanceConfigsAction
|
|
57036
|
+
* @instance
|
|
57037
|
+
*/
|
|
56403
57038
|
Object.defineProperty(ListCloudInstanceConfigsAction.prototype, "_pageToken", {
|
|
56404
57039
|
get: $util.oneOfGetter($oneOfFields = ["pageToken"]),
|
|
56405
57040
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -56703,19 +57338,34 @@
|
|
|
56703
57338
|
// OneOf field names bound to virtual getters and setters
|
|
56704
57339
|
var $oneOfFields;
|
|
56705
57340
|
|
|
56706
|
-
|
|
57341
|
+
/**
|
|
57342
|
+
* CreateCloudInstanceAction _nodeCount.
|
|
57343
|
+
* @member {"nodeCount"|undefined} _nodeCount
|
|
57344
|
+
* @memberof google.spanner.executor.v1.CreateCloudInstanceAction
|
|
57345
|
+
* @instance
|
|
57346
|
+
*/
|
|
56707
57347
|
Object.defineProperty(CreateCloudInstanceAction.prototype, "_nodeCount", {
|
|
56708
57348
|
get: $util.oneOfGetter($oneOfFields = ["nodeCount"]),
|
|
56709
57349
|
set: $util.oneOfSetter($oneOfFields)
|
|
56710
57350
|
});
|
|
56711
57351
|
|
|
56712
|
-
|
|
57352
|
+
/**
|
|
57353
|
+
* CreateCloudInstanceAction _processingUnits.
|
|
57354
|
+
* @member {"processingUnits"|undefined} _processingUnits
|
|
57355
|
+
* @memberof google.spanner.executor.v1.CreateCloudInstanceAction
|
|
57356
|
+
* @instance
|
|
57357
|
+
*/
|
|
56713
57358
|
Object.defineProperty(CreateCloudInstanceAction.prototype, "_processingUnits", {
|
|
56714
57359
|
get: $util.oneOfGetter($oneOfFields = ["processingUnits"]),
|
|
56715
57360
|
set: $util.oneOfSetter($oneOfFields)
|
|
56716
57361
|
});
|
|
56717
57362
|
|
|
56718
|
-
|
|
57363
|
+
/**
|
|
57364
|
+
* CreateCloudInstanceAction _autoscalingConfig.
|
|
57365
|
+
* @member {"autoscalingConfig"|undefined} _autoscalingConfig
|
|
57366
|
+
* @memberof google.spanner.executor.v1.CreateCloudInstanceAction
|
|
57367
|
+
* @instance
|
|
57368
|
+
*/
|
|
56719
57369
|
Object.defineProperty(CreateCloudInstanceAction.prototype, "_autoscalingConfig", {
|
|
56720
57370
|
get: $util.oneOfGetter($oneOfFields = ["autoscalingConfig"]),
|
|
56721
57371
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -57121,25 +57771,45 @@
|
|
|
57121
57771
|
// OneOf field names bound to virtual getters and setters
|
|
57122
57772
|
var $oneOfFields;
|
|
57123
57773
|
|
|
57124
|
-
|
|
57774
|
+
/**
|
|
57775
|
+
* UpdateCloudInstanceAction _displayName.
|
|
57776
|
+
* @member {"displayName"|undefined} _displayName
|
|
57777
|
+
* @memberof google.spanner.executor.v1.UpdateCloudInstanceAction
|
|
57778
|
+
* @instance
|
|
57779
|
+
*/
|
|
57125
57780
|
Object.defineProperty(UpdateCloudInstanceAction.prototype, "_displayName", {
|
|
57126
57781
|
get: $util.oneOfGetter($oneOfFields = ["displayName"]),
|
|
57127
57782
|
set: $util.oneOfSetter($oneOfFields)
|
|
57128
57783
|
});
|
|
57129
57784
|
|
|
57130
|
-
|
|
57785
|
+
/**
|
|
57786
|
+
* UpdateCloudInstanceAction _nodeCount.
|
|
57787
|
+
* @member {"nodeCount"|undefined} _nodeCount
|
|
57788
|
+
* @memberof google.spanner.executor.v1.UpdateCloudInstanceAction
|
|
57789
|
+
* @instance
|
|
57790
|
+
*/
|
|
57131
57791
|
Object.defineProperty(UpdateCloudInstanceAction.prototype, "_nodeCount", {
|
|
57132
57792
|
get: $util.oneOfGetter($oneOfFields = ["nodeCount"]),
|
|
57133
57793
|
set: $util.oneOfSetter($oneOfFields)
|
|
57134
57794
|
});
|
|
57135
57795
|
|
|
57136
|
-
|
|
57796
|
+
/**
|
|
57797
|
+
* UpdateCloudInstanceAction _processingUnits.
|
|
57798
|
+
* @member {"processingUnits"|undefined} _processingUnits
|
|
57799
|
+
* @memberof google.spanner.executor.v1.UpdateCloudInstanceAction
|
|
57800
|
+
* @instance
|
|
57801
|
+
*/
|
|
57137
57802
|
Object.defineProperty(UpdateCloudInstanceAction.prototype, "_processingUnits", {
|
|
57138
57803
|
get: $util.oneOfGetter($oneOfFields = ["processingUnits"]),
|
|
57139
57804
|
set: $util.oneOfSetter($oneOfFields)
|
|
57140
57805
|
});
|
|
57141
57806
|
|
|
57142
|
-
|
|
57807
|
+
/**
|
|
57808
|
+
* UpdateCloudInstanceAction _autoscalingConfig.
|
|
57809
|
+
* @member {"autoscalingConfig"|undefined} _autoscalingConfig
|
|
57810
|
+
* @memberof google.spanner.executor.v1.UpdateCloudInstanceAction
|
|
57811
|
+
* @instance
|
|
57812
|
+
*/
|
|
57143
57813
|
Object.defineProperty(UpdateCloudInstanceAction.prototype, "_autoscalingConfig", {
|
|
57144
57814
|
get: $util.oneOfGetter($oneOfFields = ["autoscalingConfig"]),
|
|
57145
57815
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -57776,13 +58446,23 @@
|
|
|
57776
58446
|
// OneOf field names bound to virtual getters and setters
|
|
57777
58447
|
var $oneOfFields;
|
|
57778
58448
|
|
|
57779
|
-
|
|
58449
|
+
/**
|
|
58450
|
+
* CreateCloudDatabaseAction _dialect.
|
|
58451
|
+
* @member {"dialect"|undefined} _dialect
|
|
58452
|
+
* @memberof google.spanner.executor.v1.CreateCloudDatabaseAction
|
|
58453
|
+
* @instance
|
|
58454
|
+
*/
|
|
57780
58455
|
Object.defineProperty(CreateCloudDatabaseAction.prototype, "_dialect", {
|
|
57781
58456
|
get: $util.oneOfGetter($oneOfFields = ["dialect"]),
|
|
57782
58457
|
set: $util.oneOfSetter($oneOfFields)
|
|
57783
58458
|
});
|
|
57784
58459
|
|
|
57785
|
-
|
|
58460
|
+
/**
|
|
58461
|
+
* CreateCloudDatabaseAction _protoDescriptors.
|
|
58462
|
+
* @member {"protoDescriptors"|undefined} _protoDescriptors
|
|
58463
|
+
* @memberof google.spanner.executor.v1.CreateCloudDatabaseAction
|
|
58464
|
+
* @instance
|
|
58465
|
+
*/
|
|
57786
58466
|
Object.defineProperty(CreateCloudDatabaseAction.prototype, "_protoDescriptors", {
|
|
57787
58467
|
get: $util.oneOfGetter($oneOfFields = ["protoDescriptors"]),
|
|
57788
58468
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -58158,7 +58838,12 @@
|
|
|
58158
58838
|
// OneOf field names bound to virtual getters and setters
|
|
58159
58839
|
var $oneOfFields;
|
|
58160
58840
|
|
|
58161
|
-
|
|
58841
|
+
/**
|
|
58842
|
+
* UpdateCloudDatabaseDdlAction _protoDescriptors.
|
|
58843
|
+
* @member {"protoDescriptors"|undefined} _protoDescriptors
|
|
58844
|
+
* @memberof google.spanner.executor.v1.UpdateCloudDatabaseDdlAction
|
|
58845
|
+
* @instance
|
|
58846
|
+
*/
|
|
58162
58847
|
Object.defineProperty(UpdateCloudDatabaseDdlAction.prototype, "_protoDescriptors", {
|
|
58163
58848
|
get: $util.oneOfGetter($oneOfFields = ["protoDescriptors"]),
|
|
58164
58849
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -58998,7 +59683,12 @@
|
|
|
58998
59683
|
// OneOf field names bound to virtual getters and setters
|
|
58999
59684
|
var $oneOfFields;
|
|
59000
59685
|
|
|
59001
|
-
|
|
59686
|
+
/**
|
|
59687
|
+
* ChangeQuorumCloudDatabaseAction _databaseUri.
|
|
59688
|
+
* @member {"databaseUri"|undefined} _databaseUri
|
|
59689
|
+
* @memberof google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction
|
|
59690
|
+
* @instance
|
|
59691
|
+
*/
|
|
59002
59692
|
Object.defineProperty(ChangeQuorumCloudDatabaseAction.prototype, "_databaseUri", {
|
|
59003
59693
|
get: $util.oneOfGetter($oneOfFields = ["databaseUri"]),
|
|
59004
59694
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -59544,19 +60234,34 @@
|
|
|
59544
60234
|
// OneOf field names bound to virtual getters and setters
|
|
59545
60235
|
var $oneOfFields;
|
|
59546
60236
|
|
|
59547
|
-
|
|
60237
|
+
/**
|
|
60238
|
+
* ListCloudInstancesAction _filter.
|
|
60239
|
+
* @member {"filter"|undefined} _filter
|
|
60240
|
+
* @memberof google.spanner.executor.v1.ListCloudInstancesAction
|
|
60241
|
+
* @instance
|
|
60242
|
+
*/
|
|
59548
60243
|
Object.defineProperty(ListCloudInstancesAction.prototype, "_filter", {
|
|
59549
60244
|
get: $util.oneOfGetter($oneOfFields = ["filter"]),
|
|
59550
60245
|
set: $util.oneOfSetter($oneOfFields)
|
|
59551
60246
|
});
|
|
59552
60247
|
|
|
59553
|
-
|
|
60248
|
+
/**
|
|
60249
|
+
* ListCloudInstancesAction _pageSize.
|
|
60250
|
+
* @member {"pageSize"|undefined} _pageSize
|
|
60251
|
+
* @memberof google.spanner.executor.v1.ListCloudInstancesAction
|
|
60252
|
+
* @instance
|
|
60253
|
+
*/
|
|
59554
60254
|
Object.defineProperty(ListCloudInstancesAction.prototype, "_pageSize", {
|
|
59555
60255
|
get: $util.oneOfGetter($oneOfFields = ["pageSize"]),
|
|
59556
60256
|
set: $util.oneOfSetter($oneOfFields)
|
|
59557
60257
|
});
|
|
59558
60258
|
|
|
59559
|
-
|
|
60259
|
+
/**
|
|
60260
|
+
* ListCloudInstancesAction _pageToken.
|
|
60261
|
+
* @member {"pageToken"|undefined} _pageToken
|
|
60262
|
+
* @memberof google.spanner.executor.v1.ListCloudInstancesAction
|
|
60263
|
+
* @instance
|
|
60264
|
+
*/
|
|
59560
60265
|
Object.defineProperty(ListCloudInstancesAction.prototype, "_pageToken", {
|
|
59561
60266
|
get: $util.oneOfGetter($oneOfFields = ["pageToken"]),
|
|
59562
60267
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -60974,7 +61679,12 @@
|
|
|
60974
61679
|
// OneOf field names bound to virtual getters and setters
|
|
60975
61680
|
var $oneOfFields;
|
|
60976
61681
|
|
|
60977
|
-
|
|
61682
|
+
/**
|
|
61683
|
+
* CreateCloudBackupAction _versionTime.
|
|
61684
|
+
* @member {"versionTime"|undefined} _versionTime
|
|
61685
|
+
* @memberof google.spanner.executor.v1.CreateCloudBackupAction
|
|
61686
|
+
* @instance
|
|
61687
|
+
*/
|
|
60978
61688
|
Object.defineProperty(CreateCloudBackupAction.prototype, "_versionTime", {
|
|
60979
61689
|
get: $util.oneOfGetter($oneOfFields = ["versionTime"]),
|
|
60980
61690
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -64110,13 +64820,23 @@
|
|
|
64110
64820
|
// OneOf field names bound to virtual getters and setters
|
|
64111
64821
|
var $oneOfFields;
|
|
64112
64822
|
|
|
64113
|
-
|
|
64823
|
+
/**
|
|
64824
|
+
* GenerateDbPartitionsForReadAction _desiredBytesPerPartition.
|
|
64825
|
+
* @member {"desiredBytesPerPartition"|undefined} _desiredBytesPerPartition
|
|
64826
|
+
* @memberof google.spanner.executor.v1.GenerateDbPartitionsForReadAction
|
|
64827
|
+
* @instance
|
|
64828
|
+
*/
|
|
64114
64829
|
Object.defineProperty(GenerateDbPartitionsForReadAction.prototype, "_desiredBytesPerPartition", {
|
|
64115
64830
|
get: $util.oneOfGetter($oneOfFields = ["desiredBytesPerPartition"]),
|
|
64116
64831
|
set: $util.oneOfSetter($oneOfFields)
|
|
64117
64832
|
});
|
|
64118
64833
|
|
|
64119
|
-
|
|
64834
|
+
/**
|
|
64835
|
+
* GenerateDbPartitionsForReadAction _maxPartitionCount.
|
|
64836
|
+
* @member {"maxPartitionCount"|undefined} _maxPartitionCount
|
|
64837
|
+
* @memberof google.spanner.executor.v1.GenerateDbPartitionsForReadAction
|
|
64838
|
+
* @instance
|
|
64839
|
+
*/
|
|
64120
64840
|
Object.defineProperty(GenerateDbPartitionsForReadAction.prototype, "_maxPartitionCount", {
|
|
64121
64841
|
get: $util.oneOfGetter($oneOfFields = ["maxPartitionCount"]),
|
|
64122
64842
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -64434,7 +65154,12 @@
|
|
|
64434
65154
|
// OneOf field names bound to virtual getters and setters
|
|
64435
65155
|
var $oneOfFields;
|
|
64436
65156
|
|
|
64437
|
-
|
|
65157
|
+
/**
|
|
65158
|
+
* GenerateDbPartitionsForQueryAction _desiredBytesPerPartition.
|
|
65159
|
+
* @member {"desiredBytesPerPartition"|undefined} _desiredBytesPerPartition
|
|
65160
|
+
* @memberof google.spanner.executor.v1.GenerateDbPartitionsForQueryAction
|
|
65161
|
+
* @instance
|
|
65162
|
+
*/
|
|
64438
65163
|
Object.defineProperty(GenerateDbPartitionsForQueryAction.prototype, "_desiredBytesPerPartition", {
|
|
64439
65164
|
get: $util.oneOfGetter($oneOfFields = ["desiredBytesPerPartition"]),
|
|
64440
65165
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -64707,13 +65432,23 @@
|
|
|
64707
65432
|
// OneOf field names bound to virtual getters and setters
|
|
64708
65433
|
var $oneOfFields;
|
|
64709
65434
|
|
|
64710
|
-
|
|
65435
|
+
/**
|
|
65436
|
+
* BatchPartition _table.
|
|
65437
|
+
* @member {"table"|undefined} _table
|
|
65438
|
+
* @memberof google.spanner.executor.v1.BatchPartition
|
|
65439
|
+
* @instance
|
|
65440
|
+
*/
|
|
64711
65441
|
Object.defineProperty(BatchPartition.prototype, "_table", {
|
|
64712
65442
|
get: $util.oneOfGetter($oneOfFields = ["table"]),
|
|
64713
65443
|
set: $util.oneOfSetter($oneOfFields)
|
|
64714
65444
|
});
|
|
64715
65445
|
|
|
64716
|
-
|
|
65446
|
+
/**
|
|
65447
|
+
* BatchPartition _index.
|
|
65448
|
+
* @member {"index"|undefined} _index
|
|
65449
|
+
* @memberof google.spanner.executor.v1.BatchPartition
|
|
65450
|
+
* @instance
|
|
65451
|
+
*/
|
|
64717
65452
|
Object.defineProperty(BatchPartition.prototype, "_index", {
|
|
64718
65453
|
get: $util.oneOfGetter($oneOfFields = ["index"]),
|
|
64719
65454
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -65267,31 +66002,56 @@
|
|
|
65267
66002
|
// OneOf field names bound to virtual getters and setters
|
|
65268
66003
|
var $oneOfFields;
|
|
65269
66004
|
|
|
65270
|
-
|
|
66005
|
+
/**
|
|
66006
|
+
* ExecuteChangeStreamQuery _endTime.
|
|
66007
|
+
* @member {"endTime"|undefined} _endTime
|
|
66008
|
+
* @memberof google.spanner.executor.v1.ExecuteChangeStreamQuery
|
|
66009
|
+
* @instance
|
|
66010
|
+
*/
|
|
65271
66011
|
Object.defineProperty(ExecuteChangeStreamQuery.prototype, "_endTime", {
|
|
65272
66012
|
get: $util.oneOfGetter($oneOfFields = ["endTime"]),
|
|
65273
66013
|
set: $util.oneOfSetter($oneOfFields)
|
|
65274
66014
|
});
|
|
65275
66015
|
|
|
65276
|
-
|
|
66016
|
+
/**
|
|
66017
|
+
* ExecuteChangeStreamQuery _partitionToken.
|
|
66018
|
+
* @member {"partitionToken"|undefined} _partitionToken
|
|
66019
|
+
* @memberof google.spanner.executor.v1.ExecuteChangeStreamQuery
|
|
66020
|
+
* @instance
|
|
66021
|
+
*/
|
|
65277
66022
|
Object.defineProperty(ExecuteChangeStreamQuery.prototype, "_partitionToken", {
|
|
65278
66023
|
get: $util.oneOfGetter($oneOfFields = ["partitionToken"]),
|
|
65279
66024
|
set: $util.oneOfSetter($oneOfFields)
|
|
65280
66025
|
});
|
|
65281
66026
|
|
|
65282
|
-
|
|
66027
|
+
/**
|
|
66028
|
+
* ExecuteChangeStreamQuery _heartbeatMilliseconds.
|
|
66029
|
+
* @member {"heartbeatMilliseconds"|undefined} _heartbeatMilliseconds
|
|
66030
|
+
* @memberof google.spanner.executor.v1.ExecuteChangeStreamQuery
|
|
66031
|
+
* @instance
|
|
66032
|
+
*/
|
|
65283
66033
|
Object.defineProperty(ExecuteChangeStreamQuery.prototype, "_heartbeatMilliseconds", {
|
|
65284
66034
|
get: $util.oneOfGetter($oneOfFields = ["heartbeatMilliseconds"]),
|
|
65285
66035
|
set: $util.oneOfSetter($oneOfFields)
|
|
65286
66036
|
});
|
|
65287
66037
|
|
|
65288
|
-
|
|
66038
|
+
/**
|
|
66039
|
+
* ExecuteChangeStreamQuery _deadlineSeconds.
|
|
66040
|
+
* @member {"deadlineSeconds"|undefined} _deadlineSeconds
|
|
66041
|
+
* @memberof google.spanner.executor.v1.ExecuteChangeStreamQuery
|
|
66042
|
+
* @instance
|
|
66043
|
+
*/
|
|
65289
66044
|
Object.defineProperty(ExecuteChangeStreamQuery.prototype, "_deadlineSeconds", {
|
|
65290
66045
|
get: $util.oneOfGetter($oneOfFields = ["deadlineSeconds"]),
|
|
65291
66046
|
set: $util.oneOfSetter($oneOfFields)
|
|
65292
66047
|
});
|
|
65293
66048
|
|
|
65294
|
-
|
|
66049
|
+
/**
|
|
66050
|
+
* ExecuteChangeStreamQuery _cloudDatabaseRole.
|
|
66051
|
+
* @member {"cloudDatabaseRole"|undefined} _cloudDatabaseRole
|
|
66052
|
+
* @memberof google.spanner.executor.v1.ExecuteChangeStreamQuery
|
|
66053
|
+
* @instance
|
|
66054
|
+
*/
|
|
65295
66055
|
Object.defineProperty(ExecuteChangeStreamQuery.prototype, "_cloudDatabaseRole", {
|
|
65296
66056
|
get: $util.oneOfGetter($oneOfFields = ["cloudDatabaseRole"]),
|
|
65297
66057
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -65744,43 +66504,78 @@
|
|
|
65744
66504
|
// OneOf field names bound to virtual getters and setters
|
|
65745
66505
|
var $oneOfFields;
|
|
65746
66506
|
|
|
65747
|
-
|
|
66507
|
+
/**
|
|
66508
|
+
* SpannerActionOutcome _status.
|
|
66509
|
+
* @member {"status"|undefined} _status
|
|
66510
|
+
* @memberof google.spanner.executor.v1.SpannerActionOutcome
|
|
66511
|
+
* @instance
|
|
66512
|
+
*/
|
|
65748
66513
|
Object.defineProperty(SpannerActionOutcome.prototype, "_status", {
|
|
65749
66514
|
get: $util.oneOfGetter($oneOfFields = ["status"]),
|
|
65750
66515
|
set: $util.oneOfSetter($oneOfFields)
|
|
65751
66516
|
});
|
|
65752
66517
|
|
|
65753
|
-
|
|
66518
|
+
/**
|
|
66519
|
+
* SpannerActionOutcome _commitTime.
|
|
66520
|
+
* @member {"commitTime"|undefined} _commitTime
|
|
66521
|
+
* @memberof google.spanner.executor.v1.SpannerActionOutcome
|
|
66522
|
+
* @instance
|
|
66523
|
+
*/
|
|
65754
66524
|
Object.defineProperty(SpannerActionOutcome.prototype, "_commitTime", {
|
|
65755
66525
|
get: $util.oneOfGetter($oneOfFields = ["commitTime"]),
|
|
65756
66526
|
set: $util.oneOfSetter($oneOfFields)
|
|
65757
66527
|
});
|
|
65758
66528
|
|
|
65759
|
-
|
|
66529
|
+
/**
|
|
66530
|
+
* SpannerActionOutcome _readResult.
|
|
66531
|
+
* @member {"readResult"|undefined} _readResult
|
|
66532
|
+
* @memberof google.spanner.executor.v1.SpannerActionOutcome
|
|
66533
|
+
* @instance
|
|
66534
|
+
*/
|
|
65760
66535
|
Object.defineProperty(SpannerActionOutcome.prototype, "_readResult", {
|
|
65761
66536
|
get: $util.oneOfGetter($oneOfFields = ["readResult"]),
|
|
65762
66537
|
set: $util.oneOfSetter($oneOfFields)
|
|
65763
66538
|
});
|
|
65764
66539
|
|
|
65765
|
-
|
|
66540
|
+
/**
|
|
66541
|
+
* SpannerActionOutcome _queryResult.
|
|
66542
|
+
* @member {"queryResult"|undefined} _queryResult
|
|
66543
|
+
* @memberof google.spanner.executor.v1.SpannerActionOutcome
|
|
66544
|
+
* @instance
|
|
66545
|
+
*/
|
|
65766
66546
|
Object.defineProperty(SpannerActionOutcome.prototype, "_queryResult", {
|
|
65767
66547
|
get: $util.oneOfGetter($oneOfFields = ["queryResult"]),
|
|
65768
66548
|
set: $util.oneOfSetter($oneOfFields)
|
|
65769
66549
|
});
|
|
65770
66550
|
|
|
65771
|
-
|
|
66551
|
+
/**
|
|
66552
|
+
* SpannerActionOutcome _transactionRestarted.
|
|
66553
|
+
* @member {"transactionRestarted"|undefined} _transactionRestarted
|
|
66554
|
+
* @memberof google.spanner.executor.v1.SpannerActionOutcome
|
|
66555
|
+
* @instance
|
|
66556
|
+
*/
|
|
65772
66557
|
Object.defineProperty(SpannerActionOutcome.prototype, "_transactionRestarted", {
|
|
65773
66558
|
get: $util.oneOfGetter($oneOfFields = ["transactionRestarted"]),
|
|
65774
66559
|
set: $util.oneOfSetter($oneOfFields)
|
|
65775
66560
|
});
|
|
65776
66561
|
|
|
65777
|
-
|
|
66562
|
+
/**
|
|
66563
|
+
* SpannerActionOutcome _batchTxnId.
|
|
66564
|
+
* @member {"batchTxnId"|undefined} _batchTxnId
|
|
66565
|
+
* @memberof google.spanner.executor.v1.SpannerActionOutcome
|
|
66566
|
+
* @instance
|
|
66567
|
+
*/
|
|
65778
66568
|
Object.defineProperty(SpannerActionOutcome.prototype, "_batchTxnId", {
|
|
65779
66569
|
get: $util.oneOfGetter($oneOfFields = ["batchTxnId"]),
|
|
65780
66570
|
set: $util.oneOfSetter($oneOfFields)
|
|
65781
66571
|
});
|
|
65782
66572
|
|
|
65783
|
-
|
|
66573
|
+
/**
|
|
66574
|
+
* SpannerActionOutcome _adminResult.
|
|
66575
|
+
* @member {"adminResult"|undefined} _adminResult
|
|
66576
|
+
* @memberof google.spanner.executor.v1.SpannerActionOutcome
|
|
66577
|
+
* @instance
|
|
66578
|
+
*/
|
|
65784
66579
|
Object.defineProperty(SpannerActionOutcome.prototype, "_adminResult", {
|
|
65785
66580
|
get: $util.oneOfGetter($oneOfFields = ["adminResult"]),
|
|
65786
66581
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -68087,19 +68882,34 @@
|
|
|
68087
68882
|
// OneOf field names bound to virtual getters and setters
|
|
68088
68883
|
var $oneOfFields;
|
|
68089
68884
|
|
|
68090
|
-
|
|
68885
|
+
/**
|
|
68886
|
+
* ReadResult _index.
|
|
68887
|
+
* @member {"index"|undefined} _index
|
|
68888
|
+
* @memberof google.spanner.executor.v1.ReadResult
|
|
68889
|
+
* @instance
|
|
68890
|
+
*/
|
|
68091
68891
|
Object.defineProperty(ReadResult.prototype, "_index", {
|
|
68092
68892
|
get: $util.oneOfGetter($oneOfFields = ["index"]),
|
|
68093
68893
|
set: $util.oneOfSetter($oneOfFields)
|
|
68094
68894
|
});
|
|
68095
68895
|
|
|
68096
|
-
|
|
68896
|
+
/**
|
|
68897
|
+
* ReadResult _requestIndex.
|
|
68898
|
+
* @member {"requestIndex"|undefined} _requestIndex
|
|
68899
|
+
* @memberof google.spanner.executor.v1.ReadResult
|
|
68900
|
+
* @instance
|
|
68901
|
+
*/
|
|
68097
68902
|
Object.defineProperty(ReadResult.prototype, "_requestIndex", {
|
|
68098
68903
|
get: $util.oneOfGetter($oneOfFields = ["requestIndex"]),
|
|
68099
68904
|
set: $util.oneOfSetter($oneOfFields)
|
|
68100
68905
|
});
|
|
68101
68906
|
|
|
68102
|
-
|
|
68907
|
+
/**
|
|
68908
|
+
* ReadResult _rowType.
|
|
68909
|
+
* @member {"rowType"|undefined} _rowType
|
|
68910
|
+
* @memberof google.spanner.executor.v1.ReadResult
|
|
68911
|
+
* @instance
|
|
68912
|
+
*/
|
|
68103
68913
|
Object.defineProperty(ReadResult.prototype, "_rowType", {
|
|
68104
68914
|
get: $util.oneOfGetter($oneOfFields = ["rowType"]),
|
|
68105
68915
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -68417,7 +69227,12 @@
|
|
|
68417
69227
|
// OneOf field names bound to virtual getters and setters
|
|
68418
69228
|
var $oneOfFields;
|
|
68419
69229
|
|
|
68420
|
-
|
|
69230
|
+
/**
|
|
69231
|
+
* QueryResult _rowType.
|
|
69232
|
+
* @member {"rowType"|undefined} _rowType
|
|
69233
|
+
* @memberof google.spanner.executor.v1.QueryResult
|
|
69234
|
+
* @instance
|
|
69235
|
+
*/
|
|
68421
69236
|
Object.defineProperty(QueryResult.prototype, "_rowType", {
|
|
68422
69237
|
get: $util.oneOfGetter($oneOfFields = ["rowType"]),
|
|
68423
69238
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -87382,6 +88197,7 @@
|
|
|
87382
88197
|
case 13:
|
|
87383
88198
|
case 14:
|
|
87384
88199
|
case 16:
|
|
88200
|
+
case 17:
|
|
87385
88201
|
break;
|
|
87386
88202
|
}
|
|
87387
88203
|
if (message.arrayElementType != null && message.hasOwnProperty("arrayElementType")) {
|
|
@@ -87493,6 +88309,10 @@
|
|
|
87493
88309
|
case 16:
|
|
87494
88310
|
message.code = 16;
|
|
87495
88311
|
break;
|
|
88312
|
+
case "UUID":
|
|
88313
|
+
case 17:
|
|
88314
|
+
message.code = 17;
|
|
88315
|
+
break;
|
|
87496
88316
|
}
|
|
87497
88317
|
if (object.arrayElementType != null) {
|
|
87498
88318
|
if (typeof object.arrayElementType !== "object")
|
|
@@ -88071,6 +88891,7 @@
|
|
|
88071
88891
|
* @property {number} PROTO=13 PROTO value
|
|
88072
88892
|
* @property {number} ENUM=14 ENUM value
|
|
88073
88893
|
* @property {number} INTERVAL=16 INTERVAL value
|
|
88894
|
+
* @property {number} UUID=17 UUID value
|
|
88074
88895
|
*/
|
|
88075
88896
|
v1.TypeCode = (function() {
|
|
88076
88897
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -88090,6 +88911,7 @@
|
|
|
88090
88911
|
values[valuesById[13] = "PROTO"] = 13;
|
|
88091
88912
|
values[valuesById[14] = "ENUM"] = 14;
|
|
88092
88913
|
values[valuesById[16] = "INTERVAL"] = 16;
|
|
88914
|
+
values[valuesById[17] = "UUID"] = 17;
|
|
88093
88915
|
return values;
|
|
88094
88916
|
})();
|
|
88095
88917
|
|