Class: WindowsPlatform
v1.EnvironmentInfo.WindowsPlatform
Represents a WindowsPlatform.
Implements
Constructors
constructor
• new WindowsPlatform(properties?): WindowsPlatform
Constructs a new WindowsPlatform.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | IWindowsPlatform | Properties to set |
Returns
Properties
architecture
• architecture: Architecture
The architecture of the worker process.
Implementation of
crt
• crt: Crt
The C runtime used by the worker process, if obtainable.
Implementation of
version
• version: string
The Windows version, if obtainable.
Implementation of
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
| Name | Type | Description |
|---|---|---|
properties? | IWindowsPlatform | Properties to set |
Returns
WindowsPlatform instance
decode
▸ decode(reader, length?): WindowsPlatform
Decodes a WindowsPlatform 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
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
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
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
| Name | Type | Description |
|---|---|---|
message | IWindowsPlatform | WindowsPlatform message or plain object to encode |
writer? | Writer | Writer 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
| Name | Type | Description |
|---|---|---|
message | IWindowsPlatform | WindowsPlatform message or plain object to encode |
writer? | Writer | Writer 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
| Name | Type | Description |
|---|---|---|
object | Object | Plain object |
Returns
WindowsPlatform
getTypeUrl
▸ getTypeUrl(typeUrlPrefix?): string
Gets the default type url for WindowsPlatform
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 WindowsPlatform message. Also converts values to other types if specified.
Parameters
| Name | Type | Description |
|---|---|---|
message | WindowsPlatform | WindowsPlatform |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object