You've already forked npm-core-sdk
Latest generation
This commit is contained in:
14
itemQuery.ts
14
itemQuery.ts
@@ -45,10 +45,6 @@ export interface ItemByIdQuery {
|
||||
* @generated from protobuf field: api.ItemQueryOptions Options = 3
|
||||
*/
|
||||
Options?: ItemQueryOptions;
|
||||
/**
|
||||
* @generated from protobuf field: repeated string RefIDs = 4
|
||||
*/
|
||||
RefIDs: string[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ItemByIdResult
|
||||
@@ -206,14 +202,12 @@ class ItemByIdQuery$Type extends MessageType<ItemByIdQuery> {
|
||||
super("api.ItemByIdQuery", [
|
||||
{ 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: () => QueryEntityID, options: { "validate.rules": { repeated: { minItems: "1" } } } },
|
||||
{ no: 3, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => ItemQueryOptions },
|
||||
{ no: 4, name: "RefIDs", kind: "scalar", localName: "RefIDs", jsonName: "RefIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 3, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => ItemQueryOptions }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "IDs"] } }, "api.messageType": "Query" });
|
||||
}
|
||||
create(value?: PartialMessage<ItemByIdQuery>): ItemByIdQuery {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.IDs = [];
|
||||
message.RefIDs = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ItemByIdQuery>(this, message, value);
|
||||
return message;
|
||||
@@ -232,9 +226,6 @@ class ItemByIdQuery$Type extends MessageType<ItemByIdQuery> {
|
||||
case /* api.ItemQueryOptions Options */ 3:
|
||||
message.Options = ItemQueryOptions.internalBinaryRead(reader, reader.uint32(), options, message.Options);
|
||||
break;
|
||||
case /* repeated string RefIDs */ 4:
|
||||
message.RefIDs.push(reader.string());
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -256,9 +247,6 @@ class ItemByIdQuery$Type extends MessageType<ItemByIdQuery> {
|
||||
/* api.ItemQueryOptions Options = 3; */
|
||||
if (message.Options)
|
||||
ItemQueryOptions.internalBinaryWrite(message.Options, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated string RefIDs = 4; */
|
||||
for (let i = 0; i < message.RefIDs.length; i++)
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.RefIDs[i]);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user