Skip to main content

Class: AIRichResponseInlineImageMetadata

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

Represents a AIRichResponseInlineImageMetadata.

Implements

Constructors

new AIRichResponseInlineImageMetadata()

new AIRichResponseInlineImageMetadata(properties?): AIRichResponseInlineImageMetadata

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

Constructs a new AIRichResponseInlineImageMetadata.

Parameters

properties?

IAIRichResponseInlineImageMetadata

Properties to set

Returns

AIRichResponseInlineImageMetadata

Properties

alignment?

optional alignment: null | AIRichResponseImageAlignment

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

AIRichResponseInlineImageMetadata alignment.

Implementation of

IAIRichResponseInlineImageMetadata.alignment


imageText?

optional imageText: null | string

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

AIRichResponseInlineImageMetadata imageText.

Implementation of

IAIRichResponseInlineImageMetadata.imageText


imageUrl?

optional imageUrl: null | IAIRichResponseImageURL

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

AIRichResponseInlineImageMetadata imageUrl.

Implementation of

IAIRichResponseInlineImageMetadata.imageUrl


tapLinkUrl?

optional tapLinkUrl: null | string

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

AIRichResponseInlineImageMetadata tapLinkUrl.

Implementation of

IAIRichResponseInlineImageMetadata.tapLinkUrl

Methods

toJSON()

toJSON(): object

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

Converts this AIRichResponseInlineImageMetadata to JSON.

Returns

object

JSON object


create()

static create(properties?): AIRichResponseInlineImageMetadata

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

Creates a new AIRichResponseInlineImageMetadata instance using the specified properties.

Parameters

properties?

IAIRichResponseInlineImageMetadata

Properties to set

Returns

AIRichResponseInlineImageMetadata

AIRichResponseInlineImageMetadata instance


decode()

static decode(reader, length?): AIRichResponseInlineImageMetadata

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

Decodes a AIRichResponseInlineImageMetadata 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

AIRichResponseInlineImageMetadata

AIRichResponseInlineImageMetadata

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): AIRichResponseInlineImageMetadata

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

Decodes a AIRichResponseInlineImageMetadata message from the specified reader or buffer, length delimited.

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

AIRichResponseInlineImageMetadata

AIRichResponseInlineImageMetadata

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

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

Parameters

message

IAIRichResponseInlineImageMetadata

AIRichResponseInlineImageMetadata 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:1748

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

Parameters

message

IAIRichResponseInlineImageMetadata

AIRichResponseInlineImageMetadata message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): AIRichResponseInlineImageMetadata

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

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

Parameters

object

Plain object

Returns

AIRichResponseInlineImageMetadata

AIRichResponseInlineImageMetadata


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

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

Gets the default type url for AIRichResponseInlineImageMetadata

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

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

Parameters

message

AIRichResponseInlineImageMetadata

AIRichResponseInlineImageMetadata

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

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

Verifies a AIRichResponseInlineImageMetadata message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not