Interface CitedSource.SnippetOrBuilder (0.67.0)

public static interface CitedSource.SnippetOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getImagePreview()

public abstract ElementsImage getImagePreview()

Optional. Image preview of the snippet provided as an input when creating the citation.

.google.chat.v1.ElementsImage image_preview = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ElementsImage

The imagePreview.

getImagePreviewOrBuilder()

public abstract ElementsImageOrBuilder getImagePreviewOrBuilder()

Optional. Image preview of the snippet provided as an input when creating the citation.

.google.chat.v1.ElementsImage image_preview = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ElementsImageOrBuilder

getText()

public abstract String getText()

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.

string text = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The text.

getTextBytes()

public abstract ByteString getTextBytes()

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.

string text = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for text.

hasImagePreview()

public abstract boolean hasImagePreview()

Optional. Image preview of the snippet provided as an input when creating the citation.

.google.chat.v1.ElementsImage image_preview = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the imagePreview field is set.