@google-cloud/discoveryengine 1.4.0 → 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 +14 -0
- package/README.md +15 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config.proto +49 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config_service.proto +79 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +106 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/chunk_service.proto +137 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +97 -4
- package/build/protos/google/cloud/discoveryengine/v1alpha/completion.proto +52 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/completion_service.proto +44 -2
- package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +6 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/data_store.proto +44 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/data_store_service.proto +80 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +102 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +127 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +70 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +13 -8
- package/build/protos/google/cloud/discoveryengine/v1alpha/engine_service.proto +3 -2
- package/build/protos/google/cloud/discoveryengine/v1alpha/estimate_billing_service.proto +130 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +376 -21
- package/build/protos/google/cloud/discoveryengine/v1alpha/purge_config.proto +66 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/rank_service.proto +115 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/recommendation_service.proto +3 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +221 -30
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +27 -20
- package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config.proto +271 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config_service.proto +148 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine.proto +9 -3
- package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto +7 -4
- package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +4 -3
- package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +5 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +22 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +9 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +94 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +19 -4
- package/build/protos/google/cloud/discoveryengine/v1beta/search_tuning_service.proto +151 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +4 -3
- package/build/protos/google/cloud/discoveryengine/v1beta/serving_config_service.proto +6 -5
- package/build/protos/protos.d.ts +18160 -8292
- package/build/protos/protos.js +50325 -25400
- package/build/protos/protos.json +4864 -2447
- 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.d.ts +1233 -0
- package/build/src/v1alpha/acl_config_service_client.js +1768 -0
- package/build/src/v1alpha/acl_config_service_client_config.json +34 -0
- package/build/src/v1alpha/chunk_service_client.d.ts +1350 -0
- package/build/src/v1alpha/chunk_service_client.js +1889 -0
- package/build/src/v1alpha/chunk_service_client_config.json +34 -0
- package/build/src/v1alpha/completion_service_client.d.ts +588 -3
- package/build/src/v1alpha/completion_service_client.js +844 -9
- package/build/src/v1alpha/completion_service_client_config.json +10 -0
- package/build/src/v1alpha/conversational_search_service_client.d.ts +233 -1
- package/build/src/v1alpha/conversational_search_service_client.js +326 -7
- package/build/src/v1alpha/data_store_service_client.d.ts +451 -3
- package/build/src/v1alpha/data_store_service_client.js +575 -9
- package/build/src/v1alpha/data_store_service_client_config.json +8 -0
- package/build/src/v1alpha/document_service_client.d.ts +462 -21
- package/build/src/v1alpha/document_service_client.js +549 -7
- package/build/src/v1alpha/document_service_client_config.json +5 -0
- package/build/src/v1alpha/engine_service_client.d.ts +375 -2
- package/build/src/v1alpha/engine_service_client.js +527 -7
- package/build/src/v1alpha/estimate_billing_service_client.d.ts +1367 -0
- package/build/src/v1alpha/estimate_billing_service_client.js +2034 -0
- package/build/src/v1alpha/estimate_billing_service_client_config.json +30 -0
- package/build/src/v1alpha/index.d.ts +5 -0
- package/build/src/v1alpha/index.js +11 -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.d.ts +231 -1
- package/build/src/v1alpha/recommendation_service_client.js +326 -7
- package/build/src/v1alpha/schema_service_client.d.ts +372 -0
- package/build/src/v1alpha/schema_service_client.js +527 -7
- package/build/src/v1alpha/search_service_client.d.ts +288 -30
- package/build/src/v1alpha/search_service_client.js +366 -27
- package/build/src/v1alpha/search_tuning_service_client.d.ts +373 -1
- package/build/src/v1alpha/search_tuning_service_client.js +527 -7
- package/build/src/v1alpha/serving_config_service_client.d.ts +1370 -0
- package/build/src/v1alpha/serving_config_service_client.js +1939 -0
- package/build/src/v1alpha/serving_config_service_client_config.json +38 -0
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +372 -0
- package/build/src/v1alpha/site_search_engine_service_client.js +527 -7
- package/build/src/v1alpha/user_event_service_client.d.ts +372 -0
- package/build/src/v1alpha/user_event_service_client.js +527 -7
- package/build/src/v1beta/completion_service_client.d.ts +75 -0
- package/build/src/v1beta/completion_service_client.js +114 -7
- package/build/src/v1beta/conversational_search_service_client.d.ts +79 -0
- package/build/src/v1beta/conversational_search_service_client.js +114 -7
- package/build/src/v1beta/data_store_service_client.d.ts +75 -0
- package/build/src/v1beta/data_store_service_client.js +114 -7
- package/build/src/v1beta/document_service_client.d.ts +75 -0
- package/build/src/v1beta/document_service_client.js +114 -7
- package/build/src/v1beta/engine_service_client.d.ts +75 -0
- package/build/src/v1beta/engine_service_client.js +114 -7
- package/build/src/v1beta/index.d.ts +1 -0
- package/build/src/v1beta/index.js +3 -1
- package/build/src/v1beta/recommendation_service_client.d.ts +75 -0
- package/build/src/v1beta/recommendation_service_client.js +114 -7
- package/build/src/v1beta/schema_service_client.d.ts +75 -0
- package/build/src/v1beta/schema_service_client.js +114 -7
- package/build/src/v1beta/search_service_client.d.ts +81 -0
- package/build/src/v1beta/search_service_client.js +118 -7
- package/build/src/v1beta/search_tuning_service_client.d.ts +1196 -0
- package/build/src/v1beta/search_tuning_service_client.js +1784 -0
- package/build/src/v1beta/search_tuning_service_client_config.json +30 -0
- package/build/src/v1beta/serving_config_service_client.d.ts +123 -8
- package/build/src/v1beta/serving_config_service_client.js +176 -12
- package/build/src/v1beta/site_search_engine_service_client.d.ts +75 -0
- package/build/src/v1beta/site_search_engine_service_client.js +114 -7
- package/build/src/v1beta/user_event_service_client.d.ts +75 -0
- package/build/src/v1beta/user_event_service_client.js +114 -7
- package/package.json +3 -3
@@ -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 {
|
@@ -330,7 +333,7 @@ class CompletionServiceClient {
|
|
330
333
|
* @returns {string} The DNS address for this service.
|
331
334
|
*/
|
332
335
|
static get servicePath() {
|
333
|
-
if (typeof process
|
336
|
+
if (typeof process === 'object' &&
|
334
337
|
typeof process.emitWarning === 'function') {
|
335
338
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
336
339
|
}
|
@@ -342,7 +345,7 @@ class CompletionServiceClient {
|
|
342
345
|
* @returns {string} The DNS address for this service.
|
343
346
|
*/
|
344
347
|
static get apiEndpoint() {
|
345
|
-
if (typeof process
|
348
|
+
if (typeof process === 'object' &&
|
346
349
|
typeof process.emitWarning === 'function') {
|
347
350
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
348
351
|
}
|
@@ -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 {
|
@@ -235,7 +238,7 @@ class ConversationalSearchServiceClient {
|
|
235
238
|
* @returns {string} The DNS address for this service.
|
236
239
|
*/
|
237
240
|
static get servicePath() {
|
238
|
-
if (typeof process
|
241
|
+
if (typeof process === 'object' &&
|
239
242
|
typeof process.emitWarning === 'function') {
|
240
243
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
241
244
|
}
|
@@ -247,7 +250,7 @@ class ConversationalSearchServiceClient {
|
|
247
250
|
* @returns {string} The DNS address for this service.
|
248
251
|
*/
|
249
252
|
static get apiEndpoint() {
|
250
|
-
if (typeof process
|
253
|
+
if (typeof process === 'object' &&
|
251
254
|
typeof process.emitWarning === 'function') {
|
252
255
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
253
256
|
}
|
@@ -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 {
|
@@ -342,7 +345,7 @@ class DataStoreServiceClient {
|
|
342
345
|
* @returns {string} The DNS address for this service.
|
343
346
|
*/
|
344
347
|
static get servicePath() {
|
345
|
-
if (typeof process
|
348
|
+
if (typeof process === 'object' &&
|
346
349
|
typeof process.emitWarning === 'function') {
|
347
350
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
348
351
|
}
|
@@ -354,7 +357,7 @@ class DataStoreServiceClient {
|
|
354
357
|
* @returns {string} The DNS address for this service.
|
355
358
|
*/
|
356
359
|
static get apiEndpoint() {
|
357
|
-
if (typeof process
|
360
|
+
if (typeof process === 'object' &&
|
358
361
|
typeof process.emitWarning === 'function') {
|
359
362
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
360
363
|
}
|
@@ -73,7 +73,7 @@ class DocumentServiceClient {
|
|
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 DocumentServiceClient {
|
|
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 DocumentServiceClient {
|
|
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 {
|
@@ -344,7 +347,7 @@ class DocumentServiceClient {
|
|
344
347
|
* @returns {string} The DNS address for this service.
|
345
348
|
*/
|
346
349
|
static get servicePath() {
|
347
|
-
if (typeof process
|
350
|
+
if (typeof process === 'object' &&
|
348
351
|
typeof process.emitWarning === 'function') {
|
349
352
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
350
353
|
}
|
@@ -356,7 +359,7 @@ class DocumentServiceClient {
|
|
356
359
|
* @returns {string} The DNS address for this service.
|
357
360
|
*/
|
358
361
|
static get apiEndpoint() {
|
359
|
-
if (typeof process
|
362
|
+
if (typeof process === 'object' &&
|
360
363
|
typeof process.emitWarning === 'function') {
|
361
364
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
362
365
|
}
|
@@ -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 {
|
@@ -341,7 +344,7 @@ class EngineServiceClient {
|
|
341
344
|
* @returns {string} The DNS address for this service.
|
342
345
|
*/
|
343
346
|
static get servicePath() {
|
344
|
-
if (typeof process
|
347
|
+
if (typeof process === 'object' &&
|
345
348
|
typeof process.emitWarning === 'function') {
|
346
349
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
347
350
|
}
|
@@ -353,7 +356,7 @@ class EngineServiceClient {
|
|
353
356
|
* @returns {string} The DNS address for this service.
|
354
357
|
*/
|
355
358
|
static get apiEndpoint() {
|
356
|
-
if (typeof process
|
359
|
+
if (typeof process === 'object' &&
|
357
360
|
typeof process.emitWarning === 'function') {
|
358
361
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
359
362
|
}
|
@@ -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 {
|
@@ -342,7 +345,7 @@ class SchemaServiceClient {
|
|
342
345
|
* @returns {string} The DNS address for this service.
|
343
346
|
*/
|
344
347
|
static get servicePath() {
|
345
|
-
if (typeof process
|
348
|
+
if (typeof process === 'object' &&
|
346
349
|
typeof process.emitWarning === 'function') {
|
347
350
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
348
351
|
}
|
@@ -354,7 +357,7 @@ class SchemaServiceClient {
|
|
354
357
|
* @returns {string} The DNS address for this service.
|
355
358
|
*/
|
356
359
|
static get apiEndpoint() {
|
357
|
-
if (typeof process
|
360
|
+
if (typeof process === 'object' &&
|
358
361
|
typeof process.emitWarning === 'function') {
|
359
362
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
360
363
|
}
|
@@ -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 {
|
@@ -228,7 +231,7 @@ class SearchServiceClient {
|
|
228
231
|
* @returns {string} The DNS address for this service.
|
229
232
|
*/
|
230
233
|
static get servicePath() {
|
231
|
-
if (typeof process
|
234
|
+
if (typeof process === 'object' &&
|
232
235
|
typeof process.emitWarning === 'function') {
|
233
236
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
234
237
|
}
|
@@ -240,7 +243,7 @@ class SearchServiceClient {
|
|
240
243
|
* @returns {string} The DNS address for this service.
|
241
244
|
*/
|
242
245
|
static get apiEndpoint() {
|
243
|
-
if (typeof process
|
246
|
+
if (typeof process === 'object' &&
|
244
247
|
typeof process.emitWarning === 'function') {
|
245
248
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
246
249
|
}
|
@@ -72,7 +72,7 @@ class SiteSearchEngineServiceClient {
|
|
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 SiteSearchEngineServiceClient {
|
|
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 SiteSearchEngineServiceClient {
|
|
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 {
|
@@ -367,7 +370,7 @@ class SiteSearchEngineServiceClient {
|
|
367
370
|
* @returns {string} The DNS address for this service.
|
368
371
|
*/
|
369
372
|
static get servicePath() {
|
370
|
-
if (typeof process
|
373
|
+
if (typeof process === 'object' &&
|
371
374
|
typeof process.emitWarning === 'function') {
|
372
375
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
373
376
|
}
|
@@ -379,7 +382,7 @@ class SiteSearchEngineServiceClient {
|
|
379
382
|
* @returns {string} The DNS address for this service.
|
380
383
|
*/
|
381
384
|
static get apiEndpoint() {
|
382
|
-
if (typeof process
|
385
|
+
if (typeof process === 'object' &&
|
383
386
|
typeof process.emitWarning === 'function') {
|
384
387
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
385
388
|
}
|
@@ -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 {
|
@@ -327,7 +330,7 @@ class UserEventServiceClient {
|
|
327
330
|
* @returns {string} The DNS address for this service.
|
328
331
|
*/
|
329
332
|
static get servicePath() {
|
330
|
-
if (typeof process
|
333
|
+
if (typeof process === 'object' &&
|
331
334
|
typeof process.emitWarning === 'function') {
|
332
335
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
333
336
|
}
|
@@ -339,7 +342,7 @@ class UserEventServiceClient {
|
|
339
342
|
* @returns {string} The DNS address for this service.
|
340
343
|
*/
|
341
344
|
static get apiEndpoint() {
|
342
|
-
if (typeof process
|
345
|
+
if (typeof process === 'object' &&
|
343
346
|
typeof process.emitWarning === 'function') {
|
344
347
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
345
348
|
}
|