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
    The ID of the chunk.
    com.google.protobuf.ByteString
    The ID of the chunk.
    The ID of the file that the chunk belongs to.
    com.google.protobuf.ByteString
    The ID of the file that the chunk belongs to.
    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.v1beta1.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.v1beta1.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.v1beta1.RagChunk.PageSpan page_span = 2;
    • getFileId

      String getFileId()
       The ID of the file that the chunk belongs to.
       
      string file_id = 3;
      Returns:
      The fileId.
    • getFileIdBytes

      com.google.protobuf.ByteString getFileIdBytes()
       The ID of the file that the chunk belongs to.
       
      string file_id = 3;
      Returns:
      The bytes for fileId.
    • getChunkId

      String getChunkId()
       The ID of the chunk.
       
      string chunk_id = 4;
      Returns:
      The chunkId.
    • getChunkIdBytes

      com.google.protobuf.ByteString getChunkIdBytes()
       The ID of the chunk.
       
      string chunk_id = 4;
      Returns:
      The bytes for chunkId.