@google-cloud/spanner 5.16.2 → 5.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/README.md +25 -12
  3. package/build/protos/google/spanner/admin/database/v1/backup.proto +177 -9
  4. package/build/protos/google/spanner/admin/database/v1/common.proto +14 -2
  5. package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +40 -5
  6. package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +8 -5
  7. package/build/protos/google/spanner/v1/commit_response.proto +2 -4
  8. package/build/protos/google/spanner/v1/keys.proto +0 -1
  9. package/build/protos/google/spanner/v1/mutation.proto +5 -5
  10. package/build/protos/google/spanner/v1/query_plan.proto +18 -19
  11. package/build/protos/google/spanner/v1/result_set.proto +1 -1
  12. package/build/protos/google/spanner/v1/spanner.proto +21 -19
  13. package/build/protos/google/spanner/v1/transaction.proto +19 -32
  14. package/build/protos/google/spanner/v1/type.proto +33 -7
  15. package/build/protos/protos.d.ts +463 -64
  16. package/build/protos/protos.js +1267 -182
  17. package/build/protos/protos.json +221 -21
  18. package/build/src/backup.d.ts +22 -4
  19. package/build/src/backup.js +60 -29
  20. package/build/src/codec.d.ts +11 -0
  21. package/build/src/codec.js +41 -3
  22. package/build/src/database.d.ts +1 -1
  23. package/build/src/database.js +2 -2
  24. package/build/src/index.d.ts +20 -5
  25. package/build/src/index.js +26 -7
  26. package/build/src/instance.d.ts +44 -5
  27. package/build/src/instance.js +61 -6
  28. package/build/src/partial-result-stream.js +3 -0
  29. package/build/src/session-pool.d.ts +4 -4
  30. package/build/src/session-pool.js +6 -6
  31. package/build/src/transaction.js +1 -1
  32. package/build/src/v1/database_admin_client.d.ts +175 -10
  33. package/build/src/v1/database_admin_client.js +113 -11
  34. package/build/src/v1/database_admin_client_config.json +5 -0
  35. package/build/src/v1/instance_admin_client.js +2 -3
  36. package/build/src/v1/spanner_client.d.ts +1 -31
  37. package/build/src/v1/spanner_client.js +11 -9
  38. package/package.json +4 -4
@@ -5417,6 +5417,15 @@ export namespace google {
5417
5417
 
5418
5418
  /** Backup encryptionInfo */
5419
5419
  encryptionInfo?: (google.spanner.admin.database.v1.IEncryptionInfo|null);
5420
+
5421
+ /** Backup databaseDialect */
5422
+ databaseDialect?: (google.spanner.admin.database.v1.DatabaseDialect|keyof typeof google.spanner.admin.database.v1.DatabaseDialect|null);
5423
+
5424
+ /** Backup referencingBackups */
5425
+ referencingBackups?: (string[]|null);
5426
+
5427
+ /** Backup maxExpireTime */
5428
+ maxExpireTime?: (google.protobuf.ITimestamp|null);
5420
5429
  }
5421
5430
 
5422
5431
  /** Represents a Backup. */
@@ -5455,6 +5464,15 @@ export namespace google {
5455
5464
  /** Backup encryptionInfo. */
5456
5465
  public encryptionInfo?: (google.spanner.admin.database.v1.IEncryptionInfo|null);
5457
5466
 
5467
+ /** Backup databaseDialect. */
5468
+ public databaseDialect: (google.spanner.admin.database.v1.DatabaseDialect|keyof typeof google.spanner.admin.database.v1.DatabaseDialect);
5469
+
5470
+ /** Backup referencingBackups. */
5471
+ public referencingBackups: string[];
5472
+
5473
+ /** Backup maxExpireTime. */
5474
+ public maxExpireTime?: (google.protobuf.ITimestamp|null);
5475
+
5458
5476
  /**
5459
5477
  * Creates a new Backup instance using the specified properties.
5460
5478
  * @param [properties] Properties to set
@@ -5752,6 +5770,228 @@ export namespace google {
5752
5770
  public toJSON(): { [k: string]: any };
5753
5771
  }
5754
5772
 
5773
+ /** Properties of a CopyBackupRequest. */
5774
+ interface ICopyBackupRequest {
5775
+
5776
+ /** CopyBackupRequest parent */
5777
+ parent?: (string|null);
5778
+
5779
+ /** CopyBackupRequest backupId */
5780
+ backupId?: (string|null);
5781
+
5782
+ /** CopyBackupRequest sourceBackup */
5783
+ sourceBackup?: (string|null);
5784
+
5785
+ /** CopyBackupRequest expireTime */
5786
+ expireTime?: (google.protobuf.ITimestamp|null);
5787
+
5788
+ /** CopyBackupRequest encryptionConfig */
5789
+ encryptionConfig?: (google.spanner.admin.database.v1.ICopyBackupEncryptionConfig|null);
5790
+ }
5791
+
5792
+ /** Represents a CopyBackupRequest. */
5793
+ class CopyBackupRequest implements ICopyBackupRequest {
5794
+
5795
+ /**
5796
+ * Constructs a new CopyBackupRequest.
5797
+ * @param [properties] Properties to set
5798
+ */
5799
+ constructor(properties?: google.spanner.admin.database.v1.ICopyBackupRequest);
5800
+
5801
+ /** CopyBackupRequest parent. */
5802
+ public parent: string;
5803
+
5804
+ /** CopyBackupRequest backupId. */
5805
+ public backupId: string;
5806
+
5807
+ /** CopyBackupRequest sourceBackup. */
5808
+ public sourceBackup: string;
5809
+
5810
+ /** CopyBackupRequest expireTime. */
5811
+ public expireTime?: (google.protobuf.ITimestamp|null);
5812
+
5813
+ /** CopyBackupRequest encryptionConfig. */
5814
+ public encryptionConfig?: (google.spanner.admin.database.v1.ICopyBackupEncryptionConfig|null);
5815
+
5816
+ /**
5817
+ * Creates a new CopyBackupRequest instance using the specified properties.
5818
+ * @param [properties] Properties to set
5819
+ * @returns CopyBackupRequest instance
5820
+ */
5821
+ public static create(properties?: google.spanner.admin.database.v1.ICopyBackupRequest): google.spanner.admin.database.v1.CopyBackupRequest;
5822
+
5823
+ /**
5824
+ * Encodes the specified CopyBackupRequest message. Does not implicitly {@link google.spanner.admin.database.v1.CopyBackupRequest.verify|verify} messages.
5825
+ * @param message CopyBackupRequest message or plain object to encode
5826
+ * @param [writer] Writer to encode to
5827
+ * @returns Writer
5828
+ */
5829
+ public static encode(message: google.spanner.admin.database.v1.ICopyBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5830
+
5831
+ /**
5832
+ * Encodes the specified CopyBackupRequest message, length delimited. Does not implicitly {@link google.spanner.admin.database.v1.CopyBackupRequest.verify|verify} messages.
5833
+ * @param message CopyBackupRequest message or plain object to encode
5834
+ * @param [writer] Writer to encode to
5835
+ * @returns Writer
5836
+ */
5837
+ public static encodeDelimited(message: google.spanner.admin.database.v1.ICopyBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5838
+
5839
+ /**
5840
+ * Decodes a CopyBackupRequest message from the specified reader or buffer.
5841
+ * @param reader Reader or buffer to decode from
5842
+ * @param [length] Message length if known beforehand
5843
+ * @returns CopyBackupRequest
5844
+ * @throws {Error} If the payload is not a reader or valid buffer
5845
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5846
+ */
5847
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.admin.database.v1.CopyBackupRequest;
5848
+
5849
+ /**
5850
+ * Decodes a CopyBackupRequest message from the specified reader or buffer, length delimited.
5851
+ * @param reader Reader or buffer to decode from
5852
+ * @returns CopyBackupRequest
5853
+ * @throws {Error} If the payload is not a reader or valid buffer
5854
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5855
+ */
5856
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.admin.database.v1.CopyBackupRequest;
5857
+
5858
+ /**
5859
+ * Verifies a CopyBackupRequest message.
5860
+ * @param message Plain object to verify
5861
+ * @returns `null` if valid, otherwise the reason why it is not
5862
+ */
5863
+ public static verify(message: { [k: string]: any }): (string|null);
5864
+
5865
+ /**
5866
+ * Creates a CopyBackupRequest message from a plain object. Also converts values to their respective internal types.
5867
+ * @param object Plain object
5868
+ * @returns CopyBackupRequest
5869
+ */
5870
+ public static fromObject(object: { [k: string]: any }): google.spanner.admin.database.v1.CopyBackupRequest;
5871
+
5872
+ /**
5873
+ * Creates a plain object from a CopyBackupRequest message. Also converts values to other types if specified.
5874
+ * @param message CopyBackupRequest
5875
+ * @param [options] Conversion options
5876
+ * @returns Plain object
5877
+ */
5878
+ public static toObject(message: google.spanner.admin.database.v1.CopyBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
5879
+
5880
+ /**
5881
+ * Converts this CopyBackupRequest to JSON.
5882
+ * @returns JSON object
5883
+ */
5884
+ public toJSON(): { [k: string]: any };
5885
+ }
5886
+
5887
+ /** Properties of a CopyBackupMetadata. */
5888
+ interface ICopyBackupMetadata {
5889
+
5890
+ /** CopyBackupMetadata name */
5891
+ name?: (string|null);
5892
+
5893
+ /** CopyBackupMetadata sourceBackup */
5894
+ sourceBackup?: (string|null);
5895
+
5896
+ /** CopyBackupMetadata progress */
5897
+ progress?: (google.spanner.admin.database.v1.IOperationProgress|null);
5898
+
5899
+ /** CopyBackupMetadata cancelTime */
5900
+ cancelTime?: (google.protobuf.ITimestamp|null);
5901
+ }
5902
+
5903
+ /** Represents a CopyBackupMetadata. */
5904
+ class CopyBackupMetadata implements ICopyBackupMetadata {
5905
+
5906
+ /**
5907
+ * Constructs a new CopyBackupMetadata.
5908
+ * @param [properties] Properties to set
5909
+ */
5910
+ constructor(properties?: google.spanner.admin.database.v1.ICopyBackupMetadata);
5911
+
5912
+ /** CopyBackupMetadata name. */
5913
+ public name: string;
5914
+
5915
+ /** CopyBackupMetadata sourceBackup. */
5916
+ public sourceBackup: string;
5917
+
5918
+ /** CopyBackupMetadata progress. */
5919
+ public progress?: (google.spanner.admin.database.v1.IOperationProgress|null);
5920
+
5921
+ /** CopyBackupMetadata cancelTime. */
5922
+ public cancelTime?: (google.protobuf.ITimestamp|null);
5923
+
5924
+ /**
5925
+ * Creates a new CopyBackupMetadata instance using the specified properties.
5926
+ * @param [properties] Properties to set
5927
+ * @returns CopyBackupMetadata instance
5928
+ */
5929
+ public static create(properties?: google.spanner.admin.database.v1.ICopyBackupMetadata): google.spanner.admin.database.v1.CopyBackupMetadata;
5930
+
5931
+ /**
5932
+ * Encodes the specified CopyBackupMetadata message. Does not implicitly {@link google.spanner.admin.database.v1.CopyBackupMetadata.verify|verify} messages.
5933
+ * @param message CopyBackupMetadata message or plain object to encode
5934
+ * @param [writer] Writer to encode to
5935
+ * @returns Writer
5936
+ */
5937
+ public static encode(message: google.spanner.admin.database.v1.ICopyBackupMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
5938
+
5939
+ /**
5940
+ * Encodes the specified CopyBackupMetadata message, length delimited. Does not implicitly {@link google.spanner.admin.database.v1.CopyBackupMetadata.verify|verify} messages.
5941
+ * @param message CopyBackupMetadata message or plain object to encode
5942
+ * @param [writer] Writer to encode to
5943
+ * @returns Writer
5944
+ */
5945
+ public static encodeDelimited(message: google.spanner.admin.database.v1.ICopyBackupMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
5946
+
5947
+ /**
5948
+ * Decodes a CopyBackupMetadata message from the specified reader or buffer.
5949
+ * @param reader Reader or buffer to decode from
5950
+ * @param [length] Message length if known beforehand
5951
+ * @returns CopyBackupMetadata
5952
+ * @throws {Error} If the payload is not a reader or valid buffer
5953
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5954
+ */
5955
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.admin.database.v1.CopyBackupMetadata;
5956
+
5957
+ /**
5958
+ * Decodes a CopyBackupMetadata message from the specified reader or buffer, length delimited.
5959
+ * @param reader Reader or buffer to decode from
5960
+ * @returns CopyBackupMetadata
5961
+ * @throws {Error} If the payload is not a reader or valid buffer
5962
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5963
+ */
5964
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.admin.database.v1.CopyBackupMetadata;
5965
+
5966
+ /**
5967
+ * Verifies a CopyBackupMetadata message.
5968
+ * @param message Plain object to verify
5969
+ * @returns `null` if valid, otherwise the reason why it is not
5970
+ */
5971
+ public static verify(message: { [k: string]: any }): (string|null);
5972
+
5973
+ /**
5974
+ * Creates a CopyBackupMetadata message from a plain object. Also converts values to their respective internal types.
5975
+ * @param object Plain object
5976
+ * @returns CopyBackupMetadata
5977
+ */
5978
+ public static fromObject(object: { [k: string]: any }): google.spanner.admin.database.v1.CopyBackupMetadata;
5979
+
5980
+ /**
5981
+ * Creates a plain object from a CopyBackupMetadata message. Also converts values to other types if specified.
5982
+ * @param message CopyBackupMetadata
5983
+ * @param [options] Conversion options
5984
+ * @returns Plain object
5985
+ */
5986
+ public static toObject(message: google.spanner.admin.database.v1.CopyBackupMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
5987
+
5988
+ /**
5989
+ * Converts this CopyBackupMetadata to JSON.
5990
+ * @returns JSON object
5991
+ */
5992
+ public toJSON(): { [k: string]: any };
5993
+ }
5994
+
5755
5995
  /** Properties of an UpdateBackupRequest. */
5756
5996
  interface IUpdateBackupRequest {
5757
5997
 
@@ -6651,6 +6891,113 @@ export namespace google {
6651
6891
  }
6652
6892
  }
6653
6893
 
6894
+ /** Properties of a CopyBackupEncryptionConfig. */
6895
+ interface ICopyBackupEncryptionConfig {
6896
+
6897
+ /** CopyBackupEncryptionConfig encryptionType */
6898
+ encryptionType?: (google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType|keyof typeof google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType|null);
6899
+
6900
+ /** CopyBackupEncryptionConfig kmsKeyName */
6901
+ kmsKeyName?: (string|null);
6902
+ }
6903
+
6904
+ /** Represents a CopyBackupEncryptionConfig. */
6905
+ class CopyBackupEncryptionConfig implements ICopyBackupEncryptionConfig {
6906
+
6907
+ /**
6908
+ * Constructs a new CopyBackupEncryptionConfig.
6909
+ * @param [properties] Properties to set
6910
+ */
6911
+ constructor(properties?: google.spanner.admin.database.v1.ICopyBackupEncryptionConfig);
6912
+
6913
+ /** CopyBackupEncryptionConfig encryptionType. */
6914
+ public encryptionType: (google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType|keyof typeof google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType);
6915
+
6916
+ /** CopyBackupEncryptionConfig kmsKeyName. */
6917
+ public kmsKeyName: string;
6918
+
6919
+ /**
6920
+ * Creates a new CopyBackupEncryptionConfig instance using the specified properties.
6921
+ * @param [properties] Properties to set
6922
+ * @returns CopyBackupEncryptionConfig instance
6923
+ */
6924
+ public static create(properties?: google.spanner.admin.database.v1.ICopyBackupEncryptionConfig): google.spanner.admin.database.v1.CopyBackupEncryptionConfig;
6925
+
6926
+ /**
6927
+ * Encodes the specified CopyBackupEncryptionConfig message. Does not implicitly {@link google.spanner.admin.database.v1.CopyBackupEncryptionConfig.verify|verify} messages.
6928
+ * @param message CopyBackupEncryptionConfig message or plain object to encode
6929
+ * @param [writer] Writer to encode to
6930
+ * @returns Writer
6931
+ */
6932
+ public static encode(message: google.spanner.admin.database.v1.ICopyBackupEncryptionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
6933
+
6934
+ /**
6935
+ * Encodes the specified CopyBackupEncryptionConfig message, length delimited. Does not implicitly {@link google.spanner.admin.database.v1.CopyBackupEncryptionConfig.verify|verify} messages.
6936
+ * @param message CopyBackupEncryptionConfig message or plain object to encode
6937
+ * @param [writer] Writer to encode to
6938
+ * @returns Writer
6939
+ */
6940
+ public static encodeDelimited(message: google.spanner.admin.database.v1.ICopyBackupEncryptionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
6941
+
6942
+ /**
6943
+ * Decodes a CopyBackupEncryptionConfig message from the specified reader or buffer.
6944
+ * @param reader Reader or buffer to decode from
6945
+ * @param [length] Message length if known beforehand
6946
+ * @returns CopyBackupEncryptionConfig
6947
+ * @throws {Error} If the payload is not a reader or valid buffer
6948
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6949
+ */
6950
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.admin.database.v1.CopyBackupEncryptionConfig;
6951
+
6952
+ /**
6953
+ * Decodes a CopyBackupEncryptionConfig message from the specified reader or buffer, length delimited.
6954
+ * @param reader Reader or buffer to decode from
6955
+ * @returns CopyBackupEncryptionConfig
6956
+ * @throws {Error} If the payload is not a reader or valid buffer
6957
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6958
+ */
6959
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.admin.database.v1.CopyBackupEncryptionConfig;
6960
+
6961
+ /**
6962
+ * Verifies a CopyBackupEncryptionConfig message.
6963
+ * @param message Plain object to verify
6964
+ * @returns `null` if valid, otherwise the reason why it is not
6965
+ */
6966
+ public static verify(message: { [k: string]: any }): (string|null);
6967
+
6968
+ /**
6969
+ * Creates a CopyBackupEncryptionConfig message from a plain object. Also converts values to their respective internal types.
6970
+ * @param object Plain object
6971
+ * @returns CopyBackupEncryptionConfig
6972
+ */
6973
+ public static fromObject(object: { [k: string]: any }): google.spanner.admin.database.v1.CopyBackupEncryptionConfig;
6974
+
6975
+ /**
6976
+ * Creates a plain object from a CopyBackupEncryptionConfig message. Also converts values to other types if specified.
6977
+ * @param message CopyBackupEncryptionConfig
6978
+ * @param [options] Conversion options
6979
+ * @returns Plain object
6980
+ */
6981
+ public static toObject(message: google.spanner.admin.database.v1.CopyBackupEncryptionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
6982
+
6983
+ /**
6984
+ * Converts this CopyBackupEncryptionConfig to JSON.
6985
+ * @returns JSON object
6986
+ */
6987
+ public toJSON(): { [k: string]: any };
6988
+ }
6989
+
6990
+ namespace CopyBackupEncryptionConfig {
6991
+
6992
+ /** EncryptionType enum. */
6993
+ enum EncryptionType {
6994
+ ENCRYPTION_TYPE_UNSPECIFIED = 0,
6995
+ USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION = 1,
6996
+ GOOGLE_DEFAULT_ENCRYPTION = 2,
6997
+ CUSTOMER_MANAGED_ENCRYPTION = 3
6998
+ }
6999
+ }
7000
+
6654
7001
  /** Properties of an OperationProgress. */
6655
7002
  interface IOperationProgress {
6656
7003
 
@@ -6955,6 +7302,13 @@ export namespace google {
6955
7302
  }
6956
7303
  }
6957
7304
 
7305
+ /** DatabaseDialect enum. */
7306
+ enum DatabaseDialect {
7307
+ DATABASE_DIALECT_UNSPECIFIED = 0,
7308
+ GOOGLE_STANDARD_SQL = 1,
7309
+ POSTGRESQL = 2
7310
+ }
7311
+
6958
7312
  /** Represents a DatabaseAdmin */
6959
7313
  class DatabaseAdmin extends $protobuf.rpc.Service {
6960
7314
 
@@ -7115,6 +7469,20 @@ export namespace google {
7115
7469
  */
7116
7470
  public createBackup(request: google.spanner.admin.database.v1.ICreateBackupRequest): Promise<google.longrunning.Operation>;
7117
7471
 
7472
+ /**
7473
+ * Calls CopyBackup.
7474
+ * @param request CopyBackupRequest message or plain object
7475
+ * @param callback Node-style callback called with the error, if any, and Operation
7476
+ */
7477
+ public copyBackup(request: google.spanner.admin.database.v1.ICopyBackupRequest, callback: google.spanner.admin.database.v1.DatabaseAdmin.CopyBackupCallback): void;
7478
+
7479
+ /**
7480
+ * Calls CopyBackup.
7481
+ * @param request CopyBackupRequest message or plain object
7482
+ * @returns Promise
7483
+ */
7484
+ public copyBackup(request: google.spanner.admin.database.v1.ICopyBackupRequest): Promise<google.longrunning.Operation>;
7485
+
7118
7486
  /**
7119
7487
  * Calls GetBackup.
7120
7488
  * @param request GetBackupRequest message or plain object
@@ -7217,119 +7585,126 @@ export namespace google {
7217
7585
  namespace DatabaseAdmin {
7218
7586
 
7219
7587
  /**
7220
- * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin#listDatabases}.
7588
+ * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|listDatabases}.
7221
7589
  * @param error Error, if any
7222
7590
  * @param [response] ListDatabasesResponse
7223
7591
  */
7224
7592
  type ListDatabasesCallback = (error: (Error|null), response?: google.spanner.admin.database.v1.ListDatabasesResponse) => void;
7225
7593
 
7226
7594
  /**
7227
- * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin#createDatabase}.
7595
+ * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|createDatabase}.
7228
7596
  * @param error Error, if any
7229
7597
  * @param [response] Operation
7230
7598
  */
7231
7599
  type CreateDatabaseCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
7232
7600
 
7233
7601
  /**
7234
- * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin#getDatabase}.
7602
+ * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|getDatabase}.
7235
7603
  * @param error Error, if any
7236
7604
  * @param [response] Database
7237
7605
  */
7238
7606
  type GetDatabaseCallback = (error: (Error|null), response?: google.spanner.admin.database.v1.Database) => void;
7239
7607
 
7240
7608
  /**
7241
- * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin#updateDatabaseDdl}.
7609
+ * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|updateDatabaseDdl}.
7242
7610
  * @param error Error, if any
7243
7611
  * @param [response] Operation
7244
7612
  */
7245
7613
  type UpdateDatabaseDdlCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
7246
7614
 
7247
7615
  /**
7248
- * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin#dropDatabase}.
7616
+ * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|dropDatabase}.
7249
7617
  * @param error Error, if any
7250
7618
  * @param [response] Empty
7251
7619
  */
7252
7620
  type DropDatabaseCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
7253
7621
 
7254
7622
  /**
7255
- * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin#getDatabaseDdl}.
7623
+ * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|getDatabaseDdl}.
7256
7624
  * @param error Error, if any
7257
7625
  * @param [response] GetDatabaseDdlResponse
7258
7626
  */
7259
7627
  type GetDatabaseDdlCallback = (error: (Error|null), response?: google.spanner.admin.database.v1.GetDatabaseDdlResponse) => void;
7260
7628
 
7261
7629
  /**
7262
- * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin#setIamPolicy}.
7630
+ * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|setIamPolicy}.
7263
7631
  * @param error Error, if any
7264
7632
  * @param [response] Policy
7265
7633
  */
7266
7634
  type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void;
7267
7635
 
7268
7636
  /**
7269
- * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin#getIamPolicy}.
7637
+ * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|getIamPolicy}.
7270
7638
  * @param error Error, if any
7271
7639
  * @param [response] Policy
7272
7640
  */
7273
7641
  type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void;
7274
7642
 
7275
7643
  /**
7276
- * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin#testIamPermissions}.
7644
+ * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|testIamPermissions}.
7277
7645
  * @param error Error, if any
7278
7646
  * @param [response] TestIamPermissionsResponse
7279
7647
  */
7280
7648
  type TestIamPermissionsCallback = (error: (Error|null), response?: google.iam.v1.TestIamPermissionsResponse) => void;
7281
7649
 
7282
7650
  /**
7283
- * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin#createBackup}.
7651
+ * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|createBackup}.
7284
7652
  * @param error Error, if any
7285
7653
  * @param [response] Operation
7286
7654
  */
7287
7655
  type CreateBackupCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
7288
7656
 
7289
7657
  /**
7290
- * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin#getBackup}.
7658
+ * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|copyBackup}.
7659
+ * @param error Error, if any
7660
+ * @param [response] Operation
7661
+ */
7662
+ type CopyBackupCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
7663
+
7664
+ /**
7665
+ * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|getBackup}.
7291
7666
  * @param error Error, if any
7292
7667
  * @param [response] Backup
7293
7668
  */
7294
7669
  type GetBackupCallback = (error: (Error|null), response?: google.spanner.admin.database.v1.Backup) => void;
7295
7670
 
7296
7671
  /**
7297
- * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin#updateBackup}.
7672
+ * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|updateBackup}.
7298
7673
  * @param error Error, if any
7299
7674
  * @param [response] Backup
7300
7675
  */
7301
7676
  type UpdateBackupCallback = (error: (Error|null), response?: google.spanner.admin.database.v1.Backup) => void;
7302
7677
 
7303
7678
  /**
7304
- * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin#deleteBackup}.
7679
+ * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|deleteBackup}.
7305
7680
  * @param error Error, if any
7306
7681
  * @param [response] Empty
7307
7682
  */
7308
7683
  type DeleteBackupCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
7309
7684
 
7310
7685
  /**
7311
- * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin#listBackups}.
7686
+ * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|listBackups}.
7312
7687
  * @param error Error, if any
7313
7688
  * @param [response] ListBackupsResponse
7314
7689
  */
7315
7690
  type ListBackupsCallback = (error: (Error|null), response?: google.spanner.admin.database.v1.ListBackupsResponse) => void;
7316
7691
 
7317
7692
  /**
7318
- * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin#restoreDatabase}.
7693
+ * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|restoreDatabase}.
7319
7694
  * @param error Error, if any
7320
7695
  * @param [response] Operation
7321
7696
  */
7322
7697
  type RestoreDatabaseCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
7323
7698
 
7324
7699
  /**
7325
- * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin#listDatabaseOperations}.
7700
+ * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|listDatabaseOperations}.
7326
7701
  * @param error Error, if any
7327
7702
  * @param [response] ListDatabaseOperationsResponse
7328
7703
  */
7329
7704
  type ListDatabaseOperationsCallback = (error: (Error|null), response?: google.spanner.admin.database.v1.ListDatabaseOperationsResponse) => void;
7330
7705
 
7331
7706
  /**
7332
- * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin#listBackupOperations}.
7707
+ * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|listBackupOperations}.
7333
7708
  * @param error Error, if any
7334
7709
  * @param [response] ListBackupOperationsResponse
7335
7710
  */
@@ -7464,6 +7839,9 @@ export namespace google {
7464
7839
 
7465
7840
  /** Database defaultLeader */
7466
7841
  defaultLeader?: (string|null);
7842
+
7843
+ /** Database databaseDialect */
7844
+ databaseDialect?: (google.spanner.admin.database.v1.DatabaseDialect|keyof typeof google.spanner.admin.database.v1.DatabaseDialect|null);
7467
7845
  }
7468
7846
 
7469
7847
  /** Represents a Database. */
@@ -7502,6 +7880,9 @@ export namespace google {
7502
7880
  /** Database defaultLeader. */
7503
7881
  public defaultLeader: string;
7504
7882
 
7883
+ /** Database databaseDialect. */
7884
+ public databaseDialect: (google.spanner.admin.database.v1.DatabaseDialect|keyof typeof google.spanner.admin.database.v1.DatabaseDialect);
7885
+
7505
7886
  /**
7506
7887
  * Creates a new Database instance using the specified properties.
7507
7888
  * @param [properties] Properties to set
@@ -7796,6 +8177,9 @@ export namespace google {
7796
8177
 
7797
8178
  /** CreateDatabaseRequest encryptionConfig */
7798
8179
  encryptionConfig?: (google.spanner.admin.database.v1.IEncryptionConfig|null);
8180
+
8181
+ /** CreateDatabaseRequest databaseDialect */
8182
+ databaseDialect?: (google.spanner.admin.database.v1.DatabaseDialect|keyof typeof google.spanner.admin.database.v1.DatabaseDialect|null);
7799
8183
  }
7800
8184
 
7801
8185
  /** Represents a CreateDatabaseRequest. */
@@ -7819,6 +8203,9 @@ export namespace google {
7819
8203
  /** CreateDatabaseRequest encryptionConfig. */
7820
8204
  public encryptionConfig?: (google.spanner.admin.database.v1.IEncryptionConfig|null);
7821
8205
 
8206
+ /** CreateDatabaseRequest databaseDialect. */
8207
+ public databaseDialect: (google.spanner.admin.database.v1.DatabaseDialect|keyof typeof google.spanner.admin.database.v1.DatabaseDialect);
8208
+
7822
8209
  /**
7823
8210
  * Creates a new CreateDatabaseRequest instance using the specified properties.
7824
8211
  * @param [properties] Properties to set
@@ -9375,70 +9762,70 @@ export namespace google {
9375
9762
  namespace InstanceAdmin {
9376
9763
 
9377
9764
  /**
9378
- * Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin#listInstanceConfigs}.
9765
+ * Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|listInstanceConfigs}.
9379
9766
  * @param error Error, if any
9380
9767
  * @param [response] ListInstanceConfigsResponse
9381
9768
  */
9382
9769
  type ListInstanceConfigsCallback = (error: (Error|null), response?: google.spanner.admin.instance.v1.ListInstanceConfigsResponse) => void;
9383
9770
 
9384
9771
  /**
9385
- * Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin#getInstanceConfig}.
9772
+ * Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|getInstanceConfig}.
9386
9773
  * @param error Error, if any
9387
9774
  * @param [response] InstanceConfig
9388
9775
  */
9389
9776
  type GetInstanceConfigCallback = (error: (Error|null), response?: google.spanner.admin.instance.v1.InstanceConfig) => void;
9390
9777
 
9391
9778
  /**
9392
- * Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin#listInstances}.
9779
+ * Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|listInstances}.
9393
9780
  * @param error Error, if any
9394
9781
  * @param [response] ListInstancesResponse
9395
9782
  */
9396
9783
  type ListInstancesCallback = (error: (Error|null), response?: google.spanner.admin.instance.v1.ListInstancesResponse) => void;
9397
9784
 
9398
9785
  /**
9399
- * Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin#getInstance}.
9786
+ * Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|getInstance}.
9400
9787
  * @param error Error, if any
9401
9788
  * @param [response] Instance
9402
9789
  */
9403
9790
  type GetInstanceCallback = (error: (Error|null), response?: google.spanner.admin.instance.v1.Instance) => void;
9404
9791
 
9405
9792
  /**
9406
- * Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin#createInstance}.
9793
+ * Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|createInstance}.
9407
9794
  * @param error Error, if any
9408
9795
  * @param [response] Operation
9409
9796
  */
9410
9797
  type CreateInstanceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
9411
9798
 
9412
9799
  /**
9413
- * Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin#updateInstance}.
9800
+ * Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|updateInstance}.
9414
9801
  * @param error Error, if any
9415
9802
  * @param [response] Operation
9416
9803
  */
9417
9804
  type UpdateInstanceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
9418
9805
 
9419
9806
  /**
9420
- * Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin#deleteInstance}.
9807
+ * Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|deleteInstance}.
9421
9808
  * @param error Error, if any
9422
9809
  * @param [response] Empty
9423
9810
  */
9424
9811
  type DeleteInstanceCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
9425
9812
 
9426
9813
  /**
9427
- * Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin#setIamPolicy}.
9814
+ * Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|setIamPolicy}.
9428
9815
  * @param error Error, if any
9429
9816
  * @param [response] Policy
9430
9817
  */
9431
9818
  type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void;
9432
9819
 
9433
9820
  /**
9434
- * Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin#getIamPolicy}.
9821
+ * Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|getIamPolicy}.
9435
9822
  * @param error Error, if any
9436
9823
  * @param [response] Policy
9437
9824
  */
9438
9825
  type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void;
9439
9826
 
9440
9827
  /**
9441
- * Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin#testIamPermissions}.
9828
+ * Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|testIamPermissions}.
9442
9829
  * @param error Error, if any
9443
9830
  * @param [response] TestIamPermissionsResponse
9444
9831
  */
@@ -11757,6 +12144,13 @@ export namespace google {
11757
12144
 
11758
12145
  namespace PlanNode {
11759
12146
 
12147
+ /** Kind enum. */
12148
+ enum Kind {
12149
+ KIND_UNSPECIFIED = 0,
12150
+ RELATIONAL = 1,
12151
+ SCALAR = 2
12152
+ }
12153
+
11760
12154
  /** Properties of a ChildLink. */
11761
12155
  interface IChildLink {
11762
12156
 
@@ -11954,13 +12348,6 @@ export namespace google {
11954
12348
  */
11955
12349
  public toJSON(): { [k: string]: any };
11956
12350
  }
11957
-
11958
- /** Kind enum. */
11959
- enum Kind {
11960
- KIND_UNSPECIFIED = 0,
11961
- RELATIONAL = 1,
11962
- SCALAR = 2
11963
- }
11964
12351
  }
11965
12352
 
11966
12353
  /** Properties of a QueryPlan. */
@@ -13087,6 +13474,9 @@ export namespace google {
13087
13474
 
13088
13475
  /** Type structType */
13089
13476
  structType?: (google.spanner.v1.IStructType|null);
13477
+
13478
+ /** Type typeAnnotation */
13479
+ typeAnnotation?: (google.spanner.v1.TypeAnnotationCode|keyof typeof google.spanner.v1.TypeAnnotationCode|null);
13090
13480
  }
13091
13481
 
13092
13482
  /** Represents a Type. */
@@ -13107,6 +13497,9 @@ export namespace google {
13107
13497
  /** Type structType. */
13108
13498
  public structType?: (google.spanner.v1.IStructType|null);
13109
13499
 
13500
+ /** Type typeAnnotation. */
13501
+ public typeAnnotation: (google.spanner.v1.TypeAnnotationCode|keyof typeof google.spanner.v1.TypeAnnotationCode);
13502
+
13110
13503
  /**
13111
13504
  * Creates a new Type instance using the specified properties.
13112
13505
  * @param [properties] Properties to set
@@ -13383,6 +13776,12 @@ export namespace google {
13383
13776
  JSON = 11
13384
13777
  }
13385
13778
 
13779
+ /** TypeAnnotationCode enum. */
13780
+ enum TypeAnnotationCode {
13781
+ TYPE_ANNOTATION_CODE_UNSPECIFIED = 0,
13782
+ PG_NUMERIC = 2
13783
+ }
13784
+
13386
13785
  /** Represents a Spanner */
13387
13786
  class Spanner extends $protobuf.rpc.Service {
13388
13787
 
@@ -13617,105 +14016,105 @@ export namespace google {
13617
14016
  namespace Spanner {
13618
14017
 
13619
14018
  /**
13620
- * Callback as used by {@link google.spanner.v1.Spanner#createSession}.
14019
+ * Callback as used by {@link google.spanner.v1.Spanner|createSession}.
13621
14020
  * @param error Error, if any
13622
14021
  * @param [response] Session
13623
14022
  */
13624
14023
  type CreateSessionCallback = (error: (Error|null), response?: google.spanner.v1.Session) => void;
13625
14024
 
13626
14025
  /**
13627
- * Callback as used by {@link google.spanner.v1.Spanner#batchCreateSessions}.
14026
+ * Callback as used by {@link google.spanner.v1.Spanner|batchCreateSessions}.
13628
14027
  * @param error Error, if any
13629
14028
  * @param [response] BatchCreateSessionsResponse
13630
14029
  */
13631
14030
  type BatchCreateSessionsCallback = (error: (Error|null), response?: google.spanner.v1.BatchCreateSessionsResponse) => void;
13632
14031
 
13633
14032
  /**
13634
- * Callback as used by {@link google.spanner.v1.Spanner#getSession}.
14033
+ * Callback as used by {@link google.spanner.v1.Spanner|getSession}.
13635
14034
  * @param error Error, if any
13636
14035
  * @param [response] Session
13637
14036
  */
13638
14037
  type GetSessionCallback = (error: (Error|null), response?: google.spanner.v1.Session) => void;
13639
14038
 
13640
14039
  /**
13641
- * Callback as used by {@link google.spanner.v1.Spanner#listSessions}.
14040
+ * Callback as used by {@link google.spanner.v1.Spanner|listSessions}.
13642
14041
  * @param error Error, if any
13643
14042
  * @param [response] ListSessionsResponse
13644
14043
  */
13645
14044
  type ListSessionsCallback = (error: (Error|null), response?: google.spanner.v1.ListSessionsResponse) => void;
13646
14045
 
13647
14046
  /**
13648
- * Callback as used by {@link google.spanner.v1.Spanner#deleteSession}.
14047
+ * Callback as used by {@link google.spanner.v1.Spanner|deleteSession}.
13649
14048
  * @param error Error, if any
13650
14049
  * @param [response] Empty
13651
14050
  */
13652
14051
  type DeleteSessionCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
13653
14052
 
13654
14053
  /**
13655
- * Callback as used by {@link google.spanner.v1.Spanner#executeSql}.
14054
+ * Callback as used by {@link google.spanner.v1.Spanner|executeSql}.
13656
14055
  * @param error Error, if any
13657
14056
  * @param [response] ResultSet
13658
14057
  */
13659
14058
  type ExecuteSqlCallback = (error: (Error|null), response?: google.spanner.v1.ResultSet) => void;
13660
14059
 
13661
14060
  /**
13662
- * Callback as used by {@link google.spanner.v1.Spanner#executeStreamingSql}.
14061
+ * Callback as used by {@link google.spanner.v1.Spanner|executeStreamingSql}.
13663
14062
  * @param error Error, if any
13664
14063
  * @param [response] PartialResultSet
13665
14064
  */
13666
14065
  type ExecuteStreamingSqlCallback = (error: (Error|null), response?: google.spanner.v1.PartialResultSet) => void;
13667
14066
 
13668
14067
  /**
13669
- * Callback as used by {@link google.spanner.v1.Spanner#executeBatchDml}.
14068
+ * Callback as used by {@link google.spanner.v1.Spanner|executeBatchDml}.
13670
14069
  * @param error Error, if any
13671
14070
  * @param [response] ExecuteBatchDmlResponse
13672
14071
  */
13673
14072
  type ExecuteBatchDmlCallback = (error: (Error|null), response?: google.spanner.v1.ExecuteBatchDmlResponse) => void;
13674
14073
 
13675
14074
  /**
13676
- * Callback as used by {@link google.spanner.v1.Spanner#read}.
14075
+ * Callback as used by {@link google.spanner.v1.Spanner|read}.
13677
14076
  * @param error Error, if any
13678
14077
  * @param [response] ResultSet
13679
14078
  */
13680
14079
  type ReadCallback = (error: (Error|null), response?: google.spanner.v1.ResultSet) => void;
13681
14080
 
13682
14081
  /**
13683
- * Callback as used by {@link google.spanner.v1.Spanner#streamingRead}.
14082
+ * Callback as used by {@link google.spanner.v1.Spanner|streamingRead}.
13684
14083
  * @param error Error, if any
13685
14084
  * @param [response] PartialResultSet
13686
14085
  */
13687
14086
  type StreamingReadCallback = (error: (Error|null), response?: google.spanner.v1.PartialResultSet) => void;
13688
14087
 
13689
14088
  /**
13690
- * Callback as used by {@link google.spanner.v1.Spanner#beginTransaction}.
14089
+ * Callback as used by {@link google.spanner.v1.Spanner|beginTransaction}.
13691
14090
  * @param error Error, if any
13692
14091
  * @param [response] Transaction
13693
14092
  */
13694
14093
  type BeginTransactionCallback = (error: (Error|null), response?: google.spanner.v1.Transaction) => void;
13695
14094
 
13696
14095
  /**
13697
- * Callback as used by {@link google.spanner.v1.Spanner#commit}.
14096
+ * Callback as used by {@link google.spanner.v1.Spanner|commit}.
13698
14097
  * @param error Error, if any
13699
14098
  * @param [response] CommitResponse
13700
14099
  */
13701
14100
  type CommitCallback = (error: (Error|null), response?: google.spanner.v1.CommitResponse) => void;
13702
14101
 
13703
14102
  /**
13704
- * Callback as used by {@link google.spanner.v1.Spanner#rollback}.
14103
+ * Callback as used by {@link google.spanner.v1.Spanner|rollback}.
13705
14104
  * @param error Error, if any
13706
14105
  * @param [response] Empty
13707
14106
  */
13708
14107
  type RollbackCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
13709
14108
 
13710
14109
  /**
13711
- * Callback as used by {@link google.spanner.v1.Spanner#partitionQuery}.
14110
+ * Callback as used by {@link google.spanner.v1.Spanner|partitionQuery}.
13712
14111
  * @param error Error, if any
13713
14112
  * @param [response] PartitionResponse
13714
14113
  */
13715
14114
  type PartitionQueryCallback = (error: (Error|null), response?: google.spanner.v1.PartitionResponse) => void;
13716
14115
 
13717
14116
  /**
13718
- * Callback as used by {@link google.spanner.v1.Spanner#partitionRead}.
14117
+ * Callback as used by {@link google.spanner.v1.Spanner|partitionRead}.
13719
14118
  * @param error Error, if any
13720
14119
  * @param [response] PartitionResponse
13721
14120
  */
@@ -14767,6 +15166,13 @@ export namespace google {
14767
15166
 
14768
15167
  namespace ExecuteSqlRequest {
14769
15168
 
15169
+ /** QueryMode enum. */
15170
+ enum QueryMode {
15171
+ NORMAL = 0,
15172
+ PLAN = 1,
15173
+ PROFILE = 2
15174
+ }
15175
+
14770
15176
  /** Properties of a QueryOptions. */
14771
15177
  interface IQueryOptions {
14772
15178
 
@@ -14862,13 +15268,6 @@ export namespace google {
14862
15268
  */
14863
15269
  public toJSON(): { [k: string]: any };
14864
15270
  }
14865
-
14866
- /** QueryMode enum. */
14867
- enum QueryMode {
14868
- NORMAL = 0,
14869
- PLAN = 1,
14870
- PROFILE = 2
14871
- }
14872
15271
  }
14873
15272
 
14874
15273
  /** Properties of an ExecuteBatchDmlRequest. */
@@ -16871,35 +17270,35 @@ export namespace google {
16871
17270
  namespace Operations {
16872
17271
 
16873
17272
  /**
16874
- * Callback as used by {@link google.longrunning.Operations#listOperations}.
17273
+ * Callback as used by {@link google.longrunning.Operations|listOperations}.
16875
17274
  * @param error Error, if any
16876
17275
  * @param [response] ListOperationsResponse
16877
17276
  */
16878
17277
  type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void;
16879
17278
 
16880
17279
  /**
16881
- * Callback as used by {@link google.longrunning.Operations#getOperation}.
17280
+ * Callback as used by {@link google.longrunning.Operations|getOperation}.
16882
17281
  * @param error Error, if any
16883
17282
  * @param [response] Operation
16884
17283
  */
16885
17284
  type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
16886
17285
 
16887
17286
  /**
16888
- * Callback as used by {@link google.longrunning.Operations#deleteOperation}.
17287
+ * Callback as used by {@link google.longrunning.Operations|deleteOperation}.
16889
17288
  * @param error Error, if any
16890
17289
  * @param [response] Empty
16891
17290
  */
16892
17291
  type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
16893
17292
 
16894
17293
  /**
16895
- * Callback as used by {@link google.longrunning.Operations#cancelOperation}.
17294
+ * Callback as used by {@link google.longrunning.Operations|cancelOperation}.
16896
17295
  * @param error Error, if any
16897
17296
  * @param [response] Empty
16898
17297
  */
16899
17298
  type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
16900
17299
 
16901
17300
  /**
16902
- * Callback as used by {@link google.longrunning.Operations#waitOperation}.
17301
+ * Callback as used by {@link google.longrunning.Operations|waitOperation}.
16903
17302
  * @param error Error, if any
16904
17303
  * @param [response] Operation
16905
17304
  */
@@ -17762,21 +18161,21 @@ export namespace google {
17762
18161
  namespace IAMPolicy {
17763
18162
 
17764
18163
  /**
17765
- * Callback as used by {@link google.iam.v1.IAMPolicy#setIamPolicy}.
18164
+ * Callback as used by {@link google.iam.v1.IAMPolicy|setIamPolicy}.
17766
18165
  * @param error Error, if any
17767
18166
  * @param [response] Policy
17768
18167
  */
17769
18168
  type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void;
17770
18169
 
17771
18170
  /**
17772
- * Callback as used by {@link google.iam.v1.IAMPolicy#getIamPolicy}.
18171
+ * Callback as used by {@link google.iam.v1.IAMPolicy|getIamPolicy}.
17773
18172
  * @param error Error, if any
17774
18173
  * @param [response] Policy
17775
18174
  */
17776
18175
  type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void;
17777
18176
 
17778
18177
  /**
17779
- * Callback as used by {@link google.iam.v1.IAMPolicy#testIamPermissions}.
18178
+ * Callback as used by {@link google.iam.v1.IAMPolicy|testIamPermissions}.
17780
18179
  * @param error Error, if any
17781
18180
  * @param [response] TestIamPermissionsResponse
17782
18181
  */