Package ai.pipestream.data.v1
Class SemanticProcessingResult.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<SemanticProcessingResult.Builder>
com.google.protobuf.GeneratedMessage.Builder<SemanticProcessingResult.Builder>
ai.pipestream.data.v1.SemanticProcessingResult.Builder
- All Implemented Interfaces:
SemanticProcessingResultOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
SemanticProcessingResult
public static final class SemanticProcessingResult.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SemanticProcessingResult.Builder>
implements SemanticProcessingResultOrBuilder
Complete result of semantic chunking and embedding process. Represents one specific processing configuration applied to a PipeDoc field. A PipeDoc can contain multiple such results from different configurations.Protobuf type
ai.pipestream.data.v1.SemanticProcessingResult-
Method Summary
Modifier and TypeMethodDescriptionaddAllChunks(Iterable<? extends SemanticChunk> values) List of semantic chunks with embeddings from this configuration.addChunks(int index, SemanticChunk value) List of semantic chunks with embeddings from this configuration.addChunks(int index, SemanticChunk.Builder builderForValue) List of semantic chunks with embeddings from this configuration.addChunks(SemanticChunk value) List of semantic chunks with embeddings from this configuration.addChunks(SemanticChunk.Builder builderForValue) List of semantic chunks with embeddings from this configuration.List of semantic chunks with embeddings from this configuration.addChunksBuilder(int index) List of semantic chunks with embeddings from this configuration.build()clear()Identifier for the chunking configuration used.List of semantic chunks with embeddings from this configuration.Identifier for the embedding model/configuration used.Unique identifier for this result set.Generated name for this result set.Name of the PipeDoc field that was processed.booleancontainsMetadata(String key) Processing run metadata (e.g., model version, execution time).Identifier for the chunking configuration used.com.google.protobuf.ByteStringIdentifier for the chunking configuration used.getChunks(int index) List of semantic chunks with embeddings from this configuration.getChunksBuilder(int index) List of semantic chunks with embeddings from this configuration.List of semantic chunks with embeddings from this configuration.intList of semantic chunks with embeddings from this configuration.List of semantic chunks with embeddings from this configuration.getChunksOrBuilder(int index) List of semantic chunks with embeddings from this configuration.List<? extends SemanticChunkOrBuilder> List of semantic chunks with embeddings from this configuration.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorIdentifier for the embedding model/configuration used.com.google.protobuf.ByteStringIdentifier for the embedding model/configuration used.Deprecated.intProcessing run metadata (e.g., model version, execution time).Processing run metadata (e.g., model version, execution time).com.google.protobuf.ValuegetMetadataOrDefault(String key, com.google.protobuf.Value defaultValue) Processing run metadata (e.g., model version, execution time).com.google.protobuf.ValuegetMetadataOrThrow(String key) Processing run metadata (e.g., model version, execution time).Deprecated.Unique identifier for this result set.com.google.protobuf.ByteStringUnique identifier for this result set.Generated name for this result set.com.google.protobuf.ByteStringGenerated name for this result set.Name of the PipeDoc field that was processed.com.google.protobuf.ByteStringName of the PipeDoc field that was processed.booleanGenerated name for this result set.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllMetadata(Map<String, com.google.protobuf.Value> values) Processing run metadata (e.g., model version, execution time).putMetadata(String key, com.google.protobuf.Value value) Processing run metadata (e.g., model version, execution time).com.google.protobuf.Value.BuilderProcessing run metadata (e.g., model version, execution time).removeChunks(int index) List of semantic chunks with embeddings from this configuration.removeMetadata(String key) Processing run metadata (e.g., model version, execution time).setChunkConfigId(String value) Identifier for the chunking configuration used.setChunkConfigIdBytes(com.google.protobuf.ByteString value) Identifier for the chunking configuration used.setChunks(int index, SemanticChunk value) List of semantic chunks with embeddings from this configuration.setChunks(int index, SemanticChunk.Builder builderForValue) List of semantic chunks with embeddings from this configuration.setEmbeddingConfigId(String value) Identifier for the embedding model/configuration used.setEmbeddingConfigIdBytes(com.google.protobuf.ByteString value) Identifier for the embedding model/configuration used.setResultId(String value) Unique identifier for this result set.setResultIdBytes(com.google.protobuf.ByteString value) Unique identifier for this result set.setResultSetName(String value) Generated name for this result set.setResultSetNameBytes(com.google.protobuf.ByteString value) Generated name for this result set.setSourceFieldName(String value) Name of the PipeDoc field that was processed.setSourceFieldNameBytes(com.google.protobuf.ByteString value) Name of the PipeDoc field that was processed.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<SemanticProcessingResult.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<SemanticProcessingResult.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SemanticProcessingResult.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<SemanticProcessingResult.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<SemanticProcessingResult.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<SemanticProcessingResult.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SemanticProcessingResult.Builder>
-
mergeFrom
public SemanticProcessingResult.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<SemanticProcessingResult.Builder>- Throws:
IOException
-
getResultId
Unique identifier for this result set.
string result_id = 1;- Specified by:
getResultIdin interfaceSemanticProcessingResultOrBuilder- Returns:
- The resultId.
-
getResultIdBytes
public com.google.protobuf.ByteString getResultIdBytes()Unique identifier for this result set.
string result_id = 1;- Specified by:
getResultIdBytesin interfaceSemanticProcessingResultOrBuilder- Returns:
- The bytes for resultId.
-
setResultId
Unique identifier for this result set.
string result_id = 1;- Parameters:
value- The resultId to set.- Returns:
- This builder for chaining.
-
clearResultId
Unique identifier for this result set.
string result_id = 1;- Returns:
- This builder for chaining.
-
setResultIdBytes
Unique identifier for this result set.
string result_id = 1;- Parameters:
value- The bytes for resultId to set.- Returns:
- This builder for chaining.
-
getSourceFieldName
Name of the PipeDoc field that was processed. Examples: "body", "title", "abstract"
string source_field_name = 2;- Specified by:
getSourceFieldNamein interfaceSemanticProcessingResultOrBuilder- Returns:
- The sourceFieldName.
-
getSourceFieldNameBytes
public com.google.protobuf.ByteString getSourceFieldNameBytes()Name of the PipeDoc field that was processed. Examples: "body", "title", "abstract"
string source_field_name = 2;- Specified by:
getSourceFieldNameBytesin interfaceSemanticProcessingResultOrBuilder- Returns:
- The bytes for sourceFieldName.
-
setSourceFieldName
Name of the PipeDoc field that was processed. Examples: "body", "title", "abstract"
string source_field_name = 2;- Parameters:
value- The sourceFieldName to set.- Returns:
- This builder for chaining.
-
clearSourceFieldName
Name of the PipeDoc field that was processed. Examples: "body", "title", "abstract"
string source_field_name = 2;- Returns:
- This builder for chaining.
-
setSourceFieldNameBytes
public SemanticProcessingResult.Builder setSourceFieldNameBytes(com.google.protobuf.ByteString value) Name of the PipeDoc field that was processed. Examples: "body", "title", "abstract"
string source_field_name = 2;- Parameters:
value- The bytes for sourceFieldName to set.- Returns:
- This builder for chaining.
-
getChunkConfigId
Identifier for the chunking configuration used. Examples: "sentence_splitter_v1", "token_chunker_512_overlap_50"
string chunk_config_id = 3;- Specified by:
getChunkConfigIdin interfaceSemanticProcessingResultOrBuilder- Returns:
- The chunkConfigId.
-
getChunkConfigIdBytes
public com.google.protobuf.ByteString getChunkConfigIdBytes()Identifier for the chunking configuration used. Examples: "sentence_splitter_v1", "token_chunker_512_overlap_50"
string chunk_config_id = 3;- Specified by:
getChunkConfigIdBytesin interfaceSemanticProcessingResultOrBuilder- Returns:
- The bytes for chunkConfigId.
-
setChunkConfigId
Identifier for the chunking configuration used. Examples: "sentence_splitter_v1", "token_chunker_512_overlap_50"
string chunk_config_id = 3;- Parameters:
value- The chunkConfigId to set.- Returns:
- This builder for chaining.
-
clearChunkConfigId
Identifier for the chunking configuration used. Examples: "sentence_splitter_v1", "token_chunker_512_overlap_50"
string chunk_config_id = 3;- Returns:
- This builder for chaining.
-
setChunkConfigIdBytes
Identifier for the chunking configuration used. Examples: "sentence_splitter_v1", "token_chunker_512_overlap_50"
string chunk_config_id = 3;- Parameters:
value- The bytes for chunkConfigId to set.- Returns:
- This builder for chaining.
-
getEmbeddingConfigId
Identifier for the embedding model/configuration used. Examples: "ada_002_v1", "minilm_l6_v1"
string embedding_config_id = 4;- Specified by:
getEmbeddingConfigIdin interfaceSemanticProcessingResultOrBuilder- Returns:
- The embeddingConfigId.
-
getEmbeddingConfigIdBytes
public com.google.protobuf.ByteString getEmbeddingConfigIdBytes()Identifier for the embedding model/configuration used. Examples: "ada_002_v1", "minilm_l6_v1"
string embedding_config_id = 4;- Specified by:
getEmbeddingConfigIdBytesin interfaceSemanticProcessingResultOrBuilder- Returns:
- The bytes for embeddingConfigId.
-
setEmbeddingConfigId
Identifier for the embedding model/configuration used. Examples: "ada_002_v1", "minilm_l6_v1"
string embedding_config_id = 4;- Parameters:
value- The embeddingConfigId to set.- Returns:
- This builder for chaining.
-
clearEmbeddingConfigId
Identifier for the embedding model/configuration used. Examples: "ada_002_v1", "minilm_l6_v1"
string embedding_config_id = 4;- Returns:
- This builder for chaining.
-
setEmbeddingConfigIdBytes
public SemanticProcessingResult.Builder setEmbeddingConfigIdBytes(com.google.protobuf.ByteString value) Identifier for the embedding model/configuration used. Examples: "ada_002_v1", "minilm_l6_v1"
string embedding_config_id = 4;- Parameters:
value- The bytes for embeddingConfigId to set.- Returns:
- This builder for chaining.
-
hasResultSetName
public boolean hasResultSetName()Generated name for this result set. Used as field name prefix in search indexes or for UI display/selection. Examples: "body_chunks_ada_002", "title_sentences_minilm"
optional string result_set_name = 5;- Specified by:
hasResultSetNamein interfaceSemanticProcessingResultOrBuilder- Returns:
- Whether the resultSetName field is set.
-
getResultSetName
Generated name for this result set. Used as field name prefix in search indexes or for UI display/selection. Examples: "body_chunks_ada_002", "title_sentences_minilm"
optional string result_set_name = 5;- Specified by:
getResultSetNamein interfaceSemanticProcessingResultOrBuilder- Returns:
- The resultSetName.
-
getResultSetNameBytes
public com.google.protobuf.ByteString getResultSetNameBytes()Generated name for this result set. Used as field name prefix in search indexes or for UI display/selection. Examples: "body_chunks_ada_002", "title_sentences_minilm"
optional string result_set_name = 5;- Specified by:
getResultSetNameBytesin interfaceSemanticProcessingResultOrBuilder- Returns:
- The bytes for resultSetName.
-
setResultSetName
Generated name for this result set. Used as field name prefix in search indexes or for UI display/selection. Examples: "body_chunks_ada_002", "title_sentences_minilm"
optional string result_set_name = 5;- Parameters:
value- The resultSetName to set.- Returns:
- This builder for chaining.
-
clearResultSetName
Generated name for this result set. Used as field name prefix in search indexes or for UI display/selection. Examples: "body_chunks_ada_002", "title_sentences_minilm"
optional string result_set_name = 5;- Returns:
- This builder for chaining.
-
setResultSetNameBytes
Generated name for this result set. Used as field name prefix in search indexes or for UI display/selection. Examples: "body_chunks_ada_002", "title_sentences_minilm"
optional string result_set_name = 5;- Parameters:
value- The bytes for resultSetName to set.- Returns:
- This builder for chaining.
-
getChunksList
List of semantic chunks with embeddings from this configuration.
repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6;- Specified by:
getChunksListin interfaceSemanticProcessingResultOrBuilder
-
getChunksCount
public int getChunksCount()List of semantic chunks with embeddings from this configuration.
repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6;- Specified by:
getChunksCountin interfaceSemanticProcessingResultOrBuilder
-
getChunks
List of semantic chunks with embeddings from this configuration.
repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6;- Specified by:
getChunksin interfaceSemanticProcessingResultOrBuilder
-
setChunks
List of semantic chunks with embeddings from this configuration.
repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6; -
setChunks
List of semantic chunks with embeddings from this configuration.
repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6; -
addChunks
List of semantic chunks with embeddings from this configuration.
repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6; -
addChunks
List of semantic chunks with embeddings from this configuration.
repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6; -
addChunks
List of semantic chunks with embeddings from this configuration.
repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6; -
addChunks
List of semantic chunks with embeddings from this configuration.
repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6; -
addAllChunks
List of semantic chunks with embeddings from this configuration.
repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6; -
clearChunks
List of semantic chunks with embeddings from this configuration.
repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6; -
removeChunks
List of semantic chunks with embeddings from this configuration.
repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6; -
getChunksBuilder
List of semantic chunks with embeddings from this configuration.
repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6; -
getChunksOrBuilder
List of semantic chunks with embeddings from this configuration.
repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6;- Specified by:
getChunksOrBuilderin interfaceSemanticProcessingResultOrBuilder
-
getChunksOrBuilderList
List of semantic chunks with embeddings from this configuration.
repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6;- Specified by:
getChunksOrBuilderListin interfaceSemanticProcessingResultOrBuilder
-
addChunksBuilder
List of semantic chunks with embeddings from this configuration.
repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6; -
addChunksBuilder
List of semantic chunks with embeddings from this configuration.
repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6; -
getChunksBuilderList
List of semantic chunks with embeddings from this configuration.
repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6; -
getMetadataCount
public int getMetadataCount()Description copied from interface:SemanticProcessingResultOrBuilderProcessing run metadata (e.g., model version, execution time).
map<string, .google.protobuf.Value> metadata = 7;- Specified by:
getMetadataCountin interfaceSemanticProcessingResultOrBuilder
-
containsMetadata
Processing run metadata (e.g., model version, execution time).
map<string, .google.protobuf.Value> metadata = 7;- Specified by:
containsMetadatain interfaceSemanticProcessingResultOrBuilder
-
getMetadata
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceSemanticProcessingResultOrBuilder
-
getMetadataMap
Processing run metadata (e.g., model version, execution time).
map<string, .google.protobuf.Value> metadata = 7;- Specified by:
getMetadataMapin interfaceSemanticProcessingResultOrBuilder
-
getMetadataOrDefault
public com.google.protobuf.Value getMetadataOrDefault(String key, com.google.protobuf.Value defaultValue) Processing run metadata (e.g., model version, execution time).
map<string, .google.protobuf.Value> metadata = 7;- Specified by:
getMetadataOrDefaultin interfaceSemanticProcessingResultOrBuilder
-
getMetadataOrThrow
Processing run metadata (e.g., model version, execution time).
map<string, .google.protobuf.Value> metadata = 7;- Specified by:
getMetadataOrThrowin interfaceSemanticProcessingResultOrBuilder
-
clearMetadata
-
removeMetadata
Processing run metadata (e.g., model version, execution time).
map<string, .google.protobuf.Value> metadata = 7; -
getMutableMetadata
Deprecated.Use alternate mutation accessors instead. -
putMetadata
Processing run metadata (e.g., model version, execution time).
map<string, .google.protobuf.Value> metadata = 7; -
putAllMetadata
public SemanticProcessingResult.Builder putAllMetadata(Map<String, com.google.protobuf.Value> values) Processing run metadata (e.g., model version, execution time).
map<string, .google.protobuf.Value> metadata = 7; -
putMetadataBuilderIfAbsent
Processing run metadata (e.g., model version, execution time).
map<string, .google.protobuf.Value> metadata = 7;
-