Skip to main content

Class: UpdateScheduleRequest

Represents an UpdateScheduleRequest.

Properties​

conflictToken​

conflictToken: Uint8Array

This can be the value of conflict_token from a DescribeScheduleResponse, which will cause this request to fail if the schedule has been modified between the Describe and this Update. If missing, the schedule will be updated unconditionally.


identity​

identity: string

The identity of the client who initiated this request.


memo?​

optional memo?: $Properties | null

Schedule memo to replace. If set, replaces the entire memo. Do not set this field if you do not want to update the memo. A non-null empty object will clear the memo.


namespace​

namespace: string

The namespace of the schedule to update.


requestId​

requestId: string

A unique identifier for this update request for idempotence. Typically UUIDv4.


schedule?​

optional schedule?: $Properties | null

The new schedule. The four main fields of the schedule (spec, action, policies, state) are replaced completely by the values in this message.


scheduleId​

scheduleId: string

The id of the schedule to update.


searchAttributes?​

optional searchAttributes?: $Properties | null

Schedule search attributes to be updated. Do not set this field if you do not want to update the search attributes. A non-null empty object will set the search attributes to an empty map. Note: you cannot only update the search attributes with UpdateScheduleRequest, you must also set the schedule field; otherwise, it will unset the schedule.

Methods​

toJSON()​

toJSON(): object

Converts this UpdateScheduleRequest to JSON.

Returns​

object

JSON object


create()​

Call Signature​

static create(properties?): UpdateScheduleRequest & $Shape

Creates a new UpdateScheduleRequest instance using the specified properties.

Parameters​
properties?​

$Shape

Properties to set

Returns​

UpdateScheduleRequest & $Shape

UpdateScheduleRequest instance

Call Signature​

static create(properties?): UpdateScheduleRequest

Creates a new UpdateScheduleRequest instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

UpdateScheduleRequest

UpdateScheduleRequest instance


decode()​

static decode(reader, length?): UpdateScheduleRequest & $Shape

Decodes an UpdateScheduleRequest message from the specified reader or buffer.

Parameters​

reader​

Uint8Array<ArrayBufferLike> | Reader

Reader or buffer to decode from

length?​

number

Message length if known beforehand

Returns​

UpdateScheduleRequest & $Shape

UpdateScheduleRequest

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


decodeDelimited()​

static decodeDelimited(reader): UpdateScheduleRequest & $Shape

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

Parameters​

reader​

Uint8Array<ArrayBufferLike> | Reader

Reader or buffer to decode from

Returns​

UpdateScheduleRequest & $Shape

UpdateScheduleRequest

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


encode()​

static encode(message, writer?): Writer

Encodes the specified UpdateScheduleRequest message. Does not implicitly temporal.api.workflowservice.v1.UpdateScheduleRequest.verify|verify messages.

Parameters​

message​

$Properties

UpdateScheduleRequest message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


encodeDelimited()​

static encodeDelimited(message, writer?): Writer

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

Parameters​

message​

$Properties

UpdateScheduleRequest message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


fromObject()​

static fromObject(object): UpdateScheduleRequest

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

Parameters​

object​

Plain object

Returns​

UpdateScheduleRequest

UpdateScheduleRequest


toObject()​

static toObject(message, options?): object

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

Parameters​

message​

UpdateScheduleRequest

UpdateScheduleRequest

options?​

IConversionOptions

Conversion options

Returns​

object

Plain object