@google-cloud/spanner 7.2.0 → 7.3.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.
@@ -34,6 +34,21 @@
34
34
  }
35
35
  }
36
36
  },
37
+ "Edition": {
38
+ "values": {
39
+ "EDITION_UNKNOWN": 0,
40
+ "EDITION_PROTO2": 998,
41
+ "EDITION_PROTO3": 999,
42
+ "EDITION_2023": 1000,
43
+ "EDITION_2024": 1001,
44
+ "EDITION_1_TEST_ONLY": 1,
45
+ "EDITION_2_TEST_ONLY": 2,
46
+ "EDITION_99997_TEST_ONLY": 99997,
47
+ "EDITION_99998_TEST_ONLY": 99998,
48
+ "EDITION_99999_TEST_ONLY": 99999,
49
+ "EDITION_MAX": 2147483647
50
+ }
51
+ },
37
52
  "FileDescriptorProto": {
38
53
  "fields": {
39
54
  "name": {
@@ -98,8 +113,8 @@
98
113
  "id": 12
99
114
  },
100
115
  "edition": {
101
- "type": "string",
102
- "id": 13
116
+ "type": "Edition",
117
+ "id": 14
103
118
  }
104
119
  }
105
120
  },
@@ -208,7 +223,8 @@
208
223
  "type": "VerificationState",
209
224
  "id": 3,
210
225
  "options": {
211
- "default": "UNVERIFIED"
226
+ "default": "UNVERIFIED",
227
+ "retention": "RETENTION_SOURCE"
212
228
  }
213
229
  }
214
230
  },
@@ -330,8 +346,8 @@
330
346
  "Label": {
331
347
  "values": {
332
348
  "LABEL_OPTIONAL": 1,
333
- "LABEL_REQUIRED": 2,
334
- "LABEL_REPEATED": 3
349
+ "LABEL_REPEATED": 3,
350
+ "LABEL_REQUIRED": 2
335
351
  }
336
352
  }
337
353
  }
@@ -519,13 +535,6 @@
519
535
  "default": false
520
536
  }
521
537
  },
522
- "phpGenericServices": {
523
- "type": "bool",
524
- "id": 42,
525
- "options": {
526
- "default": false
527
- }
528
- },
529
538
  "deprecated": {
530
539
  "type": "bool",
531
540
  "id": 23,
@@ -585,6 +594,10 @@
585
594
  ]
586
595
  ],
587
596
  "reserved": [
597
+ [
598
+ 42,
599
+ 42
600
+ ],
588
601
  [
589
602
  38,
590
603
  38
@@ -810,8 +823,8 @@
810
823
  "EditionDefault": {
811
824
  "fields": {
812
825
  "edition": {
813
- "type": "string",
814
- "id": 1
826
+ "type": "Edition",
827
+ "id": 3
815
828
  },
816
829
  "value": {
817
830
  "type": "string",
@@ -1041,7 +1054,7 @@
1041
1054
  "options": {
1042
1055
  "retention": "RETENTION_RUNTIME",
1043
1056
  "targets": "TARGET_TYPE_FILE",
1044
- "edition_defaults.edition": "2023",
1057
+ "edition_defaults.edition": "EDITION_2023",
1045
1058
  "edition_defaults.value": "EXPLICIT"
1046
1059
  }
1047
1060
  },
@@ -1051,7 +1064,7 @@
1051
1064
  "options": {
1052
1065
  "retention": "RETENTION_RUNTIME",
1053
1066
  "targets": "TARGET_TYPE_FILE",
1054
- "edition_defaults.edition": "2023",
1067
+ "edition_defaults.edition": "EDITION_PROTO3",
1055
1068
  "edition_defaults.value": "OPEN"
1056
1069
  }
1057
1070
  },
@@ -1061,18 +1074,18 @@
1061
1074
  "options": {
1062
1075
  "retention": "RETENTION_RUNTIME",
1063
1076
  "targets": "TARGET_TYPE_FILE",
1064
- "edition_defaults.edition": "2023",
1077
+ "edition_defaults.edition": "EDITION_PROTO3",
1065
1078
  "edition_defaults.value": "PACKED"
1066
1079
  }
1067
1080
  },
1068
- "stringFieldValidation": {
1069
- "type": "StringFieldValidation",
1081
+ "utf8Validation": {
1082
+ "type": "Utf8Validation",
1070
1083
  "id": 4,
1071
1084
  "options": {
1072
1085
  "retention": "RETENTION_RUNTIME",
1073
1086
  "targets": "TARGET_TYPE_FILE",
1074
- "edition_defaults.edition": "2023",
1075
- "edition_defaults.value": "MANDATORY"
1087
+ "edition_defaults.edition": "EDITION_PROTO3",
1088
+ "edition_defaults.value": "VERIFY"
1076
1089
  }
1077
1090
  },
1078
1091
  "messageEncoding": {
@@ -1081,7 +1094,7 @@
1081
1094
  "options": {
1082
1095
  "retention": "RETENTION_RUNTIME",
1083
1096
  "targets": "TARGET_TYPE_FILE",
1084
- "edition_defaults.edition": "2023",
1097
+ "edition_defaults.edition": "EDITION_PROTO2",
1085
1098
  "edition_defaults.value": "LENGTH_PREFIXED"
1086
1099
  }
1087
1100
  },
@@ -1091,16 +1104,9 @@
1091
1104
  "options": {
1092
1105
  "retention": "RETENTION_RUNTIME",
1093
1106
  "targets": "TARGET_TYPE_FILE",
1094
- "edition_defaults.edition": "2023",
1107
+ "edition_defaults.edition": "EDITION_PROTO3",
1095
1108
  "edition_defaults.value": "ALLOW"
1096
1109
  }
1097
- },
1098
- "rawFeatures": {
1099
- "type": "FeatureSet",
1100
- "id": 999,
1101
- "options": {
1102
- "targets": "TARGET_TYPE_UNKNOWN"
1103
- }
1104
1110
  }
1105
1111
  },
1106
1112
  "extensions": [
@@ -1117,6 +1123,12 @@
1117
1123
  9999
1118
1124
  ]
1119
1125
  ],
1126
+ "reserved": [
1127
+ [
1128
+ 999,
1129
+ 999
1130
+ ]
1131
+ ],
1120
1132
  "nested": {
1121
1133
  "FieldPresence": {
1122
1134
  "values": {
@@ -1140,11 +1152,10 @@
1140
1152
  "EXPANDED": 2
1141
1153
  }
1142
1154
  },
1143
- "StringFieldValidation": {
1155
+ "Utf8Validation": {
1144
1156
  "values": {
1145
- "STRING_FIELD_VALIDATION_UNKNOWN": 0,
1146
- "MANDATORY": 1,
1147
- "HINT": 2,
1157
+ "UTF8_VALIDATION_UNKNOWN": 0,
1158
+ "VERIFY": 2,
1148
1159
  "NONE": 3
1149
1160
  }
1150
1161
  },
@@ -1164,6 +1175,37 @@
1164
1175
  }
1165
1176
  }
1166
1177
  },
1178
+ "FeatureSetDefaults": {
1179
+ "fields": {
1180
+ "defaults": {
1181
+ "rule": "repeated",
1182
+ "type": "FeatureSetEditionDefault",
1183
+ "id": 1
1184
+ },
1185
+ "minimumEdition": {
1186
+ "type": "Edition",
1187
+ "id": 4
1188
+ },
1189
+ "maximumEdition": {
1190
+ "type": "Edition",
1191
+ "id": 5
1192
+ }
1193
+ },
1194
+ "nested": {
1195
+ "FeatureSetEditionDefault": {
1196
+ "fields": {
1197
+ "edition": {
1198
+ "type": "Edition",
1199
+ "id": 3
1200
+ },
1201
+ "features": {
1202
+ "type": "FeatureSet",
1203
+ "id": 2
1204
+ }
1205
+ }
1206
+ }
1207
+ }
1208
+ },
1167
1209
  "SourceCodeInfo": {
1168
1210
  "fields": {
1169
1211
  "location": {
@@ -2715,6 +2757,13 @@
2715
2757
  "options": {
2716
2758
  "(google.api.field_behavior)": "OPTIONAL"
2717
2759
  }
2760
+ },
2761
+ "protoDescriptors": {
2762
+ "type": "bytes",
2763
+ "id": 6,
2764
+ "options": {
2765
+ "(google.api.field_behavior)": "OPTIONAL"
2766
+ }
2718
2767
  }
2719
2768
  }
2720
2769
  },
@@ -2796,6 +2845,13 @@
2796
2845
  "operationId": {
2797
2846
  "type": "string",
2798
2847
  "id": 3
2848
+ },
2849
+ "protoDescriptors": {
2850
+ "type": "bytes",
2851
+ "id": 4,
2852
+ "options": {
2853
+ "(google.api.field_behavior)": "OPTIONAL"
2854
+ }
2799
2855
  }
2800
2856
  }
2801
2857
  },
@@ -2884,6 +2940,10 @@
2884
2940
  "rule": "repeated",
2885
2941
  "type": "string",
2886
2942
  "id": 1
2943
+ },
2944
+ "protoDescriptors": {
2945
+ "type": "bytes",
2946
+ "id": 2
2887
2947
  }
2888
2948
  }
2889
2949
  },
@@ -4523,6 +4583,10 @@
4523
4583
  "typeAnnotation": {
4524
4584
  "type": "TypeAnnotationCode",
4525
4585
  "id": 4
4586
+ },
4587
+ "protoTypeFqn": {
4588
+ "type": "string",
4589
+ "id": 5
4526
4590
  }
4527
4591
  }
4528
4592
  },
@@ -4555,6 +4619,7 @@
4555
4619
  "BOOL": 1,
4556
4620
  "INT64": 2,
4557
4621
  "FLOAT64": 3,
4622
+ "FLOAT32": 15,
4558
4623
  "TIMESTAMP": 4,
4559
4624
  "DATE": 5,
4560
4625
  "STRING": 6,
@@ -4562,7 +4627,9 @@
4562
4627
  "ARRAY": 8,
4563
4628
  "STRUCT": 9,
4564
4629
  "NUMERIC": 10,
4565
- "JSON": 11
4630
+ "JSON": 11,
4631
+ "PROTO": 13,
4632
+ "ENUM": 14
4566
4633
  }
4567
4634
  },
4568
4635
  "TypeAnnotationCode": {
@@ -5508,6 +5575,13 @@
5508
5575
  "type": "bool",
5509
5576
  "id": 5
5510
5577
  },
5578
+ "maxCommitDelay": {
5579
+ "type": "google.protobuf.Duration",
5580
+ "id": 8,
5581
+ "options": {
5582
+ "(google.api.field_behavior)": "OPTIONAL"
5583
+ }
5584
+ },
5511
5585
  "requestOptions": {
5512
5586
  "type": "RequestOptions",
5513
5587
  "id": 6
@@ -5617,7 +5691,8 @@
5617
5691
  "INPUT_ONLY": 4,
5618
5692
  "IMMUTABLE": 5,
5619
5693
  "UNORDERED_LIST": 6,
5620
- "NON_EMPTY_DEFAULT": 7
5694
+ "NON_EMPTY_DEFAULT": 7,
5695
+ "IDENTIFIER": 8
5621
5696
  }
5622
5697
  },
5623
5698
  "resourceReference": {
@@ -6018,6 +6093,11 @@
6018
6093
  "longRunning": {
6019
6094
  "type": "LongRunning",
6020
6095
  "id": 2
6096
+ },
6097
+ "autoPopulatedFields": {
6098
+ "rule": "repeated",
6099
+ "type": "string",
6100
+ "id": 3
6021
6101
  }
6022
6102
  },
6023
6103
  "nested": {
@@ -165,7 +165,8 @@ class Spanner extends service_1.GrpcService {
165
165
  const config = {
166
166
  baseUrl: options.apiEndpoint ||
167
167
  options.servicePath ||
168
- v1.SpannerClient.servicePath,
168
+ // TODO: for TPC, this needs to support universeDomain
169
+ 'spanner.googleapis.com',
169
170
  protosDir: path.resolve(__dirname, '../protos'),
170
171
  protoServices: {
171
172
  Operations: {
@@ -49,6 +49,7 @@ export interface RequestOptions {
49
49
  export interface CommitOptions {
50
50
  requestOptions?: Pick<IRequestOptions, 'priority'>;
51
51
  returnCommitStats?: boolean;
52
+ maxCommitDelay?: spannerClient.protobuf.IDuration;
52
53
  gaxOptions?: CallOptions;
53
54
  }
54
55
  export interface Statement {
@@ -720,7 +721,7 @@ export declare class Snapshot extends EventEmitter {
720
721
  * execution statistics for the SQL statement that
721
722
  * produced this result set.
722
723
  * @property {string} partitionToken The partition token.
723
- * @property {number} seqno The Sequence number.
724
+ * @property {number} seqno The Sequence number. This option is used internally and will be overridden.
724
725
  * @property {string} sql The SQL string.
725
726
  * @property {google.spanner.v1.ExecuteSqlRequest.IQueryOptions} [queryOptions]
726
727
  * Default query options to use with the database. These options will be
@@ -1083,6 +1084,9 @@ export declare class Transaction extends Dml {
1083
1084
  * with the commit request.
1084
1085
  * @property {boolean} returnCommitStats Include statistics related to the
1085
1086
  * transaction in the {@link CommitResponse}.
1087
+ * @property {spannerClient.proto.IDuration} maxCommitDelay Maximum amount
1088
+ * of delay the commit is willing to incur in order to improve
1089
+ * throughput. Value should be between 0ms and 500ms.
1086
1090
  * @property {object} [gaxOptions] The request configuration options,
1087
1091
  * See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions}
1088
1092
  * for more details.
@@ -517,7 +517,7 @@ class Snapshot extends events_1.EventEmitter {
517
517
  * execution statistics for the SQL statement that
518
518
  * produced this result set.
519
519
  * @property {string} partitionToken The partition token.
520
- * @property {number} seqno The Sequence number.
520
+ * @property {number} seqno The Sequence number. This option is used internally and will be overridden.
521
521
  * @property {string} sql The SQL string.
522
522
  * @property {google.spanner.v1.ExecuteSqlRequest.IQueryOptions} [queryOptions]
523
523
  * Default query options to use with the database. These options will be
@@ -1104,6 +1104,10 @@ class Transaction extends Dml {
1104
1104
  options.returnCommitStats) {
1105
1105
  reqOpts.returnCommitStats = options.returnCommitStats;
1106
1106
  }
1107
+ if ('maxCommitDelay' in options &&
1108
+ options.maxCommitDelay) {
1109
+ reqOpts.maxCommitDelay = options.maxCommitDelay;
1110
+ }
1107
1111
  reqOpts.requestOptions = Object.assign(requestOptions || {}, this.requestOptions);
1108
1112
  const headers = this.resourceHeader_;
1109
1113
  if (this._getSpanner().routeToLeaderEnabled) {
@@ -22,6 +22,8 @@ export declare class DatabaseAdminClient {
22
22
  private _gaxGrpc;
23
23
  private _protos;
24
24
  private _defaults;
25
+ private _universeDomain;
26
+ private _servicePath;
25
27
  auth: gax.GoogleAuth;
26
28
  descriptors: Descriptors;
27
29
  warn: (code: string, message: string, warnType?: string) => void;
@@ -91,15 +93,22 @@ export declare class DatabaseAdminClient {
91
93
  }>;
92
94
  /**
93
95
  * The DNS address for this API service.
96
+ * @deprecated Use the apiEndpoint method of the client instance.
94
97
  * @returns {string} The DNS address for this service.
95
98
  */
96
99
  static get servicePath(): string;
97
100
  /**
98
- * The DNS address for this API service - same as servicePath(),
99
- * exists for compatibility reasons.
101
+ * The DNS address for this API service - same as servicePath.
102
+ * @deprecated Use the apiEndpoint method of the client instance.
100
103
  * @returns {string} The DNS address for this service.
101
104
  */
102
105
  static get apiEndpoint(): string;
106
+ /**
107
+ * The DNS address for this API service.
108
+ * @returns {string} The DNS address for this service.
109
+ */
110
+ get apiEndpoint(): string;
111
+ get universeDomain(): string;
103
112
  /**
104
113
  * The port for this API service.
105
114
  * @returns {number} The default port for this service.
@@ -400,6 +409,22 @@ export declare class DatabaseAdminClient {
400
409
  * Google default encryption.
401
410
  * @param {google.spanner.admin.database.v1.DatabaseDialect} [request.databaseDialect]
402
411
  * Optional. The dialect of the Cloud Spanner Database.
412
+ * @param {Buffer} [request.protoDescriptors]
413
+ * Optional. Proto descriptors used by CREATE/ALTER PROTO BUNDLE statements in
414
+ * 'extra_statements' above.
415
+ * Contains a protobuf-serialized
416
+ * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto).
417
+ * To generate it, [install](https://grpc.io/docs/protoc-installation/) and
418
+ * run `protoc` with --include_imports and --descriptor_set_out. For example,
419
+ * to generate for moon/shot/app.proto, run
420
+ * ```
421
+ * $protoc --proto_path=/app_path --proto_path=/lib_path \
422
+ * --include_imports \
423
+ * --descriptor_set_out=descriptors.data \
424
+ * moon/shot/app.proto
425
+ * ```
426
+ * For more details, see protobuffer [self
427
+ * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description).
403
428
  * @param {object} [options]
404
429
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
405
430
  * @returns {Promise} - The promise which resolves to an array.
@@ -534,6 +559,21 @@ export declare class DatabaseAdminClient {
534
559
  * underscore. If the named operation already exists,
535
560
  * {@link protos.google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl|UpdateDatabaseDdl} returns
536
561
  * `ALREADY_EXISTS`.
562
+ * @param {Buffer} [request.protoDescriptors]
563
+ * Optional. Proto descriptors used by CREATE/ALTER PROTO BUNDLE statements.
564
+ * Contains a protobuf-serialized
565
+ * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto).
566
+ * To generate it, [install](https://grpc.io/docs/protoc-installation/) and
567
+ * run `protoc` with --include_imports and --descriptor_set_out. For example,
568
+ * to generate for moon/shot/app.proto, run
569
+ * ```
570
+ * $protoc --proto_path=/app_path --proto_path=/lib_path \
571
+ * --include_imports \
572
+ * --descriptor_set_out=descriptors.data \
573
+ * moon/shot/app.proto
574
+ * ```
575
+ * For more details, see protobuffer [self
576
+ * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description).
537
577
  * @param {object} [options]
538
578
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
539
579
  * @returns {Promise} - The promise which resolves to an array.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2023 Google LLC
2
+ // Copyright 2024 Google LLC
3
3
  //
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // you may not use this file except in compliance with the License.
@@ -78,7 +78,7 @@ class DatabaseAdminClient {
78
78
  * ```
79
79
  */
80
80
  constructor(opts, gaxInstance) {
81
- var _a, _b;
81
+ var _a, _b, _c, _d;
82
82
  this._terminated = false;
83
83
  this.descriptors = {
84
84
  page: {},
@@ -88,16 +88,24 @@ class DatabaseAdminClient {
88
88
  };
89
89
  // Ensure that options include all the required fields.
90
90
  const staticMembers = this.constructor;
91
- const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || staticMembers.servicePath;
91
+ if ((opts === null || opts === void 0 ? void 0 : opts.universe_domain) &&
92
+ (opts === null || opts === void 0 ? void 0 : opts.universeDomain) &&
93
+ (opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
94
+ throw new Error('Please set either universe_domain or universeDomain, but not both.');
95
+ }
96
+ this._universeDomain =
97
+ (_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : 'googleapis.com';
98
+ this._servicePath = 'spanner.' + this._universeDomain;
99
+ const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
92
100
  this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
93
101
  const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
94
- const clientConfig = (_a = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _a !== void 0 ? _a : {};
95
- const fallback = (_b = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _b !== void 0 ? _b : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
102
+ const clientConfig = (_c = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _c !== void 0 ? _c : {};
103
+ const fallback = (_d = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _d !== void 0 ? _d : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
96
104
  opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
97
105
  // Request numeric enum values if REST transport is used.
98
106
  opts.numericEnums = true;
99
107
  // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
100
- if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) {
108
+ if (servicePath !== this._servicePath && !('scopes' in opts)) {
101
109
  opts['scopes'] = staticMembers.scopes;
102
110
  }
103
111
  // Load google-gax module synchronously if needed
@@ -115,9 +123,9 @@ class DatabaseAdminClient {
115
123
  // Set useJWTAccessWithScope on the auth object.
116
124
  this.auth.useJWTAccessWithScope = true;
117
125
  // Set defaultServicePath on the auth object.
118
- this.auth.defaultServicePath = staticMembers.servicePath;
126
+ this.auth.defaultServicePath = this._servicePath;
119
127
  // Set the default scopes in auth client if needed.
120
- if (servicePath === staticMembers.servicePath) {
128
+ if (servicePath === this._servicePath) {
121
129
  this.auth.defaultScopes = staticMembers.scopes;
122
130
  }
123
131
  // Determine the client header string.
@@ -312,19 +320,38 @@ class DatabaseAdminClient {
312
320
  }
313
321
  /**
314
322
  * The DNS address for this API service.
323
+ * @deprecated Use the apiEndpoint method of the client instance.
315
324
  * @returns {string} The DNS address for this service.
316
325
  */
317
326
  static get servicePath() {
327
+ if (typeof process !== undefined &&
328
+ typeof process.emitWarning === 'function') {
329
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
330
+ }
318
331
  return 'spanner.googleapis.com';
319
332
  }
320
333
  /**
321
- * The DNS address for this API service - same as servicePath(),
322
- * exists for compatibility reasons.
334
+ * The DNS address for this API service - same as servicePath.
335
+ * @deprecated Use the apiEndpoint method of the client instance.
323
336
  * @returns {string} The DNS address for this service.
324
337
  */
325
338
  static get apiEndpoint() {
339
+ if (typeof process !== undefined &&
340
+ typeof process.emitWarning === 'function') {
341
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
342
+ }
326
343
  return 'spanner.googleapis.com';
327
344
  }
345
+ /**
346
+ * The DNS address for this API service.
347
+ * @returns {string} The DNS address for this service.
348
+ */
349
+ get apiEndpoint() {
350
+ return this._servicePath;
351
+ }
352
+ get universeDomain() {
353
+ return this._universeDomain;
354
+ }
328
355
  /**
329
356
  * The port for this API service.
330
357
  * @returns {number} The default port for this service.
@@ -36,6 +36,8 @@ export declare class InstanceAdminClient {
36
36
  private _gaxGrpc;
37
37
  private _protos;
38
38
  private _defaults;
39
+ private _universeDomain;
40
+ private _servicePath;
39
41
  auth: gax.GoogleAuth;
40
42
  descriptors: Descriptors;
41
43
  warn: (code: string, message: string, warnType?: string) => void;
@@ -105,15 +107,22 @@ export declare class InstanceAdminClient {
105
107
  }>;
106
108
  /**
107
109
  * The DNS address for this API service.
110
+ * @deprecated Use the apiEndpoint method of the client instance.
108
111
  * @returns {string} The DNS address for this service.
109
112
  */
110
113
  static get servicePath(): string;
111
114
  /**
112
- * The DNS address for this API service - same as servicePath(),
113
- * exists for compatibility reasons.
115
+ * The DNS address for this API service - same as servicePath.
116
+ * @deprecated Use the apiEndpoint method of the client instance.
114
117
  * @returns {string} The DNS address for this service.
115
118
  */
116
119
  static get apiEndpoint(): string;
120
+ /**
121
+ * The DNS address for this API service.
122
+ * @returns {string} The DNS address for this service.
123
+ */
124
+ get apiEndpoint(): string;
125
+ get universeDomain(): string;
117
126
  /**
118
127
  * The port for this API service.
119
128
  * @returns {number} The default port for this service.