Google Chat V1 API - Class Google::Apps::Chat::V1::CitedSource::Snippet (v0.34.0)

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

#image_preview=

def image_preview=(value) -> ::Google::Apps::Chat::V1::ElementsImage
Parameter
Returns

#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 (because Elements.cited_sources is 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 (because Elements.cited_sources is 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 (because Elements.cited_sources is not set), snippets are omitted from the deduplicated footer sources. Does not support markdown format, and must not exceed 1,000 characters.