Class: AIRichResponseInlineImageMetadata
Defined in: WAProto/index.d.ts:1695
Represents a AIRichResponseInlineImageMetadata.
Implements
Constructors
new AIRichResponseInlineImageMetadata()
new AIRichResponseInlineImageMetadata(
properties
?):AIRichResponseInlineImageMetadata
Defined in: WAProto/index.d.ts:1701
Constructs a new AIRichResponseInlineImageMetadata.
Parameters
properties?
IAIRichResponseInlineImageMetadata
Properties to set
Returns
AIRichResponseInlineImageMetadata
Properties
alignment?
optional
alignment:null
|AIRichResponseImageAlignment
Defined in: WAProto/index.d.ts:1710
AIRichResponseInlineImageMetadata alignment.
Implementation of
IAIRichResponseInlineImageMetadata
.alignment
imageText?
optional
imageText:null
|string
Defined in: WAProto/index.d.ts:1707
AIRichResponseInlineImageMetadata imageText.
Implementation of
IAIRichResponseInlineImageMetadata
.imageText
imageUrl?
optional
imageUrl:null
|IAIRichResponseImageURL
Defined in: WAProto/index.d.ts:1704
AIRichResponseInlineImageMetadata imageUrl.
Implementation of
IAIRichResponseInlineImageMetadata
.imageUrl
tapLinkUrl?
optional
tapLinkUrl:null
|string
Defined in: WAProto/index.d.ts:1713
AIRichResponseInlineImageMetadata tapLinkUrl.
Implementation of
IAIRichResponseInlineImageMetadata
.tapLinkUrl
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:1783
Converts this AIRichResponseInlineImageMetadata to JSON.
Returns
object
JSON object
create()
static
create(properties
?):AIRichResponseInlineImageMetadata
Defined in: WAProto/index.d.ts:1720
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:1746
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:1755
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:1728
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:1736
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:1769
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:1790
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:1777
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:1762
Verifies a AIRichResponseInlineImageMetadata message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not