Class: MacOSPlatform
Represents a MacOSPlatform.
Properties
architecture
architecture:
Architecture
The architecture of the worker process.
version
version:
string
The macOS version, if obtainable.
Methods
toJSON()
toJSON():
object
Converts this MacOSPlatform to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):MacOSPlatform&$Properties
Creates a new MacOSPlatform instance using the specified properties.
Parameters
properties?
Properties to set
Returns
MacOSPlatform & $Properties
MacOSPlatform instance
Call Signature
staticcreate(properties?):MacOSPlatform
Creates a new MacOSPlatform instance using the specified properties.
Parameters
properties?
Properties to set
Returns
MacOSPlatform
MacOSPlatform instance
decode()
staticdecode(reader,length?):MacOSPlatform&$Properties
Decodes a MacOSPlatform 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
MacOSPlatform & $Properties
MacOSPlatform
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):MacOSPlatform&$Properties
Decodes a MacOSPlatform message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
MacOSPlatform & $Properties
MacOSPlatform
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 MacOSPlatform message. Does not implicitly temporal.api.worker.v1.EnvironmentInfo.MacOSPlatform.verify|verify messages.
Parameters
message
MacOSPlatform message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified MacOSPlatform message, length delimited. Does not implicitly temporal.api.worker.v1.EnvironmentInfo.MacOSPlatform.verify|verify messages.
Parameters
message
MacOSPlatform message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):MacOSPlatform
Creates a MacOSPlatform message from a plain object. Also converts values to their respective internal types.
Parameters
object
{[k: string]: any; }
Plain object
Returns
MacOSPlatform
MacOSPlatform
toObject()
statictoObject(message,options?):object
Creates a plain object from a MacOSPlatform message. Also converts values to other types if specified.
Parameters
message
MacOSPlatform
MacOSPlatform
options?
IConversionOptions
Conversion options
Returns
object
Plain object