Class: Platform
Represents a Platform.
Properties
linux?
optionallinux?:$Properties|null
Platform linux.
macos?
optionalmacos?:$Properties|null
Platform macos.
variant?
optionalvariant?:"linux"|"macos"|"windows"
Platform variant.
windows?
optionalwindows?:$Properties|null
Platform windows.
Methods
toJSON()
toJSON():
object
Converts this Platform to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):Platform&$Shape
Creates a new Platform instance using the specified properties.
Parameters
properties?
Properties to set
Returns
Platform & $Shape
Platform instance
Call Signature
staticcreate(properties?):Platform
Creates a new Platform instance using the specified properties.
Parameters
properties?
Properties to set
Returns
Platform
Platform instance
decode()
staticdecode(reader,length?):Platform&$Shape
Decodes a Platform 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
Platform & $Shape
Platform
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):Platform&$Shape
Decodes a Platform message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
Platform & $Shape
Platform
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 Platform message. Does not implicitly temporal.api.worker.v1.EnvironmentInfo.Platform.verify|verify messages.
Parameters
message
Platform message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified Platform message, length delimited. Does not implicitly temporal.api.worker.v1.EnvironmentInfo.Platform.verify|verify messages.
Parameters
message
Platform message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):Platform
Creates a Platform message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
Platform
Platform
toObject()
statictoObject(message,options?):object
Creates a plain object from a Platform message. Also converts values to other types if specified.
Parameters
message
Platform
Platform
options?
IConversionOptions
Conversion options
Returns
object
Plain object