@google-cloud/vectorsearch 0.3.0 → 0.4.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/build/protos/google/cloud/vectorsearch/v1/data_object_search_service.proto +0 -40
- package/build/protos/google/cloud/vectorsearch/v1/vectorsearch_service.proto +6 -3
- package/build/protos/google/cloud/vectorsearch/v1beta/common.proto +4 -1
- package/build/protos/google/cloud/vectorsearch/v1beta/data_object.proto +8 -3
- package/build/protos/google/cloud/vectorsearch/v1beta/data_object_search_service.proto +71 -40
- package/build/protos/google/cloud/vectorsearch/v1beta/data_object_service.proto +11 -2
- package/build/protos/google/cloud/vectorsearch/v1beta/embedding_config.proto +3 -0
- package/build/protos/google/cloud/vectorsearch/v1beta/vectorsearch_service.proto +85 -15
- package/build/protos/protos.d.ts +607 -393
- package/build/protos/protos.js +1431 -904
- package/build/protos/protos.json +222 -128
- package/build/src/v1beta/data_object_search_service_client.d.ts +15 -6
- package/build/src/v1beta/data_object_search_service_client.js +10 -4
- package/build/src/v1beta/data_object_search_service_client.js.map +1 -1
- package/build/src/v1beta/data_object_service_client.d.ts +4 -0
- package/build/src/v1beta/data_object_service_client.js.map +1 -1
- package/package.json +1 -1
package/build/protos/protos.js
CHANGED
|
@@ -2002,7 +2002,6 @@
|
|
|
2002
2002
|
* Properties of an IndexHint.
|
|
2003
2003
|
* @memberof google.cloud.vectorsearch.v1.SearchHint
|
|
2004
2004
|
* @interface IIndexHint
|
|
2005
|
-
* @property {google.cloud.vectorsearch.v1.SearchHint.IndexHint.IDenseScannParams|null} [denseScannParams] IndexHint denseScannParams
|
|
2006
2005
|
* @property {string|null} [name] IndexHint name
|
|
2007
2006
|
*/
|
|
2008
2007
|
|
|
@@ -2021,14 +2020,6 @@
|
|
|
2021
2020
|
this[keys[i]] = properties[keys[i]];
|
|
2022
2021
|
}
|
|
2023
2022
|
|
|
2024
|
-
/**
|
|
2025
|
-
* IndexHint denseScannParams.
|
|
2026
|
-
* @member {google.cloud.vectorsearch.v1.SearchHint.IndexHint.IDenseScannParams|null|undefined} denseScannParams
|
|
2027
|
-
* @memberof google.cloud.vectorsearch.v1.SearchHint.IndexHint
|
|
2028
|
-
* @instance
|
|
2029
|
-
*/
|
|
2030
|
-
IndexHint.prototype.denseScannParams = null;
|
|
2031
|
-
|
|
2032
2023
|
/**
|
|
2033
2024
|
* IndexHint name.
|
|
2034
2025
|
* @member {string} name
|
|
@@ -2037,20 +2028,6 @@
|
|
|
2037
2028
|
*/
|
|
2038
2029
|
IndexHint.prototype.name = "";
|
|
2039
2030
|
|
|
2040
|
-
// OneOf field names bound to virtual getters and setters
|
|
2041
|
-
var $oneOfFields;
|
|
2042
|
-
|
|
2043
|
-
/**
|
|
2044
|
-
* IndexHint params.
|
|
2045
|
-
* @member {"denseScannParams"|undefined} params
|
|
2046
|
-
* @memberof google.cloud.vectorsearch.v1.SearchHint.IndexHint
|
|
2047
|
-
* @instance
|
|
2048
|
-
*/
|
|
2049
|
-
Object.defineProperty(IndexHint.prototype, "params", {
|
|
2050
|
-
get: $util.oneOfGetter($oneOfFields = ["denseScannParams"]),
|
|
2051
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
2052
|
-
});
|
|
2053
|
-
|
|
2054
2031
|
/**
|
|
2055
2032
|
* Creates a new IndexHint instance using the specified properties.
|
|
2056
2033
|
* @function create
|
|
@@ -2077,8 +2054,6 @@
|
|
|
2077
2054
|
writer = $Writer.create();
|
|
2078
2055
|
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
2079
2056
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
2080
|
-
if (message.denseScannParams != null && Object.hasOwnProperty.call(message, "denseScannParams"))
|
|
2081
|
-
$root.google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParams.encode(message.denseScannParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
2082
2057
|
return writer;
|
|
2083
2058
|
};
|
|
2084
2059
|
|
|
@@ -2115,10 +2090,6 @@
|
|
|
2115
2090
|
if (tag === error)
|
|
2116
2091
|
break;
|
|
2117
2092
|
switch (tag >>> 3) {
|
|
2118
|
-
case 2: {
|
|
2119
|
-
message.denseScannParams = $root.google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParams.decode(reader, reader.uint32());
|
|
2120
|
-
break;
|
|
2121
|
-
}
|
|
2122
2093
|
case 1: {
|
|
2123
2094
|
message.name = reader.string();
|
|
2124
2095
|
break;
|
|
@@ -2158,15 +2129,6 @@
|
|
|
2158
2129
|
IndexHint.verify = function verify(message) {
|
|
2159
2130
|
if (typeof message !== "object" || message === null)
|
|
2160
2131
|
return "object expected";
|
|
2161
|
-
var properties = {};
|
|
2162
|
-
if (message.denseScannParams != null && message.hasOwnProperty("denseScannParams")) {
|
|
2163
|
-
properties.params = 1;
|
|
2164
|
-
{
|
|
2165
|
-
var error = $root.google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParams.verify(message.denseScannParams);
|
|
2166
|
-
if (error)
|
|
2167
|
-
return "denseScannParams." + error;
|
|
2168
|
-
}
|
|
2169
|
-
}
|
|
2170
2132
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
2171
2133
|
if (!$util.isString(message.name))
|
|
2172
2134
|
return "name: string expected";
|
|
@@ -2185,11 +2147,6 @@
|
|
|
2185
2147
|
if (object instanceof $root.google.cloud.vectorsearch.v1.SearchHint.IndexHint)
|
|
2186
2148
|
return object;
|
|
2187
2149
|
var message = new $root.google.cloud.vectorsearch.v1.SearchHint.IndexHint();
|
|
2188
|
-
if (object.denseScannParams != null) {
|
|
2189
|
-
if (typeof object.denseScannParams !== "object")
|
|
2190
|
-
throw TypeError(".google.cloud.vectorsearch.v1.SearchHint.IndexHint.denseScannParams: object expected");
|
|
2191
|
-
message.denseScannParams = $root.google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParams.fromObject(object.denseScannParams);
|
|
2192
|
-
}
|
|
2193
2150
|
if (object.name != null)
|
|
2194
2151
|
message.name = String(object.name);
|
|
2195
2152
|
return message;
|
|
@@ -2212,11 +2169,6 @@
|
|
|
2212
2169
|
object.name = "";
|
|
2213
2170
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
2214
2171
|
object.name = message.name;
|
|
2215
|
-
if (message.denseScannParams != null && message.hasOwnProperty("denseScannParams")) {
|
|
2216
|
-
object.denseScannParams = $root.google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParams.toObject(message.denseScannParams, options);
|
|
2217
|
-
if (options.oneofs)
|
|
2218
|
-
object.params = "denseScannParams";
|
|
2219
|
-
}
|
|
2220
2172
|
return object;
|
|
2221
2173
|
};
|
|
2222
2174
|
|
|
@@ -2246,235 +2198,6 @@
|
|
|
2246
2198
|
return typeUrlPrefix + "/google.cloud.vectorsearch.v1.SearchHint.IndexHint";
|
|
2247
2199
|
};
|
|
2248
2200
|
|
|
2249
|
-
IndexHint.DenseScannParams = (function() {
|
|
2250
|
-
|
|
2251
|
-
/**
|
|
2252
|
-
* Properties of a DenseScannParams.
|
|
2253
|
-
* @memberof google.cloud.vectorsearch.v1.SearchHint.IndexHint
|
|
2254
|
-
* @interface IDenseScannParams
|
|
2255
|
-
* @property {number|null} [searchLeavesPct] DenseScannParams searchLeavesPct
|
|
2256
|
-
* @property {number|null} [initialCandidateCount] DenseScannParams initialCandidateCount
|
|
2257
|
-
*/
|
|
2258
|
-
|
|
2259
|
-
/**
|
|
2260
|
-
* Constructs a new DenseScannParams.
|
|
2261
|
-
* @memberof google.cloud.vectorsearch.v1.SearchHint.IndexHint
|
|
2262
|
-
* @classdesc Represents a DenseScannParams.
|
|
2263
|
-
* @implements IDenseScannParams
|
|
2264
|
-
* @constructor
|
|
2265
|
-
* @param {google.cloud.vectorsearch.v1.SearchHint.IndexHint.IDenseScannParams=} [properties] Properties to set
|
|
2266
|
-
*/
|
|
2267
|
-
function DenseScannParams(properties) {
|
|
2268
|
-
if (properties)
|
|
2269
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2270
|
-
if (properties[keys[i]] != null)
|
|
2271
|
-
this[keys[i]] = properties[keys[i]];
|
|
2272
|
-
}
|
|
2273
|
-
|
|
2274
|
-
/**
|
|
2275
|
-
* DenseScannParams searchLeavesPct.
|
|
2276
|
-
* @member {number} searchLeavesPct
|
|
2277
|
-
* @memberof google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParams
|
|
2278
|
-
* @instance
|
|
2279
|
-
*/
|
|
2280
|
-
DenseScannParams.prototype.searchLeavesPct = 0;
|
|
2281
|
-
|
|
2282
|
-
/**
|
|
2283
|
-
* DenseScannParams initialCandidateCount.
|
|
2284
|
-
* @member {number} initialCandidateCount
|
|
2285
|
-
* @memberof google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParams
|
|
2286
|
-
* @instance
|
|
2287
|
-
*/
|
|
2288
|
-
DenseScannParams.prototype.initialCandidateCount = 0;
|
|
2289
|
-
|
|
2290
|
-
/**
|
|
2291
|
-
* Creates a new DenseScannParams instance using the specified properties.
|
|
2292
|
-
* @function create
|
|
2293
|
-
* @memberof google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParams
|
|
2294
|
-
* @static
|
|
2295
|
-
* @param {google.cloud.vectorsearch.v1.SearchHint.IndexHint.IDenseScannParams=} [properties] Properties to set
|
|
2296
|
-
* @returns {google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParams} DenseScannParams instance
|
|
2297
|
-
*/
|
|
2298
|
-
DenseScannParams.create = function create(properties) {
|
|
2299
|
-
return new DenseScannParams(properties);
|
|
2300
|
-
};
|
|
2301
|
-
|
|
2302
|
-
/**
|
|
2303
|
-
* Encodes the specified DenseScannParams message. Does not implicitly {@link google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParams.verify|verify} messages.
|
|
2304
|
-
* @function encode
|
|
2305
|
-
* @memberof google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParams
|
|
2306
|
-
* @static
|
|
2307
|
-
* @param {google.cloud.vectorsearch.v1.SearchHint.IndexHint.IDenseScannParams} message DenseScannParams message or plain object to encode
|
|
2308
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2309
|
-
* @returns {$protobuf.Writer} Writer
|
|
2310
|
-
*/
|
|
2311
|
-
DenseScannParams.encode = function encode(message, writer) {
|
|
2312
|
-
if (!writer)
|
|
2313
|
-
writer = $Writer.create();
|
|
2314
|
-
if (message.searchLeavesPct != null && Object.hasOwnProperty.call(message, "searchLeavesPct"))
|
|
2315
|
-
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.searchLeavesPct);
|
|
2316
|
-
if (message.initialCandidateCount != null && Object.hasOwnProperty.call(message, "initialCandidateCount"))
|
|
2317
|
-
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.initialCandidateCount);
|
|
2318
|
-
return writer;
|
|
2319
|
-
};
|
|
2320
|
-
|
|
2321
|
-
/**
|
|
2322
|
-
* Encodes the specified DenseScannParams message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParams.verify|verify} messages.
|
|
2323
|
-
* @function encodeDelimited
|
|
2324
|
-
* @memberof google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParams
|
|
2325
|
-
* @static
|
|
2326
|
-
* @param {google.cloud.vectorsearch.v1.SearchHint.IndexHint.IDenseScannParams} message DenseScannParams message or plain object to encode
|
|
2327
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2328
|
-
* @returns {$protobuf.Writer} Writer
|
|
2329
|
-
*/
|
|
2330
|
-
DenseScannParams.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2331
|
-
return this.encode(message, writer).ldelim();
|
|
2332
|
-
};
|
|
2333
|
-
|
|
2334
|
-
/**
|
|
2335
|
-
* Decodes a DenseScannParams message from the specified reader or buffer.
|
|
2336
|
-
* @function decode
|
|
2337
|
-
* @memberof google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParams
|
|
2338
|
-
* @static
|
|
2339
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2340
|
-
* @param {number} [length] Message length if known beforehand
|
|
2341
|
-
* @returns {google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParams} DenseScannParams
|
|
2342
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2343
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2344
|
-
*/
|
|
2345
|
-
DenseScannParams.decode = function decode(reader, length, error) {
|
|
2346
|
-
if (!(reader instanceof $Reader))
|
|
2347
|
-
reader = $Reader.create(reader);
|
|
2348
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParams();
|
|
2349
|
-
while (reader.pos < end) {
|
|
2350
|
-
var tag = reader.uint32();
|
|
2351
|
-
if (tag === error)
|
|
2352
|
-
break;
|
|
2353
|
-
switch (tag >>> 3) {
|
|
2354
|
-
case 1: {
|
|
2355
|
-
message.searchLeavesPct = reader.int32();
|
|
2356
|
-
break;
|
|
2357
|
-
}
|
|
2358
|
-
case 2: {
|
|
2359
|
-
message.initialCandidateCount = reader.int32();
|
|
2360
|
-
break;
|
|
2361
|
-
}
|
|
2362
|
-
default:
|
|
2363
|
-
reader.skipType(tag & 7);
|
|
2364
|
-
break;
|
|
2365
|
-
}
|
|
2366
|
-
}
|
|
2367
|
-
return message;
|
|
2368
|
-
};
|
|
2369
|
-
|
|
2370
|
-
/**
|
|
2371
|
-
* Decodes a DenseScannParams message from the specified reader or buffer, length delimited.
|
|
2372
|
-
* @function decodeDelimited
|
|
2373
|
-
* @memberof google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParams
|
|
2374
|
-
* @static
|
|
2375
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2376
|
-
* @returns {google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParams} DenseScannParams
|
|
2377
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2378
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2379
|
-
*/
|
|
2380
|
-
DenseScannParams.decodeDelimited = function decodeDelimited(reader) {
|
|
2381
|
-
if (!(reader instanceof $Reader))
|
|
2382
|
-
reader = new $Reader(reader);
|
|
2383
|
-
return this.decode(reader, reader.uint32());
|
|
2384
|
-
};
|
|
2385
|
-
|
|
2386
|
-
/**
|
|
2387
|
-
* Verifies a DenseScannParams message.
|
|
2388
|
-
* @function verify
|
|
2389
|
-
* @memberof google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParams
|
|
2390
|
-
* @static
|
|
2391
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
2392
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2393
|
-
*/
|
|
2394
|
-
DenseScannParams.verify = function verify(message) {
|
|
2395
|
-
if (typeof message !== "object" || message === null)
|
|
2396
|
-
return "object expected";
|
|
2397
|
-
if (message.searchLeavesPct != null && message.hasOwnProperty("searchLeavesPct"))
|
|
2398
|
-
if (!$util.isInteger(message.searchLeavesPct))
|
|
2399
|
-
return "searchLeavesPct: integer expected";
|
|
2400
|
-
if (message.initialCandidateCount != null && message.hasOwnProperty("initialCandidateCount"))
|
|
2401
|
-
if (!$util.isInteger(message.initialCandidateCount))
|
|
2402
|
-
return "initialCandidateCount: integer expected";
|
|
2403
|
-
return null;
|
|
2404
|
-
};
|
|
2405
|
-
|
|
2406
|
-
/**
|
|
2407
|
-
* Creates a DenseScannParams message from a plain object. Also converts values to their respective internal types.
|
|
2408
|
-
* @function fromObject
|
|
2409
|
-
* @memberof google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParams
|
|
2410
|
-
* @static
|
|
2411
|
-
* @param {Object.<string,*>} object Plain object
|
|
2412
|
-
* @returns {google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParams} DenseScannParams
|
|
2413
|
-
*/
|
|
2414
|
-
DenseScannParams.fromObject = function fromObject(object) {
|
|
2415
|
-
if (object instanceof $root.google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParams)
|
|
2416
|
-
return object;
|
|
2417
|
-
var message = new $root.google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParams();
|
|
2418
|
-
if (object.searchLeavesPct != null)
|
|
2419
|
-
message.searchLeavesPct = object.searchLeavesPct | 0;
|
|
2420
|
-
if (object.initialCandidateCount != null)
|
|
2421
|
-
message.initialCandidateCount = object.initialCandidateCount | 0;
|
|
2422
|
-
return message;
|
|
2423
|
-
};
|
|
2424
|
-
|
|
2425
|
-
/**
|
|
2426
|
-
* Creates a plain object from a DenseScannParams message. Also converts values to other types if specified.
|
|
2427
|
-
* @function toObject
|
|
2428
|
-
* @memberof google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParams
|
|
2429
|
-
* @static
|
|
2430
|
-
* @param {google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParams} message DenseScannParams
|
|
2431
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2432
|
-
* @returns {Object.<string,*>} Plain object
|
|
2433
|
-
*/
|
|
2434
|
-
DenseScannParams.toObject = function toObject(message, options) {
|
|
2435
|
-
if (!options)
|
|
2436
|
-
options = {};
|
|
2437
|
-
var object = {};
|
|
2438
|
-
if (options.defaults) {
|
|
2439
|
-
object.searchLeavesPct = 0;
|
|
2440
|
-
object.initialCandidateCount = 0;
|
|
2441
|
-
}
|
|
2442
|
-
if (message.searchLeavesPct != null && message.hasOwnProperty("searchLeavesPct"))
|
|
2443
|
-
object.searchLeavesPct = message.searchLeavesPct;
|
|
2444
|
-
if (message.initialCandidateCount != null && message.hasOwnProperty("initialCandidateCount"))
|
|
2445
|
-
object.initialCandidateCount = message.initialCandidateCount;
|
|
2446
|
-
return object;
|
|
2447
|
-
};
|
|
2448
|
-
|
|
2449
|
-
/**
|
|
2450
|
-
* Converts this DenseScannParams to JSON.
|
|
2451
|
-
* @function toJSON
|
|
2452
|
-
* @memberof google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParams
|
|
2453
|
-
* @instance
|
|
2454
|
-
* @returns {Object.<string,*>} JSON object
|
|
2455
|
-
*/
|
|
2456
|
-
DenseScannParams.prototype.toJSON = function toJSON() {
|
|
2457
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2458
|
-
};
|
|
2459
|
-
|
|
2460
|
-
/**
|
|
2461
|
-
* Gets the default type url for DenseScannParams
|
|
2462
|
-
* @function getTypeUrl
|
|
2463
|
-
* @memberof google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParams
|
|
2464
|
-
* @static
|
|
2465
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2466
|
-
* @returns {string} The default type url
|
|
2467
|
-
*/
|
|
2468
|
-
DenseScannParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
2469
|
-
if (typeUrlPrefix === undefined) {
|
|
2470
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
2471
|
-
}
|
|
2472
|
-
return typeUrlPrefix + "/google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParams";
|
|
2473
|
-
};
|
|
2474
|
-
|
|
2475
|
-
return DenseScannParams;
|
|
2476
|
-
})();
|
|
2477
|
-
|
|
2478
2201
|
return IndexHint;
|
|
2479
2202
|
})();
|
|
2480
2203
|
|
|
@@ -6651,7 +6374,6 @@
|
|
|
6651
6374
|
* @memberof google.cloud.vectorsearch.v1
|
|
6652
6375
|
* @interface IRanker
|
|
6653
6376
|
* @property {google.cloud.vectorsearch.v1.IReciprocalRankFusion|null} [rrf] Ranker rrf
|
|
6654
|
-
* @property {google.cloud.vectorsearch.v1.IVertexRanker|null} [vertex] Ranker vertex
|
|
6655
6377
|
*/
|
|
6656
6378
|
|
|
6657
6379
|
/**
|
|
@@ -6677,25 +6399,17 @@
|
|
|
6677
6399
|
*/
|
|
6678
6400
|
Ranker.prototype.rrf = null;
|
|
6679
6401
|
|
|
6680
|
-
/**
|
|
6681
|
-
* Ranker vertex.
|
|
6682
|
-
* @member {google.cloud.vectorsearch.v1.IVertexRanker|null|undefined} vertex
|
|
6683
|
-
* @memberof google.cloud.vectorsearch.v1.Ranker
|
|
6684
|
-
* @instance
|
|
6685
|
-
*/
|
|
6686
|
-
Ranker.prototype.vertex = null;
|
|
6687
|
-
|
|
6688
6402
|
// OneOf field names bound to virtual getters and setters
|
|
6689
6403
|
var $oneOfFields;
|
|
6690
6404
|
|
|
6691
6405
|
/**
|
|
6692
6406
|
* Ranker ranker.
|
|
6693
|
-
* @member {"rrf"|
|
|
6407
|
+
* @member {"rrf"|undefined} ranker
|
|
6694
6408
|
* @memberof google.cloud.vectorsearch.v1.Ranker
|
|
6695
6409
|
* @instance
|
|
6696
6410
|
*/
|
|
6697
6411
|
Object.defineProperty(Ranker.prototype, "ranker", {
|
|
6698
|
-
get: $util.oneOfGetter($oneOfFields = ["rrf"
|
|
6412
|
+
get: $util.oneOfGetter($oneOfFields = ["rrf"]),
|
|
6699
6413
|
set: $util.oneOfSetter($oneOfFields)
|
|
6700
6414
|
});
|
|
6701
6415
|
|
|
@@ -6725,8 +6439,6 @@
|
|
|
6725
6439
|
writer = $Writer.create();
|
|
6726
6440
|
if (message.rrf != null && Object.hasOwnProperty.call(message, "rrf"))
|
|
6727
6441
|
$root.google.cloud.vectorsearch.v1.ReciprocalRankFusion.encode(message.rrf, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
6728
|
-
if (message.vertex != null && Object.hasOwnProperty.call(message, "vertex"))
|
|
6729
|
-
$root.google.cloud.vectorsearch.v1.VertexRanker.encode(message.vertex, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
6730
6442
|
return writer;
|
|
6731
6443
|
};
|
|
6732
6444
|
|
|
@@ -6767,10 +6479,6 @@
|
|
|
6767
6479
|
message.rrf = $root.google.cloud.vectorsearch.v1.ReciprocalRankFusion.decode(reader, reader.uint32());
|
|
6768
6480
|
break;
|
|
6769
6481
|
}
|
|
6770
|
-
case 2: {
|
|
6771
|
-
message.vertex = $root.google.cloud.vectorsearch.v1.VertexRanker.decode(reader, reader.uint32());
|
|
6772
|
-
break;
|
|
6773
|
-
}
|
|
6774
6482
|
default:
|
|
6775
6483
|
reader.skipType(tag & 7);
|
|
6776
6484
|
break;
|
|
@@ -6815,16 +6523,6 @@
|
|
|
6815
6523
|
return "rrf." + error;
|
|
6816
6524
|
}
|
|
6817
6525
|
}
|
|
6818
|
-
if (message.vertex != null && message.hasOwnProperty("vertex")) {
|
|
6819
|
-
if (properties.ranker === 1)
|
|
6820
|
-
return "ranker: multiple values";
|
|
6821
|
-
properties.ranker = 1;
|
|
6822
|
-
{
|
|
6823
|
-
var error = $root.google.cloud.vectorsearch.v1.VertexRanker.verify(message.vertex);
|
|
6824
|
-
if (error)
|
|
6825
|
-
return "vertex." + error;
|
|
6826
|
-
}
|
|
6827
|
-
}
|
|
6828
6526
|
return null;
|
|
6829
6527
|
};
|
|
6830
6528
|
|
|
@@ -6845,11 +6543,6 @@
|
|
|
6845
6543
|
throw TypeError(".google.cloud.vectorsearch.v1.Ranker.rrf: object expected");
|
|
6846
6544
|
message.rrf = $root.google.cloud.vectorsearch.v1.ReciprocalRankFusion.fromObject(object.rrf);
|
|
6847
6545
|
}
|
|
6848
|
-
if (object.vertex != null) {
|
|
6849
|
-
if (typeof object.vertex !== "object")
|
|
6850
|
-
throw TypeError(".google.cloud.vectorsearch.v1.Ranker.vertex: object expected");
|
|
6851
|
-
message.vertex = $root.google.cloud.vectorsearch.v1.VertexRanker.fromObject(object.vertex);
|
|
6852
|
-
}
|
|
6853
6546
|
return message;
|
|
6854
6547
|
};
|
|
6855
6548
|
|
|
@@ -6871,11 +6564,6 @@
|
|
|
6871
6564
|
if (options.oneofs)
|
|
6872
6565
|
object.ranker = "rrf";
|
|
6873
6566
|
}
|
|
6874
|
-
if (message.vertex != null && message.hasOwnProperty("vertex")) {
|
|
6875
|
-
object.vertex = $root.google.cloud.vectorsearch.v1.VertexRanker.toObject(message.vertex, options);
|
|
6876
|
-
if (options.oneofs)
|
|
6877
|
-
object.ranker = "vertex";
|
|
6878
|
-
}
|
|
6879
6567
|
return object;
|
|
6880
6568
|
};
|
|
6881
6569
|
|
|
@@ -7137,281 +6825,6 @@
|
|
|
7137
6825
|
return ReciprocalRankFusion;
|
|
7138
6826
|
})();
|
|
7139
6827
|
|
|
7140
|
-
v1.VertexRanker = (function() {
|
|
7141
|
-
|
|
7142
|
-
/**
|
|
7143
|
-
* Properties of a VertexRanker.
|
|
7144
|
-
* @memberof google.cloud.vectorsearch.v1
|
|
7145
|
-
* @interface IVertexRanker
|
|
7146
|
-
* @property {string|null} [query] VertexRanker query
|
|
7147
|
-
* @property {string|null} [titleTemplate] VertexRanker titleTemplate
|
|
7148
|
-
* @property {string|null} [contentTemplate] VertexRanker contentTemplate
|
|
7149
|
-
* @property {string|null} [model] VertexRanker model
|
|
7150
|
-
*/
|
|
7151
|
-
|
|
7152
|
-
/**
|
|
7153
|
-
* Constructs a new VertexRanker.
|
|
7154
|
-
* @memberof google.cloud.vectorsearch.v1
|
|
7155
|
-
* @classdesc Represents a VertexRanker.
|
|
7156
|
-
* @implements IVertexRanker
|
|
7157
|
-
* @constructor
|
|
7158
|
-
* @param {google.cloud.vectorsearch.v1.IVertexRanker=} [properties] Properties to set
|
|
7159
|
-
*/
|
|
7160
|
-
function VertexRanker(properties) {
|
|
7161
|
-
if (properties)
|
|
7162
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
7163
|
-
if (properties[keys[i]] != null)
|
|
7164
|
-
this[keys[i]] = properties[keys[i]];
|
|
7165
|
-
}
|
|
7166
|
-
|
|
7167
|
-
/**
|
|
7168
|
-
* VertexRanker query.
|
|
7169
|
-
* @member {string} query
|
|
7170
|
-
* @memberof google.cloud.vectorsearch.v1.VertexRanker
|
|
7171
|
-
* @instance
|
|
7172
|
-
*/
|
|
7173
|
-
VertexRanker.prototype.query = "";
|
|
7174
|
-
|
|
7175
|
-
/**
|
|
7176
|
-
* VertexRanker titleTemplate.
|
|
7177
|
-
* @member {string} titleTemplate
|
|
7178
|
-
* @memberof google.cloud.vectorsearch.v1.VertexRanker
|
|
7179
|
-
* @instance
|
|
7180
|
-
*/
|
|
7181
|
-
VertexRanker.prototype.titleTemplate = "";
|
|
7182
|
-
|
|
7183
|
-
/**
|
|
7184
|
-
* VertexRanker contentTemplate.
|
|
7185
|
-
* @member {string} contentTemplate
|
|
7186
|
-
* @memberof google.cloud.vectorsearch.v1.VertexRanker
|
|
7187
|
-
* @instance
|
|
7188
|
-
*/
|
|
7189
|
-
VertexRanker.prototype.contentTemplate = "";
|
|
7190
|
-
|
|
7191
|
-
/**
|
|
7192
|
-
* VertexRanker model.
|
|
7193
|
-
* @member {string} model
|
|
7194
|
-
* @memberof google.cloud.vectorsearch.v1.VertexRanker
|
|
7195
|
-
* @instance
|
|
7196
|
-
*/
|
|
7197
|
-
VertexRanker.prototype.model = "";
|
|
7198
|
-
|
|
7199
|
-
/**
|
|
7200
|
-
* Creates a new VertexRanker instance using the specified properties.
|
|
7201
|
-
* @function create
|
|
7202
|
-
* @memberof google.cloud.vectorsearch.v1.VertexRanker
|
|
7203
|
-
* @static
|
|
7204
|
-
* @param {google.cloud.vectorsearch.v1.IVertexRanker=} [properties] Properties to set
|
|
7205
|
-
* @returns {google.cloud.vectorsearch.v1.VertexRanker} VertexRanker instance
|
|
7206
|
-
*/
|
|
7207
|
-
VertexRanker.create = function create(properties) {
|
|
7208
|
-
return new VertexRanker(properties);
|
|
7209
|
-
};
|
|
7210
|
-
|
|
7211
|
-
/**
|
|
7212
|
-
* Encodes the specified VertexRanker message. Does not implicitly {@link google.cloud.vectorsearch.v1.VertexRanker.verify|verify} messages.
|
|
7213
|
-
* @function encode
|
|
7214
|
-
* @memberof google.cloud.vectorsearch.v1.VertexRanker
|
|
7215
|
-
* @static
|
|
7216
|
-
* @param {google.cloud.vectorsearch.v1.IVertexRanker} message VertexRanker message or plain object to encode
|
|
7217
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7218
|
-
* @returns {$protobuf.Writer} Writer
|
|
7219
|
-
*/
|
|
7220
|
-
VertexRanker.encode = function encode(message, writer) {
|
|
7221
|
-
if (!writer)
|
|
7222
|
-
writer = $Writer.create();
|
|
7223
|
-
if (message.query != null && Object.hasOwnProperty.call(message, "query"))
|
|
7224
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.query);
|
|
7225
|
-
if (message.titleTemplate != null && Object.hasOwnProperty.call(message, "titleTemplate"))
|
|
7226
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.titleTemplate);
|
|
7227
|
-
if (message.contentTemplate != null && Object.hasOwnProperty.call(message, "contentTemplate"))
|
|
7228
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.contentTemplate);
|
|
7229
|
-
if (message.model != null && Object.hasOwnProperty.call(message, "model"))
|
|
7230
|
-
writer.uint32(/* id 4, wireType 2 =*/34).string(message.model);
|
|
7231
|
-
return writer;
|
|
7232
|
-
};
|
|
7233
|
-
|
|
7234
|
-
/**
|
|
7235
|
-
* Encodes the specified VertexRanker message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1.VertexRanker.verify|verify} messages.
|
|
7236
|
-
* @function encodeDelimited
|
|
7237
|
-
* @memberof google.cloud.vectorsearch.v1.VertexRanker
|
|
7238
|
-
* @static
|
|
7239
|
-
* @param {google.cloud.vectorsearch.v1.IVertexRanker} message VertexRanker message or plain object to encode
|
|
7240
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7241
|
-
* @returns {$protobuf.Writer} Writer
|
|
7242
|
-
*/
|
|
7243
|
-
VertexRanker.encodeDelimited = function encodeDelimited(message, writer) {
|
|
7244
|
-
return this.encode(message, writer).ldelim();
|
|
7245
|
-
};
|
|
7246
|
-
|
|
7247
|
-
/**
|
|
7248
|
-
* Decodes a VertexRanker message from the specified reader or buffer.
|
|
7249
|
-
* @function decode
|
|
7250
|
-
* @memberof google.cloud.vectorsearch.v1.VertexRanker
|
|
7251
|
-
* @static
|
|
7252
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7253
|
-
* @param {number} [length] Message length if known beforehand
|
|
7254
|
-
* @returns {google.cloud.vectorsearch.v1.VertexRanker} VertexRanker
|
|
7255
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7256
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7257
|
-
*/
|
|
7258
|
-
VertexRanker.decode = function decode(reader, length, error) {
|
|
7259
|
-
if (!(reader instanceof $Reader))
|
|
7260
|
-
reader = $Reader.create(reader);
|
|
7261
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1.VertexRanker();
|
|
7262
|
-
while (reader.pos < end) {
|
|
7263
|
-
var tag = reader.uint32();
|
|
7264
|
-
if (tag === error)
|
|
7265
|
-
break;
|
|
7266
|
-
switch (tag >>> 3) {
|
|
7267
|
-
case 1: {
|
|
7268
|
-
message.query = reader.string();
|
|
7269
|
-
break;
|
|
7270
|
-
}
|
|
7271
|
-
case 2: {
|
|
7272
|
-
message.titleTemplate = reader.string();
|
|
7273
|
-
break;
|
|
7274
|
-
}
|
|
7275
|
-
case 3: {
|
|
7276
|
-
message.contentTemplate = reader.string();
|
|
7277
|
-
break;
|
|
7278
|
-
}
|
|
7279
|
-
case 4: {
|
|
7280
|
-
message.model = reader.string();
|
|
7281
|
-
break;
|
|
7282
|
-
}
|
|
7283
|
-
default:
|
|
7284
|
-
reader.skipType(tag & 7);
|
|
7285
|
-
break;
|
|
7286
|
-
}
|
|
7287
|
-
}
|
|
7288
|
-
return message;
|
|
7289
|
-
};
|
|
7290
|
-
|
|
7291
|
-
/**
|
|
7292
|
-
* Decodes a VertexRanker message from the specified reader or buffer, length delimited.
|
|
7293
|
-
* @function decodeDelimited
|
|
7294
|
-
* @memberof google.cloud.vectorsearch.v1.VertexRanker
|
|
7295
|
-
* @static
|
|
7296
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7297
|
-
* @returns {google.cloud.vectorsearch.v1.VertexRanker} VertexRanker
|
|
7298
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7299
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7300
|
-
*/
|
|
7301
|
-
VertexRanker.decodeDelimited = function decodeDelimited(reader) {
|
|
7302
|
-
if (!(reader instanceof $Reader))
|
|
7303
|
-
reader = new $Reader(reader);
|
|
7304
|
-
return this.decode(reader, reader.uint32());
|
|
7305
|
-
};
|
|
7306
|
-
|
|
7307
|
-
/**
|
|
7308
|
-
* Verifies a VertexRanker message.
|
|
7309
|
-
* @function verify
|
|
7310
|
-
* @memberof google.cloud.vectorsearch.v1.VertexRanker
|
|
7311
|
-
* @static
|
|
7312
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
7313
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
7314
|
-
*/
|
|
7315
|
-
VertexRanker.verify = function verify(message) {
|
|
7316
|
-
if (typeof message !== "object" || message === null)
|
|
7317
|
-
return "object expected";
|
|
7318
|
-
if (message.query != null && message.hasOwnProperty("query"))
|
|
7319
|
-
if (!$util.isString(message.query))
|
|
7320
|
-
return "query: string expected";
|
|
7321
|
-
if (message.titleTemplate != null && message.hasOwnProperty("titleTemplate"))
|
|
7322
|
-
if (!$util.isString(message.titleTemplate))
|
|
7323
|
-
return "titleTemplate: string expected";
|
|
7324
|
-
if (message.contentTemplate != null && message.hasOwnProperty("contentTemplate"))
|
|
7325
|
-
if (!$util.isString(message.contentTemplate))
|
|
7326
|
-
return "contentTemplate: string expected";
|
|
7327
|
-
if (message.model != null && message.hasOwnProperty("model"))
|
|
7328
|
-
if (!$util.isString(message.model))
|
|
7329
|
-
return "model: string expected";
|
|
7330
|
-
return null;
|
|
7331
|
-
};
|
|
7332
|
-
|
|
7333
|
-
/**
|
|
7334
|
-
* Creates a VertexRanker message from a plain object. Also converts values to their respective internal types.
|
|
7335
|
-
* @function fromObject
|
|
7336
|
-
* @memberof google.cloud.vectorsearch.v1.VertexRanker
|
|
7337
|
-
* @static
|
|
7338
|
-
* @param {Object.<string,*>} object Plain object
|
|
7339
|
-
* @returns {google.cloud.vectorsearch.v1.VertexRanker} VertexRanker
|
|
7340
|
-
*/
|
|
7341
|
-
VertexRanker.fromObject = function fromObject(object) {
|
|
7342
|
-
if (object instanceof $root.google.cloud.vectorsearch.v1.VertexRanker)
|
|
7343
|
-
return object;
|
|
7344
|
-
var message = new $root.google.cloud.vectorsearch.v1.VertexRanker();
|
|
7345
|
-
if (object.query != null)
|
|
7346
|
-
message.query = String(object.query);
|
|
7347
|
-
if (object.titleTemplate != null)
|
|
7348
|
-
message.titleTemplate = String(object.titleTemplate);
|
|
7349
|
-
if (object.contentTemplate != null)
|
|
7350
|
-
message.contentTemplate = String(object.contentTemplate);
|
|
7351
|
-
if (object.model != null)
|
|
7352
|
-
message.model = String(object.model);
|
|
7353
|
-
return message;
|
|
7354
|
-
};
|
|
7355
|
-
|
|
7356
|
-
/**
|
|
7357
|
-
* Creates a plain object from a VertexRanker message. Also converts values to other types if specified.
|
|
7358
|
-
* @function toObject
|
|
7359
|
-
* @memberof google.cloud.vectorsearch.v1.VertexRanker
|
|
7360
|
-
* @static
|
|
7361
|
-
* @param {google.cloud.vectorsearch.v1.VertexRanker} message VertexRanker
|
|
7362
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
7363
|
-
* @returns {Object.<string,*>} Plain object
|
|
7364
|
-
*/
|
|
7365
|
-
VertexRanker.toObject = function toObject(message, options) {
|
|
7366
|
-
if (!options)
|
|
7367
|
-
options = {};
|
|
7368
|
-
var object = {};
|
|
7369
|
-
if (options.defaults) {
|
|
7370
|
-
object.query = "";
|
|
7371
|
-
object.titleTemplate = "";
|
|
7372
|
-
object.contentTemplate = "";
|
|
7373
|
-
object.model = "";
|
|
7374
|
-
}
|
|
7375
|
-
if (message.query != null && message.hasOwnProperty("query"))
|
|
7376
|
-
object.query = message.query;
|
|
7377
|
-
if (message.titleTemplate != null && message.hasOwnProperty("titleTemplate"))
|
|
7378
|
-
object.titleTemplate = message.titleTemplate;
|
|
7379
|
-
if (message.contentTemplate != null && message.hasOwnProperty("contentTemplate"))
|
|
7380
|
-
object.contentTemplate = message.contentTemplate;
|
|
7381
|
-
if (message.model != null && message.hasOwnProperty("model"))
|
|
7382
|
-
object.model = message.model;
|
|
7383
|
-
return object;
|
|
7384
|
-
};
|
|
7385
|
-
|
|
7386
|
-
/**
|
|
7387
|
-
* Converts this VertexRanker to JSON.
|
|
7388
|
-
* @function toJSON
|
|
7389
|
-
* @memberof google.cloud.vectorsearch.v1.VertexRanker
|
|
7390
|
-
* @instance
|
|
7391
|
-
* @returns {Object.<string,*>} JSON object
|
|
7392
|
-
*/
|
|
7393
|
-
VertexRanker.prototype.toJSON = function toJSON() {
|
|
7394
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
7395
|
-
};
|
|
7396
|
-
|
|
7397
|
-
/**
|
|
7398
|
-
* Gets the default type url for VertexRanker
|
|
7399
|
-
* @function getTypeUrl
|
|
7400
|
-
* @memberof google.cloud.vectorsearch.v1.VertexRanker
|
|
7401
|
-
* @static
|
|
7402
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
7403
|
-
* @returns {string} The default type url
|
|
7404
|
-
*/
|
|
7405
|
-
VertexRanker.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
7406
|
-
if (typeUrlPrefix === undefined) {
|
|
7407
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
7408
|
-
}
|
|
7409
|
-
return typeUrlPrefix + "/google.cloud.vectorsearch.v1.VertexRanker";
|
|
7410
|
-
};
|
|
7411
|
-
|
|
7412
|
-
return VertexRanker;
|
|
7413
|
-
})();
|
|
7414
|
-
|
|
7415
6828
|
v1.BatchSearchDataObjectsResponse = (function() {
|
|
7416
6829
|
|
|
7417
6830
|
/**
|
|
@@ -17439,6 +16852,7 @@
|
|
|
17439
16852
|
* @property {google.protobuf.ITimestamp|null} [updateTime] DataObject updateTime
|
|
17440
16853
|
* @property {google.protobuf.IStruct|null} [data] DataObject data
|
|
17441
16854
|
* @property {Object.<string,google.cloud.vectorsearch.v1beta.IVector>|null} [vectors] DataObject vectors
|
|
16855
|
+
* @property {string|null} [etag] DataObject etag
|
|
17442
16856
|
*/
|
|
17443
16857
|
|
|
17444
16858
|
/**
|
|
@@ -17505,6 +16919,14 @@
|
|
|
17505
16919
|
*/
|
|
17506
16920
|
DataObject.prototype.vectors = $util.emptyObject;
|
|
17507
16921
|
|
|
16922
|
+
/**
|
|
16923
|
+
* DataObject etag.
|
|
16924
|
+
* @member {string} etag
|
|
16925
|
+
* @memberof google.cloud.vectorsearch.v1beta.DataObject
|
|
16926
|
+
* @instance
|
|
16927
|
+
*/
|
|
16928
|
+
DataObject.prototype.etag = "";
|
|
16929
|
+
|
|
17508
16930
|
/**
|
|
17509
16931
|
* Creates a new DataObject instance using the specified properties.
|
|
17510
16932
|
* @function create
|
|
@@ -17544,6 +16966,8 @@
|
|
|
17544
16966
|
writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
17545
16967
|
$root.google.cloud.vectorsearch.v1beta.Vector.encode(message.vectors[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
17546
16968
|
}
|
|
16969
|
+
if (message.etag != null && Object.hasOwnProperty.call(message, "etag"))
|
|
16970
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.etag);
|
|
17547
16971
|
return writer;
|
|
17548
16972
|
};
|
|
17549
16973
|
|
|
@@ -17623,6 +17047,10 @@
|
|
|
17623
17047
|
message.vectors[key] = value;
|
|
17624
17048
|
break;
|
|
17625
17049
|
}
|
|
17050
|
+
case 8: {
|
|
17051
|
+
message.etag = reader.string();
|
|
17052
|
+
break;
|
|
17053
|
+
}
|
|
17626
17054
|
default:
|
|
17627
17055
|
reader.skipType(tag & 7);
|
|
17628
17056
|
break;
|
|
@@ -17689,6 +17117,9 @@
|
|
|
17689
17117
|
return "vectors." + error;
|
|
17690
17118
|
}
|
|
17691
17119
|
}
|
|
17120
|
+
if (message.etag != null && message.hasOwnProperty("etag"))
|
|
17121
|
+
if (!$util.isString(message.etag))
|
|
17122
|
+
return "etag: string expected";
|
|
17692
17123
|
return null;
|
|
17693
17124
|
};
|
|
17694
17125
|
|
|
@@ -17733,6 +17164,8 @@
|
|
|
17733
17164
|
message.vectors[keys[i]] = $root.google.cloud.vectorsearch.v1beta.Vector.fromObject(object.vectors[keys[i]]);
|
|
17734
17165
|
}
|
|
17735
17166
|
}
|
|
17167
|
+
if (object.etag != null)
|
|
17168
|
+
message.etag = String(object.etag);
|
|
17736
17169
|
return message;
|
|
17737
17170
|
};
|
|
17738
17171
|
|
|
@@ -17757,6 +17190,7 @@
|
|
|
17757
17190
|
object.createTime = null;
|
|
17758
17191
|
object.updateTime = null;
|
|
17759
17192
|
object.data = null;
|
|
17193
|
+
object.etag = "";
|
|
17760
17194
|
}
|
|
17761
17195
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
17762
17196
|
object.name = message.name;
|
|
@@ -17774,6 +17208,8 @@
|
|
|
17774
17208
|
for (var j = 0; j < keys2.length; ++j)
|
|
17775
17209
|
object.vectors[keys2[j]] = $root.google.cloud.vectorsearch.v1beta.Vector.toObject(message.vectors[keys2[j]], options);
|
|
17776
17210
|
}
|
|
17211
|
+
if (message.etag != null && message.hasOwnProperty("etag"))
|
|
17212
|
+
object.etag = message.etag;
|
|
17777
17213
|
return object;
|
|
17778
17214
|
};
|
|
17779
17215
|
|
|
@@ -19113,6 +18549,8 @@
|
|
|
19113
18549
|
* @interface ISearchHint
|
|
19114
18550
|
* @property {google.cloud.vectorsearch.v1beta.SearchHint.IIndexHint|null} [useIndex] SearchHint useIndex
|
|
19115
18551
|
* @property {boolean|null} [useKnn] SearchHint useKnn
|
|
18552
|
+
* @property {google.cloud.vectorsearch.v1beta.SearchHint.IKnnHint|null} [knnHint] SearchHint knnHint
|
|
18553
|
+
* @property {google.cloud.vectorsearch.v1beta.SearchHint.IIndexHint|null} [indexHint] SearchHint indexHint
|
|
19116
18554
|
*/
|
|
19117
18555
|
|
|
19118
18556
|
/**
|
|
@@ -19146,17 +18584,33 @@
|
|
|
19146
18584
|
*/
|
|
19147
18585
|
SearchHint.prototype.useKnn = null;
|
|
19148
18586
|
|
|
18587
|
+
/**
|
|
18588
|
+
* SearchHint knnHint.
|
|
18589
|
+
* @member {google.cloud.vectorsearch.v1beta.SearchHint.IKnnHint|null|undefined} knnHint
|
|
18590
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint
|
|
18591
|
+
* @instance
|
|
18592
|
+
*/
|
|
18593
|
+
SearchHint.prototype.knnHint = null;
|
|
18594
|
+
|
|
18595
|
+
/**
|
|
18596
|
+
* SearchHint indexHint.
|
|
18597
|
+
* @member {google.cloud.vectorsearch.v1beta.SearchHint.IIndexHint|null|undefined} indexHint
|
|
18598
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint
|
|
18599
|
+
* @instance
|
|
18600
|
+
*/
|
|
18601
|
+
SearchHint.prototype.indexHint = null;
|
|
18602
|
+
|
|
19149
18603
|
// OneOf field names bound to virtual getters and setters
|
|
19150
18604
|
var $oneOfFields;
|
|
19151
18605
|
|
|
19152
18606
|
/**
|
|
19153
18607
|
* SearchHint indexType.
|
|
19154
|
-
* @member {"useIndex"|"useKnn"|undefined} indexType
|
|
18608
|
+
* @member {"useIndex"|"useKnn"|"knnHint"|"indexHint"|undefined} indexType
|
|
19155
18609
|
* @memberof google.cloud.vectorsearch.v1beta.SearchHint
|
|
19156
18610
|
* @instance
|
|
19157
18611
|
*/
|
|
19158
18612
|
Object.defineProperty(SearchHint.prototype, "indexType", {
|
|
19159
|
-
get: $util.oneOfGetter($oneOfFields = ["useIndex", "useKnn"]),
|
|
18613
|
+
get: $util.oneOfGetter($oneOfFields = ["useIndex", "useKnn", "knnHint", "indexHint"]),
|
|
19160
18614
|
set: $util.oneOfSetter($oneOfFields)
|
|
19161
18615
|
});
|
|
19162
18616
|
|
|
@@ -19188,6 +18642,10 @@
|
|
|
19188
18642
|
$root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.encode(message.useIndex, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
19189
18643
|
if (message.useKnn != null && Object.hasOwnProperty.call(message, "useKnn"))
|
|
19190
18644
|
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.useKnn);
|
|
18645
|
+
if (message.knnHint != null && Object.hasOwnProperty.call(message, "knnHint"))
|
|
18646
|
+
$root.google.cloud.vectorsearch.v1beta.SearchHint.KnnHint.encode(message.knnHint, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
18647
|
+
if (message.indexHint != null && Object.hasOwnProperty.call(message, "indexHint"))
|
|
18648
|
+
$root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.encode(message.indexHint, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
19191
18649
|
return writer;
|
|
19192
18650
|
};
|
|
19193
18651
|
|
|
@@ -19232,6 +18690,14 @@
|
|
|
19232
18690
|
message.useKnn = reader.bool();
|
|
19233
18691
|
break;
|
|
19234
18692
|
}
|
|
18693
|
+
case 3: {
|
|
18694
|
+
message.knnHint = $root.google.cloud.vectorsearch.v1beta.SearchHint.KnnHint.decode(reader, reader.uint32());
|
|
18695
|
+
break;
|
|
18696
|
+
}
|
|
18697
|
+
case 4: {
|
|
18698
|
+
message.indexHint = $root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.decode(reader, reader.uint32());
|
|
18699
|
+
break;
|
|
18700
|
+
}
|
|
19235
18701
|
default:
|
|
19236
18702
|
reader.skipType(tag & 7);
|
|
19237
18703
|
break;
|
|
@@ -19283,6 +18749,26 @@
|
|
|
19283
18749
|
if (typeof message.useKnn !== "boolean")
|
|
19284
18750
|
return "useKnn: boolean expected";
|
|
19285
18751
|
}
|
|
18752
|
+
if (message.knnHint != null && message.hasOwnProperty("knnHint")) {
|
|
18753
|
+
if (properties.indexType === 1)
|
|
18754
|
+
return "indexType: multiple values";
|
|
18755
|
+
properties.indexType = 1;
|
|
18756
|
+
{
|
|
18757
|
+
var error = $root.google.cloud.vectorsearch.v1beta.SearchHint.KnnHint.verify(message.knnHint);
|
|
18758
|
+
if (error)
|
|
18759
|
+
return "knnHint." + error;
|
|
18760
|
+
}
|
|
18761
|
+
}
|
|
18762
|
+
if (message.indexHint != null && message.hasOwnProperty("indexHint")) {
|
|
18763
|
+
if (properties.indexType === 1)
|
|
18764
|
+
return "indexType: multiple values";
|
|
18765
|
+
properties.indexType = 1;
|
|
18766
|
+
{
|
|
18767
|
+
var error = $root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.verify(message.indexHint);
|
|
18768
|
+
if (error)
|
|
18769
|
+
return "indexHint." + error;
|
|
18770
|
+
}
|
|
18771
|
+
}
|
|
19286
18772
|
return null;
|
|
19287
18773
|
};
|
|
19288
18774
|
|
|
@@ -19305,6 +18791,16 @@
|
|
|
19305
18791
|
}
|
|
19306
18792
|
if (object.useKnn != null)
|
|
19307
18793
|
message.useKnn = Boolean(object.useKnn);
|
|
18794
|
+
if (object.knnHint != null) {
|
|
18795
|
+
if (typeof object.knnHint !== "object")
|
|
18796
|
+
throw TypeError(".google.cloud.vectorsearch.v1beta.SearchHint.knnHint: object expected");
|
|
18797
|
+
message.knnHint = $root.google.cloud.vectorsearch.v1beta.SearchHint.KnnHint.fromObject(object.knnHint);
|
|
18798
|
+
}
|
|
18799
|
+
if (object.indexHint != null) {
|
|
18800
|
+
if (typeof object.indexHint !== "object")
|
|
18801
|
+
throw TypeError(".google.cloud.vectorsearch.v1beta.SearchHint.indexHint: object expected");
|
|
18802
|
+
message.indexHint = $root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.fromObject(object.indexHint);
|
|
18803
|
+
}
|
|
19308
18804
|
return message;
|
|
19309
18805
|
};
|
|
19310
18806
|
|
|
@@ -19331,6 +18827,16 @@
|
|
|
19331
18827
|
if (options.oneofs)
|
|
19332
18828
|
object.indexType = "useKnn";
|
|
19333
18829
|
}
|
|
18830
|
+
if (message.knnHint != null && message.hasOwnProperty("knnHint")) {
|
|
18831
|
+
object.knnHint = $root.google.cloud.vectorsearch.v1beta.SearchHint.KnnHint.toObject(message.knnHint, options);
|
|
18832
|
+
if (options.oneofs)
|
|
18833
|
+
object.indexType = "knnHint";
|
|
18834
|
+
}
|
|
18835
|
+
if (message.indexHint != null && message.hasOwnProperty("indexHint")) {
|
|
18836
|
+
object.indexHint = $root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.toObject(message.indexHint, options);
|
|
18837
|
+
if (options.oneofs)
|
|
18838
|
+
object.indexType = "indexHint";
|
|
18839
|
+
}
|
|
19334
18840
|
return object;
|
|
19335
18841
|
};
|
|
19336
18842
|
|
|
@@ -19366,6 +18872,7 @@
|
|
|
19366
18872
|
* Properties of an IndexHint.
|
|
19367
18873
|
* @memberof google.cloud.vectorsearch.v1beta.SearchHint
|
|
19368
18874
|
* @interface IIndexHint
|
|
18875
|
+
* @property {google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.IDenseScannParams|null} [denseScannParams] IndexHint denseScannParams
|
|
19369
18876
|
* @property {string|null} [name] IndexHint name
|
|
19370
18877
|
*/
|
|
19371
18878
|
|
|
@@ -19384,6 +18891,14 @@
|
|
|
19384
18891
|
this[keys[i]] = properties[keys[i]];
|
|
19385
18892
|
}
|
|
19386
18893
|
|
|
18894
|
+
/**
|
|
18895
|
+
* IndexHint denseScannParams.
|
|
18896
|
+
* @member {google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.IDenseScannParams|null|undefined} denseScannParams
|
|
18897
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint
|
|
18898
|
+
* @instance
|
|
18899
|
+
*/
|
|
18900
|
+
IndexHint.prototype.denseScannParams = null;
|
|
18901
|
+
|
|
19387
18902
|
/**
|
|
19388
18903
|
* IndexHint name.
|
|
19389
18904
|
* @member {string} name
|
|
@@ -19392,6 +18907,20 @@
|
|
|
19392
18907
|
*/
|
|
19393
18908
|
IndexHint.prototype.name = "";
|
|
19394
18909
|
|
|
18910
|
+
// OneOf field names bound to virtual getters and setters
|
|
18911
|
+
var $oneOfFields;
|
|
18912
|
+
|
|
18913
|
+
/**
|
|
18914
|
+
* IndexHint params.
|
|
18915
|
+
* @member {"denseScannParams"|undefined} params
|
|
18916
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint
|
|
18917
|
+
* @instance
|
|
18918
|
+
*/
|
|
18919
|
+
Object.defineProperty(IndexHint.prototype, "params", {
|
|
18920
|
+
get: $util.oneOfGetter($oneOfFields = ["denseScannParams"]),
|
|
18921
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
18922
|
+
});
|
|
18923
|
+
|
|
19395
18924
|
/**
|
|
19396
18925
|
* Creates a new IndexHint instance using the specified properties.
|
|
19397
18926
|
* @function create
|
|
@@ -19418,6 +18947,8 @@
|
|
|
19418
18947
|
writer = $Writer.create();
|
|
19419
18948
|
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
19420
18949
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
18950
|
+
if (message.denseScannParams != null && Object.hasOwnProperty.call(message, "denseScannParams"))
|
|
18951
|
+
$root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams.encode(message.denseScannParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
19421
18952
|
return writer;
|
|
19422
18953
|
};
|
|
19423
18954
|
|
|
@@ -19454,6 +18985,10 @@
|
|
|
19454
18985
|
if (tag === error)
|
|
19455
18986
|
break;
|
|
19456
18987
|
switch (tag >>> 3) {
|
|
18988
|
+
case 2: {
|
|
18989
|
+
message.denseScannParams = $root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams.decode(reader, reader.uint32());
|
|
18990
|
+
break;
|
|
18991
|
+
}
|
|
19457
18992
|
case 1: {
|
|
19458
18993
|
message.name = reader.string();
|
|
19459
18994
|
break;
|
|
@@ -19493,6 +19028,15 @@
|
|
|
19493
19028
|
IndexHint.verify = function verify(message) {
|
|
19494
19029
|
if (typeof message !== "object" || message === null)
|
|
19495
19030
|
return "object expected";
|
|
19031
|
+
var properties = {};
|
|
19032
|
+
if (message.denseScannParams != null && message.hasOwnProperty("denseScannParams")) {
|
|
19033
|
+
properties.params = 1;
|
|
19034
|
+
{
|
|
19035
|
+
var error = $root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams.verify(message.denseScannParams);
|
|
19036
|
+
if (error)
|
|
19037
|
+
return "denseScannParams." + error;
|
|
19038
|
+
}
|
|
19039
|
+
}
|
|
19496
19040
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
19497
19041
|
if (!$util.isString(message.name))
|
|
19498
19042
|
return "name: string expected";
|
|
@@ -19511,6 +19055,11 @@
|
|
|
19511
19055
|
if (object instanceof $root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint)
|
|
19512
19056
|
return object;
|
|
19513
19057
|
var message = new $root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint();
|
|
19058
|
+
if (object.denseScannParams != null) {
|
|
19059
|
+
if (typeof object.denseScannParams !== "object")
|
|
19060
|
+
throw TypeError(".google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.denseScannParams: object expected");
|
|
19061
|
+
message.denseScannParams = $root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams.fromObject(object.denseScannParams);
|
|
19062
|
+
}
|
|
19514
19063
|
if (object.name != null)
|
|
19515
19064
|
message.name = String(object.name);
|
|
19516
19065
|
return message;
|
|
@@ -19533,6 +19082,11 @@
|
|
|
19533
19082
|
object.name = "";
|
|
19534
19083
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
19535
19084
|
object.name = message.name;
|
|
19085
|
+
if (message.denseScannParams != null && message.hasOwnProperty("denseScannParams")) {
|
|
19086
|
+
object.denseScannParams = $root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams.toObject(message.denseScannParams, options);
|
|
19087
|
+
if (options.oneofs)
|
|
19088
|
+
object.params = "denseScannParams";
|
|
19089
|
+
}
|
|
19536
19090
|
return object;
|
|
19537
19091
|
};
|
|
19538
19092
|
|
|
@@ -19562,9 +19116,415 @@
|
|
|
19562
19116
|
return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.SearchHint.IndexHint";
|
|
19563
19117
|
};
|
|
19564
19118
|
|
|
19119
|
+
IndexHint.DenseScannParams = (function() {
|
|
19120
|
+
|
|
19121
|
+
/**
|
|
19122
|
+
* Properties of a DenseScannParams.
|
|
19123
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint
|
|
19124
|
+
* @interface IDenseScannParams
|
|
19125
|
+
* @property {number|null} [searchLeavesPct] DenseScannParams searchLeavesPct
|
|
19126
|
+
* @property {number|null} [initialCandidateCount] DenseScannParams initialCandidateCount
|
|
19127
|
+
*/
|
|
19128
|
+
|
|
19129
|
+
/**
|
|
19130
|
+
* Constructs a new DenseScannParams.
|
|
19131
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint
|
|
19132
|
+
* @classdesc Represents a DenseScannParams.
|
|
19133
|
+
* @implements IDenseScannParams
|
|
19134
|
+
* @constructor
|
|
19135
|
+
* @param {google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.IDenseScannParams=} [properties] Properties to set
|
|
19136
|
+
*/
|
|
19137
|
+
function DenseScannParams(properties) {
|
|
19138
|
+
if (properties)
|
|
19139
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19140
|
+
if (properties[keys[i]] != null)
|
|
19141
|
+
this[keys[i]] = properties[keys[i]];
|
|
19142
|
+
}
|
|
19143
|
+
|
|
19144
|
+
/**
|
|
19145
|
+
* DenseScannParams searchLeavesPct.
|
|
19146
|
+
* @member {number} searchLeavesPct
|
|
19147
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams
|
|
19148
|
+
* @instance
|
|
19149
|
+
*/
|
|
19150
|
+
DenseScannParams.prototype.searchLeavesPct = 0;
|
|
19151
|
+
|
|
19152
|
+
/**
|
|
19153
|
+
* DenseScannParams initialCandidateCount.
|
|
19154
|
+
* @member {number} initialCandidateCount
|
|
19155
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams
|
|
19156
|
+
* @instance
|
|
19157
|
+
*/
|
|
19158
|
+
DenseScannParams.prototype.initialCandidateCount = 0;
|
|
19159
|
+
|
|
19160
|
+
/**
|
|
19161
|
+
* Creates a new DenseScannParams instance using the specified properties.
|
|
19162
|
+
* @function create
|
|
19163
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams
|
|
19164
|
+
* @static
|
|
19165
|
+
* @param {google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.IDenseScannParams=} [properties] Properties to set
|
|
19166
|
+
* @returns {google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams} DenseScannParams instance
|
|
19167
|
+
*/
|
|
19168
|
+
DenseScannParams.create = function create(properties) {
|
|
19169
|
+
return new DenseScannParams(properties);
|
|
19170
|
+
};
|
|
19171
|
+
|
|
19172
|
+
/**
|
|
19173
|
+
* Encodes the specified DenseScannParams message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams.verify|verify} messages.
|
|
19174
|
+
* @function encode
|
|
19175
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams
|
|
19176
|
+
* @static
|
|
19177
|
+
* @param {google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.IDenseScannParams} message DenseScannParams message or plain object to encode
|
|
19178
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19179
|
+
* @returns {$protobuf.Writer} Writer
|
|
19180
|
+
*/
|
|
19181
|
+
DenseScannParams.encode = function encode(message, writer) {
|
|
19182
|
+
if (!writer)
|
|
19183
|
+
writer = $Writer.create();
|
|
19184
|
+
if (message.searchLeavesPct != null && Object.hasOwnProperty.call(message, "searchLeavesPct"))
|
|
19185
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.searchLeavesPct);
|
|
19186
|
+
if (message.initialCandidateCount != null && Object.hasOwnProperty.call(message, "initialCandidateCount"))
|
|
19187
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.initialCandidateCount);
|
|
19188
|
+
return writer;
|
|
19189
|
+
};
|
|
19190
|
+
|
|
19191
|
+
/**
|
|
19192
|
+
* Encodes the specified DenseScannParams message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams.verify|verify} messages.
|
|
19193
|
+
* @function encodeDelimited
|
|
19194
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams
|
|
19195
|
+
* @static
|
|
19196
|
+
* @param {google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.IDenseScannParams} message DenseScannParams message or plain object to encode
|
|
19197
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19198
|
+
* @returns {$protobuf.Writer} Writer
|
|
19199
|
+
*/
|
|
19200
|
+
DenseScannParams.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19201
|
+
return this.encode(message, writer).ldelim();
|
|
19202
|
+
};
|
|
19203
|
+
|
|
19204
|
+
/**
|
|
19205
|
+
* Decodes a DenseScannParams message from the specified reader or buffer.
|
|
19206
|
+
* @function decode
|
|
19207
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams
|
|
19208
|
+
* @static
|
|
19209
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19210
|
+
* @param {number} [length] Message length if known beforehand
|
|
19211
|
+
* @returns {google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams} DenseScannParams
|
|
19212
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19213
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19214
|
+
*/
|
|
19215
|
+
DenseScannParams.decode = function decode(reader, length, error) {
|
|
19216
|
+
if (!(reader instanceof $Reader))
|
|
19217
|
+
reader = $Reader.create(reader);
|
|
19218
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams();
|
|
19219
|
+
while (reader.pos < end) {
|
|
19220
|
+
var tag = reader.uint32();
|
|
19221
|
+
if (tag === error)
|
|
19222
|
+
break;
|
|
19223
|
+
switch (tag >>> 3) {
|
|
19224
|
+
case 1: {
|
|
19225
|
+
message.searchLeavesPct = reader.int32();
|
|
19226
|
+
break;
|
|
19227
|
+
}
|
|
19228
|
+
case 2: {
|
|
19229
|
+
message.initialCandidateCount = reader.int32();
|
|
19230
|
+
break;
|
|
19231
|
+
}
|
|
19232
|
+
default:
|
|
19233
|
+
reader.skipType(tag & 7);
|
|
19234
|
+
break;
|
|
19235
|
+
}
|
|
19236
|
+
}
|
|
19237
|
+
return message;
|
|
19238
|
+
};
|
|
19239
|
+
|
|
19240
|
+
/**
|
|
19241
|
+
* Decodes a DenseScannParams message from the specified reader or buffer, length delimited.
|
|
19242
|
+
* @function decodeDelimited
|
|
19243
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams
|
|
19244
|
+
* @static
|
|
19245
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19246
|
+
* @returns {google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams} DenseScannParams
|
|
19247
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19248
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19249
|
+
*/
|
|
19250
|
+
DenseScannParams.decodeDelimited = function decodeDelimited(reader) {
|
|
19251
|
+
if (!(reader instanceof $Reader))
|
|
19252
|
+
reader = new $Reader(reader);
|
|
19253
|
+
return this.decode(reader, reader.uint32());
|
|
19254
|
+
};
|
|
19255
|
+
|
|
19256
|
+
/**
|
|
19257
|
+
* Verifies a DenseScannParams message.
|
|
19258
|
+
* @function verify
|
|
19259
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams
|
|
19260
|
+
* @static
|
|
19261
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
19262
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
19263
|
+
*/
|
|
19264
|
+
DenseScannParams.verify = function verify(message) {
|
|
19265
|
+
if (typeof message !== "object" || message === null)
|
|
19266
|
+
return "object expected";
|
|
19267
|
+
if (message.searchLeavesPct != null && message.hasOwnProperty("searchLeavesPct"))
|
|
19268
|
+
if (!$util.isInteger(message.searchLeavesPct))
|
|
19269
|
+
return "searchLeavesPct: integer expected";
|
|
19270
|
+
if (message.initialCandidateCount != null && message.hasOwnProperty("initialCandidateCount"))
|
|
19271
|
+
if (!$util.isInteger(message.initialCandidateCount))
|
|
19272
|
+
return "initialCandidateCount: integer expected";
|
|
19273
|
+
return null;
|
|
19274
|
+
};
|
|
19275
|
+
|
|
19276
|
+
/**
|
|
19277
|
+
* Creates a DenseScannParams message from a plain object. Also converts values to their respective internal types.
|
|
19278
|
+
* @function fromObject
|
|
19279
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams
|
|
19280
|
+
* @static
|
|
19281
|
+
* @param {Object.<string,*>} object Plain object
|
|
19282
|
+
* @returns {google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams} DenseScannParams
|
|
19283
|
+
*/
|
|
19284
|
+
DenseScannParams.fromObject = function fromObject(object) {
|
|
19285
|
+
if (object instanceof $root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams)
|
|
19286
|
+
return object;
|
|
19287
|
+
var message = new $root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams();
|
|
19288
|
+
if (object.searchLeavesPct != null)
|
|
19289
|
+
message.searchLeavesPct = object.searchLeavesPct | 0;
|
|
19290
|
+
if (object.initialCandidateCount != null)
|
|
19291
|
+
message.initialCandidateCount = object.initialCandidateCount | 0;
|
|
19292
|
+
return message;
|
|
19293
|
+
};
|
|
19294
|
+
|
|
19295
|
+
/**
|
|
19296
|
+
* Creates a plain object from a DenseScannParams message. Also converts values to other types if specified.
|
|
19297
|
+
* @function toObject
|
|
19298
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams
|
|
19299
|
+
* @static
|
|
19300
|
+
* @param {google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams} message DenseScannParams
|
|
19301
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
19302
|
+
* @returns {Object.<string,*>} Plain object
|
|
19303
|
+
*/
|
|
19304
|
+
DenseScannParams.toObject = function toObject(message, options) {
|
|
19305
|
+
if (!options)
|
|
19306
|
+
options = {};
|
|
19307
|
+
var object = {};
|
|
19308
|
+
if (options.defaults) {
|
|
19309
|
+
object.searchLeavesPct = 0;
|
|
19310
|
+
object.initialCandidateCount = 0;
|
|
19311
|
+
}
|
|
19312
|
+
if (message.searchLeavesPct != null && message.hasOwnProperty("searchLeavesPct"))
|
|
19313
|
+
object.searchLeavesPct = message.searchLeavesPct;
|
|
19314
|
+
if (message.initialCandidateCount != null && message.hasOwnProperty("initialCandidateCount"))
|
|
19315
|
+
object.initialCandidateCount = message.initialCandidateCount;
|
|
19316
|
+
return object;
|
|
19317
|
+
};
|
|
19318
|
+
|
|
19319
|
+
/**
|
|
19320
|
+
* Converts this DenseScannParams to JSON.
|
|
19321
|
+
* @function toJSON
|
|
19322
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams
|
|
19323
|
+
* @instance
|
|
19324
|
+
* @returns {Object.<string,*>} JSON object
|
|
19325
|
+
*/
|
|
19326
|
+
DenseScannParams.prototype.toJSON = function toJSON() {
|
|
19327
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
19328
|
+
};
|
|
19329
|
+
|
|
19330
|
+
/**
|
|
19331
|
+
* Gets the default type url for DenseScannParams
|
|
19332
|
+
* @function getTypeUrl
|
|
19333
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams
|
|
19334
|
+
* @static
|
|
19335
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
19336
|
+
* @returns {string} The default type url
|
|
19337
|
+
*/
|
|
19338
|
+
DenseScannParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
19339
|
+
if (typeUrlPrefix === undefined) {
|
|
19340
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
19341
|
+
}
|
|
19342
|
+
return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams";
|
|
19343
|
+
};
|
|
19344
|
+
|
|
19345
|
+
return DenseScannParams;
|
|
19346
|
+
})();
|
|
19347
|
+
|
|
19565
19348
|
return IndexHint;
|
|
19566
19349
|
})();
|
|
19567
19350
|
|
|
19351
|
+
SearchHint.KnnHint = (function() {
|
|
19352
|
+
|
|
19353
|
+
/**
|
|
19354
|
+
* Properties of a KnnHint.
|
|
19355
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint
|
|
19356
|
+
* @interface IKnnHint
|
|
19357
|
+
*/
|
|
19358
|
+
|
|
19359
|
+
/**
|
|
19360
|
+
* Constructs a new KnnHint.
|
|
19361
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint
|
|
19362
|
+
* @classdesc Represents a KnnHint.
|
|
19363
|
+
* @implements IKnnHint
|
|
19364
|
+
* @constructor
|
|
19365
|
+
* @param {google.cloud.vectorsearch.v1beta.SearchHint.IKnnHint=} [properties] Properties to set
|
|
19366
|
+
*/
|
|
19367
|
+
function KnnHint(properties) {
|
|
19368
|
+
if (properties)
|
|
19369
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19370
|
+
if (properties[keys[i]] != null)
|
|
19371
|
+
this[keys[i]] = properties[keys[i]];
|
|
19372
|
+
}
|
|
19373
|
+
|
|
19374
|
+
/**
|
|
19375
|
+
* Creates a new KnnHint instance using the specified properties.
|
|
19376
|
+
* @function create
|
|
19377
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint.KnnHint
|
|
19378
|
+
* @static
|
|
19379
|
+
* @param {google.cloud.vectorsearch.v1beta.SearchHint.IKnnHint=} [properties] Properties to set
|
|
19380
|
+
* @returns {google.cloud.vectorsearch.v1beta.SearchHint.KnnHint} KnnHint instance
|
|
19381
|
+
*/
|
|
19382
|
+
KnnHint.create = function create(properties) {
|
|
19383
|
+
return new KnnHint(properties);
|
|
19384
|
+
};
|
|
19385
|
+
|
|
19386
|
+
/**
|
|
19387
|
+
* Encodes the specified KnnHint message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.SearchHint.KnnHint.verify|verify} messages.
|
|
19388
|
+
* @function encode
|
|
19389
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint.KnnHint
|
|
19390
|
+
* @static
|
|
19391
|
+
* @param {google.cloud.vectorsearch.v1beta.SearchHint.IKnnHint} message KnnHint message or plain object to encode
|
|
19392
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19393
|
+
* @returns {$protobuf.Writer} Writer
|
|
19394
|
+
*/
|
|
19395
|
+
KnnHint.encode = function encode(message, writer) {
|
|
19396
|
+
if (!writer)
|
|
19397
|
+
writer = $Writer.create();
|
|
19398
|
+
return writer;
|
|
19399
|
+
};
|
|
19400
|
+
|
|
19401
|
+
/**
|
|
19402
|
+
* Encodes the specified KnnHint message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.SearchHint.KnnHint.verify|verify} messages.
|
|
19403
|
+
* @function encodeDelimited
|
|
19404
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint.KnnHint
|
|
19405
|
+
* @static
|
|
19406
|
+
* @param {google.cloud.vectorsearch.v1beta.SearchHint.IKnnHint} message KnnHint message or plain object to encode
|
|
19407
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19408
|
+
* @returns {$protobuf.Writer} Writer
|
|
19409
|
+
*/
|
|
19410
|
+
KnnHint.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19411
|
+
return this.encode(message, writer).ldelim();
|
|
19412
|
+
};
|
|
19413
|
+
|
|
19414
|
+
/**
|
|
19415
|
+
* Decodes a KnnHint message from the specified reader or buffer.
|
|
19416
|
+
* @function decode
|
|
19417
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint.KnnHint
|
|
19418
|
+
* @static
|
|
19419
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19420
|
+
* @param {number} [length] Message length if known beforehand
|
|
19421
|
+
* @returns {google.cloud.vectorsearch.v1beta.SearchHint.KnnHint} KnnHint
|
|
19422
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19423
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19424
|
+
*/
|
|
19425
|
+
KnnHint.decode = function decode(reader, length, error) {
|
|
19426
|
+
if (!(reader instanceof $Reader))
|
|
19427
|
+
reader = $Reader.create(reader);
|
|
19428
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.SearchHint.KnnHint();
|
|
19429
|
+
while (reader.pos < end) {
|
|
19430
|
+
var tag = reader.uint32();
|
|
19431
|
+
if (tag === error)
|
|
19432
|
+
break;
|
|
19433
|
+
switch (tag >>> 3) {
|
|
19434
|
+
default:
|
|
19435
|
+
reader.skipType(tag & 7);
|
|
19436
|
+
break;
|
|
19437
|
+
}
|
|
19438
|
+
}
|
|
19439
|
+
return message;
|
|
19440
|
+
};
|
|
19441
|
+
|
|
19442
|
+
/**
|
|
19443
|
+
* Decodes a KnnHint message from the specified reader or buffer, length delimited.
|
|
19444
|
+
* @function decodeDelimited
|
|
19445
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint.KnnHint
|
|
19446
|
+
* @static
|
|
19447
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19448
|
+
* @returns {google.cloud.vectorsearch.v1beta.SearchHint.KnnHint} KnnHint
|
|
19449
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19450
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19451
|
+
*/
|
|
19452
|
+
KnnHint.decodeDelimited = function decodeDelimited(reader) {
|
|
19453
|
+
if (!(reader instanceof $Reader))
|
|
19454
|
+
reader = new $Reader(reader);
|
|
19455
|
+
return this.decode(reader, reader.uint32());
|
|
19456
|
+
};
|
|
19457
|
+
|
|
19458
|
+
/**
|
|
19459
|
+
* Verifies a KnnHint message.
|
|
19460
|
+
* @function verify
|
|
19461
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint.KnnHint
|
|
19462
|
+
* @static
|
|
19463
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
19464
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
19465
|
+
*/
|
|
19466
|
+
KnnHint.verify = function verify(message) {
|
|
19467
|
+
if (typeof message !== "object" || message === null)
|
|
19468
|
+
return "object expected";
|
|
19469
|
+
return null;
|
|
19470
|
+
};
|
|
19471
|
+
|
|
19472
|
+
/**
|
|
19473
|
+
* Creates a KnnHint message from a plain object. Also converts values to their respective internal types.
|
|
19474
|
+
* @function fromObject
|
|
19475
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint.KnnHint
|
|
19476
|
+
* @static
|
|
19477
|
+
* @param {Object.<string,*>} object Plain object
|
|
19478
|
+
* @returns {google.cloud.vectorsearch.v1beta.SearchHint.KnnHint} KnnHint
|
|
19479
|
+
*/
|
|
19480
|
+
KnnHint.fromObject = function fromObject(object) {
|
|
19481
|
+
if (object instanceof $root.google.cloud.vectorsearch.v1beta.SearchHint.KnnHint)
|
|
19482
|
+
return object;
|
|
19483
|
+
return new $root.google.cloud.vectorsearch.v1beta.SearchHint.KnnHint();
|
|
19484
|
+
};
|
|
19485
|
+
|
|
19486
|
+
/**
|
|
19487
|
+
* Creates a plain object from a KnnHint message. Also converts values to other types if specified.
|
|
19488
|
+
* @function toObject
|
|
19489
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint.KnnHint
|
|
19490
|
+
* @static
|
|
19491
|
+
* @param {google.cloud.vectorsearch.v1beta.SearchHint.KnnHint} message KnnHint
|
|
19492
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
19493
|
+
* @returns {Object.<string,*>} Plain object
|
|
19494
|
+
*/
|
|
19495
|
+
KnnHint.toObject = function toObject() {
|
|
19496
|
+
return {};
|
|
19497
|
+
};
|
|
19498
|
+
|
|
19499
|
+
/**
|
|
19500
|
+
* Converts this KnnHint to JSON.
|
|
19501
|
+
* @function toJSON
|
|
19502
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint.KnnHint
|
|
19503
|
+
* @instance
|
|
19504
|
+
* @returns {Object.<string,*>} JSON object
|
|
19505
|
+
*/
|
|
19506
|
+
KnnHint.prototype.toJSON = function toJSON() {
|
|
19507
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
19508
|
+
};
|
|
19509
|
+
|
|
19510
|
+
/**
|
|
19511
|
+
* Gets the default type url for KnnHint
|
|
19512
|
+
* @function getTypeUrl
|
|
19513
|
+
* @memberof google.cloud.vectorsearch.v1beta.SearchHint.KnnHint
|
|
19514
|
+
* @static
|
|
19515
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
19516
|
+
* @returns {string} The default type url
|
|
19517
|
+
*/
|
|
19518
|
+
KnnHint.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
19519
|
+
if (typeUrlPrefix === undefined) {
|
|
19520
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
19521
|
+
}
|
|
19522
|
+
return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.SearchHint.KnnHint";
|
|
19523
|
+
};
|
|
19524
|
+
|
|
19525
|
+
return KnnHint;
|
|
19526
|
+
})();
|
|
19527
|
+
|
|
19568
19528
|
return SearchHint;
|
|
19569
19529
|
})();
|
|
19570
19530
|
|
|
@@ -24053,7 +24013,6 @@
|
|
|
24053
24013
|
* @memberof google.cloud.vectorsearch.v1beta
|
|
24054
24014
|
* @interface IRanker
|
|
24055
24015
|
* @property {google.cloud.vectorsearch.v1beta.IReciprocalRankFusion|null} [rrf] Ranker rrf
|
|
24056
|
-
* @property {google.cloud.vectorsearch.v1beta.IVertexRanker|null} [vertex] Ranker vertex
|
|
24057
24016
|
*/
|
|
24058
24017
|
|
|
24059
24018
|
/**
|
|
@@ -24079,25 +24038,17 @@
|
|
|
24079
24038
|
*/
|
|
24080
24039
|
Ranker.prototype.rrf = null;
|
|
24081
24040
|
|
|
24082
|
-
/**
|
|
24083
|
-
* Ranker vertex.
|
|
24084
|
-
* @member {google.cloud.vectorsearch.v1beta.IVertexRanker|null|undefined} vertex
|
|
24085
|
-
* @memberof google.cloud.vectorsearch.v1beta.Ranker
|
|
24086
|
-
* @instance
|
|
24087
|
-
*/
|
|
24088
|
-
Ranker.prototype.vertex = null;
|
|
24089
|
-
|
|
24090
24041
|
// OneOf field names bound to virtual getters and setters
|
|
24091
24042
|
var $oneOfFields;
|
|
24092
24043
|
|
|
24093
24044
|
/**
|
|
24094
24045
|
* Ranker ranker.
|
|
24095
|
-
* @member {"rrf"|
|
|
24046
|
+
* @member {"rrf"|undefined} ranker
|
|
24096
24047
|
* @memberof google.cloud.vectorsearch.v1beta.Ranker
|
|
24097
24048
|
* @instance
|
|
24098
24049
|
*/
|
|
24099
24050
|
Object.defineProperty(Ranker.prototype, "ranker", {
|
|
24100
|
-
get: $util.oneOfGetter($oneOfFields = ["rrf"
|
|
24051
|
+
get: $util.oneOfGetter($oneOfFields = ["rrf"]),
|
|
24101
24052
|
set: $util.oneOfSetter($oneOfFields)
|
|
24102
24053
|
});
|
|
24103
24054
|
|
|
@@ -24127,8 +24078,6 @@
|
|
|
24127
24078
|
writer = $Writer.create();
|
|
24128
24079
|
if (message.rrf != null && Object.hasOwnProperty.call(message, "rrf"))
|
|
24129
24080
|
$root.google.cloud.vectorsearch.v1beta.ReciprocalRankFusion.encode(message.rrf, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
24130
|
-
if (message.vertex != null && Object.hasOwnProperty.call(message, "vertex"))
|
|
24131
|
-
$root.google.cloud.vectorsearch.v1beta.VertexRanker.encode(message.vertex, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
24132
24081
|
return writer;
|
|
24133
24082
|
};
|
|
24134
24083
|
|
|
@@ -24169,10 +24118,6 @@
|
|
|
24169
24118
|
message.rrf = $root.google.cloud.vectorsearch.v1beta.ReciprocalRankFusion.decode(reader, reader.uint32());
|
|
24170
24119
|
break;
|
|
24171
24120
|
}
|
|
24172
|
-
case 2: {
|
|
24173
|
-
message.vertex = $root.google.cloud.vectorsearch.v1beta.VertexRanker.decode(reader, reader.uint32());
|
|
24174
|
-
break;
|
|
24175
|
-
}
|
|
24176
24121
|
default:
|
|
24177
24122
|
reader.skipType(tag & 7);
|
|
24178
24123
|
break;
|
|
@@ -24217,16 +24162,6 @@
|
|
|
24217
24162
|
return "rrf." + error;
|
|
24218
24163
|
}
|
|
24219
24164
|
}
|
|
24220
|
-
if (message.vertex != null && message.hasOwnProperty("vertex")) {
|
|
24221
|
-
if (properties.ranker === 1)
|
|
24222
|
-
return "ranker: multiple values";
|
|
24223
|
-
properties.ranker = 1;
|
|
24224
|
-
{
|
|
24225
|
-
var error = $root.google.cloud.vectorsearch.v1beta.VertexRanker.verify(message.vertex);
|
|
24226
|
-
if (error)
|
|
24227
|
-
return "vertex." + error;
|
|
24228
|
-
}
|
|
24229
|
-
}
|
|
24230
24165
|
return null;
|
|
24231
24166
|
};
|
|
24232
24167
|
|
|
@@ -24247,11 +24182,6 @@
|
|
|
24247
24182
|
throw TypeError(".google.cloud.vectorsearch.v1beta.Ranker.rrf: object expected");
|
|
24248
24183
|
message.rrf = $root.google.cloud.vectorsearch.v1beta.ReciprocalRankFusion.fromObject(object.rrf);
|
|
24249
24184
|
}
|
|
24250
|
-
if (object.vertex != null) {
|
|
24251
|
-
if (typeof object.vertex !== "object")
|
|
24252
|
-
throw TypeError(".google.cloud.vectorsearch.v1beta.Ranker.vertex: object expected");
|
|
24253
|
-
message.vertex = $root.google.cloud.vectorsearch.v1beta.VertexRanker.fromObject(object.vertex);
|
|
24254
|
-
}
|
|
24255
24185
|
return message;
|
|
24256
24186
|
};
|
|
24257
24187
|
|
|
@@ -24273,11 +24203,6 @@
|
|
|
24273
24203
|
if (options.oneofs)
|
|
24274
24204
|
object.ranker = "rrf";
|
|
24275
24205
|
}
|
|
24276
|
-
if (message.vertex != null && message.hasOwnProperty("vertex")) {
|
|
24277
|
-
object.vertex = $root.google.cloud.vectorsearch.v1beta.VertexRanker.toObject(message.vertex, options);
|
|
24278
|
-
if (options.oneofs)
|
|
24279
|
-
object.ranker = "vertex";
|
|
24280
|
-
}
|
|
24281
24206
|
return object;
|
|
24282
24207
|
};
|
|
24283
24208
|
|
|
@@ -24539,281 +24464,6 @@
|
|
|
24539
24464
|
return ReciprocalRankFusion;
|
|
24540
24465
|
})();
|
|
24541
24466
|
|
|
24542
|
-
v1beta.VertexRanker = (function() {
|
|
24543
|
-
|
|
24544
|
-
/**
|
|
24545
|
-
* Properties of a VertexRanker.
|
|
24546
|
-
* @memberof google.cloud.vectorsearch.v1beta
|
|
24547
|
-
* @interface IVertexRanker
|
|
24548
|
-
* @property {string|null} [query] VertexRanker query
|
|
24549
|
-
* @property {string|null} [titleTemplate] VertexRanker titleTemplate
|
|
24550
|
-
* @property {string|null} [contentTemplate] VertexRanker contentTemplate
|
|
24551
|
-
* @property {string|null} [model] VertexRanker model
|
|
24552
|
-
*/
|
|
24553
|
-
|
|
24554
|
-
/**
|
|
24555
|
-
* Constructs a new VertexRanker.
|
|
24556
|
-
* @memberof google.cloud.vectorsearch.v1beta
|
|
24557
|
-
* @classdesc Represents a VertexRanker.
|
|
24558
|
-
* @implements IVertexRanker
|
|
24559
|
-
* @constructor
|
|
24560
|
-
* @param {google.cloud.vectorsearch.v1beta.IVertexRanker=} [properties] Properties to set
|
|
24561
|
-
*/
|
|
24562
|
-
function VertexRanker(properties) {
|
|
24563
|
-
if (properties)
|
|
24564
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
24565
|
-
if (properties[keys[i]] != null)
|
|
24566
|
-
this[keys[i]] = properties[keys[i]];
|
|
24567
|
-
}
|
|
24568
|
-
|
|
24569
|
-
/**
|
|
24570
|
-
* VertexRanker query.
|
|
24571
|
-
* @member {string} query
|
|
24572
|
-
* @memberof google.cloud.vectorsearch.v1beta.VertexRanker
|
|
24573
|
-
* @instance
|
|
24574
|
-
*/
|
|
24575
|
-
VertexRanker.prototype.query = "";
|
|
24576
|
-
|
|
24577
|
-
/**
|
|
24578
|
-
* VertexRanker titleTemplate.
|
|
24579
|
-
* @member {string} titleTemplate
|
|
24580
|
-
* @memberof google.cloud.vectorsearch.v1beta.VertexRanker
|
|
24581
|
-
* @instance
|
|
24582
|
-
*/
|
|
24583
|
-
VertexRanker.prototype.titleTemplate = "";
|
|
24584
|
-
|
|
24585
|
-
/**
|
|
24586
|
-
* VertexRanker contentTemplate.
|
|
24587
|
-
* @member {string} contentTemplate
|
|
24588
|
-
* @memberof google.cloud.vectorsearch.v1beta.VertexRanker
|
|
24589
|
-
* @instance
|
|
24590
|
-
*/
|
|
24591
|
-
VertexRanker.prototype.contentTemplate = "";
|
|
24592
|
-
|
|
24593
|
-
/**
|
|
24594
|
-
* VertexRanker model.
|
|
24595
|
-
* @member {string} model
|
|
24596
|
-
* @memberof google.cloud.vectorsearch.v1beta.VertexRanker
|
|
24597
|
-
* @instance
|
|
24598
|
-
*/
|
|
24599
|
-
VertexRanker.prototype.model = "";
|
|
24600
|
-
|
|
24601
|
-
/**
|
|
24602
|
-
* Creates a new VertexRanker instance using the specified properties.
|
|
24603
|
-
* @function create
|
|
24604
|
-
* @memberof google.cloud.vectorsearch.v1beta.VertexRanker
|
|
24605
|
-
* @static
|
|
24606
|
-
* @param {google.cloud.vectorsearch.v1beta.IVertexRanker=} [properties] Properties to set
|
|
24607
|
-
* @returns {google.cloud.vectorsearch.v1beta.VertexRanker} VertexRanker instance
|
|
24608
|
-
*/
|
|
24609
|
-
VertexRanker.create = function create(properties) {
|
|
24610
|
-
return new VertexRanker(properties);
|
|
24611
|
-
};
|
|
24612
|
-
|
|
24613
|
-
/**
|
|
24614
|
-
* Encodes the specified VertexRanker message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.VertexRanker.verify|verify} messages.
|
|
24615
|
-
* @function encode
|
|
24616
|
-
* @memberof google.cloud.vectorsearch.v1beta.VertexRanker
|
|
24617
|
-
* @static
|
|
24618
|
-
* @param {google.cloud.vectorsearch.v1beta.IVertexRanker} message VertexRanker message or plain object to encode
|
|
24619
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24620
|
-
* @returns {$protobuf.Writer} Writer
|
|
24621
|
-
*/
|
|
24622
|
-
VertexRanker.encode = function encode(message, writer) {
|
|
24623
|
-
if (!writer)
|
|
24624
|
-
writer = $Writer.create();
|
|
24625
|
-
if (message.query != null && Object.hasOwnProperty.call(message, "query"))
|
|
24626
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.query);
|
|
24627
|
-
if (message.titleTemplate != null && Object.hasOwnProperty.call(message, "titleTemplate"))
|
|
24628
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.titleTemplate);
|
|
24629
|
-
if (message.contentTemplate != null && Object.hasOwnProperty.call(message, "contentTemplate"))
|
|
24630
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.contentTemplate);
|
|
24631
|
-
if (message.model != null && Object.hasOwnProperty.call(message, "model"))
|
|
24632
|
-
writer.uint32(/* id 4, wireType 2 =*/34).string(message.model);
|
|
24633
|
-
return writer;
|
|
24634
|
-
};
|
|
24635
|
-
|
|
24636
|
-
/**
|
|
24637
|
-
* Encodes the specified VertexRanker message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.VertexRanker.verify|verify} messages.
|
|
24638
|
-
* @function encodeDelimited
|
|
24639
|
-
* @memberof google.cloud.vectorsearch.v1beta.VertexRanker
|
|
24640
|
-
* @static
|
|
24641
|
-
* @param {google.cloud.vectorsearch.v1beta.IVertexRanker} message VertexRanker message or plain object to encode
|
|
24642
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24643
|
-
* @returns {$protobuf.Writer} Writer
|
|
24644
|
-
*/
|
|
24645
|
-
VertexRanker.encodeDelimited = function encodeDelimited(message, writer) {
|
|
24646
|
-
return this.encode(message, writer).ldelim();
|
|
24647
|
-
};
|
|
24648
|
-
|
|
24649
|
-
/**
|
|
24650
|
-
* Decodes a VertexRanker message from the specified reader or buffer.
|
|
24651
|
-
* @function decode
|
|
24652
|
-
* @memberof google.cloud.vectorsearch.v1beta.VertexRanker
|
|
24653
|
-
* @static
|
|
24654
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24655
|
-
* @param {number} [length] Message length if known beforehand
|
|
24656
|
-
* @returns {google.cloud.vectorsearch.v1beta.VertexRanker} VertexRanker
|
|
24657
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24658
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24659
|
-
*/
|
|
24660
|
-
VertexRanker.decode = function decode(reader, length, error) {
|
|
24661
|
-
if (!(reader instanceof $Reader))
|
|
24662
|
-
reader = $Reader.create(reader);
|
|
24663
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.VertexRanker();
|
|
24664
|
-
while (reader.pos < end) {
|
|
24665
|
-
var tag = reader.uint32();
|
|
24666
|
-
if (tag === error)
|
|
24667
|
-
break;
|
|
24668
|
-
switch (tag >>> 3) {
|
|
24669
|
-
case 1: {
|
|
24670
|
-
message.query = reader.string();
|
|
24671
|
-
break;
|
|
24672
|
-
}
|
|
24673
|
-
case 2: {
|
|
24674
|
-
message.titleTemplate = reader.string();
|
|
24675
|
-
break;
|
|
24676
|
-
}
|
|
24677
|
-
case 3: {
|
|
24678
|
-
message.contentTemplate = reader.string();
|
|
24679
|
-
break;
|
|
24680
|
-
}
|
|
24681
|
-
case 4: {
|
|
24682
|
-
message.model = reader.string();
|
|
24683
|
-
break;
|
|
24684
|
-
}
|
|
24685
|
-
default:
|
|
24686
|
-
reader.skipType(tag & 7);
|
|
24687
|
-
break;
|
|
24688
|
-
}
|
|
24689
|
-
}
|
|
24690
|
-
return message;
|
|
24691
|
-
};
|
|
24692
|
-
|
|
24693
|
-
/**
|
|
24694
|
-
* Decodes a VertexRanker message from the specified reader or buffer, length delimited.
|
|
24695
|
-
* @function decodeDelimited
|
|
24696
|
-
* @memberof google.cloud.vectorsearch.v1beta.VertexRanker
|
|
24697
|
-
* @static
|
|
24698
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24699
|
-
* @returns {google.cloud.vectorsearch.v1beta.VertexRanker} VertexRanker
|
|
24700
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24701
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24702
|
-
*/
|
|
24703
|
-
VertexRanker.decodeDelimited = function decodeDelimited(reader) {
|
|
24704
|
-
if (!(reader instanceof $Reader))
|
|
24705
|
-
reader = new $Reader(reader);
|
|
24706
|
-
return this.decode(reader, reader.uint32());
|
|
24707
|
-
};
|
|
24708
|
-
|
|
24709
|
-
/**
|
|
24710
|
-
* Verifies a VertexRanker message.
|
|
24711
|
-
* @function verify
|
|
24712
|
-
* @memberof google.cloud.vectorsearch.v1beta.VertexRanker
|
|
24713
|
-
* @static
|
|
24714
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
24715
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
24716
|
-
*/
|
|
24717
|
-
VertexRanker.verify = function verify(message) {
|
|
24718
|
-
if (typeof message !== "object" || message === null)
|
|
24719
|
-
return "object expected";
|
|
24720
|
-
if (message.query != null && message.hasOwnProperty("query"))
|
|
24721
|
-
if (!$util.isString(message.query))
|
|
24722
|
-
return "query: string expected";
|
|
24723
|
-
if (message.titleTemplate != null && message.hasOwnProperty("titleTemplate"))
|
|
24724
|
-
if (!$util.isString(message.titleTemplate))
|
|
24725
|
-
return "titleTemplate: string expected";
|
|
24726
|
-
if (message.contentTemplate != null && message.hasOwnProperty("contentTemplate"))
|
|
24727
|
-
if (!$util.isString(message.contentTemplate))
|
|
24728
|
-
return "contentTemplate: string expected";
|
|
24729
|
-
if (message.model != null && message.hasOwnProperty("model"))
|
|
24730
|
-
if (!$util.isString(message.model))
|
|
24731
|
-
return "model: string expected";
|
|
24732
|
-
return null;
|
|
24733
|
-
};
|
|
24734
|
-
|
|
24735
|
-
/**
|
|
24736
|
-
* Creates a VertexRanker message from a plain object. Also converts values to their respective internal types.
|
|
24737
|
-
* @function fromObject
|
|
24738
|
-
* @memberof google.cloud.vectorsearch.v1beta.VertexRanker
|
|
24739
|
-
* @static
|
|
24740
|
-
* @param {Object.<string,*>} object Plain object
|
|
24741
|
-
* @returns {google.cloud.vectorsearch.v1beta.VertexRanker} VertexRanker
|
|
24742
|
-
*/
|
|
24743
|
-
VertexRanker.fromObject = function fromObject(object) {
|
|
24744
|
-
if (object instanceof $root.google.cloud.vectorsearch.v1beta.VertexRanker)
|
|
24745
|
-
return object;
|
|
24746
|
-
var message = new $root.google.cloud.vectorsearch.v1beta.VertexRanker();
|
|
24747
|
-
if (object.query != null)
|
|
24748
|
-
message.query = String(object.query);
|
|
24749
|
-
if (object.titleTemplate != null)
|
|
24750
|
-
message.titleTemplate = String(object.titleTemplate);
|
|
24751
|
-
if (object.contentTemplate != null)
|
|
24752
|
-
message.contentTemplate = String(object.contentTemplate);
|
|
24753
|
-
if (object.model != null)
|
|
24754
|
-
message.model = String(object.model);
|
|
24755
|
-
return message;
|
|
24756
|
-
};
|
|
24757
|
-
|
|
24758
|
-
/**
|
|
24759
|
-
* Creates a plain object from a VertexRanker message. Also converts values to other types if specified.
|
|
24760
|
-
* @function toObject
|
|
24761
|
-
* @memberof google.cloud.vectorsearch.v1beta.VertexRanker
|
|
24762
|
-
* @static
|
|
24763
|
-
* @param {google.cloud.vectorsearch.v1beta.VertexRanker} message VertexRanker
|
|
24764
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
24765
|
-
* @returns {Object.<string,*>} Plain object
|
|
24766
|
-
*/
|
|
24767
|
-
VertexRanker.toObject = function toObject(message, options) {
|
|
24768
|
-
if (!options)
|
|
24769
|
-
options = {};
|
|
24770
|
-
var object = {};
|
|
24771
|
-
if (options.defaults) {
|
|
24772
|
-
object.query = "";
|
|
24773
|
-
object.titleTemplate = "";
|
|
24774
|
-
object.contentTemplate = "";
|
|
24775
|
-
object.model = "";
|
|
24776
|
-
}
|
|
24777
|
-
if (message.query != null && message.hasOwnProperty("query"))
|
|
24778
|
-
object.query = message.query;
|
|
24779
|
-
if (message.titleTemplate != null && message.hasOwnProperty("titleTemplate"))
|
|
24780
|
-
object.titleTemplate = message.titleTemplate;
|
|
24781
|
-
if (message.contentTemplate != null && message.hasOwnProperty("contentTemplate"))
|
|
24782
|
-
object.contentTemplate = message.contentTemplate;
|
|
24783
|
-
if (message.model != null && message.hasOwnProperty("model"))
|
|
24784
|
-
object.model = message.model;
|
|
24785
|
-
return object;
|
|
24786
|
-
};
|
|
24787
|
-
|
|
24788
|
-
/**
|
|
24789
|
-
* Converts this VertexRanker to JSON.
|
|
24790
|
-
* @function toJSON
|
|
24791
|
-
* @memberof google.cloud.vectorsearch.v1beta.VertexRanker
|
|
24792
|
-
* @instance
|
|
24793
|
-
* @returns {Object.<string,*>} JSON object
|
|
24794
|
-
*/
|
|
24795
|
-
VertexRanker.prototype.toJSON = function toJSON() {
|
|
24796
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
24797
|
-
};
|
|
24798
|
-
|
|
24799
|
-
/**
|
|
24800
|
-
* Gets the default type url for VertexRanker
|
|
24801
|
-
* @function getTypeUrl
|
|
24802
|
-
* @memberof google.cloud.vectorsearch.v1beta.VertexRanker
|
|
24803
|
-
* @static
|
|
24804
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
24805
|
-
* @returns {string} The default type url
|
|
24806
|
-
*/
|
|
24807
|
-
VertexRanker.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
24808
|
-
if (typeUrlPrefix === undefined) {
|
|
24809
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
24810
|
-
}
|
|
24811
|
-
return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.VertexRanker";
|
|
24812
|
-
};
|
|
24813
|
-
|
|
24814
|
-
return VertexRanker;
|
|
24815
|
-
})();
|
|
24816
|
-
|
|
24817
24467
|
v1beta.BatchSearchDataObjectsResponse = (function() {
|
|
24818
24468
|
|
|
24819
24469
|
/**
|
|
@@ -27251,6 +26901,7 @@
|
|
|
27251
26901
|
* @memberof google.cloud.vectorsearch.v1beta
|
|
27252
26902
|
* @interface IDeleteDataObjectRequest
|
|
27253
26903
|
* @property {string|null} [name] DeleteDataObjectRequest name
|
|
26904
|
+
* @property {string|null} [etag] DeleteDataObjectRequest etag
|
|
27254
26905
|
*/
|
|
27255
26906
|
|
|
27256
26907
|
/**
|
|
@@ -27276,6 +26927,14 @@
|
|
|
27276
26927
|
*/
|
|
27277
26928
|
DeleteDataObjectRequest.prototype.name = "";
|
|
27278
26929
|
|
|
26930
|
+
/**
|
|
26931
|
+
* DeleteDataObjectRequest etag.
|
|
26932
|
+
* @member {string} etag
|
|
26933
|
+
* @memberof google.cloud.vectorsearch.v1beta.DeleteDataObjectRequest
|
|
26934
|
+
* @instance
|
|
26935
|
+
*/
|
|
26936
|
+
DeleteDataObjectRequest.prototype.etag = "";
|
|
26937
|
+
|
|
27279
26938
|
/**
|
|
27280
26939
|
* Creates a new DeleteDataObjectRequest instance using the specified properties.
|
|
27281
26940
|
* @function create
|
|
@@ -27302,6 +26961,8 @@
|
|
|
27302
26961
|
writer = $Writer.create();
|
|
27303
26962
|
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
27304
26963
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
26964
|
+
if (message.etag != null && Object.hasOwnProperty.call(message, "etag"))
|
|
26965
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.etag);
|
|
27305
26966
|
return writer;
|
|
27306
26967
|
};
|
|
27307
26968
|
|
|
@@ -27342,6 +27003,10 @@
|
|
|
27342
27003
|
message.name = reader.string();
|
|
27343
27004
|
break;
|
|
27344
27005
|
}
|
|
27006
|
+
case 2: {
|
|
27007
|
+
message.etag = reader.string();
|
|
27008
|
+
break;
|
|
27009
|
+
}
|
|
27345
27010
|
default:
|
|
27346
27011
|
reader.skipType(tag & 7);
|
|
27347
27012
|
break;
|
|
@@ -27380,6 +27045,9 @@
|
|
|
27380
27045
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
27381
27046
|
if (!$util.isString(message.name))
|
|
27382
27047
|
return "name: string expected";
|
|
27048
|
+
if (message.etag != null && message.hasOwnProperty("etag"))
|
|
27049
|
+
if (!$util.isString(message.etag))
|
|
27050
|
+
return "etag: string expected";
|
|
27383
27051
|
return null;
|
|
27384
27052
|
};
|
|
27385
27053
|
|
|
@@ -27397,6 +27065,8 @@
|
|
|
27397
27065
|
var message = new $root.google.cloud.vectorsearch.v1beta.DeleteDataObjectRequest();
|
|
27398
27066
|
if (object.name != null)
|
|
27399
27067
|
message.name = String(object.name);
|
|
27068
|
+
if (object.etag != null)
|
|
27069
|
+
message.etag = String(object.etag);
|
|
27400
27070
|
return message;
|
|
27401
27071
|
};
|
|
27402
27072
|
|
|
@@ -27413,10 +27083,14 @@
|
|
|
27413
27083
|
if (!options)
|
|
27414
27084
|
options = {};
|
|
27415
27085
|
var object = {};
|
|
27416
|
-
if (options.defaults)
|
|
27086
|
+
if (options.defaults) {
|
|
27417
27087
|
object.name = "";
|
|
27088
|
+
object.etag = "";
|
|
27089
|
+
}
|
|
27418
27090
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
27419
27091
|
object.name = message.name;
|
|
27092
|
+
if (message.etag != null && message.hasOwnProperty("etag"))
|
|
27093
|
+
object.etag = message.etag;
|
|
27420
27094
|
return object;
|
|
27421
27095
|
};
|
|
27422
27096
|
|
|
@@ -30830,6 +30504,8 @@
|
|
|
30830
30504
|
* Properties of an Index.
|
|
30831
30505
|
* @memberof google.cloud.vectorsearch.v1beta
|
|
30832
30506
|
* @interface IIndex
|
|
30507
|
+
* @property {google.cloud.vectorsearch.v1beta.IDedicatedInfrastructure|null} [dedicatedInfrastructure] Index dedicatedInfrastructure
|
|
30508
|
+
* @property {google.cloud.vectorsearch.v1beta.IDenseScannIndex|null} [denseScann] Index denseScann
|
|
30833
30509
|
* @property {string|null} [name] Index name
|
|
30834
30510
|
* @property {string|null} [displayName] Index displayName
|
|
30835
30511
|
* @property {string|null} [description] Index description
|
|
@@ -30860,6 +30536,22 @@
|
|
|
30860
30536
|
this[keys[i]] = properties[keys[i]];
|
|
30861
30537
|
}
|
|
30862
30538
|
|
|
30539
|
+
/**
|
|
30540
|
+
* Index dedicatedInfrastructure.
|
|
30541
|
+
* @member {google.cloud.vectorsearch.v1beta.IDedicatedInfrastructure|null|undefined} dedicatedInfrastructure
|
|
30542
|
+
* @memberof google.cloud.vectorsearch.v1beta.Index
|
|
30543
|
+
* @instance
|
|
30544
|
+
*/
|
|
30545
|
+
Index.prototype.dedicatedInfrastructure = null;
|
|
30546
|
+
|
|
30547
|
+
/**
|
|
30548
|
+
* Index denseScann.
|
|
30549
|
+
* @member {google.cloud.vectorsearch.v1beta.IDenseScannIndex|null|undefined} denseScann
|
|
30550
|
+
* @memberof google.cloud.vectorsearch.v1beta.Index
|
|
30551
|
+
* @instance
|
|
30552
|
+
*/
|
|
30553
|
+
Index.prototype.denseScann = null;
|
|
30554
|
+
|
|
30863
30555
|
/**
|
|
30864
30556
|
* Index name.
|
|
30865
30557
|
* @member {string} name
|
|
@@ -30940,6 +30632,31 @@
|
|
|
30940
30632
|
*/
|
|
30941
30633
|
Index.prototype.storeFields = $util.emptyArray;
|
|
30942
30634
|
|
|
30635
|
+
// OneOf field names bound to virtual getters and setters
|
|
30636
|
+
var $oneOfFields;
|
|
30637
|
+
|
|
30638
|
+
/**
|
|
30639
|
+
* Index infraType.
|
|
30640
|
+
* @member {"dedicatedInfrastructure"|undefined} infraType
|
|
30641
|
+
* @memberof google.cloud.vectorsearch.v1beta.Index
|
|
30642
|
+
* @instance
|
|
30643
|
+
*/
|
|
30644
|
+
Object.defineProperty(Index.prototype, "infraType", {
|
|
30645
|
+
get: $util.oneOfGetter($oneOfFields = ["dedicatedInfrastructure"]),
|
|
30646
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
30647
|
+
});
|
|
30648
|
+
|
|
30649
|
+
/**
|
|
30650
|
+
* Index indexType.
|
|
30651
|
+
* @member {"denseScann"|undefined} indexType
|
|
30652
|
+
* @memberof google.cloud.vectorsearch.v1beta.Index
|
|
30653
|
+
* @instance
|
|
30654
|
+
*/
|
|
30655
|
+
Object.defineProperty(Index.prototype, "indexType", {
|
|
30656
|
+
get: $util.oneOfGetter($oneOfFields = ["denseScann"]),
|
|
30657
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
30658
|
+
});
|
|
30659
|
+
|
|
30943
30660
|
/**
|
|
30944
30661
|
* Creates a new Index instance using the specified properties.
|
|
30945
30662
|
* @function create
|
|
@@ -30987,6 +30704,10 @@
|
|
|
30987
30704
|
if (message.labels != null && Object.hasOwnProperty.call(message, "labels"))
|
|
30988
30705
|
for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i)
|
|
30989
30706
|
writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
|
|
30707
|
+
if (message.dedicatedInfrastructure != null && Object.hasOwnProperty.call(message, "dedicatedInfrastructure"))
|
|
30708
|
+
$root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.encode(message.dedicatedInfrastructure, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
30709
|
+
if (message.denseScann != null && Object.hasOwnProperty.call(message, "denseScann"))
|
|
30710
|
+
$root.google.cloud.vectorsearch.v1beta.DenseScannIndex.encode(message.denseScann, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
30990
30711
|
return writer;
|
|
30991
30712
|
};
|
|
30992
30713
|
|
|
@@ -31023,6 +30744,14 @@
|
|
|
31023
30744
|
if (tag === error)
|
|
31024
30745
|
break;
|
|
31025
30746
|
switch (tag >>> 3) {
|
|
30747
|
+
case 11: {
|
|
30748
|
+
message.dedicatedInfrastructure = $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.decode(reader, reader.uint32());
|
|
30749
|
+
break;
|
|
30750
|
+
}
|
|
30751
|
+
case 12: {
|
|
30752
|
+
message.denseScann = $root.google.cloud.vectorsearch.v1beta.DenseScannIndex.decode(reader, reader.uint32());
|
|
30753
|
+
break;
|
|
30754
|
+
}
|
|
31026
30755
|
case 1: {
|
|
31027
30756
|
message.name = reader.string();
|
|
31028
30757
|
break;
|
|
@@ -31121,6 +30850,23 @@
|
|
|
31121
30850
|
Index.verify = function verify(message) {
|
|
31122
30851
|
if (typeof message !== "object" || message === null)
|
|
31123
30852
|
return "object expected";
|
|
30853
|
+
var properties = {};
|
|
30854
|
+
if (message.dedicatedInfrastructure != null && message.hasOwnProperty("dedicatedInfrastructure")) {
|
|
30855
|
+
properties.infraType = 1;
|
|
30856
|
+
{
|
|
30857
|
+
var error = $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.verify(message.dedicatedInfrastructure);
|
|
30858
|
+
if (error)
|
|
30859
|
+
return "dedicatedInfrastructure." + error;
|
|
30860
|
+
}
|
|
30861
|
+
}
|
|
30862
|
+
if (message.denseScann != null && message.hasOwnProperty("denseScann")) {
|
|
30863
|
+
properties.indexType = 1;
|
|
30864
|
+
{
|
|
30865
|
+
var error = $root.google.cloud.vectorsearch.v1beta.DenseScannIndex.verify(message.denseScann);
|
|
30866
|
+
if (error)
|
|
30867
|
+
return "denseScann." + error;
|
|
30868
|
+
}
|
|
30869
|
+
}
|
|
31124
30870
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
31125
30871
|
if (!$util.isString(message.name))
|
|
31126
30872
|
return "name: string expected";
|
|
@@ -31189,6 +30935,16 @@
|
|
|
31189
30935
|
if (object instanceof $root.google.cloud.vectorsearch.v1beta.Index)
|
|
31190
30936
|
return object;
|
|
31191
30937
|
var message = new $root.google.cloud.vectorsearch.v1beta.Index();
|
|
30938
|
+
if (object.dedicatedInfrastructure != null) {
|
|
30939
|
+
if (typeof object.dedicatedInfrastructure !== "object")
|
|
30940
|
+
throw TypeError(".google.cloud.vectorsearch.v1beta.Index.dedicatedInfrastructure: object expected");
|
|
30941
|
+
message.dedicatedInfrastructure = $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.fromObject(object.dedicatedInfrastructure);
|
|
30942
|
+
}
|
|
30943
|
+
if (object.denseScann != null) {
|
|
30944
|
+
if (typeof object.denseScann !== "object")
|
|
30945
|
+
throw TypeError(".google.cloud.vectorsearch.v1beta.Index.denseScann: object expected");
|
|
30946
|
+
message.denseScann = $root.google.cloud.vectorsearch.v1beta.DenseScannIndex.fromObject(object.denseScann);
|
|
30947
|
+
}
|
|
31192
30948
|
if (object.name != null)
|
|
31193
30949
|
message.name = String(object.name);
|
|
31194
30950
|
if (object.displayName != null)
|
|
@@ -31309,6 +31065,16 @@
|
|
|
31309
31065
|
for (var j = 0; j < keys2.length; ++j)
|
|
31310
31066
|
object.labels[keys2[j]] = message.labels[keys2[j]];
|
|
31311
31067
|
}
|
|
31068
|
+
if (message.dedicatedInfrastructure != null && message.hasOwnProperty("dedicatedInfrastructure")) {
|
|
31069
|
+
object.dedicatedInfrastructure = $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.toObject(message.dedicatedInfrastructure, options);
|
|
31070
|
+
if (options.oneofs)
|
|
31071
|
+
object.infraType = "dedicatedInfrastructure";
|
|
31072
|
+
}
|
|
31073
|
+
if (message.denseScann != null && message.hasOwnProperty("denseScann")) {
|
|
31074
|
+
object.denseScann = $root.google.cloud.vectorsearch.v1beta.DenseScannIndex.toObject(message.denseScann, options);
|
|
31075
|
+
if (options.oneofs)
|
|
31076
|
+
object.indexType = "denseScann";
|
|
31077
|
+
}
|
|
31312
31078
|
return object;
|
|
31313
31079
|
};
|
|
31314
31080
|
|
|
@@ -34916,6 +34682,767 @@
|
|
|
34916
34682
|
return ExportDataObjectsResponse;
|
|
34917
34683
|
})();
|
|
34918
34684
|
|
|
34685
|
+
v1beta.DedicatedInfrastructure = (function() {
|
|
34686
|
+
|
|
34687
|
+
/**
|
|
34688
|
+
* Properties of a DedicatedInfrastructure.
|
|
34689
|
+
* @memberof google.cloud.vectorsearch.v1beta
|
|
34690
|
+
* @interface IDedicatedInfrastructure
|
|
34691
|
+
* @property {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.Mode|null} [mode] DedicatedInfrastructure mode
|
|
34692
|
+
* @property {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.IAutoscalingSpec|null} [autoscalingSpec] DedicatedInfrastructure autoscalingSpec
|
|
34693
|
+
*/
|
|
34694
|
+
|
|
34695
|
+
/**
|
|
34696
|
+
* Constructs a new DedicatedInfrastructure.
|
|
34697
|
+
* @memberof google.cloud.vectorsearch.v1beta
|
|
34698
|
+
* @classdesc Represents a DedicatedInfrastructure.
|
|
34699
|
+
* @implements IDedicatedInfrastructure
|
|
34700
|
+
* @constructor
|
|
34701
|
+
* @param {google.cloud.vectorsearch.v1beta.IDedicatedInfrastructure=} [properties] Properties to set
|
|
34702
|
+
*/
|
|
34703
|
+
function DedicatedInfrastructure(properties) {
|
|
34704
|
+
if (properties)
|
|
34705
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
34706
|
+
if (properties[keys[i]] != null)
|
|
34707
|
+
this[keys[i]] = properties[keys[i]];
|
|
34708
|
+
}
|
|
34709
|
+
|
|
34710
|
+
/**
|
|
34711
|
+
* DedicatedInfrastructure mode.
|
|
34712
|
+
* @member {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.Mode|null|undefined} mode
|
|
34713
|
+
* @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure
|
|
34714
|
+
* @instance
|
|
34715
|
+
*/
|
|
34716
|
+
DedicatedInfrastructure.prototype.mode = null;
|
|
34717
|
+
|
|
34718
|
+
/**
|
|
34719
|
+
* DedicatedInfrastructure autoscalingSpec.
|
|
34720
|
+
* @member {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.IAutoscalingSpec|null|undefined} autoscalingSpec
|
|
34721
|
+
* @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure
|
|
34722
|
+
* @instance
|
|
34723
|
+
*/
|
|
34724
|
+
DedicatedInfrastructure.prototype.autoscalingSpec = null;
|
|
34725
|
+
|
|
34726
|
+
// OneOf field names bound to virtual getters and setters
|
|
34727
|
+
var $oneOfFields;
|
|
34728
|
+
|
|
34729
|
+
// Virtual OneOf for proto3 optional field
|
|
34730
|
+
Object.defineProperty(DedicatedInfrastructure.prototype, "_mode", {
|
|
34731
|
+
get: $util.oneOfGetter($oneOfFields = ["mode"]),
|
|
34732
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
34733
|
+
});
|
|
34734
|
+
|
|
34735
|
+
/**
|
|
34736
|
+
* Creates a new DedicatedInfrastructure instance using the specified properties.
|
|
34737
|
+
* @function create
|
|
34738
|
+
* @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure
|
|
34739
|
+
* @static
|
|
34740
|
+
* @param {google.cloud.vectorsearch.v1beta.IDedicatedInfrastructure=} [properties] Properties to set
|
|
34741
|
+
* @returns {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure} DedicatedInfrastructure instance
|
|
34742
|
+
*/
|
|
34743
|
+
DedicatedInfrastructure.create = function create(properties) {
|
|
34744
|
+
return new DedicatedInfrastructure(properties);
|
|
34745
|
+
};
|
|
34746
|
+
|
|
34747
|
+
/**
|
|
34748
|
+
* Encodes the specified DedicatedInfrastructure message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.verify|verify} messages.
|
|
34749
|
+
* @function encode
|
|
34750
|
+
* @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure
|
|
34751
|
+
* @static
|
|
34752
|
+
* @param {google.cloud.vectorsearch.v1beta.IDedicatedInfrastructure} message DedicatedInfrastructure message or plain object to encode
|
|
34753
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
34754
|
+
* @returns {$protobuf.Writer} Writer
|
|
34755
|
+
*/
|
|
34756
|
+
DedicatedInfrastructure.encode = function encode(message, writer) {
|
|
34757
|
+
if (!writer)
|
|
34758
|
+
writer = $Writer.create();
|
|
34759
|
+
if (message.mode != null && Object.hasOwnProperty.call(message, "mode"))
|
|
34760
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.mode);
|
|
34761
|
+
if (message.autoscalingSpec != null && Object.hasOwnProperty.call(message, "autoscalingSpec"))
|
|
34762
|
+
$root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec.encode(message.autoscalingSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
34763
|
+
return writer;
|
|
34764
|
+
};
|
|
34765
|
+
|
|
34766
|
+
/**
|
|
34767
|
+
* Encodes the specified DedicatedInfrastructure message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.verify|verify} messages.
|
|
34768
|
+
* @function encodeDelimited
|
|
34769
|
+
* @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure
|
|
34770
|
+
* @static
|
|
34771
|
+
* @param {google.cloud.vectorsearch.v1beta.IDedicatedInfrastructure} message DedicatedInfrastructure message or plain object to encode
|
|
34772
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
34773
|
+
* @returns {$protobuf.Writer} Writer
|
|
34774
|
+
*/
|
|
34775
|
+
DedicatedInfrastructure.encodeDelimited = function encodeDelimited(message, writer) {
|
|
34776
|
+
return this.encode(message, writer).ldelim();
|
|
34777
|
+
};
|
|
34778
|
+
|
|
34779
|
+
/**
|
|
34780
|
+
* Decodes a DedicatedInfrastructure message from the specified reader or buffer.
|
|
34781
|
+
* @function decode
|
|
34782
|
+
* @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure
|
|
34783
|
+
* @static
|
|
34784
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
34785
|
+
* @param {number} [length] Message length if known beforehand
|
|
34786
|
+
* @returns {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure} DedicatedInfrastructure
|
|
34787
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
34788
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
34789
|
+
*/
|
|
34790
|
+
DedicatedInfrastructure.decode = function decode(reader, length, error) {
|
|
34791
|
+
if (!(reader instanceof $Reader))
|
|
34792
|
+
reader = $Reader.create(reader);
|
|
34793
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure();
|
|
34794
|
+
while (reader.pos < end) {
|
|
34795
|
+
var tag = reader.uint32();
|
|
34796
|
+
if (tag === error)
|
|
34797
|
+
break;
|
|
34798
|
+
switch (tag >>> 3) {
|
|
34799
|
+
case 1: {
|
|
34800
|
+
message.mode = reader.int32();
|
|
34801
|
+
break;
|
|
34802
|
+
}
|
|
34803
|
+
case 2: {
|
|
34804
|
+
message.autoscalingSpec = $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec.decode(reader, reader.uint32());
|
|
34805
|
+
break;
|
|
34806
|
+
}
|
|
34807
|
+
default:
|
|
34808
|
+
reader.skipType(tag & 7);
|
|
34809
|
+
break;
|
|
34810
|
+
}
|
|
34811
|
+
}
|
|
34812
|
+
return message;
|
|
34813
|
+
};
|
|
34814
|
+
|
|
34815
|
+
/**
|
|
34816
|
+
* Decodes a DedicatedInfrastructure message from the specified reader or buffer, length delimited.
|
|
34817
|
+
* @function decodeDelimited
|
|
34818
|
+
* @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure
|
|
34819
|
+
* @static
|
|
34820
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
34821
|
+
* @returns {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure} DedicatedInfrastructure
|
|
34822
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
34823
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
34824
|
+
*/
|
|
34825
|
+
DedicatedInfrastructure.decodeDelimited = function decodeDelimited(reader) {
|
|
34826
|
+
if (!(reader instanceof $Reader))
|
|
34827
|
+
reader = new $Reader(reader);
|
|
34828
|
+
return this.decode(reader, reader.uint32());
|
|
34829
|
+
};
|
|
34830
|
+
|
|
34831
|
+
/**
|
|
34832
|
+
* Verifies a DedicatedInfrastructure message.
|
|
34833
|
+
* @function verify
|
|
34834
|
+
* @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure
|
|
34835
|
+
* @static
|
|
34836
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
34837
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
34838
|
+
*/
|
|
34839
|
+
DedicatedInfrastructure.verify = function verify(message) {
|
|
34840
|
+
if (typeof message !== "object" || message === null)
|
|
34841
|
+
return "object expected";
|
|
34842
|
+
var properties = {};
|
|
34843
|
+
if (message.mode != null && message.hasOwnProperty("mode")) {
|
|
34844
|
+
properties._mode = 1;
|
|
34845
|
+
switch (message.mode) {
|
|
34846
|
+
default:
|
|
34847
|
+
return "mode: enum value expected";
|
|
34848
|
+
case 0:
|
|
34849
|
+
case 1:
|
|
34850
|
+
case 2:
|
|
34851
|
+
break;
|
|
34852
|
+
}
|
|
34853
|
+
}
|
|
34854
|
+
if (message.autoscalingSpec != null && message.hasOwnProperty("autoscalingSpec")) {
|
|
34855
|
+
var error = $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec.verify(message.autoscalingSpec);
|
|
34856
|
+
if (error)
|
|
34857
|
+
return "autoscalingSpec." + error;
|
|
34858
|
+
}
|
|
34859
|
+
return null;
|
|
34860
|
+
};
|
|
34861
|
+
|
|
34862
|
+
/**
|
|
34863
|
+
* Creates a DedicatedInfrastructure message from a plain object. Also converts values to their respective internal types.
|
|
34864
|
+
* @function fromObject
|
|
34865
|
+
* @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure
|
|
34866
|
+
* @static
|
|
34867
|
+
* @param {Object.<string,*>} object Plain object
|
|
34868
|
+
* @returns {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure} DedicatedInfrastructure
|
|
34869
|
+
*/
|
|
34870
|
+
DedicatedInfrastructure.fromObject = function fromObject(object) {
|
|
34871
|
+
if (object instanceof $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure)
|
|
34872
|
+
return object;
|
|
34873
|
+
var message = new $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure();
|
|
34874
|
+
switch (object.mode) {
|
|
34875
|
+
default:
|
|
34876
|
+
if (typeof object.mode === "number") {
|
|
34877
|
+
message.mode = object.mode;
|
|
34878
|
+
break;
|
|
34879
|
+
}
|
|
34880
|
+
break;
|
|
34881
|
+
case "MODE_UNSPECIFIED":
|
|
34882
|
+
case 0:
|
|
34883
|
+
message.mode = 0;
|
|
34884
|
+
break;
|
|
34885
|
+
case "STORAGE_OPTIMIZED":
|
|
34886
|
+
case 1:
|
|
34887
|
+
message.mode = 1;
|
|
34888
|
+
break;
|
|
34889
|
+
case "PERFORMANCE_OPTIMIZED":
|
|
34890
|
+
case 2:
|
|
34891
|
+
message.mode = 2;
|
|
34892
|
+
break;
|
|
34893
|
+
}
|
|
34894
|
+
if (object.autoscalingSpec != null) {
|
|
34895
|
+
if (typeof object.autoscalingSpec !== "object")
|
|
34896
|
+
throw TypeError(".google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.autoscalingSpec: object expected");
|
|
34897
|
+
message.autoscalingSpec = $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec.fromObject(object.autoscalingSpec);
|
|
34898
|
+
}
|
|
34899
|
+
return message;
|
|
34900
|
+
};
|
|
34901
|
+
|
|
34902
|
+
/**
|
|
34903
|
+
* Creates a plain object from a DedicatedInfrastructure message. Also converts values to other types if specified.
|
|
34904
|
+
* @function toObject
|
|
34905
|
+
* @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure
|
|
34906
|
+
* @static
|
|
34907
|
+
* @param {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure} message DedicatedInfrastructure
|
|
34908
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
34909
|
+
* @returns {Object.<string,*>} Plain object
|
|
34910
|
+
*/
|
|
34911
|
+
DedicatedInfrastructure.toObject = function toObject(message, options) {
|
|
34912
|
+
if (!options)
|
|
34913
|
+
options = {};
|
|
34914
|
+
var object = {};
|
|
34915
|
+
if (options.defaults)
|
|
34916
|
+
object.autoscalingSpec = null;
|
|
34917
|
+
if (message.mode != null && message.hasOwnProperty("mode")) {
|
|
34918
|
+
object.mode = options.enums === String ? $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.Mode[message.mode] === undefined ? message.mode : $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.Mode[message.mode] : message.mode;
|
|
34919
|
+
if (options.oneofs)
|
|
34920
|
+
object._mode = "mode";
|
|
34921
|
+
}
|
|
34922
|
+
if (message.autoscalingSpec != null && message.hasOwnProperty("autoscalingSpec"))
|
|
34923
|
+
object.autoscalingSpec = $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec.toObject(message.autoscalingSpec, options);
|
|
34924
|
+
return object;
|
|
34925
|
+
};
|
|
34926
|
+
|
|
34927
|
+
/**
|
|
34928
|
+
* Converts this DedicatedInfrastructure to JSON.
|
|
34929
|
+
* @function toJSON
|
|
34930
|
+
* @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure
|
|
34931
|
+
* @instance
|
|
34932
|
+
* @returns {Object.<string,*>} JSON object
|
|
34933
|
+
*/
|
|
34934
|
+
DedicatedInfrastructure.prototype.toJSON = function toJSON() {
|
|
34935
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
34936
|
+
};
|
|
34937
|
+
|
|
34938
|
+
/**
|
|
34939
|
+
* Gets the default type url for DedicatedInfrastructure
|
|
34940
|
+
* @function getTypeUrl
|
|
34941
|
+
* @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure
|
|
34942
|
+
* @static
|
|
34943
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
34944
|
+
* @returns {string} The default type url
|
|
34945
|
+
*/
|
|
34946
|
+
DedicatedInfrastructure.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
34947
|
+
if (typeUrlPrefix === undefined) {
|
|
34948
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
34949
|
+
}
|
|
34950
|
+
return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.DedicatedInfrastructure";
|
|
34951
|
+
};
|
|
34952
|
+
|
|
34953
|
+
DedicatedInfrastructure.AutoscalingSpec = (function() {
|
|
34954
|
+
|
|
34955
|
+
/**
|
|
34956
|
+
* Properties of an AutoscalingSpec.
|
|
34957
|
+
* @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure
|
|
34958
|
+
* @interface IAutoscalingSpec
|
|
34959
|
+
* @property {number|null} [minReplicaCount] AutoscalingSpec minReplicaCount
|
|
34960
|
+
* @property {number|null} [maxReplicaCount] AutoscalingSpec maxReplicaCount
|
|
34961
|
+
*/
|
|
34962
|
+
|
|
34963
|
+
/**
|
|
34964
|
+
* Constructs a new AutoscalingSpec.
|
|
34965
|
+
* @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure
|
|
34966
|
+
* @classdesc Represents an AutoscalingSpec.
|
|
34967
|
+
* @implements IAutoscalingSpec
|
|
34968
|
+
* @constructor
|
|
34969
|
+
* @param {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.IAutoscalingSpec=} [properties] Properties to set
|
|
34970
|
+
*/
|
|
34971
|
+
function AutoscalingSpec(properties) {
|
|
34972
|
+
if (properties)
|
|
34973
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
34974
|
+
if (properties[keys[i]] != null)
|
|
34975
|
+
this[keys[i]] = properties[keys[i]];
|
|
34976
|
+
}
|
|
34977
|
+
|
|
34978
|
+
/**
|
|
34979
|
+
* AutoscalingSpec minReplicaCount.
|
|
34980
|
+
* @member {number} minReplicaCount
|
|
34981
|
+
* @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec
|
|
34982
|
+
* @instance
|
|
34983
|
+
*/
|
|
34984
|
+
AutoscalingSpec.prototype.minReplicaCount = 0;
|
|
34985
|
+
|
|
34986
|
+
/**
|
|
34987
|
+
* AutoscalingSpec maxReplicaCount.
|
|
34988
|
+
* @member {number} maxReplicaCount
|
|
34989
|
+
* @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec
|
|
34990
|
+
* @instance
|
|
34991
|
+
*/
|
|
34992
|
+
AutoscalingSpec.prototype.maxReplicaCount = 0;
|
|
34993
|
+
|
|
34994
|
+
/**
|
|
34995
|
+
* Creates a new AutoscalingSpec instance using the specified properties.
|
|
34996
|
+
* @function create
|
|
34997
|
+
* @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec
|
|
34998
|
+
* @static
|
|
34999
|
+
* @param {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.IAutoscalingSpec=} [properties] Properties to set
|
|
35000
|
+
* @returns {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec} AutoscalingSpec instance
|
|
35001
|
+
*/
|
|
35002
|
+
AutoscalingSpec.create = function create(properties) {
|
|
35003
|
+
return new AutoscalingSpec(properties);
|
|
35004
|
+
};
|
|
35005
|
+
|
|
35006
|
+
/**
|
|
35007
|
+
* Encodes the specified AutoscalingSpec message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec.verify|verify} messages.
|
|
35008
|
+
* @function encode
|
|
35009
|
+
* @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec
|
|
35010
|
+
* @static
|
|
35011
|
+
* @param {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.IAutoscalingSpec} message AutoscalingSpec message or plain object to encode
|
|
35012
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
35013
|
+
* @returns {$protobuf.Writer} Writer
|
|
35014
|
+
*/
|
|
35015
|
+
AutoscalingSpec.encode = function encode(message, writer) {
|
|
35016
|
+
if (!writer)
|
|
35017
|
+
writer = $Writer.create();
|
|
35018
|
+
if (message.minReplicaCount != null && Object.hasOwnProperty.call(message, "minReplicaCount"))
|
|
35019
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.minReplicaCount);
|
|
35020
|
+
if (message.maxReplicaCount != null && Object.hasOwnProperty.call(message, "maxReplicaCount"))
|
|
35021
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxReplicaCount);
|
|
35022
|
+
return writer;
|
|
35023
|
+
};
|
|
35024
|
+
|
|
35025
|
+
/**
|
|
35026
|
+
* Encodes the specified AutoscalingSpec message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec.verify|verify} messages.
|
|
35027
|
+
* @function encodeDelimited
|
|
35028
|
+
* @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec
|
|
35029
|
+
* @static
|
|
35030
|
+
* @param {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.IAutoscalingSpec} message AutoscalingSpec message or plain object to encode
|
|
35031
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
35032
|
+
* @returns {$protobuf.Writer} Writer
|
|
35033
|
+
*/
|
|
35034
|
+
AutoscalingSpec.encodeDelimited = function encodeDelimited(message, writer) {
|
|
35035
|
+
return this.encode(message, writer).ldelim();
|
|
35036
|
+
};
|
|
35037
|
+
|
|
35038
|
+
/**
|
|
35039
|
+
* Decodes an AutoscalingSpec message from the specified reader or buffer.
|
|
35040
|
+
* @function decode
|
|
35041
|
+
* @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec
|
|
35042
|
+
* @static
|
|
35043
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
35044
|
+
* @param {number} [length] Message length if known beforehand
|
|
35045
|
+
* @returns {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec} AutoscalingSpec
|
|
35046
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
35047
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
35048
|
+
*/
|
|
35049
|
+
AutoscalingSpec.decode = function decode(reader, length, error) {
|
|
35050
|
+
if (!(reader instanceof $Reader))
|
|
35051
|
+
reader = $Reader.create(reader);
|
|
35052
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec();
|
|
35053
|
+
while (reader.pos < end) {
|
|
35054
|
+
var tag = reader.uint32();
|
|
35055
|
+
if (tag === error)
|
|
35056
|
+
break;
|
|
35057
|
+
switch (tag >>> 3) {
|
|
35058
|
+
case 1: {
|
|
35059
|
+
message.minReplicaCount = reader.int32();
|
|
35060
|
+
break;
|
|
35061
|
+
}
|
|
35062
|
+
case 2: {
|
|
35063
|
+
message.maxReplicaCount = reader.int32();
|
|
35064
|
+
break;
|
|
35065
|
+
}
|
|
35066
|
+
default:
|
|
35067
|
+
reader.skipType(tag & 7);
|
|
35068
|
+
break;
|
|
35069
|
+
}
|
|
35070
|
+
}
|
|
35071
|
+
return message;
|
|
35072
|
+
};
|
|
35073
|
+
|
|
35074
|
+
/**
|
|
35075
|
+
* Decodes an AutoscalingSpec message from the specified reader or buffer, length delimited.
|
|
35076
|
+
* @function decodeDelimited
|
|
35077
|
+
* @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec
|
|
35078
|
+
* @static
|
|
35079
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
35080
|
+
* @returns {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec} AutoscalingSpec
|
|
35081
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
35082
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
35083
|
+
*/
|
|
35084
|
+
AutoscalingSpec.decodeDelimited = function decodeDelimited(reader) {
|
|
35085
|
+
if (!(reader instanceof $Reader))
|
|
35086
|
+
reader = new $Reader(reader);
|
|
35087
|
+
return this.decode(reader, reader.uint32());
|
|
35088
|
+
};
|
|
35089
|
+
|
|
35090
|
+
/**
|
|
35091
|
+
* Verifies an AutoscalingSpec message.
|
|
35092
|
+
* @function verify
|
|
35093
|
+
* @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec
|
|
35094
|
+
* @static
|
|
35095
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
35096
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
35097
|
+
*/
|
|
35098
|
+
AutoscalingSpec.verify = function verify(message) {
|
|
35099
|
+
if (typeof message !== "object" || message === null)
|
|
35100
|
+
return "object expected";
|
|
35101
|
+
if (message.minReplicaCount != null && message.hasOwnProperty("minReplicaCount"))
|
|
35102
|
+
if (!$util.isInteger(message.minReplicaCount))
|
|
35103
|
+
return "minReplicaCount: integer expected";
|
|
35104
|
+
if (message.maxReplicaCount != null && message.hasOwnProperty("maxReplicaCount"))
|
|
35105
|
+
if (!$util.isInteger(message.maxReplicaCount))
|
|
35106
|
+
return "maxReplicaCount: integer expected";
|
|
35107
|
+
return null;
|
|
35108
|
+
};
|
|
35109
|
+
|
|
35110
|
+
/**
|
|
35111
|
+
* Creates an AutoscalingSpec message from a plain object. Also converts values to their respective internal types.
|
|
35112
|
+
* @function fromObject
|
|
35113
|
+
* @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec
|
|
35114
|
+
* @static
|
|
35115
|
+
* @param {Object.<string,*>} object Plain object
|
|
35116
|
+
* @returns {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec} AutoscalingSpec
|
|
35117
|
+
*/
|
|
35118
|
+
AutoscalingSpec.fromObject = function fromObject(object) {
|
|
35119
|
+
if (object instanceof $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec)
|
|
35120
|
+
return object;
|
|
35121
|
+
var message = new $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec();
|
|
35122
|
+
if (object.minReplicaCount != null)
|
|
35123
|
+
message.minReplicaCount = object.minReplicaCount | 0;
|
|
35124
|
+
if (object.maxReplicaCount != null)
|
|
35125
|
+
message.maxReplicaCount = object.maxReplicaCount | 0;
|
|
35126
|
+
return message;
|
|
35127
|
+
};
|
|
35128
|
+
|
|
35129
|
+
/**
|
|
35130
|
+
* Creates a plain object from an AutoscalingSpec message. Also converts values to other types if specified.
|
|
35131
|
+
* @function toObject
|
|
35132
|
+
* @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec
|
|
35133
|
+
* @static
|
|
35134
|
+
* @param {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec} message AutoscalingSpec
|
|
35135
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
35136
|
+
* @returns {Object.<string,*>} Plain object
|
|
35137
|
+
*/
|
|
35138
|
+
AutoscalingSpec.toObject = function toObject(message, options) {
|
|
35139
|
+
if (!options)
|
|
35140
|
+
options = {};
|
|
35141
|
+
var object = {};
|
|
35142
|
+
if (options.defaults) {
|
|
35143
|
+
object.minReplicaCount = 0;
|
|
35144
|
+
object.maxReplicaCount = 0;
|
|
35145
|
+
}
|
|
35146
|
+
if (message.minReplicaCount != null && message.hasOwnProperty("minReplicaCount"))
|
|
35147
|
+
object.minReplicaCount = message.minReplicaCount;
|
|
35148
|
+
if (message.maxReplicaCount != null && message.hasOwnProperty("maxReplicaCount"))
|
|
35149
|
+
object.maxReplicaCount = message.maxReplicaCount;
|
|
35150
|
+
return object;
|
|
35151
|
+
};
|
|
35152
|
+
|
|
35153
|
+
/**
|
|
35154
|
+
* Converts this AutoscalingSpec to JSON.
|
|
35155
|
+
* @function toJSON
|
|
35156
|
+
* @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec
|
|
35157
|
+
* @instance
|
|
35158
|
+
* @returns {Object.<string,*>} JSON object
|
|
35159
|
+
*/
|
|
35160
|
+
AutoscalingSpec.prototype.toJSON = function toJSON() {
|
|
35161
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
35162
|
+
};
|
|
35163
|
+
|
|
35164
|
+
/**
|
|
35165
|
+
* Gets the default type url for AutoscalingSpec
|
|
35166
|
+
* @function getTypeUrl
|
|
35167
|
+
* @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec
|
|
35168
|
+
* @static
|
|
35169
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
35170
|
+
* @returns {string} The default type url
|
|
35171
|
+
*/
|
|
35172
|
+
AutoscalingSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
35173
|
+
if (typeUrlPrefix === undefined) {
|
|
35174
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
35175
|
+
}
|
|
35176
|
+
return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec";
|
|
35177
|
+
};
|
|
35178
|
+
|
|
35179
|
+
return AutoscalingSpec;
|
|
35180
|
+
})();
|
|
35181
|
+
|
|
35182
|
+
/**
|
|
35183
|
+
* Mode enum.
|
|
35184
|
+
* @name google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.Mode
|
|
35185
|
+
* @enum {number}
|
|
35186
|
+
* @property {number} MODE_UNSPECIFIED=0 MODE_UNSPECIFIED value
|
|
35187
|
+
* @property {number} STORAGE_OPTIMIZED=1 STORAGE_OPTIMIZED value
|
|
35188
|
+
* @property {number} PERFORMANCE_OPTIMIZED=2 PERFORMANCE_OPTIMIZED value
|
|
35189
|
+
*/
|
|
35190
|
+
DedicatedInfrastructure.Mode = (function() {
|
|
35191
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
35192
|
+
values[valuesById[0] = "MODE_UNSPECIFIED"] = 0;
|
|
35193
|
+
values[valuesById[1] = "STORAGE_OPTIMIZED"] = 1;
|
|
35194
|
+
values[valuesById[2] = "PERFORMANCE_OPTIMIZED"] = 2;
|
|
35195
|
+
return values;
|
|
35196
|
+
})();
|
|
35197
|
+
|
|
35198
|
+
return DedicatedInfrastructure;
|
|
35199
|
+
})();
|
|
35200
|
+
|
|
35201
|
+
v1beta.DenseScannIndex = (function() {
|
|
35202
|
+
|
|
35203
|
+
/**
|
|
35204
|
+
* Properties of a DenseScannIndex.
|
|
35205
|
+
* @memberof google.cloud.vectorsearch.v1beta
|
|
35206
|
+
* @interface IDenseScannIndex
|
|
35207
|
+
* @property {google.cloud.vectorsearch.v1beta.DenseScannIndex.FeatureNormType|null} [featureNormType] DenseScannIndex featureNormType
|
|
35208
|
+
*/
|
|
35209
|
+
|
|
35210
|
+
/**
|
|
35211
|
+
* Constructs a new DenseScannIndex.
|
|
35212
|
+
* @memberof google.cloud.vectorsearch.v1beta
|
|
35213
|
+
* @classdesc Represents a DenseScannIndex.
|
|
35214
|
+
* @implements IDenseScannIndex
|
|
35215
|
+
* @constructor
|
|
35216
|
+
* @param {google.cloud.vectorsearch.v1beta.IDenseScannIndex=} [properties] Properties to set
|
|
35217
|
+
*/
|
|
35218
|
+
function DenseScannIndex(properties) {
|
|
35219
|
+
if (properties)
|
|
35220
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
35221
|
+
if (properties[keys[i]] != null)
|
|
35222
|
+
this[keys[i]] = properties[keys[i]];
|
|
35223
|
+
}
|
|
35224
|
+
|
|
35225
|
+
/**
|
|
35226
|
+
* DenseScannIndex featureNormType.
|
|
35227
|
+
* @member {google.cloud.vectorsearch.v1beta.DenseScannIndex.FeatureNormType} featureNormType
|
|
35228
|
+
* @memberof google.cloud.vectorsearch.v1beta.DenseScannIndex
|
|
35229
|
+
* @instance
|
|
35230
|
+
*/
|
|
35231
|
+
DenseScannIndex.prototype.featureNormType = 0;
|
|
35232
|
+
|
|
35233
|
+
/**
|
|
35234
|
+
* Creates a new DenseScannIndex instance using the specified properties.
|
|
35235
|
+
* @function create
|
|
35236
|
+
* @memberof google.cloud.vectorsearch.v1beta.DenseScannIndex
|
|
35237
|
+
* @static
|
|
35238
|
+
* @param {google.cloud.vectorsearch.v1beta.IDenseScannIndex=} [properties] Properties to set
|
|
35239
|
+
* @returns {google.cloud.vectorsearch.v1beta.DenseScannIndex} DenseScannIndex instance
|
|
35240
|
+
*/
|
|
35241
|
+
DenseScannIndex.create = function create(properties) {
|
|
35242
|
+
return new DenseScannIndex(properties);
|
|
35243
|
+
};
|
|
35244
|
+
|
|
35245
|
+
/**
|
|
35246
|
+
* Encodes the specified DenseScannIndex message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.DenseScannIndex.verify|verify} messages.
|
|
35247
|
+
* @function encode
|
|
35248
|
+
* @memberof google.cloud.vectorsearch.v1beta.DenseScannIndex
|
|
35249
|
+
* @static
|
|
35250
|
+
* @param {google.cloud.vectorsearch.v1beta.IDenseScannIndex} message DenseScannIndex message or plain object to encode
|
|
35251
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
35252
|
+
* @returns {$protobuf.Writer} Writer
|
|
35253
|
+
*/
|
|
35254
|
+
DenseScannIndex.encode = function encode(message, writer) {
|
|
35255
|
+
if (!writer)
|
|
35256
|
+
writer = $Writer.create();
|
|
35257
|
+
if (message.featureNormType != null && Object.hasOwnProperty.call(message, "featureNormType"))
|
|
35258
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.featureNormType);
|
|
35259
|
+
return writer;
|
|
35260
|
+
};
|
|
35261
|
+
|
|
35262
|
+
/**
|
|
35263
|
+
* Encodes the specified DenseScannIndex message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.DenseScannIndex.verify|verify} messages.
|
|
35264
|
+
* @function encodeDelimited
|
|
35265
|
+
* @memberof google.cloud.vectorsearch.v1beta.DenseScannIndex
|
|
35266
|
+
* @static
|
|
35267
|
+
* @param {google.cloud.vectorsearch.v1beta.IDenseScannIndex} message DenseScannIndex message or plain object to encode
|
|
35268
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
35269
|
+
* @returns {$protobuf.Writer} Writer
|
|
35270
|
+
*/
|
|
35271
|
+
DenseScannIndex.encodeDelimited = function encodeDelimited(message, writer) {
|
|
35272
|
+
return this.encode(message, writer).ldelim();
|
|
35273
|
+
};
|
|
35274
|
+
|
|
35275
|
+
/**
|
|
35276
|
+
* Decodes a DenseScannIndex message from the specified reader or buffer.
|
|
35277
|
+
* @function decode
|
|
35278
|
+
* @memberof google.cloud.vectorsearch.v1beta.DenseScannIndex
|
|
35279
|
+
* @static
|
|
35280
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
35281
|
+
* @param {number} [length] Message length if known beforehand
|
|
35282
|
+
* @returns {google.cloud.vectorsearch.v1beta.DenseScannIndex} DenseScannIndex
|
|
35283
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
35284
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
35285
|
+
*/
|
|
35286
|
+
DenseScannIndex.decode = function decode(reader, length, error) {
|
|
35287
|
+
if (!(reader instanceof $Reader))
|
|
35288
|
+
reader = $Reader.create(reader);
|
|
35289
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.DenseScannIndex();
|
|
35290
|
+
while (reader.pos < end) {
|
|
35291
|
+
var tag = reader.uint32();
|
|
35292
|
+
if (tag === error)
|
|
35293
|
+
break;
|
|
35294
|
+
switch (tag >>> 3) {
|
|
35295
|
+
case 2: {
|
|
35296
|
+
message.featureNormType = reader.int32();
|
|
35297
|
+
break;
|
|
35298
|
+
}
|
|
35299
|
+
default:
|
|
35300
|
+
reader.skipType(tag & 7);
|
|
35301
|
+
break;
|
|
35302
|
+
}
|
|
35303
|
+
}
|
|
35304
|
+
return message;
|
|
35305
|
+
};
|
|
35306
|
+
|
|
35307
|
+
/**
|
|
35308
|
+
* Decodes a DenseScannIndex message from the specified reader or buffer, length delimited.
|
|
35309
|
+
* @function decodeDelimited
|
|
35310
|
+
* @memberof google.cloud.vectorsearch.v1beta.DenseScannIndex
|
|
35311
|
+
* @static
|
|
35312
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
35313
|
+
* @returns {google.cloud.vectorsearch.v1beta.DenseScannIndex} DenseScannIndex
|
|
35314
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
35315
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
35316
|
+
*/
|
|
35317
|
+
DenseScannIndex.decodeDelimited = function decodeDelimited(reader) {
|
|
35318
|
+
if (!(reader instanceof $Reader))
|
|
35319
|
+
reader = new $Reader(reader);
|
|
35320
|
+
return this.decode(reader, reader.uint32());
|
|
35321
|
+
};
|
|
35322
|
+
|
|
35323
|
+
/**
|
|
35324
|
+
* Verifies a DenseScannIndex message.
|
|
35325
|
+
* @function verify
|
|
35326
|
+
* @memberof google.cloud.vectorsearch.v1beta.DenseScannIndex
|
|
35327
|
+
* @static
|
|
35328
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
35329
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
35330
|
+
*/
|
|
35331
|
+
DenseScannIndex.verify = function verify(message) {
|
|
35332
|
+
if (typeof message !== "object" || message === null)
|
|
35333
|
+
return "object expected";
|
|
35334
|
+
if (message.featureNormType != null && message.hasOwnProperty("featureNormType"))
|
|
35335
|
+
switch (message.featureNormType) {
|
|
35336
|
+
default:
|
|
35337
|
+
return "featureNormType: enum value expected";
|
|
35338
|
+
case 0:
|
|
35339
|
+
case 1:
|
|
35340
|
+
case 2:
|
|
35341
|
+
break;
|
|
35342
|
+
}
|
|
35343
|
+
return null;
|
|
35344
|
+
};
|
|
35345
|
+
|
|
35346
|
+
/**
|
|
35347
|
+
* Creates a DenseScannIndex message from a plain object. Also converts values to their respective internal types.
|
|
35348
|
+
* @function fromObject
|
|
35349
|
+
* @memberof google.cloud.vectorsearch.v1beta.DenseScannIndex
|
|
35350
|
+
* @static
|
|
35351
|
+
* @param {Object.<string,*>} object Plain object
|
|
35352
|
+
* @returns {google.cloud.vectorsearch.v1beta.DenseScannIndex} DenseScannIndex
|
|
35353
|
+
*/
|
|
35354
|
+
DenseScannIndex.fromObject = function fromObject(object) {
|
|
35355
|
+
if (object instanceof $root.google.cloud.vectorsearch.v1beta.DenseScannIndex)
|
|
35356
|
+
return object;
|
|
35357
|
+
var message = new $root.google.cloud.vectorsearch.v1beta.DenseScannIndex();
|
|
35358
|
+
switch (object.featureNormType) {
|
|
35359
|
+
default:
|
|
35360
|
+
if (typeof object.featureNormType === "number") {
|
|
35361
|
+
message.featureNormType = object.featureNormType;
|
|
35362
|
+
break;
|
|
35363
|
+
}
|
|
35364
|
+
break;
|
|
35365
|
+
case "FEATURE_NORM_TYPE_UNSPECIFIED":
|
|
35366
|
+
case 0:
|
|
35367
|
+
message.featureNormType = 0;
|
|
35368
|
+
break;
|
|
35369
|
+
case "NONE":
|
|
35370
|
+
case 1:
|
|
35371
|
+
message.featureNormType = 1;
|
|
35372
|
+
break;
|
|
35373
|
+
case "UNIT_L2_NORM":
|
|
35374
|
+
case 2:
|
|
35375
|
+
message.featureNormType = 2;
|
|
35376
|
+
break;
|
|
35377
|
+
}
|
|
35378
|
+
return message;
|
|
35379
|
+
};
|
|
35380
|
+
|
|
35381
|
+
/**
|
|
35382
|
+
* Creates a plain object from a DenseScannIndex message. Also converts values to other types if specified.
|
|
35383
|
+
* @function toObject
|
|
35384
|
+
* @memberof google.cloud.vectorsearch.v1beta.DenseScannIndex
|
|
35385
|
+
* @static
|
|
35386
|
+
* @param {google.cloud.vectorsearch.v1beta.DenseScannIndex} message DenseScannIndex
|
|
35387
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
35388
|
+
* @returns {Object.<string,*>} Plain object
|
|
35389
|
+
*/
|
|
35390
|
+
DenseScannIndex.toObject = function toObject(message, options) {
|
|
35391
|
+
if (!options)
|
|
35392
|
+
options = {};
|
|
35393
|
+
var object = {};
|
|
35394
|
+
if (options.defaults)
|
|
35395
|
+
object.featureNormType = options.enums === String ? "FEATURE_NORM_TYPE_UNSPECIFIED" : 0;
|
|
35396
|
+
if (message.featureNormType != null && message.hasOwnProperty("featureNormType"))
|
|
35397
|
+
object.featureNormType = options.enums === String ? $root.google.cloud.vectorsearch.v1beta.DenseScannIndex.FeatureNormType[message.featureNormType] === undefined ? message.featureNormType : $root.google.cloud.vectorsearch.v1beta.DenseScannIndex.FeatureNormType[message.featureNormType] : message.featureNormType;
|
|
35398
|
+
return object;
|
|
35399
|
+
};
|
|
35400
|
+
|
|
35401
|
+
/**
|
|
35402
|
+
* Converts this DenseScannIndex to JSON.
|
|
35403
|
+
* @function toJSON
|
|
35404
|
+
* @memberof google.cloud.vectorsearch.v1beta.DenseScannIndex
|
|
35405
|
+
* @instance
|
|
35406
|
+
* @returns {Object.<string,*>} JSON object
|
|
35407
|
+
*/
|
|
35408
|
+
DenseScannIndex.prototype.toJSON = function toJSON() {
|
|
35409
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
35410
|
+
};
|
|
35411
|
+
|
|
35412
|
+
/**
|
|
35413
|
+
* Gets the default type url for DenseScannIndex
|
|
35414
|
+
* @function getTypeUrl
|
|
35415
|
+
* @memberof google.cloud.vectorsearch.v1beta.DenseScannIndex
|
|
35416
|
+
* @static
|
|
35417
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
35418
|
+
* @returns {string} The default type url
|
|
35419
|
+
*/
|
|
35420
|
+
DenseScannIndex.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
35421
|
+
if (typeUrlPrefix === undefined) {
|
|
35422
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
35423
|
+
}
|
|
35424
|
+
return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.DenseScannIndex";
|
|
35425
|
+
};
|
|
35426
|
+
|
|
35427
|
+
/**
|
|
35428
|
+
* FeatureNormType enum.
|
|
35429
|
+
* @name google.cloud.vectorsearch.v1beta.DenseScannIndex.FeatureNormType
|
|
35430
|
+
* @enum {number}
|
|
35431
|
+
* @property {number} FEATURE_NORM_TYPE_UNSPECIFIED=0 FEATURE_NORM_TYPE_UNSPECIFIED value
|
|
35432
|
+
* @property {number} NONE=1 NONE value
|
|
35433
|
+
* @property {number} UNIT_L2_NORM=2 UNIT_L2_NORM value
|
|
35434
|
+
*/
|
|
35435
|
+
DenseScannIndex.FeatureNormType = (function() {
|
|
35436
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
35437
|
+
values[valuesById[0] = "FEATURE_NORM_TYPE_UNSPECIFIED"] = 0;
|
|
35438
|
+
values[valuesById[1] = "NONE"] = 1;
|
|
35439
|
+
values[valuesById[2] = "UNIT_L2_NORM"] = 2;
|
|
35440
|
+
return values;
|
|
35441
|
+
})();
|
|
35442
|
+
|
|
35443
|
+
return DenseScannIndex;
|
|
35444
|
+
})();
|
|
35445
|
+
|
|
34919
35446
|
return v1beta;
|
|
34920
35447
|
})();
|
|
34921
35448
|
|