You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -121,6 +121,10 @@ export interface StockByFilterResult {
|
||||
* @generated from protobuf message api.StockQueryOptions
|
||||
*/
|
||||
export interface StockQueryOptions {
|
||||
/**
|
||||
* @generated from protobuf field: repeated string Only = 1
|
||||
*/
|
||||
Only: string[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.StockByMatchQuery
|
||||
@@ -437,10 +441,13 @@ export const StockByFilterResult = new StockByFilterResult$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class StockQueryOptions$Type extends MessageType<StockQueryOptions> {
|
||||
constructor() {
|
||||
super("api.StockQueryOptions", []);
|
||||
super("api.StockQueryOptions", [
|
||||
{ no: 1, name: "Only", kind: "scalar", localName: "Only", jsonName: "Only", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional : List of fields to include in the response for each returned Stock", example: "\"[\"ID.RefID\", \"Payload.ActorID\", \"Payload.Goods.ItemID\"]\"" } } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<StockQueryOptions>): StockQueryOptions {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Only = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<StockQueryOptions>(this, message, value);
|
||||
return message;
|
||||
@@ -450,6 +457,9 @@ class StockQueryOptions$Type extends MessageType<StockQueryOptions> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated string Only */ 1:
|
||||
message.Only.push(reader.string());
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -462,6 +472,9 @@ class StockQueryOptions$Type extends MessageType<StockQueryOptions> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: StockQueryOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated string Only = 1; */
|
||||
for (let i = 0; i < message.Only.length; i++)
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Only[i]);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user