public static final class CitedSource.Snippet.Builder extends GeneratedMessage.Builder<CitedSource.Snippet.Builder> implements CitedSource.SnippetOrBuilderA snippet object representing an excerpt from a larger corpus.
Protobuf type google.chat.v1.CitedSource.Snippet
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CitedSource.Snippet.BuilderImplements
CitedSource.SnippetOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CitedSource.Snippet build()| Returns | |
|---|---|
| Type | Description |
CitedSource.Snippet |
|
buildPartial()
public CitedSource.Snippet buildPartial()| Returns | |
|---|---|
| Type | Description |
CitedSource.Snippet |
|
clear()
public CitedSource.Snippet.Builder clear()| Returns | |
|---|---|
| Type | Description |
CitedSource.Snippet.Builder |
|
clearImagePreview()
public CitedSource.Snippet.Builder clearImagePreview()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 |
CitedSource.Snippet.Builder |
|
clearText()
public CitedSource.Snippet.Builder clearText() 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 |
CitedSource.Snippet.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public CitedSource.Snippet getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CitedSource.Snippet |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getImagePreview()
public 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. |
getImagePreviewBuilder()
public ElementsImage.Builder getImagePreviewBuilder()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.Builder |
|
getImagePreviewOrBuilder()
public 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 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 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 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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CitedSource.Snippet other)
public CitedSource.Snippet.Builder mergeFrom(CitedSource.Snippet other)| Parameter | |
|---|---|
| Name | Description |
other |
CitedSource.Snippet |
| Returns | |
|---|---|
| Type | Description |
CitedSource.Snippet.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CitedSource.Snippet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CitedSource.Snippet.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CitedSource.Snippet.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CitedSource.Snippet.Builder |
|
mergeImagePreview(ElementsImage value)
public CitedSource.Snippet.Builder mergeImagePreview(ElementsImage value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ElementsImage |
| Returns | |
|---|---|
| Type | Description |
CitedSource.Snippet.Builder |
|
setImagePreview(ElementsImage value)
public CitedSource.Snippet.Builder setImagePreview(ElementsImage value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ElementsImage |
| Returns | |
|---|---|
| Type | Description |
CitedSource.Snippet.Builder |
|
setImagePreview(ElementsImage.Builder builderForValue)
public CitedSource.Snippet.Builder setImagePreview(ElementsImage.Builder builderForValue)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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ElementsImage.Builder |
| Returns | |
|---|---|
| Type | Description |
CitedSource.Snippet.Builder |
|
setText(String value)
public CitedSource.Snippet.Builder setText(String value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe text to set. |
| Returns | |
|---|---|
| Type | Description |
CitedSource.Snippet.Builder |
This builder for chaining. |
setTextBytes(ByteString value)
public CitedSource.Snippet.Builder setTextBytes(ByteString value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for text to set. |
| Returns | |
|---|---|
| Type | Description |
CitedSource.Snippet.Builder |
This builder for chaining. |