Package ai.pipestream.data.v1
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 ClassesModifier and TypeClassDescriptionstatic final classText 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.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanIdentifier for the chunking configuration used.com.google.protobuf.ByteStringIdentifier for the chunking configuration used.Identifier for a group of related chunks.com.google.protobuf.ByteStringIdentifier for a group of related chunks.Unique identifier for this chunk.com.google.protobuf.ByteStringUnique identifier for this chunk.static ChunkEmbeddingstatic final com.google.protobuf.Descriptors.DescriptorintCharacter offset where chunk ends in original document.intCharacter offset where chunk starts in original document.com.google.protobuf.Parser<ChunkEmbedding> intActual text content of the chunk.com.google.protobuf.ByteStringActual text content of the chunk.floatgetVector(int index) Vector embedding for this chunk's text.intVector embedding for this chunk's text.Vector embedding for this chunk's text.booleanIdentifier for the chunking configuration used.booleanIdentifier for a group of related chunks.booleanUnique identifier for this chunk.inthashCode()booleanCharacter offset where chunk ends in original document.booleanCharacter offset where chunk starts in original document.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic ChunkEmbedding.Builderstatic ChunkEmbedding.BuildernewBuilder(ChunkEmbedding prototype) protected ChunkEmbedding.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ChunkEmbeddingparseDelimitedFrom(InputStream input) static ChunkEmbeddingparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ChunkEmbeddingparseFrom(byte[] data) static ChunkEmbeddingparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ChunkEmbeddingparseFrom(com.google.protobuf.ByteString data) static ChunkEmbeddingparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ChunkEmbeddingparseFrom(com.google.protobuf.CodedInputStream input) static ChunkEmbeddingparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ChunkEmbeddingparseFrom(InputStream input) static ChunkEmbeddingparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ChunkEmbeddingparseFrom(ByteBuffer data) static ChunkEmbeddingparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ChunkEmbedding> parser()voidwriteTo(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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getTextContent
Actual text content of the chunk.
string text_content = 1;- Specified by:
getTextContentin interfaceChunkEmbeddingOrBuilder- Returns:
- The textContent.
-
getTextContentBytes
public com.google.protobuf.ByteString getTextContentBytes()Actual text content of the chunk.
string text_content = 1;- Specified by:
getTextContentBytesin interfaceChunkEmbeddingOrBuilder- Returns:
- The bytes for textContent.
-
getVectorList
Vector embedding for this chunk's text.
repeated float vector = 2;- Specified by:
getVectorListin interfaceChunkEmbeddingOrBuilder- Returns:
- A list containing the vector.
-
getVectorCount
public int getVectorCount()Vector embedding for this chunk's text.
repeated float vector = 2;- Specified by:
getVectorCountin interfaceChunkEmbeddingOrBuilder- Returns:
- The count of vector.
-
getVector
public float getVector(int index) Vector embedding for this chunk's text.
repeated float vector = 2;- Specified by:
getVectorin interfaceChunkEmbeddingOrBuilder- 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;- Specified by:
hasChunkIdin interfaceChunkEmbeddingOrBuilder- Returns:
- Whether the chunkId field is set.
-
getChunkId
Unique identifier for this chunk.
optional string chunk_id = 3;- Specified by:
getChunkIdin interfaceChunkEmbeddingOrBuilder- Returns:
- The chunkId.
-
getChunkIdBytes
public com.google.protobuf.ByteString getChunkIdBytes()Unique identifier for this chunk.
optional string chunk_id = 3;- Specified by:
getChunkIdBytesin interfaceChunkEmbeddingOrBuilder- Returns:
- The bytes for chunkId.
-
hasOriginalCharStartOffset
public boolean hasOriginalCharStartOffset()Character offset where chunk starts in original document.
optional int32 original_char_start_offset = 4;- Specified by:
hasOriginalCharStartOffsetin interfaceChunkEmbeddingOrBuilder- 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;- Specified by:
getOriginalCharStartOffsetin interfaceChunkEmbeddingOrBuilder- Returns:
- The originalCharStartOffset.
-
hasOriginalCharEndOffset
public boolean hasOriginalCharEndOffset()Character offset where chunk ends in original document.
optional int32 original_char_end_offset = 5;- Specified by:
hasOriginalCharEndOffsetin interfaceChunkEmbeddingOrBuilder- 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;- Specified by:
getOriginalCharEndOffsetin interfaceChunkEmbeddingOrBuilder- Returns:
- The originalCharEndOffset.
-
hasChunkGroupId
public boolean hasChunkGroupId()Identifier for a group of related chunks.
optional string chunk_group_id = 6;- Specified by:
hasChunkGroupIdin interfaceChunkEmbeddingOrBuilder- Returns:
- Whether the chunkGroupId field is set.
-
getChunkGroupId
Identifier for a group of related chunks.
optional string chunk_group_id = 6;- Specified by:
getChunkGroupIdin interfaceChunkEmbeddingOrBuilder- Returns:
- The chunkGroupId.
-
getChunkGroupIdBytes
public com.google.protobuf.ByteString getChunkGroupIdBytes()Identifier for a group of related chunks.
optional string chunk_group_id = 6;- Specified by:
getChunkGroupIdBytesin interfaceChunkEmbeddingOrBuilder- Returns:
- The bytes for chunkGroupId.
-
hasChunkConfigId
public boolean hasChunkConfigId()Identifier for the chunking configuration used.
optional string chunk_config_id = 7;- Specified by:
hasChunkConfigIdin interfaceChunkEmbeddingOrBuilder- Returns:
- Whether the chunkConfigId field is set.
-
getChunkConfigId
Identifier for the chunking configuration used.
optional string chunk_config_id = 7;- Specified by:
getChunkConfigIdin interfaceChunkEmbeddingOrBuilder- Returns:
- The chunkConfigId.
-
getChunkConfigIdBytes
public com.google.protobuf.ByteString getChunkConfigIdBytes()Identifier for the chunking configuration used.
optional string chunk_config_id = 7;- Specified by:
getChunkConfigIdBytesin interfaceChunkEmbeddingOrBuilder- Returns:
- The bytes for chunkConfigId.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static ChunkEmbedding parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ChunkEmbedding.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-