Skip to content

Commit

Permalink
Update [vald sha: c2693c0]
Browse files Browse the repository at this point in the history
  • Loading branch information
vdaas-ci committed Jun 13, 2023
1 parent c2693c0 commit f25b424
Show file tree
Hide file tree
Showing 12 changed files with 130 additions and 9 deletions.
2 changes: 1 addition & 1 deletion VALD_CLIENT_NODE_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.7.5
1.7.6
2 changes: 1 addition & 1 deletion VALD_SHA
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0ec126d77a7f70e83e5fb8e658fe3db9dca08ba0
c2693c0615fb70f33183b3f7d687c626c5ff2c7f
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import v1_agent_core = require("./src/vald/v1/agent/core");
import v1_vald = require("./src/vald/v1/vald");
import v1_payload = require("./src/vald/v1/payload");
import v1_agent_core = require("./src/vald/v1/agent/core");
declare const _default: {
v1_agent_core: typeof v1_agent_core,
v1_vald: typeof v1_vald,
v1_payload: typeof v1_payload,
v1_agent_core: typeof v1_agent_core,
};
export = _default;
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports.v1_agent_core = require("./src/vald/v1/agent/core");
module.exports.v1_vald = require("./src/vald/v1/vald");
module.exports.v1_payload = require("./src/vald/v1/payload");
module.exports.v1_agent_core = require("./src/vald/v1/agent/core");
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vald-client-node",
"version": "1.7.5",
"version": "1.7.6",
"description": "A gRPC client library for Vald",
"main": "index.js",
"types": "index.d.ts",
Expand Down
15 changes: 15 additions & 0 deletions src/vald/v1/payload/payload_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import * as jspb from "google-protobuf";
import * as validate_validate_pb from "../../../validate/validate_pb";
import * as google_rpc_status_pb from "../../../google/rpc/status_pb";
import * as vtproto_ext_pb from "../../../vtproto/ext_pb";

export class Search extends jspb.Message {
serializeBinary(): Uint8Array;
Expand Down Expand Up @@ -203,6 +204,9 @@ export namespace Search {
getMinNum(): number;
setMinNum(value: number): void;

getAggregationAlgorithm(): Search.AggregationAlgorithmMap[keyof Search.AggregationAlgorithmMap];
setAggregationAlgorithm(value: Search.AggregationAlgorithmMap[keyof Search.AggregationAlgorithmMap]): void;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Config.AsObject;
static toObject(includeInstance: boolean, msg: Config): Config.AsObject;
Expand All @@ -223,6 +227,7 @@ export namespace Search {
ingressFilters?: Filter.Config.AsObject,
egressFilters?: Filter.Config.AsObject,
minNum: number,
aggregationAlgorithm: Search.AggregationAlgorithmMap[keyof Search.AggregationAlgorithmMap],
}
}

Expand Down Expand Up @@ -308,6 +313,16 @@ export namespace Search {
STATUS = 2,
}
}

export interface AggregationAlgorithmMap {
UNKNOWN: 0;
CONCURRENTQUEUE: 1;
SORTSLICE: 2;
SORTPOOLSLICE: 3;
PAIRINGHEAP: 4;
}

export const AggregationAlgorithm: AggregationAlgorithmMap;
}

export class Filter extends jspb.Message {
Expand Down
46 changes: 45 additions & 1 deletion src/vald/v1/payload/payload_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ var validate_validate_pb = require('../../../validate/validate_pb.js');
goog.object.extend(proto, validate_validate_pb);
var google_rpc_status_pb = require('../../../google/rpc/status_pb.js');
goog.object.extend(proto, google_rpc_status_pb);
var vtproto_ext_pb = require('../../../vtproto/ext_pb.js');
goog.object.extend(proto, vtproto_ext_pb);
goog.exportSymbol('proto.payload.v1.Control', null, global);
goog.exportSymbol('proto.payload.v1.Control.CreateIndexRequest', null, global);
goog.exportSymbol('proto.payload.v1.Discoverer', null, global);
Expand Down Expand Up @@ -76,6 +78,7 @@ goog.exportSymbol('proto.payload.v1.Remove.Config', null, global);
goog.exportSymbol('proto.payload.v1.Remove.MultiRequest', null, global);
goog.exportSymbol('proto.payload.v1.Remove.Request', null, global);
goog.exportSymbol('proto.payload.v1.Search', null, global);
goog.exportSymbol('proto.payload.v1.Search.AggregationAlgorithm', null, global);
goog.exportSymbol('proto.payload.v1.Search.Config', null, global);
goog.exportSymbol('proto.payload.v1.Search.IDRequest', null, global);
goog.exportSymbol('proto.payload.v1.Search.MultiIDRequest', null, global);
Expand Down Expand Up @@ -1649,6 +1652,17 @@ proto.payload.v1.Search.serializeBinaryToWriter = function(message, writer) {
};


/**
* @enum {number}
*/
proto.payload.v1.Search.AggregationAlgorithm = {
UNKNOWN: 0,
CONCURRENTQUEUE: 1,
SORTSLICE: 2,
SORTPOOLSLICE: 3,
PAIRINGHEAP: 4
};


/**
* List of repeated fields within this message type.
Expand Down Expand Up @@ -2814,7 +2828,8 @@ proto.payload.v1.Search.Config.toObject = function(includeInstance, msg) {
timeout: jspb.Message.getFieldWithDefault(msg, 5, 0),
ingressFilters: (f = msg.getIngressFilters()) && proto.payload.v1.Filter.Config.toObject(includeInstance, f),
egressFilters: (f = msg.getEgressFilters()) && proto.payload.v1.Filter.Config.toObject(includeInstance, f),
minNum: jspb.Message.getFieldWithDefault(msg, 8, 0)
minNum: jspb.Message.getFieldWithDefault(msg, 8, 0),
aggregationAlgorithm: jspb.Message.getFieldWithDefault(msg, 9, 0)
};

if (includeInstance) {
Expand Down Expand Up @@ -2885,6 +2900,10 @@ proto.payload.v1.Search.Config.deserializeBinaryFromReader = function(msg, reade
var value = /** @type {number} */ (reader.readUint32());
msg.setMinNum(value);
break;
case 9:
var value = /** @type {!proto.payload.v1.Search.AggregationAlgorithm} */ (reader.readEnum());
msg.setAggregationAlgorithm(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -2972,6 +2991,13 @@ proto.payload.v1.Search.Config.serializeBinaryToWriter = function(message, write
f
);
}
f = message.getAggregationAlgorithm();
if (f !== 0.0) {
writer.writeEnum(
9,
f
);
}
};


Expand Down Expand Up @@ -3157,6 +3183,24 @@ proto.payload.v1.Search.Config.prototype.setMinNum = function(value) {
};


/**
* optional AggregationAlgorithm aggregation_algorithm = 9;
* @return {!proto.payload.v1.Search.AggregationAlgorithm}
*/
proto.payload.v1.Search.Config.prototype.getAggregationAlgorithm = function() {
return /** @type {!proto.payload.v1.Search.AggregationAlgorithm} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
};


/**
* @param {!proto.payload.v1.Search.AggregationAlgorithm} value
* @return {!proto.payload.v1.Search.Config} returns this
*/
proto.payload.v1.Search.Config.prototype.setAggregationAlgorithm = function(value) {
return jspb.Message.setProto3EnumField(this, 9, value);
};



/**
* List of repeated fields within this message type.
Expand Down
1 change: 1 addition & 0 deletions src/vtproto/ext_grpc_pb.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// GENERATED CODE -- NO SERVICES IN PROTO
1 change: 1 addition & 0 deletions src/vtproto/ext_grpc_pb.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// GENERATED CODE -- NO SERVICES IN PROTO
8 changes: 8 additions & 0 deletions src/vtproto/ext_pb.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// package: vtproto
// file: vtproto/ext.proto

import * as jspb from "google-protobuf";
import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb";

export const mempool: jspb.ExtensionFieldInfo<boolean>;

52 changes: 52 additions & 0 deletions src/vtproto/ext_pb.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
// source: vtproto/ext.proto
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck

var jspb = require('google-protobuf');
var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));

var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
goog.object.extend(proto, google_protobuf_descriptor_pb);
goog.exportSymbol('proto.vtproto.mempool', null, global);

/**
* A tuple of {field number, class constructor} for the extension
* field named `mempool`.
* @type {!jspb.ExtensionFieldInfo<boolean>}
*/
proto.vtproto.mempool = new jspb.ExtensionFieldInfo(
64101,
{mempool: 0},
null,
/** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
null),
0);

google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64101] = new jspb.ExtensionFieldBinaryInfo(
proto.vtproto.mempool,
jspb.BinaryReader.prototype.readBool,
jspb.BinaryWriter.prototype.writeBool,
undefined,
undefined,
false);
// This registers the extension field with the extended class, so that
// toObject() will function correctly.
google_protobuf_descriptor_pb.MessageOptions.extensions[64101] = proto.vtproto.mempool;

goog.object.extend(exports, proto.vtproto);

0 comments on commit f25b424

Please sign in to comment.