Skip to main content

Class: WindowsPlatform

v1.EnvironmentInfo.WindowsPlatform

Represents a WindowsPlatform.

Properties

architecture

architecture: Architecture

The architecture of the worker process.


crt

crt: Crt

The C runtime used by the worker process, if obtainable.


version

version: string

The Windows version, if obtainable.

Methods

toJSON

toJSON(): Object

Converts this WindowsPlatform to JSON.

Returns

Object

JSON object


create

create(properties?): WindowsPlatform & $Properties

Creates a new WindowsPlatform instance using the specified properties.

Parameters

NameTypeDescription
properties?$PropertiesProperties to set

Returns

WindowsPlatform & $Properties

WindowsPlatform instance

create(properties?): WindowsPlatform

Parameters

NameType
properties?$Properties

Returns

WindowsPlatform


decode

decode(reader, length?): WindowsPlatform & $Properties

Decodes a WindowsPlatform message from the specified reader or buffer.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage length if known beforehand

Returns

WindowsPlatform & $Properties

WindowsPlatform

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): WindowsPlatform & $Properties

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

WindowsPlatform & $Properties

WindowsPlatform

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 WindowsPlatform message. Does not implicitly temporal.api.worker.v1.EnvironmentInfo.WindowsPlatform.verify|verify messages.

Parameters

NameTypeDescription
message$PropertiesWindowsPlatform message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

Encodes the specified WindowsPlatform message, length delimited. Does not implicitly temporal.api.worker.v1.EnvironmentInfo.WindowsPlatform.verify|verify messages.

Parameters

NameTypeDescription
message$PropertiesWindowsPlatform message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


fromObject

fromObject(object): WindowsPlatform

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

WindowsPlatform

WindowsPlatform


toObject

toObject(message, options?): Object

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

Parameters

NameTypeDescription
messageWindowsPlatformWindowsPlatform
options?IConversionOptionsConversion options

Returns

Object

Plain object