Skip to main content

Class: History

history.v1.History

Represents a History.

Properties​

events​

• events: $Properties[]

History events.

Methods​

toJSON​

▸ toJSON(): Object

Converts this History to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): History & $Shape

Creates a new History instance using the specified properties.

Parameters​

NameTypeDescription
properties?$ShapeProperties to set

Returns​

History & $Shape

History instance

▸ create(properties?): History

Parameters​

NameType
properties?$Properties

Returns​

History


decode​

▸ decode(reader, length?): History & $Shape

Decodes a History message from the specified reader or buffer.

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage length if known beforehand

Returns​

History & $Shape

History

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): History & $Shape

Decodes a History message from the specified reader or buffer, length delimited.

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

History & $Shape

History

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


encode​

▸ encode(message, writer?): Writer

Encodes the specified History message. Does not implicitly temporal.api.history.v1.History.verify|verify messages.

Parameters​

NameTypeDescription
message$PropertiesHistory message or plain object to encode
writer?WriterWriter to encode to

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

Encodes the specified History message, length delimited. Does not implicitly temporal.api.history.v1.History.verify|verify messages.

Parameters​

NameTypeDescription
message$PropertiesHistory message or plain object to encode
writer?WriterWriter to encode to

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): History

Creates a History message from a plain object. Also converts values to their respective internal types.

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

History

History


toObject​

▸ toObject(message, options?): Object

Creates a plain object from a History message. Also converts values to other types if specified.

Parameters​

NameTypeDescription
messageHistoryHistory
options?IConversionOptionsConversion options

Returns​

Object

Plain object