Skip to main content

Class: Citation

Defined in: WAProto/index.d.ts:8775

Represents a Citation.

Implements

Constructors

new Citation()

new Citation(properties?): Citation

Defined in: WAProto/index.d.ts:8781

Constructs a new Citation.

Parameters

properties?

ICitation

Properties to set

Returns

Citation

Properties

cmsId

cmsId: string

Defined in: WAProto/index.d.ts:8790

Citation cmsId.

Implementation of

ICitation.cmsId


imageUrl

imageUrl: string

Defined in: WAProto/index.d.ts:8793

Citation imageUrl.

Implementation of

ICitation.imageUrl


subtitle

subtitle: string

Defined in: WAProto/index.d.ts:8787

Citation subtitle.

Implementation of

ICitation.subtitle


title

title: string

Defined in: WAProto/index.d.ts:8784

Citation title.

Implementation of

ICitation.title

Methods

toJSON()

toJSON(): object

Defined in: WAProto/index.d.ts:8863

Converts this Citation to JSON.

Returns

object

JSON object


create()

static create(properties?): Citation

Defined in: WAProto/index.d.ts:8800

Creates a new Citation instance using the specified properties.

Parameters

properties?

ICitation

Properties to set

Returns

Citation

Citation instance


decode()

static decode(reader, length?): Citation

Defined in: WAProto/index.d.ts:8826

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

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:8835

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

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:8808

Encodes the specified Citation message. Does not implicitly verify messages.

Parameters

message

ICitation

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:8816

Encodes the specified Citation message, length delimited. Does not implicitly verify messages.

Parameters

message

ICitation

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:8849

Creates a Citation message from a plain object. Also converts values to their respective internal types.

Parameters

object

Plain object

Returns

Citation

Citation


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

Defined in: WAProto/index.d.ts:8870

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:8857

Creates a plain object from a Citation message. Also converts values to other types if specified.

Parameters

message

Citation

Citation

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

Defined in: WAProto/index.d.ts:8842

Verifies a Citation message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not