Package ai.pipestream.data.v1
Class SemanticChunk.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<SemanticChunk.Builder>
com.google.protobuf.GeneratedMessage.Builder<SemanticChunk.Builder>
ai.pipestream.data.v1.SemanticChunk.Builder
- All Implemented Interfaces:
SemanticChunkOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
SemanticChunk
public static final class SemanticChunk.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SemanticChunk.Builder>
implements SemanticChunkOrBuilder
Single semantic chunk with its text and embedding.Protobuf type
ai.pipestream.data.v1.SemanticChunk-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Unique identifier for this chunk within its parent result.Sequential number of this chunk within its parent result.Text and embedding information for this chunk.booleancontainsMetadata(String key) Chunk-specific metadata (e.g., page number, section).Unique identifier for this chunk within its parent result.com.google.protobuf.ByteStringUnique identifier for this chunk within its parent result.longSequential number of this chunk within its parent result.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorText and embedding information for this chunk.Text and embedding information for this chunk.Text and embedding information for this chunk.Deprecated.intChunk-specific metadata (e.g., page number, section).Chunk-specific metadata (e.g., page number, section).com.google.protobuf.ValuegetMetadataOrDefault(String key, com.google.protobuf.Value defaultValue) Chunk-specific metadata (e.g., page number, section).com.google.protobuf.ValuegetMetadataOrThrow(String key) Chunk-specific metadata (e.g., page number, section).Deprecated.booleanText and embedding information for this chunk.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeEmbeddingInfo(ChunkEmbedding value) Text and embedding information for this chunk.mergeFrom(SemanticChunk other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllMetadata(Map<String, com.google.protobuf.Value> values) Chunk-specific metadata (e.g., page number, section).putMetadata(String key, com.google.protobuf.Value value) Chunk-specific metadata (e.g., page number, section).com.google.protobuf.Value.BuilderChunk-specific metadata (e.g., page number, section).removeMetadata(String key) Chunk-specific metadata (e.g., page number, section).setChunkId(String value) Unique identifier for this chunk within its parent result.setChunkIdBytes(com.google.protobuf.ByteString value) Unique identifier for this chunk within its parent result.setChunkNumber(long value) Sequential number of this chunk within its parent result.setEmbeddingInfo(ChunkEmbedding value) Text and embedding information for this chunk.setEmbeddingInfo(ChunkEmbedding.Builder builderForValue) Text and embedding information for this chunk.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<SemanticChunk.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<SemanticChunk.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SemanticChunk.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SemanticChunk.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SemanticChunk.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SemanticChunk.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SemanticChunk.Builder>
-
mergeFrom
public SemanticChunk.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SemanticChunk.Builder>- Throws:
IOException
-
getChunkId
Unique identifier for this chunk within its parent result.
string chunk_id = 1;- Specified by:
getChunkIdin interfaceSemanticChunkOrBuilder- Returns:
- The chunkId.
-
getChunkIdBytes
public com.google.protobuf.ByteString getChunkIdBytes()Unique identifier for this chunk within its parent result.
string chunk_id = 1;- Specified by:
getChunkIdBytesin interfaceSemanticChunkOrBuilder- Returns:
- The bytes for chunkId.
-
setChunkId
Unique identifier for this chunk within its parent result.
string chunk_id = 1;- Parameters:
value- The chunkId to set.- Returns:
- This builder for chaining.
-
clearChunkId
Unique identifier for this chunk within its parent result.
string chunk_id = 1;- Returns:
- This builder for chaining.
-
setChunkIdBytes
Unique identifier for this chunk within its parent result.
string chunk_id = 1;- Parameters:
value- The bytes for chunkId to set.- Returns:
- This builder for chaining.
-
getChunkNumber
public long getChunkNumber()Sequential number of this chunk within its parent result.
int64 chunk_number = 2;- Specified by:
getChunkNumberin interfaceSemanticChunkOrBuilder- Returns:
- The chunkNumber.
-
setChunkNumber
Sequential number of this chunk within its parent result.
int64 chunk_number = 2;- Parameters:
value- The chunkNumber to set.- Returns:
- This builder for chaining.
-
clearChunkNumber
Sequential number of this chunk within its parent result.
int64 chunk_number = 2;- Returns:
- This builder for chaining.
-
hasEmbeddingInfo
public boolean hasEmbeddingInfo()Text and embedding information for this chunk.
.ai.pipestream.data.v1.ChunkEmbedding embedding_info = 3;- Specified by:
hasEmbeddingInfoin interfaceSemanticChunkOrBuilder- Returns:
- Whether the embeddingInfo field is set.
-
getEmbeddingInfo
Text and embedding information for this chunk.
.ai.pipestream.data.v1.ChunkEmbedding embedding_info = 3;- Specified by:
getEmbeddingInfoin interfaceSemanticChunkOrBuilder- Returns:
- The embeddingInfo.
-
setEmbeddingInfo
Text and embedding information for this chunk.
.ai.pipestream.data.v1.ChunkEmbedding embedding_info = 3; -
setEmbeddingInfo
Text and embedding information for this chunk.
.ai.pipestream.data.v1.ChunkEmbedding embedding_info = 3; -
mergeEmbeddingInfo
Text and embedding information for this chunk.
.ai.pipestream.data.v1.ChunkEmbedding embedding_info = 3; -
clearEmbeddingInfo
Text and embedding information for this chunk.
.ai.pipestream.data.v1.ChunkEmbedding embedding_info = 3; -
getEmbeddingInfoBuilder
Text and embedding information for this chunk.
.ai.pipestream.data.v1.ChunkEmbedding embedding_info = 3; -
getEmbeddingInfoOrBuilder
Text and embedding information for this chunk.
.ai.pipestream.data.v1.ChunkEmbedding embedding_info = 3;- Specified by:
getEmbeddingInfoOrBuilderin interfaceSemanticChunkOrBuilder
-
getMetadataCount
public int getMetadataCount()Description copied from interface:SemanticChunkOrBuilderChunk-specific metadata (e.g., page number, section).
map<string, .google.protobuf.Value> metadata = 4;- Specified by:
getMetadataCountin interfaceSemanticChunkOrBuilder
-
containsMetadata
Chunk-specific metadata (e.g., page number, section).
map<string, .google.protobuf.Value> metadata = 4;- Specified by:
containsMetadatain interfaceSemanticChunkOrBuilder
-
getMetadata
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceSemanticChunkOrBuilder
-
getMetadataMap
Chunk-specific metadata (e.g., page number, section).
map<string, .google.protobuf.Value> metadata = 4;- Specified by:
getMetadataMapin interfaceSemanticChunkOrBuilder
-
getMetadataOrDefault
public com.google.protobuf.Value getMetadataOrDefault(String key, com.google.protobuf.Value defaultValue) Chunk-specific metadata (e.g., page number, section).
map<string, .google.protobuf.Value> metadata = 4;- Specified by:
getMetadataOrDefaultin interfaceSemanticChunkOrBuilder
-
getMetadataOrThrow
Chunk-specific metadata (e.g., page number, section).
map<string, .google.protobuf.Value> metadata = 4;- Specified by:
getMetadataOrThrowin interfaceSemanticChunkOrBuilder
-
clearMetadata
-
removeMetadata
Chunk-specific metadata (e.g., page number, section).
map<string, .google.protobuf.Value> metadata = 4; -
getMutableMetadata
Deprecated.Use alternate mutation accessors instead. -
putMetadata
Chunk-specific metadata (e.g., page number, section).
map<string, .google.protobuf.Value> metadata = 4; -
putAllMetadata
Chunk-specific metadata (e.g., page number, section).
map<string, .google.protobuf.Value> metadata = 4; -
putMetadataBuilderIfAbsent
Chunk-specific metadata (e.g., page number, section).
map<string, .google.protobuf.Value> metadata = 4;
-