You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -21,13 +21,14 @@ import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
||||
import { MessageType } from "@protobuf-ts/runtime";
|
||||
import { User } from "./user";
|
||||
import { RequestProjectHeader } from "./shared";
|
||||
import { EntityID } from "./shared";
|
||||
import { MatchFieldResult } from "./shared";
|
||||
import { MatchField } from "./shared";
|
||||
import { EntityType } from "./shared";
|
||||
import { BlockFilter } from "./shared";
|
||||
import { Claim } from "./claim";
|
||||
import { ResultHeader } from "./shared";
|
||||
import { EntityID } from "./shared";
|
||||
import { QueryEntityID } from "./shared";
|
||||
import { QueryProjectHeader } from "./shared";
|
||||
//
|
||||
// Query-server services
|
||||
@@ -41,10 +42,9 @@ export interface ClaimByIdQuery {
|
||||
*/
|
||||
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.ClaimQueryOptions Options = 3
|
||||
*/
|
||||
@@ -221,7 +221,7 @@ class ClaimByIdQuery$Type extends MessageType<ClaimByIdQuery> {
|
||||
constructor() {
|
||||
super("api.ClaimByIdQuery", [
|
||||
{ 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: () => ClaimQueryOptions },
|
||||
{ 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" });
|
||||
@@ -242,8 +242,8 @@ class ClaimByIdQuery$Type extends MessageType<ClaimByIdQuery> {
|
||||
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.ClaimQueryOptions Options */ 3:
|
||||
message.Options = ClaimQueryOptions.internalBinaryRead(reader, reader.uint32(), options, message.Options);
|
||||
@@ -266,9 +266,9 @@ class ClaimByIdQuery$Type extends MessageType<ClaimByIdQuery> {
|
||||
/* 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.ClaimQueryOptions Options = 3; */
|
||||
if (message.Options)
|
||||
ClaimQueryOptions.internalBinaryWrite(message.Options, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
|
||||
Reference in New Issue
Block a user