Skip to main content

Class: Schedule

schedule.v1.Schedule

Represents a Schedule.

Implements

Constructors

constructor

new Schedule(properties?): Schedule

Constructs a new Schedule.

Parameters

NameTypeDescription
properties?IScheduleProperties to set

Returns

Schedule

Properties

action

Optional action: null | IScheduleAction

Schedule action.

Implementation of

ISchedule.action


policies

Optional policies: null | ISchedulePolicies

Schedule policies.

Implementation of

ISchedule.policies


spec

Optional spec: null | IScheduleSpec

Schedule spec.

Implementation of

ISchedule.spec


state

Optional state: null | IScheduleState

Schedule state.

Implementation of

ISchedule.state

Methods

toJSON

toJSON(): Object

Converts this Schedule to JSON.

Returns

Object

JSON object


create

create(properties?): Schedule

Creates a new Schedule instance using the specified properties.

Parameters

NameTypeDescription
properties?IScheduleProperties to set

Returns

Schedule

Schedule instance


decode

decode(reader, length?): Schedule

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

Schedule

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): Schedule

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

Schedule

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
messageIScheduleSchedule 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
messageIScheduleSchedule 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


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for Schedule

Parameters

NameTypeDescription
typeUrlPrefix?stringyour custom typeUrlPrefix(default "type.googleapis.com")

Returns

string

The default type url


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