@Generated
public interface ChunkOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
String |
getAnnotationContents(int index)
Output only.
|
com.google.protobuf.ByteString |
getAnnotationContentsBytes(int index)
Output only.
|
int |
getAnnotationContentsCount()
Output only.
|
List<String> |
getAnnotationContentsList()
Output only.
|
Chunk.AnnotationMetadata |
getAnnotationMetadata(int index)
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.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.
|
List<String> |
getDataUrlsList()
Output only.
|
com.google.protobuf.Struct |
getDerivedStructData()
Output only.
|
com.google.protobuf.StructOrBuilder |
getDerivedStructDataOrBuilder()
Output only.
|
Chunk.DocumentMetadata |
getDocumentMetadata()
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.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.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString 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;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;String getId()
Unique chunk ID of the current chunk.
string id = 2;com.google.protobuf.ByteString getIdBytes()
Unique chunk ID of the current chunk.
string id = 2;String getContent()
Content is a string from a document (parsed content).
string content = 3;com.google.protobuf.ByteString getContentBytes()
Content is a string from a document (parsed content).
string content = 3;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];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];boolean hasDocumentMetadata()
Metadata of the document from the current chunk.
.google.cloud.discoveryengine.v1.Chunk.DocumentMetadata document_metadata = 5;Chunk.DocumentMetadata getDocumentMetadata()
Metadata of the document from the current chunk.
.google.cloud.discoveryengine.v1.Chunk.DocumentMetadata document_metadata = 5;Chunk.DocumentMetadataOrBuilder getDocumentMetadataOrBuilder()
Metadata of the document from the current chunk.
.google.cloud.discoveryengine.v1.Chunk.DocumentMetadata document_metadata = 5;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];
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];
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];
boolean hasPageSpan()
Page span of the chunk.
.google.cloud.discoveryengine.v1.Chunk.PageSpan page_span = 6;Chunk.PageSpan getPageSpan()
Page span of the chunk.
.google.cloud.discoveryengine.v1.Chunk.PageSpan page_span = 6;Chunk.PageSpanOrBuilder getPageSpanOrBuilder()
Page span of the chunk.
.google.cloud.discoveryengine.v1.Chunk.PageSpan page_span = 6;boolean hasChunkMetadata()
Output only. Metadata of the current chunk.
.google.cloud.discoveryengine.v1.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
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];
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];
List<String> 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];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];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];index - The index of the element to return.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];index - The index of the value to return.List<String> getAnnotationContentsList()
Output only. Annotation contents if the current chunk contains annotations.
repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
int getAnnotationContentsCount()
Output only. Annotation contents if the current chunk contains annotations.
repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
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];
index - The index of the element to return.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];
index - The index of the value to return.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];
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];
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];
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];
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];
Copyright © 2026 Google LLC. All rights reserved.