Skip to main content

Class: Platform

v1.EnvironmentInfo.Platform

Represents a Platform.

Implements

Constructors

constructor

new Platform(properties?): Platform

Constructs a new Platform.

Parameters

NameTypeDescription
properties?IPlatformProperties to set

Returns

Platform

Properties

linux

Optional linux: null | ILinuxPlatform

Platform linux.

Implementation of

IPlatform.linux


macos

Optional macos: null | IMacOSPlatform

Platform macos.

Implementation of

IPlatform.macos


variant

Optional variant: "linux" | "macos" | "windows"

Platform variant.


windows

Optional windows: null | IWindowsPlatform

Platform windows.

Implementation of

IPlatform.windows

Methods

toJSON

toJSON(): Object

Converts this Platform to JSON.

Returns

Object

JSON object


create

create(properties?): Platform

Creates a new Platform instance using the specified properties.

Parameters

NameTypeDescription
properties?IPlatformProperties to set

Returns

Platform

Platform instance


decode

decode(reader, length?): Platform

Decodes a Platform message from the specified reader or buffer.

Parameters

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

Returns

Platform

Platform

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): Platform

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

Platform

Platform

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

Parameters

NameTypeDescription
messageIPlatformPlatform message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

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

Parameters

NameTypeDescription
messageIPlatformPlatform message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


fromObject

fromObject(object): Platform

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

Platform

Platform


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for Platform

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 Platform message. Also converts values to other types if specified.

Parameters

NameTypeDescription
messagePlatformPlatform
options?IConversionOptionsConversion options

Returns

Object

Plain object