@google-cloud/discoveryengine 1.4.1 → 1.6.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 +2 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/rank_service.proto +115 -0
- package/build/protos/protos.d.ts +384 -0
- package/build/protos/protos.js +906 -0
- package/build/protos/protos.json +90 -1
- 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 +10 -7
- package/build/src/v1alpha/conversational_search_service_client.js +10 -7
- package/build/src/v1alpha/data_store_service_client.js +10 -7
- package/build/src/v1alpha/document_service_client.js +10 -7
- package/build/src/v1alpha/engine_service_client.js +10 -7
- package/build/src/v1alpha/estimate_billing_service_client.js +10 -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 +10 -7
- package/build/src/v1alpha/search_service_client.js +10 -7
- package/build/src/v1alpha/search_tuning_service_client.js +10 -7
- package/build/src/v1alpha/serving_config_service_client.js +10 -7
- package/build/src/v1alpha/site_search_engine_service_client.js +10 -7
- package/build/src/v1alpha/user_event_service_client.js +10 -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 AclConfigServiceClient {
|
|
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 AclConfigServiceClient {
|
|
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 AclConfigServiceClient {
|
|
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 {
|
@@ -226,7 +229,7 @@ class AclConfigServiceClient {
|
|
226
229
|
* @returns {string} The DNS address for this service.
|
227
230
|
*/
|
228
231
|
static get servicePath() {
|
229
|
-
if (typeof process
|
232
|
+
if (typeof process === 'object' &&
|
230
233
|
typeof process.emitWarning === 'function') {
|
231
234
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
232
235
|
}
|
@@ -238,7 +241,7 @@ class AclConfigServiceClient {
|
|
238
241
|
* @returns {string} The DNS address for this service.
|
239
242
|
*/
|
240
243
|
static get apiEndpoint() {
|
241
|
-
if (typeof process
|
244
|
+
if (typeof process === 'object' &&
|
242
245
|
typeof process.emitWarning === 'function') {
|
243
246
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
244
247
|
}
|
@@ -74,7 +74,7 @@ class ChunkServiceClient {
|
|
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 ChunkServiceClient {
|
|
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 ChunkServiceClient {
|
|
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 {
|
@@ -234,7 +237,7 @@ class ChunkServiceClient {
|
|
234
237
|
* @returns {string} The DNS address for this service.
|
235
238
|
*/
|
236
239
|
static get servicePath() {
|
237
|
-
if (typeof process
|
240
|
+
if (typeof process === 'object' &&
|
238
241
|
typeof process.emitWarning === 'function') {
|
239
242
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
240
243
|
}
|
@@ -246,7 +249,7 @@ class ChunkServiceClient {
|
|
246
249
|
* @returns {string} The DNS address for this service.
|
247
250
|
*/
|
248
251
|
static get apiEndpoint() {
|
249
|
-
if (typeof process
|
252
|
+
if (typeof process === 'object' &&
|
250
253
|
typeof process.emitWarning === 'function') {
|
251
254
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
252
255
|
}
|
@@ -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 {
|
@@ -336,7 +339,7 @@ class CompletionServiceClient {
|
|
336
339
|
* @returns {string} The DNS address for this service.
|
337
340
|
*/
|
338
341
|
static get servicePath() {
|
339
|
-
if (typeof process
|
342
|
+
if (typeof process === 'object' &&
|
340
343
|
typeof process.emitWarning === 'function') {
|
341
344
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
342
345
|
}
|
@@ -348,7 +351,7 @@ class CompletionServiceClient {
|
|
348
351
|
* @returns {string} The DNS address for this service.
|
349
352
|
*/
|
350
353
|
static get apiEndpoint() {
|
351
|
-
if (typeof process
|
354
|
+
if (typeof process === 'object' &&
|
352
355
|
typeof process.emitWarning === 'function') {
|
353
356
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
354
357
|
}
|
@@ -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 {
|
@@ -240,7 +243,7 @@ class ConversationalSearchServiceClient {
|
|
240
243
|
* @returns {string} The DNS address for this service.
|
241
244
|
*/
|
242
245
|
static get servicePath() {
|
243
|
-
if (typeof process
|
246
|
+
if (typeof process === 'object' &&
|
244
247
|
typeof process.emitWarning === 'function') {
|
245
248
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
246
249
|
}
|
@@ -252,7 +255,7 @@ class ConversationalSearchServiceClient {
|
|
252
255
|
* @returns {string} The DNS address for this service.
|
253
256
|
*/
|
254
257
|
static get apiEndpoint() {
|
255
|
-
if (typeof process
|
258
|
+
if (typeof process === 'object' &&
|
256
259
|
typeof process.emitWarning === 'function') {
|
257
260
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
258
261
|
}
|
@@ -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 {
|
@@ -350,7 +353,7 @@ class DataStoreServiceClient {
|
|
350
353
|
* @returns {string} The DNS address for this service.
|
351
354
|
*/
|
352
355
|
static get servicePath() {
|
353
|
-
if (typeof process
|
356
|
+
if (typeof process === 'object' &&
|
354
357
|
typeof process.emitWarning === 'function') {
|
355
358
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
356
359
|
}
|
@@ -362,7 +365,7 @@ class DataStoreServiceClient {
|
|
362
365
|
* @returns {string} The DNS address for this service.
|
363
366
|
*/
|
364
367
|
static get apiEndpoint() {
|
365
|
-
if (typeof process
|
368
|
+
if (typeof process === 'object' &&
|
366
369
|
typeof process.emitWarning === 'function') {
|
367
370
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
368
371
|
}
|
@@ -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 {
|
@@ -352,7 +355,7 @@ class DocumentServiceClient {
|
|
352
355
|
* @returns {string} The DNS address for this service.
|
353
356
|
*/
|
354
357
|
static get servicePath() {
|
355
|
-
if (typeof process
|
358
|
+
if (typeof process === 'object' &&
|
356
359
|
typeof process.emitWarning === 'function') {
|
357
360
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
358
361
|
}
|
@@ -364,7 +367,7 @@ class DocumentServiceClient {
|
|
364
367
|
* @returns {string} The DNS address for this service.
|
365
368
|
*/
|
366
369
|
static get apiEndpoint() {
|
367
|
-
if (typeof process
|
370
|
+
if (typeof process === 'object' &&
|
368
371
|
typeof process.emitWarning === 'function') {
|
369
372
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
370
373
|
}
|
@@ -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 {
|
@@ -354,7 +357,7 @@ class EngineServiceClient {
|
|
354
357
|
* @returns {string} The DNS address for this service.
|
355
358
|
*/
|
356
359
|
static get servicePath() {
|
357
|
-
if (typeof process
|
360
|
+
if (typeof process === 'object' &&
|
358
361
|
typeof process.emitWarning === 'function') {
|
359
362
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
360
363
|
}
|
@@ -366,7 +369,7 @@ class EngineServiceClient {
|
|
366
369
|
* @returns {string} The DNS address for this service.
|
367
370
|
*/
|
368
371
|
static get apiEndpoint() {
|
369
|
-
if (typeof process
|
372
|
+
if (typeof process === 'object' &&
|
370
373
|
typeof process.emitWarning === 'function') {
|
371
374
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
372
375
|
}
|
@@ -72,7 +72,7 @@ class EstimateBillingServiceClient {
|
|
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 EstimateBillingServiceClient {
|
|
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 EstimateBillingServiceClient {
|
|
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 {
|
@@ -331,7 +334,7 @@ class EstimateBillingServiceClient {
|
|
331
334
|
* @returns {string} The DNS address for this service.
|
332
335
|
*/
|
333
336
|
static get servicePath() {
|
334
|
-
if (typeof process
|
337
|
+
if (typeof process === 'object' &&
|
335
338
|
typeof process.emitWarning === 'function') {
|
336
339
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
337
340
|
}
|
@@ -343,7 +346,7 @@ class EstimateBillingServiceClient {
|
|
343
346
|
* @returns {string} The DNS address for this service.
|
344
347
|
*/
|
345
348
|
static get apiEndpoint() {
|
346
|
-
if (typeof process
|
349
|
+
if (typeof process === 'object' &&
|
347
350
|
typeof process.emitWarning === 'function') {
|
348
351
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
349
352
|
}
|
@@ -13,3 +13,4 @@ export { SearchTuningServiceClient } from './search_tuning_service_client';
|
|
13
13
|
export { ServingConfigServiceClient } from './serving_config_service_client';
|
14
14
|
export { SiteSearchEngineServiceClient } from './site_search_engine_service_client';
|
15
15
|
export { UserEventServiceClient } from './user_event_service_client';
|
16
|
+
export { RankServiceClient } from './rank_service_client';
|
@@ -17,7 +17,7 @@
|
|
17
17
|
// ** https://github.com/googleapis/gapic-generator-typescript **
|
18
18
|
// ** All changes to this file may be overwritten. **
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
20
|
-
exports.UserEventServiceClient = exports.SiteSearchEngineServiceClient = exports.ServingConfigServiceClient = exports.SearchTuningServiceClient = exports.SearchServiceClient = exports.SchemaServiceClient = exports.RecommendationServiceClient = exports.EstimateBillingServiceClient = exports.EngineServiceClient = exports.DocumentServiceClient = exports.DataStoreServiceClient = exports.ConversationalSearchServiceClient = exports.CompletionServiceClient = exports.ChunkServiceClient = exports.AclConfigServiceClient = void 0;
|
20
|
+
exports.RankServiceClient = exports.UserEventServiceClient = exports.SiteSearchEngineServiceClient = exports.ServingConfigServiceClient = exports.SearchTuningServiceClient = exports.SearchServiceClient = exports.SchemaServiceClient = exports.RecommendationServiceClient = exports.EstimateBillingServiceClient = exports.EngineServiceClient = exports.DocumentServiceClient = exports.DataStoreServiceClient = exports.ConversationalSearchServiceClient = exports.CompletionServiceClient = exports.ChunkServiceClient = exports.AclConfigServiceClient = void 0;
|
21
21
|
var acl_config_service_client_1 = require("./acl_config_service_client");
|
22
22
|
Object.defineProperty(exports, "AclConfigServiceClient", { enumerable: true, get: function () { return acl_config_service_client_1.AclConfigServiceClient; } });
|
23
23
|
var chunk_service_client_1 = require("./chunk_service_client");
|
@@ -48,4 +48,6 @@ var site_search_engine_service_client_1 = require("./site_search_engine_service_
|
|
48
48
|
Object.defineProperty(exports, "SiteSearchEngineServiceClient", { enumerable: true, get: function () { return site_search_engine_service_client_1.SiteSearchEngineServiceClient; } });
|
49
49
|
var user_event_service_client_1 = require("./user_event_service_client");
|
50
50
|
Object.defineProperty(exports, "UserEventServiceClient", { enumerable: true, get: function () { return user_event_service_client_1.UserEventServiceClient; } });
|
51
|
+
var rank_service_client_1 = require("./rank_service_client");
|
52
|
+
Object.defineProperty(exports, "RankServiceClient", { enumerable: true, get: function () { return rank_service_client_1.RankServiceClient; } });
|
51
53
|
//# sourceMappingURL=index.js.map
|