Class: Platform
v1.EnvironmentInfo.Platform
Represents a Platform.
Implements
Constructors
constructor
• new Platform(properties?): Platform
Constructs a new Platform.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | IPlatform | Properties to set |
Returns
Properties
linux
• Optional linux: null | ILinuxPlatform
Platform linux.
Implementation of
macos
• Optional macos: null | IMacOSPlatform
Platform macos.
Implementation of
variant
• Optional variant: "linux" | "macos" | "windows"
Platform variant.
windows
• Optional windows: null | IWindowsPlatform
Platform windows.
Implementation of
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
| Name | Type | Description |
|---|---|---|
properties? | IPlatform | Properties to set |
Returns
Platform instance
decode
▸ decode(reader, length?): Platform
Decodes a Platform message from the specified reader or buffer.
Parameters
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
length? | number | Message length if known beforehand |
Returns
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
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
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
| Name | Type | Description |
|---|---|---|
message | IPlatform | Platform message or plain object to encode |
writer? | Writer | Writer 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
| Name | Type | Description |
|---|---|---|
message | IPlatform | Platform message or plain object to encode |
writer? | Writer | Writer 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
| Name | Type | Description |
|---|---|---|
object | Object | Plain object |
Returns
Platform
getTypeUrl
▸ getTypeUrl(typeUrlPrefix?): string
Gets the default type url for Platform
Parameters
| Name | Type | Description |
|---|---|---|
typeUrlPrefix? | string | your 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
| Name | Type | Description |
|---|---|---|
message | Platform | Platform |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object