@google-cloud/discoveryengine 1.4.1 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +2 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +35 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +20 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +19 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +64 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +312 -21
- package/build/protos/google/cloud/discoveryengine/v1alpha/rank_service.proto +115 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +153 -23
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +5 -2
- package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config_service.proto +2 -1
- package/build/protos/protos.d.ts +2743 -221
- package/build/protos/protos.js +10286 -3762
- package/build/protos/protos.json +595 -5
- package/build/src/v1/completion_service_client.js +10 -7
- package/build/src/v1/conversational_search_service_client.js +10 -7
- package/build/src/v1/data_store_service_client.js +10 -7
- package/build/src/v1/document_service_client.js +10 -7
- package/build/src/v1/engine_service_client.js +10 -7
- package/build/src/v1/schema_service_client.js +10 -7
- package/build/src/v1/search_service_client.js +10 -7
- package/build/src/v1/site_search_engine_service_client.js +10 -7
- package/build/src/v1/user_event_service_client.js +10 -7
- package/build/src/v1alpha/acl_config_service_client.js +10 -7
- package/build/src/v1alpha/chunk_service_client.js +10 -7
- package/build/src/v1alpha/completion_service_client.js +13 -7
- package/build/src/v1alpha/conversational_search_service_client.js +10 -7
- package/build/src/v1alpha/data_store_service_client.js +13 -7
- package/build/src/v1alpha/document_service_client.d.ts +80 -21
- package/build/src/v1alpha/document_service_client.js +35 -7
- package/build/src/v1alpha/document_service_client_config.json +5 -0
- package/build/src/v1alpha/engine_service_client.js +13 -7
- package/build/src/v1alpha/estimate_billing_service_client.js +13 -7
- package/build/src/v1alpha/index.d.ts +1 -0
- package/build/src/v1alpha/index.js +3 -1
- package/build/src/v1alpha/rank_service_client.d.ts +1254 -0
- package/build/src/v1alpha/rank_service_client.js +1796 -0
- package/build/src/v1alpha/rank_service_client_config.json +30 -0
- package/build/src/v1alpha/recommendation_service_client.js +10 -7
- package/build/src/v1alpha/schema_service_client.js +13 -7
- package/build/src/v1alpha/search_service_client.d.ts +30 -15
- package/build/src/v1alpha/search_service_client.js +30 -17
- package/build/src/v1alpha/search_tuning_service_client.js +13 -7
- package/build/src/v1alpha/serving_config_service_client.d.ts +2 -1
- package/build/src/v1alpha/serving_config_service_client.js +12 -8
- package/build/src/v1alpha/site_search_engine_service_client.js +13 -7
- package/build/src/v1alpha/user_event_service_client.js +13 -7
- package/build/src/v1beta/completion_service_client.js +10 -7
- package/build/src/v1beta/conversational_search_service_client.js +10 -7
- package/build/src/v1beta/data_store_service_client.js +10 -7
- package/build/src/v1beta/document_service_client.js +10 -7
- package/build/src/v1beta/engine_service_client.js +10 -7
- package/build/src/v1beta/recommendation_service_client.js +10 -7
- package/build/src/v1beta/schema_service_client.js +10 -7
- package/build/src/v1beta/search_service_client.js +10 -7
- package/build/src/v1beta/search_tuning_service_client.js +10 -7
- package/build/src/v1beta/serving_config_service_client.js +10 -7
- package/build/src/v1beta/site_search_engine_service_client.js +10 -7
- package/build/src/v1beta/user_event_service_client.js +10 -7
- package/package.json +1 -1
@@ -72,7 +72,7 @@ class UserEventServiceClient {
|
|
72
72
|
* ```
|
73
73
|
*/
|
74
74
|
constructor(opts, gaxInstance) {
|
75
|
-
var _a, _b, _c, _d;
|
75
|
+
var _a, _b, _c, _d, _e;
|
76
76
|
this._terminated = false;
|
77
77
|
this.descriptors = {
|
78
78
|
page: {},
|
@@ -87,14 +87,17 @@ class UserEventServiceClient {
|
|
87
87
|
(opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
|
88
88
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
89
89
|
}
|
90
|
+
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
91
|
+
? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
|
92
|
+
: undefined;
|
90
93
|
this._universeDomain =
|
91
|
-
(_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';
|
94
|
+
(_c = (_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 : universeDomainEnvVar) !== null && _c !== void 0 ? _c : 'googleapis.com';
|
92
95
|
this._servicePath = 'discoveryengine.' + this._universeDomain;
|
93
96
|
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
|
94
97
|
this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
|
95
98
|
const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
|
96
|
-
const clientConfig = (
|
97
|
-
const fallback = (
|
99
|
+
const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {};
|
100
|
+
const fallback = (_e = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _e !== void 0 ? _e : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
|
98
101
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
99
102
|
// Request numeric enum values if REST transport is used.
|
100
103
|
opts.numericEnums = true;
|
@@ -125,7 +128,7 @@ class UserEventServiceClient {
|
|
125
128
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
126
129
|
// Determine the client header string.
|
127
130
|
const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
|
128
|
-
if (typeof process
|
131
|
+
if (typeof process === 'object' && 'versions' in process) {
|
129
132
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
130
133
|
}
|
131
134
|
else {
|
@@ -217,6 +220,9 @@ class UserEventServiceClient {
|
|
217
220
|
{
|
218
221
|
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}',
|
219
222
|
},
|
223
|
+
{
|
224
|
+
get: '/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}',
|
225
|
+
},
|
220
226
|
{ get: '/v1alpha/{name=projects/*/locations/*/operations/*}' },
|
221
227
|
{ get: '/v1alpha/{name=projects/*/operations/*}' },
|
222
228
|
],
|
@@ -337,7 +343,7 @@ class UserEventServiceClient {
|
|
337
343
|
* @returns {string} The DNS address for this service.
|
338
344
|
*/
|
339
345
|
static get servicePath() {
|
340
|
-
if (typeof process
|
346
|
+
if (typeof process === 'object' &&
|
341
347
|
typeof process.emitWarning === 'function') {
|
342
348
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
343
349
|
}
|
@@ -349,7 +355,7 @@ class UserEventServiceClient {
|
|
349
355
|
* @returns {string} The DNS address for this service.
|
350
356
|
*/
|
351
357
|
static get apiEndpoint() {
|
352
|
-
if (typeof process
|
358
|
+
if (typeof process === 'object' &&
|
353
359
|
typeof process.emitWarning === 'function') {
|
354
360
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
355
361
|
}
|
@@ -72,7 +72,7 @@ class CompletionServiceClient {
|
|
72
72
|
* ```
|
73
73
|
*/
|
74
74
|
constructor(opts, gaxInstance) {
|
75
|
-
var _a, _b, _c, _d;
|
75
|
+
var _a, _b, _c, _d, _e;
|
76
76
|
this._terminated = false;
|
77
77
|
this.descriptors = {
|
78
78
|
page: {},
|
@@ -87,14 +87,17 @@ class CompletionServiceClient {
|
|
87
87
|
(opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
|
88
88
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
89
89
|
}
|
90
|
+
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
91
|
+
? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
|
92
|
+
: undefined;
|
90
93
|
this._universeDomain =
|
91
|
-
(_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';
|
94
|
+
(_c = (_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 : universeDomainEnvVar) !== null && _c !== void 0 ? _c : 'googleapis.com';
|
92
95
|
this._servicePath = 'discoveryengine.' + this._universeDomain;
|
93
96
|
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
|
94
97
|
this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
|
95
98
|
const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
|
96
|
-
const clientConfig = (
|
97
|
-
const fallback = (
|
99
|
+
const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {};
|
100
|
+
const fallback = (_e = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _e !== void 0 ? _e : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
|
98
101
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
99
102
|
// Request numeric enum values if REST transport is used.
|
100
103
|
opts.numericEnums = true;
|
@@ -125,7 +128,7 @@ class CompletionServiceClient {
|
|
125
128
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
126
129
|
// Determine the client header string.
|
127
130
|
const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
|
128
|
-
if (typeof process
|
131
|
+
if (typeof process === 'object' && 'versions' in process) {
|
129
132
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
130
133
|
}
|
131
134
|
else {
|
@@ -333,7 +336,7 @@ class CompletionServiceClient {
|
|
333
336
|
* @returns {string} The DNS address for this service.
|
334
337
|
*/
|
335
338
|
static get servicePath() {
|
336
|
-
if (typeof process
|
339
|
+
if (typeof process === 'object' &&
|
337
340
|
typeof process.emitWarning === 'function') {
|
338
341
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
339
342
|
}
|
@@ -345,7 +348,7 @@ class CompletionServiceClient {
|
|
345
348
|
* @returns {string} The DNS address for this service.
|
346
349
|
*/
|
347
350
|
static get apiEndpoint() {
|
348
|
-
if (typeof process
|
351
|
+
if (typeof process === 'object' &&
|
349
352
|
typeof process.emitWarning === 'function') {
|
350
353
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
351
354
|
}
|
@@ -72,7 +72,7 @@ class ConversationalSearchServiceClient {
|
|
72
72
|
* ```
|
73
73
|
*/
|
74
74
|
constructor(opts, gaxInstance) {
|
75
|
-
var _a, _b, _c, _d;
|
75
|
+
var _a, _b, _c, _d, _e;
|
76
76
|
this._terminated = false;
|
77
77
|
this.descriptors = {
|
78
78
|
page: {},
|
@@ -88,14 +88,17 @@ class ConversationalSearchServiceClient {
|
|
88
88
|
(opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
|
89
89
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
90
90
|
}
|
91
|
+
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
92
|
+
? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
|
93
|
+
: undefined;
|
91
94
|
this._universeDomain =
|
92
|
-
(_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';
|
95
|
+
(_c = (_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 : universeDomainEnvVar) !== null && _c !== void 0 ? _c : 'googleapis.com';
|
93
96
|
this._servicePath = 'discoveryengine.' + this._universeDomain;
|
94
97
|
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
|
95
98
|
this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
|
96
99
|
const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
|
97
|
-
const clientConfig = (
|
98
|
-
const fallback = (
|
100
|
+
const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {};
|
101
|
+
const fallback = (_e = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _e !== void 0 ? _e : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
|
99
102
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
100
103
|
// Request numeric enum values if REST transport is used.
|
101
104
|
opts.numericEnums = true;
|
@@ -126,7 +129,7 @@ class ConversationalSearchServiceClient {
|
|
126
129
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
127
130
|
// Determine the client header string.
|
128
131
|
const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
|
129
|
-
if (typeof process
|
132
|
+
if (typeof process === 'object' && 'versions' in process) {
|
130
133
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
131
134
|
}
|
132
135
|
else {
|
@@ -237,7 +240,7 @@ class ConversationalSearchServiceClient {
|
|
237
240
|
* @returns {string} The DNS address for this service.
|
238
241
|
*/
|
239
242
|
static get servicePath() {
|
240
|
-
if (typeof process
|
243
|
+
if (typeof process === 'object' &&
|
241
244
|
typeof process.emitWarning === 'function') {
|
242
245
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
243
246
|
}
|
@@ -249,7 +252,7 @@ class ConversationalSearchServiceClient {
|
|
249
252
|
* @returns {string} The DNS address for this service.
|
250
253
|
*/
|
251
254
|
static get apiEndpoint() {
|
252
|
-
if (typeof process
|
255
|
+
if (typeof process === 'object' &&
|
253
256
|
typeof process.emitWarning === 'function') {
|
254
257
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
255
258
|
}
|
@@ -73,7 +73,7 @@ class DataStoreServiceClient {
|
|
73
73
|
* ```
|
74
74
|
*/
|
75
75
|
constructor(opts, gaxInstance) {
|
76
|
-
var _a, _b, _c, _d;
|
76
|
+
var _a, _b, _c, _d, _e;
|
77
77
|
this._terminated = false;
|
78
78
|
this.descriptors = {
|
79
79
|
page: {},
|
@@ -88,14 +88,17 @@ class DataStoreServiceClient {
|
|
88
88
|
(opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
|
89
89
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
90
90
|
}
|
91
|
+
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
92
|
+
? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
|
93
|
+
: undefined;
|
91
94
|
this._universeDomain =
|
92
|
-
(_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';
|
95
|
+
(_c = (_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 : universeDomainEnvVar) !== null && _c !== void 0 ? _c : 'googleapis.com';
|
93
96
|
this._servicePath = 'discoveryengine.' + this._universeDomain;
|
94
97
|
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
|
95
98
|
this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
|
96
99
|
const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
|
97
|
-
const clientConfig = (
|
98
|
-
const fallback = (
|
100
|
+
const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {};
|
101
|
+
const fallback = (_e = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _e !== void 0 ? _e : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
|
99
102
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
100
103
|
// Request numeric enum values if REST transport is used.
|
101
104
|
opts.numericEnums = true;
|
@@ -126,7 +129,7 @@ class DataStoreServiceClient {
|
|
126
129
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
127
130
|
// Determine the client header string.
|
128
131
|
const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
|
129
|
-
if (typeof process
|
132
|
+
if (typeof process === 'object' && 'versions' in process) {
|
130
133
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
131
134
|
}
|
132
135
|
else {
|
@@ -345,7 +348,7 @@ class DataStoreServiceClient {
|
|
345
348
|
* @returns {string} The DNS address for this service.
|
346
349
|
*/
|
347
350
|
static get servicePath() {
|
348
|
-
if (typeof process
|
351
|
+
if (typeof process === 'object' &&
|
349
352
|
typeof process.emitWarning === 'function') {
|
350
353
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
351
354
|
}
|
@@ -357,7 +360,7 @@ class DataStoreServiceClient {
|
|
357
360
|
* @returns {string} The DNS address for this service.
|
358
361
|
*/
|
359
362
|
static get apiEndpoint() {
|
360
|
-
if (typeof process
|
363
|
+
if (typeof process === 'object' &&
|
361
364
|
typeof process.emitWarning === 'function') {
|
362
365
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
363
366
|
}
|
@@ -74,7 +74,7 @@ class DocumentServiceClient {
|
|
74
74
|
* ```
|
75
75
|
*/
|
76
76
|
constructor(opts, gaxInstance) {
|
77
|
-
var _a, _b, _c, _d;
|
77
|
+
var _a, _b, _c, _d, _e;
|
78
78
|
this._terminated = false;
|
79
79
|
this.descriptors = {
|
80
80
|
page: {},
|
@@ -89,14 +89,17 @@ class DocumentServiceClient {
|
|
89
89
|
(opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
|
90
90
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
91
91
|
}
|
92
|
+
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
93
|
+
? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
|
94
|
+
: undefined;
|
92
95
|
this._universeDomain =
|
93
|
-
(_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';
|
96
|
+
(_c = (_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 : universeDomainEnvVar) !== null && _c !== void 0 ? _c : 'googleapis.com';
|
94
97
|
this._servicePath = 'discoveryengine.' + this._universeDomain;
|
95
98
|
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
|
96
99
|
this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
|
97
100
|
const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
|
98
|
-
const clientConfig = (
|
99
|
-
const fallback = (
|
101
|
+
const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {};
|
102
|
+
const fallback = (_e = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _e !== void 0 ? _e : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
|
100
103
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
101
104
|
// Request numeric enum values if REST transport is used.
|
102
105
|
opts.numericEnums = true;
|
@@ -127,7 +130,7 @@ class DocumentServiceClient {
|
|
127
130
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
128
131
|
// Determine the client header string.
|
129
132
|
const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
|
130
|
-
if (typeof process
|
133
|
+
if (typeof process === 'object' && 'versions' in process) {
|
131
134
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
132
135
|
}
|
133
136
|
else {
|
@@ -349,7 +352,7 @@ class DocumentServiceClient {
|
|
349
352
|
* @returns {string} The DNS address for this service.
|
350
353
|
*/
|
351
354
|
static get servicePath() {
|
352
|
-
if (typeof process
|
355
|
+
if (typeof process === 'object' &&
|
353
356
|
typeof process.emitWarning === 'function') {
|
354
357
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
355
358
|
}
|
@@ -361,7 +364,7 @@ class DocumentServiceClient {
|
|
361
364
|
* @returns {string} The DNS address for this service.
|
362
365
|
*/
|
363
366
|
static get apiEndpoint() {
|
364
|
-
if (typeof process
|
367
|
+
if (typeof process === 'object' &&
|
365
368
|
typeof process.emitWarning === 'function') {
|
366
369
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
367
370
|
}
|
@@ -73,7 +73,7 @@ class EngineServiceClient {
|
|
73
73
|
* ```
|
74
74
|
*/
|
75
75
|
constructor(opts, gaxInstance) {
|
76
|
-
var _a, _b, _c, _d;
|
76
|
+
var _a, _b, _c, _d, _e;
|
77
77
|
this._terminated = false;
|
78
78
|
this.descriptors = {
|
79
79
|
page: {},
|
@@ -88,14 +88,17 @@ class EngineServiceClient {
|
|
88
88
|
(opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
|
89
89
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
90
90
|
}
|
91
|
+
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
92
|
+
? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
|
93
|
+
: undefined;
|
91
94
|
this._universeDomain =
|
92
|
-
(_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';
|
95
|
+
(_c = (_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 : universeDomainEnvVar) !== null && _c !== void 0 ? _c : 'googleapis.com';
|
93
96
|
this._servicePath = 'discoveryengine.' + this._universeDomain;
|
94
97
|
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
|
95
98
|
this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
|
96
99
|
const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
|
97
|
-
const clientConfig = (
|
98
|
-
const fallback = (
|
100
|
+
const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {};
|
101
|
+
const fallback = (_e = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _e !== void 0 ? _e : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
|
99
102
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
100
103
|
// Request numeric enum values if REST transport is used.
|
101
104
|
opts.numericEnums = true;
|
@@ -126,7 +129,7 @@ class EngineServiceClient {
|
|
126
129
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
127
130
|
// Determine the client header string.
|
128
131
|
const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
|
129
|
-
if (typeof process
|
132
|
+
if (typeof process === 'object' && 'versions' in process) {
|
130
133
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
131
134
|
}
|
132
135
|
else {
|
@@ -345,7 +348,7 @@ class EngineServiceClient {
|
|
345
348
|
* @returns {string} The DNS address for this service.
|
346
349
|
*/
|
347
350
|
static get servicePath() {
|
348
|
-
if (typeof process
|
351
|
+
if (typeof process === 'object' &&
|
349
352
|
typeof process.emitWarning === 'function') {
|
350
353
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
351
354
|
}
|
@@ -357,7 +360,7 @@ class EngineServiceClient {
|
|
357
360
|
* @returns {string} The DNS address for this service.
|
358
361
|
*/
|
359
362
|
static get apiEndpoint() {
|
360
|
-
if (typeof process
|
363
|
+
if (typeof process === 'object' &&
|
361
364
|
typeof process.emitWarning === 'function') {
|
362
365
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
363
366
|
}
|
@@ -72,7 +72,7 @@ class RecommendationServiceClient {
|
|
72
72
|
* ```
|
73
73
|
*/
|
74
74
|
constructor(opts, gaxInstance) {
|
75
|
-
var _a, _b, _c, _d;
|
75
|
+
var _a, _b, _c, _d, _e;
|
76
76
|
this._terminated = false;
|
77
77
|
this.descriptors = {
|
78
78
|
page: {},
|
@@ -88,14 +88,17 @@ class RecommendationServiceClient {
|
|
88
88
|
(opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
|
89
89
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
90
90
|
}
|
91
|
+
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
92
|
+
? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
|
93
|
+
: undefined;
|
91
94
|
this._universeDomain =
|
92
|
-
(_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';
|
95
|
+
(_c = (_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 : universeDomainEnvVar) !== null && _c !== void 0 ? _c : 'googleapis.com';
|
93
96
|
this._servicePath = 'discoveryengine.' + this._universeDomain;
|
94
97
|
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
|
95
98
|
this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
|
96
99
|
const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
|
97
|
-
const clientConfig = (
|
98
|
-
const fallback = (
|
100
|
+
const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {};
|
101
|
+
const fallback = (_e = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _e !== void 0 ? _e : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
|
99
102
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
100
103
|
// Request numeric enum values if REST transport is used.
|
101
104
|
opts.numericEnums = true;
|
@@ -126,7 +129,7 @@ class RecommendationServiceClient {
|
|
126
129
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
127
130
|
// Determine the client header string.
|
128
131
|
const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
|
129
|
-
if (typeof process
|
132
|
+
if (typeof process === 'object' && 'versions' in process) {
|
130
133
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
131
134
|
}
|
132
135
|
else {
|
@@ -224,7 +227,7 @@ class RecommendationServiceClient {
|
|
224
227
|
* @returns {string} The DNS address for this service.
|
225
228
|
*/
|
226
229
|
static get servicePath() {
|
227
|
-
if (typeof process
|
230
|
+
if (typeof process === 'object' &&
|
228
231
|
typeof process.emitWarning === 'function') {
|
229
232
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
230
233
|
}
|
@@ -236,7 +239,7 @@ class RecommendationServiceClient {
|
|
236
239
|
* @returns {string} The DNS address for this service.
|
237
240
|
*/
|
238
241
|
static get apiEndpoint() {
|
239
|
-
if (typeof process
|
242
|
+
if (typeof process === 'object' &&
|
240
243
|
typeof process.emitWarning === 'function') {
|
241
244
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
242
245
|
}
|
@@ -72,7 +72,7 @@ class SchemaServiceClient {
|
|
72
72
|
* ```
|
73
73
|
*/
|
74
74
|
constructor(opts, gaxInstance) {
|
75
|
-
var _a, _b, _c, _d;
|
75
|
+
var _a, _b, _c, _d, _e;
|
76
76
|
this._terminated = false;
|
77
77
|
this.descriptors = {
|
78
78
|
page: {},
|
@@ -87,14 +87,17 @@ class SchemaServiceClient {
|
|
87
87
|
(opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
|
88
88
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
89
89
|
}
|
90
|
+
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
91
|
+
? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
|
92
|
+
: undefined;
|
90
93
|
this._universeDomain =
|
91
|
-
(_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';
|
94
|
+
(_c = (_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 : universeDomainEnvVar) !== null && _c !== void 0 ? _c : 'googleapis.com';
|
92
95
|
this._servicePath = 'discoveryengine.' + this._universeDomain;
|
93
96
|
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
|
94
97
|
this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
|
95
98
|
const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
|
96
|
-
const clientConfig = (
|
97
|
-
const fallback = (
|
99
|
+
const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {};
|
100
|
+
const fallback = (_e = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _e !== void 0 ? _e : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
|
98
101
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
99
102
|
// Request numeric enum values if REST transport is used.
|
100
103
|
opts.numericEnums = true;
|
@@ -125,7 +128,7 @@ class SchemaServiceClient {
|
|
125
128
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
126
129
|
// Determine the client header string.
|
127
130
|
const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
|
128
|
-
if (typeof process
|
131
|
+
if (typeof process === 'object' && 'versions' in process) {
|
129
132
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
130
133
|
}
|
131
134
|
else {
|
@@ -346,7 +349,7 @@ class SchemaServiceClient {
|
|
346
349
|
* @returns {string} The DNS address for this service.
|
347
350
|
*/
|
348
351
|
static get servicePath() {
|
349
|
-
if (typeof process
|
352
|
+
if (typeof process === 'object' &&
|
350
353
|
typeof process.emitWarning === 'function') {
|
351
354
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
352
355
|
}
|
@@ -358,7 +361,7 @@ class SchemaServiceClient {
|
|
358
361
|
* @returns {string} The DNS address for this service.
|
359
362
|
*/
|
360
363
|
static get apiEndpoint() {
|
361
|
-
if (typeof process
|
364
|
+
if (typeof process === 'object' &&
|
362
365
|
typeof process.emitWarning === 'function') {
|
363
366
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
364
367
|
}
|
@@ -72,7 +72,7 @@ class SearchServiceClient {
|
|
72
72
|
* ```
|
73
73
|
*/
|
74
74
|
constructor(opts, gaxInstance) {
|
75
|
-
var _a, _b, _c, _d;
|
75
|
+
var _a, _b, _c, _d, _e;
|
76
76
|
this._terminated = false;
|
77
77
|
this.descriptors = {
|
78
78
|
page: {},
|
@@ -87,14 +87,17 @@ class SearchServiceClient {
|
|
87
87
|
(opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
|
88
88
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
89
89
|
}
|
90
|
+
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
91
|
+
? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
|
92
|
+
: undefined;
|
90
93
|
this._universeDomain =
|
91
|
-
(_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';
|
94
|
+
(_c = (_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 : universeDomainEnvVar) !== null && _c !== void 0 ? _c : 'googleapis.com';
|
92
95
|
this._servicePath = 'discoveryengine.' + this._universeDomain;
|
93
96
|
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
|
94
97
|
this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
|
95
98
|
const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
|
96
|
-
const clientConfig = (
|
97
|
-
const fallback = (
|
99
|
+
const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {};
|
100
|
+
const fallback = (_e = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _e !== void 0 ? _e : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
|
98
101
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
99
102
|
// Request numeric enum values if REST transport is used.
|
100
103
|
opts.numericEnums = true;
|
@@ -125,7 +128,7 @@ class SearchServiceClient {
|
|
125
128
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
126
129
|
// Determine the client header string.
|
127
130
|
const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
|
128
|
-
if (typeof process
|
131
|
+
if (typeof process === 'object' && 'versions' in process) {
|
129
132
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
130
133
|
}
|
131
134
|
else {
|
@@ -231,7 +234,7 @@ class SearchServiceClient {
|
|
231
234
|
* @returns {string} The DNS address for this service.
|
232
235
|
*/
|
233
236
|
static get servicePath() {
|
234
|
-
if (typeof process
|
237
|
+
if (typeof process === 'object' &&
|
235
238
|
typeof process.emitWarning === 'function') {
|
236
239
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
237
240
|
}
|
@@ -243,7 +246,7 @@ class SearchServiceClient {
|
|
243
246
|
* @returns {string} The DNS address for this service.
|
244
247
|
*/
|
245
248
|
static get apiEndpoint() {
|
246
|
-
if (typeof process
|
249
|
+
if (typeof process === 'object' &&
|
247
250
|
typeof process.emitWarning === 'function') {
|
248
251
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
249
252
|
}
|
@@ -72,7 +72,7 @@ class SearchTuningServiceClient {
|
|
72
72
|
* ```
|
73
73
|
*/
|
74
74
|
constructor(opts, gaxInstance) {
|
75
|
-
var _a, _b, _c, _d;
|
75
|
+
var _a, _b, _c, _d, _e;
|
76
76
|
this._terminated = false;
|
77
77
|
this.descriptors = {
|
78
78
|
page: {},
|
@@ -87,14 +87,17 @@ class SearchTuningServiceClient {
|
|
87
87
|
(opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
|
88
88
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
89
89
|
}
|
90
|
+
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
91
|
+
? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
|
92
|
+
: undefined;
|
90
93
|
this._universeDomain =
|
91
|
-
(_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';
|
94
|
+
(_c = (_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 : universeDomainEnvVar) !== null && _c !== void 0 ? _c : 'googleapis.com';
|
92
95
|
this._servicePath = 'discoveryengine.' + this._universeDomain;
|
93
96
|
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
|
94
97
|
this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
|
95
98
|
const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
|
96
|
-
const clientConfig = (
|
97
|
-
const fallback = (
|
99
|
+
const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {};
|
100
|
+
const fallback = (_e = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _e !== void 0 ? _e : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
|
98
101
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
99
102
|
// Request numeric enum values if REST transport is used.
|
100
103
|
opts.numericEnums = true;
|
@@ -125,7 +128,7 @@ class SearchTuningServiceClient {
|
|
125
128
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
126
129
|
// Determine the client header string.
|
127
130
|
const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
|
128
|
-
if (typeof process
|
131
|
+
if (typeof process === 'object' && 'versions' in process) {
|
129
132
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
130
133
|
}
|
131
134
|
else {
|
@@ -326,7 +329,7 @@ class SearchTuningServiceClient {
|
|
326
329
|
* @returns {string} The DNS address for this service.
|
327
330
|
*/
|
328
331
|
static get servicePath() {
|
329
|
-
if (typeof process
|
332
|
+
if (typeof process === 'object' &&
|
330
333
|
typeof process.emitWarning === 'function') {
|
331
334
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
332
335
|
}
|
@@ -338,7 +341,7 @@ class SearchTuningServiceClient {
|
|
338
341
|
* @returns {string} The DNS address for this service.
|
339
342
|
*/
|
340
343
|
static get apiEndpoint() {
|
341
|
-
if (typeof process
|
344
|
+
if (typeof process === 'object' &&
|
342
345
|
typeof process.emitWarning === 'function') {
|
343
346
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
344
347
|
}
|