Interface RagChunkOrBuilder (3.64.0)

public interface RagChunkOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

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.