Class: BotMetricsMetadata
Defined in: WAProto/index.d.ts:5040
Represents a BotMetricsMetadata.
Implements
Constructors
new BotMetricsMetadata()
new BotMetricsMetadata(
properties
?):BotMetricsMetadata
Defined in: WAProto/index.d.ts:5046
Constructs a new BotMetricsMetadata.
Parameters
properties?
Properties to set
Returns
Properties
destinationEntryPoint?
optional
destinationEntryPoint:null
|BotMetricsEntryPoint
Defined in: WAProto/index.d.ts:5052
BotMetricsMetadata destinationEntryPoint.
Implementation of
IBotMetricsMetadata
.destinationEntryPoint
destinationId?
optional
destinationId:null
|string
Defined in: WAProto/index.d.ts:5049
BotMetricsMetadata destinationId.
Implementation of
IBotMetricsMetadata
.destinationId
threadOrigin?
optional
threadOrigin:null
|BotMetricsThreadEntryPoint
Defined in: WAProto/index.d.ts:5055
BotMetricsMetadata threadOrigin.
Implementation of
IBotMetricsMetadata
.threadOrigin
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:5125
Converts this BotMetricsMetadata to JSON.
Returns
object
JSON object
create()
static
create(properties
?):BotMetricsMetadata
Defined in: WAProto/index.d.ts:5062
Creates a new BotMetricsMetadata instance using the specified properties.
Parameters
properties?
Properties to set
Returns
BotMetricsMetadata instance
decode()
static
decode(reader
,length
?):BotMetricsMetadata
Defined in: WAProto/index.d.ts:5088
Decodes a BotMetricsMetadata 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
BotMetricsMetadata
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
static
decodeDelimited(reader
):BotMetricsMetadata
Defined in: WAProto/index.d.ts:5097
Decodes a BotMetricsMetadata message from the specified reader or buffer, length delimited.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
Returns
BotMetricsMetadata
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:5070
Encodes the specified BotMetricsMetadata message. Does not implicitly verify messages.
Parameters
message
BotMetricsMetadata 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:5078
Encodes the specified BotMetricsMetadata message, length delimited. Does not implicitly verify messages.
Parameters
message
BotMetricsMetadata message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
static
fromObject(object
):BotMetricsMetadata
Defined in: WAProto/index.d.ts:5111
Creates a BotMetricsMetadata message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
BotMetricsMetadata
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:5132
Gets the default type url for BotMetricsMetadata
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:5119
Creates a plain object from a BotMetricsMetadata message. Also converts values to other types if specified.
Parameters
message
BotMetricsMetadata
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:5104
Verifies a BotMetricsMetadata message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not