Interface AnnotationOrBuilder (0.21.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicinterface AnnotationOrBuilderextendsMessageOrBuilderImplements
MessageOrBuilderMethods
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.
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. |