Interface AnnotationOrBuilder (0.36.0)

publicinterface AnnotationOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getCustomEmojiMetadata()

publicabstractCustomEmojiMetadatagetCustomEmojiMetadata()

The metadata for a custom emoji.

.google.chat.v1.CustomEmojiMetadata custom_emoji_metadata = 7;

Returns
Type Description
CustomEmojiMetadata

The customEmojiMetadata.

getCustomEmojiMetadataOrBuilder()

publicabstractCustomEmojiMetadataOrBuildergetCustomEmojiMetadataOrBuilder()

The metadata for a custom emoji.

.google.chat.v1.CustomEmojiMetadata custom_emoji_metadata = 7;

Returns
Type Description
CustomEmojiMetadataOrBuilder

getLength()

publicabstractintgetLength()

Length of the substring in the plain-text message body this annotation corresponds to. If not present, indicates a length of 0.

int32 length = 3;

Returns
Type Description
int

The length.

getMetadataCase()

publicabstractAnnotation.MetadataCasegetMetadataCase()
Returns
Type Description
Annotation.MetadataCase

getRichLinkMetadata()

publicabstractRichLinkMetadatagetRichLinkMetadata()

The metadata for a rich link.

.google.chat.v1.RichLinkMetadata rich_link_metadata = 6;

Returns
Type Description
RichLinkMetadata

The richLinkMetadata.

getRichLinkMetadataOrBuilder()

publicabstractRichLinkMetadataOrBuildergetRichLinkMetadataOrBuilder()

The metadata for a rich link.

.google.chat.v1.RichLinkMetadata rich_link_metadata = 6;

Returns
Type Description
RichLinkMetadataOrBuilder

getSlashCommand()

publicabstractSlashCommandMetadatagetSlashCommand()

The metadata for a slash command.

.google.chat.v1.SlashCommandMetadata slash_command = 5;

Returns
Type Description
SlashCommandMetadata

The slashCommand.

getSlashCommandOrBuilder()

publicabstractSlashCommandMetadataOrBuildergetSlashCommandOrBuilder()

The metadata for a slash command.

.google.chat.v1.SlashCommandMetadata slash_command = 5;

Returns
Type Description
SlashCommandMetadataOrBuilder

getStartIndex()

publicabstractintgetStartIndex()

Start index (0-based, inclusive) in the plain-text message body this annotation corresponds to.

optional int32 start_index = 2;

Returns
Type Description
int

The startIndex.

getType()

publicabstractAnnotationTypegetType()

The type of this annotation.

.google.chat.v1.AnnotationType type = 1;

Returns
Type Description
AnnotationType

The type.

getTypeValue()

publicabstractintgetTypeValue()

The type of this annotation.

.google.chat.v1.AnnotationType type = 1;

Returns
Type Description
int

The enum numeric value on the wire for type.

getUserMention()

publicabstractUserMentionMetadatagetUserMention()

The metadata of user mention.

.google.chat.v1.UserMentionMetadata user_mention = 4;

Returns
Type Description
UserMentionMetadata

The userMention.

getUserMentionOrBuilder()

publicabstractUserMentionMetadataOrBuildergetUserMentionOrBuilder()

The metadata of user mention.

.google.chat.v1.UserMentionMetadata user_mention = 4;

Returns
Type Description
UserMentionMetadataOrBuilder

hasCustomEmojiMetadata()

publicabstractbooleanhasCustomEmojiMetadata()

The metadata for a custom emoji.

.google.chat.v1.CustomEmojiMetadata custom_emoji_metadata = 7;

Returns
Type Description
boolean

Whether the customEmojiMetadata field is set.

hasRichLinkMetadata()

publicabstractbooleanhasRichLinkMetadata()

The metadata for a rich link.

.google.chat.v1.RichLinkMetadata rich_link_metadata = 6;

Returns
Type Description
boolean

Whether the richLinkMetadata field is set.

hasSlashCommand()

publicabstractbooleanhasSlashCommand()

The metadata for a slash command.

.google.chat.v1.SlashCommandMetadata slash_command = 5;

Returns
Type Description
boolean

Whether the slashCommand field is set.

hasStartIndex()

publicabstractbooleanhasStartIndex()

Start index (0-based, inclusive) in the plain-text message body this annotation corresponds to.

optional int32 start_index = 2;

Returns
Type Description
boolean

Whether the startIndex field is set.

hasUserMention()

publicabstractbooleanhasUserMention()

The metadata of user mention.

.google.chat.v1.UserMentionMetadata user_mention = 4;

Returns
Type Description
boolean

Whether the userMention field is set.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.