public interface RagChunkOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getChunkId()
public abstract String getChunkId()The ID of the chunk.
string chunk_id = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The chunkId. |
getChunkIdBytes()
public abstract ByteString getChunkIdBytes()The ID of the chunk.
string chunk_id = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for chunkId. |
getFileId()
public abstract String getFileId()The ID of the file that the chunk belongs to.
string file_id = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The fileId. |
getFileIdBytes()
public abstract ByteString getFileIdBytes()The ID of the file that the chunk belongs to.
string file_id = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for fileId. |
getPageSpan()
public abstract RagChunk.PageSpan getPageSpan()If populated, represents where the chunk starts and ends in the document.
optional .google.cloud.aiplatform.v1beta1.RagChunk.PageSpan page_span = 2;
| Returns | |
|---|---|
| Type | Description |
RagChunk.PageSpan |
The pageSpan. |
getPageSpanOrBuilder()
public abstract RagChunk.PageSpanOrBuilder getPageSpanOrBuilder()If populated, represents where the chunk starts and ends in the document.
optional .google.cloud.aiplatform.v1beta1.RagChunk.PageSpan page_span = 2;
| Returns | |
|---|---|
| Type | Description |
RagChunk.PageSpanOrBuilder |
|
getText()
public abstract String getText()The content of the chunk.
string text = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The text. |
getTextBytes()
public abstract ByteString getTextBytes()The content of the chunk.
string text = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for text. |
hasPageSpan()
public abstract boolean hasPageSpan()If populated, represents where the chunk starts and ends in the document.
optional .google.cloud.aiplatform.v1beta1.RagChunk.PageSpan page_span = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the pageSpan field is set. |