| 34 | |
| 35 | export const ScannerDataElement: MessageFns<ScannerDataElement> = { |
| 36 | encode(message: ScannerDataElement, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { |
| 37 | if (message.rank !== undefined) { |
| 38 | writer.uint32(8).int32(message.rank); |
| 39 | } |
| 40 | if (message.contract !== undefined) { |
| 41 | Contract.encode(message.contract, writer.uint32(18).fork()).join(); |
| 42 | } |
| 43 | if (message.marketName !== undefined) { |
| 44 | writer.uint32(26).string(message.marketName); |
| 45 | } |
| 46 | if (message.distance !== undefined) { |
| 47 | writer.uint32(34).string(message.distance); |
| 48 | } |
| 49 | if (message.benchmark !== undefined) { |
| 50 | writer.uint32(42).string(message.benchmark); |
| 51 | } |
| 52 | if (message.projection !== undefined) { |
| 53 | writer.uint32(50).string(message.projection); |
| 54 | } |
| 55 | if (message.comboKey !== undefined) { |
| 56 | writer.uint32(58).string(message.comboKey); |
| 57 | } |
| 58 | return writer; |
| 59 | }, |
| 60 | |
| 61 | decode(input: BinaryReader | Uint8Array, length?: number): ScannerDataElement { |
| 62 | const reader = input instanceof BinaryReader ? input : new BinaryReader(input); |