Class ChunkEmbedding

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
ai.pipestream.data.v1.ChunkEmbedding
All Implemented Interfaces:
ChunkEmbeddingOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ChunkEmbedding extends com.google.protobuf.GeneratedMessage implements ChunkEmbeddingOrBuilder
 Text content and vector embedding for a single chunk.
 
Protobuf type ai.pipestream.data.v1.ChunkEmbedding
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Text content and vector embedding for a single chunk.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Identifier for the chunking configuration used.
    com.google.protobuf.ByteString
    Identifier for the chunking configuration used.
    Identifier for a group of related chunks.
    com.google.protobuf.ByteString
    Identifier for a group of related chunks.
    Unique identifier for this chunk.
    com.google.protobuf.ByteString
    Unique identifier for this chunk.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    int
    Character offset where chunk ends in original document.
    int
    Character offset where chunk starts in original document.
    com.google.protobuf.Parser<ChunkEmbedding>
     
    int
     
    Actual text content of the chunk.
    com.google.protobuf.ByteString
    Actual text content of the chunk.
    float
    getVector(int index)
    Vector embedding for this chunk's text.
    int
    Vector embedding for this chunk's text.
    Vector embedding for this chunk's text.
    boolean
    Identifier for the chunking configuration used.
    boolean
    Identifier for a group of related chunks.
    boolean
    Unique identifier for this chunk.
    int
     
    boolean
    Character offset where chunk ends in original document.
    boolean
    Character offset where chunk starts in original document.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<ChunkEmbedding>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

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

    • TEXT_CONTENT_FIELD_NUMBER

      public static final int TEXT_CONTENT_FIELD_NUMBER
      See Also:
    • VECTOR_FIELD_NUMBER

      public static final int VECTOR_FIELD_NUMBER
      See Also:
    • CHUNK_ID_FIELD_NUMBER

      public static final int CHUNK_ID_FIELD_NUMBER
      See Also:
    • ORIGINAL_CHAR_START_OFFSET_FIELD_NUMBER

      public static final int ORIGINAL_CHAR_START_OFFSET_FIELD_NUMBER
      See Also:
    • ORIGINAL_CHAR_END_OFFSET_FIELD_NUMBER

      public static final int ORIGINAL_CHAR_END_OFFSET_FIELD_NUMBER
      See Also:
    • CHUNK_GROUP_ID_FIELD_NUMBER

      public static final int CHUNK_GROUP_ID_FIELD_NUMBER
      See Also:
    • CHUNK_CONFIG_ID_FIELD_NUMBER

      public static final int CHUNK_CONFIG_ID_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getTextContent

      public String getTextContent()
       Actual text content of the chunk.
       
      string text_content = 1 [json_name = "textContent"];
      Specified by:
      getTextContent in interface ChunkEmbeddingOrBuilder
      Returns:
      The textContent.
    • getTextContentBytes

      public com.google.protobuf.ByteString getTextContentBytes()
       Actual text content of the chunk.
       
      string text_content = 1 [json_name = "textContent"];
      Specified by:
      getTextContentBytes in interface ChunkEmbeddingOrBuilder
      Returns:
      The bytes for textContent.
    • getVectorList

      public List<Float> getVectorList()
       Vector embedding for this chunk's text.
       
      repeated float vector = 2 [json_name = "vector"];
      Specified by:
      getVectorList in interface ChunkEmbeddingOrBuilder
      Returns:
      A list containing the vector.
    • getVectorCount

      public int getVectorCount()
       Vector embedding for this chunk's text.
       
      repeated float vector = 2 [json_name = "vector"];
      Specified by:
      getVectorCount in interface ChunkEmbeddingOrBuilder
      Returns:
      The count of vector.
    • getVector

      public float getVector(int index)
       Vector embedding for this chunk's text.
       
      repeated float vector = 2 [json_name = "vector"];
      Specified by:
      getVector in interface ChunkEmbeddingOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The vector at the given index.
    • hasChunkId

      public boolean hasChunkId()
       Unique identifier for this chunk.
       
      optional string chunk_id = 3 [json_name = "chunkId"];
      Specified by:
      hasChunkId in interface ChunkEmbeddingOrBuilder
      Returns:
      Whether the chunkId field is set.
    • getChunkId

      public String getChunkId()
       Unique identifier for this chunk.
       
      optional string chunk_id = 3 [json_name = "chunkId"];
      Specified by:
      getChunkId in interface ChunkEmbeddingOrBuilder
      Returns:
      The chunkId.
    • getChunkIdBytes

      public com.google.protobuf.ByteString getChunkIdBytes()
       Unique identifier for this chunk.
       
      optional string chunk_id = 3 [json_name = "chunkId"];
      Specified by:
      getChunkIdBytes in interface ChunkEmbeddingOrBuilder
      Returns:
      The bytes for chunkId.
    • hasOriginalCharStartOffset

      public boolean hasOriginalCharStartOffset()
       Character offset where chunk starts in original document.
       
      optional int32 original_char_start_offset = 4 [json_name = "originalCharStartOffset"];
      Specified by:
      hasOriginalCharStartOffset in interface ChunkEmbeddingOrBuilder
      Returns:
      Whether the originalCharStartOffset field is set.
    • getOriginalCharStartOffset

      public int getOriginalCharStartOffset()
       Character offset where chunk starts in original document.
       
      optional int32 original_char_start_offset = 4 [json_name = "originalCharStartOffset"];
      Specified by:
      getOriginalCharStartOffset in interface ChunkEmbeddingOrBuilder
      Returns:
      The originalCharStartOffset.
    • hasOriginalCharEndOffset

      public boolean hasOriginalCharEndOffset()
       Character offset where chunk ends in original document.
       
      optional int32 original_char_end_offset = 5 [json_name = "originalCharEndOffset"];
      Specified by:
      hasOriginalCharEndOffset in interface ChunkEmbeddingOrBuilder
      Returns:
      Whether the originalCharEndOffset field is set.
    • getOriginalCharEndOffset

      public int getOriginalCharEndOffset()
       Character offset where chunk ends in original document.
       
      optional int32 original_char_end_offset = 5 [json_name = "originalCharEndOffset"];
      Specified by:
      getOriginalCharEndOffset in interface ChunkEmbeddingOrBuilder
      Returns:
      The originalCharEndOffset.
    • hasChunkGroupId

      public boolean hasChunkGroupId()
       Identifier for a group of related chunks.
       
      optional string chunk_group_id = 6 [json_name = "chunkGroupId"];
      Specified by:
      hasChunkGroupId in interface ChunkEmbeddingOrBuilder
      Returns:
      Whether the chunkGroupId field is set.
    • getChunkGroupId

      public String getChunkGroupId()
       Identifier for a group of related chunks.
       
      optional string chunk_group_id = 6 [json_name = "chunkGroupId"];
      Specified by:
      getChunkGroupId in interface ChunkEmbeddingOrBuilder
      Returns:
      The chunkGroupId.
    • getChunkGroupIdBytes

      public com.google.protobuf.ByteString getChunkGroupIdBytes()
       Identifier for a group of related chunks.
       
      optional string chunk_group_id = 6 [json_name = "chunkGroupId"];
      Specified by:
      getChunkGroupIdBytes in interface ChunkEmbeddingOrBuilder
      Returns:
      The bytes for chunkGroupId.
    • hasChunkConfigId

      public boolean hasChunkConfigId()
       Identifier for the chunking configuration used.
       
      optional string chunk_config_id = 7 [json_name = "chunkConfigId"];
      Specified by:
      hasChunkConfigId in interface ChunkEmbeddingOrBuilder
      Returns:
      Whether the chunkConfigId field is set.
    • getChunkConfigId

      public String getChunkConfigId()
       Identifier for the chunking configuration used.
       
      optional string chunk_config_id = 7 [json_name = "chunkConfigId"];
      Specified by:
      getChunkConfigId in interface ChunkEmbeddingOrBuilder
      Returns:
      The chunkConfigId.
    • getChunkConfigIdBytes

      public com.google.protobuf.ByteString getChunkConfigIdBytes()
       Identifier for the chunking configuration used.
       
      optional string chunk_config_id = 7 [json_name = "chunkConfigId"];
      Specified by:
      getChunkConfigIdBytes in interface ChunkEmbeddingOrBuilder
      Returns:
      The bytes for chunkConfigId.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ChunkEmbedding parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ChunkEmbedding parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ChunkEmbedding parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ChunkEmbedding parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ChunkEmbedding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ChunkEmbedding parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ChunkEmbedding parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ChunkEmbedding parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ChunkEmbedding parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ChunkEmbedding parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ChunkEmbedding parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ChunkEmbedding parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ChunkEmbedding.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ChunkEmbedding.Builder newBuilder()
    • newBuilder

      public static ChunkEmbedding.Builder newBuilder(ChunkEmbedding prototype)
    • toBuilder

      public ChunkEmbedding.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ChunkEmbedding.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ChunkEmbedding getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ChunkEmbedding> parser()
    • getParserForType

      public com.google.protobuf.Parser<ChunkEmbedding> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public ChunkEmbedding getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder