You've already forked npm-core-sdk
Latest generation
This commit is contained in:
27
metadata.ts
27
metadata.ts
@@ -11,6 +11,7 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
|
||||
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
||||
import { MessageType } from "@protobuf-ts/runtime";
|
||||
import { DateTime } from "./shared";
|
||||
import { LabelByLanguage } from "./shared";
|
||||
import { EntityID } from "./shared";
|
||||
import { EventHeader } from "./shared";
|
||||
/**
|
||||
@@ -95,6 +96,14 @@ export interface MetadataPayload {
|
||||
* @generated from protobuf field: api.MetadataDisplayType ShowOnCreation = 14
|
||||
*/
|
||||
ShowOnCreation: MetadataDisplayType;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.LabelByLanguage Labels = 15
|
||||
*/
|
||||
Labels: LabelByLanguage[]; // @option language
|
||||
/**
|
||||
* @generated from protobuf field: bool IsKpi = 16
|
||||
*/
|
||||
IsKpi: boolean;
|
||||
}
|
||||
/**
|
||||
*
|
||||
@@ -311,7 +320,9 @@ class MetadataPayload$Type extends MessageType<MetadataPayload> {
|
||||
{ no: 11, name: "Typology", kind: "enum", localName: "Typology", jsonName: "Typology", T: () => ["api.MetadataType", MetadataType] },
|
||||
{ no: 12, name: "Enumeration", kind: "scalar", localName: "Enumeration", jsonName: "Enumeration", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Customizable enumeration" } } },
|
||||
{ no: 13, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => MetadataStatusStruct, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
|
||||
{ no: 14, name: "ShowOnCreation", kind: "enum", localName: "ShowOnCreation", jsonName: "ShowOnCreation", T: () => ["api.MetadataDisplayType", MetadataDisplayType] }
|
||||
{ no: 14, name: "ShowOnCreation", kind: "enum", localName: "ShowOnCreation", jsonName: "ShowOnCreation", T: () => ["api.MetadataDisplayType", MetadataDisplayType] },
|
||||
{ no: 15, name: "Labels", kind: "message", localName: "Labels", jsonName: "Labels", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LabelByLanguage, options: { "api.language": true, "api.aggKey": "LanguageCodeISO6391" } },
|
||||
{ no: 16, name: "IsKpi", kind: "scalar", localName: "IsKpi", jsonName: "IsKpi", T: 8 /*ScalarType.BOOL*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<MetadataPayload>): MetadataPayload {
|
||||
@@ -327,6 +338,8 @@ class MetadataPayload$Type extends MessageType<MetadataPayload> {
|
||||
message.Typology = 0;
|
||||
message.Enumeration = [];
|
||||
message.ShowOnCreation = 0;
|
||||
message.Labels = [];
|
||||
message.IsKpi = false;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<MetadataPayload>(this, message, value);
|
||||
return message;
|
||||
@@ -372,6 +385,12 @@ class MetadataPayload$Type extends MessageType<MetadataPayload> {
|
||||
case /* api.MetadataDisplayType ShowOnCreation */ 14:
|
||||
message.ShowOnCreation = reader.int32();
|
||||
break;
|
||||
case /* repeated api.LabelByLanguage Labels */ 15:
|
||||
message.Labels.push(LabelByLanguage.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* bool IsKpi */ 16:
|
||||
message.IsKpi = reader.bool();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -420,6 +439,12 @@ class MetadataPayload$Type extends MessageType<MetadataPayload> {
|
||||
/* api.MetadataDisplayType ShowOnCreation = 14; */
|
||||
if (message.ShowOnCreation !== 0)
|
||||
writer.tag(14, WireType.Varint).int32(message.ShowOnCreation);
|
||||
/* repeated api.LabelByLanguage Labels = 15; */
|
||||
for (let i = 0; i < message.Labels.length; i++)
|
||||
LabelByLanguage.internalBinaryWrite(message.Labels[i], writer.tag(15, WireType.LengthDelimited).fork(), options).join();
|
||||
/* bool IsKpi = 16; */
|
||||
if (message.IsKpi !== false)
|
||||
writer.tag(16, WireType.Varint).bool(message.IsKpi);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user