Skip to main content

Class: UpdateRandomSeed

coresdk.workflow_activation.UpdateRandomSeed

Update the workflow's random seed

Implements#

Constructors#

constructor#

new UpdateRandomSeed(properties?)

Constructs a new UpdateRandomSeed.

Parameters#

NameType
properties?IUpdateRandomSeed

Properties#

randomnessSeed#

randomnessSeed: Long

UpdateRandomSeed randomnessSeed.

Implementation of#

IUpdateRandomSeed.randomnessSeed

Methods#

toJSON#

toJSON(): Object

Converts this UpdateRandomSeed to JSON.

Returns#

Object

JSON object


decode#

Static decode(reader, length?): UpdateRandomSeed

Decodes an UpdateRandomSeed message from the specified reader or buffer.

throws {Error} If the payload is not a reader or valid buffer

throws {$protobuf.util.ProtocolError} If required fields are missing

Parameters#

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?number-

Returns#

UpdateRandomSeed

UpdateRandomSeed


decodeDelimited#

Static decodeDelimited(reader): UpdateRandomSeed

Decodes an UpdateRandomSeed message from the specified reader or buffer, length delimited.

throws {Error} If the payload is not a reader or valid buffer

throws {$protobuf.util.ProtocolError} If required fields are missing

Parameters#

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns#

UpdateRandomSeed

UpdateRandomSeed


encode#

Static encode(message, writer?): Writer

Encodes the specified UpdateRandomSeed message. Does not implicitly {@link coresdk.workflow_activation.UpdateRandomSeed.verify|verify} messages.

Parameters#

NameTypeDescription
messageIUpdateRandomSeedUpdateRandomSeed message or plain object to encode
writer?Writer-

Returns#

Writer

Writer


encodeDelimited#

Static encodeDelimited(message, writer?): Writer

Encodes the specified UpdateRandomSeed message, length delimited. Does not implicitly {@link coresdk.workflow_activation.UpdateRandomSeed.verify|verify} messages.

Parameters#

NameTypeDescription
messageIUpdateRandomSeedUpdateRandomSeed message or plain object to encode
writer?Writer-

Returns#

Writer

Writer


fromObject#

Static fromObject(object): UpdateRandomSeed

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

Parameters#

NameTypeDescription
objectObjectPlain object

Returns#

UpdateRandomSeed

UpdateRandomSeed


toObject#

Static toObject(message, options?): Object

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

Parameters#

NameTypeDescription
messageUpdateRandomSeedUpdateRandomSeed
options?IConversionOptions-

Returns#

Object

Plain object