Reference documentation and code samples for the Google Chat V1 API class Google::Apps::Chat::V1::Citation.
Citations are inline references that can provide users more detailed
information about the inline reference. Corresponding inline citations
should be present in the message text in a markup format of
<chat-citation data-id="{id}">{text}</chat-citation>. Citations are
only supported when the message's markup_syntax is set to MARKDOWN.
Unreferenced citations in Elements.citations (those without a matching
<chat-citation> tag in the message text) are ignored and do not cause the
message to be rejected.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#cited_sources
def cited_sources() -> ::Array<::Google::Apps::Chat::V1::CitedSource>- (::Array<::Google::Apps::Chat::V1::CitedSource>) — Optional. A list of sources that are relevant to the citation. Sources are displayed in the citation hover card.
#cited_sources=
def cited_sources=(value) -> ::Array<::Google::Apps::Chat::V1::CitedSource>- value (::Array<::Google::Apps::Chat::V1::CitedSource>) — Optional. A list of sources that are relevant to the citation. Sources are displayed in the citation hover card.
- (::Array<::Google::Apps::Chat::V1::CitedSource>) — Optional. A list of sources that are relevant to the citation. Sources are displayed in the citation hover card.
#id
def id() -> ::String-
(::String) — Required. The ID of the citation. This ID is defined by the app creating
the citation and must match the
data-idattribute of the<chat-citation>tag in the message text. Must contain only ASCII letters and numbers, and less than 63 characters.
#id=
def id=(value) -> ::String-
value (::String) — Required. The ID of the citation. This ID is defined by the app creating
the citation and must match the
data-idattribute of the<chat-citation>tag in the message text. Must contain only ASCII letters and numbers, and less than 63 characters.
-
(::String) — Required. The ID of the citation. This ID is defined by the app creating
the citation and must match the
data-idattribute of the<chat-citation>tag in the message text. Must contain only ASCII letters and numbers, and less than 63 characters.