Skip to main content

Class: WindowsPlatform

v1.EnvironmentInfo.WindowsPlatform

Represents a WindowsPlatform.

Implements

Constructors

constructor

new WindowsPlatform(properties?): WindowsPlatform

Constructs a new WindowsPlatform.

Parameters

NameTypeDescription
properties?IWindowsPlatformProperties to set

Returns

WindowsPlatform

Properties

architecture

architecture: Architecture

The architecture of the worker process.

Implementation of

IWindowsPlatform.architecture


crt

crt: Crt

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

Implementation of

IWindowsPlatform.crt


version

version: string

The Windows version, if obtainable.

Implementation of

IWindowsPlatform.version

Methods

toJSON

toJSON(): Object

Converts this WindowsPlatform to JSON.

Returns

Object

JSON object


create

create(properties?): WindowsPlatform

Creates a new WindowsPlatform instance using the specified properties.

Parameters

NameTypeDescription
properties?IWindowsPlatformProperties to set

Returns

WindowsPlatform

WindowsPlatform instance


decode

decode(reader, length?): WindowsPlatform

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

WindowsPlatform

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): WindowsPlatform

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

WindowsPlatform

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
messageIWindowsPlatformWindowsPlatform 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
messageIWindowsPlatformWindowsPlatform 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


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for WindowsPlatform

Parameters

NameTypeDescription
typeUrlPrefix?stringyour custom typeUrlPrefix(default "type.googleapis.com")

Returns

string

The default type url


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