Interface RagChunkOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
RagChunk, RagChunk.Builder

@Generated public interface RagChunkOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    If populated, represents where the chunk starts and ends in the document.
    If populated, represents where the chunk starts and ends in the document.
    The content of the chunk.
    com.google.protobuf.ByteString
    The content of the chunk.
    boolean
    If populated, represents where the chunk starts and ends in the document.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getText

      String getText()
       The content of the chunk.
       
      string text = 1;
      Returns:
      The text.
    • getTextBytes

      com.google.protobuf.ByteString getTextBytes()
       The content of the chunk.
       
      string text = 1;
      Returns:
      The bytes for text.
    • hasPageSpan

      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:
      Whether the pageSpan field is set.
    • getPageSpan

      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:
      The pageSpan.
    • getPageSpanOrBuilder

      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;