@google-cloud/spanner 7.18.1 → 7.19.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 +23 -0
- package/build/protos/google/spanner/admin/database/v1/backup.proto +16 -0
- package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +70 -0
- package/build/protos/google/spanner/v1/transaction.proto +48 -1
- package/build/protos/protos.d.ts +552 -0
- package/build/protos/protos.js +1300 -1
- package/build/protos/protos.json +122 -2
- package/build/src/database.js +14 -9
- package/build/src/multiplexed-session.d.ts +0 -1
- package/build/src/multiplexed-session.js +0 -3
- package/build/src/request_id_header.d.ts +41 -0
- package/build/src/request_id_header.js +138 -0
- package/build/src/session-factory.d.ts +15 -0
- package/build/src/session-factory.js +18 -5
- package/build/src/session-pool.js +18 -7
- package/build/src/transaction.js +2 -3
- package/build/src/v1/database_admin_client.d.ts +40 -9
- package/build/src/v1/database_admin_client.js +87 -9
- package/build/src/v1/database_admin_client_config.json +5 -0
- package/build/src/v1/instance_admin_client.d.ts +5 -5
- package/build/src/v1/instance_admin_client.js +5 -5
- package/build/src/v1/spanner_client.d.ts +1 -1
- package/build/src/v1/spanner_client.js +2 -2
- package/build/src/v1/spanner_executor_proxy_client.js +1 -1
- package/package.json +1 -1
package/build/protos/protos.d.ts
CHANGED
|
@@ -6584,6 +6584,9 @@ export namespace google {
|
|
|
6584
6584
|
|
|
6585
6585
|
/** Backup oldestVersionTime */
|
|
6586
6586
|
oldestVersionTime?: (google.protobuf.ITimestamp|null);
|
|
6587
|
+
|
|
6588
|
+
/** Backup instancePartitions */
|
|
6589
|
+
instancePartitions?: (google.spanner.admin.database.v1.IBackupInstancePartition[]|null);
|
|
6587
6590
|
}
|
|
6588
6591
|
|
|
6589
6592
|
/** Represents a Backup. */
|
|
@@ -6649,6 +6652,9 @@ export namespace google {
|
|
|
6649
6652
|
/** Backup oldestVersionTime. */
|
|
6650
6653
|
public oldestVersionTime?: (google.protobuf.ITimestamp|null);
|
|
6651
6654
|
|
|
6655
|
+
/** Backup instancePartitions. */
|
|
6656
|
+
public instancePartitions: google.spanner.admin.database.v1.IBackupInstancePartition[];
|
|
6657
|
+
|
|
6652
6658
|
/**
|
|
6653
6659
|
* Creates a new Backup instance using the specified properties.
|
|
6654
6660
|
* @param [properties] Properties to set
|
|
@@ -8473,6 +8479,103 @@ export namespace google {
|
|
|
8473
8479
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
8474
8480
|
}
|
|
8475
8481
|
|
|
8482
|
+
/** Properties of a BackupInstancePartition. */
|
|
8483
|
+
interface IBackupInstancePartition {
|
|
8484
|
+
|
|
8485
|
+
/** BackupInstancePartition instancePartition */
|
|
8486
|
+
instancePartition?: (string|null);
|
|
8487
|
+
}
|
|
8488
|
+
|
|
8489
|
+
/** Represents a BackupInstancePartition. */
|
|
8490
|
+
class BackupInstancePartition implements IBackupInstancePartition {
|
|
8491
|
+
|
|
8492
|
+
/**
|
|
8493
|
+
* Constructs a new BackupInstancePartition.
|
|
8494
|
+
* @param [properties] Properties to set
|
|
8495
|
+
*/
|
|
8496
|
+
constructor(properties?: google.spanner.admin.database.v1.IBackupInstancePartition);
|
|
8497
|
+
|
|
8498
|
+
/** BackupInstancePartition instancePartition. */
|
|
8499
|
+
public instancePartition: string;
|
|
8500
|
+
|
|
8501
|
+
/**
|
|
8502
|
+
* Creates a new BackupInstancePartition instance using the specified properties.
|
|
8503
|
+
* @param [properties] Properties to set
|
|
8504
|
+
* @returns BackupInstancePartition instance
|
|
8505
|
+
*/
|
|
8506
|
+
public static create(properties?: google.spanner.admin.database.v1.IBackupInstancePartition): google.spanner.admin.database.v1.BackupInstancePartition;
|
|
8507
|
+
|
|
8508
|
+
/**
|
|
8509
|
+
* Encodes the specified BackupInstancePartition message. Does not implicitly {@link google.spanner.admin.database.v1.BackupInstancePartition.verify|verify} messages.
|
|
8510
|
+
* @param message BackupInstancePartition message or plain object to encode
|
|
8511
|
+
* @param [writer] Writer to encode to
|
|
8512
|
+
* @returns Writer
|
|
8513
|
+
*/
|
|
8514
|
+
public static encode(message: google.spanner.admin.database.v1.IBackupInstancePartition, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
8515
|
+
|
|
8516
|
+
/**
|
|
8517
|
+
* Encodes the specified BackupInstancePartition message, length delimited. Does not implicitly {@link google.spanner.admin.database.v1.BackupInstancePartition.verify|verify} messages.
|
|
8518
|
+
* @param message BackupInstancePartition message or plain object to encode
|
|
8519
|
+
* @param [writer] Writer to encode to
|
|
8520
|
+
* @returns Writer
|
|
8521
|
+
*/
|
|
8522
|
+
public static encodeDelimited(message: google.spanner.admin.database.v1.IBackupInstancePartition, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
8523
|
+
|
|
8524
|
+
/**
|
|
8525
|
+
* Decodes a BackupInstancePartition message from the specified reader or buffer.
|
|
8526
|
+
* @param reader Reader or buffer to decode from
|
|
8527
|
+
* @param [length] Message length if known beforehand
|
|
8528
|
+
* @returns BackupInstancePartition
|
|
8529
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8530
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8531
|
+
*/
|
|
8532
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.admin.database.v1.BackupInstancePartition;
|
|
8533
|
+
|
|
8534
|
+
/**
|
|
8535
|
+
* Decodes a BackupInstancePartition message from the specified reader or buffer, length delimited.
|
|
8536
|
+
* @param reader Reader or buffer to decode from
|
|
8537
|
+
* @returns BackupInstancePartition
|
|
8538
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8539
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8540
|
+
*/
|
|
8541
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.admin.database.v1.BackupInstancePartition;
|
|
8542
|
+
|
|
8543
|
+
/**
|
|
8544
|
+
* Verifies a BackupInstancePartition message.
|
|
8545
|
+
* @param message Plain object to verify
|
|
8546
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
8547
|
+
*/
|
|
8548
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
8549
|
+
|
|
8550
|
+
/**
|
|
8551
|
+
* Creates a BackupInstancePartition message from a plain object. Also converts values to their respective internal types.
|
|
8552
|
+
* @param object Plain object
|
|
8553
|
+
* @returns BackupInstancePartition
|
|
8554
|
+
*/
|
|
8555
|
+
public static fromObject(object: { [k: string]: any }): google.spanner.admin.database.v1.BackupInstancePartition;
|
|
8556
|
+
|
|
8557
|
+
/**
|
|
8558
|
+
* Creates a plain object from a BackupInstancePartition message. Also converts values to other types if specified.
|
|
8559
|
+
* @param message BackupInstancePartition
|
|
8560
|
+
* @param [options] Conversion options
|
|
8561
|
+
* @returns Plain object
|
|
8562
|
+
*/
|
|
8563
|
+
public static toObject(message: google.spanner.admin.database.v1.BackupInstancePartition, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
8564
|
+
|
|
8565
|
+
/**
|
|
8566
|
+
* Converts this BackupInstancePartition to JSON.
|
|
8567
|
+
* @returns JSON object
|
|
8568
|
+
*/
|
|
8569
|
+
public toJSON(): { [k: string]: any };
|
|
8570
|
+
|
|
8571
|
+
/**
|
|
8572
|
+
* Gets the default type url for BackupInstancePartition
|
|
8573
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
8574
|
+
* @returns The default type url
|
|
8575
|
+
*/
|
|
8576
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
8577
|
+
}
|
|
8578
|
+
|
|
8476
8579
|
/** Properties of an OperationProgress. */
|
|
8477
8580
|
interface IOperationProgress {
|
|
8478
8581
|
|
|
@@ -10074,6 +10177,20 @@ export namespace google {
|
|
|
10074
10177
|
*/
|
|
10075
10178
|
public listDatabaseRoles(request: google.spanner.admin.database.v1.IListDatabaseRolesRequest): Promise<google.spanner.admin.database.v1.ListDatabaseRolesResponse>;
|
|
10076
10179
|
|
|
10180
|
+
/**
|
|
10181
|
+
* Calls AddSplitPoints.
|
|
10182
|
+
* @param request AddSplitPointsRequest message or plain object
|
|
10183
|
+
* @param callback Node-style callback called with the error, if any, and AddSplitPointsResponse
|
|
10184
|
+
*/
|
|
10185
|
+
public addSplitPoints(request: google.spanner.admin.database.v1.IAddSplitPointsRequest, callback: google.spanner.admin.database.v1.DatabaseAdmin.AddSplitPointsCallback): void;
|
|
10186
|
+
|
|
10187
|
+
/**
|
|
10188
|
+
* Calls AddSplitPoints.
|
|
10189
|
+
* @param request AddSplitPointsRequest message or plain object
|
|
10190
|
+
* @returns Promise
|
|
10191
|
+
*/
|
|
10192
|
+
public addSplitPoints(request: google.spanner.admin.database.v1.IAddSplitPointsRequest): Promise<google.spanner.admin.database.v1.AddSplitPointsResponse>;
|
|
10193
|
+
|
|
10077
10194
|
/**
|
|
10078
10195
|
* Calls CreateBackupSchedule.
|
|
10079
10196
|
* @param request CreateBackupScheduleRequest message or plain object
|
|
@@ -10287,6 +10404,13 @@ export namespace google {
|
|
|
10287
10404
|
*/
|
|
10288
10405
|
type ListDatabaseRolesCallback = (error: (Error|null), response?: google.spanner.admin.database.v1.ListDatabaseRolesResponse) => void;
|
|
10289
10406
|
|
|
10407
|
+
/**
|
|
10408
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|addSplitPoints}.
|
|
10409
|
+
* @param error Error, if any
|
|
10410
|
+
* @param [response] AddSplitPointsResponse
|
|
10411
|
+
*/
|
|
10412
|
+
type AddSplitPointsCallback = (error: (Error|null), response?: google.spanner.admin.database.v1.AddSplitPointsResponse) => void;
|
|
10413
|
+
|
|
10290
10414
|
/**
|
|
10291
10415
|
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|createBackupSchedule}.
|
|
10292
10416
|
* @param error Error, if any
|
|
@@ -12999,6 +13123,421 @@ export namespace google {
|
|
|
12999
13123
|
*/
|
|
13000
13124
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
13001
13125
|
}
|
|
13126
|
+
|
|
13127
|
+
/** Properties of an AddSplitPointsRequest. */
|
|
13128
|
+
interface IAddSplitPointsRequest {
|
|
13129
|
+
|
|
13130
|
+
/** AddSplitPointsRequest database */
|
|
13131
|
+
database?: (string|null);
|
|
13132
|
+
|
|
13133
|
+
/** AddSplitPointsRequest splitPoints */
|
|
13134
|
+
splitPoints?: (google.spanner.admin.database.v1.ISplitPoints[]|null);
|
|
13135
|
+
|
|
13136
|
+
/** AddSplitPointsRequest initiator */
|
|
13137
|
+
initiator?: (string|null);
|
|
13138
|
+
}
|
|
13139
|
+
|
|
13140
|
+
/** Represents an AddSplitPointsRequest. */
|
|
13141
|
+
class AddSplitPointsRequest implements IAddSplitPointsRequest {
|
|
13142
|
+
|
|
13143
|
+
/**
|
|
13144
|
+
* Constructs a new AddSplitPointsRequest.
|
|
13145
|
+
* @param [properties] Properties to set
|
|
13146
|
+
*/
|
|
13147
|
+
constructor(properties?: google.spanner.admin.database.v1.IAddSplitPointsRequest);
|
|
13148
|
+
|
|
13149
|
+
/** AddSplitPointsRequest database. */
|
|
13150
|
+
public database: string;
|
|
13151
|
+
|
|
13152
|
+
/** AddSplitPointsRequest splitPoints. */
|
|
13153
|
+
public splitPoints: google.spanner.admin.database.v1.ISplitPoints[];
|
|
13154
|
+
|
|
13155
|
+
/** AddSplitPointsRequest initiator. */
|
|
13156
|
+
public initiator: string;
|
|
13157
|
+
|
|
13158
|
+
/**
|
|
13159
|
+
* Creates a new AddSplitPointsRequest instance using the specified properties.
|
|
13160
|
+
* @param [properties] Properties to set
|
|
13161
|
+
* @returns AddSplitPointsRequest instance
|
|
13162
|
+
*/
|
|
13163
|
+
public static create(properties?: google.spanner.admin.database.v1.IAddSplitPointsRequest): google.spanner.admin.database.v1.AddSplitPointsRequest;
|
|
13164
|
+
|
|
13165
|
+
/**
|
|
13166
|
+
* Encodes the specified AddSplitPointsRequest message. Does not implicitly {@link google.spanner.admin.database.v1.AddSplitPointsRequest.verify|verify} messages.
|
|
13167
|
+
* @param message AddSplitPointsRequest message or plain object to encode
|
|
13168
|
+
* @param [writer] Writer to encode to
|
|
13169
|
+
* @returns Writer
|
|
13170
|
+
*/
|
|
13171
|
+
public static encode(message: google.spanner.admin.database.v1.IAddSplitPointsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
13172
|
+
|
|
13173
|
+
/**
|
|
13174
|
+
* Encodes the specified AddSplitPointsRequest message, length delimited. Does not implicitly {@link google.spanner.admin.database.v1.AddSplitPointsRequest.verify|verify} messages.
|
|
13175
|
+
* @param message AddSplitPointsRequest message or plain object to encode
|
|
13176
|
+
* @param [writer] Writer to encode to
|
|
13177
|
+
* @returns Writer
|
|
13178
|
+
*/
|
|
13179
|
+
public static encodeDelimited(message: google.spanner.admin.database.v1.IAddSplitPointsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
13180
|
+
|
|
13181
|
+
/**
|
|
13182
|
+
* Decodes an AddSplitPointsRequest message from the specified reader or buffer.
|
|
13183
|
+
* @param reader Reader or buffer to decode from
|
|
13184
|
+
* @param [length] Message length if known beforehand
|
|
13185
|
+
* @returns AddSplitPointsRequest
|
|
13186
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13187
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13188
|
+
*/
|
|
13189
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.admin.database.v1.AddSplitPointsRequest;
|
|
13190
|
+
|
|
13191
|
+
/**
|
|
13192
|
+
* Decodes an AddSplitPointsRequest message from the specified reader or buffer, length delimited.
|
|
13193
|
+
* @param reader Reader or buffer to decode from
|
|
13194
|
+
* @returns AddSplitPointsRequest
|
|
13195
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13196
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13197
|
+
*/
|
|
13198
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.admin.database.v1.AddSplitPointsRequest;
|
|
13199
|
+
|
|
13200
|
+
/**
|
|
13201
|
+
* Verifies an AddSplitPointsRequest message.
|
|
13202
|
+
* @param message Plain object to verify
|
|
13203
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
13204
|
+
*/
|
|
13205
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
13206
|
+
|
|
13207
|
+
/**
|
|
13208
|
+
* Creates an AddSplitPointsRequest message from a plain object. Also converts values to their respective internal types.
|
|
13209
|
+
* @param object Plain object
|
|
13210
|
+
* @returns AddSplitPointsRequest
|
|
13211
|
+
*/
|
|
13212
|
+
public static fromObject(object: { [k: string]: any }): google.spanner.admin.database.v1.AddSplitPointsRequest;
|
|
13213
|
+
|
|
13214
|
+
/**
|
|
13215
|
+
* Creates a plain object from an AddSplitPointsRequest message. Also converts values to other types if specified.
|
|
13216
|
+
* @param message AddSplitPointsRequest
|
|
13217
|
+
* @param [options] Conversion options
|
|
13218
|
+
* @returns Plain object
|
|
13219
|
+
*/
|
|
13220
|
+
public static toObject(message: google.spanner.admin.database.v1.AddSplitPointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
13221
|
+
|
|
13222
|
+
/**
|
|
13223
|
+
* Converts this AddSplitPointsRequest to JSON.
|
|
13224
|
+
* @returns JSON object
|
|
13225
|
+
*/
|
|
13226
|
+
public toJSON(): { [k: string]: any };
|
|
13227
|
+
|
|
13228
|
+
/**
|
|
13229
|
+
* Gets the default type url for AddSplitPointsRequest
|
|
13230
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
13231
|
+
* @returns The default type url
|
|
13232
|
+
*/
|
|
13233
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
13234
|
+
}
|
|
13235
|
+
|
|
13236
|
+
/** Properties of an AddSplitPointsResponse. */
|
|
13237
|
+
interface IAddSplitPointsResponse {
|
|
13238
|
+
}
|
|
13239
|
+
|
|
13240
|
+
/** Represents an AddSplitPointsResponse. */
|
|
13241
|
+
class AddSplitPointsResponse implements IAddSplitPointsResponse {
|
|
13242
|
+
|
|
13243
|
+
/**
|
|
13244
|
+
* Constructs a new AddSplitPointsResponse.
|
|
13245
|
+
* @param [properties] Properties to set
|
|
13246
|
+
*/
|
|
13247
|
+
constructor(properties?: google.spanner.admin.database.v1.IAddSplitPointsResponse);
|
|
13248
|
+
|
|
13249
|
+
/**
|
|
13250
|
+
* Creates a new AddSplitPointsResponse instance using the specified properties.
|
|
13251
|
+
* @param [properties] Properties to set
|
|
13252
|
+
* @returns AddSplitPointsResponse instance
|
|
13253
|
+
*/
|
|
13254
|
+
public static create(properties?: google.spanner.admin.database.v1.IAddSplitPointsResponse): google.spanner.admin.database.v1.AddSplitPointsResponse;
|
|
13255
|
+
|
|
13256
|
+
/**
|
|
13257
|
+
* Encodes the specified AddSplitPointsResponse message. Does not implicitly {@link google.spanner.admin.database.v1.AddSplitPointsResponse.verify|verify} messages.
|
|
13258
|
+
* @param message AddSplitPointsResponse message or plain object to encode
|
|
13259
|
+
* @param [writer] Writer to encode to
|
|
13260
|
+
* @returns Writer
|
|
13261
|
+
*/
|
|
13262
|
+
public static encode(message: google.spanner.admin.database.v1.IAddSplitPointsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
13263
|
+
|
|
13264
|
+
/**
|
|
13265
|
+
* Encodes the specified AddSplitPointsResponse message, length delimited. Does not implicitly {@link google.spanner.admin.database.v1.AddSplitPointsResponse.verify|verify} messages.
|
|
13266
|
+
* @param message AddSplitPointsResponse message or plain object to encode
|
|
13267
|
+
* @param [writer] Writer to encode to
|
|
13268
|
+
* @returns Writer
|
|
13269
|
+
*/
|
|
13270
|
+
public static encodeDelimited(message: google.spanner.admin.database.v1.IAddSplitPointsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
13271
|
+
|
|
13272
|
+
/**
|
|
13273
|
+
* Decodes an AddSplitPointsResponse message from the specified reader or buffer.
|
|
13274
|
+
* @param reader Reader or buffer to decode from
|
|
13275
|
+
* @param [length] Message length if known beforehand
|
|
13276
|
+
* @returns AddSplitPointsResponse
|
|
13277
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13278
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13279
|
+
*/
|
|
13280
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.admin.database.v1.AddSplitPointsResponse;
|
|
13281
|
+
|
|
13282
|
+
/**
|
|
13283
|
+
* Decodes an AddSplitPointsResponse message from the specified reader or buffer, length delimited.
|
|
13284
|
+
* @param reader Reader or buffer to decode from
|
|
13285
|
+
* @returns AddSplitPointsResponse
|
|
13286
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13287
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13288
|
+
*/
|
|
13289
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.admin.database.v1.AddSplitPointsResponse;
|
|
13290
|
+
|
|
13291
|
+
/**
|
|
13292
|
+
* Verifies an AddSplitPointsResponse message.
|
|
13293
|
+
* @param message Plain object to verify
|
|
13294
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
13295
|
+
*/
|
|
13296
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
13297
|
+
|
|
13298
|
+
/**
|
|
13299
|
+
* Creates an AddSplitPointsResponse message from a plain object. Also converts values to their respective internal types.
|
|
13300
|
+
* @param object Plain object
|
|
13301
|
+
* @returns AddSplitPointsResponse
|
|
13302
|
+
*/
|
|
13303
|
+
public static fromObject(object: { [k: string]: any }): google.spanner.admin.database.v1.AddSplitPointsResponse;
|
|
13304
|
+
|
|
13305
|
+
/**
|
|
13306
|
+
* Creates a plain object from an AddSplitPointsResponse message. Also converts values to other types if specified.
|
|
13307
|
+
* @param message AddSplitPointsResponse
|
|
13308
|
+
* @param [options] Conversion options
|
|
13309
|
+
* @returns Plain object
|
|
13310
|
+
*/
|
|
13311
|
+
public static toObject(message: google.spanner.admin.database.v1.AddSplitPointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
13312
|
+
|
|
13313
|
+
/**
|
|
13314
|
+
* Converts this AddSplitPointsResponse to JSON.
|
|
13315
|
+
* @returns JSON object
|
|
13316
|
+
*/
|
|
13317
|
+
public toJSON(): { [k: string]: any };
|
|
13318
|
+
|
|
13319
|
+
/**
|
|
13320
|
+
* Gets the default type url for AddSplitPointsResponse
|
|
13321
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
13322
|
+
* @returns The default type url
|
|
13323
|
+
*/
|
|
13324
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
13325
|
+
}
|
|
13326
|
+
|
|
13327
|
+
/** Properties of a SplitPoints. */
|
|
13328
|
+
interface ISplitPoints {
|
|
13329
|
+
|
|
13330
|
+
/** SplitPoints table */
|
|
13331
|
+
table?: (string|null);
|
|
13332
|
+
|
|
13333
|
+
/** SplitPoints index */
|
|
13334
|
+
index?: (string|null);
|
|
13335
|
+
|
|
13336
|
+
/** SplitPoints keys */
|
|
13337
|
+
keys?: (google.spanner.admin.database.v1.SplitPoints.IKey[]|null);
|
|
13338
|
+
|
|
13339
|
+
/** SplitPoints expireTime */
|
|
13340
|
+
expireTime?: (google.protobuf.ITimestamp|null);
|
|
13341
|
+
}
|
|
13342
|
+
|
|
13343
|
+
/** Represents a SplitPoints. */
|
|
13344
|
+
class SplitPoints implements ISplitPoints {
|
|
13345
|
+
|
|
13346
|
+
/**
|
|
13347
|
+
* Constructs a new SplitPoints.
|
|
13348
|
+
* @param [properties] Properties to set
|
|
13349
|
+
*/
|
|
13350
|
+
constructor(properties?: google.spanner.admin.database.v1.ISplitPoints);
|
|
13351
|
+
|
|
13352
|
+
/** SplitPoints table. */
|
|
13353
|
+
public table: string;
|
|
13354
|
+
|
|
13355
|
+
/** SplitPoints index. */
|
|
13356
|
+
public index: string;
|
|
13357
|
+
|
|
13358
|
+
/** SplitPoints keys. */
|
|
13359
|
+
public keys: google.spanner.admin.database.v1.SplitPoints.IKey[];
|
|
13360
|
+
|
|
13361
|
+
/** SplitPoints expireTime. */
|
|
13362
|
+
public expireTime?: (google.protobuf.ITimestamp|null);
|
|
13363
|
+
|
|
13364
|
+
/**
|
|
13365
|
+
* Creates a new SplitPoints instance using the specified properties.
|
|
13366
|
+
* @param [properties] Properties to set
|
|
13367
|
+
* @returns SplitPoints instance
|
|
13368
|
+
*/
|
|
13369
|
+
public static create(properties?: google.spanner.admin.database.v1.ISplitPoints): google.spanner.admin.database.v1.SplitPoints;
|
|
13370
|
+
|
|
13371
|
+
/**
|
|
13372
|
+
* Encodes the specified SplitPoints message. Does not implicitly {@link google.spanner.admin.database.v1.SplitPoints.verify|verify} messages.
|
|
13373
|
+
* @param message SplitPoints message or plain object to encode
|
|
13374
|
+
* @param [writer] Writer to encode to
|
|
13375
|
+
* @returns Writer
|
|
13376
|
+
*/
|
|
13377
|
+
public static encode(message: google.spanner.admin.database.v1.ISplitPoints, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
13378
|
+
|
|
13379
|
+
/**
|
|
13380
|
+
* Encodes the specified SplitPoints message, length delimited. Does not implicitly {@link google.spanner.admin.database.v1.SplitPoints.verify|verify} messages.
|
|
13381
|
+
* @param message SplitPoints message or plain object to encode
|
|
13382
|
+
* @param [writer] Writer to encode to
|
|
13383
|
+
* @returns Writer
|
|
13384
|
+
*/
|
|
13385
|
+
public static encodeDelimited(message: google.spanner.admin.database.v1.ISplitPoints, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
13386
|
+
|
|
13387
|
+
/**
|
|
13388
|
+
* Decodes a SplitPoints message from the specified reader or buffer.
|
|
13389
|
+
* @param reader Reader or buffer to decode from
|
|
13390
|
+
* @param [length] Message length if known beforehand
|
|
13391
|
+
* @returns SplitPoints
|
|
13392
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13393
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13394
|
+
*/
|
|
13395
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.admin.database.v1.SplitPoints;
|
|
13396
|
+
|
|
13397
|
+
/**
|
|
13398
|
+
* Decodes a SplitPoints message from the specified reader or buffer, length delimited.
|
|
13399
|
+
* @param reader Reader or buffer to decode from
|
|
13400
|
+
* @returns SplitPoints
|
|
13401
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13402
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13403
|
+
*/
|
|
13404
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.admin.database.v1.SplitPoints;
|
|
13405
|
+
|
|
13406
|
+
/**
|
|
13407
|
+
* Verifies a SplitPoints message.
|
|
13408
|
+
* @param message Plain object to verify
|
|
13409
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
13410
|
+
*/
|
|
13411
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
13412
|
+
|
|
13413
|
+
/**
|
|
13414
|
+
* Creates a SplitPoints message from a plain object. Also converts values to their respective internal types.
|
|
13415
|
+
* @param object Plain object
|
|
13416
|
+
* @returns SplitPoints
|
|
13417
|
+
*/
|
|
13418
|
+
public static fromObject(object: { [k: string]: any }): google.spanner.admin.database.v1.SplitPoints;
|
|
13419
|
+
|
|
13420
|
+
/**
|
|
13421
|
+
* Creates a plain object from a SplitPoints message. Also converts values to other types if specified.
|
|
13422
|
+
* @param message SplitPoints
|
|
13423
|
+
* @param [options] Conversion options
|
|
13424
|
+
* @returns Plain object
|
|
13425
|
+
*/
|
|
13426
|
+
public static toObject(message: google.spanner.admin.database.v1.SplitPoints, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
13427
|
+
|
|
13428
|
+
/**
|
|
13429
|
+
* Converts this SplitPoints to JSON.
|
|
13430
|
+
* @returns JSON object
|
|
13431
|
+
*/
|
|
13432
|
+
public toJSON(): { [k: string]: any };
|
|
13433
|
+
|
|
13434
|
+
/**
|
|
13435
|
+
* Gets the default type url for SplitPoints
|
|
13436
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
13437
|
+
* @returns The default type url
|
|
13438
|
+
*/
|
|
13439
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
13440
|
+
}
|
|
13441
|
+
|
|
13442
|
+
namespace SplitPoints {
|
|
13443
|
+
|
|
13444
|
+
/** Properties of a Key. */
|
|
13445
|
+
interface IKey {
|
|
13446
|
+
|
|
13447
|
+
/** Key keyParts */
|
|
13448
|
+
keyParts?: (google.protobuf.IListValue|null);
|
|
13449
|
+
}
|
|
13450
|
+
|
|
13451
|
+
/** Represents a Key. */
|
|
13452
|
+
class Key implements IKey {
|
|
13453
|
+
|
|
13454
|
+
/**
|
|
13455
|
+
* Constructs a new Key.
|
|
13456
|
+
* @param [properties] Properties to set
|
|
13457
|
+
*/
|
|
13458
|
+
constructor(properties?: google.spanner.admin.database.v1.SplitPoints.IKey);
|
|
13459
|
+
|
|
13460
|
+
/** Key keyParts. */
|
|
13461
|
+
public keyParts?: (google.protobuf.IListValue|null);
|
|
13462
|
+
|
|
13463
|
+
/**
|
|
13464
|
+
* Creates a new Key instance using the specified properties.
|
|
13465
|
+
* @param [properties] Properties to set
|
|
13466
|
+
* @returns Key instance
|
|
13467
|
+
*/
|
|
13468
|
+
public static create(properties?: google.spanner.admin.database.v1.SplitPoints.IKey): google.spanner.admin.database.v1.SplitPoints.Key;
|
|
13469
|
+
|
|
13470
|
+
/**
|
|
13471
|
+
* Encodes the specified Key message. Does not implicitly {@link google.spanner.admin.database.v1.SplitPoints.Key.verify|verify} messages.
|
|
13472
|
+
* @param message Key message or plain object to encode
|
|
13473
|
+
* @param [writer] Writer to encode to
|
|
13474
|
+
* @returns Writer
|
|
13475
|
+
*/
|
|
13476
|
+
public static encode(message: google.spanner.admin.database.v1.SplitPoints.IKey, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
13477
|
+
|
|
13478
|
+
/**
|
|
13479
|
+
* Encodes the specified Key message, length delimited. Does not implicitly {@link google.spanner.admin.database.v1.SplitPoints.Key.verify|verify} messages.
|
|
13480
|
+
* @param message Key message or plain object to encode
|
|
13481
|
+
* @param [writer] Writer to encode to
|
|
13482
|
+
* @returns Writer
|
|
13483
|
+
*/
|
|
13484
|
+
public static encodeDelimited(message: google.spanner.admin.database.v1.SplitPoints.IKey, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
13485
|
+
|
|
13486
|
+
/**
|
|
13487
|
+
* Decodes a Key message from the specified reader or buffer.
|
|
13488
|
+
* @param reader Reader or buffer to decode from
|
|
13489
|
+
* @param [length] Message length if known beforehand
|
|
13490
|
+
* @returns Key
|
|
13491
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13492
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13493
|
+
*/
|
|
13494
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.admin.database.v1.SplitPoints.Key;
|
|
13495
|
+
|
|
13496
|
+
/**
|
|
13497
|
+
* Decodes a Key message from the specified reader or buffer, length delimited.
|
|
13498
|
+
* @param reader Reader or buffer to decode from
|
|
13499
|
+
* @returns Key
|
|
13500
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13501
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13502
|
+
*/
|
|
13503
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.admin.database.v1.SplitPoints.Key;
|
|
13504
|
+
|
|
13505
|
+
/**
|
|
13506
|
+
* Verifies a Key message.
|
|
13507
|
+
* @param message Plain object to verify
|
|
13508
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
13509
|
+
*/
|
|
13510
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
13511
|
+
|
|
13512
|
+
/**
|
|
13513
|
+
* Creates a Key message from a plain object. Also converts values to their respective internal types.
|
|
13514
|
+
* @param object Plain object
|
|
13515
|
+
* @returns Key
|
|
13516
|
+
*/
|
|
13517
|
+
public static fromObject(object: { [k: string]: any }): google.spanner.admin.database.v1.SplitPoints.Key;
|
|
13518
|
+
|
|
13519
|
+
/**
|
|
13520
|
+
* Creates a plain object from a Key message. Also converts values to other types if specified.
|
|
13521
|
+
* @param message Key
|
|
13522
|
+
* @param [options] Conversion options
|
|
13523
|
+
* @returns Plain object
|
|
13524
|
+
*/
|
|
13525
|
+
public static toObject(message: google.spanner.admin.database.v1.SplitPoints.Key, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
13526
|
+
|
|
13527
|
+
/**
|
|
13528
|
+
* Converts this Key to JSON.
|
|
13529
|
+
* @returns JSON object
|
|
13530
|
+
*/
|
|
13531
|
+
public toJSON(): { [k: string]: any };
|
|
13532
|
+
|
|
13533
|
+
/**
|
|
13534
|
+
* Gets the default type url for Key
|
|
13535
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
13536
|
+
* @returns The default type url
|
|
13537
|
+
*/
|
|
13538
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
13539
|
+
}
|
|
13540
|
+
}
|
|
13002
13541
|
}
|
|
13003
13542
|
}
|
|
13004
13543
|
|
|
@@ -32094,6 +32633,9 @@ export namespace google {
|
|
|
32094
32633
|
|
|
32095
32634
|
/** TransactionOptions excludeTxnFromChangeStreams */
|
|
32096
32635
|
excludeTxnFromChangeStreams?: (boolean|null);
|
|
32636
|
+
|
|
32637
|
+
/** TransactionOptions isolationLevel */
|
|
32638
|
+
isolationLevel?: (google.spanner.v1.TransactionOptions.IsolationLevel|keyof typeof google.spanner.v1.TransactionOptions.IsolationLevel|null);
|
|
32097
32639
|
}
|
|
32098
32640
|
|
|
32099
32641
|
/** Represents a TransactionOptions. */
|
|
@@ -32117,6 +32659,9 @@ export namespace google {
|
|
|
32117
32659
|
/** TransactionOptions excludeTxnFromChangeStreams. */
|
|
32118
32660
|
public excludeTxnFromChangeStreams: boolean;
|
|
32119
32661
|
|
|
32662
|
+
/** TransactionOptions isolationLevel. */
|
|
32663
|
+
public isolationLevel: (google.spanner.v1.TransactionOptions.IsolationLevel|keyof typeof google.spanner.v1.TransactionOptions.IsolationLevel);
|
|
32664
|
+
|
|
32120
32665
|
/** TransactionOptions mode. */
|
|
32121
32666
|
public mode?: ("readWrite"|"partitionedDml"|"readOnly");
|
|
32122
32667
|
|
|
@@ -32533,6 +33078,13 @@ export namespace google {
|
|
|
32533
33078
|
*/
|
|
32534
33079
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
32535
33080
|
}
|
|
33081
|
+
|
|
33082
|
+
/** IsolationLevel enum. */
|
|
33083
|
+
enum IsolationLevel {
|
|
33084
|
+
ISOLATION_LEVEL_UNSPECIFIED = 0,
|
|
33085
|
+
SERIALIZABLE = 1,
|
|
33086
|
+
REPEATABLE_READ = 2
|
|
33087
|
+
}
|
|
32536
33088
|
}
|
|
32537
33089
|
|
|
32538
33090
|
/** Properties of a Transaction. */
|