Class: BotMemoryFact
Defined in: WAProto/index.d.ts:4102
Represents a BotMemoryFact.
Implements
Constructors
new BotMemoryFact()
new BotMemoryFact(
properties
?):BotMemoryFact
Defined in: WAProto/index.d.ts:4108
Constructs a new BotMemoryFact.
Parameters
properties?
Properties to set
Returns
Properties
fact?
optional
fact:null
|string
Defined in: WAProto/index.d.ts:4111
BotMemoryFact fact.
Implementation of
factId?
optional
factId:null
|string
Defined in: WAProto/index.d.ts:4114
BotMemoryFact factId.
Implementation of
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:4184
Converts this BotMemoryFact to JSON.
Returns
object
JSON object
create()
static
create(properties
?):BotMemoryFact
Defined in: WAProto/index.d.ts:4121
Creates a new BotMemoryFact instance using the specified properties.
Parameters
properties?
Properties to set
Returns
BotMemoryFact instance
decode()
static
decode(reader
,length
?):BotMemoryFact
Defined in: WAProto/index.d.ts:4147
Decodes a BotMemoryFact message from the specified reader or buffer.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
length?
number
Message length if known beforehand
Returns
BotMemoryFact
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
static
decodeDelimited(reader
):BotMemoryFact
Defined in: WAProto/index.d.ts:4156
Decodes a BotMemoryFact message from the specified reader or buffer, length delimited.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
Returns
BotMemoryFact
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
encode()
static
encode(message
,writer
?):Writer
Defined in: WAProto/index.d.ts:4129
Encodes the specified BotMemoryFact message. Does not implicitly verify messages.
Parameters
message
BotMemoryFact message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
static
encodeDelimited(message
,writer
?):Writer
Defined in: WAProto/index.d.ts:4137
Encodes the specified BotMemoryFact message, length delimited. Does not implicitly verify messages.
Parameters
message
BotMemoryFact message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
static
fromObject(object
):BotMemoryFact
Defined in: WAProto/index.d.ts:4170
Creates a BotMemoryFact message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
BotMemoryFact
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:4191
Gets the default type url for BotMemoryFact
Parameters
typeUrlPrefix?
string
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
string
The default type url
toObject()
static
toObject(message
,options
?):object
Defined in: WAProto/index.d.ts:4178
Creates a plain object from a BotMemoryFact message. Also converts values to other types if specified.
Parameters
message
BotMemoryFact
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:4163
Verifies a BotMemoryFact message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not