You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -28,7 +28,7 @@ import { EntityType } from "./shared";
|
||||
import { BlockFilter } from "./shared";
|
||||
import { Stock } from "./stock";
|
||||
import { ResultHeader } from "./shared";
|
||||
import { EntityID } from "./shared";
|
||||
import { QueryEntityID } from "./shared";
|
||||
import { QueryProjectHeader } from "./shared";
|
||||
//
|
||||
// Query-server services
|
||||
@@ -42,10 +42,9 @@ export interface StockByIdQuery {
|
||||
*/
|
||||
Header?: QueryProjectHeader;
|
||||
/**
|
||||
* @deprecated
|
||||
* @generated from protobuf field: repeated api.EntityID IDs = 2 [deprecated = true]
|
||||
* @generated from protobuf field: repeated api.QueryEntityID IDs = 2
|
||||
*/
|
||||
IDs: EntityID[];
|
||||
IDs: QueryEntityID[];
|
||||
/**
|
||||
* @generated from protobuf field: api.StockQueryOptions Options = 3
|
||||
*/
|
||||
@@ -178,7 +177,7 @@ class StockByIdQuery$Type extends MessageType<StockByIdQuery> {
|
||||
constructor() {
|
||||
super("api.StockByIdQuery", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EntityID },
|
||||
{ no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QueryEntityID, options: { "validate.rules": { repeated: { minItems: "1" } } } },
|
||||
{ no: 3, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => StockQueryOptions },
|
||||
{ no: 4, name: "RefIDs", kind: "scalar", localName: "RefIDs", jsonName: "RefIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "IDs"] } }, "api.messageType": "Query" });
|
||||
@@ -199,8 +198,8 @@ class StockByIdQuery$Type extends MessageType<StockByIdQuery> {
|
||||
case /* api.QueryProjectHeader Header */ 1:
|
||||
message.Header = QueryProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* repeated api.EntityID IDs = 2 [deprecated = true] */ 2:
|
||||
message.IDs.push(EntityID.internalBinaryRead(reader, reader.uint32(), options));
|
||||
case /* repeated api.QueryEntityID IDs */ 2:
|
||||
message.IDs.push(QueryEntityID.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* api.StockQueryOptions Options */ 3:
|
||||
message.Options = StockQueryOptions.internalBinaryRead(reader, reader.uint32(), options, message.Options);
|
||||
@@ -223,9 +222,9 @@ class StockByIdQuery$Type extends MessageType<StockByIdQuery> {
|
||||
/* api.QueryProjectHeader Header = 1; */
|
||||
if (message.Header)
|
||||
QueryProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.EntityID IDs = 2 [deprecated = true]; */
|
||||
/* repeated api.QueryEntityID IDs = 2; */
|
||||
for (let i = 0; i < message.IDs.length; i++)
|
||||
EntityID.internalBinaryWrite(message.IDs[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
QueryEntityID.internalBinaryWrite(message.IDs[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.StockQueryOptions Options = 3; */
|
||||
if (message.Options)
|
||||
StockQueryOptions.internalBinaryWrite(message.Options, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
|
||||
Reference in New Issue
Block a user