Class: Citation
Defined in: WAProto/index.d.ts:7443
Represents a Citation.
Implements
Constructors
new Citation()
new Citation(
properties
?):Citation
Defined in: WAProto/index.d.ts:7449
Constructs a new Citation.
Parameters
properties?
Properties to set
Returns
Properties
cmsId
cmsId:
string
Defined in: WAProto/index.d.ts:7458
Citation cmsId.
Implementation of
imageUrl
imageUrl:
string
Defined in: WAProto/index.d.ts:7461
Citation imageUrl.
Implementation of
subtitle
subtitle:
string
Defined in: WAProto/index.d.ts:7455
Citation subtitle.
Implementation of
title
title:
string
Defined in: WAProto/index.d.ts:7452
Citation title.
Implementation of
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:7531
Converts this Citation to JSON.
Returns
object
JSON object
create()
static
create(properties
?):Citation
Defined in: WAProto/index.d.ts:7468
Creates a new Citation instance using the specified properties.
Parameters
properties?
Properties to set
Returns
Citation instance
decode()
static
decode(reader
,length
?):Citation
Defined in: WAProto/index.d.ts:7494
Decodes a Citation 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
Citation
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
static
decodeDelimited(reader
):Citation
Defined in: WAProto/index.d.ts:7503
Decodes a Citation message from the specified reader or buffer, length delimited.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
Returns
Citation
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:7476
Encodes the specified Citation message. Does not implicitly verify messages.
Parameters
message
Citation 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:7484
Encodes the specified Citation message, length delimited. Does not implicitly verify messages.
Parameters
message
Citation message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
static
fromObject(object
):Citation
Defined in: WAProto/index.d.ts:7517
Creates a Citation message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
Citation
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:7538
Gets the default type url for Citation
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:7525
Creates a plain object from a Citation message. Also converts values to other types if specified.
Parameters
message
Citation
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:7510
Verifies a Citation message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not