@google-cloud/spanner 8.0.0 → 8.1.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.
Files changed (50) hide show
  1. package/README.md +2 -0
  2. package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +35 -0
  3. package/build/protos/google/spanner/v1/change_stream.proto +451 -0
  4. package/build/protos/google/spanner/v1/commit_response.proto +9 -4
  5. package/build/protos/google/spanner/v1/transaction.proto +40 -356
  6. package/build/protos/protos.d.ts +1521 -0
  7. package/build/protos/protos.js +3906 -0
  8. package/build/protos/protos.json +317 -1
  9. package/build/src/batch-transaction.js +2 -2
  10. package/build/src/codec.js +20 -21
  11. package/build/src/common-grpc/service.js +10 -10
  12. package/build/src/common.d.ts +1 -0
  13. package/build/src/common.js +9 -1
  14. package/build/src/database.d.ts +1 -0
  15. package/build/src/database.js +2 -0
  16. package/build/src/helper.d.ts +90 -0
  17. package/build/src/helper.js +154 -0
  18. package/build/src/index.d.ts +33 -0
  19. package/build/src/index.js +178 -8
  20. package/build/src/instrument.js +3 -2
  21. package/build/src/metrics/constants.d.ts +36 -0
  22. package/build/src/metrics/constants.js +106 -0
  23. package/build/src/metrics/external-types.d.ts +20 -0
  24. package/build/src/metrics/external-types.js +32 -0
  25. package/build/src/metrics/interceptor.d.ts +13 -0
  26. package/build/src/metrics/interceptor.js +87 -0
  27. package/build/src/metrics/metrics-tracer-factory.d.ts +165 -0
  28. package/build/src/metrics/metrics-tracer-factory.js +389 -0
  29. package/build/src/metrics/metrics-tracer.d.ts +204 -0
  30. package/build/src/metrics/metrics-tracer.js +371 -0
  31. package/build/src/metrics/spanner-metrics-exporter.d.ts +35 -0
  32. package/build/src/metrics/spanner-metrics-exporter.js +119 -0
  33. package/build/src/metrics/transform.d.ts +144 -0
  34. package/build/src/metrics/transform.js +272 -0
  35. package/build/src/partial-result-stream.js +9 -5
  36. package/build/src/session-factory.d.ts +34 -0
  37. package/build/src/session-factory.js +30 -0
  38. package/build/src/session-pool.js +1 -2
  39. package/build/src/transaction-runner.d.ts +1 -0
  40. package/build/src/transaction-runner.js +6 -0
  41. package/build/src/transaction.d.ts +42 -1
  42. package/build/src/transaction.js +192 -42
  43. package/build/src/v1/database_admin_client.d.ts +34 -0
  44. package/build/src/v1/database_admin_client.js +167 -1
  45. package/build/src/v1/database_admin_client_config.json +4 -0
  46. package/build/src/v1/instance_admin_client.d.ts +120 -0
  47. package/build/src/v1/instance_admin_client.js +312 -13
  48. package/build/src/v1/spanner_client.js +108 -0
  49. package/build/src/v1/spanner_proto_list.json +1 -0
  50. package/package.json +12 -5
@@ -10260,6 +10260,20 @@ export namespace google {
10260
10260
  * @returns Promise
10261
10261
  */
10262
10262
  public listBackupSchedules(request: google.spanner.admin.database.v1.IListBackupSchedulesRequest): Promise<google.spanner.admin.database.v1.ListBackupSchedulesResponse>;
10263
+
10264
+ /**
10265
+ * Calls InternalUpdateGraphOperation.
10266
+ * @param request InternalUpdateGraphOperationRequest message or plain object
10267
+ * @param callback Node-style callback called with the error, if any, and InternalUpdateGraphOperationResponse
10268
+ */
10269
+ public internalUpdateGraphOperation(request: google.spanner.admin.database.v1.IInternalUpdateGraphOperationRequest, callback: google.spanner.admin.database.v1.DatabaseAdmin.InternalUpdateGraphOperationCallback): void;
10270
+
10271
+ /**
10272
+ * Calls InternalUpdateGraphOperation.
10273
+ * @param request InternalUpdateGraphOperationRequest message or plain object
10274
+ * @returns Promise
10275
+ */
10276
+ public internalUpdateGraphOperation(request: google.spanner.admin.database.v1.IInternalUpdateGraphOperationRequest): Promise<google.spanner.admin.database.v1.InternalUpdateGraphOperationResponse>;
10263
10277
  }
10264
10278
 
10265
10279
  namespace DatabaseAdmin {
@@ -10445,6 +10459,13 @@ export namespace google {
10445
10459
  * @param [response] ListBackupSchedulesResponse
10446
10460
  */
10447
10461
  type ListBackupSchedulesCallback = (error: (Error|null), response?: google.spanner.admin.database.v1.ListBackupSchedulesResponse) => void;
10462
+
10463
+ /**
10464
+ * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|internalUpdateGraphOperation}.
10465
+ * @param error Error, if any
10466
+ * @param [response] InternalUpdateGraphOperationResponse
10467
+ */
10468
+ type InternalUpdateGraphOperationCallback = (error: (Error|null), response?: google.spanner.admin.database.v1.InternalUpdateGraphOperationResponse) => void;
10448
10469
  }
10449
10470
 
10450
10471
  /** Properties of a RestoreInfo. */
@@ -11486,6 +11507,9 @@ export namespace google {
11486
11507
 
11487
11508
  /** UpdateDatabaseDdlRequest protoDescriptors */
11488
11509
  protoDescriptors?: (Uint8Array|Buffer|string|null);
11510
+
11511
+ /** UpdateDatabaseDdlRequest throughputMode */
11512
+ throughputMode?: (boolean|null);
11489
11513
  }
11490
11514
 
11491
11515
  /** Represents an UpdateDatabaseDdlRequest. */
@@ -11509,6 +11533,9 @@ export namespace google {
11509
11533
  /** UpdateDatabaseDdlRequest protoDescriptors. */
11510
11534
  public protoDescriptors: (Uint8Array|Buffer|string);
11511
11535
 
11536
+ /** UpdateDatabaseDdlRequest throughputMode. */
11537
+ public throughputMode: boolean;
11538
+
11512
11539
  /**
11513
11540
  * Creates a new UpdateDatabaseDdlRequest instance using the specified properties.
11514
11541
  * @param [properties] Properties to set
@@ -13538,6 +13565,218 @@ export namespace google {
13538
13565
  public static getTypeUrl(typeUrlPrefix?: string): string;
13539
13566
  }
13540
13567
  }
13568
+
13569
+ /** Properties of an InternalUpdateGraphOperationRequest. */
13570
+ interface IInternalUpdateGraphOperationRequest {
13571
+
13572
+ /** InternalUpdateGraphOperationRequest database */
13573
+ database?: (string|null);
13574
+
13575
+ /** InternalUpdateGraphOperationRequest operationId */
13576
+ operationId?: (string|null);
13577
+
13578
+ /** InternalUpdateGraphOperationRequest vmIdentityToken */
13579
+ vmIdentityToken?: (string|null);
13580
+
13581
+ /** InternalUpdateGraphOperationRequest progress */
13582
+ progress?: (number|null);
13583
+
13584
+ /** InternalUpdateGraphOperationRequest status */
13585
+ status?: (google.rpc.IStatus|null);
13586
+ }
13587
+
13588
+ /** Represents an InternalUpdateGraphOperationRequest. */
13589
+ class InternalUpdateGraphOperationRequest implements IInternalUpdateGraphOperationRequest {
13590
+
13591
+ /**
13592
+ * Constructs a new InternalUpdateGraphOperationRequest.
13593
+ * @param [properties] Properties to set
13594
+ */
13595
+ constructor(properties?: google.spanner.admin.database.v1.IInternalUpdateGraphOperationRequest);
13596
+
13597
+ /** InternalUpdateGraphOperationRequest database. */
13598
+ public database: string;
13599
+
13600
+ /** InternalUpdateGraphOperationRequest operationId. */
13601
+ public operationId: string;
13602
+
13603
+ /** InternalUpdateGraphOperationRequest vmIdentityToken. */
13604
+ public vmIdentityToken: string;
13605
+
13606
+ /** InternalUpdateGraphOperationRequest progress. */
13607
+ public progress: number;
13608
+
13609
+ /** InternalUpdateGraphOperationRequest status. */
13610
+ public status?: (google.rpc.IStatus|null);
13611
+
13612
+ /**
13613
+ * Creates a new InternalUpdateGraphOperationRequest instance using the specified properties.
13614
+ * @param [properties] Properties to set
13615
+ * @returns InternalUpdateGraphOperationRequest instance
13616
+ */
13617
+ public static create(properties?: google.spanner.admin.database.v1.IInternalUpdateGraphOperationRequest): google.spanner.admin.database.v1.InternalUpdateGraphOperationRequest;
13618
+
13619
+ /**
13620
+ * Encodes the specified InternalUpdateGraphOperationRequest message. Does not implicitly {@link google.spanner.admin.database.v1.InternalUpdateGraphOperationRequest.verify|verify} messages.
13621
+ * @param message InternalUpdateGraphOperationRequest message or plain object to encode
13622
+ * @param [writer] Writer to encode to
13623
+ * @returns Writer
13624
+ */
13625
+ public static encode(message: google.spanner.admin.database.v1.IInternalUpdateGraphOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
13626
+
13627
+ /**
13628
+ * Encodes the specified InternalUpdateGraphOperationRequest message, length delimited. Does not implicitly {@link google.spanner.admin.database.v1.InternalUpdateGraphOperationRequest.verify|verify} messages.
13629
+ * @param message InternalUpdateGraphOperationRequest message or plain object to encode
13630
+ * @param [writer] Writer to encode to
13631
+ * @returns Writer
13632
+ */
13633
+ public static encodeDelimited(message: google.spanner.admin.database.v1.IInternalUpdateGraphOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
13634
+
13635
+ /**
13636
+ * Decodes an InternalUpdateGraphOperationRequest message from the specified reader or buffer.
13637
+ * @param reader Reader or buffer to decode from
13638
+ * @param [length] Message length if known beforehand
13639
+ * @returns InternalUpdateGraphOperationRequest
13640
+ * @throws {Error} If the payload is not a reader or valid buffer
13641
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13642
+ */
13643
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.admin.database.v1.InternalUpdateGraphOperationRequest;
13644
+
13645
+ /**
13646
+ * Decodes an InternalUpdateGraphOperationRequest message from the specified reader or buffer, length delimited.
13647
+ * @param reader Reader or buffer to decode from
13648
+ * @returns InternalUpdateGraphOperationRequest
13649
+ * @throws {Error} If the payload is not a reader or valid buffer
13650
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13651
+ */
13652
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.admin.database.v1.InternalUpdateGraphOperationRequest;
13653
+
13654
+ /**
13655
+ * Verifies an InternalUpdateGraphOperationRequest message.
13656
+ * @param message Plain object to verify
13657
+ * @returns `null` if valid, otherwise the reason why it is not
13658
+ */
13659
+ public static verify(message: { [k: string]: any }): (string|null);
13660
+
13661
+ /**
13662
+ * Creates an InternalUpdateGraphOperationRequest message from a plain object. Also converts values to their respective internal types.
13663
+ * @param object Plain object
13664
+ * @returns InternalUpdateGraphOperationRequest
13665
+ */
13666
+ public static fromObject(object: { [k: string]: any }): google.spanner.admin.database.v1.InternalUpdateGraphOperationRequest;
13667
+
13668
+ /**
13669
+ * Creates a plain object from an InternalUpdateGraphOperationRequest message. Also converts values to other types if specified.
13670
+ * @param message InternalUpdateGraphOperationRequest
13671
+ * @param [options] Conversion options
13672
+ * @returns Plain object
13673
+ */
13674
+ public static toObject(message: google.spanner.admin.database.v1.InternalUpdateGraphOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
13675
+
13676
+ /**
13677
+ * Converts this InternalUpdateGraphOperationRequest to JSON.
13678
+ * @returns JSON object
13679
+ */
13680
+ public toJSON(): { [k: string]: any };
13681
+
13682
+ /**
13683
+ * Gets the default type url for InternalUpdateGraphOperationRequest
13684
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
13685
+ * @returns The default type url
13686
+ */
13687
+ public static getTypeUrl(typeUrlPrefix?: string): string;
13688
+ }
13689
+
13690
+ /** Properties of an InternalUpdateGraphOperationResponse. */
13691
+ interface IInternalUpdateGraphOperationResponse {
13692
+ }
13693
+
13694
+ /** Represents an InternalUpdateGraphOperationResponse. */
13695
+ class InternalUpdateGraphOperationResponse implements IInternalUpdateGraphOperationResponse {
13696
+
13697
+ /**
13698
+ * Constructs a new InternalUpdateGraphOperationResponse.
13699
+ * @param [properties] Properties to set
13700
+ */
13701
+ constructor(properties?: google.spanner.admin.database.v1.IInternalUpdateGraphOperationResponse);
13702
+
13703
+ /**
13704
+ * Creates a new InternalUpdateGraphOperationResponse instance using the specified properties.
13705
+ * @param [properties] Properties to set
13706
+ * @returns InternalUpdateGraphOperationResponse instance
13707
+ */
13708
+ public static create(properties?: google.spanner.admin.database.v1.IInternalUpdateGraphOperationResponse): google.spanner.admin.database.v1.InternalUpdateGraphOperationResponse;
13709
+
13710
+ /**
13711
+ * Encodes the specified InternalUpdateGraphOperationResponse message. Does not implicitly {@link google.spanner.admin.database.v1.InternalUpdateGraphOperationResponse.verify|verify} messages.
13712
+ * @param message InternalUpdateGraphOperationResponse message or plain object to encode
13713
+ * @param [writer] Writer to encode to
13714
+ * @returns Writer
13715
+ */
13716
+ public static encode(message: google.spanner.admin.database.v1.IInternalUpdateGraphOperationResponse, writer?: $protobuf.Writer): $protobuf.Writer;
13717
+
13718
+ /**
13719
+ * Encodes the specified InternalUpdateGraphOperationResponse message, length delimited. Does not implicitly {@link google.spanner.admin.database.v1.InternalUpdateGraphOperationResponse.verify|verify} messages.
13720
+ * @param message InternalUpdateGraphOperationResponse message or plain object to encode
13721
+ * @param [writer] Writer to encode to
13722
+ * @returns Writer
13723
+ */
13724
+ public static encodeDelimited(message: google.spanner.admin.database.v1.IInternalUpdateGraphOperationResponse, writer?: $protobuf.Writer): $protobuf.Writer;
13725
+
13726
+ /**
13727
+ * Decodes an InternalUpdateGraphOperationResponse message from the specified reader or buffer.
13728
+ * @param reader Reader or buffer to decode from
13729
+ * @param [length] Message length if known beforehand
13730
+ * @returns InternalUpdateGraphOperationResponse
13731
+ * @throws {Error} If the payload is not a reader or valid buffer
13732
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13733
+ */
13734
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.admin.database.v1.InternalUpdateGraphOperationResponse;
13735
+
13736
+ /**
13737
+ * Decodes an InternalUpdateGraphOperationResponse message from the specified reader or buffer, length delimited.
13738
+ * @param reader Reader or buffer to decode from
13739
+ * @returns InternalUpdateGraphOperationResponse
13740
+ * @throws {Error} If the payload is not a reader or valid buffer
13741
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13742
+ */
13743
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.admin.database.v1.InternalUpdateGraphOperationResponse;
13744
+
13745
+ /**
13746
+ * Verifies an InternalUpdateGraphOperationResponse message.
13747
+ * @param message Plain object to verify
13748
+ * @returns `null` if valid, otherwise the reason why it is not
13749
+ */
13750
+ public static verify(message: { [k: string]: any }): (string|null);
13751
+
13752
+ /**
13753
+ * Creates an InternalUpdateGraphOperationResponse message from a plain object. Also converts values to their respective internal types.
13754
+ * @param object Plain object
13755
+ * @returns InternalUpdateGraphOperationResponse
13756
+ */
13757
+ public static fromObject(object: { [k: string]: any }): google.spanner.admin.database.v1.InternalUpdateGraphOperationResponse;
13758
+
13759
+ /**
13760
+ * Creates a plain object from an InternalUpdateGraphOperationResponse message. Also converts values to other types if specified.
13761
+ * @param message InternalUpdateGraphOperationResponse
13762
+ * @param [options] Conversion options
13763
+ * @returns Plain object
13764
+ */
13765
+ public static toObject(message: google.spanner.admin.database.v1.InternalUpdateGraphOperationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
13766
+
13767
+ /**
13768
+ * Converts this InternalUpdateGraphOperationResponse to JSON.
13769
+ * @returns JSON object
13770
+ */
13771
+ public toJSON(): { [k: string]: any };
13772
+
13773
+ /**
13774
+ * Gets the default type url for InternalUpdateGraphOperationResponse
13775
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
13776
+ * @returns The default type url
13777
+ */
13778
+ public static getTypeUrl(typeUrlPrefix?: string): string;
13779
+ }
13541
13780
  }
13542
13781
  }
13543
13782
 
@@ -32274,6 +32513,9 @@ export namespace google {
32274
32513
 
32275
32514
  /** CommitResponse precommitToken */
32276
32515
  precommitToken?: (google.spanner.v1.IMultiplexedSessionPrecommitToken|null);
32516
+
32517
+ /** CommitResponse snapshotTimestamp */
32518
+ snapshotTimestamp?: (google.protobuf.ITimestamp|null);
32277
32519
  }
32278
32520
 
32279
32521
  /** Represents a CommitResponse. */
@@ -32294,6 +32536,9 @@ export namespace google {
32294
32536
  /** CommitResponse precommitToken. */
32295
32537
  public precommitToken?: (google.spanner.v1.IMultiplexedSessionPrecommitToken|null);
32296
32538
 
32539
+ /** CommitResponse snapshotTimestamp. */
32540
+ public snapshotTimestamp?: (google.protobuf.ITimestamp|null);
32541
+
32297
32542
  /** CommitResponse MultiplexedSessionRetry. */
32298
32543
  public MultiplexedSessionRetry?: "precommitToken";
32299
32544
 
@@ -35115,6 +35360,1282 @@ export namespace google {
35115
35360
  PG_JSONB = 3,
35116
35361
  PG_OID = 4
35117
35362
  }
35363
+
35364
+ /** Properties of a ChangeStreamRecord. */
35365
+ interface IChangeStreamRecord {
35366
+
35367
+ /** ChangeStreamRecord dataChangeRecord */
35368
+ dataChangeRecord?: (google.spanner.v1.ChangeStreamRecord.IDataChangeRecord|null);
35369
+
35370
+ /** ChangeStreamRecord heartbeatRecord */
35371
+ heartbeatRecord?: (google.spanner.v1.ChangeStreamRecord.IHeartbeatRecord|null);
35372
+
35373
+ /** ChangeStreamRecord partitionStartRecord */
35374
+ partitionStartRecord?: (google.spanner.v1.ChangeStreamRecord.IPartitionStartRecord|null);
35375
+
35376
+ /** ChangeStreamRecord partitionEndRecord */
35377
+ partitionEndRecord?: (google.spanner.v1.ChangeStreamRecord.IPartitionEndRecord|null);
35378
+
35379
+ /** ChangeStreamRecord partitionEventRecord */
35380
+ partitionEventRecord?: (google.spanner.v1.ChangeStreamRecord.IPartitionEventRecord|null);
35381
+ }
35382
+
35383
+ /** Represents a ChangeStreamRecord. */
35384
+ class ChangeStreamRecord implements IChangeStreamRecord {
35385
+
35386
+ /**
35387
+ * Constructs a new ChangeStreamRecord.
35388
+ * @param [properties] Properties to set
35389
+ */
35390
+ constructor(properties?: google.spanner.v1.IChangeStreamRecord);
35391
+
35392
+ /** ChangeStreamRecord dataChangeRecord. */
35393
+ public dataChangeRecord?: (google.spanner.v1.ChangeStreamRecord.IDataChangeRecord|null);
35394
+
35395
+ /** ChangeStreamRecord heartbeatRecord. */
35396
+ public heartbeatRecord?: (google.spanner.v1.ChangeStreamRecord.IHeartbeatRecord|null);
35397
+
35398
+ /** ChangeStreamRecord partitionStartRecord. */
35399
+ public partitionStartRecord?: (google.spanner.v1.ChangeStreamRecord.IPartitionStartRecord|null);
35400
+
35401
+ /** ChangeStreamRecord partitionEndRecord. */
35402
+ public partitionEndRecord?: (google.spanner.v1.ChangeStreamRecord.IPartitionEndRecord|null);
35403
+
35404
+ /** ChangeStreamRecord partitionEventRecord. */
35405
+ public partitionEventRecord?: (google.spanner.v1.ChangeStreamRecord.IPartitionEventRecord|null);
35406
+
35407
+ /** ChangeStreamRecord record. */
35408
+ public record?: ("dataChangeRecord"|"heartbeatRecord"|"partitionStartRecord"|"partitionEndRecord"|"partitionEventRecord");
35409
+
35410
+ /**
35411
+ * Creates a new ChangeStreamRecord instance using the specified properties.
35412
+ * @param [properties] Properties to set
35413
+ * @returns ChangeStreamRecord instance
35414
+ */
35415
+ public static create(properties?: google.spanner.v1.IChangeStreamRecord): google.spanner.v1.ChangeStreamRecord;
35416
+
35417
+ /**
35418
+ * Encodes the specified ChangeStreamRecord message. Does not implicitly {@link google.spanner.v1.ChangeStreamRecord.verify|verify} messages.
35419
+ * @param message ChangeStreamRecord message or plain object to encode
35420
+ * @param [writer] Writer to encode to
35421
+ * @returns Writer
35422
+ */
35423
+ public static encode(message: google.spanner.v1.IChangeStreamRecord, writer?: $protobuf.Writer): $protobuf.Writer;
35424
+
35425
+ /**
35426
+ * Encodes the specified ChangeStreamRecord message, length delimited. Does not implicitly {@link google.spanner.v1.ChangeStreamRecord.verify|verify} messages.
35427
+ * @param message ChangeStreamRecord message or plain object to encode
35428
+ * @param [writer] Writer to encode to
35429
+ * @returns Writer
35430
+ */
35431
+ public static encodeDelimited(message: google.spanner.v1.IChangeStreamRecord, writer?: $protobuf.Writer): $protobuf.Writer;
35432
+
35433
+ /**
35434
+ * Decodes a ChangeStreamRecord message from the specified reader or buffer.
35435
+ * @param reader Reader or buffer to decode from
35436
+ * @param [length] Message length if known beforehand
35437
+ * @returns ChangeStreamRecord
35438
+ * @throws {Error} If the payload is not a reader or valid buffer
35439
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35440
+ */
35441
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.ChangeStreamRecord;
35442
+
35443
+ /**
35444
+ * Decodes a ChangeStreamRecord message from the specified reader or buffer, length delimited.
35445
+ * @param reader Reader or buffer to decode from
35446
+ * @returns ChangeStreamRecord
35447
+ * @throws {Error} If the payload is not a reader or valid buffer
35448
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35449
+ */
35450
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.ChangeStreamRecord;
35451
+
35452
+ /**
35453
+ * Verifies a ChangeStreamRecord message.
35454
+ * @param message Plain object to verify
35455
+ * @returns `null` if valid, otherwise the reason why it is not
35456
+ */
35457
+ public static verify(message: { [k: string]: any }): (string|null);
35458
+
35459
+ /**
35460
+ * Creates a ChangeStreamRecord message from a plain object. Also converts values to their respective internal types.
35461
+ * @param object Plain object
35462
+ * @returns ChangeStreamRecord
35463
+ */
35464
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.ChangeStreamRecord;
35465
+
35466
+ /**
35467
+ * Creates a plain object from a ChangeStreamRecord message. Also converts values to other types if specified.
35468
+ * @param message ChangeStreamRecord
35469
+ * @param [options] Conversion options
35470
+ * @returns Plain object
35471
+ */
35472
+ public static toObject(message: google.spanner.v1.ChangeStreamRecord, options?: $protobuf.IConversionOptions): { [k: string]: any };
35473
+
35474
+ /**
35475
+ * Converts this ChangeStreamRecord to JSON.
35476
+ * @returns JSON object
35477
+ */
35478
+ public toJSON(): { [k: string]: any };
35479
+
35480
+ /**
35481
+ * Gets the default type url for ChangeStreamRecord
35482
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
35483
+ * @returns The default type url
35484
+ */
35485
+ public static getTypeUrl(typeUrlPrefix?: string): string;
35486
+ }
35487
+
35488
+ namespace ChangeStreamRecord {
35489
+
35490
+ /** Properties of a DataChangeRecord. */
35491
+ interface IDataChangeRecord {
35492
+
35493
+ /** DataChangeRecord commitTimestamp */
35494
+ commitTimestamp?: (google.protobuf.ITimestamp|null);
35495
+
35496
+ /** DataChangeRecord recordSequence */
35497
+ recordSequence?: (string|null);
35498
+
35499
+ /** DataChangeRecord serverTransactionId */
35500
+ serverTransactionId?: (string|null);
35501
+
35502
+ /** DataChangeRecord isLastRecordInTransactionInPartition */
35503
+ isLastRecordInTransactionInPartition?: (boolean|null);
35504
+
35505
+ /** DataChangeRecord table */
35506
+ table?: (string|null);
35507
+
35508
+ /** DataChangeRecord columnMetadata */
35509
+ columnMetadata?: (google.spanner.v1.ChangeStreamRecord.DataChangeRecord.IColumnMetadata[]|null);
35510
+
35511
+ /** DataChangeRecord mods */
35512
+ mods?: (google.spanner.v1.ChangeStreamRecord.DataChangeRecord.IMod[]|null);
35513
+
35514
+ /** DataChangeRecord modType */
35515
+ modType?: (google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ModType|keyof typeof google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ModType|null);
35516
+
35517
+ /** DataChangeRecord valueCaptureType */
35518
+ valueCaptureType?: (google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ValueCaptureType|keyof typeof google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ValueCaptureType|null);
35519
+
35520
+ /** DataChangeRecord numberOfRecordsInTransaction */
35521
+ numberOfRecordsInTransaction?: (number|null);
35522
+
35523
+ /** DataChangeRecord numberOfPartitionsInTransaction */
35524
+ numberOfPartitionsInTransaction?: (number|null);
35525
+
35526
+ /** DataChangeRecord transactionTag */
35527
+ transactionTag?: (string|null);
35528
+
35529
+ /** DataChangeRecord isSystemTransaction */
35530
+ isSystemTransaction?: (boolean|null);
35531
+ }
35532
+
35533
+ /** Represents a DataChangeRecord. */
35534
+ class DataChangeRecord implements IDataChangeRecord {
35535
+
35536
+ /**
35537
+ * Constructs a new DataChangeRecord.
35538
+ * @param [properties] Properties to set
35539
+ */
35540
+ constructor(properties?: google.spanner.v1.ChangeStreamRecord.IDataChangeRecord);
35541
+
35542
+ /** DataChangeRecord commitTimestamp. */
35543
+ public commitTimestamp?: (google.protobuf.ITimestamp|null);
35544
+
35545
+ /** DataChangeRecord recordSequence. */
35546
+ public recordSequence: string;
35547
+
35548
+ /** DataChangeRecord serverTransactionId. */
35549
+ public serverTransactionId: string;
35550
+
35551
+ /** DataChangeRecord isLastRecordInTransactionInPartition. */
35552
+ public isLastRecordInTransactionInPartition: boolean;
35553
+
35554
+ /** DataChangeRecord table. */
35555
+ public table: string;
35556
+
35557
+ /** DataChangeRecord columnMetadata. */
35558
+ public columnMetadata: google.spanner.v1.ChangeStreamRecord.DataChangeRecord.IColumnMetadata[];
35559
+
35560
+ /** DataChangeRecord mods. */
35561
+ public mods: google.spanner.v1.ChangeStreamRecord.DataChangeRecord.IMod[];
35562
+
35563
+ /** DataChangeRecord modType. */
35564
+ public modType: (google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ModType|keyof typeof google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ModType);
35565
+
35566
+ /** DataChangeRecord valueCaptureType. */
35567
+ public valueCaptureType: (google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ValueCaptureType|keyof typeof google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ValueCaptureType);
35568
+
35569
+ /** DataChangeRecord numberOfRecordsInTransaction. */
35570
+ public numberOfRecordsInTransaction: number;
35571
+
35572
+ /** DataChangeRecord numberOfPartitionsInTransaction. */
35573
+ public numberOfPartitionsInTransaction: number;
35574
+
35575
+ /** DataChangeRecord transactionTag. */
35576
+ public transactionTag: string;
35577
+
35578
+ /** DataChangeRecord isSystemTransaction. */
35579
+ public isSystemTransaction: boolean;
35580
+
35581
+ /**
35582
+ * Creates a new DataChangeRecord instance using the specified properties.
35583
+ * @param [properties] Properties to set
35584
+ * @returns DataChangeRecord instance
35585
+ */
35586
+ public static create(properties?: google.spanner.v1.ChangeStreamRecord.IDataChangeRecord): google.spanner.v1.ChangeStreamRecord.DataChangeRecord;
35587
+
35588
+ /**
35589
+ * Encodes the specified DataChangeRecord message. Does not implicitly {@link google.spanner.v1.ChangeStreamRecord.DataChangeRecord.verify|verify} messages.
35590
+ * @param message DataChangeRecord message or plain object to encode
35591
+ * @param [writer] Writer to encode to
35592
+ * @returns Writer
35593
+ */
35594
+ public static encode(message: google.spanner.v1.ChangeStreamRecord.IDataChangeRecord, writer?: $protobuf.Writer): $protobuf.Writer;
35595
+
35596
+ /**
35597
+ * Encodes the specified DataChangeRecord message, length delimited. Does not implicitly {@link google.spanner.v1.ChangeStreamRecord.DataChangeRecord.verify|verify} messages.
35598
+ * @param message DataChangeRecord message or plain object to encode
35599
+ * @param [writer] Writer to encode to
35600
+ * @returns Writer
35601
+ */
35602
+ public static encodeDelimited(message: google.spanner.v1.ChangeStreamRecord.IDataChangeRecord, writer?: $protobuf.Writer): $protobuf.Writer;
35603
+
35604
+ /**
35605
+ * Decodes a DataChangeRecord message from the specified reader or buffer.
35606
+ * @param reader Reader or buffer to decode from
35607
+ * @param [length] Message length if known beforehand
35608
+ * @returns DataChangeRecord
35609
+ * @throws {Error} If the payload is not a reader or valid buffer
35610
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35611
+ */
35612
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.ChangeStreamRecord.DataChangeRecord;
35613
+
35614
+ /**
35615
+ * Decodes a DataChangeRecord message from the specified reader or buffer, length delimited.
35616
+ * @param reader Reader or buffer to decode from
35617
+ * @returns DataChangeRecord
35618
+ * @throws {Error} If the payload is not a reader or valid buffer
35619
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35620
+ */
35621
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.ChangeStreamRecord.DataChangeRecord;
35622
+
35623
+ /**
35624
+ * Verifies a DataChangeRecord message.
35625
+ * @param message Plain object to verify
35626
+ * @returns `null` if valid, otherwise the reason why it is not
35627
+ */
35628
+ public static verify(message: { [k: string]: any }): (string|null);
35629
+
35630
+ /**
35631
+ * Creates a DataChangeRecord message from a plain object. Also converts values to their respective internal types.
35632
+ * @param object Plain object
35633
+ * @returns DataChangeRecord
35634
+ */
35635
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.ChangeStreamRecord.DataChangeRecord;
35636
+
35637
+ /**
35638
+ * Creates a plain object from a DataChangeRecord message. Also converts values to other types if specified.
35639
+ * @param message DataChangeRecord
35640
+ * @param [options] Conversion options
35641
+ * @returns Plain object
35642
+ */
35643
+ public static toObject(message: google.spanner.v1.ChangeStreamRecord.DataChangeRecord, options?: $protobuf.IConversionOptions): { [k: string]: any };
35644
+
35645
+ /**
35646
+ * Converts this DataChangeRecord to JSON.
35647
+ * @returns JSON object
35648
+ */
35649
+ public toJSON(): { [k: string]: any };
35650
+
35651
+ /**
35652
+ * Gets the default type url for DataChangeRecord
35653
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
35654
+ * @returns The default type url
35655
+ */
35656
+ public static getTypeUrl(typeUrlPrefix?: string): string;
35657
+ }
35658
+
35659
+ namespace DataChangeRecord {
35660
+
35661
+ /** Properties of a ColumnMetadata. */
35662
+ interface IColumnMetadata {
35663
+
35664
+ /** ColumnMetadata name */
35665
+ name?: (string|null);
35666
+
35667
+ /** ColumnMetadata type */
35668
+ type?: (google.spanner.v1.IType|null);
35669
+
35670
+ /** ColumnMetadata isPrimaryKey */
35671
+ isPrimaryKey?: (boolean|null);
35672
+
35673
+ /** ColumnMetadata ordinalPosition */
35674
+ ordinalPosition?: (number|Long|string|null);
35675
+ }
35676
+
35677
+ /** Represents a ColumnMetadata. */
35678
+ class ColumnMetadata implements IColumnMetadata {
35679
+
35680
+ /**
35681
+ * Constructs a new ColumnMetadata.
35682
+ * @param [properties] Properties to set
35683
+ */
35684
+ constructor(properties?: google.spanner.v1.ChangeStreamRecord.DataChangeRecord.IColumnMetadata);
35685
+
35686
+ /** ColumnMetadata name. */
35687
+ public name: string;
35688
+
35689
+ /** ColumnMetadata type. */
35690
+ public type?: (google.spanner.v1.IType|null);
35691
+
35692
+ /** ColumnMetadata isPrimaryKey. */
35693
+ public isPrimaryKey: boolean;
35694
+
35695
+ /** ColumnMetadata ordinalPosition. */
35696
+ public ordinalPosition: (number|Long|string);
35697
+
35698
+ /**
35699
+ * Creates a new ColumnMetadata instance using the specified properties.
35700
+ * @param [properties] Properties to set
35701
+ * @returns ColumnMetadata instance
35702
+ */
35703
+ public static create(properties?: google.spanner.v1.ChangeStreamRecord.DataChangeRecord.IColumnMetadata): google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ColumnMetadata;
35704
+
35705
+ /**
35706
+ * Encodes the specified ColumnMetadata message. Does not implicitly {@link google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ColumnMetadata.verify|verify} messages.
35707
+ * @param message ColumnMetadata message or plain object to encode
35708
+ * @param [writer] Writer to encode to
35709
+ * @returns Writer
35710
+ */
35711
+ public static encode(message: google.spanner.v1.ChangeStreamRecord.DataChangeRecord.IColumnMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
35712
+
35713
+ /**
35714
+ * Encodes the specified ColumnMetadata message, length delimited. Does not implicitly {@link google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ColumnMetadata.verify|verify} messages.
35715
+ * @param message ColumnMetadata message or plain object to encode
35716
+ * @param [writer] Writer to encode to
35717
+ * @returns Writer
35718
+ */
35719
+ public static encodeDelimited(message: google.spanner.v1.ChangeStreamRecord.DataChangeRecord.IColumnMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
35720
+
35721
+ /**
35722
+ * Decodes a ColumnMetadata message from the specified reader or buffer.
35723
+ * @param reader Reader or buffer to decode from
35724
+ * @param [length] Message length if known beforehand
35725
+ * @returns ColumnMetadata
35726
+ * @throws {Error} If the payload is not a reader or valid buffer
35727
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35728
+ */
35729
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ColumnMetadata;
35730
+
35731
+ /**
35732
+ * Decodes a ColumnMetadata message from the specified reader or buffer, length delimited.
35733
+ * @param reader Reader or buffer to decode from
35734
+ * @returns ColumnMetadata
35735
+ * @throws {Error} If the payload is not a reader or valid buffer
35736
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35737
+ */
35738
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ColumnMetadata;
35739
+
35740
+ /**
35741
+ * Verifies a ColumnMetadata message.
35742
+ * @param message Plain object to verify
35743
+ * @returns `null` if valid, otherwise the reason why it is not
35744
+ */
35745
+ public static verify(message: { [k: string]: any }): (string|null);
35746
+
35747
+ /**
35748
+ * Creates a ColumnMetadata message from a plain object. Also converts values to their respective internal types.
35749
+ * @param object Plain object
35750
+ * @returns ColumnMetadata
35751
+ */
35752
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ColumnMetadata;
35753
+
35754
+ /**
35755
+ * Creates a plain object from a ColumnMetadata message. Also converts values to other types if specified.
35756
+ * @param message ColumnMetadata
35757
+ * @param [options] Conversion options
35758
+ * @returns Plain object
35759
+ */
35760
+ public static toObject(message: google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ColumnMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
35761
+
35762
+ /**
35763
+ * Converts this ColumnMetadata to JSON.
35764
+ * @returns JSON object
35765
+ */
35766
+ public toJSON(): { [k: string]: any };
35767
+
35768
+ /**
35769
+ * Gets the default type url for ColumnMetadata
35770
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
35771
+ * @returns The default type url
35772
+ */
35773
+ public static getTypeUrl(typeUrlPrefix?: string): string;
35774
+ }
35775
+
35776
+ /** Properties of a ModValue. */
35777
+ interface IModValue {
35778
+
35779
+ /** ModValue columnMetadataIndex */
35780
+ columnMetadataIndex?: (number|null);
35781
+
35782
+ /** ModValue value */
35783
+ value?: (google.protobuf.IValue|null);
35784
+ }
35785
+
35786
+ /** Represents a ModValue. */
35787
+ class ModValue implements IModValue {
35788
+
35789
+ /**
35790
+ * Constructs a new ModValue.
35791
+ * @param [properties] Properties to set
35792
+ */
35793
+ constructor(properties?: google.spanner.v1.ChangeStreamRecord.DataChangeRecord.IModValue);
35794
+
35795
+ /** ModValue columnMetadataIndex. */
35796
+ public columnMetadataIndex: number;
35797
+
35798
+ /** ModValue value. */
35799
+ public value?: (google.protobuf.IValue|null);
35800
+
35801
+ /**
35802
+ * Creates a new ModValue instance using the specified properties.
35803
+ * @param [properties] Properties to set
35804
+ * @returns ModValue instance
35805
+ */
35806
+ public static create(properties?: google.spanner.v1.ChangeStreamRecord.DataChangeRecord.IModValue): google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ModValue;
35807
+
35808
+ /**
35809
+ * Encodes the specified ModValue message. Does not implicitly {@link google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ModValue.verify|verify} messages.
35810
+ * @param message ModValue message or plain object to encode
35811
+ * @param [writer] Writer to encode to
35812
+ * @returns Writer
35813
+ */
35814
+ public static encode(message: google.spanner.v1.ChangeStreamRecord.DataChangeRecord.IModValue, writer?: $protobuf.Writer): $protobuf.Writer;
35815
+
35816
+ /**
35817
+ * Encodes the specified ModValue message, length delimited. Does not implicitly {@link google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ModValue.verify|verify} messages.
35818
+ * @param message ModValue message or plain object to encode
35819
+ * @param [writer] Writer to encode to
35820
+ * @returns Writer
35821
+ */
35822
+ public static encodeDelimited(message: google.spanner.v1.ChangeStreamRecord.DataChangeRecord.IModValue, writer?: $protobuf.Writer): $protobuf.Writer;
35823
+
35824
+ /**
35825
+ * Decodes a ModValue message from the specified reader or buffer.
35826
+ * @param reader Reader or buffer to decode from
35827
+ * @param [length] Message length if known beforehand
35828
+ * @returns ModValue
35829
+ * @throws {Error} If the payload is not a reader or valid buffer
35830
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35831
+ */
35832
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ModValue;
35833
+
35834
+ /**
35835
+ * Decodes a ModValue message from the specified reader or buffer, length delimited.
35836
+ * @param reader Reader or buffer to decode from
35837
+ * @returns ModValue
35838
+ * @throws {Error} If the payload is not a reader or valid buffer
35839
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35840
+ */
35841
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ModValue;
35842
+
35843
+ /**
35844
+ * Verifies a ModValue message.
35845
+ * @param message Plain object to verify
35846
+ * @returns `null` if valid, otherwise the reason why it is not
35847
+ */
35848
+ public static verify(message: { [k: string]: any }): (string|null);
35849
+
35850
+ /**
35851
+ * Creates a ModValue message from a plain object. Also converts values to their respective internal types.
35852
+ * @param object Plain object
35853
+ * @returns ModValue
35854
+ */
35855
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ModValue;
35856
+
35857
+ /**
35858
+ * Creates a plain object from a ModValue message. Also converts values to other types if specified.
35859
+ * @param message ModValue
35860
+ * @param [options] Conversion options
35861
+ * @returns Plain object
35862
+ */
35863
+ public static toObject(message: google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ModValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
35864
+
35865
+ /**
35866
+ * Converts this ModValue to JSON.
35867
+ * @returns JSON object
35868
+ */
35869
+ public toJSON(): { [k: string]: any };
35870
+
35871
+ /**
35872
+ * Gets the default type url for ModValue
35873
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
35874
+ * @returns The default type url
35875
+ */
35876
+ public static getTypeUrl(typeUrlPrefix?: string): string;
35877
+ }
35878
+
35879
+ /** Properties of a Mod. */
35880
+ interface IMod {
35881
+
35882
+ /** Mod keys */
35883
+ keys?: (google.spanner.v1.ChangeStreamRecord.DataChangeRecord.IModValue[]|null);
35884
+
35885
+ /** Mod oldValues */
35886
+ oldValues?: (google.spanner.v1.ChangeStreamRecord.DataChangeRecord.IModValue[]|null);
35887
+
35888
+ /** Mod newValues */
35889
+ newValues?: (google.spanner.v1.ChangeStreamRecord.DataChangeRecord.IModValue[]|null);
35890
+ }
35891
+
35892
+ /** Represents a Mod. */
35893
+ class Mod implements IMod {
35894
+
35895
+ /**
35896
+ * Constructs a new Mod.
35897
+ * @param [properties] Properties to set
35898
+ */
35899
+ constructor(properties?: google.spanner.v1.ChangeStreamRecord.DataChangeRecord.IMod);
35900
+
35901
+ /** Mod keys. */
35902
+ public keys: google.spanner.v1.ChangeStreamRecord.DataChangeRecord.IModValue[];
35903
+
35904
+ /** Mod oldValues. */
35905
+ public oldValues: google.spanner.v1.ChangeStreamRecord.DataChangeRecord.IModValue[];
35906
+
35907
+ /** Mod newValues. */
35908
+ public newValues: google.spanner.v1.ChangeStreamRecord.DataChangeRecord.IModValue[];
35909
+
35910
+ /**
35911
+ * Creates a new Mod instance using the specified properties.
35912
+ * @param [properties] Properties to set
35913
+ * @returns Mod instance
35914
+ */
35915
+ public static create(properties?: google.spanner.v1.ChangeStreamRecord.DataChangeRecord.IMod): google.spanner.v1.ChangeStreamRecord.DataChangeRecord.Mod;
35916
+
35917
+ /**
35918
+ * Encodes the specified Mod message. Does not implicitly {@link google.spanner.v1.ChangeStreamRecord.DataChangeRecord.Mod.verify|verify} messages.
35919
+ * @param message Mod message or plain object to encode
35920
+ * @param [writer] Writer to encode to
35921
+ * @returns Writer
35922
+ */
35923
+ public static encode(message: google.spanner.v1.ChangeStreamRecord.DataChangeRecord.IMod, writer?: $protobuf.Writer): $protobuf.Writer;
35924
+
35925
+ /**
35926
+ * Encodes the specified Mod message, length delimited. Does not implicitly {@link google.spanner.v1.ChangeStreamRecord.DataChangeRecord.Mod.verify|verify} messages.
35927
+ * @param message Mod message or plain object to encode
35928
+ * @param [writer] Writer to encode to
35929
+ * @returns Writer
35930
+ */
35931
+ public static encodeDelimited(message: google.spanner.v1.ChangeStreamRecord.DataChangeRecord.IMod, writer?: $protobuf.Writer): $protobuf.Writer;
35932
+
35933
+ /**
35934
+ * Decodes a Mod message from the specified reader or buffer.
35935
+ * @param reader Reader or buffer to decode from
35936
+ * @param [length] Message length if known beforehand
35937
+ * @returns Mod
35938
+ * @throws {Error} If the payload is not a reader or valid buffer
35939
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35940
+ */
35941
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.ChangeStreamRecord.DataChangeRecord.Mod;
35942
+
35943
+ /**
35944
+ * Decodes a Mod message from the specified reader or buffer, length delimited.
35945
+ * @param reader Reader or buffer to decode from
35946
+ * @returns Mod
35947
+ * @throws {Error} If the payload is not a reader or valid buffer
35948
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35949
+ */
35950
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.ChangeStreamRecord.DataChangeRecord.Mod;
35951
+
35952
+ /**
35953
+ * Verifies a Mod message.
35954
+ * @param message Plain object to verify
35955
+ * @returns `null` if valid, otherwise the reason why it is not
35956
+ */
35957
+ public static verify(message: { [k: string]: any }): (string|null);
35958
+
35959
+ /**
35960
+ * Creates a Mod message from a plain object. Also converts values to their respective internal types.
35961
+ * @param object Plain object
35962
+ * @returns Mod
35963
+ */
35964
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.ChangeStreamRecord.DataChangeRecord.Mod;
35965
+
35966
+ /**
35967
+ * Creates a plain object from a Mod message. Also converts values to other types if specified.
35968
+ * @param message Mod
35969
+ * @param [options] Conversion options
35970
+ * @returns Plain object
35971
+ */
35972
+ public static toObject(message: google.spanner.v1.ChangeStreamRecord.DataChangeRecord.Mod, options?: $protobuf.IConversionOptions): { [k: string]: any };
35973
+
35974
+ /**
35975
+ * Converts this Mod to JSON.
35976
+ * @returns JSON object
35977
+ */
35978
+ public toJSON(): { [k: string]: any };
35979
+
35980
+ /**
35981
+ * Gets the default type url for Mod
35982
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
35983
+ * @returns The default type url
35984
+ */
35985
+ public static getTypeUrl(typeUrlPrefix?: string): string;
35986
+ }
35987
+
35988
+ /** ModType enum. */
35989
+ enum ModType {
35990
+ MOD_TYPE_UNSPECIFIED = 0,
35991
+ INSERT = 10,
35992
+ UPDATE = 20,
35993
+ DELETE = 30
35994
+ }
35995
+
35996
+ /** ValueCaptureType enum. */
35997
+ enum ValueCaptureType {
35998
+ VALUE_CAPTURE_TYPE_UNSPECIFIED = 0,
35999
+ OLD_AND_NEW_VALUES = 10,
36000
+ NEW_VALUES = 20,
36001
+ NEW_ROW = 30,
36002
+ NEW_ROW_AND_OLD_VALUES = 40
36003
+ }
36004
+ }
36005
+
36006
+ /** Properties of a HeartbeatRecord. */
36007
+ interface IHeartbeatRecord {
36008
+
36009
+ /** HeartbeatRecord timestamp */
36010
+ timestamp?: (google.protobuf.ITimestamp|null);
36011
+ }
36012
+
36013
+ /** Represents a HeartbeatRecord. */
36014
+ class HeartbeatRecord implements IHeartbeatRecord {
36015
+
36016
+ /**
36017
+ * Constructs a new HeartbeatRecord.
36018
+ * @param [properties] Properties to set
36019
+ */
36020
+ constructor(properties?: google.spanner.v1.ChangeStreamRecord.IHeartbeatRecord);
36021
+
36022
+ /** HeartbeatRecord timestamp. */
36023
+ public timestamp?: (google.protobuf.ITimestamp|null);
36024
+
36025
+ /**
36026
+ * Creates a new HeartbeatRecord instance using the specified properties.
36027
+ * @param [properties] Properties to set
36028
+ * @returns HeartbeatRecord instance
36029
+ */
36030
+ public static create(properties?: google.spanner.v1.ChangeStreamRecord.IHeartbeatRecord): google.spanner.v1.ChangeStreamRecord.HeartbeatRecord;
36031
+
36032
+ /**
36033
+ * Encodes the specified HeartbeatRecord message. Does not implicitly {@link google.spanner.v1.ChangeStreamRecord.HeartbeatRecord.verify|verify} messages.
36034
+ * @param message HeartbeatRecord message or plain object to encode
36035
+ * @param [writer] Writer to encode to
36036
+ * @returns Writer
36037
+ */
36038
+ public static encode(message: google.spanner.v1.ChangeStreamRecord.IHeartbeatRecord, writer?: $protobuf.Writer): $protobuf.Writer;
36039
+
36040
+ /**
36041
+ * Encodes the specified HeartbeatRecord message, length delimited. Does not implicitly {@link google.spanner.v1.ChangeStreamRecord.HeartbeatRecord.verify|verify} messages.
36042
+ * @param message HeartbeatRecord message or plain object to encode
36043
+ * @param [writer] Writer to encode to
36044
+ * @returns Writer
36045
+ */
36046
+ public static encodeDelimited(message: google.spanner.v1.ChangeStreamRecord.IHeartbeatRecord, writer?: $protobuf.Writer): $protobuf.Writer;
36047
+
36048
+ /**
36049
+ * Decodes a HeartbeatRecord message from the specified reader or buffer.
36050
+ * @param reader Reader or buffer to decode from
36051
+ * @param [length] Message length if known beforehand
36052
+ * @returns HeartbeatRecord
36053
+ * @throws {Error} If the payload is not a reader or valid buffer
36054
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
36055
+ */
36056
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.ChangeStreamRecord.HeartbeatRecord;
36057
+
36058
+ /**
36059
+ * Decodes a HeartbeatRecord message from the specified reader or buffer, length delimited.
36060
+ * @param reader Reader or buffer to decode from
36061
+ * @returns HeartbeatRecord
36062
+ * @throws {Error} If the payload is not a reader or valid buffer
36063
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
36064
+ */
36065
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.ChangeStreamRecord.HeartbeatRecord;
36066
+
36067
+ /**
36068
+ * Verifies a HeartbeatRecord message.
36069
+ * @param message Plain object to verify
36070
+ * @returns `null` if valid, otherwise the reason why it is not
36071
+ */
36072
+ public static verify(message: { [k: string]: any }): (string|null);
36073
+
36074
+ /**
36075
+ * Creates a HeartbeatRecord message from a plain object. Also converts values to their respective internal types.
36076
+ * @param object Plain object
36077
+ * @returns HeartbeatRecord
36078
+ */
36079
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.ChangeStreamRecord.HeartbeatRecord;
36080
+
36081
+ /**
36082
+ * Creates a plain object from a HeartbeatRecord message. Also converts values to other types if specified.
36083
+ * @param message HeartbeatRecord
36084
+ * @param [options] Conversion options
36085
+ * @returns Plain object
36086
+ */
36087
+ public static toObject(message: google.spanner.v1.ChangeStreamRecord.HeartbeatRecord, options?: $protobuf.IConversionOptions): { [k: string]: any };
36088
+
36089
+ /**
36090
+ * Converts this HeartbeatRecord to JSON.
36091
+ * @returns JSON object
36092
+ */
36093
+ public toJSON(): { [k: string]: any };
36094
+
36095
+ /**
36096
+ * Gets the default type url for HeartbeatRecord
36097
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
36098
+ * @returns The default type url
36099
+ */
36100
+ public static getTypeUrl(typeUrlPrefix?: string): string;
36101
+ }
36102
+
36103
+ /** Properties of a PartitionStartRecord. */
36104
+ interface IPartitionStartRecord {
36105
+
36106
+ /** PartitionStartRecord startTimestamp */
36107
+ startTimestamp?: (google.protobuf.ITimestamp|null);
36108
+
36109
+ /** PartitionStartRecord recordSequence */
36110
+ recordSequence?: (string|null);
36111
+
36112
+ /** PartitionStartRecord partitionTokens */
36113
+ partitionTokens?: (string[]|null);
36114
+ }
36115
+
36116
+ /** Represents a PartitionStartRecord. */
36117
+ class PartitionStartRecord implements IPartitionStartRecord {
36118
+
36119
+ /**
36120
+ * Constructs a new PartitionStartRecord.
36121
+ * @param [properties] Properties to set
36122
+ */
36123
+ constructor(properties?: google.spanner.v1.ChangeStreamRecord.IPartitionStartRecord);
36124
+
36125
+ /** PartitionStartRecord startTimestamp. */
36126
+ public startTimestamp?: (google.protobuf.ITimestamp|null);
36127
+
36128
+ /** PartitionStartRecord recordSequence. */
36129
+ public recordSequence: string;
36130
+
36131
+ /** PartitionStartRecord partitionTokens. */
36132
+ public partitionTokens: string[];
36133
+
36134
+ /**
36135
+ * Creates a new PartitionStartRecord instance using the specified properties.
36136
+ * @param [properties] Properties to set
36137
+ * @returns PartitionStartRecord instance
36138
+ */
36139
+ public static create(properties?: google.spanner.v1.ChangeStreamRecord.IPartitionStartRecord): google.spanner.v1.ChangeStreamRecord.PartitionStartRecord;
36140
+
36141
+ /**
36142
+ * Encodes the specified PartitionStartRecord message. Does not implicitly {@link google.spanner.v1.ChangeStreamRecord.PartitionStartRecord.verify|verify} messages.
36143
+ * @param message PartitionStartRecord message or plain object to encode
36144
+ * @param [writer] Writer to encode to
36145
+ * @returns Writer
36146
+ */
36147
+ public static encode(message: google.spanner.v1.ChangeStreamRecord.IPartitionStartRecord, writer?: $protobuf.Writer): $protobuf.Writer;
36148
+
36149
+ /**
36150
+ * Encodes the specified PartitionStartRecord message, length delimited. Does not implicitly {@link google.spanner.v1.ChangeStreamRecord.PartitionStartRecord.verify|verify} messages.
36151
+ * @param message PartitionStartRecord message or plain object to encode
36152
+ * @param [writer] Writer to encode to
36153
+ * @returns Writer
36154
+ */
36155
+ public static encodeDelimited(message: google.spanner.v1.ChangeStreamRecord.IPartitionStartRecord, writer?: $protobuf.Writer): $protobuf.Writer;
36156
+
36157
+ /**
36158
+ * Decodes a PartitionStartRecord message from the specified reader or buffer.
36159
+ * @param reader Reader or buffer to decode from
36160
+ * @param [length] Message length if known beforehand
36161
+ * @returns PartitionStartRecord
36162
+ * @throws {Error} If the payload is not a reader or valid buffer
36163
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
36164
+ */
36165
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.ChangeStreamRecord.PartitionStartRecord;
36166
+
36167
+ /**
36168
+ * Decodes a PartitionStartRecord message from the specified reader or buffer, length delimited.
36169
+ * @param reader Reader or buffer to decode from
36170
+ * @returns PartitionStartRecord
36171
+ * @throws {Error} If the payload is not a reader or valid buffer
36172
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
36173
+ */
36174
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.ChangeStreamRecord.PartitionStartRecord;
36175
+
36176
+ /**
36177
+ * Verifies a PartitionStartRecord message.
36178
+ * @param message Plain object to verify
36179
+ * @returns `null` if valid, otherwise the reason why it is not
36180
+ */
36181
+ public static verify(message: { [k: string]: any }): (string|null);
36182
+
36183
+ /**
36184
+ * Creates a PartitionStartRecord message from a plain object. Also converts values to their respective internal types.
36185
+ * @param object Plain object
36186
+ * @returns PartitionStartRecord
36187
+ */
36188
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.ChangeStreamRecord.PartitionStartRecord;
36189
+
36190
+ /**
36191
+ * Creates a plain object from a PartitionStartRecord message. Also converts values to other types if specified.
36192
+ * @param message PartitionStartRecord
36193
+ * @param [options] Conversion options
36194
+ * @returns Plain object
36195
+ */
36196
+ public static toObject(message: google.spanner.v1.ChangeStreamRecord.PartitionStartRecord, options?: $protobuf.IConversionOptions): { [k: string]: any };
36197
+
36198
+ /**
36199
+ * Converts this PartitionStartRecord to JSON.
36200
+ * @returns JSON object
36201
+ */
36202
+ public toJSON(): { [k: string]: any };
36203
+
36204
+ /**
36205
+ * Gets the default type url for PartitionStartRecord
36206
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
36207
+ * @returns The default type url
36208
+ */
36209
+ public static getTypeUrl(typeUrlPrefix?: string): string;
36210
+ }
36211
+
36212
+ /** Properties of a PartitionEndRecord. */
36213
+ interface IPartitionEndRecord {
36214
+
36215
+ /** PartitionEndRecord endTimestamp */
36216
+ endTimestamp?: (google.protobuf.ITimestamp|null);
36217
+
36218
+ /** PartitionEndRecord recordSequence */
36219
+ recordSequence?: (string|null);
36220
+
36221
+ /** PartitionEndRecord partitionToken */
36222
+ partitionToken?: (string|null);
36223
+ }
36224
+
36225
+ /** Represents a PartitionEndRecord. */
36226
+ class PartitionEndRecord implements IPartitionEndRecord {
36227
+
36228
+ /**
36229
+ * Constructs a new PartitionEndRecord.
36230
+ * @param [properties] Properties to set
36231
+ */
36232
+ constructor(properties?: google.spanner.v1.ChangeStreamRecord.IPartitionEndRecord);
36233
+
36234
+ /** PartitionEndRecord endTimestamp. */
36235
+ public endTimestamp?: (google.protobuf.ITimestamp|null);
36236
+
36237
+ /** PartitionEndRecord recordSequence. */
36238
+ public recordSequence: string;
36239
+
36240
+ /** PartitionEndRecord partitionToken. */
36241
+ public partitionToken: string;
36242
+
36243
+ /**
36244
+ * Creates a new PartitionEndRecord instance using the specified properties.
36245
+ * @param [properties] Properties to set
36246
+ * @returns PartitionEndRecord instance
36247
+ */
36248
+ public static create(properties?: google.spanner.v1.ChangeStreamRecord.IPartitionEndRecord): google.spanner.v1.ChangeStreamRecord.PartitionEndRecord;
36249
+
36250
+ /**
36251
+ * Encodes the specified PartitionEndRecord message. Does not implicitly {@link google.spanner.v1.ChangeStreamRecord.PartitionEndRecord.verify|verify} messages.
36252
+ * @param message PartitionEndRecord message or plain object to encode
36253
+ * @param [writer] Writer to encode to
36254
+ * @returns Writer
36255
+ */
36256
+ public static encode(message: google.spanner.v1.ChangeStreamRecord.IPartitionEndRecord, writer?: $protobuf.Writer): $protobuf.Writer;
36257
+
36258
+ /**
36259
+ * Encodes the specified PartitionEndRecord message, length delimited. Does not implicitly {@link google.spanner.v1.ChangeStreamRecord.PartitionEndRecord.verify|verify} messages.
36260
+ * @param message PartitionEndRecord message or plain object to encode
36261
+ * @param [writer] Writer to encode to
36262
+ * @returns Writer
36263
+ */
36264
+ public static encodeDelimited(message: google.spanner.v1.ChangeStreamRecord.IPartitionEndRecord, writer?: $protobuf.Writer): $protobuf.Writer;
36265
+
36266
+ /**
36267
+ * Decodes a PartitionEndRecord message from the specified reader or buffer.
36268
+ * @param reader Reader or buffer to decode from
36269
+ * @param [length] Message length if known beforehand
36270
+ * @returns PartitionEndRecord
36271
+ * @throws {Error} If the payload is not a reader or valid buffer
36272
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
36273
+ */
36274
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.ChangeStreamRecord.PartitionEndRecord;
36275
+
36276
+ /**
36277
+ * Decodes a PartitionEndRecord message from the specified reader or buffer, length delimited.
36278
+ * @param reader Reader or buffer to decode from
36279
+ * @returns PartitionEndRecord
36280
+ * @throws {Error} If the payload is not a reader or valid buffer
36281
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
36282
+ */
36283
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.ChangeStreamRecord.PartitionEndRecord;
36284
+
36285
+ /**
36286
+ * Verifies a PartitionEndRecord message.
36287
+ * @param message Plain object to verify
36288
+ * @returns `null` if valid, otherwise the reason why it is not
36289
+ */
36290
+ public static verify(message: { [k: string]: any }): (string|null);
36291
+
36292
+ /**
36293
+ * Creates a PartitionEndRecord message from a plain object. Also converts values to their respective internal types.
36294
+ * @param object Plain object
36295
+ * @returns PartitionEndRecord
36296
+ */
36297
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.ChangeStreamRecord.PartitionEndRecord;
36298
+
36299
+ /**
36300
+ * Creates a plain object from a PartitionEndRecord message. Also converts values to other types if specified.
36301
+ * @param message PartitionEndRecord
36302
+ * @param [options] Conversion options
36303
+ * @returns Plain object
36304
+ */
36305
+ public static toObject(message: google.spanner.v1.ChangeStreamRecord.PartitionEndRecord, options?: $protobuf.IConversionOptions): { [k: string]: any };
36306
+
36307
+ /**
36308
+ * Converts this PartitionEndRecord to JSON.
36309
+ * @returns JSON object
36310
+ */
36311
+ public toJSON(): { [k: string]: any };
36312
+
36313
+ /**
36314
+ * Gets the default type url for PartitionEndRecord
36315
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
36316
+ * @returns The default type url
36317
+ */
36318
+ public static getTypeUrl(typeUrlPrefix?: string): string;
36319
+ }
36320
+
36321
+ /** Properties of a PartitionEventRecord. */
36322
+ interface IPartitionEventRecord {
36323
+
36324
+ /** PartitionEventRecord commitTimestamp */
36325
+ commitTimestamp?: (google.protobuf.ITimestamp|null);
36326
+
36327
+ /** PartitionEventRecord recordSequence */
36328
+ recordSequence?: (string|null);
36329
+
36330
+ /** PartitionEventRecord partitionToken */
36331
+ partitionToken?: (string|null);
36332
+
36333
+ /** PartitionEventRecord moveInEvents */
36334
+ moveInEvents?: (google.spanner.v1.ChangeStreamRecord.PartitionEventRecord.IMoveInEvent[]|null);
36335
+
36336
+ /** PartitionEventRecord moveOutEvents */
36337
+ moveOutEvents?: (google.spanner.v1.ChangeStreamRecord.PartitionEventRecord.IMoveOutEvent[]|null);
36338
+ }
36339
+
36340
+ /** Represents a PartitionEventRecord. */
36341
+ class PartitionEventRecord implements IPartitionEventRecord {
36342
+
36343
+ /**
36344
+ * Constructs a new PartitionEventRecord.
36345
+ * @param [properties] Properties to set
36346
+ */
36347
+ constructor(properties?: google.spanner.v1.ChangeStreamRecord.IPartitionEventRecord);
36348
+
36349
+ /** PartitionEventRecord commitTimestamp. */
36350
+ public commitTimestamp?: (google.protobuf.ITimestamp|null);
36351
+
36352
+ /** PartitionEventRecord recordSequence. */
36353
+ public recordSequence: string;
36354
+
36355
+ /** PartitionEventRecord partitionToken. */
36356
+ public partitionToken: string;
36357
+
36358
+ /** PartitionEventRecord moveInEvents. */
36359
+ public moveInEvents: google.spanner.v1.ChangeStreamRecord.PartitionEventRecord.IMoveInEvent[];
36360
+
36361
+ /** PartitionEventRecord moveOutEvents. */
36362
+ public moveOutEvents: google.spanner.v1.ChangeStreamRecord.PartitionEventRecord.IMoveOutEvent[];
36363
+
36364
+ /**
36365
+ * Creates a new PartitionEventRecord instance using the specified properties.
36366
+ * @param [properties] Properties to set
36367
+ * @returns PartitionEventRecord instance
36368
+ */
36369
+ public static create(properties?: google.spanner.v1.ChangeStreamRecord.IPartitionEventRecord): google.spanner.v1.ChangeStreamRecord.PartitionEventRecord;
36370
+
36371
+ /**
36372
+ * Encodes the specified PartitionEventRecord message. Does not implicitly {@link google.spanner.v1.ChangeStreamRecord.PartitionEventRecord.verify|verify} messages.
36373
+ * @param message PartitionEventRecord message or plain object to encode
36374
+ * @param [writer] Writer to encode to
36375
+ * @returns Writer
36376
+ */
36377
+ public static encode(message: google.spanner.v1.ChangeStreamRecord.IPartitionEventRecord, writer?: $protobuf.Writer): $protobuf.Writer;
36378
+
36379
+ /**
36380
+ * Encodes the specified PartitionEventRecord message, length delimited. Does not implicitly {@link google.spanner.v1.ChangeStreamRecord.PartitionEventRecord.verify|verify} messages.
36381
+ * @param message PartitionEventRecord message or plain object to encode
36382
+ * @param [writer] Writer to encode to
36383
+ * @returns Writer
36384
+ */
36385
+ public static encodeDelimited(message: google.spanner.v1.ChangeStreamRecord.IPartitionEventRecord, writer?: $protobuf.Writer): $protobuf.Writer;
36386
+
36387
+ /**
36388
+ * Decodes a PartitionEventRecord message from the specified reader or buffer.
36389
+ * @param reader Reader or buffer to decode from
36390
+ * @param [length] Message length if known beforehand
36391
+ * @returns PartitionEventRecord
36392
+ * @throws {Error} If the payload is not a reader or valid buffer
36393
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
36394
+ */
36395
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.ChangeStreamRecord.PartitionEventRecord;
36396
+
36397
+ /**
36398
+ * Decodes a PartitionEventRecord message from the specified reader or buffer, length delimited.
36399
+ * @param reader Reader or buffer to decode from
36400
+ * @returns PartitionEventRecord
36401
+ * @throws {Error} If the payload is not a reader or valid buffer
36402
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
36403
+ */
36404
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.ChangeStreamRecord.PartitionEventRecord;
36405
+
36406
+ /**
36407
+ * Verifies a PartitionEventRecord message.
36408
+ * @param message Plain object to verify
36409
+ * @returns `null` if valid, otherwise the reason why it is not
36410
+ */
36411
+ public static verify(message: { [k: string]: any }): (string|null);
36412
+
36413
+ /**
36414
+ * Creates a PartitionEventRecord message from a plain object. Also converts values to their respective internal types.
36415
+ * @param object Plain object
36416
+ * @returns PartitionEventRecord
36417
+ */
36418
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.ChangeStreamRecord.PartitionEventRecord;
36419
+
36420
+ /**
36421
+ * Creates a plain object from a PartitionEventRecord message. Also converts values to other types if specified.
36422
+ * @param message PartitionEventRecord
36423
+ * @param [options] Conversion options
36424
+ * @returns Plain object
36425
+ */
36426
+ public static toObject(message: google.spanner.v1.ChangeStreamRecord.PartitionEventRecord, options?: $protobuf.IConversionOptions): { [k: string]: any };
36427
+
36428
+ /**
36429
+ * Converts this PartitionEventRecord to JSON.
36430
+ * @returns JSON object
36431
+ */
36432
+ public toJSON(): { [k: string]: any };
36433
+
36434
+ /**
36435
+ * Gets the default type url for PartitionEventRecord
36436
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
36437
+ * @returns The default type url
36438
+ */
36439
+ public static getTypeUrl(typeUrlPrefix?: string): string;
36440
+ }
36441
+
36442
+ namespace PartitionEventRecord {
36443
+
36444
+ /** Properties of a MoveInEvent. */
36445
+ interface IMoveInEvent {
36446
+
36447
+ /** MoveInEvent sourcePartitionToken */
36448
+ sourcePartitionToken?: (string|null);
36449
+ }
36450
+
36451
+ /** Represents a MoveInEvent. */
36452
+ class MoveInEvent implements IMoveInEvent {
36453
+
36454
+ /**
36455
+ * Constructs a new MoveInEvent.
36456
+ * @param [properties] Properties to set
36457
+ */
36458
+ constructor(properties?: google.spanner.v1.ChangeStreamRecord.PartitionEventRecord.IMoveInEvent);
36459
+
36460
+ /** MoveInEvent sourcePartitionToken. */
36461
+ public sourcePartitionToken: string;
36462
+
36463
+ /**
36464
+ * Creates a new MoveInEvent instance using the specified properties.
36465
+ * @param [properties] Properties to set
36466
+ * @returns MoveInEvent instance
36467
+ */
36468
+ public static create(properties?: google.spanner.v1.ChangeStreamRecord.PartitionEventRecord.IMoveInEvent): google.spanner.v1.ChangeStreamRecord.PartitionEventRecord.MoveInEvent;
36469
+
36470
+ /**
36471
+ * Encodes the specified MoveInEvent message. Does not implicitly {@link google.spanner.v1.ChangeStreamRecord.PartitionEventRecord.MoveInEvent.verify|verify} messages.
36472
+ * @param message MoveInEvent message or plain object to encode
36473
+ * @param [writer] Writer to encode to
36474
+ * @returns Writer
36475
+ */
36476
+ public static encode(message: google.spanner.v1.ChangeStreamRecord.PartitionEventRecord.IMoveInEvent, writer?: $protobuf.Writer): $protobuf.Writer;
36477
+
36478
+ /**
36479
+ * Encodes the specified MoveInEvent message, length delimited. Does not implicitly {@link google.spanner.v1.ChangeStreamRecord.PartitionEventRecord.MoveInEvent.verify|verify} messages.
36480
+ * @param message MoveInEvent message or plain object to encode
36481
+ * @param [writer] Writer to encode to
36482
+ * @returns Writer
36483
+ */
36484
+ public static encodeDelimited(message: google.spanner.v1.ChangeStreamRecord.PartitionEventRecord.IMoveInEvent, writer?: $protobuf.Writer): $protobuf.Writer;
36485
+
36486
+ /**
36487
+ * Decodes a MoveInEvent message from the specified reader or buffer.
36488
+ * @param reader Reader or buffer to decode from
36489
+ * @param [length] Message length if known beforehand
36490
+ * @returns MoveInEvent
36491
+ * @throws {Error} If the payload is not a reader or valid buffer
36492
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
36493
+ */
36494
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.ChangeStreamRecord.PartitionEventRecord.MoveInEvent;
36495
+
36496
+ /**
36497
+ * Decodes a MoveInEvent message from the specified reader or buffer, length delimited.
36498
+ * @param reader Reader or buffer to decode from
36499
+ * @returns MoveInEvent
36500
+ * @throws {Error} If the payload is not a reader or valid buffer
36501
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
36502
+ */
36503
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.ChangeStreamRecord.PartitionEventRecord.MoveInEvent;
36504
+
36505
+ /**
36506
+ * Verifies a MoveInEvent message.
36507
+ * @param message Plain object to verify
36508
+ * @returns `null` if valid, otherwise the reason why it is not
36509
+ */
36510
+ public static verify(message: { [k: string]: any }): (string|null);
36511
+
36512
+ /**
36513
+ * Creates a MoveInEvent message from a plain object. Also converts values to their respective internal types.
36514
+ * @param object Plain object
36515
+ * @returns MoveInEvent
36516
+ */
36517
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.ChangeStreamRecord.PartitionEventRecord.MoveInEvent;
36518
+
36519
+ /**
36520
+ * Creates a plain object from a MoveInEvent message. Also converts values to other types if specified.
36521
+ * @param message MoveInEvent
36522
+ * @param [options] Conversion options
36523
+ * @returns Plain object
36524
+ */
36525
+ public static toObject(message: google.spanner.v1.ChangeStreamRecord.PartitionEventRecord.MoveInEvent, options?: $protobuf.IConversionOptions): { [k: string]: any };
36526
+
36527
+ /**
36528
+ * Converts this MoveInEvent to JSON.
36529
+ * @returns JSON object
36530
+ */
36531
+ public toJSON(): { [k: string]: any };
36532
+
36533
+ /**
36534
+ * Gets the default type url for MoveInEvent
36535
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
36536
+ * @returns The default type url
36537
+ */
36538
+ public static getTypeUrl(typeUrlPrefix?: string): string;
36539
+ }
36540
+
36541
+ /** Properties of a MoveOutEvent. */
36542
+ interface IMoveOutEvent {
36543
+
36544
+ /** MoveOutEvent destinationPartitionToken */
36545
+ destinationPartitionToken?: (string|null);
36546
+ }
36547
+
36548
+ /** Represents a MoveOutEvent. */
36549
+ class MoveOutEvent implements IMoveOutEvent {
36550
+
36551
+ /**
36552
+ * Constructs a new MoveOutEvent.
36553
+ * @param [properties] Properties to set
36554
+ */
36555
+ constructor(properties?: google.spanner.v1.ChangeStreamRecord.PartitionEventRecord.IMoveOutEvent);
36556
+
36557
+ /** MoveOutEvent destinationPartitionToken. */
36558
+ public destinationPartitionToken: string;
36559
+
36560
+ /**
36561
+ * Creates a new MoveOutEvent instance using the specified properties.
36562
+ * @param [properties] Properties to set
36563
+ * @returns MoveOutEvent instance
36564
+ */
36565
+ public static create(properties?: google.spanner.v1.ChangeStreamRecord.PartitionEventRecord.IMoveOutEvent): google.spanner.v1.ChangeStreamRecord.PartitionEventRecord.MoveOutEvent;
36566
+
36567
+ /**
36568
+ * Encodes the specified MoveOutEvent message. Does not implicitly {@link google.spanner.v1.ChangeStreamRecord.PartitionEventRecord.MoveOutEvent.verify|verify} messages.
36569
+ * @param message MoveOutEvent message or plain object to encode
36570
+ * @param [writer] Writer to encode to
36571
+ * @returns Writer
36572
+ */
36573
+ public static encode(message: google.spanner.v1.ChangeStreamRecord.PartitionEventRecord.IMoveOutEvent, writer?: $protobuf.Writer): $protobuf.Writer;
36574
+
36575
+ /**
36576
+ * Encodes the specified MoveOutEvent message, length delimited. Does not implicitly {@link google.spanner.v1.ChangeStreamRecord.PartitionEventRecord.MoveOutEvent.verify|verify} messages.
36577
+ * @param message MoveOutEvent message or plain object to encode
36578
+ * @param [writer] Writer to encode to
36579
+ * @returns Writer
36580
+ */
36581
+ public static encodeDelimited(message: google.spanner.v1.ChangeStreamRecord.PartitionEventRecord.IMoveOutEvent, writer?: $protobuf.Writer): $protobuf.Writer;
36582
+
36583
+ /**
36584
+ * Decodes a MoveOutEvent message from the specified reader or buffer.
36585
+ * @param reader Reader or buffer to decode from
36586
+ * @param [length] Message length if known beforehand
36587
+ * @returns MoveOutEvent
36588
+ * @throws {Error} If the payload is not a reader or valid buffer
36589
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
36590
+ */
36591
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.ChangeStreamRecord.PartitionEventRecord.MoveOutEvent;
36592
+
36593
+ /**
36594
+ * Decodes a MoveOutEvent message from the specified reader or buffer, length delimited.
36595
+ * @param reader Reader or buffer to decode from
36596
+ * @returns MoveOutEvent
36597
+ * @throws {Error} If the payload is not a reader or valid buffer
36598
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
36599
+ */
36600
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.ChangeStreamRecord.PartitionEventRecord.MoveOutEvent;
36601
+
36602
+ /**
36603
+ * Verifies a MoveOutEvent message.
36604
+ * @param message Plain object to verify
36605
+ * @returns `null` if valid, otherwise the reason why it is not
36606
+ */
36607
+ public static verify(message: { [k: string]: any }): (string|null);
36608
+
36609
+ /**
36610
+ * Creates a MoveOutEvent message from a plain object. Also converts values to their respective internal types.
36611
+ * @param object Plain object
36612
+ * @returns MoveOutEvent
36613
+ */
36614
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.ChangeStreamRecord.PartitionEventRecord.MoveOutEvent;
36615
+
36616
+ /**
36617
+ * Creates a plain object from a MoveOutEvent message. Also converts values to other types if specified.
36618
+ * @param message MoveOutEvent
36619
+ * @param [options] Conversion options
36620
+ * @returns Plain object
36621
+ */
36622
+ public static toObject(message: google.spanner.v1.ChangeStreamRecord.PartitionEventRecord.MoveOutEvent, options?: $protobuf.IConversionOptions): { [k: string]: any };
36623
+
36624
+ /**
36625
+ * Converts this MoveOutEvent to JSON.
36626
+ * @returns JSON object
36627
+ */
36628
+ public toJSON(): { [k: string]: any };
36629
+
36630
+ /**
36631
+ * Gets the default type url for MoveOutEvent
36632
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
36633
+ * @returns The default type url
36634
+ */
36635
+ public static getTypeUrl(typeUrlPrefix?: string): string;
36636
+ }
36637
+ }
36638
+ }
35118
36639
  }
35119
36640
  }
35120
36641