Class: CreateScheduleRequest
(-- api-linter: core::0203::optional=disabled aip.dev/not-precedent: field_behavior annotation not available in our gogo fork --)
Properties
identity
identity:
string
The identity of the client who initiated this request.
initialPatch?
optionalinitialPatch?:$Properties|null
Optional initial patch (e.g. to run the action once immediately).
memo?
optionalmemo?:$Properties|null
Memo and search attributes to attach to the schedule itself.
namespace
namespace:
string
The namespace the schedule should be created in.
requestId
requestId:
string
A unique identifier for this create request for idempotence. Typically UUIDv4.
schedule?
optionalschedule?:$Properties|null
The schedule spec, policies, action, and initial state.
scheduleId
scheduleId:
string
The id of the new schedule.
searchAttributes?
optionalsearchAttributes?:$Properties|null
CreateScheduleRequest searchAttributes.
Methods
toJSON()
toJSON():
object
Converts this CreateScheduleRequest to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):CreateScheduleRequest&$Shape
Creates a new CreateScheduleRequest instance using the specified properties.
Parameters
properties?
Properties to set
Returns
CreateScheduleRequest & $Shape
CreateScheduleRequest instance
Call Signature
staticcreate(properties?):CreateScheduleRequest
Creates a new CreateScheduleRequest instance using the specified properties.
Parameters
properties?
Properties to set
Returns
CreateScheduleRequest
CreateScheduleRequest instance
decode()
staticdecode(reader,length?):CreateScheduleRequest&$Shape
Decodes a CreateScheduleRequest 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
CreateScheduleRequest & $Shape
CreateScheduleRequest
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):CreateScheduleRequest&$Shape
Decodes a CreateScheduleRequest message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
CreateScheduleRequest & $Shape
CreateScheduleRequest
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
encode()
staticencode(message,writer?):Writer
Encodes the specified CreateScheduleRequest message. Does not implicitly temporal.api.workflowservice.v1.CreateScheduleRequest.verify|verify messages.
Parameters
message
CreateScheduleRequest message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified CreateScheduleRequest message, length delimited. Does not implicitly temporal.api.workflowservice.v1.CreateScheduleRequest.verify|verify messages.
Parameters
message
CreateScheduleRequest message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):CreateScheduleRequest
Creates a CreateScheduleRequest message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
CreateScheduleRequest
CreateScheduleRequest
toObject()
statictoObject(message,options?):object
Creates a plain object from a CreateScheduleRequest message. Also converts values to other types if specified.
Parameters
message
CreateScheduleRequest
CreateScheduleRequest
options?
IConversionOptions
Conversion options
Returns
object
Plain object