Class: Account
Represents an Account.
Properties
asyncOperationId
asyncOperationId:
string
The id of the async operation that is updating the account, if any.
id
id:
string
The id of the account.
metrics?
optionalmetrics?:$Properties|null
Information related to metrics.
resourceVersion
resourceVersion:
string
The current version of the account specification. The next update operation will have to include this version.
spec?
optionalspec?:$Properties|null
The account specification.
state
state:
ResourceState
The current state of the account.
Methods
toJSON()
toJSON():
object
Converts this Account to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):Account&$Properties
Creates a new Account instance using the specified properties.
Parameters
properties?
Properties to set
Returns
Account & $Properties
Account instance
Call Signature
staticcreate(properties?):Account
Creates a new Account instance using the specified properties.
Parameters
properties?
Properties to set
Returns
Account
Account instance
decode()
staticdecode(reader,length?):Account&$Properties
Decodes an Account 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
Account & $Properties
Account
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):Account&$Properties
Decodes an Account message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
Account & $Properties
Account
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 Account message. Does not implicitly temporal.api.cloud.account.v1.Account.verify|verify messages.
Parameters
message
Account message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified Account message, length delimited. Does not implicitly temporal.api.cloud.account.v1.Account.verify|verify messages.
Parameters
message
Account message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):Account
Creates an Account message from a plain object. Also converts values to their respective internal types.
Parameters
object
{[k: string]: any; }
Plain object
Returns
Account
Account
toObject()
statictoObject(message,options?):object
Creates a plain object from an Account message. Also converts values to other types if specified.
Parameters
message
Account
Account
options?
IConversionOptions
Conversion options
Returns
object
Plain object