public static interface Answer.Reference.ChunkInfoOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getBlobAttachmentIndexes(int index)
public abstract long getBlobAttachmentIndexes(int index)Output only. Stores indexes of blobattachments linked to this chunk.
repeated int64 blob_attachment_indexes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
long |
The blobAttachmentIndexes at the given index. |
getBlobAttachmentIndexesCount()
public abstract int getBlobAttachmentIndexesCount()Output only. Stores indexes of blobattachments linked to this chunk.
repeated int64 blob_attachment_indexes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The count of blobAttachmentIndexes. |
getBlobAttachmentIndexesList()
public abstract List<Long> getBlobAttachmentIndexesList()Output only. Stores indexes of blobattachments linked to this chunk.
repeated int64 blob_attachment_indexes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
List<Long> |
A list containing the blobAttachmentIndexes. |
getChunk()
public abstract String getChunk()Chunk resource name.
string chunk = 1 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The chunk. |
getChunkBytes()
public abstract ByteString getChunkBytes()Chunk resource name.
string chunk = 1 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for chunk. |
getContent()
public abstract String getContent()Chunk textual content.
string content = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The content. |
getContentBytes()
public abstract ByteString getContentBytes()Chunk textual content.
string content = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for content. |
getDocumentMetadata()
public abstract Answer.Reference.ChunkInfo.DocumentMetadata getDocumentMetadata()Document metadata.
.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4;
| Returns | |
|---|---|
| Type | Description |
Answer.Reference.ChunkInfo.DocumentMetadata |
The documentMetadata. |
getDocumentMetadataOrBuilder()
public abstract Answer.Reference.ChunkInfo.DocumentMetadataOrBuilder getDocumentMetadataOrBuilder()Document metadata.
.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4;
| Returns | |
|---|---|
| Type | Description |
Answer.Reference.ChunkInfo.DocumentMetadataOrBuilder |
|
getRelevanceScore()
public abstract float getRelevanceScore()The relevance of the chunk for a given query. Values range from 0.0 (completely irrelevant) to 1.0 (completely relevant). This value is for informational purpose only. It may change for the same query and chunk at any time due to a model retraining or change in implementation.
optional float relevance_score = 3;
| Returns | |
|---|---|
| Type | Description |
float |
The relevanceScore. |
hasDocumentMetadata()
public abstract boolean hasDocumentMetadata()Document metadata.
.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the documentMetadata field is set. |
hasRelevanceScore()
public abstract boolean hasRelevanceScore()The relevance of the chunk for a given query. Values range from 0.0 (completely irrelevant) to 1.0 (completely relevant). This value is for informational purpose only. It may change for the same query and chunk at any time due to a model retraining or change in implementation.
optional float relevance_score = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the relevanceScore field is set. |