Interface AnnotationOrBuilder (0.3.0)

public interface AnnotationOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getLength()

public abstract int getLength()

Length of the substring in the plain-text message body this annotation corresponds to.

int32 length = 3;

Returns
TypeDescription
int

The length.

getMetadataCase()

public abstract Annotation.MetadataCase getMetadataCase()
Returns
TypeDescription
Annotation.MetadataCase

getRichLinkMetadata()

public abstract RichLinkMetadata getRichLinkMetadata()

The metadata for a rich link.

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

Returns
TypeDescription
RichLinkMetadata

The richLinkMetadata.

getRichLinkMetadataOrBuilder()

public abstract RichLinkMetadataOrBuilder getRichLinkMetadataOrBuilder()

The metadata for a rich link.

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

Returns
TypeDescription
RichLinkMetadataOrBuilder

getSlashCommand()

public abstract SlashCommandMetadata getSlashCommand()

The metadata for a slash command.

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

Returns
TypeDescription
SlashCommandMetadata

The slashCommand.

getSlashCommandOrBuilder()

public abstract SlashCommandMetadataOrBuilder getSlashCommandOrBuilder()

The metadata for a slash command.

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

Returns
TypeDescription
SlashCommandMetadataOrBuilder

getStartIndex()

public abstract int getStartIndex()

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

optional int32 start_index = 2;

Returns
TypeDescription
int

The startIndex.

getType()

public abstract AnnotationType getType()

The type of this annotation.

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

Returns
TypeDescription
AnnotationType

The type.

getTypeValue()

public abstract int getTypeValue()

The type of this annotation.

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

Returns
TypeDescription
int

The enum numeric value on the wire for type.

getUserMention()

public abstract UserMentionMetadata getUserMention()

The metadata of user mention.

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

Returns
TypeDescription
UserMentionMetadata

The userMention.

getUserMentionOrBuilder()

public abstract UserMentionMetadataOrBuilder getUserMentionOrBuilder()

The metadata of user mention.

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

Returns
TypeDescription
UserMentionMetadataOrBuilder

hasRichLinkMetadata()

public abstract boolean hasRichLinkMetadata()

The metadata for a rich link.

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

Returns
TypeDescription
boolean

Whether the richLinkMetadata field is set.

hasSlashCommand()

public abstract boolean hasSlashCommand()

The metadata for a slash command.

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

Returns
TypeDescription
boolean

Whether the slashCommand field is set.

hasStartIndex()

public abstract boolean hasStartIndex()

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

optional int32 start_index = 2;

Returns
TypeDescription
boolean

Whether the startIndex field is set.

hasUserMention()

public abstract boolean hasUserMention()

The metadata of user mention.

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

Returns
TypeDescription
boolean

Whether the userMention field is set.