customEmojiMetadata = $customEmojiMetadata; } /** * @return CustomEmojiMetadata */ public function getCustomEmojiMetadata() { return $this->customEmojiMetadata; } /** * Length of the substring in the plain-text message body this annotation * corresponds to. If not present, indicates a length of 0. * * @param int $length */ public function setLength($length) { $this->length = $length; } /** * @return int */ public function getLength() { return $this->length; } /** * The metadata for a rich link. * * @param RichLinkMetadata $richLinkMetadata */ public function setRichLinkMetadata(RichLinkMetadata $richLinkMetadata) { $this->richLinkMetadata = $richLinkMetadata; } /** * @return RichLinkMetadata */ public function getRichLinkMetadata() { return $this->richLinkMetadata; } /** * The metadata for a slash command. * * @param SlashCommandMetadata $slashCommand */ public function setSlashCommand(SlashCommandMetadata $slashCommand) { $this->slashCommand = $slashCommand; } /** * @return SlashCommandMetadata */ public function getSlashCommand() { return $this->slashCommand; } /** * Start index (0-based, inclusive) in the plain-text message body this * annotation corresponds to. * * @param int $startIndex */ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } /** * @return int */ public function getStartIndex() { return $this->startIndex; } /** * The type of this annotation. * * Accepted values: ANNOTATION_TYPE_UNSPECIFIED, USER_MENTION, SLASH_COMMAND, * RICH_LINK, CUSTOM_EMOJI * * @param self::TYPE_* $type */ public function setType($type) { $this->type = $type; } /** * @return self::TYPE_* */ public function getType() { return $this->type; } /** * The metadata of user mention. * * @param UserMentionMetadata $userMention */ public function setUserMention(UserMentionMetadata $userMention) { $this->userMention = $userMention; } /** * @return UserMentionMetadata */ public function getUserMention() { return $this->userMention; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Annotation::class, 'Google_Service_HangoutsChat_Annotation');