// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix // @generated from protobuf file "claim.proto" (package "api", syntax proto3) // tslint:disable import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; import type { IBinaryWriter } from "@protobuf-ts/runtime"; import { WireType } from "@protobuf-ts/runtime"; import type { BinaryReadOptions } from "@protobuf-ts/runtime"; import type { IBinaryReader } from "@protobuf-ts/runtime"; import { UnknownFieldHandler } from "@protobuf-ts/runtime"; import type { PartialMessage } from "@protobuf-ts/runtime"; import { reflectionMergePartial } from "@protobuf-ts/runtime"; import { MessageType } from "@protobuf-ts/runtime"; import { MetadataElement } from "./shared"; import { ClaimEntityType } from "./shared"; import { ClaimSector } from "./shared"; import { Amount } from "./shared"; import { AttachmentSummary } from "./shared"; import { ClaimClosure } from "./shared"; import { ClaimStatusStruct } from "./collabShared"; import { ClaimCriticality } from "./shared"; import { EntityID } from "./shared"; import { EventHeader } from "./shared"; /** * * Aggregation object message * * @generated from protobuf message api.Claim */ export interface Claim { /** * @generated from protobuf field: api.EventHeader LastEventHeader = 1 */ LastEventHeader?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.ClaimPayload Payload = 3 */ Payload?: ClaimPayload; } /** * @generated from protobuf message api.ClaimPayload */ export interface ClaimPayload { /** * Identifier of the claim type * * @generated from protobuf field: string ClaimTypeID = 1 */ ClaimTypeID: string; /** * Identifier of the targetted entity * * @generated from protobuf field: string EntityID = 2 */ EntityID: string; /** * Criticality of the claim * * @generated from protobuf field: api.ClaimCriticality Criticality = 3 */ Criticality: ClaimCriticality; /** * Status of the claim * * @generated from protobuf field: api.ClaimStatusStruct Status = 4 */ Status?: ClaimStatusStruct; /** * Creation date of the claim * * @generated from protobuf field: string CreationDate = 6 */ CreationDate: string; /** * Contacts assigned on the claim * * @generated from protobuf field: repeated string Assignees = 7 */ Assignees: string[]; /** * Contacts assigned removed from the claim * * @generated from protobuf field: repeated string RemovedAssignees = 16 */ RemovedAssignees: string[]; /** * Contacts assigned added from the claim * * @generated from protobuf field: repeated string AddedAssignees = 17 */ AddedAssignees: string[]; /** * End comment of the claim * * @generated from protobuf field: string EndComment = 8 */ EndComment: string; /** * Closure responsible and causes of the claim * * @generated from protobuf field: api.ClaimClosure Closure = 9 */ Closure?: ClaimClosure; /** * @generated from protobuf field: repeated api.AttachmentSummary Attachments = 10 */ Attachments: AttachmentSummary[]; /** * @generated from protobuf field: int32 AttachmentNumber = 11 */ AttachmentNumber: number; /** * @generated from protobuf field: api.Amount Amount = 12 */ Amount?: Amount; /** * @generated from protobuf field: string Reason = 13 */ Reason: string; /** * @generated from protobuf field: string ReasonCode = 18 */ ReasonCode: string; // Code for the reason of the claim. It should be unique for the project. /** * @generated from protobuf field: api.ClaimSector Sector = 14 */ Sector: ClaimSector; /** * @generated from protobuf field: api.ClaimEntityType EntityType = 15 */ EntityType: ClaimEntityType; /** * Metadata are characteristics specific to the project. They can be of several data form (string, integer, float, boolean or timestamp) * * @generated from protobuf field: repeated api.MetadataElement MetaData = 19 */ MetaData: MetadataElement[]; /** * Title of the claim * * @generated from protobuf field: string Title = 20 */ Title: string; /** * Identifier to display, because it may differ from the EntityID * * @generated from protobuf field: string DisplayID = 21 */ DisplayID: string; /** * @generated from protobuf field: string Message = 22 */ Message: string; } /** * @generated from protobuf message api.ClaimTriplet */ export interface ClaimTriplet { /** * @generated from protobuf field: api.Claim Current = 1 */ Current?: Claim; /** * @generated from protobuf field: api.Claim Previous = 2 */ Previous?: Claim; /** * @generated from protobuf field: api.Claim LastEvent = 3 */ LastEvent?: Claim; } // @generated message type with reflection information, may provide speed optimized methods class Claim$Type extends MessageType { constructor() { super("api.Claim", [ { no: 1, name: "LastEventHeader", kind: "message", localName: "LastEventHeader", jsonName: "LastEventHeader", T: () => EventHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }, { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimPayload } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Aggregation object message" } } }); } create(value?: PartialMessage): Claim { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Claim): Claim { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.EventHeader LastEventHeader */ 1: message.LastEventHeader = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.LastEventHeader); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.ClaimPayload Payload */ 3: message.Payload = ClaimPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload); break; default: let u = options.readUnknownField; if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); let d = reader.skip(wireType); if (u !== false) (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); } } return message; } internalBinaryWrite(message: Claim, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader LastEventHeader = 1; */ if (message.LastEventHeader) EventHeader.internalBinaryWrite(message.LastEventHeader, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.ClaimPayload Payload = 3; */ if (message.Payload) ClaimPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.Claim */ export const Claim = new Claim$Type(); // @generated message type with reflection information, may provide speed optimized methods class ClaimPayload$Type extends MessageType { constructor() { super("api.ClaimPayload", [ { no: 1, name: "ClaimTypeID", kind: "scalar", localName: "ClaimTypeID", jsonName: "ClaimTypeID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the claim type" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 2, name: "EntityID", kind: "scalar", localName: "EntityID", jsonName: "EntityID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the targetted entity" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 3, name: "Criticality", kind: "enum", localName: "Criticality", jsonName: "Criticality", T: () => ["api.ClaimCriticality", ClaimCriticality], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Criticality of the claim" }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } }, { no: 4, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => ClaimStatusStruct, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status of the claim" }, "api.aggSkip": "StatusUpdated" } }, { no: 6, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, { no: 7, name: "Assignees", kind: "scalar", localName: "Assignees", jsonName: "Assignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Contacts assigned on the claims" }, "api.aggSkip": "AssigneesAdded", "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "user" }] } } }, { no: 16, name: "RemovedAssignees", kind: "scalar", localName: "RemovedAssignees", jsonName: "RemovedAssignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.aggSkip": "AssigneesRemoved", "api.viewType": { Types: [{ Context: "*", Type: "user" }] } } }, { no: 17, name: "AddedAssignees", kind: "scalar", localName: "AddedAssignees", jsonName: "AddedAssignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, { no: 8, name: "EndComment", kind: "scalar", localName: "EndComment", jsonName: "EndComment", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "End comment of the claim" } } }, { no: 9, name: "Closure", kind: "message", localName: "Closure", jsonName: "Closure", T: () => ClaimClosure, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Closure responsible and causes of the claim" } } }, { no: 10, name: "Attachments", kind: "message", localName: "Attachments", jsonName: "Attachments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AttachmentSummary, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of attachments per type" }, "api.aggSkip": "AttachmentAdded,AttachmentRemoved" } }, { no: 11, name: "AttachmentNumber", kind: "scalar", localName: "AttachmentNumber", jsonName: "AttachmentNumber", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Total number of attachments" } } }, { no: 12, name: "Amount", kind: "message", localName: "Amount", jsonName: "Amount", T: () => Amount, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Amount value of the claim" } } }, { no: 13, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", maxLen: "255" } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } }, { no: 18, name: "ReasonCode", kind: "scalar", localName: "ReasonCode", jsonName: "ReasonCode", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+$" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } }, { no: 14, name: "Sector", kind: "enum", localName: "Sector", jsonName: "Sector", T: () => ["api.ClaimSector", ClaimSector], options: { "validate.rules": { enum: { definedOnly: true } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } }, { no: 15, name: "EntityType", kind: "enum", localName: "EntityType", jsonName: "EntityType", T: () => ["api.ClaimEntityType", ClaimEntityType], options: { "validate.rules": { enum: { definedOnly: true } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } }, { no: 19, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the project. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key", "api.parentEntity": "Claim" } }, { no: 20, name: "Title", kind: "scalar", localName: "Title", jsonName: "Title", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Title of the claim" } } }, { no: 21, name: "DisplayID", kind: "scalar", localName: "DisplayID", jsonName: "DisplayID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier to display, because it may differ from the EntityID" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 22, name: "Message", kind: "scalar", localName: "Message", jsonName: "Message", T: 9 /*ScalarType.STRING*/, options: { "api.aggSkip": "MessageSent" } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ClaimTypeID", "EntityID", "Criticality", "Status"] } } }); } create(value?: PartialMessage): ClaimPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.ClaimTypeID = ""; message.EntityID = ""; message.Criticality = 0; message.CreationDate = ""; message.Assignees = []; message.RemovedAssignees = []; message.AddedAssignees = []; message.EndComment = ""; message.Attachments = []; message.AttachmentNumber = 0; message.Reason = ""; message.ReasonCode = ""; message.Sector = 0; message.EntityType = 0; message.MetaData = []; message.Title = ""; message.DisplayID = ""; message.Message = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClaimPayload): ClaimPayload { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string ClaimTypeID */ 1: message.ClaimTypeID = reader.string(); break; case /* string EntityID */ 2: message.EntityID = reader.string(); break; case /* api.ClaimCriticality Criticality */ 3: message.Criticality = reader.int32(); break; case /* api.ClaimStatusStruct Status */ 4: message.Status = ClaimStatusStruct.internalBinaryRead(reader, reader.uint32(), options, message.Status); break; case /* string CreationDate */ 6: message.CreationDate = reader.string(); break; case /* repeated string Assignees */ 7: message.Assignees.push(reader.string()); break; case /* repeated string RemovedAssignees */ 16: message.RemovedAssignees.push(reader.string()); break; case /* repeated string AddedAssignees */ 17: message.AddedAssignees.push(reader.string()); break; case /* string EndComment */ 8: message.EndComment = reader.string(); break; case /* api.ClaimClosure Closure */ 9: message.Closure = ClaimClosure.internalBinaryRead(reader, reader.uint32(), options, message.Closure); break; case /* repeated api.AttachmentSummary Attachments */ 10: message.Attachments.push(AttachmentSummary.internalBinaryRead(reader, reader.uint32(), options)); break; case /* int32 AttachmentNumber */ 11: message.AttachmentNumber = reader.int32(); break; case /* api.Amount Amount */ 12: message.Amount = Amount.internalBinaryRead(reader, reader.uint32(), options, message.Amount); break; case /* string Reason */ 13: message.Reason = reader.string(); break; case /* string ReasonCode */ 18: message.ReasonCode = reader.string(); break; case /* api.ClaimSector Sector */ 14: message.Sector = reader.int32(); break; case /* api.ClaimEntityType EntityType */ 15: message.EntityType = reader.int32(); break; case /* repeated api.MetadataElement MetaData */ 19: message.MetaData.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options)); break; case /* string Title */ 20: message.Title = reader.string(); break; case /* string DisplayID */ 21: message.DisplayID = reader.string(); break; case /* string Message */ 22: message.Message = reader.string(); break; default: let u = options.readUnknownField; if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); let d = reader.skip(wireType); if (u !== false) (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); } } return message; } internalBinaryWrite(message: ClaimPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string ClaimTypeID = 1; */ if (message.ClaimTypeID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ClaimTypeID); /* string EntityID = 2; */ if (message.EntityID !== "") writer.tag(2, WireType.LengthDelimited).string(message.EntityID); /* api.ClaimCriticality Criticality = 3; */ if (message.Criticality !== 0) writer.tag(3, WireType.Varint).int32(message.Criticality); /* api.ClaimStatusStruct Status = 4; */ if (message.Status) ClaimStatusStruct.internalBinaryWrite(message.Status, writer.tag(4, WireType.LengthDelimited).fork(), options).join(); /* string CreationDate = 6; */ if (message.CreationDate !== "") writer.tag(6, WireType.LengthDelimited).string(message.CreationDate); /* repeated string Assignees = 7; */ for (let i = 0; i < message.Assignees.length; i++) writer.tag(7, WireType.LengthDelimited).string(message.Assignees[i]); /* string EndComment = 8; */ if (message.EndComment !== "") writer.tag(8, WireType.LengthDelimited).string(message.EndComment); /* api.ClaimClosure Closure = 9; */ if (message.Closure) ClaimClosure.internalBinaryWrite(message.Closure, writer.tag(9, WireType.LengthDelimited).fork(), options).join(); /* repeated api.AttachmentSummary Attachments = 10; */ for (let i = 0; i < message.Attachments.length; i++) AttachmentSummary.internalBinaryWrite(message.Attachments[i], writer.tag(10, WireType.LengthDelimited).fork(), options).join(); /* int32 AttachmentNumber = 11; */ if (message.AttachmentNumber !== 0) writer.tag(11, WireType.Varint).int32(message.AttachmentNumber); /* api.Amount Amount = 12; */ if (message.Amount) Amount.internalBinaryWrite(message.Amount, writer.tag(12, WireType.LengthDelimited).fork(), options).join(); /* string Reason = 13; */ if (message.Reason !== "") writer.tag(13, WireType.LengthDelimited).string(message.Reason); /* api.ClaimSector Sector = 14; */ if (message.Sector !== 0) writer.tag(14, WireType.Varint).int32(message.Sector); /* api.ClaimEntityType EntityType = 15; */ if (message.EntityType !== 0) writer.tag(15, WireType.Varint).int32(message.EntityType); /* repeated string RemovedAssignees = 16; */ for (let i = 0; i < message.RemovedAssignees.length; i++) writer.tag(16, WireType.LengthDelimited).string(message.RemovedAssignees[i]); /* repeated string AddedAssignees = 17; */ for (let i = 0; i < message.AddedAssignees.length; i++) writer.tag(17, WireType.LengthDelimited).string(message.AddedAssignees[i]); /* string ReasonCode = 18; */ if (message.ReasonCode !== "") writer.tag(18, WireType.LengthDelimited).string(message.ReasonCode); /* repeated api.MetadataElement MetaData = 19; */ for (let i = 0; i < message.MetaData.length; i++) MetadataElement.internalBinaryWrite(message.MetaData[i], writer.tag(19, WireType.LengthDelimited).fork(), options).join(); /* string Title = 20; */ if (message.Title !== "") writer.tag(20, WireType.LengthDelimited).string(message.Title); /* string DisplayID = 21; */ if (message.DisplayID !== "") writer.tag(21, WireType.LengthDelimited).string(message.DisplayID); /* string Message = 22; */ if (message.Message !== "") writer.tag(22, WireType.LengthDelimited).string(message.Message); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.ClaimPayload */ export const ClaimPayload = new ClaimPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class ClaimTriplet$Type extends MessageType { constructor() { super("api.ClaimTriplet", [ { no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => Claim }, { no: 2, name: "Previous", kind: "message", localName: "Previous", jsonName: "Previous", T: () => Claim }, { no: 3, name: "LastEvent", kind: "message", localName: "LastEvent", jsonName: "LastEvent", T: () => Claim } ]); } create(value?: PartialMessage): ClaimTriplet { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClaimTriplet): ClaimTriplet { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.Claim Current */ 1: message.Current = Claim.internalBinaryRead(reader, reader.uint32(), options, message.Current); break; case /* api.Claim Previous */ 2: message.Previous = Claim.internalBinaryRead(reader, reader.uint32(), options, message.Previous); break; case /* api.Claim LastEvent */ 3: message.LastEvent = Claim.internalBinaryRead(reader, reader.uint32(), options, message.LastEvent); break; default: let u = options.readUnknownField; if (u === "throw") throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); let d = reader.skip(wireType); if (u !== false) (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); } } return message; } internalBinaryWrite(message: ClaimTriplet, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.Claim Current = 1; */ if (message.Current) Claim.internalBinaryWrite(message.Current, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.Claim Previous = 2; */ if (message.Previous) Claim.internalBinaryWrite(message.Previous, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.Claim LastEvent = 3; */ if (message.LastEvent) Claim.internalBinaryWrite(message.LastEvent, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.ClaimTriplet */ export const ClaimTriplet = new ClaimTriplet$Type();