Skip to main content

Class: Schedule

schedule.v1.Schedule

Represents a Schedule.

Properties

action

Optional action: null | $Properties

Schedule action.


policies

Optional policies: null | $Properties

Schedule policies.


spec

Optional spec: null | $Properties

Schedule spec.


state

Optional state: null | $Properties

Schedule state.

Methods

toJSON

toJSON(): Object

Converts this Schedule to JSON.

Returns

Object

JSON object


create

create(properties?): Schedule & $Shape

Creates a new Schedule instance using the specified properties.

Parameters

NameTypeDescription
properties?$ShapeProperties to set

Returns

Schedule & $Shape

Schedule instance

create(properties?): Schedule

Parameters

NameType
properties?$Properties

Returns

Schedule


decode

decode(reader, length?): Schedule & $Shape

Decodes a Schedule message from the specified reader or buffer.

Parameters

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

Returns

Schedule & $Shape

Schedule

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): Schedule & $Shape

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

Schedule & $Shape

Schedule

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 Schedule message. Does not implicitly temporal.api.schedule.v1.Schedule.verify|verify messages.

Parameters

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

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

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

Parameters

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

Returns

Writer

Writer


fromObject

fromObject(object): Schedule

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

Schedule

Schedule


toObject

toObject(message, options?): Object

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

Parameters

NameTypeDescription
messageScheduleSchedule
options?IConversionOptionsConversion options

Returns

Object

Plain object