public interface RagChunkOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getPageSpan()
public abstract RagChunk.PageSpan getPageSpan()
If populated, represents where the chunk starts and ends in the document.
optional .google.cloud.aiplatform.v1.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.v1.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.v1.RagChunk.PageSpan page_span = 2;
Returns | |
---|---|
Type | Description |
boolean |
Whether the pageSpan field is set. |