github.com/hyperledger/burrow@v0.34.5-0.20220512172541-77f09336001d/js/proto/tendermint/consensus/wal_pb.d.ts (about) 1 // package: tendermint.consensus 2 // file: tendermint/consensus/wal.proto 3 4 /* tslint:disable */ 5 /* eslint-disable */ 6 7 import * as jspb from "google-protobuf"; 8 import * as gogoproto_gogo_pb from "../../gogoproto/gogo_pb"; 9 import * as tendermint_consensus_types_pb from "../../tendermint/consensus/types_pb"; 10 import * as tendermint_types_events_pb from "../../tendermint/types/events_pb"; 11 import * as google_protobuf_duration_pb from "google-protobuf/google/protobuf/duration_pb"; 12 import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; 13 14 export class MsgInfo extends jspb.Message { 15 16 hasMsg(): boolean; 17 clearMsg(): void; 18 getMsg(): tendermint_consensus_types_pb.Message | undefined; 19 setMsg(value?: tendermint_consensus_types_pb.Message): MsgInfo; 20 getPeerId(): string; 21 setPeerId(value: string): MsgInfo; 22 23 serializeBinary(): Uint8Array; 24 toObject(includeInstance?: boolean): MsgInfo.AsObject; 25 static toObject(includeInstance: boolean, msg: MsgInfo): MsgInfo.AsObject; 26 static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; 27 static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; 28 static serializeBinaryToWriter(message: MsgInfo, writer: jspb.BinaryWriter): void; 29 static deserializeBinary(bytes: Uint8Array): MsgInfo; 30 static deserializeBinaryFromReader(message: MsgInfo, reader: jspb.BinaryReader): MsgInfo; 31 } 32 33 export namespace MsgInfo { 34 export type AsObject = { 35 msg?: tendermint_consensus_types_pb.Message.AsObject, 36 peerId: string, 37 } 38 } 39 40 export class TimeoutInfo extends jspb.Message { 41 42 hasDuration(): boolean; 43 clearDuration(): void; 44 getDuration(): google_protobuf_duration_pb.Duration | undefined; 45 setDuration(value?: google_protobuf_duration_pb.Duration): TimeoutInfo; 46 getHeight(): number; 47 setHeight(value: number): TimeoutInfo; 48 getRound(): number; 49 setRound(value: number): TimeoutInfo; 50 getStep(): number; 51 setStep(value: number): TimeoutInfo; 52 53 serializeBinary(): Uint8Array; 54 toObject(includeInstance?: boolean): TimeoutInfo.AsObject; 55 static toObject(includeInstance: boolean, msg: TimeoutInfo): TimeoutInfo.AsObject; 56 static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; 57 static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; 58 static serializeBinaryToWriter(message: TimeoutInfo, writer: jspb.BinaryWriter): void; 59 static deserializeBinary(bytes: Uint8Array): TimeoutInfo; 60 static deserializeBinaryFromReader(message: TimeoutInfo, reader: jspb.BinaryReader): TimeoutInfo; 61 } 62 63 export namespace TimeoutInfo { 64 export type AsObject = { 65 duration?: google_protobuf_duration_pb.Duration.AsObject, 66 height: number, 67 round: number, 68 step: number, 69 } 70 } 71 72 export class EndHeight extends jspb.Message { 73 getHeight(): number; 74 setHeight(value: number): EndHeight; 75 76 serializeBinary(): Uint8Array; 77 toObject(includeInstance?: boolean): EndHeight.AsObject; 78 static toObject(includeInstance: boolean, msg: EndHeight): EndHeight.AsObject; 79 static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; 80 static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; 81 static serializeBinaryToWriter(message: EndHeight, writer: jspb.BinaryWriter): void; 82 static deserializeBinary(bytes: Uint8Array): EndHeight; 83 static deserializeBinaryFromReader(message: EndHeight, reader: jspb.BinaryReader): EndHeight; 84 } 85 86 export namespace EndHeight { 87 export type AsObject = { 88 height: number, 89 } 90 } 91 92 export class WALMessage extends jspb.Message { 93 94 hasEventDataRoundState(): boolean; 95 clearEventDataRoundState(): void; 96 getEventDataRoundState(): tendermint_types_events_pb.EventDataRoundState | undefined; 97 setEventDataRoundState(value?: tendermint_types_events_pb.EventDataRoundState): WALMessage; 98 99 hasMsgInfo(): boolean; 100 clearMsgInfo(): void; 101 getMsgInfo(): MsgInfo | undefined; 102 setMsgInfo(value?: MsgInfo): WALMessage; 103 104 hasTimeoutInfo(): boolean; 105 clearTimeoutInfo(): void; 106 getTimeoutInfo(): TimeoutInfo | undefined; 107 setTimeoutInfo(value?: TimeoutInfo): WALMessage; 108 109 hasEndHeight(): boolean; 110 clearEndHeight(): void; 111 getEndHeight(): EndHeight | undefined; 112 setEndHeight(value?: EndHeight): WALMessage; 113 114 getSumCase(): WALMessage.SumCase; 115 116 serializeBinary(): Uint8Array; 117 toObject(includeInstance?: boolean): WALMessage.AsObject; 118 static toObject(includeInstance: boolean, msg: WALMessage): WALMessage.AsObject; 119 static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; 120 static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; 121 static serializeBinaryToWriter(message: WALMessage, writer: jspb.BinaryWriter): void; 122 static deserializeBinary(bytes: Uint8Array): WALMessage; 123 static deserializeBinaryFromReader(message: WALMessage, reader: jspb.BinaryReader): WALMessage; 124 } 125 126 export namespace WALMessage { 127 export type AsObject = { 128 eventDataRoundState?: tendermint_types_events_pb.EventDataRoundState.AsObject, 129 msgInfo?: MsgInfo.AsObject, 130 timeoutInfo?: TimeoutInfo.AsObject, 131 endHeight?: EndHeight.AsObject, 132 } 133 134 export enum SumCase { 135 SUM_NOT_SET = 0, 136 EVENT_DATA_ROUND_STATE = 1, 137 MSG_INFO = 2, 138 TIMEOUT_INFO = 3, 139 END_HEIGHT = 4, 140 } 141 142 } 143 144 export class TimedWALMessage extends jspb.Message { 145 146 hasTime(): boolean; 147 clearTime(): void; 148 getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; 149 setTime(value?: google_protobuf_timestamp_pb.Timestamp): TimedWALMessage; 150 151 hasMsg(): boolean; 152 clearMsg(): void; 153 getMsg(): WALMessage | undefined; 154 setMsg(value?: WALMessage): TimedWALMessage; 155 156 serializeBinary(): Uint8Array; 157 toObject(includeInstance?: boolean): TimedWALMessage.AsObject; 158 static toObject(includeInstance: boolean, msg: TimedWALMessage): TimedWALMessage.AsObject; 159 static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; 160 static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; 161 static serializeBinaryToWriter(message: TimedWALMessage, writer: jspb.BinaryWriter): void; 162 static deserializeBinary(bytes: Uint8Array): TimedWALMessage; 163 static deserializeBinaryFromReader(message: TimedWALMessage, reader: jspb.BinaryReader): TimedWALMessage; 164 } 165 166 export namespace TimedWALMessage { 167 export type AsObject = { 168 time?: google_protobuf_timestamp_pb.Timestamp.AsObject, 169 msg?: WALMessage.AsObject, 170 } 171 }