Reference documentation and code samples for the Google Chat V1 API class Google::Apps::Chat::V1::CitedSource::Snippet.
A snippet object representing an excerpt from a larger corpus.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#image_preview
def image_preview() -> ::Google::Apps::Chat::V1::ElementsImage
Returns
- (::Google::Apps::Chat::V1::ElementsImage) — Optional. Image preview of the snippet provided as an input when creating the citation.
#image_preview=
def image_preview=(value) -> ::Google::Apps::Chat::V1::ElementsImage
Parameter
- value (::Google::Apps::Chat::V1::ElementsImage) — Optional. Image preview of the snippet provided as an input when creating the citation.
Returns
- (::Google::Apps::Chat::V1::ElementsImage) — Optional. Image preview of the snippet provided as an input when creating the citation.
#text
def text() -> ::String
Returns
-
(::String) — Optional. A short plaintext excerpt directly from the corpus that is
rendered in the citation hover card or source preview. When footer
sources are automatically populated from inline
citations(becauseElements.cited_sourcesis not set), snippets are omitted from the deduplicated footer sources. Does not support markdown format, and must not exceed 1,000 characters.
#text=
def text=(value) -> ::String
Parameter
-
value (::String) — Optional. A short plaintext excerpt directly from the corpus that is
rendered in the citation hover card or source preview. When footer
sources are automatically populated from inline
citations(becauseElements.cited_sourcesis not set), snippets are omitted from the deduplicated footer sources. Does not support markdown format, and must not exceed 1,000 characters.
Returns
-
(::String) — Optional. A short plaintext excerpt directly from the corpus that is
rendered in the citation hover card or source preview. When footer
sources are automatically populated from inline
citations(becauseElements.cited_sourcesis not set), snippets are omitted from the deduplicated footer sources. Does not support markdown format, and must not exceed 1,000 characters.