public static final class Chunk.Builder extends com.google.protobuf.GeneratedMessage.Builder<Chunk.Builder> implements ChunkOrBuilder
Chunk captures all raw metadata information of items to be recommended or searched in the chunk mode.Protobuf type
google.cloud.discoveryengine.v1.Chunk| Modifier and Type | Method and Description |
|---|---|
Chunk.Builder |
addAllAnnotationContents(Iterable<String> values)
Output only.
|
Chunk.Builder |
addAllAnnotationMetadata(Iterable<? extends Chunk.AnnotationMetadata> values)
Output only.
|
Chunk.Builder |
addAllDataUrls(Iterable<String> values)
Output only.
|
Chunk.Builder |
addAnnotationContents(String value)
Output only.
|
Chunk.Builder |
addAnnotationContentsBytes(com.google.protobuf.ByteString value)
Output only.
|
Chunk.Builder |
addAnnotationMetadata(Chunk.AnnotationMetadata.Builder builderForValue)
Output only.
|
Chunk.Builder |
addAnnotationMetadata(Chunk.AnnotationMetadata value)
Output only.
|
Chunk.Builder |
addAnnotationMetadata(int index,
Chunk.AnnotationMetadata.Builder builderForValue)
Output only.
|
Chunk.Builder |
addAnnotationMetadata(int index,
Chunk.AnnotationMetadata value)
Output only.
|
Chunk.AnnotationMetadata.Builder |
addAnnotationMetadataBuilder()
Output only.
|
Chunk.AnnotationMetadata.Builder |
addAnnotationMetadataBuilder(int index)
Output only.
|
Chunk.Builder |
addDataUrls(String value)
Output only.
|
Chunk.Builder |
addDataUrlsBytes(com.google.protobuf.ByteString value)
Output only.
|
Chunk |
build() |
Chunk |
buildPartial() |
Chunk.Builder |
clear() |
Chunk.Builder |
clearAnnotationContents()
Output only.
|
Chunk.Builder |
clearAnnotationMetadata()
Output only.
|
Chunk.Builder |
clearChunkMetadata()
Output only.
|
Chunk.Builder |
clearContent()
Content is a string from a document (parsed content).
|
Chunk.Builder |
clearDataUrls()
Output only.
|
Chunk.Builder |
clearDerivedStructData()
Output only.
|
Chunk.Builder |
clearDocumentMetadata()
Metadata of the document from the current chunk.
|
Chunk.Builder |
clearId()
Unique chunk ID of the current chunk.
|
Chunk.Builder |
clearName()
The full resource name of the chunk.
|
Chunk.Builder |
clearPageSpan()
Page span of the chunk.
|
Chunk.Builder |
clearRelevanceScore()
Output only.
|
String |
getAnnotationContents(int index)
Output only.
|
com.google.protobuf.ByteString |
getAnnotationContentsBytes(int index)
Output only.
|
int |
getAnnotationContentsCount()
Output only.
|
com.google.protobuf.ProtocolStringList |
getAnnotationContentsList()
Output only.
|
Chunk.AnnotationMetadata |
getAnnotationMetadata(int index)
Output only.
|
Chunk.AnnotationMetadata.Builder |
getAnnotationMetadataBuilder(int index)
Output only.
|
List<Chunk.AnnotationMetadata.Builder> |
getAnnotationMetadataBuilderList()
Output only.
|
int |
getAnnotationMetadataCount()
Output only.
|
List<Chunk.AnnotationMetadata> |
getAnnotationMetadataList()
Output only.
|
Chunk.AnnotationMetadataOrBuilder |
getAnnotationMetadataOrBuilder(int index)
Output only.
|
List<? extends Chunk.AnnotationMetadataOrBuilder> |
getAnnotationMetadataOrBuilderList()
Output only.
|
Chunk.ChunkMetadata |
getChunkMetadata()
Output only.
|
Chunk.ChunkMetadata.Builder |
getChunkMetadataBuilder()
Output only.
|
Chunk.ChunkMetadataOrBuilder |
getChunkMetadataOrBuilder()
Output only.
|
String |
getContent()
Content is a string from a document (parsed content).
|
com.google.protobuf.ByteString |
getContentBytes()
Content is a string from a document (parsed content).
|
String |
getDataUrls(int index)
Output only.
|
com.google.protobuf.ByteString |
getDataUrlsBytes(int index)
Output only.
|
int |
getDataUrlsCount()
Output only.
|
com.google.protobuf.ProtocolStringList |
getDataUrlsList()
Output only.
|
Chunk |
getDefaultInstanceForType() |
com.google.protobuf.Struct |
getDerivedStructData()
Output only.
|
com.google.protobuf.Struct.Builder |
getDerivedStructDataBuilder()
Output only.
|
com.google.protobuf.StructOrBuilder |
getDerivedStructDataOrBuilder()
Output only.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Chunk.DocumentMetadata |
getDocumentMetadata()
Metadata of the document from the current chunk.
|
Chunk.DocumentMetadata.Builder |
getDocumentMetadataBuilder()
Metadata of the document from the current chunk.
|
Chunk.DocumentMetadataOrBuilder |
getDocumentMetadataOrBuilder()
Metadata of the document from the current chunk.
|
String |
getId()
Unique chunk ID of the current chunk.
|
com.google.protobuf.ByteString |
getIdBytes()
Unique chunk ID of the current chunk.
|
String |
getName()
The full resource name of the chunk.
|
com.google.protobuf.ByteString |
getNameBytes()
The full resource name of the chunk.
|
Chunk.PageSpan |
getPageSpan()
Page span of the chunk.
|
Chunk.PageSpan.Builder |
getPageSpanBuilder()
Page span of the chunk.
|
Chunk.PageSpanOrBuilder |
getPageSpanOrBuilder()
Page span of the chunk.
|
double |
getRelevanceScore()
Output only.
|
boolean |
hasChunkMetadata()
Output only.
|
boolean |
hasDerivedStructData()
Output only.
|
boolean |
hasDocumentMetadata()
Metadata of the document from the current chunk.
|
boolean |
hasPageSpan()
Page span of the chunk.
|
boolean |
hasRelevanceScore()
Output only.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Chunk.Builder |
mergeChunkMetadata(Chunk.ChunkMetadata value)
Output only.
|
Chunk.Builder |
mergeDerivedStructData(com.google.protobuf.Struct value)
Output only.
|
Chunk.Builder |
mergeDocumentMetadata(Chunk.DocumentMetadata value)
Metadata of the document from the current chunk.
|
Chunk.Builder |
mergeFrom(Chunk other) |
Chunk.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Chunk.Builder |
mergeFrom(com.google.protobuf.Message other) |
Chunk.Builder |
mergePageSpan(Chunk.PageSpan value)
Page span of the chunk.
|
Chunk.Builder |
removeAnnotationMetadata(int index)
Output only.
|
Chunk.Builder |
setAnnotationContents(int index,
String value)
Output only.
|
Chunk.Builder |
setAnnotationMetadata(int index,
Chunk.AnnotationMetadata.Builder builderForValue)
Output only.
|
Chunk.Builder |
setAnnotationMetadata(int index,
Chunk.AnnotationMetadata value)
Output only.
|
Chunk.Builder |
setChunkMetadata(Chunk.ChunkMetadata.Builder builderForValue)
Output only.
|
Chunk.Builder |
setChunkMetadata(Chunk.ChunkMetadata value)
Output only.
|
Chunk.Builder |
setContent(String value)
Content is a string from a document (parsed content).
|
Chunk.Builder |
setContentBytes(com.google.protobuf.ByteString value)
Content is a string from a document (parsed content).
|
Chunk.Builder |
setDataUrls(int index,
String value)
Output only.
|
Chunk.Builder |
setDerivedStructData(com.google.protobuf.Struct.Builder builderForValue)
Output only.
|
Chunk.Builder |
setDerivedStructData(com.google.protobuf.Struct value)
Output only.
|
Chunk.Builder |
setDocumentMetadata(Chunk.DocumentMetadata.Builder builderForValue)
Metadata of the document from the current chunk.
|
Chunk.Builder |
setDocumentMetadata(Chunk.DocumentMetadata value)
Metadata of the document from the current chunk.
|
Chunk.Builder |
setId(String value)
Unique chunk ID of the current chunk.
|
Chunk.Builder |
setIdBytes(com.google.protobuf.ByteString value)
Unique chunk ID of the current chunk.
|
Chunk.Builder |
setName(String value)
The full resource name of the chunk.
|
Chunk.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The full resource name of the chunk.
|
Chunk.Builder |
setPageSpan(Chunk.PageSpan.Builder builderForValue)
Page span of the chunk.
|
Chunk.Builder |
setPageSpan(Chunk.PageSpan value)
Page span of the chunk.
|
Chunk.Builder |
setRelevanceScore(double value)
Output only.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Chunk.Builder>public Chunk.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<Chunk.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Chunk.Builder>public Chunk getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Chunk build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Chunk buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Chunk.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Chunk.Builder>public Chunk.Builder mergeFrom(Chunk other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<Chunk.Builder>public Chunk.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Chunk.Builder>IOExceptionpublic String getName()
The full resource name of the chunk.
Format:
`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
This field must be a UTF-8 encoded string with a length limit of 1024
characters.
string name = 1;getName in interface ChunkOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The full resource name of the chunk.
Format:
`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
This field must be a UTF-8 encoded string with a length limit of 1024
characters.
string name = 1;getNameBytes in interface ChunkOrBuilderpublic Chunk.Builder setName(String value)
The full resource name of the chunk.
Format:
`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
This field must be a UTF-8 encoded string with a length limit of 1024
characters.
string name = 1;value - The name to set.public Chunk.Builder clearName()
The full resource name of the chunk.
Format:
`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
This field must be a UTF-8 encoded string with a length limit of 1024
characters.
string name = 1;public Chunk.Builder setNameBytes(com.google.protobuf.ByteString value)
The full resource name of the chunk.
Format:
`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
This field must be a UTF-8 encoded string with a length limit of 1024
characters.
string name = 1;value - The bytes for name to set.public String getId()
Unique chunk ID of the current chunk.
string id = 2;getId in interface ChunkOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
Unique chunk ID of the current chunk.
string id = 2;getIdBytes in interface ChunkOrBuilderpublic Chunk.Builder setId(String value)
Unique chunk ID of the current chunk.
string id = 2;value - The id to set.public Chunk.Builder clearId()
Unique chunk ID of the current chunk.
string id = 2;public Chunk.Builder setIdBytes(com.google.protobuf.ByteString value)
Unique chunk ID of the current chunk.
string id = 2;value - The bytes for id to set.public String getContent()
Content is a string from a document (parsed content).
string content = 3;getContent in interface ChunkOrBuilderpublic com.google.protobuf.ByteString getContentBytes()
Content is a string from a document (parsed content).
string content = 3;getContentBytes in interface ChunkOrBuilderpublic Chunk.Builder setContent(String value)
Content is a string from a document (parsed content).
string content = 3;value - The content to set.public Chunk.Builder clearContent()
Content is a string from a document (parsed content).
string content = 3;public Chunk.Builder setContentBytes(com.google.protobuf.ByteString value)
Content is a string from a document (parsed content).
string content = 3;value - The bytes for content to set.public boolean hasRelevanceScore()
Output only. Represents the relevance score based on similarity. Higher score indicates higher chunk relevance. The score is in range [-1.0, 1.0]. Only populated on [SearchResponse][google.cloud.discoveryengine.v1.SearchResponse].
optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasRelevanceScore in interface ChunkOrBuilderpublic double getRelevanceScore()
Output only. Represents the relevance score based on similarity. Higher score indicates higher chunk relevance. The score is in range [-1.0, 1.0]. Only populated on [SearchResponse][google.cloud.discoveryengine.v1.SearchResponse].
optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getRelevanceScore in interface ChunkOrBuilderpublic Chunk.Builder setRelevanceScore(double value)
Output only. Represents the relevance score based on similarity. Higher score indicates higher chunk relevance. The score is in range [-1.0, 1.0]. Only populated on [SearchResponse][google.cloud.discoveryengine.v1.SearchResponse].
optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The relevanceScore to set.public Chunk.Builder clearRelevanceScore()
Output only. Represents the relevance score based on similarity. Higher score indicates higher chunk relevance. The score is in range [-1.0, 1.0]. Only populated on [SearchResponse][google.cloud.discoveryengine.v1.SearchResponse].
optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public boolean hasDocumentMetadata()
Metadata of the document from the current chunk.
.google.cloud.discoveryengine.v1.Chunk.DocumentMetadata document_metadata = 5;hasDocumentMetadata in interface ChunkOrBuilderpublic Chunk.DocumentMetadata getDocumentMetadata()
Metadata of the document from the current chunk.
.google.cloud.discoveryengine.v1.Chunk.DocumentMetadata document_metadata = 5;getDocumentMetadata in interface ChunkOrBuilderpublic Chunk.Builder setDocumentMetadata(Chunk.DocumentMetadata value)
Metadata of the document from the current chunk.
.google.cloud.discoveryengine.v1.Chunk.DocumentMetadata document_metadata = 5;public Chunk.Builder setDocumentMetadata(Chunk.DocumentMetadata.Builder builderForValue)
Metadata of the document from the current chunk.
.google.cloud.discoveryengine.v1.Chunk.DocumentMetadata document_metadata = 5;public Chunk.Builder mergeDocumentMetadata(Chunk.DocumentMetadata value)
Metadata of the document from the current chunk.
.google.cloud.discoveryengine.v1.Chunk.DocumentMetadata document_metadata = 5;public Chunk.Builder clearDocumentMetadata()
Metadata of the document from the current chunk.
.google.cloud.discoveryengine.v1.Chunk.DocumentMetadata document_metadata = 5;public Chunk.DocumentMetadata.Builder getDocumentMetadataBuilder()
Metadata of the document from the current chunk.
.google.cloud.discoveryengine.v1.Chunk.DocumentMetadata document_metadata = 5;public Chunk.DocumentMetadataOrBuilder getDocumentMetadataOrBuilder()
Metadata of the document from the current chunk.
.google.cloud.discoveryengine.v1.Chunk.DocumentMetadata document_metadata = 5;getDocumentMetadataOrBuilder in interface ChunkOrBuilderpublic boolean hasDerivedStructData()
Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
.google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasDerivedStructData in interface ChunkOrBuilderpublic com.google.protobuf.Struct getDerivedStructData()
Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
.google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDerivedStructData in interface ChunkOrBuilderpublic Chunk.Builder setDerivedStructData(com.google.protobuf.Struct value)
Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
.google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Chunk.Builder setDerivedStructData(com.google.protobuf.Struct.Builder builderForValue)
Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
.google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Chunk.Builder mergeDerivedStructData(com.google.protobuf.Struct value)
Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
.google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Chunk.Builder clearDerivedStructData()
Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
.google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.Struct.Builder getDerivedStructDataBuilder()
Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
.google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder()
Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
.google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDerivedStructDataOrBuilder in interface ChunkOrBuilderpublic boolean hasPageSpan()
Page span of the chunk.
.google.cloud.discoveryengine.v1.Chunk.PageSpan page_span = 6;hasPageSpan in interface ChunkOrBuilderpublic Chunk.PageSpan getPageSpan()
Page span of the chunk.
.google.cloud.discoveryengine.v1.Chunk.PageSpan page_span = 6;getPageSpan in interface ChunkOrBuilderpublic Chunk.Builder setPageSpan(Chunk.PageSpan value)
Page span of the chunk.
.google.cloud.discoveryengine.v1.Chunk.PageSpan page_span = 6;public Chunk.Builder setPageSpan(Chunk.PageSpan.Builder builderForValue)
Page span of the chunk.
.google.cloud.discoveryengine.v1.Chunk.PageSpan page_span = 6;public Chunk.Builder mergePageSpan(Chunk.PageSpan value)
Page span of the chunk.
.google.cloud.discoveryengine.v1.Chunk.PageSpan page_span = 6;public Chunk.Builder clearPageSpan()
Page span of the chunk.
.google.cloud.discoveryengine.v1.Chunk.PageSpan page_span = 6;public Chunk.PageSpan.Builder getPageSpanBuilder()
Page span of the chunk.
.google.cloud.discoveryengine.v1.Chunk.PageSpan page_span = 6;public Chunk.PageSpanOrBuilder getPageSpanOrBuilder()
Page span of the chunk.
.google.cloud.discoveryengine.v1.Chunk.PageSpan page_span = 6;getPageSpanOrBuilder in interface ChunkOrBuilderpublic boolean hasChunkMetadata()
Output only. Metadata of the current chunk.
.google.cloud.discoveryengine.v1.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasChunkMetadata in interface ChunkOrBuilderpublic Chunk.ChunkMetadata getChunkMetadata()
Output only. Metadata of the current chunk.
.google.cloud.discoveryengine.v1.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getChunkMetadata in interface ChunkOrBuilderpublic Chunk.Builder setChunkMetadata(Chunk.ChunkMetadata value)
Output only. Metadata of the current chunk.
.google.cloud.discoveryengine.v1.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Chunk.Builder setChunkMetadata(Chunk.ChunkMetadata.Builder builderForValue)
Output only. Metadata of the current chunk.
.google.cloud.discoveryengine.v1.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Chunk.Builder mergeChunkMetadata(Chunk.ChunkMetadata value)
Output only. Metadata of the current chunk.
.google.cloud.discoveryengine.v1.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Chunk.Builder clearChunkMetadata()
Output only. Metadata of the current chunk.
.google.cloud.discoveryengine.v1.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Chunk.ChunkMetadata.Builder getChunkMetadataBuilder()
Output only. Metadata of the current chunk.
.google.cloud.discoveryengine.v1.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Chunk.ChunkMetadataOrBuilder getChunkMetadataOrBuilder()
Output only. Metadata of the current chunk.
.google.cloud.discoveryengine.v1.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getChunkMetadataOrBuilder in interface ChunkOrBuilderpublic com.google.protobuf.ProtocolStringList getDataUrlsList()
Output only. Image Data URLs if the current chunk contains images. Data URLs are composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[<mediatype>][;base64],<data>
repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];getDataUrlsList in interface ChunkOrBuilderpublic int getDataUrlsCount()
Output only. Image Data URLs if the current chunk contains images. Data URLs are composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[<mediatype>][;base64],<data>
repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];getDataUrlsCount in interface ChunkOrBuilderpublic String getDataUrls(int index)
Output only. Image Data URLs if the current chunk contains images. Data URLs are composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[<mediatype>][;base64],<data>
repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];getDataUrls in interface ChunkOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getDataUrlsBytes(int index)
Output only. Image Data URLs if the current chunk contains images. Data URLs are composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[<mediatype>][;base64],<data>
repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];getDataUrlsBytes in interface ChunkOrBuilderindex - The index of the value to return.public Chunk.Builder setDataUrls(int index, String value)
Output only. Image Data URLs if the current chunk contains images. Data URLs are composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[<mediatype>][;base64],<data>
repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];index - The index to set the value at.value - The dataUrls to set.public Chunk.Builder addDataUrls(String value)
Output only. Image Data URLs if the current chunk contains images. Data URLs are composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[<mediatype>][;base64],<data>
repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The dataUrls to add.public Chunk.Builder addAllDataUrls(Iterable<String> values)
Output only. Image Data URLs if the current chunk contains images. Data URLs are composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[<mediatype>][;base64],<data>
repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];values - The dataUrls to add.public Chunk.Builder clearDataUrls()
Output only. Image Data URLs if the current chunk contains images. Data URLs are composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[<mediatype>][;base64],<data>
repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];public Chunk.Builder addDataUrlsBytes(com.google.protobuf.ByteString value)
Output only. Image Data URLs if the current chunk contains images. Data URLs are composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[<mediatype>][;base64],<data>
repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes of the dataUrls to add.public com.google.protobuf.ProtocolStringList getAnnotationContentsList()
Output only. Annotation contents if the current chunk contains annotations.
repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
getAnnotationContentsList in interface ChunkOrBuilderpublic int getAnnotationContentsCount()
Output only. Annotation contents if the current chunk contains annotations.
repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
getAnnotationContentsCount in interface ChunkOrBuilderpublic String getAnnotationContents(int index)
Output only. Annotation contents if the current chunk contains annotations.
repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
getAnnotationContents in interface ChunkOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getAnnotationContentsBytes(int index)
Output only. Annotation contents if the current chunk contains annotations.
repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
getAnnotationContentsBytes in interface ChunkOrBuilderindex - The index of the value to return.public Chunk.Builder setAnnotationContents(int index, String value)
Output only. Annotation contents if the current chunk contains annotations.
repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
index - The index to set the value at.value - The annotationContents to set.public Chunk.Builder addAnnotationContents(String value)
Output only. Annotation contents if the current chunk contains annotations.
repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The annotationContents to add.public Chunk.Builder addAllAnnotationContents(Iterable<String> values)
Output only. Annotation contents if the current chunk contains annotations.
repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
values - The annotationContents to add.public Chunk.Builder clearAnnotationContents()
Output only. Annotation contents if the current chunk contains annotations.
repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Chunk.Builder addAnnotationContentsBytes(com.google.protobuf.ByteString value)
Output only. Annotation contents if the current chunk contains annotations.
repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The bytes of the annotationContents to add.public List<Chunk.AnnotationMetadata> getAnnotationMetadataList()
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
getAnnotationMetadataList in interface ChunkOrBuilderpublic int getAnnotationMetadataCount()
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
getAnnotationMetadataCount in interface ChunkOrBuilderpublic Chunk.AnnotationMetadata getAnnotationMetadata(int index)
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
getAnnotationMetadata in interface ChunkOrBuilderpublic Chunk.Builder setAnnotationMetadata(int index, Chunk.AnnotationMetadata value)
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Chunk.Builder setAnnotationMetadata(int index, Chunk.AnnotationMetadata.Builder builderForValue)
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Chunk.Builder addAnnotationMetadata(Chunk.AnnotationMetadata value)
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Chunk.Builder addAnnotationMetadata(int index, Chunk.AnnotationMetadata value)
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Chunk.Builder addAnnotationMetadata(Chunk.AnnotationMetadata.Builder builderForValue)
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Chunk.Builder addAnnotationMetadata(int index, Chunk.AnnotationMetadata.Builder builderForValue)
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Chunk.Builder addAllAnnotationMetadata(Iterable<? extends Chunk.AnnotationMetadata> values)
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Chunk.Builder clearAnnotationMetadata()
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Chunk.Builder removeAnnotationMetadata(int index)
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Chunk.AnnotationMetadata.Builder getAnnotationMetadataBuilder(int index)
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Chunk.AnnotationMetadataOrBuilder getAnnotationMetadataOrBuilder(int index)
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
getAnnotationMetadataOrBuilder in interface ChunkOrBuilderpublic List<? extends Chunk.AnnotationMetadataOrBuilder> getAnnotationMetadataOrBuilderList()
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
getAnnotationMetadataOrBuilderList in interface ChunkOrBuilderpublic Chunk.AnnotationMetadata.Builder addAnnotationMetadataBuilder()
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Chunk.AnnotationMetadata.Builder addAnnotationMetadataBuilder(int index)
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public List<Chunk.AnnotationMetadata.Builder> getAnnotationMetadataBuilderList()
Output only. The annotation metadata includes structured content in the current chunk.
repeated .google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Copyright © 2026 Google LLC. All rights reserved.