Class: HostingEnvironment
Represents a HostingEnvironment.
Properties
type
type:
HostingEnvironmentType
The type of hosting environment.
version
version:
string
The version of the hosting environment, if obtainable.
Methods
toJSON()
toJSON():
object
Converts this HostingEnvironment to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):HostingEnvironment&$Properties
Creates a new HostingEnvironment instance using the specified properties.
Parameters
properties?
Properties to set
Returns
HostingEnvironment & $Properties
HostingEnvironment instance
Call Signature
staticcreate(properties?):HostingEnvironment
Creates a new HostingEnvironment instance using the specified properties.
Parameters
properties?
Properties to set
Returns
HostingEnvironment
HostingEnvironment instance
decode()
staticdecode(reader,length?):HostingEnvironment&$Properties
Decodes a HostingEnvironment message from the specified reader or buffer.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
length?
number
Message length if known beforehand
Returns
HostingEnvironment & $Properties
HostingEnvironment
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):HostingEnvironment&$Properties
Decodes a HostingEnvironment message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
HostingEnvironment & $Properties
HostingEnvironment
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
encode()
staticencode(message,writer?):Writer
Encodes the specified HostingEnvironment message. Does not implicitly temporal.api.worker.v1.EnvironmentInfo.HostingEnvironment.verify|verify messages.
Parameters
message
HostingEnvironment message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified HostingEnvironment message, length delimited. Does not implicitly temporal.api.worker.v1.EnvironmentInfo.HostingEnvironment.verify|verify messages.