@google-cloud/spanner 8.7.1 → 8.8.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.
@@ -29591,6 +29591,20 @@ export namespace google {
29591
29591
  * @returns Promise
29592
29592
  */
29593
29593
  public batchWrite(request: google.spanner.v1.IBatchWriteRequest): Promise<google.spanner.v1.BatchWriteResponse>;
29594
+
29595
+ /**
29596
+ * Calls FetchCacheUpdate.
29597
+ * @param request FetchCacheUpdateRequest message or plain object
29598
+ * @param callback Node-style callback called with the error, if any, and CacheUpdate
29599
+ */
29600
+ public fetchCacheUpdate(request: google.spanner.v1.IFetchCacheUpdateRequest, callback: google.spanner.v1.Spanner.FetchCacheUpdateCallback): void;
29601
+
29602
+ /**
29603
+ * Calls FetchCacheUpdate.
29604
+ * @param request FetchCacheUpdateRequest message or plain object
29605
+ * @returns Promise
29606
+ */
29607
+ public fetchCacheUpdate(request: google.spanner.v1.IFetchCacheUpdateRequest): Promise<google.spanner.v1.CacheUpdate>;
29594
29608
  }
29595
29609
 
29596
29610
  namespace Spanner {
@@ -29706,6 +29720,13 @@ export namespace google {
29706
29720
  * @param [response] BatchWriteResponse
29707
29721
  */
29708
29722
  type BatchWriteCallback = (error: (Error|null), response?: google.spanner.v1.BatchWriteResponse) => void;
29723
+
29724
+ /**
29725
+ * Callback as used by {@link google.spanner.v1.Spanner|fetchCacheUpdate}.
29726
+ * @param error Error, if any
29727
+ * @param [response] CacheUpdate
29728
+ */
29729
+ type FetchCacheUpdateCallback = (error: (Error|null), response?: google.spanner.v1.CacheUpdate) => void;
29709
29730
  }
29710
29731
 
29711
29732
  /** Properties of a CreateSessionRequest. */
@@ -32620,6 +32641,9 @@ export namespace google {
32620
32641
 
32621
32642
  /** BeginTransactionRequest mutationKey */
32622
32643
  mutationKey?: (google.spanner.v1.IMutation|null);
32644
+
32645
+ /** BeginTransactionRequest routingHint */
32646
+ routingHint?: (google.spanner.v1.IRoutingHint|null);
32623
32647
  }
32624
32648
 
32625
32649
  /** Represents a BeginTransactionRequest. */
@@ -32643,6 +32667,9 @@ export namespace google {
32643
32667
  /** BeginTransactionRequest mutationKey. */
32644
32668
  public mutationKey?: (google.spanner.v1.IMutation|null);
32645
32669
 
32670
+ /** BeginTransactionRequest routingHint. */
32671
+ public routingHint?: (google.spanner.v1.IRoutingHint|null);
32672
+
32646
32673
  /**
32647
32674
  * Creates a new BeginTransactionRequest instance using the specified properties.
32648
32675
  * @param [properties] Properties to set
@@ -32747,6 +32774,9 @@ export namespace google {
32747
32774
 
32748
32775
  /** CommitRequest precommitToken */
32749
32776
  precommitToken?: (google.spanner.v1.IMultiplexedSessionPrecommitToken|null);
32777
+
32778
+ /** CommitRequest routingHint */
32779
+ routingHint?: (google.spanner.v1.IRoutingHint|null);
32750
32780
  }
32751
32781
 
32752
32782
  /** Represents a CommitRequest. */
@@ -32782,6 +32812,9 @@ export namespace google {
32782
32812
  /** CommitRequest precommitToken. */
32783
32813
  public precommitToken?: (google.spanner.v1.IMultiplexedSessionPrecommitToken|null);
32784
32814
 
32815
+ /** CommitRequest routingHint. */
32816
+ public routingHint?: (google.spanner.v1.IRoutingHint|null);
32817
+
32785
32818
  /** CommitRequest transaction. */
32786
32819
  public transaction?: ("transactionId"|"singleUseTransaction");
32787
32820
 
@@ -33290,6 +33323,115 @@ export namespace google {
33290
33323
  public static getTypeUrl(typeUrlPrefix?: string): string;
33291
33324
  }
33292
33325
 
33326
+ /** Properties of a FetchCacheUpdateRequest. */
33327
+ interface IFetchCacheUpdateRequest {
33328
+
33329
+ /** FetchCacheUpdateRequest database */
33330
+ database?: (string|null);
33331
+
33332
+ /** FetchCacheUpdateRequest maxRecipeCount */
33333
+ maxRecipeCount?: (number|null);
33334
+
33335
+ /** FetchCacheUpdateRequest maxRangeCount */
33336
+ maxRangeCount?: (number|null);
33337
+ }
33338
+
33339
+ /** Represents a FetchCacheUpdateRequest. */
33340
+ class FetchCacheUpdateRequest implements IFetchCacheUpdateRequest {
33341
+
33342
+ /**
33343
+ * Constructs a new FetchCacheUpdateRequest.
33344
+ * @param [properties] Properties to set
33345
+ */
33346
+ constructor(properties?: google.spanner.v1.IFetchCacheUpdateRequest);
33347
+
33348
+ /** FetchCacheUpdateRequest database. */
33349
+ public database: string;
33350
+
33351
+ /** FetchCacheUpdateRequest maxRecipeCount. */
33352
+ public maxRecipeCount: number;
33353
+
33354
+ /** FetchCacheUpdateRequest maxRangeCount. */
33355
+ public maxRangeCount: number;
33356
+
33357
+ /**
33358
+ * Creates a new FetchCacheUpdateRequest instance using the specified properties.
33359
+ * @param [properties] Properties to set
33360
+ * @returns FetchCacheUpdateRequest instance
33361
+ */
33362
+ public static create(properties?: google.spanner.v1.IFetchCacheUpdateRequest): google.spanner.v1.FetchCacheUpdateRequest;
33363
+
33364
+ /**
33365
+ * Encodes the specified FetchCacheUpdateRequest message. Does not implicitly {@link google.spanner.v1.FetchCacheUpdateRequest.verify|verify} messages.
33366
+ * @param message FetchCacheUpdateRequest message or plain object to encode
33367
+ * @param [writer] Writer to encode to
33368
+ * @returns Writer
33369
+ */
33370
+ public static encode(message: google.spanner.v1.IFetchCacheUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer;
33371
+
33372
+ /**
33373
+ * Encodes the specified FetchCacheUpdateRequest message, length delimited. Does not implicitly {@link google.spanner.v1.FetchCacheUpdateRequest.verify|verify} messages.
33374
+ * @param message FetchCacheUpdateRequest message or plain object to encode
33375
+ * @param [writer] Writer to encode to
33376
+ * @returns Writer
33377
+ */
33378
+ public static encodeDelimited(message: google.spanner.v1.IFetchCacheUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer;
33379
+
33380
+ /**
33381
+ * Decodes a FetchCacheUpdateRequest message from the specified reader or buffer.
33382
+ * @param reader Reader or buffer to decode from
33383
+ * @param [length] Message length if known beforehand
33384
+ * @returns FetchCacheUpdateRequest
33385
+ * @throws {Error} If the payload is not a reader or valid buffer
33386
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
33387
+ */
33388
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.FetchCacheUpdateRequest;
33389
+
33390
+ /**
33391
+ * Decodes a FetchCacheUpdateRequest message from the specified reader or buffer, length delimited.
33392
+ * @param reader Reader or buffer to decode from
33393
+ * @returns FetchCacheUpdateRequest
33394
+ * @throws {Error} If the payload is not a reader or valid buffer
33395
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
33396
+ */
33397
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.FetchCacheUpdateRequest;
33398
+
33399
+ /**
33400
+ * Verifies a FetchCacheUpdateRequest message.
33401
+ * @param message Plain object to verify
33402
+ * @returns `null` if valid, otherwise the reason why it is not
33403
+ */
33404
+ public static verify(message: { [k: string]: any }): (string|null);
33405
+
33406
+ /**
33407
+ * Creates a FetchCacheUpdateRequest message from a plain object. Also converts values to their respective internal types.
33408
+ * @param object Plain object
33409
+ * @returns FetchCacheUpdateRequest
33410
+ */
33411
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.FetchCacheUpdateRequest;
33412
+
33413
+ /**
33414
+ * Creates a plain object from a FetchCacheUpdateRequest message. Also converts values to other types if specified.
33415
+ * @param message FetchCacheUpdateRequest
33416
+ * @param [options] Conversion options
33417
+ * @returns Plain object
33418
+ */
33419
+ public static toObject(message: google.spanner.v1.FetchCacheUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
33420
+
33421
+ /**
33422
+ * Converts this FetchCacheUpdateRequest to JSON.
33423
+ * @returns JSON object
33424
+ */
33425
+ public toJSON(): { [k: string]: any };
33426
+
33427
+ /**
33428
+ * Gets the default type url for FetchCacheUpdateRequest
33429
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
33430
+ * @returns The default type url
33431
+ */
33432
+ public static getTypeUrl(typeUrlPrefix?: string): string;
33433
+ }
33434
+
33293
33435
  /** Properties of a CommitResponse. */
33294
33436
  interface ICommitResponse {
33295
33437
 
@@ -33304,6 +33446,15 @@ export namespace google {
33304
33446
 
33305
33447
  /** CommitResponse snapshotTimestamp */
33306
33448
  snapshotTimestamp?: (google.protobuf.ITimestamp|null);
33449
+
33450
+ /** CommitResponse cacheUpdate */
33451
+ cacheUpdate?: (google.spanner.v1.ICacheUpdate|null);
33452
+
33453
+ /** CommitResponse isolationLevel */
33454
+ isolationLevel?: (google.spanner.v1.TransactionOptions.IsolationLevel|keyof typeof google.spanner.v1.TransactionOptions.IsolationLevel|null);
33455
+
33456
+ /** CommitResponse readLockMode */
33457
+ readLockMode?: (google.spanner.v1.TransactionOptions.ReadWrite.ReadLockMode|keyof typeof google.spanner.v1.TransactionOptions.ReadWrite.ReadLockMode|null);
33307
33458
  }
33308
33459
 
33309
33460
  /** Represents a CommitResponse. */
@@ -33327,6 +33478,15 @@ export namespace google {
33327
33478
  /** CommitResponse snapshotTimestamp. */
33328
33479
  public snapshotTimestamp?: (google.protobuf.ITimestamp|null);
33329
33480
 
33481
+ /** CommitResponse cacheUpdate. */
33482
+ public cacheUpdate?: (google.spanner.v1.ICacheUpdate|null);
33483
+
33484
+ /** CommitResponse isolationLevel. */
33485
+ public isolationLevel: (google.spanner.v1.TransactionOptions.IsolationLevel|keyof typeof google.spanner.v1.TransactionOptions.IsolationLevel);
33486
+
33487
+ /** CommitResponse readLockMode. */
33488
+ public readLockMode: (google.spanner.v1.TransactionOptions.ReadWrite.ReadLockMode|keyof typeof google.spanner.v1.TransactionOptions.ReadWrite.ReadLockMode);
33489
+
33330
33490
  /** CommitResponse MultiplexedSessionRetry. */
33331
33491
  public MultiplexedSessionRetry?: "precommitToken";
33332
33492
 
@@ -33508,2516 +33668,2522 @@ export namespace google {
33508
33668
  }
33509
33669
  }
33510
33670
 
33511
- /** Properties of a TransactionOptions. */
33512
- interface ITransactionOptions {
33671
+ /** Properties of a Range. */
33672
+ interface IRange {
33513
33673
 
33514
- /** TransactionOptions readWrite */
33515
- readWrite?: (google.spanner.v1.TransactionOptions.IReadWrite|null);
33674
+ /** Range startKey */
33675
+ startKey?: (Uint8Array|Buffer|string|null);
33516
33676
 
33517
- /** TransactionOptions partitionedDml */
33518
- partitionedDml?: (google.spanner.v1.TransactionOptions.IPartitionedDml|null);
33677
+ /** Range limitKey */
33678
+ limitKey?: (Uint8Array|Buffer|string|null);
33519
33679
 
33520
- /** TransactionOptions readOnly */
33521
- readOnly?: (google.spanner.v1.TransactionOptions.IReadOnly|null);
33680
+ /** Range groupUid */
33681
+ groupUid?: (number|Long|string|null);
33522
33682
 
33523
- /** TransactionOptions excludeTxnFromChangeStreams */
33524
- excludeTxnFromChangeStreams?: (boolean|null);
33683
+ /** Range splitId */
33684
+ splitId?: (number|Long|string|null);
33525
33685
 
33526
- /** TransactionOptions isolationLevel */
33527
- isolationLevel?: (google.spanner.v1.TransactionOptions.IsolationLevel|keyof typeof google.spanner.v1.TransactionOptions.IsolationLevel|null);
33686
+ /** Range generation */
33687
+ generation?: (Uint8Array|Buffer|string|null);
33528
33688
  }
33529
33689
 
33530
- /** Represents a TransactionOptions. */
33531
- class TransactionOptions implements ITransactionOptions {
33690
+ /** Represents a Range. */
33691
+ class Range implements IRange {
33532
33692
 
33533
33693
  /**
33534
- * Constructs a new TransactionOptions.
33694
+ * Constructs a new Range.
33535
33695
  * @param [properties] Properties to set
33536
33696
  */
33537
- constructor(properties?: google.spanner.v1.ITransactionOptions);
33538
-
33539
- /** TransactionOptions readWrite. */
33540
- public readWrite?: (google.spanner.v1.TransactionOptions.IReadWrite|null);
33697
+ constructor(properties?: google.spanner.v1.IRange);
33541
33698
 
33542
- /** TransactionOptions partitionedDml. */
33543
- public partitionedDml?: (google.spanner.v1.TransactionOptions.IPartitionedDml|null);
33699
+ /** Range startKey. */
33700
+ public startKey: (Uint8Array|Buffer|string);
33544
33701
 
33545
- /** TransactionOptions readOnly. */
33546
- public readOnly?: (google.spanner.v1.TransactionOptions.IReadOnly|null);
33702
+ /** Range limitKey. */
33703
+ public limitKey: (Uint8Array|Buffer|string);
33547
33704
 
33548
- /** TransactionOptions excludeTxnFromChangeStreams. */
33549
- public excludeTxnFromChangeStreams: boolean;
33705
+ /** Range groupUid. */
33706
+ public groupUid: (number|Long|string);
33550
33707
 
33551
- /** TransactionOptions isolationLevel. */
33552
- public isolationLevel: (google.spanner.v1.TransactionOptions.IsolationLevel|keyof typeof google.spanner.v1.TransactionOptions.IsolationLevel);
33708
+ /** Range splitId. */
33709
+ public splitId: (number|Long|string);
33553
33710
 
33554
- /** TransactionOptions mode. */
33555
- public mode?: ("readWrite"|"partitionedDml"|"readOnly");
33711
+ /** Range generation. */
33712
+ public generation: (Uint8Array|Buffer|string);
33556
33713
 
33557
33714
  /**
33558
- * Creates a new TransactionOptions instance using the specified properties.
33715
+ * Creates a new Range instance using the specified properties.
33559
33716
  * @param [properties] Properties to set
33560
- * @returns TransactionOptions instance
33717
+ * @returns Range instance
33561
33718
  */
33562
- public static create(properties?: google.spanner.v1.ITransactionOptions): google.spanner.v1.TransactionOptions;
33719
+ public static create(properties?: google.spanner.v1.IRange): google.spanner.v1.Range;
33563
33720
 
33564
33721
  /**
33565
- * Encodes the specified TransactionOptions message. Does not implicitly {@link google.spanner.v1.TransactionOptions.verify|verify} messages.
33566
- * @param message TransactionOptions message or plain object to encode
33722
+ * Encodes the specified Range message. Does not implicitly {@link google.spanner.v1.Range.verify|verify} messages.
33723
+ * @param message Range message or plain object to encode
33567
33724
  * @param [writer] Writer to encode to
33568
33725
  * @returns Writer
33569
33726
  */
33570
- public static encode(message: google.spanner.v1.ITransactionOptions, writer?: $protobuf.Writer): $protobuf.Writer;
33727
+ public static encode(message: google.spanner.v1.IRange, writer?: $protobuf.Writer): $protobuf.Writer;
33571
33728
 
33572
33729
  /**
33573
- * Encodes the specified TransactionOptions message, length delimited. Does not implicitly {@link google.spanner.v1.TransactionOptions.verify|verify} messages.
33574
- * @param message TransactionOptions message or plain object to encode
33730
+ * Encodes the specified Range message, length delimited. Does not implicitly {@link google.spanner.v1.Range.verify|verify} messages.
33731
+ * @param message Range message or plain object to encode
33575
33732
  * @param [writer] Writer to encode to
33576
33733
  * @returns Writer
33577
33734
  */
33578
- public static encodeDelimited(message: google.spanner.v1.ITransactionOptions, writer?: $protobuf.Writer): $protobuf.Writer;
33735
+ public static encodeDelimited(message: google.spanner.v1.IRange, writer?: $protobuf.Writer): $protobuf.Writer;
33579
33736
 
33580
33737
  /**
33581
- * Decodes a TransactionOptions message from the specified reader or buffer.
33738
+ * Decodes a Range message from the specified reader or buffer.
33582
33739
  * @param reader Reader or buffer to decode from
33583
33740
  * @param [length] Message length if known beforehand
33584
- * @returns TransactionOptions
33741
+ * @returns Range
33585
33742
  * @throws {Error} If the payload is not a reader or valid buffer
33586
33743
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
33587
33744
  */
33588
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.TransactionOptions;
33745
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.Range;
33589
33746
 
33590
33747
  /**
33591
- * Decodes a TransactionOptions message from the specified reader or buffer, length delimited.
33748
+ * Decodes a Range message from the specified reader or buffer, length delimited.
33592
33749
  * @param reader Reader or buffer to decode from
33593
- * @returns TransactionOptions
33750
+ * @returns Range
33594
33751
  * @throws {Error} If the payload is not a reader or valid buffer
33595
33752
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
33596
33753
  */
33597
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.TransactionOptions;
33754
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.Range;
33598
33755
 
33599
33756
  /**
33600
- * Verifies a TransactionOptions message.
33757
+ * Verifies a Range message.
33601
33758
  * @param message Plain object to verify
33602
33759
  * @returns `null` if valid, otherwise the reason why it is not
33603
33760
  */
33604
33761
  public static verify(message: { [k: string]: any }): (string|null);
33605
33762
 
33606
33763
  /**
33607
- * Creates a TransactionOptions message from a plain object. Also converts values to their respective internal types.
33764
+ * Creates a Range message from a plain object. Also converts values to their respective internal types.
33608
33765
  * @param object Plain object
33609
- * @returns TransactionOptions
33766
+ * @returns Range
33610
33767
  */
33611
- public static fromObject(object: { [k: string]: any }): google.spanner.v1.TransactionOptions;
33768
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.Range;
33612
33769
 
33613
33770
  /**
33614
- * Creates a plain object from a TransactionOptions message. Also converts values to other types if specified.
33615
- * @param message TransactionOptions
33771
+ * Creates a plain object from a Range message. Also converts values to other types if specified.
33772
+ * @param message Range
33616
33773
  * @param [options] Conversion options
33617
33774
  * @returns Plain object
33618
33775
  */
33619
- public static toObject(message: google.spanner.v1.TransactionOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
33776
+ public static toObject(message: google.spanner.v1.Range, options?: $protobuf.IConversionOptions): { [k: string]: any };
33620
33777
 
33621
33778
  /**
33622
- * Converts this TransactionOptions to JSON.
33779
+ * Converts this Range to JSON.
33623
33780
  * @returns JSON object
33624
33781
  */
33625
33782
  public toJSON(): { [k: string]: any };
33626
33783
 
33627
33784
  /**
33628
- * Gets the default type url for TransactionOptions
33785
+ * Gets the default type url for Range
33629
33786
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
33630
33787
  * @returns The default type url
33631
33788
  */
33632
33789
  public static getTypeUrl(typeUrlPrefix?: string): string;
33633
33790
  }
33634
33791
 
33635
- namespace TransactionOptions {
33636
-
33637
- /** Properties of a ReadWrite. */
33638
- interface IReadWrite {
33792
+ /** Properties of a Tablet. */
33793
+ interface ITablet {
33639
33794
 
33640
- /** ReadWrite readLockMode */
33641
- readLockMode?: (google.spanner.v1.TransactionOptions.ReadWrite.ReadLockMode|keyof typeof google.spanner.v1.TransactionOptions.ReadWrite.ReadLockMode|null);
33795
+ /** Tablet tabletUid */
33796
+ tabletUid?: (number|Long|string|null);
33642
33797
 
33643
- /** ReadWrite multiplexedSessionPreviousTransactionId */
33644
- multiplexedSessionPreviousTransactionId?: (Uint8Array|Buffer|string|null);
33645
- }
33798
+ /** Tablet serverAddress */
33799
+ serverAddress?: (string|null);
33646
33800
 
33647
- /** Represents a ReadWrite. */
33648
- class ReadWrite implements IReadWrite {
33801
+ /** Tablet location */
33802
+ location?: (string|null);
33649
33803
 
33650
- /**
33651
- * Constructs a new ReadWrite.
33652
- * @param [properties] Properties to set
33653
- */
33654
- constructor(properties?: google.spanner.v1.TransactionOptions.IReadWrite);
33804
+ /** Tablet role */
33805
+ role?: (google.spanner.v1.Tablet.Role|keyof typeof google.spanner.v1.Tablet.Role|null);
33655
33806
 
33656
- /** ReadWrite readLockMode. */
33657
- public readLockMode: (google.spanner.v1.TransactionOptions.ReadWrite.ReadLockMode|keyof typeof google.spanner.v1.TransactionOptions.ReadWrite.ReadLockMode);
33807
+ /** Tablet incarnation */
33808
+ incarnation?: (Uint8Array|Buffer|string|null);
33658
33809
 
33659
- /** ReadWrite multiplexedSessionPreviousTransactionId. */
33660
- public multiplexedSessionPreviousTransactionId: (Uint8Array|Buffer|string);
33810
+ /** Tablet distance */
33811
+ distance?: (number|null);
33661
33812
 
33662
- /**
33663
- * Creates a new ReadWrite instance using the specified properties.
33664
- * @param [properties] Properties to set
33665
- * @returns ReadWrite instance
33666
- */
33667
- public static create(properties?: google.spanner.v1.TransactionOptions.IReadWrite): google.spanner.v1.TransactionOptions.ReadWrite;
33813
+ /** Tablet skip */
33814
+ skip?: (boolean|null);
33815
+ }
33668
33816
 
33669
- /**
33670
- * Encodes the specified ReadWrite message. Does not implicitly {@link google.spanner.v1.TransactionOptions.ReadWrite.verify|verify} messages.
33671
- * @param message ReadWrite message or plain object to encode
33672
- * @param [writer] Writer to encode to
33673
- * @returns Writer
33674
- */
33675
- public static encode(message: google.spanner.v1.TransactionOptions.IReadWrite, writer?: $protobuf.Writer): $protobuf.Writer;
33817
+ /** Represents a Tablet. */
33818
+ class Tablet implements ITablet {
33676
33819
 
33677
- /**
33678
- * Encodes the specified ReadWrite message, length delimited. Does not implicitly {@link google.spanner.v1.TransactionOptions.ReadWrite.verify|verify} messages.
33679
- * @param message ReadWrite message or plain object to encode
33680
- * @param [writer] Writer to encode to
33681
- * @returns Writer
33682
- */
33683
- public static encodeDelimited(message: google.spanner.v1.TransactionOptions.IReadWrite, writer?: $protobuf.Writer): $protobuf.Writer;
33684
-
33685
- /**
33686
- * Decodes a ReadWrite message from the specified reader or buffer.
33687
- * @param reader Reader or buffer to decode from
33688
- * @param [length] Message length if known beforehand
33689
- * @returns ReadWrite
33690
- * @throws {Error} If the payload is not a reader or valid buffer
33691
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
33692
- */
33693
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.TransactionOptions.ReadWrite;
33694
-
33695
- /**
33696
- * Decodes a ReadWrite message from the specified reader or buffer, length delimited.
33697
- * @param reader Reader or buffer to decode from
33698
- * @returns ReadWrite
33699
- * @throws {Error} If the payload is not a reader or valid buffer
33700
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
33701
- */
33702
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.TransactionOptions.ReadWrite;
33703
-
33704
- /**
33705
- * Verifies a ReadWrite message.
33706
- * @param message Plain object to verify
33707
- * @returns `null` if valid, otherwise the reason why it is not
33708
- */
33709
- public static verify(message: { [k: string]: any }): (string|null);
33820
+ /**
33821
+ * Constructs a new Tablet.
33822
+ * @param [properties] Properties to set
33823
+ */
33824
+ constructor(properties?: google.spanner.v1.ITablet);
33710
33825
 
33711
- /**
33712
- * Creates a ReadWrite message from a plain object. Also converts values to their respective internal types.
33713
- * @param object Plain object
33714
- * @returns ReadWrite
33715
- */
33716
- public static fromObject(object: { [k: string]: any }): google.spanner.v1.TransactionOptions.ReadWrite;
33826
+ /** Tablet tabletUid. */
33827
+ public tabletUid: (number|Long|string);
33717
33828
 
33718
- /**
33719
- * Creates a plain object from a ReadWrite message. Also converts values to other types if specified.
33720
- * @param message ReadWrite
33721
- * @param [options] Conversion options
33722
- * @returns Plain object
33723
- */
33724
- public static toObject(message: google.spanner.v1.TransactionOptions.ReadWrite, options?: $protobuf.IConversionOptions): { [k: string]: any };
33829
+ /** Tablet serverAddress. */
33830
+ public serverAddress: string;
33725
33831
 
33726
- /**
33727
- * Converts this ReadWrite to JSON.
33728
- * @returns JSON object
33729
- */
33730
- public toJSON(): { [k: string]: any };
33832
+ /** Tablet location. */
33833
+ public location: string;
33731
33834
 
33732
- /**
33733
- * Gets the default type url for ReadWrite
33734
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
33735
- * @returns The default type url
33736
- */
33737
- public static getTypeUrl(typeUrlPrefix?: string): string;
33738
- }
33835
+ /** Tablet role. */
33836
+ public role: (google.spanner.v1.Tablet.Role|keyof typeof google.spanner.v1.Tablet.Role);
33739
33837
 
33740
- namespace ReadWrite {
33838
+ /** Tablet incarnation. */
33839
+ public incarnation: (Uint8Array|Buffer|string);
33741
33840
 
33742
- /** ReadLockMode enum. */
33743
- enum ReadLockMode {
33744
- READ_LOCK_MODE_UNSPECIFIED = 0,
33745
- PESSIMISTIC = 1,
33746
- OPTIMISTIC = 2
33747
- }
33748
- }
33841
+ /** Tablet distance. */
33842
+ public distance: number;
33749
33843
 
33750
- /** Properties of a PartitionedDml. */
33751
- interface IPartitionedDml {
33752
- }
33844
+ /** Tablet skip. */
33845
+ public skip: boolean;
33753
33846
 
33754
- /** Represents a PartitionedDml. */
33755
- class PartitionedDml implements IPartitionedDml {
33847
+ /**
33848
+ * Creates a new Tablet instance using the specified properties.
33849
+ * @param [properties] Properties to set
33850
+ * @returns Tablet instance
33851
+ */
33852
+ public static create(properties?: google.spanner.v1.ITablet): google.spanner.v1.Tablet;
33756
33853
 
33757
- /**
33758
- * Constructs a new PartitionedDml.
33759
- * @param [properties] Properties to set
33760
- */
33761
- constructor(properties?: google.spanner.v1.TransactionOptions.IPartitionedDml);
33854
+ /**
33855
+ * Encodes the specified Tablet message. Does not implicitly {@link google.spanner.v1.Tablet.verify|verify} messages.
33856
+ * @param message Tablet message or plain object to encode
33857
+ * @param [writer] Writer to encode to
33858
+ * @returns Writer
33859
+ */
33860
+ public static encode(message: google.spanner.v1.ITablet, writer?: $protobuf.Writer): $protobuf.Writer;
33762
33861
 
33763
- /**
33764
- * Creates a new PartitionedDml instance using the specified properties.
33765
- * @param [properties] Properties to set
33766
- * @returns PartitionedDml instance
33767
- */
33768
- public static create(properties?: google.spanner.v1.TransactionOptions.IPartitionedDml): google.spanner.v1.TransactionOptions.PartitionedDml;
33862
+ /**
33863
+ * Encodes the specified Tablet message, length delimited. Does not implicitly {@link google.spanner.v1.Tablet.verify|verify} messages.
33864
+ * @param message Tablet message or plain object to encode
33865
+ * @param [writer] Writer to encode to
33866
+ * @returns Writer
33867
+ */
33868
+ public static encodeDelimited(message: google.spanner.v1.ITablet, writer?: $protobuf.Writer): $protobuf.Writer;
33769
33869
 
33770
- /**
33771
- * Encodes the specified PartitionedDml message. Does not implicitly {@link google.spanner.v1.TransactionOptions.PartitionedDml.verify|verify} messages.
33772
- * @param message PartitionedDml message or plain object to encode
33773
- * @param [writer] Writer to encode to
33774
- * @returns Writer
33775
- */
33776
- public static encode(message: google.spanner.v1.TransactionOptions.IPartitionedDml, writer?: $protobuf.Writer): $protobuf.Writer;
33870
+ /**
33871
+ * Decodes a Tablet message from the specified reader or buffer.
33872
+ * @param reader Reader or buffer to decode from
33873
+ * @param [length] Message length if known beforehand
33874
+ * @returns Tablet
33875
+ * @throws {Error} If the payload is not a reader or valid buffer
33876
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
33877
+ */
33878
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.Tablet;
33777
33879
 
33778
- /**
33779
- * Encodes the specified PartitionedDml message, length delimited. Does not implicitly {@link google.spanner.v1.TransactionOptions.PartitionedDml.verify|verify} messages.
33780
- * @param message PartitionedDml message or plain object to encode
33781
- * @param [writer] Writer to encode to
33782
- * @returns Writer
33783
- */
33784
- public static encodeDelimited(message: google.spanner.v1.TransactionOptions.IPartitionedDml, writer?: $protobuf.Writer): $protobuf.Writer;
33880
+ /**
33881
+ * Decodes a Tablet message from the specified reader or buffer, length delimited.
33882
+ * @param reader Reader or buffer to decode from
33883
+ * @returns Tablet
33884
+ * @throws {Error} If the payload is not a reader or valid buffer
33885
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
33886
+ */
33887
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.Tablet;
33785
33888
 
33786
- /**
33787
- * Decodes a PartitionedDml message from the specified reader or buffer.
33788
- * @param reader Reader or buffer to decode from
33789
- * @param [length] Message length if known beforehand
33790
- * @returns PartitionedDml
33791
- * @throws {Error} If the payload is not a reader or valid buffer
33792
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
33793
- */
33794
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.TransactionOptions.PartitionedDml;
33889
+ /**
33890
+ * Verifies a Tablet message.
33891
+ * @param message Plain object to verify
33892
+ * @returns `null` if valid, otherwise the reason why it is not
33893
+ */
33894
+ public static verify(message: { [k: string]: any }): (string|null);
33795
33895
 
33796
- /**
33797
- * Decodes a PartitionedDml message from the specified reader or buffer, length delimited.
33798
- * @param reader Reader or buffer to decode from
33799
- * @returns PartitionedDml
33800
- * @throws {Error} If the payload is not a reader or valid buffer
33801
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
33802
- */
33803
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.TransactionOptions.PartitionedDml;
33896
+ /**
33897
+ * Creates a Tablet message from a plain object. Also converts values to their respective internal types.
33898
+ * @param object Plain object
33899
+ * @returns Tablet
33900
+ */
33901
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.Tablet;
33804
33902
 
33805
- /**
33806
- * Verifies a PartitionedDml message.
33807
- * @param message Plain object to verify
33808
- * @returns `null` if valid, otherwise the reason why it is not
33809
- */
33810
- public static verify(message: { [k: string]: any }): (string|null);
33903
+ /**
33904
+ * Creates a plain object from a Tablet message. Also converts values to other types if specified.
33905
+ * @param message Tablet
33906
+ * @param [options] Conversion options
33907
+ * @returns Plain object
33908
+ */
33909
+ public static toObject(message: google.spanner.v1.Tablet, options?: $protobuf.IConversionOptions): { [k: string]: any };
33811
33910
 
33812
- /**
33813
- * Creates a PartitionedDml message from a plain object. Also converts values to their respective internal types.
33814
- * @param object Plain object
33815
- * @returns PartitionedDml
33816
- */
33817
- public static fromObject(object: { [k: string]: any }): google.spanner.v1.TransactionOptions.PartitionedDml;
33911
+ /**
33912
+ * Converts this Tablet to JSON.
33913
+ * @returns JSON object
33914
+ */
33915
+ public toJSON(): { [k: string]: any };
33818
33916
 
33819
- /**
33820
- * Creates a plain object from a PartitionedDml message. Also converts values to other types if specified.
33821
- * @param message PartitionedDml
33822
- * @param [options] Conversion options
33823
- * @returns Plain object
33824
- */
33825
- public static toObject(message: google.spanner.v1.TransactionOptions.PartitionedDml, options?: $protobuf.IConversionOptions): { [k: string]: any };
33917
+ /**
33918
+ * Gets the default type url for Tablet
33919
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
33920
+ * @returns The default type url
33921
+ */
33922
+ public static getTypeUrl(typeUrlPrefix?: string): string;
33923
+ }
33826
33924
 
33827
- /**
33828
- * Converts this PartitionedDml to JSON.
33829
- * @returns JSON object
33830
- */
33831
- public toJSON(): { [k: string]: any };
33925
+ namespace Tablet {
33832
33926
 
33833
- /**
33834
- * Gets the default type url for PartitionedDml
33835
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
33836
- * @returns The default type url
33837
- */
33838
- public static getTypeUrl(typeUrlPrefix?: string): string;
33927
+ /** Role enum. */
33928
+ enum Role {
33929
+ ROLE_UNSPECIFIED = 0,
33930
+ READ_WRITE = 1,
33931
+ READ_ONLY = 2
33839
33932
  }
33933
+ }
33840
33934
 
33841
- /** Properties of a ReadOnly. */
33842
- interface IReadOnly {
33843
-
33844
- /** ReadOnly strong */
33845
- strong?: (boolean|null);
33846
-
33847
- /** ReadOnly minReadTimestamp */
33848
- minReadTimestamp?: (google.protobuf.ITimestamp|null);
33849
-
33850
- /** ReadOnly maxStaleness */
33851
- maxStaleness?: (google.protobuf.IDuration|null);
33852
-
33853
- /** ReadOnly readTimestamp */
33854
- readTimestamp?: (google.protobuf.ITimestamp|null);
33855
-
33856
- /** ReadOnly exactStaleness */
33857
- exactStaleness?: (google.protobuf.IDuration|null);
33858
-
33859
- /** ReadOnly returnReadTimestamp */
33860
- returnReadTimestamp?: (boolean|null);
33861
- }
33935
+ /** Properties of a Group. */
33936
+ interface IGroup {
33862
33937
 
33863
- /** Represents a ReadOnly. */
33864
- class ReadOnly implements IReadOnly {
33938
+ /** Group groupUid */
33939
+ groupUid?: (number|Long|string|null);
33865
33940
 
33866
- /**
33867
- * Constructs a new ReadOnly.
33868
- * @param [properties] Properties to set
33869
- */
33870
- constructor(properties?: google.spanner.v1.TransactionOptions.IReadOnly);
33941
+ /** Group tablets */
33942
+ tablets?: (google.spanner.v1.ITablet[]|null);
33871
33943
 
33872
- /** ReadOnly strong. */
33873
- public strong?: (boolean|null);
33944
+ /** Group leaderIndex */
33945
+ leaderIndex?: (number|null);
33874
33946
 
33875
- /** ReadOnly minReadTimestamp. */
33876
- public minReadTimestamp?: (google.protobuf.ITimestamp|null);
33947
+ /** Group generation */
33948
+ generation?: (Uint8Array|Buffer|string|null);
33949
+ }
33877
33950
 
33878
- /** ReadOnly maxStaleness. */
33879
- public maxStaleness?: (google.protobuf.IDuration|null);
33951
+ /** Represents a Group. */
33952
+ class Group implements IGroup {
33880
33953
 
33881
- /** ReadOnly readTimestamp. */
33882
- public readTimestamp?: (google.protobuf.ITimestamp|null);
33954
+ /**
33955
+ * Constructs a new Group.
33956
+ * @param [properties] Properties to set
33957
+ */
33958
+ constructor(properties?: google.spanner.v1.IGroup);
33883
33959
 
33884
- /** ReadOnly exactStaleness. */
33885
- public exactStaleness?: (google.protobuf.IDuration|null);
33960
+ /** Group groupUid. */
33961
+ public groupUid: (number|Long|string);
33886
33962
 
33887
- /** ReadOnly returnReadTimestamp. */
33888
- public returnReadTimestamp: boolean;
33963
+ /** Group tablets. */
33964
+ public tablets: google.spanner.v1.ITablet[];
33889
33965
 
33890
- /** ReadOnly timestampBound. */
33891
- public timestampBound?: ("strong"|"minReadTimestamp"|"maxStaleness"|"readTimestamp"|"exactStaleness");
33966
+ /** Group leaderIndex. */
33967
+ public leaderIndex: number;
33892
33968
 
33893
- /**
33894
- * Creates a new ReadOnly instance using the specified properties.
33895
- * @param [properties] Properties to set
33896
- * @returns ReadOnly instance
33897
- */
33898
- public static create(properties?: google.spanner.v1.TransactionOptions.IReadOnly): google.spanner.v1.TransactionOptions.ReadOnly;
33969
+ /** Group generation. */
33970
+ public generation: (Uint8Array|Buffer|string);
33899
33971
 
33900
- /**
33901
- * Encodes the specified ReadOnly message. Does not implicitly {@link google.spanner.v1.TransactionOptions.ReadOnly.verify|verify} messages.
33902
- * @param message ReadOnly message or plain object to encode
33903
- * @param [writer] Writer to encode to
33904
- * @returns Writer
33905
- */
33906
- public static encode(message: google.spanner.v1.TransactionOptions.IReadOnly, writer?: $protobuf.Writer): $protobuf.Writer;
33972
+ /**
33973
+ * Creates a new Group instance using the specified properties.
33974
+ * @param [properties] Properties to set
33975
+ * @returns Group instance
33976
+ */
33977
+ public static create(properties?: google.spanner.v1.IGroup): google.spanner.v1.Group;
33907
33978
 
33908
- /**
33909
- * Encodes the specified ReadOnly message, length delimited. Does not implicitly {@link google.spanner.v1.TransactionOptions.ReadOnly.verify|verify} messages.
33910
- * @param message ReadOnly message or plain object to encode
33911
- * @param [writer] Writer to encode to
33912
- * @returns Writer
33913
- */
33914
- public static encodeDelimited(message: google.spanner.v1.TransactionOptions.IReadOnly, writer?: $protobuf.Writer): $protobuf.Writer;
33979
+ /**
33980
+ * Encodes the specified Group message. Does not implicitly {@link google.spanner.v1.Group.verify|verify} messages.
33981
+ * @param message Group message or plain object to encode
33982
+ * @param [writer] Writer to encode to
33983
+ * @returns Writer
33984
+ */
33985
+ public static encode(message: google.spanner.v1.IGroup, writer?: $protobuf.Writer): $protobuf.Writer;
33915
33986
 
33916
- /**
33917
- * Decodes a ReadOnly message from the specified reader or buffer.
33918
- * @param reader Reader or buffer to decode from
33919
- * @param [length] Message length if known beforehand
33920
- * @returns ReadOnly
33921
- * @throws {Error} If the payload is not a reader or valid buffer
33922
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
33923
- */
33924
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.TransactionOptions.ReadOnly;
33987
+ /**
33988
+ * Encodes the specified Group message, length delimited. Does not implicitly {@link google.spanner.v1.Group.verify|verify} messages.
33989
+ * @param message Group message or plain object to encode
33990
+ * @param [writer] Writer to encode to
33991
+ * @returns Writer
33992
+ */
33993
+ public static encodeDelimited(message: google.spanner.v1.IGroup, writer?: $protobuf.Writer): $protobuf.Writer;
33925
33994
 
33926
- /**
33927
- * Decodes a ReadOnly message from the specified reader or buffer, length delimited.
33928
- * @param reader Reader or buffer to decode from
33929
- * @returns ReadOnly
33930
- * @throws {Error} If the payload is not a reader or valid buffer
33931
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
33932
- */
33933
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.TransactionOptions.ReadOnly;
33995
+ /**
33996
+ * Decodes a Group message from the specified reader or buffer.
33997
+ * @param reader Reader or buffer to decode from
33998
+ * @param [length] Message length if known beforehand
33999
+ * @returns Group
34000
+ * @throws {Error} If the payload is not a reader or valid buffer
34001
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
34002
+ */
34003
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.Group;
33934
34004
 
33935
- /**
33936
- * Verifies a ReadOnly message.
33937
- * @param message Plain object to verify
33938
- * @returns `null` if valid, otherwise the reason why it is not
33939
- */
33940
- public static verify(message: { [k: string]: any }): (string|null);
34005
+ /**
34006
+ * Decodes a Group message from the specified reader or buffer, length delimited.
34007
+ * @param reader Reader or buffer to decode from
34008
+ * @returns Group
34009
+ * @throws {Error} If the payload is not a reader or valid buffer
34010
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
34011
+ */
34012
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.Group;
33941
34013
 
33942
- /**
33943
- * Creates a ReadOnly message from a plain object. Also converts values to their respective internal types.
33944
- * @param object Plain object
33945
- * @returns ReadOnly
33946
- */
33947
- public static fromObject(object: { [k: string]: any }): google.spanner.v1.TransactionOptions.ReadOnly;
34014
+ /**
34015
+ * Verifies a Group message.
34016
+ * @param message Plain object to verify
34017
+ * @returns `null` if valid, otherwise the reason why it is not
34018
+ */
34019
+ public static verify(message: { [k: string]: any }): (string|null);
33948
34020
 
33949
- /**
33950
- * Creates a plain object from a ReadOnly message. Also converts values to other types if specified.
33951
- * @param message ReadOnly
33952
- * @param [options] Conversion options
33953
- * @returns Plain object
33954
- */
33955
- public static toObject(message: google.spanner.v1.TransactionOptions.ReadOnly, options?: $protobuf.IConversionOptions): { [k: string]: any };
34021
+ /**
34022
+ * Creates a Group message from a plain object. Also converts values to their respective internal types.
34023
+ * @param object Plain object
34024
+ * @returns Group
34025
+ */
34026
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.Group;
33956
34027
 
33957
- /**
33958
- * Converts this ReadOnly to JSON.
33959
- * @returns JSON object
33960
- */
33961
- public toJSON(): { [k: string]: any };
34028
+ /**
34029
+ * Creates a plain object from a Group message. Also converts values to other types if specified.
34030
+ * @param message Group
34031
+ * @param [options] Conversion options
34032
+ * @returns Plain object
34033
+ */
34034
+ public static toObject(message: google.spanner.v1.Group, options?: $protobuf.IConversionOptions): { [k: string]: any };
33962
34035
 
33963
- /**
33964
- * Gets the default type url for ReadOnly
33965
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
33966
- * @returns The default type url
33967
- */
33968
- public static getTypeUrl(typeUrlPrefix?: string): string;
33969
- }
34036
+ /**
34037
+ * Converts this Group to JSON.
34038
+ * @returns JSON object
34039
+ */
34040
+ public toJSON(): { [k: string]: any };
33970
34041
 
33971
- /** IsolationLevel enum. */
33972
- enum IsolationLevel {
33973
- ISOLATION_LEVEL_UNSPECIFIED = 0,
33974
- SERIALIZABLE = 1,
33975
- REPEATABLE_READ = 2
33976
- }
34042
+ /**
34043
+ * Gets the default type url for Group
34044
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
34045
+ * @returns The default type url
34046
+ */
34047
+ public static getTypeUrl(typeUrlPrefix?: string): string;
33977
34048
  }
33978
34049
 
33979
- /** Properties of a Transaction. */
33980
- interface ITransaction {
34050
+ /** Properties of a KeyRecipe. */
34051
+ interface IKeyRecipe {
33981
34052
 
33982
- /** Transaction id */
33983
- id?: (Uint8Array|Buffer|string|null);
34053
+ /** KeyRecipe tableName */
34054
+ tableName?: (string|null);
33984
34055
 
33985
- /** Transaction readTimestamp */
33986
- readTimestamp?: (google.protobuf.ITimestamp|null);
34056
+ /** KeyRecipe indexName */
34057
+ indexName?: (string|null);
33987
34058
 
33988
- /** Transaction precommitToken */
33989
- precommitToken?: (google.spanner.v1.IMultiplexedSessionPrecommitToken|null);
34059
+ /** KeyRecipe operationUid */
34060
+ operationUid?: (number|Long|string|null);
34061
+
34062
+ /** KeyRecipe part */
34063
+ part?: (google.spanner.v1.KeyRecipe.IPart[]|null);
33990
34064
  }
33991
34065
 
33992
- /** Represents a Transaction. */
33993
- class Transaction implements ITransaction {
34066
+ /** Represents a KeyRecipe. */
34067
+ class KeyRecipe implements IKeyRecipe {
33994
34068
 
33995
34069
  /**
33996
- * Constructs a new Transaction.
34070
+ * Constructs a new KeyRecipe.
33997
34071
  * @param [properties] Properties to set
33998
34072
  */
33999
- constructor(properties?: google.spanner.v1.ITransaction);
34073
+ constructor(properties?: google.spanner.v1.IKeyRecipe);
34000
34074
 
34001
- /** Transaction id. */
34002
- public id: (Uint8Array|Buffer|string);
34075
+ /** KeyRecipe tableName. */
34076
+ public tableName?: (string|null);
34003
34077
 
34004
- /** Transaction readTimestamp. */
34005
- public readTimestamp?: (google.protobuf.ITimestamp|null);
34078
+ /** KeyRecipe indexName. */
34079
+ public indexName?: (string|null);
34006
34080
 
34007
- /** Transaction precommitToken. */
34008
- public precommitToken?: (google.spanner.v1.IMultiplexedSessionPrecommitToken|null);
34081
+ /** KeyRecipe operationUid. */
34082
+ public operationUid?: (number|Long|string|null);
34083
+
34084
+ /** KeyRecipe part. */
34085
+ public part: google.spanner.v1.KeyRecipe.IPart[];
34086
+
34087
+ /** KeyRecipe target. */
34088
+ public target?: ("tableName"|"indexName"|"operationUid");
34009
34089
 
34010
34090
  /**
34011
- * Creates a new Transaction instance using the specified properties.
34091
+ * Creates a new KeyRecipe instance using the specified properties.
34012
34092
  * @param [properties] Properties to set
34013
- * @returns Transaction instance
34093
+ * @returns KeyRecipe instance
34014
34094
  */
34015
- public static create(properties?: google.spanner.v1.ITransaction): google.spanner.v1.Transaction;
34095
+ public static create(properties?: google.spanner.v1.IKeyRecipe): google.spanner.v1.KeyRecipe;
34016
34096
 
34017
34097
  /**
34018
- * Encodes the specified Transaction message. Does not implicitly {@link google.spanner.v1.Transaction.verify|verify} messages.
34019
- * @param message Transaction message or plain object to encode
34098
+ * Encodes the specified KeyRecipe message. Does not implicitly {@link google.spanner.v1.KeyRecipe.verify|verify} messages.
34099
+ * @param message KeyRecipe message or plain object to encode
34020
34100
  * @param [writer] Writer to encode to
34021
34101
  * @returns Writer
34022
34102
  */
34023
- public static encode(message: google.spanner.v1.ITransaction, writer?: $protobuf.Writer): $protobuf.Writer;
34103
+ public static encode(message: google.spanner.v1.IKeyRecipe, writer?: $protobuf.Writer): $protobuf.Writer;
34024
34104
 
34025
34105
  /**
34026
- * Encodes the specified Transaction message, length delimited. Does not implicitly {@link google.spanner.v1.Transaction.verify|verify} messages.
34027
- * @param message Transaction message or plain object to encode
34106
+ * Encodes the specified KeyRecipe message, length delimited. Does not implicitly {@link google.spanner.v1.KeyRecipe.verify|verify} messages.
34107
+ * @param message KeyRecipe message or plain object to encode
34028
34108
  * @param [writer] Writer to encode to
34029
34109
  * @returns Writer
34030
34110
  */
34031
- public static encodeDelimited(message: google.spanner.v1.ITransaction, writer?: $protobuf.Writer): $protobuf.Writer;
34111
+ public static encodeDelimited(message: google.spanner.v1.IKeyRecipe, writer?: $protobuf.Writer): $protobuf.Writer;
34032
34112
 
34033
34113
  /**
34034
- * Decodes a Transaction message from the specified reader or buffer.
34114
+ * Decodes a KeyRecipe message from the specified reader or buffer.
34035
34115
  * @param reader Reader or buffer to decode from
34036
34116
  * @param [length] Message length if known beforehand
34037
- * @returns Transaction
34117
+ * @returns KeyRecipe
34038
34118
  * @throws {Error} If the payload is not a reader or valid buffer
34039
34119
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
34040
34120
  */
34041
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.Transaction;
34121
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.KeyRecipe;
34042
34122
 
34043
34123
  /**
34044
- * Decodes a Transaction message from the specified reader or buffer, length delimited.
34124
+ * Decodes a KeyRecipe message from the specified reader or buffer, length delimited.
34045
34125
  * @param reader Reader or buffer to decode from
34046
- * @returns Transaction
34126
+ * @returns KeyRecipe
34047
34127
  * @throws {Error} If the payload is not a reader or valid buffer
34048
34128
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
34049
34129
  */
34050
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.Transaction;
34130
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.KeyRecipe;
34051
34131
 
34052
34132
  /**
34053
- * Verifies a Transaction message.
34133
+ * Verifies a KeyRecipe message.
34054
34134
  * @param message Plain object to verify
34055
34135
  * @returns `null` if valid, otherwise the reason why it is not
34056
34136
  */
34057
34137
  public static verify(message: { [k: string]: any }): (string|null);
34058
34138
 
34059
34139
  /**
34060
- * Creates a Transaction message from a plain object. Also converts values to their respective internal types.
34140
+ * Creates a KeyRecipe message from a plain object. Also converts values to their respective internal types.
34061
34141
  * @param object Plain object
34062
- * @returns Transaction
34142
+ * @returns KeyRecipe
34063
34143
  */
34064
- public static fromObject(object: { [k: string]: any }): google.spanner.v1.Transaction;
34144
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.KeyRecipe;
34065
34145
 
34066
34146
  /**
34067
- * Creates a plain object from a Transaction message. Also converts values to other types if specified.
34068
- * @param message Transaction
34147
+ * Creates a plain object from a KeyRecipe message. Also converts values to other types if specified.
34148
+ * @param message KeyRecipe
34069
34149
  * @param [options] Conversion options
34070
34150
  * @returns Plain object
34071
34151
  */
34072
- public static toObject(message: google.spanner.v1.Transaction, options?: $protobuf.IConversionOptions): { [k: string]: any };
34152
+ public static toObject(message: google.spanner.v1.KeyRecipe, options?: $protobuf.IConversionOptions): { [k: string]: any };
34073
34153
 
34074
34154
  /**
34075
- * Converts this Transaction to JSON.
34155
+ * Converts this KeyRecipe to JSON.
34076
34156
  * @returns JSON object
34077
34157
  */
34078
34158
  public toJSON(): { [k: string]: any };
34079
34159
 
34080
34160
  /**
34081
- * Gets the default type url for Transaction
34161
+ * Gets the default type url for KeyRecipe
34082
34162
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
34083
34163
  * @returns The default type url
34084
34164
  */
34085
34165
  public static getTypeUrl(typeUrlPrefix?: string): string;
34086
34166
  }
34087
34167
 
34088
- /** Properties of a TransactionSelector. */
34089
- interface ITransactionSelector {
34168
+ namespace KeyRecipe {
34090
34169
 
34091
- /** TransactionSelector singleUse */
34092
- singleUse?: (google.spanner.v1.ITransactionOptions|null);
34170
+ /** Properties of a Part. */
34171
+ interface IPart {
34093
34172
 
34094
- /** TransactionSelector id */
34095
- id?: (Uint8Array|Buffer|string|null);
34173
+ /** Part tag */
34174
+ tag?: (number|null);
34096
34175
 
34097
- /** TransactionSelector begin */
34098
- begin?: (google.spanner.v1.ITransactionOptions|null);
34099
- }
34176
+ /** Part order */
34177
+ order?: (google.spanner.v1.KeyRecipe.Part.Order|keyof typeof google.spanner.v1.KeyRecipe.Part.Order|null);
34100
34178
 
34101
- /** Represents a TransactionSelector. */
34102
- class TransactionSelector implements ITransactionSelector {
34179
+ /** Part nullOrder */
34180
+ nullOrder?: (google.spanner.v1.KeyRecipe.Part.NullOrder|keyof typeof google.spanner.v1.KeyRecipe.Part.NullOrder|null);
34103
34181
 
34104
- /**
34105
- * Constructs a new TransactionSelector.
34106
- * @param [properties] Properties to set
34107
- */
34108
- constructor(properties?: google.spanner.v1.ITransactionSelector);
34182
+ /** Part type */
34183
+ type?: (google.spanner.v1.IType|null);
34109
34184
 
34110
- /** TransactionSelector singleUse. */
34111
- public singleUse?: (google.spanner.v1.ITransactionOptions|null);
34185
+ /** Part identifier */
34186
+ identifier?: (string|null);
34112
34187
 
34113
- /** TransactionSelector id. */
34114
- public id?: (Uint8Array|Buffer|string|null);
34188
+ /** Part value */
34189
+ value?: (google.protobuf.IValue|null);
34115
34190
 
34116
- /** TransactionSelector begin. */
34117
- public begin?: (google.spanner.v1.ITransactionOptions|null);
34191
+ /** Part random */
34192
+ random?: (boolean|null);
34118
34193
 
34119
- /** TransactionSelector selector. */
34120
- public selector?: ("singleUse"|"id"|"begin");
34194
+ /** Part structIdentifiers */
34195
+ structIdentifiers?: (number[]|null);
34196
+ }
34121
34197
 
34122
- /**
34123
- * Creates a new TransactionSelector instance using the specified properties.
34124
- * @param [properties] Properties to set
34125
- * @returns TransactionSelector instance
34126
- */
34127
- public static create(properties?: google.spanner.v1.ITransactionSelector): google.spanner.v1.TransactionSelector;
34198
+ /** Represents a Part. */
34199
+ class Part implements IPart {
34128
34200
 
34129
- /**
34130
- * Encodes the specified TransactionSelector message. Does not implicitly {@link google.spanner.v1.TransactionSelector.verify|verify} messages.
34131
- * @param message TransactionSelector message or plain object to encode
34132
- * @param [writer] Writer to encode to
34133
- * @returns Writer
34134
- */
34135
- public static encode(message: google.spanner.v1.ITransactionSelector, writer?: $protobuf.Writer): $protobuf.Writer;
34201
+ /**
34202
+ * Constructs a new Part.
34203
+ * @param [properties] Properties to set
34204
+ */
34205
+ constructor(properties?: google.spanner.v1.KeyRecipe.IPart);
34136
34206
 
34137
- /**
34138
- * Encodes the specified TransactionSelector message, length delimited. Does not implicitly {@link google.spanner.v1.TransactionSelector.verify|verify} messages.
34139
- * @param message TransactionSelector message or plain object to encode
34140
- * @param [writer] Writer to encode to
34141
- * @returns Writer
34142
- */
34143
- public static encodeDelimited(message: google.spanner.v1.ITransactionSelector, writer?: $protobuf.Writer): $protobuf.Writer;
34207
+ /** Part tag. */
34208
+ public tag: number;
34144
34209
 
34145
- /**
34146
- * Decodes a TransactionSelector message from the specified reader or buffer.
34147
- * @param reader Reader or buffer to decode from
34148
- * @param [length] Message length if known beforehand
34149
- * @returns TransactionSelector
34150
- * @throws {Error} If the payload is not a reader or valid buffer
34151
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
34152
- */
34153
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.TransactionSelector;
34210
+ /** Part order. */
34211
+ public order: (google.spanner.v1.KeyRecipe.Part.Order|keyof typeof google.spanner.v1.KeyRecipe.Part.Order);
34154
34212
 
34155
- /**
34156
- * Decodes a TransactionSelector message from the specified reader or buffer, length delimited.
34157
- * @param reader Reader or buffer to decode from
34158
- * @returns TransactionSelector
34159
- * @throws {Error} If the payload is not a reader or valid buffer
34160
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
34161
- */
34162
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.TransactionSelector;
34213
+ /** Part nullOrder. */
34214
+ public nullOrder: (google.spanner.v1.KeyRecipe.Part.NullOrder|keyof typeof google.spanner.v1.KeyRecipe.Part.NullOrder);
34163
34215
 
34164
- /**
34165
- * Verifies a TransactionSelector message.
34166
- * @param message Plain object to verify
34167
- * @returns `null` if valid, otherwise the reason why it is not
34168
- */
34169
- public static verify(message: { [k: string]: any }): (string|null);
34216
+ /** Part type. */
34217
+ public type?: (google.spanner.v1.IType|null);
34170
34218
 
34171
- /**
34172
- * Creates a TransactionSelector message from a plain object. Also converts values to their respective internal types.
34173
- * @param object Plain object
34174
- * @returns TransactionSelector
34175
- */
34176
- public static fromObject(object: { [k: string]: any }): google.spanner.v1.TransactionSelector;
34219
+ /** Part identifier. */
34220
+ public identifier?: (string|null);
34177
34221
 
34178
- /**
34179
- * Creates a plain object from a TransactionSelector message. Also converts values to other types if specified.
34180
- * @param message TransactionSelector
34181
- * @param [options] Conversion options
34182
- * @returns Plain object
34183
- */
34184
- public static toObject(message: google.spanner.v1.TransactionSelector, options?: $protobuf.IConversionOptions): { [k: string]: any };
34222
+ /** Part value. */
34223
+ public value?: (google.protobuf.IValue|null);
34224
+
34225
+ /** Part random. */
34226
+ public random?: (boolean|null);
34227
+
34228
+ /** Part structIdentifiers. */
34229
+ public structIdentifiers: number[];
34230
+
34231
+ /** Part valueType. */
34232
+ public valueType?: ("identifier"|"value"|"random");
34233
+
34234
+ /**
34235
+ * Creates a new Part instance using the specified properties.
34236
+ * @param [properties] Properties to set
34237
+ * @returns Part instance
34238
+ */
34239
+ public static create(properties?: google.spanner.v1.KeyRecipe.IPart): google.spanner.v1.KeyRecipe.Part;
34240
+
34241
+ /**
34242
+ * Encodes the specified Part message. Does not implicitly {@link google.spanner.v1.KeyRecipe.Part.verify|verify} messages.
34243
+ * @param message Part message or plain object to encode
34244
+ * @param [writer] Writer to encode to
34245
+ * @returns Writer
34246
+ */
34247
+ public static encode(message: google.spanner.v1.KeyRecipe.IPart, writer?: $protobuf.Writer): $protobuf.Writer;
34248
+
34249
+ /**
34250
+ * Encodes the specified Part message, length delimited. Does not implicitly {@link google.spanner.v1.KeyRecipe.Part.verify|verify} messages.
34251
+ * @param message Part message or plain object to encode
34252
+ * @param [writer] Writer to encode to
34253
+ * @returns Writer
34254
+ */
34255
+ public static encodeDelimited(message: google.spanner.v1.KeyRecipe.IPart, writer?: $protobuf.Writer): $protobuf.Writer;
34256
+
34257
+ /**
34258
+ * Decodes a Part message from the specified reader or buffer.
34259
+ * @param reader Reader or buffer to decode from
34260
+ * @param [length] Message length if known beforehand
34261
+ * @returns Part
34262
+ * @throws {Error} If the payload is not a reader or valid buffer
34263
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
34264
+ */
34265
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.KeyRecipe.Part;
34266
+
34267
+ /**
34268
+ * Decodes a Part message from the specified reader or buffer, length delimited.
34269
+ * @param reader Reader or buffer to decode from
34270
+ * @returns Part
34271
+ * @throws {Error} If the payload is not a reader or valid buffer
34272
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
34273
+ */
34274
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.KeyRecipe.Part;
34275
+
34276
+ /**
34277
+ * Verifies a Part message.
34278
+ * @param message Plain object to verify
34279
+ * @returns `null` if valid, otherwise the reason why it is not
34280
+ */
34281
+ public static verify(message: { [k: string]: any }): (string|null);
34282
+
34283
+ /**
34284
+ * Creates a Part message from a plain object. Also converts values to their respective internal types.
34285
+ * @param object Plain object
34286
+ * @returns Part
34287
+ */
34288
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.KeyRecipe.Part;
34289
+
34290
+ /**
34291
+ * Creates a plain object from a Part message. Also converts values to other types if specified.
34292
+ * @param message Part
34293
+ * @param [options] Conversion options
34294
+ * @returns Plain object
34295
+ */
34296
+ public static toObject(message: google.spanner.v1.KeyRecipe.Part, options?: $protobuf.IConversionOptions): { [k: string]: any };
34297
+
34298
+ /**
34299
+ * Converts this Part to JSON.
34300
+ * @returns JSON object
34301
+ */
34302
+ public toJSON(): { [k: string]: any };
34303
+
34304
+ /**
34305
+ * Gets the default type url for Part
34306
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
34307
+ * @returns The default type url
34308
+ */
34309
+ public static getTypeUrl(typeUrlPrefix?: string): string;
34310
+ }
34311
+
34312
+ namespace Part {
34185
34313
 
34186
- /**
34187
- * Converts this TransactionSelector to JSON.
34188
- * @returns JSON object
34189
- */
34190
- public toJSON(): { [k: string]: any };
34314
+ /** Order enum. */
34315
+ enum Order {
34316
+ ORDER_UNSPECIFIED = 0,
34317
+ ASCENDING = 1,
34318
+ DESCENDING = 2
34319
+ }
34191
34320
 
34192
- /**
34193
- * Gets the default type url for TransactionSelector
34194
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
34195
- * @returns The default type url
34196
- */
34197
- public static getTypeUrl(typeUrlPrefix?: string): string;
34321
+ /** NullOrder enum. */
34322
+ enum NullOrder {
34323
+ NULL_ORDER_UNSPECIFIED = 0,
34324
+ NULLS_FIRST = 1,
34325
+ NULLS_LAST = 2,
34326
+ NOT_NULL = 3
34327
+ }
34328
+ }
34198
34329
  }
34199
34330
 
34200
- /** Properties of a MultiplexedSessionPrecommitToken. */
34201
- interface IMultiplexedSessionPrecommitToken {
34331
+ /** Properties of a RecipeList. */
34332
+ interface IRecipeList {
34202
34333
 
34203
- /** MultiplexedSessionPrecommitToken precommitToken */
34204
- precommitToken?: (Uint8Array|Buffer|string|null);
34334
+ /** RecipeList schemaGeneration */
34335
+ schemaGeneration?: (Uint8Array|Buffer|string|null);
34205
34336
 
34206
- /** MultiplexedSessionPrecommitToken seqNum */
34207
- seqNum?: (number|null);
34337
+ /** RecipeList recipe */
34338
+ recipe?: (google.spanner.v1.IKeyRecipe[]|null);
34208
34339
  }
34209
34340
 
34210
- /** Represents a MultiplexedSessionPrecommitToken. */
34211
- class MultiplexedSessionPrecommitToken implements IMultiplexedSessionPrecommitToken {
34341
+ /** Represents a RecipeList. */
34342
+ class RecipeList implements IRecipeList {
34212
34343
 
34213
34344
  /**
34214
- * Constructs a new MultiplexedSessionPrecommitToken.
34345
+ * Constructs a new RecipeList.
34215
34346
  * @param [properties] Properties to set
34216
34347
  */
34217
- constructor(properties?: google.spanner.v1.IMultiplexedSessionPrecommitToken);
34348
+ constructor(properties?: google.spanner.v1.IRecipeList);
34218
34349
 
34219
- /** MultiplexedSessionPrecommitToken precommitToken. */
34220
- public precommitToken: (Uint8Array|Buffer|string);
34350
+ /** RecipeList schemaGeneration. */
34351
+ public schemaGeneration: (Uint8Array|Buffer|string);
34221
34352
 
34222
- /** MultiplexedSessionPrecommitToken seqNum. */
34223
- public seqNum: number;
34353
+ /** RecipeList recipe. */
34354
+ public recipe: google.spanner.v1.IKeyRecipe[];
34224
34355
 
34225
34356
  /**
34226
- * Creates a new MultiplexedSessionPrecommitToken instance using the specified properties.
34357
+ * Creates a new RecipeList instance using the specified properties.
34227
34358
  * @param [properties] Properties to set
34228
- * @returns MultiplexedSessionPrecommitToken instance
34359
+ * @returns RecipeList instance
34229
34360
  */
34230
- public static create(properties?: google.spanner.v1.IMultiplexedSessionPrecommitToken): google.spanner.v1.MultiplexedSessionPrecommitToken;
34361
+ public static create(properties?: google.spanner.v1.IRecipeList): google.spanner.v1.RecipeList;
34231
34362
 
34232
34363
  /**
34233
- * Encodes the specified MultiplexedSessionPrecommitToken message. Does not implicitly {@link google.spanner.v1.MultiplexedSessionPrecommitToken.verify|verify} messages.
34234
- * @param message MultiplexedSessionPrecommitToken message or plain object to encode
34364
+ * Encodes the specified RecipeList message. Does not implicitly {@link google.spanner.v1.RecipeList.verify|verify} messages.
34365
+ * @param message RecipeList message or plain object to encode
34235
34366
  * @param [writer] Writer to encode to
34236
34367
  * @returns Writer
34237
34368
  */
34238
- public static encode(message: google.spanner.v1.IMultiplexedSessionPrecommitToken, writer?: $protobuf.Writer): $protobuf.Writer;
34369
+ public static encode(message: google.spanner.v1.IRecipeList, writer?: $protobuf.Writer): $protobuf.Writer;
34239
34370
 
34240
34371
  /**
34241
- * Encodes the specified MultiplexedSessionPrecommitToken message, length delimited. Does not implicitly {@link google.spanner.v1.MultiplexedSessionPrecommitToken.verify|verify} messages.
34242
- * @param message MultiplexedSessionPrecommitToken message or plain object to encode
34372
+ * Encodes the specified RecipeList message, length delimited. Does not implicitly {@link google.spanner.v1.RecipeList.verify|verify} messages.
34373
+ * @param message RecipeList message or plain object to encode
34243
34374
  * @param [writer] Writer to encode to
34244
34375
  * @returns Writer
34245
34376
  */
34246
- public static encodeDelimited(message: google.spanner.v1.IMultiplexedSessionPrecommitToken, writer?: $protobuf.Writer): $protobuf.Writer;
34377
+ public static encodeDelimited(message: google.spanner.v1.IRecipeList, writer?: $protobuf.Writer): $protobuf.Writer;
34247
34378
 
34248
34379
  /**
34249
- * Decodes a MultiplexedSessionPrecommitToken message from the specified reader or buffer.
34380
+ * Decodes a RecipeList message from the specified reader or buffer.
34250
34381
  * @param reader Reader or buffer to decode from
34251
34382
  * @param [length] Message length if known beforehand
34252
- * @returns MultiplexedSessionPrecommitToken
34383
+ * @returns RecipeList
34253
34384
  * @throws {Error} If the payload is not a reader or valid buffer
34254
34385
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
34255
34386
  */
34256
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.MultiplexedSessionPrecommitToken;
34387
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.RecipeList;
34257
34388
 
34258
34389
  /**
34259
- * Decodes a MultiplexedSessionPrecommitToken message from the specified reader or buffer, length delimited.
34390
+ * Decodes a RecipeList message from the specified reader or buffer, length delimited.
34260
34391
  * @param reader Reader or buffer to decode from
34261
- * @returns MultiplexedSessionPrecommitToken
34392
+ * @returns RecipeList
34262
34393
  * @throws {Error} If the payload is not a reader or valid buffer
34263
34394
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
34264
34395
  */
34265
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.MultiplexedSessionPrecommitToken;
34396
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.RecipeList;
34266
34397
 
34267
34398
  /**
34268
- * Verifies a MultiplexedSessionPrecommitToken message.
34399
+ * Verifies a RecipeList message.
34269
34400
  * @param message Plain object to verify
34270
34401
  * @returns `null` if valid, otherwise the reason why it is not
34271
34402
  */
34272
34403
  public static verify(message: { [k: string]: any }): (string|null);
34273
34404
 
34274
34405
  /**
34275
- * Creates a MultiplexedSessionPrecommitToken message from a plain object. Also converts values to their respective internal types.
34406
+ * Creates a RecipeList message from a plain object. Also converts values to their respective internal types.
34276
34407
  * @param object Plain object
34277
- * @returns MultiplexedSessionPrecommitToken
34408
+ * @returns RecipeList
34278
34409
  */
34279
- public static fromObject(object: { [k: string]: any }): google.spanner.v1.MultiplexedSessionPrecommitToken;
34410
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.RecipeList;
34280
34411
 
34281
34412
  /**
34282
- * Creates a plain object from a MultiplexedSessionPrecommitToken message. Also converts values to other types if specified.
34283
- * @param message MultiplexedSessionPrecommitToken
34413
+ * Creates a plain object from a RecipeList message. Also converts values to other types if specified.
34414
+ * @param message RecipeList
34284
34415
  * @param [options] Conversion options
34285
34416
  * @returns Plain object
34286
34417
  */
34287
- public static toObject(message: google.spanner.v1.MultiplexedSessionPrecommitToken, options?: $protobuf.IConversionOptions): { [k: string]: any };
34418
+ public static toObject(message: google.spanner.v1.RecipeList, options?: $protobuf.IConversionOptions): { [k: string]: any };
34288
34419
 
34289
34420
  /**
34290
- * Converts this MultiplexedSessionPrecommitToken to JSON.
34421
+ * Converts this RecipeList to JSON.
34291
34422
  * @returns JSON object
34292
34423
  */
34293
34424
  public toJSON(): { [k: string]: any };
34294
34425
 
34295
34426
  /**
34296
- * Gets the default type url for MultiplexedSessionPrecommitToken
34427
+ * Gets the default type url for RecipeList
34297
34428
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
34298
34429
  * @returns The default type url
34299
34430
  */
34300
34431
  public static getTypeUrl(typeUrlPrefix?: string): string;
34301
34432
  }
34302
34433
 
34303
- /** Properties of a KeyRange. */
34304
- interface IKeyRange {
34434
+ /** Properties of a CacheUpdate. */
34435
+ interface ICacheUpdate {
34305
34436
 
34306
- /** KeyRange startClosed */
34307
- startClosed?: (google.protobuf.IListValue|null);
34437
+ /** CacheUpdate databaseId */
34438
+ databaseId?: (number|Long|string|null);
34308
34439
 
34309
- /** KeyRange startOpen */
34310
- startOpen?: (google.protobuf.IListValue|null);
34440
+ /** CacheUpdate range */
34441
+ range?: (google.spanner.v1.IRange[]|null);
34311
34442
 
34312
- /** KeyRange endClosed */
34313
- endClosed?: (google.protobuf.IListValue|null);
34443
+ /** CacheUpdate group */
34444
+ group?: (google.spanner.v1.IGroup[]|null);
34314
34445
 
34315
- /** KeyRange endOpen */
34316
- endOpen?: (google.protobuf.IListValue|null);
34446
+ /** CacheUpdate keyRecipes */
34447
+ keyRecipes?: (google.spanner.v1.IRecipeList|null);
34317
34448
  }
34318
34449
 
34319
- /** Represents a KeyRange. */
34320
- class KeyRange implements IKeyRange {
34450
+ /** Represents a CacheUpdate. */
34451
+ class CacheUpdate implements ICacheUpdate {
34321
34452
 
34322
34453
  /**
34323
- * Constructs a new KeyRange.
34454
+ * Constructs a new CacheUpdate.
34324
34455
  * @param [properties] Properties to set
34325
34456
  */
34326
- constructor(properties?: google.spanner.v1.IKeyRange);
34327
-
34328
- /** KeyRange startClosed. */
34329
- public startClosed?: (google.protobuf.IListValue|null);
34330
-
34331
- /** KeyRange startOpen. */
34332
- public startOpen?: (google.protobuf.IListValue|null);
34457
+ constructor(properties?: google.spanner.v1.ICacheUpdate);
34333
34458
 
34334
- /** KeyRange endClosed. */
34335
- public endClosed?: (google.protobuf.IListValue|null);
34459
+ /** CacheUpdate databaseId. */
34460
+ public databaseId: (number|Long|string);
34336
34461
 
34337
- /** KeyRange endOpen. */
34338
- public endOpen?: (google.protobuf.IListValue|null);
34462
+ /** CacheUpdate range. */
34463
+ public range: google.spanner.v1.IRange[];
34339
34464
 
34340
- /** KeyRange startKeyType. */
34341
- public startKeyType?: ("startClosed"|"startOpen");
34465
+ /** CacheUpdate group. */
34466
+ public group: google.spanner.v1.IGroup[];
34342
34467
 
34343
- /** KeyRange endKeyType. */
34344
- public endKeyType?: ("endClosed"|"endOpen");
34468
+ /** CacheUpdate keyRecipes. */
34469
+ public keyRecipes?: (google.spanner.v1.IRecipeList|null);
34345
34470
 
34346
34471
  /**
34347
- * Creates a new KeyRange instance using the specified properties.
34472
+ * Creates a new CacheUpdate instance using the specified properties.
34348
34473
  * @param [properties] Properties to set
34349
- * @returns KeyRange instance
34474
+ * @returns CacheUpdate instance
34350
34475
  */
34351
- public static create(properties?: google.spanner.v1.IKeyRange): google.spanner.v1.KeyRange;
34476
+ public static create(properties?: google.spanner.v1.ICacheUpdate): google.spanner.v1.CacheUpdate;
34352
34477
 
34353
34478
  /**
34354
- * Encodes the specified KeyRange message. Does not implicitly {@link google.spanner.v1.KeyRange.verify|verify} messages.
34355
- * @param message KeyRange message or plain object to encode
34479
+ * Encodes the specified CacheUpdate message. Does not implicitly {@link google.spanner.v1.CacheUpdate.verify|verify} messages.
34480
+ * @param message CacheUpdate message or plain object to encode
34356
34481
  * @param [writer] Writer to encode to
34357
34482
  * @returns Writer
34358
34483
  */
34359
- public static encode(message: google.spanner.v1.IKeyRange, writer?: $protobuf.Writer): $protobuf.Writer;
34484
+ public static encode(message: google.spanner.v1.ICacheUpdate, writer?: $protobuf.Writer): $protobuf.Writer;
34360
34485
 
34361
34486
  /**
34362
- * Encodes the specified KeyRange message, length delimited. Does not implicitly {@link google.spanner.v1.KeyRange.verify|verify} messages.
34363
- * @param message KeyRange message or plain object to encode
34487
+ * Encodes the specified CacheUpdate message, length delimited. Does not implicitly {@link google.spanner.v1.CacheUpdate.verify|verify} messages.
34488
+ * @param message CacheUpdate message or plain object to encode
34364
34489
  * @param [writer] Writer to encode to
34365
34490
  * @returns Writer
34366
34491
  */
34367
- public static encodeDelimited(message: google.spanner.v1.IKeyRange, writer?: $protobuf.Writer): $protobuf.Writer;
34492
+ public static encodeDelimited(message: google.spanner.v1.ICacheUpdate, writer?: $protobuf.Writer): $protobuf.Writer;
34368
34493
 
34369
34494
  /**
34370
- * Decodes a KeyRange message from the specified reader or buffer.
34495
+ * Decodes a CacheUpdate message from the specified reader or buffer.
34371
34496
  * @param reader Reader or buffer to decode from
34372
34497
  * @param [length] Message length if known beforehand
34373
- * @returns KeyRange
34498
+ * @returns CacheUpdate
34374
34499
  * @throws {Error} If the payload is not a reader or valid buffer
34375
34500
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
34376
34501
  */
34377
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.KeyRange;
34502
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.CacheUpdate;
34378
34503
 
34379
34504
  /**
34380
- * Decodes a KeyRange message from the specified reader or buffer, length delimited.
34505
+ * Decodes a CacheUpdate message from the specified reader or buffer, length delimited.
34381
34506
  * @param reader Reader or buffer to decode from
34382
- * @returns KeyRange
34507
+ * @returns CacheUpdate
34383
34508
  * @throws {Error} If the payload is not a reader or valid buffer
34384
34509
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
34385
34510
  */
34386
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.KeyRange;
34511
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.CacheUpdate;
34387
34512
 
34388
34513
  /**
34389
- * Verifies a KeyRange message.
34514
+ * Verifies a CacheUpdate message.
34390
34515
  * @param message Plain object to verify
34391
34516
  * @returns `null` if valid, otherwise the reason why it is not
34392
34517
  */
34393
34518
  public static verify(message: { [k: string]: any }): (string|null);
34394
34519
 
34395
34520
  /**
34396
- * Creates a KeyRange message from a plain object. Also converts values to their respective internal types.
34521
+ * Creates a CacheUpdate message from a plain object. Also converts values to their respective internal types.
34397
34522
  * @param object Plain object
34398
- * @returns KeyRange
34523
+ * @returns CacheUpdate
34399
34524
  */
34400
- public static fromObject(object: { [k: string]: any }): google.spanner.v1.KeyRange;
34525
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.CacheUpdate;
34401
34526
 
34402
34527
  /**
34403
- * Creates a plain object from a KeyRange message. Also converts values to other types if specified.
34404
- * @param message KeyRange
34528
+ * Creates a plain object from a CacheUpdate message. Also converts values to other types if specified.
34529
+ * @param message CacheUpdate
34405
34530
  * @param [options] Conversion options
34406
34531
  * @returns Plain object
34407
34532
  */
34408
- public static toObject(message: google.spanner.v1.KeyRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
34533
+ public static toObject(message: google.spanner.v1.CacheUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any };
34409
34534
 
34410
34535
  /**
34411
- * Converts this KeyRange to JSON.
34536
+ * Converts this CacheUpdate to JSON.
34412
34537
  * @returns JSON object
34413
34538
  */
34414
34539
  public toJSON(): { [k: string]: any };
34415
34540
 
34416
34541
  /**
34417
- * Gets the default type url for KeyRange
34542
+ * Gets the default type url for CacheUpdate
34418
34543
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
34419
34544
  * @returns The default type url
34420
34545
  */
34421
34546
  public static getTypeUrl(typeUrlPrefix?: string): string;
34422
34547
  }
34423
34548
 
34424
- /** Properties of a KeySet. */
34425
- interface IKeySet {
34549
+ /** Properties of a RoutingHint. */
34550
+ interface IRoutingHint {
34426
34551
 
34427
- /** KeySet keys */
34428
- keys?: (google.protobuf.IListValue[]|null);
34552
+ /** RoutingHint operationUid */
34553
+ operationUid?: (number|Long|string|null);
34429
34554
 
34430
- /** KeySet ranges */
34431
- ranges?: (google.spanner.v1.IKeyRange[]|null);
34555
+ /** RoutingHint databaseId */
34556
+ databaseId?: (number|Long|string|null);
34432
34557
 
34433
- /** KeySet all */
34434
- all?: (boolean|null);
34558
+ /** RoutingHint schemaGeneration */
34559
+ schemaGeneration?: (Uint8Array|Buffer|string|null);
34560
+
34561
+ /** RoutingHint key */
34562
+ key?: (Uint8Array|Buffer|string|null);
34563
+
34564
+ /** RoutingHint limitKey */
34565
+ limitKey?: (Uint8Array|Buffer|string|null);
34566
+
34567
+ /** RoutingHint groupUid */
34568
+ groupUid?: (number|Long|string|null);
34569
+
34570
+ /** RoutingHint splitId */
34571
+ splitId?: (number|Long|string|null);
34572
+
34573
+ /** RoutingHint tabletUid */
34574
+ tabletUid?: (number|Long|string|null);
34575
+
34576
+ /** RoutingHint skippedTabletUid */
34577
+ skippedTabletUid?: (google.spanner.v1.RoutingHint.ISkippedTablet[]|null);
34578
+
34579
+ /** RoutingHint clientLocation */
34580
+ clientLocation?: (string|null);
34435
34581
  }
34436
34582
 
34437
- /** Represents a KeySet. */
34438
- class KeySet implements IKeySet {
34583
+ /** Represents a RoutingHint. */
34584
+ class RoutingHint implements IRoutingHint {
34585
+
34586
+ /**
34587
+ * Constructs a new RoutingHint.
34588
+ * @param [properties] Properties to set
34589
+ */
34590
+ constructor(properties?: google.spanner.v1.IRoutingHint);
34591
+
34592
+ /** RoutingHint operationUid. */
34593
+ public operationUid: (number|Long|string);
34594
+
34595
+ /** RoutingHint databaseId. */
34596
+ public databaseId: (number|Long|string);
34597
+
34598
+ /** RoutingHint schemaGeneration. */
34599
+ public schemaGeneration: (Uint8Array|Buffer|string);
34600
+
34601
+ /** RoutingHint key. */
34602
+ public key: (Uint8Array|Buffer|string);
34603
+
34604
+ /** RoutingHint limitKey. */
34605
+ public limitKey: (Uint8Array|Buffer|string);
34439
34606
 
34440
- /**
34441
- * Constructs a new KeySet.
34442
- * @param [properties] Properties to set
34443
- */
34444
- constructor(properties?: google.spanner.v1.IKeySet);
34607
+ /** RoutingHint groupUid. */
34608
+ public groupUid: (number|Long|string);
34445
34609
 
34446
- /** KeySet keys. */
34447
- public keys: google.protobuf.IListValue[];
34610
+ /** RoutingHint splitId. */
34611
+ public splitId: (number|Long|string);
34448
34612
 
34449
- /** KeySet ranges. */
34450
- public ranges: google.spanner.v1.IKeyRange[];
34613
+ /** RoutingHint tabletUid. */
34614
+ public tabletUid: (number|Long|string);
34451
34615
 
34452
- /** KeySet all. */
34453
- public all: boolean;
34616
+ /** RoutingHint skippedTabletUid. */
34617
+ public skippedTabletUid: google.spanner.v1.RoutingHint.ISkippedTablet[];
34618
+
34619
+ /** RoutingHint clientLocation. */
34620
+ public clientLocation: string;
34454
34621
 
34455
34622
  /**
34456
- * Creates a new KeySet instance using the specified properties.
34623
+ * Creates a new RoutingHint instance using the specified properties.
34457
34624
  * @param [properties] Properties to set
34458
- * @returns KeySet instance
34625
+ * @returns RoutingHint instance
34459
34626
  */
34460
- public static create(properties?: google.spanner.v1.IKeySet): google.spanner.v1.KeySet;
34627
+ public static create(properties?: google.spanner.v1.IRoutingHint): google.spanner.v1.RoutingHint;
34461
34628
 
34462
34629
  /**
34463
- * Encodes the specified KeySet message. Does not implicitly {@link google.spanner.v1.KeySet.verify|verify} messages.
34464
- * @param message KeySet message or plain object to encode
34630
+ * Encodes the specified RoutingHint message. Does not implicitly {@link google.spanner.v1.RoutingHint.verify|verify} messages.
34631
+ * @param message RoutingHint message or plain object to encode
34465
34632
  * @param [writer] Writer to encode to
34466
34633
  * @returns Writer
34467
34634
  */
34468
- public static encode(message: google.spanner.v1.IKeySet, writer?: $protobuf.Writer): $protobuf.Writer;
34635
+ public static encode(message: google.spanner.v1.IRoutingHint, writer?: $protobuf.Writer): $protobuf.Writer;
34469
34636
 
34470
34637
  /**
34471
- * Encodes the specified KeySet message, length delimited. Does not implicitly {@link google.spanner.v1.KeySet.verify|verify} messages.
34472
- * @param message KeySet message or plain object to encode
34638
+ * Encodes the specified RoutingHint message, length delimited. Does not implicitly {@link google.spanner.v1.RoutingHint.verify|verify} messages.
34639
+ * @param message RoutingHint message or plain object to encode
34473
34640
  * @param [writer] Writer to encode to
34474
34641
  * @returns Writer
34475
34642
  */
34476
- public static encodeDelimited(message: google.spanner.v1.IKeySet, writer?: $protobuf.Writer): $protobuf.Writer;
34643
+ public static encodeDelimited(message: google.spanner.v1.IRoutingHint, writer?: $protobuf.Writer): $protobuf.Writer;
34477
34644
 
34478
34645
  /**
34479
- * Decodes a KeySet message from the specified reader or buffer.
34646
+ * Decodes a RoutingHint message from the specified reader or buffer.
34480
34647
  * @param reader Reader or buffer to decode from
34481
34648
  * @param [length] Message length if known beforehand
34482
- * @returns KeySet
34649
+ * @returns RoutingHint
34483
34650
  * @throws {Error} If the payload is not a reader or valid buffer
34484
34651
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
34485
34652
  */
34486
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.KeySet;
34653
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.RoutingHint;
34487
34654
 
34488
34655
  /**
34489
- * Decodes a KeySet message from the specified reader or buffer, length delimited.
34656
+ * Decodes a RoutingHint message from the specified reader or buffer, length delimited.
34490
34657
  * @param reader Reader or buffer to decode from
34491
- * @returns KeySet
34658
+ * @returns RoutingHint
34492
34659
  * @throws {Error} If the payload is not a reader or valid buffer
34493
34660
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
34494
34661
  */
34495
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.KeySet;
34662
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.RoutingHint;
34496
34663
 
34497
34664
  /**
34498
- * Verifies a KeySet message.
34665
+ * Verifies a RoutingHint message.
34499
34666
  * @param message Plain object to verify
34500
34667
  * @returns `null` if valid, otherwise the reason why it is not
34501
34668
  */
34502
34669
  public static verify(message: { [k: string]: any }): (string|null);
34503
34670
 
34504
34671
  /**
34505
- * Creates a KeySet message from a plain object. Also converts values to their respective internal types.
34672
+ * Creates a RoutingHint message from a plain object. Also converts values to their respective internal types.
34506
34673
  * @param object Plain object
34507
- * @returns KeySet
34674
+ * @returns RoutingHint
34508
34675
  */
34509
- public static fromObject(object: { [k: string]: any }): google.spanner.v1.KeySet;
34676
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.RoutingHint;
34510
34677
 
34511
34678
  /**
34512
- * Creates a plain object from a KeySet message. Also converts values to other types if specified.
34513
- * @param message KeySet
34679
+ * Creates a plain object from a RoutingHint message. Also converts values to other types if specified.
34680
+ * @param message RoutingHint
34514
34681
  * @param [options] Conversion options
34515
34682
  * @returns Plain object
34516
34683
  */
34517
- public static toObject(message: google.spanner.v1.KeySet, options?: $protobuf.IConversionOptions): { [k: string]: any };
34684
+ public static toObject(message: google.spanner.v1.RoutingHint, options?: $protobuf.IConversionOptions): { [k: string]: any };
34518
34685
 
34519
34686
  /**
34520
- * Converts this KeySet to JSON.
34687
+ * Converts this RoutingHint to JSON.
34521
34688
  * @returns JSON object
34522
34689
  */
34523
34690
  public toJSON(): { [k: string]: any };
34524
34691
 
34525
34692
  /**
34526
- * Gets the default type url for KeySet
34693
+ * Gets the default type url for RoutingHint
34527
34694
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
34528
34695
  * @returns The default type url
34529
34696
  */
34530
34697
  public static getTypeUrl(typeUrlPrefix?: string): string;
34531
34698
  }
34532
34699
 
34533
- /** Properties of a Range. */
34534
- interface IRange {
34700
+ namespace RoutingHint {
34535
34701
 
34536
- /** Range startKey */
34537
- startKey?: (Uint8Array|Buffer|string|null);
34702
+ /** Properties of a SkippedTablet. */
34703
+ interface ISkippedTablet {
34538
34704
 
34539
- /** Range limitKey */
34540
- limitKey?: (Uint8Array|Buffer|string|null);
34705
+ /** SkippedTablet tabletUid */
34706
+ tabletUid?: (number|Long|string|null);
34541
34707
 
34542
- /** Range groupUid */
34543
- groupUid?: (number|Long|string|null);
34708
+ /** SkippedTablet incarnation */
34709
+ incarnation?: (Uint8Array|Buffer|string|null);
34710
+ }
34544
34711
 
34545
- /** Range splitId */
34546
- splitId?: (number|Long|string|null);
34712
+ /** Represents a SkippedTablet. */
34713
+ class SkippedTablet implements ISkippedTablet {
34547
34714
 
34548
- /** Range generation */
34549
- generation?: (Uint8Array|Buffer|string|null);
34715
+ /**
34716
+ * Constructs a new SkippedTablet.
34717
+ * @param [properties] Properties to set
34718
+ */
34719
+ constructor(properties?: google.spanner.v1.RoutingHint.ISkippedTablet);
34720
+
34721
+ /** SkippedTablet tabletUid. */
34722
+ public tabletUid: (number|Long|string);
34723
+
34724
+ /** SkippedTablet incarnation. */
34725
+ public incarnation: (Uint8Array|Buffer|string);
34726
+
34727
+ /**
34728
+ * Creates a new SkippedTablet instance using the specified properties.
34729
+ * @param [properties] Properties to set
34730
+ * @returns SkippedTablet instance
34731
+ */
34732
+ public static create(properties?: google.spanner.v1.RoutingHint.ISkippedTablet): google.spanner.v1.RoutingHint.SkippedTablet;
34733
+
34734
+ /**
34735
+ * Encodes the specified SkippedTablet message. Does not implicitly {@link google.spanner.v1.RoutingHint.SkippedTablet.verify|verify} messages.
34736
+ * @param message SkippedTablet message or plain object to encode
34737
+ * @param [writer] Writer to encode to
34738
+ * @returns Writer
34739
+ */
34740
+ public static encode(message: google.spanner.v1.RoutingHint.ISkippedTablet, writer?: $protobuf.Writer): $protobuf.Writer;
34741
+
34742
+ /**
34743
+ * Encodes the specified SkippedTablet message, length delimited. Does not implicitly {@link google.spanner.v1.RoutingHint.SkippedTablet.verify|verify} messages.
34744
+ * @param message SkippedTablet message or plain object to encode
34745
+ * @param [writer] Writer to encode to
34746
+ * @returns Writer
34747
+ */
34748
+ public static encodeDelimited(message: google.spanner.v1.RoutingHint.ISkippedTablet, writer?: $protobuf.Writer): $protobuf.Writer;
34749
+
34750
+ /**
34751
+ * Decodes a SkippedTablet message from the specified reader or buffer.
34752
+ * @param reader Reader or buffer to decode from
34753
+ * @param [length] Message length if known beforehand
34754
+ * @returns SkippedTablet
34755
+ * @throws {Error} If the payload is not a reader or valid buffer
34756
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
34757
+ */
34758
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.RoutingHint.SkippedTablet;
34759
+
34760
+ /**
34761
+ * Decodes a SkippedTablet message from the specified reader or buffer, length delimited.
34762
+ * @param reader Reader or buffer to decode from
34763
+ * @returns SkippedTablet
34764
+ * @throws {Error} If the payload is not a reader or valid buffer
34765
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
34766
+ */
34767
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.RoutingHint.SkippedTablet;
34768
+
34769
+ /**
34770
+ * Verifies a SkippedTablet message.
34771
+ * @param message Plain object to verify
34772
+ * @returns `null` if valid, otherwise the reason why it is not
34773
+ */
34774
+ public static verify(message: { [k: string]: any }): (string|null);
34775
+
34776
+ /**
34777
+ * Creates a SkippedTablet message from a plain object. Also converts values to their respective internal types.
34778
+ * @param object Plain object
34779
+ * @returns SkippedTablet
34780
+ */
34781
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.RoutingHint.SkippedTablet;
34782
+
34783
+ /**
34784
+ * Creates a plain object from a SkippedTablet message. Also converts values to other types if specified.
34785
+ * @param message SkippedTablet
34786
+ * @param [options] Conversion options
34787
+ * @returns Plain object
34788
+ */
34789
+ public static toObject(message: google.spanner.v1.RoutingHint.SkippedTablet, options?: $protobuf.IConversionOptions): { [k: string]: any };
34790
+
34791
+ /**
34792
+ * Converts this SkippedTablet to JSON.
34793
+ * @returns JSON object
34794
+ */
34795
+ public toJSON(): { [k: string]: any };
34796
+
34797
+ /**
34798
+ * Gets the default type url for SkippedTablet
34799
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
34800
+ * @returns The default type url
34801
+ */
34802
+ public static getTypeUrl(typeUrlPrefix?: string): string;
34803
+ }
34550
34804
  }
34551
34805
 
34552
- /** Represents a Range. */
34553
- class Range implements IRange {
34806
+ /** Properties of a Type. */
34807
+ interface IType {
34808
+
34809
+ /** Type code */
34810
+ code?: (google.spanner.v1.TypeCode|keyof typeof google.spanner.v1.TypeCode|null);
34811
+
34812
+ /** Type arrayElementType */
34813
+ arrayElementType?: (google.spanner.v1.IType|null);
34814
+
34815
+ /** Type structType */
34816
+ structType?: (google.spanner.v1.IStructType|null);
34817
+
34818
+ /** Type typeAnnotation */
34819
+ typeAnnotation?: (google.spanner.v1.TypeAnnotationCode|keyof typeof google.spanner.v1.TypeAnnotationCode|null);
34820
+
34821
+ /** Type protoTypeFqn */
34822
+ protoTypeFqn?: (string|null);
34823
+ }
34824
+
34825
+ /** Represents a Type. */
34826
+ class Type implements IType {
34554
34827
 
34555
34828
  /**
34556
- * Constructs a new Range.
34829
+ * Constructs a new Type.
34557
34830
  * @param [properties] Properties to set
34558
34831
  */
34559
- constructor(properties?: google.spanner.v1.IRange);
34832
+ constructor(properties?: google.spanner.v1.IType);
34560
34833
 
34561
- /** Range startKey. */
34562
- public startKey: (Uint8Array|Buffer|string);
34834
+ /** Type code. */
34835
+ public code: (google.spanner.v1.TypeCode|keyof typeof google.spanner.v1.TypeCode);
34563
34836
 
34564
- /** Range limitKey. */
34565
- public limitKey: (Uint8Array|Buffer|string);
34837
+ /** Type arrayElementType. */
34838
+ public arrayElementType?: (google.spanner.v1.IType|null);
34566
34839
 
34567
- /** Range groupUid. */
34568
- public groupUid: (number|Long|string);
34840
+ /** Type structType. */
34841
+ public structType?: (google.spanner.v1.IStructType|null);
34569
34842
 
34570
- /** Range splitId. */
34571
- public splitId: (number|Long|string);
34843
+ /** Type typeAnnotation. */
34844
+ public typeAnnotation: (google.spanner.v1.TypeAnnotationCode|keyof typeof google.spanner.v1.TypeAnnotationCode);
34572
34845
 
34573
- /** Range generation. */
34574
- public generation: (Uint8Array|Buffer|string);
34846
+ /** Type protoTypeFqn. */
34847
+ public protoTypeFqn: string;
34575
34848
 
34576
34849
  /**
34577
- * Creates a new Range instance using the specified properties.
34850
+ * Creates a new Type instance using the specified properties.
34578
34851
  * @param [properties] Properties to set
34579
- * @returns Range instance
34852
+ * @returns Type instance
34580
34853
  */
34581
- public static create(properties?: google.spanner.v1.IRange): google.spanner.v1.Range;
34854
+ public static create(properties?: google.spanner.v1.IType): google.spanner.v1.Type;
34582
34855
 
34583
34856
  /**
34584
- * Encodes the specified Range message. Does not implicitly {@link google.spanner.v1.Range.verify|verify} messages.
34585
- * @param message Range message or plain object to encode
34857
+ * Encodes the specified Type message. Does not implicitly {@link google.spanner.v1.Type.verify|verify} messages.
34858
+ * @param message Type message or plain object to encode
34586
34859
  * @param [writer] Writer to encode to
34587
34860
  * @returns Writer
34588
34861
  */
34589
- public static encode(message: google.spanner.v1.IRange, writer?: $protobuf.Writer): $protobuf.Writer;
34862
+ public static encode(message: google.spanner.v1.IType, writer?: $protobuf.Writer): $protobuf.Writer;
34590
34863
 
34591
34864
  /**
34592
- * Encodes the specified Range message, length delimited. Does not implicitly {@link google.spanner.v1.Range.verify|verify} messages.
34593
- * @param message Range message or plain object to encode
34865
+ * Encodes the specified Type message, length delimited. Does not implicitly {@link google.spanner.v1.Type.verify|verify} messages.
34866
+ * @param message Type message or plain object to encode
34594
34867
  * @param [writer] Writer to encode to
34595
34868
  * @returns Writer
34596
34869
  */
34597
- public static encodeDelimited(message: google.spanner.v1.IRange, writer?: $protobuf.Writer): $protobuf.Writer;
34870
+ public static encodeDelimited(message: google.spanner.v1.IType, writer?: $protobuf.Writer): $protobuf.Writer;
34598
34871
 
34599
34872
  /**
34600
- * Decodes a Range message from the specified reader or buffer.
34873
+ * Decodes a Type message from the specified reader or buffer.
34601
34874
  * @param reader Reader or buffer to decode from
34602
34875
  * @param [length] Message length if known beforehand
34603
- * @returns Range
34876
+ * @returns Type
34604
34877
  * @throws {Error} If the payload is not a reader or valid buffer
34605
34878
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
34606
34879
  */
34607
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.Range;
34880
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.Type;
34608
34881
 
34609
34882
  /**
34610
- * Decodes a Range message from the specified reader or buffer, length delimited.
34883
+ * Decodes a Type message from the specified reader or buffer, length delimited.
34611
34884
  * @param reader Reader or buffer to decode from
34612
- * @returns Range
34885
+ * @returns Type
34613
34886
  * @throws {Error} If the payload is not a reader or valid buffer
34614
34887
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
34615
34888
  */
34616
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.Range;
34889
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.Type;
34617
34890
 
34618
34891
  /**
34619
- * Verifies a Range message.
34892
+ * Verifies a Type message.
34620
34893
  * @param message Plain object to verify
34621
34894
  * @returns `null` if valid, otherwise the reason why it is not
34622
34895
  */
34623
34896
  public static verify(message: { [k: string]: any }): (string|null);
34624
34897
 
34625
34898
  /**
34626
- * Creates a Range message from a plain object. Also converts values to their respective internal types.
34899
+ * Creates a Type message from a plain object. Also converts values to their respective internal types.
34627
34900
  * @param object Plain object
34628
- * @returns Range
34901
+ * @returns Type
34629
34902
  */
34630
- public static fromObject(object: { [k: string]: any }): google.spanner.v1.Range;
34903
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.Type;
34631
34904
 
34632
34905
  /**
34633
- * Creates a plain object from a Range message. Also converts values to other types if specified.
34634
- * @param message Range
34906
+ * Creates a plain object from a Type message. Also converts values to other types if specified.
34907
+ * @param message Type
34635
34908
  * @param [options] Conversion options
34636
34909
  * @returns Plain object
34637
34910
  */
34638
- public static toObject(message: google.spanner.v1.Range, options?: $protobuf.IConversionOptions): { [k: string]: any };
34911
+ public static toObject(message: google.spanner.v1.Type, options?: $protobuf.IConversionOptions): { [k: string]: any };
34639
34912
 
34640
34913
  /**
34641
- * Converts this Range to JSON.
34914
+ * Converts this Type to JSON.
34642
34915
  * @returns JSON object
34643
34916
  */
34644
34917
  public toJSON(): { [k: string]: any };
34645
34918
 
34646
34919
  /**
34647
- * Gets the default type url for Range
34920
+ * Gets the default type url for Type
34648
34921
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
34649
34922
  * @returns The default type url
34650
34923
  */
34651
34924
  public static getTypeUrl(typeUrlPrefix?: string): string;
34652
34925
  }
34653
34926
 
34654
- /** Properties of a Tablet. */
34655
- interface ITablet {
34656
-
34657
- /** Tablet tabletUid */
34658
- tabletUid?: (number|Long|string|null);
34659
-
34660
- /** Tablet serverAddress */
34661
- serverAddress?: (string|null);
34662
-
34663
- /** Tablet location */
34664
- location?: (string|null);
34665
-
34666
- /** Tablet role */
34667
- role?: (google.spanner.v1.Tablet.Role|keyof typeof google.spanner.v1.Tablet.Role|null);
34668
-
34669
- /** Tablet incarnation */
34670
- incarnation?: (Uint8Array|Buffer|string|null);
34671
-
34672
- /** Tablet distance */
34673
- distance?: (number|null);
34927
+ /** Properties of a StructType. */
34928
+ interface IStructType {
34674
34929
 
34675
- /** Tablet skip */
34676
- skip?: (boolean|null);
34930
+ /** StructType fields */
34931
+ fields?: (google.spanner.v1.StructType.IField[]|null);
34677
34932
  }
34678
34933
 
34679
- /** Represents a Tablet. */
34680
- class Tablet implements ITablet {
34934
+ /** Represents a StructType. */
34935
+ class StructType implements IStructType {
34681
34936
 
34682
34937
  /**
34683
- * Constructs a new Tablet.
34938
+ * Constructs a new StructType.
34684
34939
  * @param [properties] Properties to set
34685
34940
  */
34686
- constructor(properties?: google.spanner.v1.ITablet);
34687
-
34688
- /** Tablet tabletUid. */
34689
- public tabletUid: (number|Long|string);
34690
-
34691
- /** Tablet serverAddress. */
34692
- public serverAddress: string;
34693
-
34694
- /** Tablet location. */
34695
- public location: string;
34696
-
34697
- /** Tablet role. */
34698
- public role: (google.spanner.v1.Tablet.Role|keyof typeof google.spanner.v1.Tablet.Role);
34699
-
34700
- /** Tablet incarnation. */
34701
- public incarnation: (Uint8Array|Buffer|string);
34702
-
34703
- /** Tablet distance. */
34704
- public distance: number;
34941
+ constructor(properties?: google.spanner.v1.IStructType);
34705
34942
 
34706
- /** Tablet skip. */
34707
- public skip: boolean;
34943
+ /** StructType fields. */
34944
+ public fields: google.spanner.v1.StructType.IField[];
34708
34945
 
34709
34946
  /**
34710
- * Creates a new Tablet instance using the specified properties.
34947
+ * Creates a new StructType instance using the specified properties.
34711
34948
  * @param [properties] Properties to set
34712
- * @returns Tablet instance
34949
+ * @returns StructType instance
34713
34950
  */
34714
- public static create(properties?: google.spanner.v1.ITablet): google.spanner.v1.Tablet;
34951
+ public static create(properties?: google.spanner.v1.IStructType): google.spanner.v1.StructType;
34715
34952
 
34716
34953
  /**
34717
- * Encodes the specified Tablet message. Does not implicitly {@link google.spanner.v1.Tablet.verify|verify} messages.
34718
- * @param message Tablet message or plain object to encode
34954
+ * Encodes the specified StructType message. Does not implicitly {@link google.spanner.v1.StructType.verify|verify} messages.
34955
+ * @param message StructType message or plain object to encode
34719
34956
  * @param [writer] Writer to encode to
34720
34957
  * @returns Writer
34721
34958
  */
34722
- public static encode(message: google.spanner.v1.ITablet, writer?: $protobuf.Writer): $protobuf.Writer;
34959
+ public static encode(message: google.spanner.v1.IStructType, writer?: $protobuf.Writer): $protobuf.Writer;
34723
34960
 
34724
34961
  /**
34725
- * Encodes the specified Tablet message, length delimited. Does not implicitly {@link google.spanner.v1.Tablet.verify|verify} messages.
34726
- * @param message Tablet message or plain object to encode
34962
+ * Encodes the specified StructType message, length delimited. Does not implicitly {@link google.spanner.v1.StructType.verify|verify} messages.
34963
+ * @param message StructType message or plain object to encode
34727
34964
  * @param [writer] Writer to encode to
34728
34965
  * @returns Writer
34729
34966
  */
34730
- public static encodeDelimited(message: google.spanner.v1.ITablet, writer?: $protobuf.Writer): $protobuf.Writer;
34967
+ public static encodeDelimited(message: google.spanner.v1.IStructType, writer?: $protobuf.Writer): $protobuf.Writer;
34731
34968
 
34732
34969
  /**
34733
- * Decodes a Tablet message from the specified reader or buffer.
34970
+ * Decodes a StructType message from the specified reader or buffer.
34734
34971
  * @param reader Reader or buffer to decode from
34735
34972
  * @param [length] Message length if known beforehand
34736
- * @returns Tablet
34973
+ * @returns StructType
34737
34974
  * @throws {Error} If the payload is not a reader or valid buffer
34738
34975
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
34739
34976
  */
34740
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.Tablet;
34977
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.StructType;
34741
34978
 
34742
34979
  /**
34743
- * Decodes a Tablet message from the specified reader or buffer, length delimited.
34980
+ * Decodes a StructType message from the specified reader or buffer, length delimited.
34744
34981
  * @param reader Reader or buffer to decode from
34745
- * @returns Tablet
34982
+ * @returns StructType
34746
34983
  * @throws {Error} If the payload is not a reader or valid buffer
34747
34984
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
34748
34985
  */
34749
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.Tablet;
34986
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.StructType;
34750
34987
 
34751
34988
  /**
34752
- * Verifies a Tablet message.
34989
+ * Verifies a StructType message.
34753
34990
  * @param message Plain object to verify
34754
34991
  * @returns `null` if valid, otherwise the reason why it is not
34755
34992
  */
34756
34993
  public static verify(message: { [k: string]: any }): (string|null);
34757
34994
 
34758
34995
  /**
34759
- * Creates a Tablet message from a plain object. Also converts values to their respective internal types.
34996
+ * Creates a StructType message from a plain object. Also converts values to their respective internal types.
34760
34997
  * @param object Plain object
34761
- * @returns Tablet
34998
+ * @returns StructType
34762
34999
  */
34763
- public static fromObject(object: { [k: string]: any }): google.spanner.v1.Tablet;
35000
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.StructType;
34764
35001
 
34765
35002
  /**
34766
- * Creates a plain object from a Tablet message. Also converts values to other types if specified.
34767
- * @param message Tablet
35003
+ * Creates a plain object from a StructType message. Also converts values to other types if specified.
35004
+ * @param message StructType
34768
35005
  * @param [options] Conversion options
34769
35006
  * @returns Plain object
34770
35007
  */
34771
- public static toObject(message: google.spanner.v1.Tablet, options?: $protobuf.IConversionOptions): { [k: string]: any };
35008
+ public static toObject(message: google.spanner.v1.StructType, options?: $protobuf.IConversionOptions): { [k: string]: any };
34772
35009
 
34773
35010
  /**
34774
- * Converts this Tablet to JSON.
35011
+ * Converts this StructType to JSON.
34775
35012
  * @returns JSON object
34776
35013
  */
34777
35014
  public toJSON(): { [k: string]: any };
34778
35015
 
34779
35016
  /**
34780
- * Gets the default type url for Tablet
35017
+ * Gets the default type url for StructType
34781
35018
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
34782
35019
  * @returns The default type url
34783
35020
  */
34784
35021
  public static getTypeUrl(typeUrlPrefix?: string): string;
34785
35022
  }
34786
35023
 
34787
- namespace Tablet {
35024
+ namespace StructType {
35025
+
35026
+ /** Properties of a Field. */
35027
+ interface IField {
35028
+
35029
+ /** Field name */
35030
+ name?: (string|null);
35031
+
35032
+ /** Field type */
35033
+ type?: (google.spanner.v1.IType|null);
35034
+ }
35035
+
35036
+ /** Represents a Field. */
35037
+ class Field implements IField {
35038
+
35039
+ /**
35040
+ * Constructs a new Field.
35041
+ * @param [properties] Properties to set
35042
+ */
35043
+ constructor(properties?: google.spanner.v1.StructType.IField);
35044
+
35045
+ /** Field name. */
35046
+ public name: string;
35047
+
35048
+ /** Field type. */
35049
+ public type?: (google.spanner.v1.IType|null);
35050
+
35051
+ /**
35052
+ * Creates a new Field instance using the specified properties.
35053
+ * @param [properties] Properties to set
35054
+ * @returns Field instance
35055
+ */
35056
+ public static create(properties?: google.spanner.v1.StructType.IField): google.spanner.v1.StructType.Field;
35057
+
35058
+ /**
35059
+ * Encodes the specified Field message. Does not implicitly {@link google.spanner.v1.StructType.Field.verify|verify} messages.
35060
+ * @param message Field message or plain object to encode
35061
+ * @param [writer] Writer to encode to
35062
+ * @returns Writer
35063
+ */
35064
+ public static encode(message: google.spanner.v1.StructType.IField, writer?: $protobuf.Writer): $protobuf.Writer;
35065
+
35066
+ /**
35067
+ * Encodes the specified Field message, length delimited. Does not implicitly {@link google.spanner.v1.StructType.Field.verify|verify} messages.
35068
+ * @param message Field message or plain object to encode
35069
+ * @param [writer] Writer to encode to
35070
+ * @returns Writer
35071
+ */
35072
+ public static encodeDelimited(message: google.spanner.v1.StructType.IField, writer?: $protobuf.Writer): $protobuf.Writer;
35073
+
35074
+ /**
35075
+ * Decodes a Field message from the specified reader or buffer.
35076
+ * @param reader Reader or buffer to decode from
35077
+ * @param [length] Message length if known beforehand
35078
+ * @returns Field
35079
+ * @throws {Error} If the payload is not a reader or valid buffer
35080
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35081
+ */
35082
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.StructType.Field;
35083
+
35084
+ /**
35085
+ * Decodes a Field message from the specified reader or buffer, length delimited.
35086
+ * @param reader Reader or buffer to decode from
35087
+ * @returns Field
35088
+ * @throws {Error} If the payload is not a reader or valid buffer
35089
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35090
+ */
35091
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.StructType.Field;
35092
+
35093
+ /**
35094
+ * Verifies a Field message.
35095
+ * @param message Plain object to verify
35096
+ * @returns `null` if valid, otherwise the reason why it is not
35097
+ */
35098
+ public static verify(message: { [k: string]: any }): (string|null);
35099
+
35100
+ /**
35101
+ * Creates a Field message from a plain object. Also converts values to their respective internal types.
35102
+ * @param object Plain object
35103
+ * @returns Field
35104
+ */
35105
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.StructType.Field;
35106
+
35107
+ /**
35108
+ * Creates a plain object from a Field message. Also converts values to other types if specified.
35109
+ * @param message Field
35110
+ * @param [options] Conversion options
35111
+ * @returns Plain object
35112
+ */
35113
+ public static toObject(message: google.spanner.v1.StructType.Field, options?: $protobuf.IConversionOptions): { [k: string]: any };
35114
+
35115
+ /**
35116
+ * Converts this Field to JSON.
35117
+ * @returns JSON object
35118
+ */
35119
+ public toJSON(): { [k: string]: any };
35120
+
35121
+ /**
35122
+ * Gets the default type url for Field
35123
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
35124
+ * @returns The default type url
35125
+ */
35126
+ public static getTypeUrl(typeUrlPrefix?: string): string;
35127
+ }
35128
+ }
35129
+
35130
+ /** TypeCode enum. */
35131
+ enum TypeCode {
35132
+ TYPE_CODE_UNSPECIFIED = 0,
35133
+ BOOL = 1,
35134
+ INT64 = 2,
35135
+ FLOAT64 = 3,
35136
+ FLOAT32 = 15,
35137
+ TIMESTAMP = 4,
35138
+ DATE = 5,
35139
+ STRING = 6,
35140
+ BYTES = 7,
35141
+ ARRAY = 8,
35142
+ STRUCT = 9,
35143
+ NUMERIC = 10,
35144
+ JSON = 11,
35145
+ PROTO = 13,
35146
+ ENUM = 14,
35147
+ INTERVAL = 16,
35148
+ UUID = 17
35149
+ }
34788
35150
 
34789
- /** Role enum. */
34790
- enum Role {
34791
- ROLE_UNSPECIFIED = 0,
34792
- READ_WRITE = 1,
34793
- READ_ONLY = 2
34794
- }
35151
+ /** TypeAnnotationCode enum. */
35152
+ enum TypeAnnotationCode {
35153
+ TYPE_ANNOTATION_CODE_UNSPECIFIED = 0,
35154
+ PG_NUMERIC = 2,
35155
+ PG_JSONB = 3,
35156
+ PG_OID = 4
34795
35157
  }
34796
35158
 
34797
- /** Properties of a Group. */
34798
- interface IGroup {
35159
+ /** Properties of a TransactionOptions. */
35160
+ interface ITransactionOptions {
34799
35161
 
34800
- /** Group groupUid */
34801
- groupUid?: (number|Long|string|null);
35162
+ /** TransactionOptions readWrite */
35163
+ readWrite?: (google.spanner.v1.TransactionOptions.IReadWrite|null);
34802
35164
 
34803
- /** Group tablets */
34804
- tablets?: (google.spanner.v1.ITablet[]|null);
35165
+ /** TransactionOptions partitionedDml */
35166
+ partitionedDml?: (google.spanner.v1.TransactionOptions.IPartitionedDml|null);
34805
35167
 
34806
- /** Group leaderIndex */
34807
- leaderIndex?: (number|null);
35168
+ /** TransactionOptions readOnly */
35169
+ readOnly?: (google.spanner.v1.TransactionOptions.IReadOnly|null);
34808
35170
 
34809
- /** Group generation */
34810
- generation?: (Uint8Array|Buffer|string|null);
35171
+ /** TransactionOptions excludeTxnFromChangeStreams */
35172
+ excludeTxnFromChangeStreams?: (boolean|null);
35173
+
35174
+ /** TransactionOptions isolationLevel */
35175
+ isolationLevel?: (google.spanner.v1.TransactionOptions.IsolationLevel|keyof typeof google.spanner.v1.TransactionOptions.IsolationLevel|null);
34811
35176
  }
34812
35177
 
34813
- /** Represents a Group. */
34814
- class Group implements IGroup {
35178
+ /** Represents a TransactionOptions. */
35179
+ class TransactionOptions implements ITransactionOptions {
34815
35180
 
34816
35181
  /**
34817
- * Constructs a new Group.
35182
+ * Constructs a new TransactionOptions.
34818
35183
  * @param [properties] Properties to set
34819
35184
  */
34820
- constructor(properties?: google.spanner.v1.IGroup);
35185
+ constructor(properties?: google.spanner.v1.ITransactionOptions);
34821
35186
 
34822
- /** Group groupUid. */
34823
- public groupUid: (number|Long|string);
35187
+ /** TransactionOptions readWrite. */
35188
+ public readWrite?: (google.spanner.v1.TransactionOptions.IReadWrite|null);
34824
35189
 
34825
- /** Group tablets. */
34826
- public tablets: google.spanner.v1.ITablet[];
35190
+ /** TransactionOptions partitionedDml. */
35191
+ public partitionedDml?: (google.spanner.v1.TransactionOptions.IPartitionedDml|null);
34827
35192
 
34828
- /** Group leaderIndex. */
34829
- public leaderIndex: number;
35193
+ /** TransactionOptions readOnly. */
35194
+ public readOnly?: (google.spanner.v1.TransactionOptions.IReadOnly|null);
34830
35195
 
34831
- /** Group generation. */
34832
- public generation: (Uint8Array|Buffer|string);
35196
+ /** TransactionOptions excludeTxnFromChangeStreams. */
35197
+ public excludeTxnFromChangeStreams: boolean;
35198
+
35199
+ /** TransactionOptions isolationLevel. */
35200
+ public isolationLevel: (google.spanner.v1.TransactionOptions.IsolationLevel|keyof typeof google.spanner.v1.TransactionOptions.IsolationLevel);
35201
+
35202
+ /** TransactionOptions mode. */
35203
+ public mode?: ("readWrite"|"partitionedDml"|"readOnly");
34833
35204
 
34834
35205
  /**
34835
- * Creates a new Group instance using the specified properties.
35206
+ * Creates a new TransactionOptions instance using the specified properties.
34836
35207
  * @param [properties] Properties to set
34837
- * @returns Group instance
35208
+ * @returns TransactionOptions instance
34838
35209
  */
34839
- public static create(properties?: google.spanner.v1.IGroup): google.spanner.v1.Group;
35210
+ public static create(properties?: google.spanner.v1.ITransactionOptions): google.spanner.v1.TransactionOptions;
34840
35211
 
34841
35212
  /**
34842
- * Encodes the specified Group message. Does not implicitly {@link google.spanner.v1.Group.verify|verify} messages.
34843
- * @param message Group message or plain object to encode
35213
+ * Encodes the specified TransactionOptions message. Does not implicitly {@link google.spanner.v1.TransactionOptions.verify|verify} messages.
35214
+ * @param message TransactionOptions message or plain object to encode
34844
35215
  * @param [writer] Writer to encode to
34845
35216
  * @returns Writer
34846
35217
  */
34847
- public static encode(message: google.spanner.v1.IGroup, writer?: $protobuf.Writer): $protobuf.Writer;
35218
+ public static encode(message: google.spanner.v1.ITransactionOptions, writer?: $protobuf.Writer): $protobuf.Writer;
34848
35219
 
34849
35220
  /**
34850
- * Encodes the specified Group message, length delimited. Does not implicitly {@link google.spanner.v1.Group.verify|verify} messages.
34851
- * @param message Group message or plain object to encode
35221
+ * Encodes the specified TransactionOptions message, length delimited. Does not implicitly {@link google.spanner.v1.TransactionOptions.verify|verify} messages.
35222
+ * @param message TransactionOptions message or plain object to encode
34852
35223
  * @param [writer] Writer to encode to
34853
35224
  * @returns Writer
34854
35225
  */
34855
- public static encodeDelimited(message: google.spanner.v1.IGroup, writer?: $protobuf.Writer): $protobuf.Writer;
35226
+ public static encodeDelimited(message: google.spanner.v1.ITransactionOptions, writer?: $protobuf.Writer): $protobuf.Writer;
34856
35227
 
34857
35228
  /**
34858
- * Decodes a Group message from the specified reader or buffer.
35229
+ * Decodes a TransactionOptions message from the specified reader or buffer.
34859
35230
  * @param reader Reader or buffer to decode from
34860
35231
  * @param [length] Message length if known beforehand
34861
- * @returns Group
35232
+ * @returns TransactionOptions
34862
35233
  * @throws {Error} If the payload is not a reader or valid buffer
34863
35234
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
34864
35235
  */
34865
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.Group;
35236
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.TransactionOptions;
34866
35237
 
34867
35238
  /**
34868
- * Decodes a Group message from the specified reader or buffer, length delimited.
35239
+ * Decodes a TransactionOptions message from the specified reader or buffer, length delimited.
34869
35240
  * @param reader Reader or buffer to decode from
34870
- * @returns Group
35241
+ * @returns TransactionOptions
34871
35242
  * @throws {Error} If the payload is not a reader or valid buffer
34872
35243
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
34873
35244
  */
34874
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.Group;
35245
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.TransactionOptions;
34875
35246
 
34876
35247
  /**
34877
- * Verifies a Group message.
35248
+ * Verifies a TransactionOptions message.
34878
35249
  * @param message Plain object to verify
34879
35250
  * @returns `null` if valid, otherwise the reason why it is not
34880
35251
  */
34881
35252
  public static verify(message: { [k: string]: any }): (string|null);
34882
35253
 
34883
35254
  /**
34884
- * Creates a Group message from a plain object. Also converts values to their respective internal types.
35255
+ * Creates a TransactionOptions message from a plain object. Also converts values to their respective internal types.
34885
35256
  * @param object Plain object
34886
- * @returns Group
35257
+ * @returns TransactionOptions
34887
35258
  */
34888
- public static fromObject(object: { [k: string]: any }): google.spanner.v1.Group;
35259
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.TransactionOptions;
34889
35260
 
34890
35261
  /**
34891
- * Creates a plain object from a Group message. Also converts values to other types if specified.
34892
- * @param message Group
35262
+ * Creates a plain object from a TransactionOptions message. Also converts values to other types if specified.
35263
+ * @param message TransactionOptions
34893
35264
  * @param [options] Conversion options
34894
35265
  * @returns Plain object
34895
35266
  */
34896
- public static toObject(message: google.spanner.v1.Group, options?: $protobuf.IConversionOptions): { [k: string]: any };
35267
+ public static toObject(message: google.spanner.v1.TransactionOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
34897
35268
 
34898
35269
  /**
34899
- * Converts this Group to JSON.
35270
+ * Converts this TransactionOptions to JSON.
34900
35271
  * @returns JSON object
34901
35272
  */
34902
35273
  public toJSON(): { [k: string]: any };
34903
35274
 
34904
35275
  /**
34905
- * Gets the default type url for Group
35276
+ * Gets the default type url for TransactionOptions
34906
35277
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
34907
35278
  * @returns The default type url
34908
35279
  */
34909
35280
  public static getTypeUrl(typeUrlPrefix?: string): string;
34910
35281
  }
34911
35282
 
34912
- /** Properties of a KeyRecipe. */
34913
- interface IKeyRecipe {
35283
+ namespace TransactionOptions {
34914
35284
 
34915
- /** KeyRecipe tableName */
34916
- tableName?: (string|null);
35285
+ /** Properties of a ReadWrite. */
35286
+ interface IReadWrite {
34917
35287
 
34918
- /** KeyRecipe indexName */
34919
- indexName?: (string|null);
35288
+ /** ReadWrite readLockMode */
35289
+ readLockMode?: (google.spanner.v1.TransactionOptions.ReadWrite.ReadLockMode|keyof typeof google.spanner.v1.TransactionOptions.ReadWrite.ReadLockMode|null);
34920
35290
 
34921
- /** KeyRecipe operationUid */
34922
- operationUid?: (number|Long|string|null);
35291
+ /** ReadWrite multiplexedSessionPreviousTransactionId */
35292
+ multiplexedSessionPreviousTransactionId?: (Uint8Array|Buffer|string|null);
35293
+ }
34923
35294
 
34924
- /** KeyRecipe part */
34925
- part?: (google.spanner.v1.KeyRecipe.IPart[]|null);
34926
- }
35295
+ /** Represents a ReadWrite. */
35296
+ class ReadWrite implements IReadWrite {
34927
35297
 
34928
- /** Represents a KeyRecipe. */
34929
- class KeyRecipe implements IKeyRecipe {
35298
+ /**
35299
+ * Constructs a new ReadWrite.
35300
+ * @param [properties] Properties to set
35301
+ */
35302
+ constructor(properties?: google.spanner.v1.TransactionOptions.IReadWrite);
34930
35303
 
34931
- /**
34932
- * Constructs a new KeyRecipe.
34933
- * @param [properties] Properties to set
34934
- */
34935
- constructor(properties?: google.spanner.v1.IKeyRecipe);
35304
+ /** ReadWrite readLockMode. */
35305
+ public readLockMode: (google.spanner.v1.TransactionOptions.ReadWrite.ReadLockMode|keyof typeof google.spanner.v1.TransactionOptions.ReadWrite.ReadLockMode);
34936
35306
 
34937
- /** KeyRecipe tableName. */
34938
- public tableName?: (string|null);
35307
+ /** ReadWrite multiplexedSessionPreviousTransactionId. */
35308
+ public multiplexedSessionPreviousTransactionId: (Uint8Array|Buffer|string);
34939
35309
 
34940
- /** KeyRecipe indexName. */
34941
- public indexName?: (string|null);
35310
+ /**
35311
+ * Creates a new ReadWrite instance using the specified properties.
35312
+ * @param [properties] Properties to set
35313
+ * @returns ReadWrite instance
35314
+ */
35315
+ public static create(properties?: google.spanner.v1.TransactionOptions.IReadWrite): google.spanner.v1.TransactionOptions.ReadWrite;
34942
35316
 
34943
- /** KeyRecipe operationUid. */
34944
- public operationUid?: (number|Long|string|null);
35317
+ /**
35318
+ * Encodes the specified ReadWrite message. Does not implicitly {@link google.spanner.v1.TransactionOptions.ReadWrite.verify|verify} messages.
35319
+ * @param message ReadWrite message or plain object to encode
35320
+ * @param [writer] Writer to encode to
35321
+ * @returns Writer
35322
+ */
35323
+ public static encode(message: google.spanner.v1.TransactionOptions.IReadWrite, writer?: $protobuf.Writer): $protobuf.Writer;
34945
35324
 
34946
- /** KeyRecipe part. */
34947
- public part: google.spanner.v1.KeyRecipe.IPart[];
35325
+ /**
35326
+ * Encodes the specified ReadWrite message, length delimited. Does not implicitly {@link google.spanner.v1.TransactionOptions.ReadWrite.verify|verify} messages.
35327
+ * @param message ReadWrite message or plain object to encode
35328
+ * @param [writer] Writer to encode to
35329
+ * @returns Writer
35330
+ */
35331
+ public static encodeDelimited(message: google.spanner.v1.TransactionOptions.IReadWrite, writer?: $protobuf.Writer): $protobuf.Writer;
34948
35332
 
34949
- /** KeyRecipe target. */
34950
- public target?: ("tableName"|"indexName"|"operationUid");
35333
+ /**
35334
+ * Decodes a ReadWrite message from the specified reader or buffer.
35335
+ * @param reader Reader or buffer to decode from
35336
+ * @param [length] Message length if known beforehand
35337
+ * @returns ReadWrite
35338
+ * @throws {Error} If the payload is not a reader or valid buffer
35339
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35340
+ */
35341
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.TransactionOptions.ReadWrite;
34951
35342
 
34952
- /**
34953
- * Creates a new KeyRecipe instance using the specified properties.
34954
- * @param [properties] Properties to set
34955
- * @returns KeyRecipe instance
34956
- */
34957
- public static create(properties?: google.spanner.v1.IKeyRecipe): google.spanner.v1.KeyRecipe;
35343
+ /**
35344
+ * Decodes a ReadWrite message from the specified reader or buffer, length delimited.
35345
+ * @param reader Reader or buffer to decode from
35346
+ * @returns ReadWrite
35347
+ * @throws {Error} If the payload is not a reader or valid buffer
35348
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35349
+ */
35350
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.TransactionOptions.ReadWrite;
34958
35351
 
34959
- /**
34960
- * Encodes the specified KeyRecipe message. Does not implicitly {@link google.spanner.v1.KeyRecipe.verify|verify} messages.
34961
- * @param message KeyRecipe message or plain object to encode
34962
- * @param [writer] Writer to encode to
34963
- * @returns Writer
34964
- */
34965
- public static encode(message: google.spanner.v1.IKeyRecipe, writer?: $protobuf.Writer): $protobuf.Writer;
35352
+ /**
35353
+ * Verifies a ReadWrite message.
35354
+ * @param message Plain object to verify
35355
+ * @returns `null` if valid, otherwise the reason why it is not
35356
+ */
35357
+ public static verify(message: { [k: string]: any }): (string|null);
35358
+
35359
+ /**
35360
+ * Creates a ReadWrite message from a plain object. Also converts values to their respective internal types.
35361
+ * @param object Plain object
35362
+ * @returns ReadWrite
35363
+ */
35364
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.TransactionOptions.ReadWrite;
35365
+
35366
+ /**
35367
+ * Creates a plain object from a ReadWrite message. Also converts values to other types if specified.
35368
+ * @param message ReadWrite
35369
+ * @param [options] Conversion options
35370
+ * @returns Plain object
35371
+ */
35372
+ public static toObject(message: google.spanner.v1.TransactionOptions.ReadWrite, options?: $protobuf.IConversionOptions): { [k: string]: any };
35373
+
35374
+ /**
35375
+ * Converts this ReadWrite to JSON.
35376
+ * @returns JSON object
35377
+ */
35378
+ public toJSON(): { [k: string]: any };
35379
+
35380
+ /**
35381
+ * Gets the default type url for ReadWrite
35382
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
35383
+ * @returns The default type url
35384
+ */
35385
+ public static getTypeUrl(typeUrlPrefix?: string): string;
35386
+ }
35387
+
35388
+ namespace ReadWrite {
35389
+
35390
+ /** ReadLockMode enum. */
35391
+ enum ReadLockMode {
35392
+ READ_LOCK_MODE_UNSPECIFIED = 0,
35393
+ PESSIMISTIC = 1,
35394
+ OPTIMISTIC = 2
35395
+ }
35396
+ }
35397
+
35398
+ /** Properties of a PartitionedDml. */
35399
+ interface IPartitionedDml {
35400
+ }
34966
35401
 
34967
- /**
34968
- * Encodes the specified KeyRecipe message, length delimited. Does not implicitly {@link google.spanner.v1.KeyRecipe.verify|verify} messages.
34969
- * @param message KeyRecipe message or plain object to encode
34970
- * @param [writer] Writer to encode to
34971
- * @returns Writer
34972
- */
34973
- public static encodeDelimited(message: google.spanner.v1.IKeyRecipe, writer?: $protobuf.Writer): $protobuf.Writer;
35402
+ /** Represents a PartitionedDml. */
35403
+ class PartitionedDml implements IPartitionedDml {
34974
35404
 
34975
- /**
34976
- * Decodes a KeyRecipe message from the specified reader or buffer.
34977
- * @param reader Reader or buffer to decode from
34978
- * @param [length] Message length if known beforehand
34979
- * @returns KeyRecipe
34980
- * @throws {Error} If the payload is not a reader or valid buffer
34981
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
34982
- */
34983
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.KeyRecipe;
35405
+ /**
35406
+ * Constructs a new PartitionedDml.
35407
+ * @param [properties] Properties to set
35408
+ */
35409
+ constructor(properties?: google.spanner.v1.TransactionOptions.IPartitionedDml);
34984
35410
 
34985
- /**
34986
- * Decodes a KeyRecipe message from the specified reader or buffer, length delimited.
34987
- * @param reader Reader or buffer to decode from
34988
- * @returns KeyRecipe
34989
- * @throws {Error} If the payload is not a reader or valid buffer
34990
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
34991
- */
34992
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.KeyRecipe;
35411
+ /**
35412
+ * Creates a new PartitionedDml instance using the specified properties.
35413
+ * @param [properties] Properties to set
35414
+ * @returns PartitionedDml instance
35415
+ */
35416
+ public static create(properties?: google.spanner.v1.TransactionOptions.IPartitionedDml): google.spanner.v1.TransactionOptions.PartitionedDml;
34993
35417
 
34994
- /**
34995
- * Verifies a KeyRecipe message.
34996
- * @param message Plain object to verify
34997
- * @returns `null` if valid, otherwise the reason why it is not
34998
- */
34999
- public static verify(message: { [k: string]: any }): (string|null);
35418
+ /**
35419
+ * Encodes the specified PartitionedDml message. Does not implicitly {@link google.spanner.v1.TransactionOptions.PartitionedDml.verify|verify} messages.
35420
+ * @param message PartitionedDml message or plain object to encode
35421
+ * @param [writer] Writer to encode to
35422
+ * @returns Writer
35423
+ */
35424
+ public static encode(message: google.spanner.v1.TransactionOptions.IPartitionedDml, writer?: $protobuf.Writer): $protobuf.Writer;
35000
35425
 
35001
- /**
35002
- * Creates a KeyRecipe message from a plain object. Also converts values to their respective internal types.
35003
- * @param object Plain object
35004
- * @returns KeyRecipe
35005
- */
35006
- public static fromObject(object: { [k: string]: any }): google.spanner.v1.KeyRecipe;
35426
+ /**
35427
+ * Encodes the specified PartitionedDml message, length delimited. Does not implicitly {@link google.spanner.v1.TransactionOptions.PartitionedDml.verify|verify} messages.
35428
+ * @param message PartitionedDml message or plain object to encode
35429
+ * @param [writer] Writer to encode to
35430
+ * @returns Writer
35431
+ */
35432
+ public static encodeDelimited(message: google.spanner.v1.TransactionOptions.IPartitionedDml, writer?: $protobuf.Writer): $protobuf.Writer;
35007
35433
 
35008
- /**
35009
- * Creates a plain object from a KeyRecipe message. Also converts values to other types if specified.
35010
- * @param message KeyRecipe
35011
- * @param [options] Conversion options
35012
- * @returns Plain object
35013
- */
35014
- public static toObject(message: google.spanner.v1.KeyRecipe, options?: $protobuf.IConversionOptions): { [k: string]: any };
35434
+ /**
35435
+ * Decodes a PartitionedDml message from the specified reader or buffer.
35436
+ * @param reader Reader or buffer to decode from
35437
+ * @param [length] Message length if known beforehand
35438
+ * @returns PartitionedDml
35439
+ * @throws {Error} If the payload is not a reader or valid buffer
35440
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35441
+ */
35442
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.TransactionOptions.PartitionedDml;
35015
35443
 
35016
- /**
35017
- * Converts this KeyRecipe to JSON.
35018
- * @returns JSON object
35019
- */
35020
- public toJSON(): { [k: string]: any };
35444
+ /**
35445
+ * Decodes a PartitionedDml message from the specified reader or buffer, length delimited.
35446
+ * @param reader Reader or buffer to decode from
35447
+ * @returns PartitionedDml
35448
+ * @throws {Error} If the payload is not a reader or valid buffer
35449
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35450
+ */
35451
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.TransactionOptions.PartitionedDml;
35021
35452
 
35022
- /**
35023
- * Gets the default type url for KeyRecipe
35024
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
35025
- * @returns The default type url
35026
- */
35027
- public static getTypeUrl(typeUrlPrefix?: string): string;
35028
- }
35453
+ /**
35454
+ * Verifies a PartitionedDml message.
35455
+ * @param message Plain object to verify
35456
+ * @returns `null` if valid, otherwise the reason why it is not
35457
+ */
35458
+ public static verify(message: { [k: string]: any }): (string|null);
35029
35459
 
35030
- namespace KeyRecipe {
35460
+ /**
35461
+ * Creates a PartitionedDml message from a plain object. Also converts values to their respective internal types.
35462
+ * @param object Plain object
35463
+ * @returns PartitionedDml
35464
+ */
35465
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.TransactionOptions.PartitionedDml;
35031
35466
 
35032
- /** Properties of a Part. */
35033
- interface IPart {
35467
+ /**
35468
+ * Creates a plain object from a PartitionedDml message. Also converts values to other types if specified.
35469
+ * @param message PartitionedDml
35470
+ * @param [options] Conversion options
35471
+ * @returns Plain object
35472
+ */
35473
+ public static toObject(message: google.spanner.v1.TransactionOptions.PartitionedDml, options?: $protobuf.IConversionOptions): { [k: string]: any };
35034
35474
 
35035
- /** Part tag */
35036
- tag?: (number|null);
35475
+ /**
35476
+ * Converts this PartitionedDml to JSON.
35477
+ * @returns JSON object
35478
+ */
35479
+ public toJSON(): { [k: string]: any };
35037
35480
 
35038
- /** Part order */
35039
- order?: (google.spanner.v1.KeyRecipe.Part.Order|keyof typeof google.spanner.v1.KeyRecipe.Part.Order|null);
35481
+ /**
35482
+ * Gets the default type url for PartitionedDml
35483
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
35484
+ * @returns The default type url
35485
+ */
35486
+ public static getTypeUrl(typeUrlPrefix?: string): string;
35487
+ }
35040
35488
 
35041
- /** Part nullOrder */
35042
- nullOrder?: (google.spanner.v1.KeyRecipe.Part.NullOrder|keyof typeof google.spanner.v1.KeyRecipe.Part.NullOrder|null);
35489
+ /** Properties of a ReadOnly. */
35490
+ interface IReadOnly {
35043
35491
 
35044
- /** Part type */
35045
- type?: (google.spanner.v1.IType|null);
35492
+ /** ReadOnly strong */
35493
+ strong?: (boolean|null);
35046
35494
 
35047
- /** Part identifier */
35048
- identifier?: (string|null);
35495
+ /** ReadOnly minReadTimestamp */
35496
+ minReadTimestamp?: (google.protobuf.ITimestamp|null);
35049
35497
 
35050
- /** Part value */
35051
- value?: (google.protobuf.IValue|null);
35498
+ /** ReadOnly maxStaleness */
35499
+ maxStaleness?: (google.protobuf.IDuration|null);
35052
35500
 
35053
- /** Part random */
35054
- random?: (boolean|null);
35501
+ /** ReadOnly readTimestamp */
35502
+ readTimestamp?: (google.protobuf.ITimestamp|null);
35055
35503
 
35056
- /** Part structIdentifiers */
35057
- structIdentifiers?: (number[]|null);
35504
+ /** ReadOnly exactStaleness */
35505
+ exactStaleness?: (google.protobuf.IDuration|null);
35506
+
35507
+ /** ReadOnly returnReadTimestamp */
35508
+ returnReadTimestamp?: (boolean|null);
35058
35509
  }
35059
35510
 
35060
- /** Represents a Part. */
35061
- class Part implements IPart {
35511
+ /** Represents a ReadOnly. */
35512
+ class ReadOnly implements IReadOnly {
35062
35513
 
35063
35514
  /**
35064
- * Constructs a new Part.
35515
+ * Constructs a new ReadOnly.
35065
35516
  * @param [properties] Properties to set
35066
35517
  */
35067
- constructor(properties?: google.spanner.v1.KeyRecipe.IPart);
35068
-
35069
- /** Part tag. */
35070
- public tag: number;
35071
-
35072
- /** Part order. */
35073
- public order: (google.spanner.v1.KeyRecipe.Part.Order|keyof typeof google.spanner.v1.KeyRecipe.Part.Order);
35518
+ constructor(properties?: google.spanner.v1.TransactionOptions.IReadOnly);
35074
35519
 
35075
- /** Part nullOrder. */
35076
- public nullOrder: (google.spanner.v1.KeyRecipe.Part.NullOrder|keyof typeof google.spanner.v1.KeyRecipe.Part.NullOrder);
35520
+ /** ReadOnly strong. */
35521
+ public strong?: (boolean|null);
35077
35522
 
35078
- /** Part type. */
35079
- public type?: (google.spanner.v1.IType|null);
35523
+ /** ReadOnly minReadTimestamp. */
35524
+ public minReadTimestamp?: (google.protobuf.ITimestamp|null);
35080
35525
 
35081
- /** Part identifier. */
35082
- public identifier?: (string|null);
35526
+ /** ReadOnly maxStaleness. */
35527
+ public maxStaleness?: (google.protobuf.IDuration|null);
35083
35528
 
35084
- /** Part value. */
35085
- public value?: (google.protobuf.IValue|null);
35529
+ /** ReadOnly readTimestamp. */
35530
+ public readTimestamp?: (google.protobuf.ITimestamp|null);
35086
35531
 
35087
- /** Part random. */
35088
- public random?: (boolean|null);
35532
+ /** ReadOnly exactStaleness. */
35533
+ public exactStaleness?: (google.protobuf.IDuration|null);
35089
35534
 
35090
- /** Part structIdentifiers. */
35091
- public structIdentifiers: number[];
35535
+ /** ReadOnly returnReadTimestamp. */
35536
+ public returnReadTimestamp: boolean;
35092
35537
 
35093
- /** Part valueType. */
35094
- public valueType?: ("identifier"|"value"|"random");
35538
+ /** ReadOnly timestampBound. */
35539
+ public timestampBound?: ("strong"|"minReadTimestamp"|"maxStaleness"|"readTimestamp"|"exactStaleness");
35095
35540
 
35096
35541
  /**
35097
- * Creates a new Part instance using the specified properties.
35542
+ * Creates a new ReadOnly instance using the specified properties.
35098
35543
  * @param [properties] Properties to set
35099
- * @returns Part instance
35544
+ * @returns ReadOnly instance
35100
35545
  */
35101
- public static create(properties?: google.spanner.v1.KeyRecipe.IPart): google.spanner.v1.KeyRecipe.Part;
35546
+ public static create(properties?: google.spanner.v1.TransactionOptions.IReadOnly): google.spanner.v1.TransactionOptions.ReadOnly;
35102
35547
 
35103
35548
  /**
35104
- * Encodes the specified Part message. Does not implicitly {@link google.spanner.v1.KeyRecipe.Part.verify|verify} messages.
35105
- * @param message Part message or plain object to encode
35549
+ * Encodes the specified ReadOnly message. Does not implicitly {@link google.spanner.v1.TransactionOptions.ReadOnly.verify|verify} messages.
35550
+ * @param message ReadOnly message or plain object to encode
35106
35551
  * @param [writer] Writer to encode to
35107
35552
  * @returns Writer
35108
35553
  */
35109
- public static encode(message: google.spanner.v1.KeyRecipe.IPart, writer?: $protobuf.Writer): $protobuf.Writer;
35554
+ public static encode(message: google.spanner.v1.TransactionOptions.IReadOnly, writer?: $protobuf.Writer): $protobuf.Writer;
35110
35555
 
35111
35556
  /**
35112
- * Encodes the specified Part message, length delimited. Does not implicitly {@link google.spanner.v1.KeyRecipe.Part.verify|verify} messages.
35113
- * @param message Part message or plain object to encode
35557
+ * Encodes the specified ReadOnly message, length delimited. Does not implicitly {@link google.spanner.v1.TransactionOptions.ReadOnly.verify|verify} messages.
35558
+ * @param message ReadOnly message or plain object to encode
35114
35559
  * @param [writer] Writer to encode to
35115
35560
  * @returns Writer
35116
35561
  */
35117
- public static encodeDelimited(message: google.spanner.v1.KeyRecipe.IPart, writer?: $protobuf.Writer): $protobuf.Writer;
35562
+ public static encodeDelimited(message: google.spanner.v1.TransactionOptions.IReadOnly, writer?: $protobuf.Writer): $protobuf.Writer;
35118
35563
 
35119
35564
  /**
35120
- * Decodes a Part message from the specified reader or buffer.
35565
+ * Decodes a ReadOnly message from the specified reader or buffer.
35121
35566
  * @param reader Reader or buffer to decode from
35122
35567
  * @param [length] Message length if known beforehand
35123
- * @returns Part
35568
+ * @returns ReadOnly
35124
35569
  * @throws {Error} If the payload is not a reader or valid buffer
35125
35570
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
35126
35571
  */
35127
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.KeyRecipe.Part;
35572
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.TransactionOptions.ReadOnly;
35128
35573
 
35129
35574
  /**
35130
- * Decodes a Part message from the specified reader or buffer, length delimited.
35575
+ * Decodes a ReadOnly message from the specified reader or buffer, length delimited.
35131
35576
  * @param reader Reader or buffer to decode from
35132
- * @returns Part
35577
+ * @returns ReadOnly
35133
35578
  * @throws {Error} If the payload is not a reader or valid buffer
35134
35579
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
35135
35580
  */
35136
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.KeyRecipe.Part;
35581
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.TransactionOptions.ReadOnly;
35137
35582
 
35138
35583
  /**
35139
- * Verifies a Part message.
35584
+ * Verifies a ReadOnly message.
35140
35585
  * @param message Plain object to verify
35141
35586
  * @returns `null` if valid, otherwise the reason why it is not
35142
35587
  */
35143
35588
  public static verify(message: { [k: string]: any }): (string|null);
35144
35589
 
35145
35590
  /**
35146
- * Creates a Part message from a plain object. Also converts values to their respective internal types.
35591
+ * Creates a ReadOnly message from a plain object. Also converts values to their respective internal types.
35147
35592
  * @param object Plain object
35148
- * @returns Part
35593
+ * @returns ReadOnly
35149
35594
  */
35150
- public static fromObject(object: { [k: string]: any }): google.spanner.v1.KeyRecipe.Part;
35595
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.TransactionOptions.ReadOnly;
35151
35596
 
35152
35597
  /**
35153
- * Creates a plain object from a Part message. Also converts values to other types if specified.
35154
- * @param message Part
35598
+ * Creates a plain object from a ReadOnly message. Also converts values to other types if specified.
35599
+ * @param message ReadOnly
35155
35600
  * @param [options] Conversion options
35156
35601
  * @returns Plain object
35157
35602
  */
35158
- public static toObject(message: google.spanner.v1.KeyRecipe.Part, options?: $protobuf.IConversionOptions): { [k: string]: any };
35603
+ public static toObject(message: google.spanner.v1.TransactionOptions.ReadOnly, options?: $protobuf.IConversionOptions): { [k: string]: any };
35159
35604
 
35160
35605
  /**
35161
- * Converts this Part to JSON.
35606
+ * Converts this ReadOnly to JSON.
35162
35607
  * @returns JSON object
35163
35608
  */
35164
35609
  public toJSON(): { [k: string]: any };
35165
35610
 
35166
35611
  /**
35167
- * Gets the default type url for Part
35612
+ * Gets the default type url for ReadOnly
35168
35613
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
35169
35614
  * @returns The default type url
35170
35615
  */
35171
35616
  public static getTypeUrl(typeUrlPrefix?: string): string;
35172
35617
  }
35173
35618
 
35174
- namespace Part {
35175
-
35176
- /** Order enum. */
35177
- enum Order {
35178
- ORDER_UNSPECIFIED = 0,
35179
- ASCENDING = 1,
35180
- DESCENDING = 2
35181
- }
35182
-
35183
- /** NullOrder enum. */
35184
- enum NullOrder {
35185
- NULL_ORDER_UNSPECIFIED = 0,
35186
- NULLS_FIRST = 1,
35187
- NULLS_LAST = 2,
35188
- NOT_NULL = 3
35189
- }
35619
+ /** IsolationLevel enum. */
35620
+ enum IsolationLevel {
35621
+ ISOLATION_LEVEL_UNSPECIFIED = 0,
35622
+ SERIALIZABLE = 1,
35623
+ REPEATABLE_READ = 2
35190
35624
  }
35191
35625
  }
35192
35626
 
35193
- /** Properties of a RecipeList. */
35194
- interface IRecipeList {
35627
+ /** Properties of a Transaction. */
35628
+ interface ITransaction {
35195
35629
 
35196
- /** RecipeList schemaGeneration */
35197
- schemaGeneration?: (Uint8Array|Buffer|string|null);
35630
+ /** Transaction id */
35631
+ id?: (Uint8Array|Buffer|string|null);
35198
35632
 
35199
- /** RecipeList recipe */
35200
- recipe?: (google.spanner.v1.IKeyRecipe[]|null);
35633
+ /** Transaction readTimestamp */
35634
+ readTimestamp?: (google.protobuf.ITimestamp|null);
35635
+
35636
+ /** Transaction precommitToken */
35637
+ precommitToken?: (google.spanner.v1.IMultiplexedSessionPrecommitToken|null);
35638
+
35639
+ /** Transaction cacheUpdate */
35640
+ cacheUpdate?: (google.spanner.v1.ICacheUpdate|null);
35201
35641
  }
35202
35642
 
35203
- /** Represents a RecipeList. */
35204
- class RecipeList implements IRecipeList {
35643
+ /** Represents a Transaction. */
35644
+ class Transaction implements ITransaction {
35205
35645
 
35206
35646
  /**
35207
- * Constructs a new RecipeList.
35647
+ * Constructs a new Transaction.
35208
35648
  * @param [properties] Properties to set
35209
35649
  */
35210
- constructor(properties?: google.spanner.v1.IRecipeList);
35650
+ constructor(properties?: google.spanner.v1.ITransaction);
35211
35651
 
35212
- /** RecipeList schemaGeneration. */
35213
- public schemaGeneration: (Uint8Array|Buffer|string);
35652
+ /** Transaction id. */
35653
+ public id: (Uint8Array|Buffer|string);
35214
35654
 
35215
- /** RecipeList recipe. */
35216
- public recipe: google.spanner.v1.IKeyRecipe[];
35655
+ /** Transaction readTimestamp. */
35656
+ public readTimestamp?: (google.protobuf.ITimestamp|null);
35657
+
35658
+ /** Transaction precommitToken. */
35659
+ public precommitToken?: (google.spanner.v1.IMultiplexedSessionPrecommitToken|null);
35660
+
35661
+ /** Transaction cacheUpdate. */
35662
+ public cacheUpdate?: (google.spanner.v1.ICacheUpdate|null);
35217
35663
 
35218
35664
  /**
35219
- * Creates a new RecipeList instance using the specified properties.
35665
+ * Creates a new Transaction instance using the specified properties.
35220
35666
  * @param [properties] Properties to set
35221
- * @returns RecipeList instance
35667
+ * @returns Transaction instance
35222
35668
  */
35223
- public static create(properties?: google.spanner.v1.IRecipeList): google.spanner.v1.RecipeList;
35669
+ public static create(properties?: google.spanner.v1.ITransaction): google.spanner.v1.Transaction;
35224
35670
 
35225
35671
  /**
35226
- * Encodes the specified RecipeList message. Does not implicitly {@link google.spanner.v1.RecipeList.verify|verify} messages.
35227
- * @param message RecipeList message or plain object to encode
35672
+ * Encodes the specified Transaction message. Does not implicitly {@link google.spanner.v1.Transaction.verify|verify} messages.
35673
+ * @param message Transaction message or plain object to encode
35228
35674
  * @param [writer] Writer to encode to
35229
35675
  * @returns Writer
35230
35676
  */
35231
- public static encode(message: google.spanner.v1.IRecipeList, writer?: $protobuf.Writer): $protobuf.Writer;
35677
+ public static encode(message: google.spanner.v1.ITransaction, writer?: $protobuf.Writer): $protobuf.Writer;
35232
35678
 
35233
35679
  /**
35234
- * Encodes the specified RecipeList message, length delimited. Does not implicitly {@link google.spanner.v1.RecipeList.verify|verify} messages.
35235
- * @param message RecipeList message or plain object to encode
35680
+ * Encodes the specified Transaction message, length delimited. Does not implicitly {@link google.spanner.v1.Transaction.verify|verify} messages.
35681
+ * @param message Transaction message or plain object to encode
35236
35682
  * @param [writer] Writer to encode to
35237
35683
  * @returns Writer
35238
35684
  */
35239
- public static encodeDelimited(message: google.spanner.v1.IRecipeList, writer?: $protobuf.Writer): $protobuf.Writer;
35685
+ public static encodeDelimited(message: google.spanner.v1.ITransaction, writer?: $protobuf.Writer): $protobuf.Writer;
35240
35686
 
35241
35687
  /**
35242
- * Decodes a RecipeList message from the specified reader or buffer.
35688
+ * Decodes a Transaction message from the specified reader or buffer.
35243
35689
  * @param reader Reader or buffer to decode from
35244
35690
  * @param [length] Message length if known beforehand
35245
- * @returns RecipeList
35691
+ * @returns Transaction
35246
35692
  * @throws {Error} If the payload is not a reader or valid buffer
35247
35693
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
35248
35694
  */
35249
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.RecipeList;
35695
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.Transaction;
35250
35696
 
35251
35697
  /**
35252
- * Decodes a RecipeList message from the specified reader or buffer, length delimited.
35698
+ * Decodes a Transaction message from the specified reader or buffer, length delimited.
35253
35699
  * @param reader Reader or buffer to decode from
35254
- * @returns RecipeList
35700
+ * @returns Transaction
35255
35701
  * @throws {Error} If the payload is not a reader or valid buffer
35256
35702
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
35257
35703
  */
35258
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.RecipeList;
35704
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.Transaction;
35259
35705
 
35260
35706
  /**
35261
- * Verifies a RecipeList message.
35707
+ * Verifies a Transaction message.
35262
35708
  * @param message Plain object to verify
35263
35709
  * @returns `null` if valid, otherwise the reason why it is not
35264
35710
  */
35265
35711
  public static verify(message: { [k: string]: any }): (string|null);
35266
35712
 
35267
35713
  /**
35268
- * Creates a RecipeList message from a plain object. Also converts values to their respective internal types.
35714
+ * Creates a Transaction message from a plain object. Also converts values to their respective internal types.
35269
35715
  * @param object Plain object
35270
- * @returns RecipeList
35716
+ * @returns Transaction
35271
35717
  */
35272
- public static fromObject(object: { [k: string]: any }): google.spanner.v1.RecipeList;
35718
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.Transaction;
35273
35719
 
35274
35720
  /**
35275
- * Creates a plain object from a RecipeList message. Also converts values to other types if specified.
35276
- * @param message RecipeList
35721
+ * Creates a plain object from a Transaction message. Also converts values to other types if specified.
35722
+ * @param message Transaction
35277
35723
  * @param [options] Conversion options
35278
35724
  * @returns Plain object
35279
35725
  */
35280
- public static toObject(message: google.spanner.v1.RecipeList, options?: $protobuf.IConversionOptions): { [k: string]: any };
35726
+ public static toObject(message: google.spanner.v1.Transaction, options?: $protobuf.IConversionOptions): { [k: string]: any };
35281
35727
 
35282
35728
  /**
35283
- * Converts this RecipeList to JSON.
35729
+ * Converts this Transaction to JSON.
35284
35730
  * @returns JSON object
35285
35731
  */
35286
35732
  public toJSON(): { [k: string]: any };
35287
35733
 
35288
35734
  /**
35289
- * Gets the default type url for RecipeList
35735
+ * Gets the default type url for Transaction
35290
35736
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
35291
35737
  * @returns The default type url
35292
35738
  */
35293
35739
  public static getTypeUrl(typeUrlPrefix?: string): string;
35294
35740
  }
35295
35741
 
35296
- /** Properties of a CacheUpdate. */
35297
- interface ICacheUpdate {
35298
-
35299
- /** CacheUpdate databaseId */
35300
- databaseId?: (number|Long|string|null);
35742
+ /** Properties of a TransactionSelector. */
35743
+ interface ITransactionSelector {
35301
35744
 
35302
- /** CacheUpdate range */
35303
- range?: (google.spanner.v1.IRange[]|null);
35745
+ /** TransactionSelector singleUse */
35746
+ singleUse?: (google.spanner.v1.ITransactionOptions|null);
35304
35747
 
35305
- /** CacheUpdate group */
35306
- group?: (google.spanner.v1.IGroup[]|null);
35748
+ /** TransactionSelector id */
35749
+ id?: (Uint8Array|Buffer|string|null);
35307
35750
 
35308
- /** CacheUpdate keyRecipes */
35309
- keyRecipes?: (google.spanner.v1.IRecipeList|null);
35751
+ /** TransactionSelector begin */
35752
+ begin?: (google.spanner.v1.ITransactionOptions|null);
35310
35753
  }
35311
35754
 
35312
- /** Represents a CacheUpdate. */
35313
- class CacheUpdate implements ICacheUpdate {
35755
+ /** Represents a TransactionSelector. */
35756
+ class TransactionSelector implements ITransactionSelector {
35314
35757
 
35315
35758
  /**
35316
- * Constructs a new CacheUpdate.
35759
+ * Constructs a new TransactionSelector.
35317
35760
  * @param [properties] Properties to set
35318
35761
  */
35319
- constructor(properties?: google.spanner.v1.ICacheUpdate);
35762
+ constructor(properties?: google.spanner.v1.ITransactionSelector);
35320
35763
 
35321
- /** CacheUpdate databaseId. */
35322
- public databaseId: (number|Long|string);
35764
+ /** TransactionSelector singleUse. */
35765
+ public singleUse?: (google.spanner.v1.ITransactionOptions|null);
35323
35766
 
35324
- /** CacheUpdate range. */
35325
- public range: google.spanner.v1.IRange[];
35767
+ /** TransactionSelector id. */
35768
+ public id?: (Uint8Array|Buffer|string|null);
35326
35769
 
35327
- /** CacheUpdate group. */
35328
- public group: google.spanner.v1.IGroup[];
35770
+ /** TransactionSelector begin. */
35771
+ public begin?: (google.spanner.v1.ITransactionOptions|null);
35329
35772
 
35330
- /** CacheUpdate keyRecipes. */
35331
- public keyRecipes?: (google.spanner.v1.IRecipeList|null);
35773
+ /** TransactionSelector selector. */
35774
+ public selector?: ("singleUse"|"id"|"begin");
35332
35775
 
35333
35776
  /**
35334
- * Creates a new CacheUpdate instance using the specified properties.
35777
+ * Creates a new TransactionSelector instance using the specified properties.
35335
35778
  * @param [properties] Properties to set
35336
- * @returns CacheUpdate instance
35779
+ * @returns TransactionSelector instance
35337
35780
  */
35338
- public static create(properties?: google.spanner.v1.ICacheUpdate): google.spanner.v1.CacheUpdate;
35781
+ public static create(properties?: google.spanner.v1.ITransactionSelector): google.spanner.v1.TransactionSelector;
35339
35782
 
35340
35783
  /**
35341
- * Encodes the specified CacheUpdate message. Does not implicitly {@link google.spanner.v1.CacheUpdate.verify|verify} messages.
35342
- * @param message CacheUpdate message or plain object to encode
35784
+ * Encodes the specified TransactionSelector message. Does not implicitly {@link google.spanner.v1.TransactionSelector.verify|verify} messages.
35785
+ * @param message TransactionSelector message or plain object to encode
35343
35786
  * @param [writer] Writer to encode to
35344
35787
  * @returns Writer
35345
35788
  */
35346
- public static encode(message: google.spanner.v1.ICacheUpdate, writer?: $protobuf.Writer): $protobuf.Writer;
35789
+ public static encode(message: google.spanner.v1.ITransactionSelector, writer?: $protobuf.Writer): $protobuf.Writer;
35347
35790
 
35348
35791
  /**
35349
- * Encodes the specified CacheUpdate message, length delimited. Does not implicitly {@link google.spanner.v1.CacheUpdate.verify|verify} messages.
35350
- * @param message CacheUpdate message or plain object to encode
35792
+ * Encodes the specified TransactionSelector message, length delimited. Does not implicitly {@link google.spanner.v1.TransactionSelector.verify|verify} messages.
35793
+ * @param message TransactionSelector message or plain object to encode
35351
35794
  * @param [writer] Writer to encode to
35352
35795
  * @returns Writer
35353
35796
  */
35354
- public static encodeDelimited(message: google.spanner.v1.ICacheUpdate, writer?: $protobuf.Writer): $protobuf.Writer;
35797
+ public static encodeDelimited(message: google.spanner.v1.ITransactionSelector, writer?: $protobuf.Writer): $protobuf.Writer;
35355
35798
 
35356
35799
  /**
35357
- * Decodes a CacheUpdate message from the specified reader or buffer.
35800
+ * Decodes a TransactionSelector message from the specified reader or buffer.
35358
35801
  * @param reader Reader or buffer to decode from
35359
35802
  * @param [length] Message length if known beforehand
35360
- * @returns CacheUpdate
35803
+ * @returns TransactionSelector
35361
35804
  * @throws {Error} If the payload is not a reader or valid buffer
35362
35805
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
35363
35806
  */
35364
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.CacheUpdate;
35807
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.TransactionSelector;
35365
35808
 
35366
35809
  /**
35367
- * Decodes a CacheUpdate message from the specified reader or buffer, length delimited.
35810
+ * Decodes a TransactionSelector message from the specified reader or buffer, length delimited.
35368
35811
  * @param reader Reader or buffer to decode from
35369
- * @returns CacheUpdate
35812
+ * @returns TransactionSelector
35370
35813
  * @throws {Error} If the payload is not a reader or valid buffer
35371
35814
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
35372
35815
  */
35373
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.CacheUpdate;
35816
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.TransactionSelector;
35374
35817
 
35375
35818
  /**
35376
- * Verifies a CacheUpdate message.
35819
+ * Verifies a TransactionSelector message.
35377
35820
  * @param message Plain object to verify
35378
35821
  * @returns `null` if valid, otherwise the reason why it is not
35379
35822
  */
35380
35823
  public static verify(message: { [k: string]: any }): (string|null);
35381
35824
 
35382
35825
  /**
35383
- * Creates a CacheUpdate message from a plain object. Also converts values to their respective internal types.
35826
+ * Creates a TransactionSelector message from a plain object. Also converts values to their respective internal types.
35384
35827
  * @param object Plain object
35385
- * @returns CacheUpdate
35828
+ * @returns TransactionSelector
35386
35829
  */
35387
- public static fromObject(object: { [k: string]: any }): google.spanner.v1.CacheUpdate;
35830
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.TransactionSelector;
35388
35831
 
35389
35832
  /**
35390
- * Creates a plain object from a CacheUpdate message. Also converts values to other types if specified.
35391
- * @param message CacheUpdate
35833
+ * Creates a plain object from a TransactionSelector message. Also converts values to other types if specified.
35834
+ * @param message TransactionSelector
35392
35835
  * @param [options] Conversion options
35393
35836
  * @returns Plain object
35394
35837
  */
35395
- public static toObject(message: google.spanner.v1.CacheUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any };
35838
+ public static toObject(message: google.spanner.v1.TransactionSelector, options?: $protobuf.IConversionOptions): { [k: string]: any };
35396
35839
 
35397
35840
  /**
35398
- * Converts this CacheUpdate to JSON.
35841
+ * Converts this TransactionSelector to JSON.
35399
35842
  * @returns JSON object
35400
35843
  */
35401
35844
  public toJSON(): { [k: string]: any };
35402
35845
 
35403
- /**
35404
- * Gets the default type url for CacheUpdate
35405
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
35406
- * @returns The default type url
35407
- */
35408
- public static getTypeUrl(typeUrlPrefix?: string): string;
35409
- }
35410
-
35411
- /** Properties of a RoutingHint. */
35412
- interface IRoutingHint {
35413
-
35414
- /** RoutingHint operationUid */
35415
- operationUid?: (number|Long|string|null);
35416
-
35417
- /** RoutingHint databaseId */
35418
- databaseId?: (number|Long|string|null);
35419
-
35420
- /** RoutingHint schemaGeneration */
35421
- schemaGeneration?: (Uint8Array|Buffer|string|null);
35422
-
35423
- /** RoutingHint key */
35424
- key?: (Uint8Array|Buffer|string|null);
35425
-
35426
- /** RoutingHint limitKey */
35427
- limitKey?: (Uint8Array|Buffer|string|null);
35428
-
35429
- /** RoutingHint groupUid */
35430
- groupUid?: (number|Long|string|null);
35431
-
35432
- /** RoutingHint splitId */
35433
- splitId?: (number|Long|string|null);
35434
-
35435
- /** RoutingHint tabletUid */
35436
- tabletUid?: (number|Long|string|null);
35437
-
35438
- /** RoutingHint skippedTabletUid */
35439
- skippedTabletUid?: (google.spanner.v1.RoutingHint.ISkippedTablet[]|null);
35440
-
35441
- /** RoutingHint clientLocation */
35442
- clientLocation?: (string|null);
35443
- }
35444
-
35445
- /** Represents a RoutingHint. */
35446
- class RoutingHint implements IRoutingHint {
35447
-
35448
- /**
35449
- * Constructs a new RoutingHint.
35450
- * @param [properties] Properties to set
35451
- */
35452
- constructor(properties?: google.spanner.v1.IRoutingHint);
35453
-
35454
- /** RoutingHint operationUid. */
35455
- public operationUid: (number|Long|string);
35456
-
35457
- /** RoutingHint databaseId. */
35458
- public databaseId: (number|Long|string);
35459
-
35460
- /** RoutingHint schemaGeneration. */
35461
- public schemaGeneration: (Uint8Array|Buffer|string);
35846
+ /**
35847
+ * Gets the default type url for TransactionSelector
35848
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
35849
+ * @returns The default type url
35850
+ */
35851
+ public static getTypeUrl(typeUrlPrefix?: string): string;
35852
+ }
35462
35853
 
35463
- /** RoutingHint key. */
35464
- public key: (Uint8Array|Buffer|string);
35854
+ /** Properties of a MultiplexedSessionPrecommitToken. */
35855
+ interface IMultiplexedSessionPrecommitToken {
35465
35856
 
35466
- /** RoutingHint limitKey. */
35467
- public limitKey: (Uint8Array|Buffer|string);
35857
+ /** MultiplexedSessionPrecommitToken precommitToken */
35858
+ precommitToken?: (Uint8Array|Buffer|string|null);
35468
35859
 
35469
- /** RoutingHint groupUid. */
35470
- public groupUid: (number|Long|string);
35860
+ /** MultiplexedSessionPrecommitToken seqNum */
35861
+ seqNum?: (number|null);
35862
+ }
35471
35863
 
35472
- /** RoutingHint splitId. */
35473
- public splitId: (number|Long|string);
35864
+ /** Represents a MultiplexedSessionPrecommitToken. */
35865
+ class MultiplexedSessionPrecommitToken implements IMultiplexedSessionPrecommitToken {
35474
35866
 
35475
- /** RoutingHint tabletUid. */
35476
- public tabletUid: (number|Long|string);
35867
+ /**
35868
+ * Constructs a new MultiplexedSessionPrecommitToken.
35869
+ * @param [properties] Properties to set
35870
+ */
35871
+ constructor(properties?: google.spanner.v1.IMultiplexedSessionPrecommitToken);
35477
35872
 
35478
- /** RoutingHint skippedTabletUid. */
35479
- public skippedTabletUid: google.spanner.v1.RoutingHint.ISkippedTablet[];
35873
+ /** MultiplexedSessionPrecommitToken precommitToken. */
35874
+ public precommitToken: (Uint8Array|Buffer|string);
35480
35875
 
35481
- /** RoutingHint clientLocation. */
35482
- public clientLocation: string;
35876
+ /** MultiplexedSessionPrecommitToken seqNum. */
35877
+ public seqNum: number;
35483
35878
 
35484
35879
  /**
35485
- * Creates a new RoutingHint instance using the specified properties.
35880
+ * Creates a new MultiplexedSessionPrecommitToken instance using the specified properties.
35486
35881
  * @param [properties] Properties to set
35487
- * @returns RoutingHint instance
35882
+ * @returns MultiplexedSessionPrecommitToken instance
35488
35883
  */
35489
- public static create(properties?: google.spanner.v1.IRoutingHint): google.spanner.v1.RoutingHint;
35884
+ public static create(properties?: google.spanner.v1.IMultiplexedSessionPrecommitToken): google.spanner.v1.MultiplexedSessionPrecommitToken;
35490
35885
 
35491
35886
  /**
35492
- * Encodes the specified RoutingHint message. Does not implicitly {@link google.spanner.v1.RoutingHint.verify|verify} messages.
35493
- * @param message RoutingHint message or plain object to encode
35887
+ * Encodes the specified MultiplexedSessionPrecommitToken message. Does not implicitly {@link google.spanner.v1.MultiplexedSessionPrecommitToken.verify|verify} messages.
35888
+ * @param message MultiplexedSessionPrecommitToken message or plain object to encode
35494
35889
  * @param [writer] Writer to encode to
35495
35890
  * @returns Writer
35496
35891
  */
35497
- public static encode(message: google.spanner.v1.IRoutingHint, writer?: $protobuf.Writer): $protobuf.Writer;
35892
+ public static encode(message: google.spanner.v1.IMultiplexedSessionPrecommitToken, writer?: $protobuf.Writer): $protobuf.Writer;
35498
35893
 
35499
35894
  /**
35500
- * Encodes the specified RoutingHint message, length delimited. Does not implicitly {@link google.spanner.v1.RoutingHint.verify|verify} messages.
35501
- * @param message RoutingHint message or plain object to encode
35895
+ * Encodes the specified MultiplexedSessionPrecommitToken message, length delimited. Does not implicitly {@link google.spanner.v1.MultiplexedSessionPrecommitToken.verify|verify} messages.
35896
+ * @param message MultiplexedSessionPrecommitToken message or plain object to encode
35502
35897
  * @param [writer] Writer to encode to
35503
35898
  * @returns Writer
35504
35899
  */
35505
- public static encodeDelimited(message: google.spanner.v1.IRoutingHint, writer?: $protobuf.Writer): $protobuf.Writer;
35900
+ public static encodeDelimited(message: google.spanner.v1.IMultiplexedSessionPrecommitToken, writer?: $protobuf.Writer): $protobuf.Writer;
35506
35901
 
35507
35902
  /**
35508
- * Decodes a RoutingHint message from the specified reader or buffer.
35903
+ * Decodes a MultiplexedSessionPrecommitToken message from the specified reader or buffer.
35509
35904
  * @param reader Reader or buffer to decode from
35510
35905
  * @param [length] Message length if known beforehand
35511
- * @returns RoutingHint
35906
+ * @returns MultiplexedSessionPrecommitToken
35512
35907
  * @throws {Error} If the payload is not a reader or valid buffer
35513
35908
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
35514
35909
  */
35515
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.RoutingHint;
35910
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.MultiplexedSessionPrecommitToken;
35516
35911
 
35517
35912
  /**
35518
- * Decodes a RoutingHint message from the specified reader or buffer, length delimited.
35913
+ * Decodes a MultiplexedSessionPrecommitToken message from the specified reader or buffer, length delimited.
35519
35914
  * @param reader Reader or buffer to decode from
35520
- * @returns RoutingHint
35915
+ * @returns MultiplexedSessionPrecommitToken
35521
35916
  * @throws {Error} If the payload is not a reader or valid buffer
35522
35917
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
35523
35918
  */
35524
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.RoutingHint;
35919
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.MultiplexedSessionPrecommitToken;
35525
35920
 
35526
35921
  /**
35527
- * Verifies a RoutingHint message.
35922
+ * Verifies a MultiplexedSessionPrecommitToken message.
35528
35923
  * @param message Plain object to verify
35529
35924
  * @returns `null` if valid, otherwise the reason why it is not
35530
35925
  */
35531
35926
  public static verify(message: { [k: string]: any }): (string|null);
35532
35927
 
35533
35928
  /**
35534
- * Creates a RoutingHint message from a plain object. Also converts values to their respective internal types.
35929
+ * Creates a MultiplexedSessionPrecommitToken message from a plain object. Also converts values to their respective internal types.
35535
35930
  * @param object Plain object
35536
- * @returns RoutingHint
35931
+ * @returns MultiplexedSessionPrecommitToken
35537
35932
  */
35538
- public static fromObject(object: { [k: string]: any }): google.spanner.v1.RoutingHint;
35933
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.MultiplexedSessionPrecommitToken;
35539
35934
 
35540
35935
  /**
35541
- * Creates a plain object from a RoutingHint message. Also converts values to other types if specified.
35542
- * @param message RoutingHint
35936
+ * Creates a plain object from a MultiplexedSessionPrecommitToken message. Also converts values to other types if specified.
35937
+ * @param message MultiplexedSessionPrecommitToken
35543
35938
  * @param [options] Conversion options
35544
35939
  * @returns Plain object
35545
35940
  */
35546
- public static toObject(message: google.spanner.v1.RoutingHint, options?: $protobuf.IConversionOptions): { [k: string]: any };
35941
+ public static toObject(message: google.spanner.v1.MultiplexedSessionPrecommitToken, options?: $protobuf.IConversionOptions): { [k: string]: any };
35547
35942
 
35548
35943
  /**
35549
- * Converts this RoutingHint to JSON.
35944
+ * Converts this MultiplexedSessionPrecommitToken to JSON.
35550
35945
  * @returns JSON object
35551
35946
  */
35552
35947
  public toJSON(): { [k: string]: any };
35553
35948
 
35554
35949
  /**
35555
- * Gets the default type url for RoutingHint
35950
+ * Gets the default type url for MultiplexedSessionPrecommitToken
35556
35951
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
35557
35952
  * @returns The default type url
35558
35953
  */
35559
35954
  public static getTypeUrl(typeUrlPrefix?: string): string;
35560
35955
  }
35561
35956
 
35562
- namespace RoutingHint {
35563
-
35564
- /** Properties of a SkippedTablet. */
35565
- interface ISkippedTablet {
35566
-
35567
- /** SkippedTablet tabletUid */
35568
- tabletUid?: (number|Long|string|null);
35569
-
35570
- /** SkippedTablet incarnation */
35571
- incarnation?: (Uint8Array|Buffer|string|null);
35572
- }
35573
-
35574
- /** Represents a SkippedTablet. */
35575
- class SkippedTablet implements ISkippedTablet {
35576
-
35577
- /**
35578
- * Constructs a new SkippedTablet.
35579
- * @param [properties] Properties to set
35580
- */
35581
- constructor(properties?: google.spanner.v1.RoutingHint.ISkippedTablet);
35582
-
35583
- /** SkippedTablet tabletUid. */
35584
- public tabletUid: (number|Long|string);
35585
-
35586
- /** SkippedTablet incarnation. */
35587
- public incarnation: (Uint8Array|Buffer|string);
35588
-
35589
- /**
35590
- * Creates a new SkippedTablet instance using the specified properties.
35591
- * @param [properties] Properties to set
35592
- * @returns SkippedTablet instance
35593
- */
35594
- public static create(properties?: google.spanner.v1.RoutingHint.ISkippedTablet): google.spanner.v1.RoutingHint.SkippedTablet;
35595
-
35596
- /**
35597
- * Encodes the specified SkippedTablet message. Does not implicitly {@link google.spanner.v1.RoutingHint.SkippedTablet.verify|verify} messages.
35598
- * @param message SkippedTablet message or plain object to encode
35599
- * @param [writer] Writer to encode to
35600
- * @returns Writer
35601
- */
35602
- public static encode(message: google.spanner.v1.RoutingHint.ISkippedTablet, writer?: $protobuf.Writer): $protobuf.Writer;
35603
-
35604
- /**
35605
- * Encodes the specified SkippedTablet message, length delimited. Does not implicitly {@link google.spanner.v1.RoutingHint.SkippedTablet.verify|verify} messages.
35606
- * @param message SkippedTablet message or plain object to encode
35607
- * @param [writer] Writer to encode to
35608
- * @returns Writer
35609
- */
35610
- public static encodeDelimited(message: google.spanner.v1.RoutingHint.ISkippedTablet, writer?: $protobuf.Writer): $protobuf.Writer;
35611
-
35612
- /**
35613
- * Decodes a SkippedTablet message from the specified reader or buffer.
35614
- * @param reader Reader or buffer to decode from
35615
- * @param [length] Message length if known beforehand
35616
- * @returns SkippedTablet
35617
- * @throws {Error} If the payload is not a reader or valid buffer
35618
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
35619
- */
35620
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.RoutingHint.SkippedTablet;
35621
-
35622
- /**
35623
- * Decodes a SkippedTablet message from the specified reader or buffer, length delimited.
35624
- * @param reader Reader or buffer to decode from
35625
- * @returns SkippedTablet
35626
- * @throws {Error} If the payload is not a reader or valid buffer
35627
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
35628
- */
35629
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.RoutingHint.SkippedTablet;
35630
-
35631
- /**
35632
- * Verifies a SkippedTablet message.
35633
- * @param message Plain object to verify
35634
- * @returns `null` if valid, otherwise the reason why it is not
35635
- */
35636
- public static verify(message: { [k: string]: any }): (string|null);
35637
-
35638
- /**
35639
- * Creates a SkippedTablet message from a plain object. Also converts values to their respective internal types.
35640
- * @param object Plain object
35641
- * @returns SkippedTablet
35642
- */
35643
- public static fromObject(object: { [k: string]: any }): google.spanner.v1.RoutingHint.SkippedTablet;
35644
-
35645
- /**
35646
- * Creates a plain object from a SkippedTablet message. Also converts values to other types if specified.
35647
- * @param message SkippedTablet
35648
- * @param [options] Conversion options
35649
- * @returns Plain object
35650
- */
35651
- public static toObject(message: google.spanner.v1.RoutingHint.SkippedTablet, options?: $protobuf.IConversionOptions): { [k: string]: any };
35652
-
35653
- /**
35654
- * Converts this SkippedTablet to JSON.
35655
- * @returns JSON object
35656
- */
35657
- public toJSON(): { [k: string]: any };
35658
-
35659
- /**
35660
- * Gets the default type url for SkippedTablet
35661
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
35662
- * @returns The default type url
35663
- */
35664
- public static getTypeUrl(typeUrlPrefix?: string): string;
35665
- }
35666
- }
35667
-
35668
- /** Properties of a Type. */
35669
- interface IType {
35670
-
35671
- /** Type code */
35672
- code?: (google.spanner.v1.TypeCode|keyof typeof google.spanner.v1.TypeCode|null);
35957
+ /** Properties of a KeyRange. */
35958
+ interface IKeyRange {
35673
35959
 
35674
- /** Type arrayElementType */
35675
- arrayElementType?: (google.spanner.v1.IType|null);
35960
+ /** KeyRange startClosed */
35961
+ startClosed?: (google.protobuf.IListValue|null);
35676
35962
 
35677
- /** Type structType */
35678
- structType?: (google.spanner.v1.IStructType|null);
35963
+ /** KeyRange startOpen */
35964
+ startOpen?: (google.protobuf.IListValue|null);
35679
35965
 
35680
- /** Type typeAnnotation */
35681
- typeAnnotation?: (google.spanner.v1.TypeAnnotationCode|keyof typeof google.spanner.v1.TypeAnnotationCode|null);
35966
+ /** KeyRange endClosed */
35967
+ endClosed?: (google.protobuf.IListValue|null);
35682
35968
 
35683
- /** Type protoTypeFqn */
35684
- protoTypeFqn?: (string|null);
35969
+ /** KeyRange endOpen */
35970
+ endOpen?: (google.protobuf.IListValue|null);
35685
35971
  }
35686
35972
 
35687
- /** Represents a Type. */
35688
- class Type implements IType {
35973
+ /** Represents a KeyRange. */
35974
+ class KeyRange implements IKeyRange {
35689
35975
 
35690
35976
  /**
35691
- * Constructs a new Type.
35977
+ * Constructs a new KeyRange.
35692
35978
  * @param [properties] Properties to set
35693
35979
  */
35694
- constructor(properties?: google.spanner.v1.IType);
35980
+ constructor(properties?: google.spanner.v1.IKeyRange);
35695
35981
 
35696
- /** Type code. */
35697
- public code: (google.spanner.v1.TypeCode|keyof typeof google.spanner.v1.TypeCode);
35982
+ /** KeyRange startClosed. */
35983
+ public startClosed?: (google.protobuf.IListValue|null);
35698
35984
 
35699
- /** Type arrayElementType. */
35700
- public arrayElementType?: (google.spanner.v1.IType|null);
35985
+ /** KeyRange startOpen. */
35986
+ public startOpen?: (google.protobuf.IListValue|null);
35701
35987
 
35702
- /** Type structType. */
35703
- public structType?: (google.spanner.v1.IStructType|null);
35988
+ /** KeyRange endClosed. */
35989
+ public endClosed?: (google.protobuf.IListValue|null);
35704
35990
 
35705
- /** Type typeAnnotation. */
35706
- public typeAnnotation: (google.spanner.v1.TypeAnnotationCode|keyof typeof google.spanner.v1.TypeAnnotationCode);
35991
+ /** KeyRange endOpen. */
35992
+ public endOpen?: (google.protobuf.IListValue|null);
35707
35993
 
35708
- /** Type protoTypeFqn. */
35709
- public protoTypeFqn: string;
35994
+ /** KeyRange startKeyType. */
35995
+ public startKeyType?: ("startClosed"|"startOpen");
35996
+
35997
+ /** KeyRange endKeyType. */
35998
+ public endKeyType?: ("endClosed"|"endOpen");
35710
35999
 
35711
36000
  /**
35712
- * Creates a new Type instance using the specified properties.
36001
+ * Creates a new KeyRange instance using the specified properties.
35713
36002
  * @param [properties] Properties to set
35714
- * @returns Type instance
36003
+ * @returns KeyRange instance
35715
36004
  */
35716
- public static create(properties?: google.spanner.v1.IType): google.spanner.v1.Type;
36005
+ public static create(properties?: google.spanner.v1.IKeyRange): google.spanner.v1.KeyRange;
35717
36006
 
35718
- /**
35719
- * Encodes the specified Type message. Does not implicitly {@link google.spanner.v1.Type.verify|verify} messages.
35720
- * @param message Type message or plain object to encode
36007
+ /**
36008
+ * Encodes the specified KeyRange message. Does not implicitly {@link google.spanner.v1.KeyRange.verify|verify} messages.
36009
+ * @param message KeyRange message or plain object to encode
35721
36010
  * @param [writer] Writer to encode to
35722
36011
  * @returns Writer
35723
36012
  */
35724
- public static encode(message: google.spanner.v1.IType, writer?: $protobuf.Writer): $protobuf.Writer;
36013
+ public static encode(message: google.spanner.v1.IKeyRange, writer?: $protobuf.Writer): $protobuf.Writer;
35725
36014
 
35726
36015
  /**
35727
- * Encodes the specified Type message, length delimited. Does not implicitly {@link google.spanner.v1.Type.verify|verify} messages.
35728
- * @param message Type message or plain object to encode
36016
+ * Encodes the specified KeyRange message, length delimited. Does not implicitly {@link google.spanner.v1.KeyRange.verify|verify} messages.
36017
+ * @param message KeyRange message or plain object to encode
35729
36018
  * @param [writer] Writer to encode to
35730
36019
  * @returns Writer
35731
36020
  */
35732
- public static encodeDelimited(message: google.spanner.v1.IType, writer?: $protobuf.Writer): $protobuf.Writer;
36021
+ public static encodeDelimited(message: google.spanner.v1.IKeyRange, writer?: $protobuf.Writer): $protobuf.Writer;
35733
36022
 
35734
36023
  /**
35735
- * Decodes a Type message from the specified reader or buffer.
36024
+ * Decodes a KeyRange message from the specified reader or buffer.
35736
36025
  * @param reader Reader or buffer to decode from
35737
36026
  * @param [length] Message length if known beforehand
35738
- * @returns Type
36027
+ * @returns KeyRange
35739
36028
  * @throws {Error} If the payload is not a reader or valid buffer
35740
36029
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
35741
36030
  */
35742
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.Type;
36031
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.KeyRange;
35743
36032
 
35744
36033
  /**
35745
- * Decodes a Type message from the specified reader or buffer, length delimited.
36034
+ * Decodes a KeyRange message from the specified reader or buffer, length delimited.
35746
36035
  * @param reader Reader or buffer to decode from
35747
- * @returns Type
36036
+ * @returns KeyRange
35748
36037
  * @throws {Error} If the payload is not a reader or valid buffer
35749
36038
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
35750
36039
  */
35751
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.Type;
36040
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.KeyRange;
35752
36041
 
35753
36042
  /**
35754
- * Verifies a Type message.
36043
+ * Verifies a KeyRange message.
35755
36044
  * @param message Plain object to verify
35756
36045
  * @returns `null` if valid, otherwise the reason why it is not
35757
36046
  */
35758
36047
  public static verify(message: { [k: string]: any }): (string|null);
35759
36048
 
35760
36049
  /**
35761
- * Creates a Type message from a plain object. Also converts values to their respective internal types.
36050
+ * Creates a KeyRange message from a plain object. Also converts values to their respective internal types.
35762
36051
  * @param object Plain object
35763
- * @returns Type
36052
+ * @returns KeyRange
35764
36053
  */
35765
- public static fromObject(object: { [k: string]: any }): google.spanner.v1.Type;
36054
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.KeyRange;
35766
36055
 
35767
36056
  /**
35768
- * Creates a plain object from a Type message. Also converts values to other types if specified.
35769
- * @param message Type
36057
+ * Creates a plain object from a KeyRange message. Also converts values to other types if specified.
36058
+ * @param message KeyRange
35770
36059
  * @param [options] Conversion options
35771
36060
  * @returns Plain object
35772
36061
  */
35773
- public static toObject(message: google.spanner.v1.Type, options?: $protobuf.IConversionOptions): { [k: string]: any };
36062
+ public static toObject(message: google.spanner.v1.KeyRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
35774
36063
 
35775
36064
  /**
35776
- * Converts this Type to JSON.
36065
+ * Converts this KeyRange to JSON.
35777
36066
  * @returns JSON object
35778
36067
  */
35779
36068
  public toJSON(): { [k: string]: any };
35780
36069
 
35781
36070
  /**
35782
- * Gets the default type url for Type
36071
+ * Gets the default type url for KeyRange
35783
36072
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
35784
36073
  * @returns The default type url
35785
36074
  */
35786
36075
  public static getTypeUrl(typeUrlPrefix?: string): string;
35787
36076
  }
35788
36077
 
35789
- /** Properties of a StructType. */
35790
- interface IStructType {
36078
+ /** Properties of a KeySet. */
36079
+ interface IKeySet {
35791
36080
 
35792
- /** StructType fields */
35793
- fields?: (google.spanner.v1.StructType.IField[]|null);
36081
+ /** KeySet keys */
36082
+ keys?: (google.protobuf.IListValue[]|null);
36083
+
36084
+ /** KeySet ranges */
36085
+ ranges?: (google.spanner.v1.IKeyRange[]|null);
36086
+
36087
+ /** KeySet all */
36088
+ all?: (boolean|null);
35794
36089
  }
35795
36090
 
35796
- /** Represents a StructType. */
35797
- class StructType implements IStructType {
36091
+ /** Represents a KeySet. */
36092
+ class KeySet implements IKeySet {
35798
36093
 
35799
36094
  /**
35800
- * Constructs a new StructType.
36095
+ * Constructs a new KeySet.
35801
36096
  * @param [properties] Properties to set
35802
36097
  */
35803
- constructor(properties?: google.spanner.v1.IStructType);
36098
+ constructor(properties?: google.spanner.v1.IKeySet);
35804
36099
 
35805
- /** StructType fields. */
35806
- public fields: google.spanner.v1.StructType.IField[];
36100
+ /** KeySet keys. */
36101
+ public keys: google.protobuf.IListValue[];
36102
+
36103
+ /** KeySet ranges. */
36104
+ public ranges: google.spanner.v1.IKeyRange[];
36105
+
36106
+ /** KeySet all. */
36107
+ public all: boolean;
35807
36108
 
35808
36109
  /**
35809
- * Creates a new StructType instance using the specified properties.
36110
+ * Creates a new KeySet instance using the specified properties.
35810
36111
  * @param [properties] Properties to set
35811
- * @returns StructType instance
36112
+ * @returns KeySet instance
35812
36113
  */
35813
- public static create(properties?: google.spanner.v1.IStructType): google.spanner.v1.StructType;
36114
+ public static create(properties?: google.spanner.v1.IKeySet): google.spanner.v1.KeySet;
35814
36115
 
35815
36116
  /**
35816
- * Encodes the specified StructType message. Does not implicitly {@link google.spanner.v1.StructType.verify|verify} messages.
35817
- * @param message StructType message or plain object to encode
36117
+ * Encodes the specified KeySet message. Does not implicitly {@link google.spanner.v1.KeySet.verify|verify} messages.
36118
+ * @param message KeySet message or plain object to encode
35818
36119
  * @param [writer] Writer to encode to
35819
36120
  * @returns Writer
35820
36121
  */
35821
- public static encode(message: google.spanner.v1.IStructType, writer?: $protobuf.Writer): $protobuf.Writer;
36122
+ public static encode(message: google.spanner.v1.IKeySet, writer?: $protobuf.Writer): $protobuf.Writer;
35822
36123
 
35823
36124
  /**
35824
- * Encodes the specified StructType message, length delimited. Does not implicitly {@link google.spanner.v1.StructType.verify|verify} messages.
35825
- * @param message StructType message or plain object to encode
36125
+ * Encodes the specified KeySet message, length delimited. Does not implicitly {@link google.spanner.v1.KeySet.verify|verify} messages.
36126
+ * @param message KeySet message or plain object to encode
35826
36127
  * @param [writer] Writer to encode to
35827
36128
  * @returns Writer
35828
36129
  */
35829
- public static encodeDelimited(message: google.spanner.v1.IStructType, writer?: $protobuf.Writer): $protobuf.Writer;
36130
+ public static encodeDelimited(message: google.spanner.v1.IKeySet, writer?: $protobuf.Writer): $protobuf.Writer;
35830
36131
 
35831
36132
  /**
35832
- * Decodes a StructType message from the specified reader or buffer.
36133
+ * Decodes a KeySet message from the specified reader or buffer.
35833
36134
  * @param reader Reader or buffer to decode from
35834
36135
  * @param [length] Message length if known beforehand
35835
- * @returns StructType
36136
+ * @returns KeySet
35836
36137
  * @throws {Error} If the payload is not a reader or valid buffer
35837
36138
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
35838
36139
  */
35839
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.StructType;
36140
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.KeySet;
35840
36141
 
35841
36142
  /**
35842
- * Decodes a StructType message from the specified reader or buffer, length delimited.
36143
+ * Decodes a KeySet message from the specified reader or buffer, length delimited.
35843
36144
  * @param reader Reader or buffer to decode from
35844
- * @returns StructType
36145
+ * @returns KeySet
35845
36146
  * @throws {Error} If the payload is not a reader or valid buffer
35846
36147
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
35847
36148
  */
35848
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.StructType;
36149
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.KeySet;
35849
36150
 
35850
36151
  /**
35851
- * Verifies a StructType message.
36152
+ * Verifies a KeySet message.
35852
36153
  * @param message Plain object to verify
35853
36154
  * @returns `null` if valid, otherwise the reason why it is not
35854
36155
  */
35855
36156
  public static verify(message: { [k: string]: any }): (string|null);
35856
36157
 
35857
36158
  /**
35858
- * Creates a StructType message from a plain object. Also converts values to their respective internal types.
36159
+ * Creates a KeySet message from a plain object. Also converts values to their respective internal types.
35859
36160
  * @param object Plain object
35860
- * @returns StructType
36161
+ * @returns KeySet
35861
36162
  */
35862
- public static fromObject(object: { [k: string]: any }): google.spanner.v1.StructType;
36163
+ public static fromObject(object: { [k: string]: any }): google.spanner.v1.KeySet;
35863
36164
 
35864
36165
  /**
35865
- * Creates a plain object from a StructType message. Also converts values to other types if specified.
35866
- * @param message StructType
36166
+ * Creates a plain object from a KeySet message. Also converts values to other types if specified.
36167
+ * @param message KeySet
35867
36168
  * @param [options] Conversion options
35868
36169
  * @returns Plain object
35869
36170
  */
35870
- public static toObject(message: google.spanner.v1.StructType, options?: $protobuf.IConversionOptions): { [k: string]: any };
36171
+ public static toObject(message: google.spanner.v1.KeySet, options?: $protobuf.IConversionOptions): { [k: string]: any };
35871
36172
 
35872
36173
  /**
35873
- * Converts this StructType to JSON.
36174
+ * Converts this KeySet to JSON.
35874
36175
  * @returns JSON object
35875
36176
  */
35876
36177
  public toJSON(): { [k: string]: any };
35877
36178
 
35878
36179
  /**
35879
- * Gets the default type url for StructType
36180
+ * Gets the default type url for KeySet
35880
36181
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
35881
36182
  * @returns The default type url
35882
36183
  */
35883
36184
  public static getTypeUrl(typeUrlPrefix?: string): string;
35884
36185
  }
35885
36186
 
35886
- namespace StructType {
35887
-
35888
- /** Properties of a Field. */
35889
- interface IField {
35890
-
35891
- /** Field name */
35892
- name?: (string|null);
35893
-
35894
- /** Field type */
35895
- type?: (google.spanner.v1.IType|null);
35896
- }
35897
-
35898
- /** Represents a Field. */
35899
- class Field implements IField {
35900
-
35901
- /**
35902
- * Constructs a new Field.
35903
- * @param [properties] Properties to set
35904
- */
35905
- constructor(properties?: google.spanner.v1.StructType.IField);
35906
-
35907
- /** Field name. */
35908
- public name: string;
35909
-
35910
- /** Field type. */
35911
- public type?: (google.spanner.v1.IType|null);
35912
-
35913
- /**
35914
- * Creates a new Field instance using the specified properties.
35915
- * @param [properties] Properties to set
35916
- * @returns Field instance
35917
- */
35918
- public static create(properties?: google.spanner.v1.StructType.IField): google.spanner.v1.StructType.Field;
35919
-
35920
- /**
35921
- * Encodes the specified Field message. Does not implicitly {@link google.spanner.v1.StructType.Field.verify|verify} messages.
35922
- * @param message Field message or plain object to encode
35923
- * @param [writer] Writer to encode to
35924
- * @returns Writer
35925
- */
35926
- public static encode(message: google.spanner.v1.StructType.IField, writer?: $protobuf.Writer): $protobuf.Writer;
35927
-
35928
- /**
35929
- * Encodes the specified Field message, length delimited. Does not implicitly {@link google.spanner.v1.StructType.Field.verify|verify} messages.
35930
- * @param message Field message or plain object to encode
35931
- * @param [writer] Writer to encode to
35932
- * @returns Writer
35933
- */
35934
- public static encodeDelimited(message: google.spanner.v1.StructType.IField, writer?: $protobuf.Writer): $protobuf.Writer;
35935
-
35936
- /**
35937
- * Decodes a Field message from the specified reader or buffer.
35938
- * @param reader Reader or buffer to decode from
35939
- * @param [length] Message length if known beforehand
35940
- * @returns Field
35941
- * @throws {Error} If the payload is not a reader or valid buffer
35942
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
35943
- */
35944
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.v1.StructType.Field;
35945
-
35946
- /**
35947
- * Decodes a Field message from the specified reader or buffer, length delimited.
35948
- * @param reader Reader or buffer to decode from
35949
- * @returns Field
35950
- * @throws {Error} If the payload is not a reader or valid buffer
35951
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
35952
- */
35953
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.v1.StructType.Field;
35954
-
35955
- /**
35956
- * Verifies a Field message.
35957
- * @param message Plain object to verify
35958
- * @returns `null` if valid, otherwise the reason why it is not
35959
- */
35960
- public static verify(message: { [k: string]: any }): (string|null);
35961
-
35962
- /**
35963
- * Creates a Field message from a plain object. Also converts values to their respective internal types.
35964
- * @param object Plain object
35965
- * @returns Field
35966
- */
35967
- public static fromObject(object: { [k: string]: any }): google.spanner.v1.StructType.Field;
35968
-
35969
- /**
35970
- * Creates a plain object from a Field message. Also converts values to other types if specified.
35971
- * @param message Field
35972
- * @param [options] Conversion options
35973
- * @returns Plain object
35974
- */
35975
- public static toObject(message: google.spanner.v1.StructType.Field, options?: $protobuf.IConversionOptions): { [k: string]: any };
35976
-
35977
- /**
35978
- * Converts this Field to JSON.
35979
- * @returns JSON object
35980
- */
35981
- public toJSON(): { [k: string]: any };
35982
-
35983
- /**
35984
- * Gets the default type url for Field
35985
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
35986
- * @returns The default type url
35987
- */
35988
- public static getTypeUrl(typeUrlPrefix?: string): string;
35989
- }
35990
- }
35991
-
35992
- /** TypeCode enum. */
35993
- enum TypeCode {
35994
- TYPE_CODE_UNSPECIFIED = 0,
35995
- BOOL = 1,
35996
- INT64 = 2,
35997
- FLOAT64 = 3,
35998
- FLOAT32 = 15,
35999
- TIMESTAMP = 4,
36000
- DATE = 5,
36001
- STRING = 6,
36002
- BYTES = 7,
36003
- ARRAY = 8,
36004
- STRUCT = 9,
36005
- NUMERIC = 10,
36006
- JSON = 11,
36007
- PROTO = 13,
36008
- ENUM = 14,
36009
- INTERVAL = 16,
36010
- UUID = 17
36011
- }
36012
-
36013
- /** TypeAnnotationCode enum. */
36014
- enum TypeAnnotationCode {
36015
- TYPE_ANNOTATION_CODE_UNSPECIFIED = 0,
36016
- PG_NUMERIC = 2,
36017
- PG_JSONB = 3,
36018
- PG_OID = 4
36019
- }
36020
-
36021
36187
  /** Properties of a Mutation. */
36022
36188
  interface IMutation {
36023
36189