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 Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<SemanticProcessingResult.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<SemanticProcessingResult.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SemanticProcessingResult.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<SemanticProcessingResult.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SemanticProcessingResult.Builder>
    • getDefaultInstanceForType

      public SemanticProcessingResult getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public SemanticProcessingResult build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public SemanticProcessingResult buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public SemanticProcessingResult.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SemanticProcessingResult.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SemanticProcessingResult.Builder>
      Throws:
      IOException
    • getResultId

      public String getResultId()
       Unique identifier for this result set.
       
      string result_id = 1 [json_name = "resultId"];
      Specified by:
      getResultId in interface SemanticProcessingResultOrBuilder
      Returns:
      The resultId.
    • getResultIdBytes

      public com.google.protobuf.ByteString getResultIdBytes()
       Unique identifier for this result set.
       
      string result_id = 1 [json_name = "resultId"];
      Specified by:
      getResultIdBytes in interface SemanticProcessingResultOrBuilder
      Returns:
      The bytes for resultId.
    • setResultId

      public SemanticProcessingResult.Builder setResultId(String value)
       Unique identifier for this result set.
       
      string result_id = 1 [json_name = "resultId"];
      Parameters:
      value - The resultId to set.
      Returns:
      This builder for chaining.
    • clearResultId

      public SemanticProcessingResult.Builder clearResultId()
       Unique identifier for this result set.
       
      string result_id = 1 [json_name = "resultId"];
      Returns:
      This builder for chaining.
    • setResultIdBytes

      public SemanticProcessingResult.Builder setResultIdBytes(com.google.protobuf.ByteString value)
       Unique identifier for this result set.
       
      string result_id = 1 [json_name = "resultId"];
      Parameters:
      value - The bytes for resultId to set.
      Returns:
      This builder for chaining.
    • getSourceFieldName

      public String getSourceFieldName()
       Name of the PipeDoc field that was processed.
      
       Examples: "body", "title", "abstract"
       
      string source_field_name = 2 [json_name = "sourceFieldName"];
      Specified by:
      getSourceFieldName in interface SemanticProcessingResultOrBuilder
      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 [json_name = "sourceFieldName"];
      Specified by:
      getSourceFieldNameBytes in interface SemanticProcessingResultOrBuilder
      Returns:
      The bytes for sourceFieldName.
    • setSourceFieldName

      public SemanticProcessingResult.Builder setSourceFieldName(String value)
       Name of the PipeDoc field that was processed.
      
       Examples: "body", "title", "abstract"
       
      string source_field_name = 2 [json_name = "sourceFieldName"];
      Parameters:
      value - The sourceFieldName to set.
      Returns:
      This builder for chaining.
    • clearSourceFieldName

      public SemanticProcessingResult.Builder clearSourceFieldName()
       Name of the PipeDoc field that was processed.
      
       Examples: "body", "title", "abstract"
       
      string source_field_name = 2 [json_name = "sourceFieldName"];
      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 [json_name = "sourceFieldName"];
      Parameters:
      value - The bytes for sourceFieldName to set.
      Returns:
      This builder for chaining.
    • getChunkConfigId

      public String getChunkConfigId()
       Identifier for the chunking configuration used.
      
       Examples: "sentence_splitter_v1", "token_chunker_512_overlap_50"
       
      string chunk_config_id = 3 [json_name = "chunkConfigId"];
      Specified by:
      getChunkConfigId in interface SemanticProcessingResultOrBuilder
      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 [json_name = "chunkConfigId"];
      Specified by:
      getChunkConfigIdBytes in interface SemanticProcessingResultOrBuilder
      Returns:
      The bytes for chunkConfigId.
    • setChunkConfigId

      public SemanticProcessingResult.Builder setChunkConfigId(String value)
       Identifier for the chunking configuration used.
      
       Examples: "sentence_splitter_v1", "token_chunker_512_overlap_50"
       
      string chunk_config_id = 3 [json_name = "chunkConfigId"];
      Parameters:
      value - The chunkConfigId to set.
      Returns:
      This builder for chaining.
    • clearChunkConfigId

      public SemanticProcessingResult.Builder clearChunkConfigId()
       Identifier for the chunking configuration used.
      
       Examples: "sentence_splitter_v1", "token_chunker_512_overlap_50"
       
      string chunk_config_id = 3 [json_name = "chunkConfigId"];
      Returns:
      This builder for chaining.
    • setChunkConfigIdBytes

      public SemanticProcessingResult.Builder setChunkConfigIdBytes(com.google.protobuf.ByteString value)
       Identifier for the chunking configuration used.
      
       Examples: "sentence_splitter_v1", "token_chunker_512_overlap_50"
       
      string chunk_config_id = 3 [json_name = "chunkConfigId"];
      Parameters:
      value - The bytes for chunkConfigId to set.
      Returns:
      This builder for chaining.
    • getEmbeddingConfigId

      public String getEmbeddingConfigId()
       Identifier for the embedding model/configuration used.
      
       Examples: "ada_002_v1", "minilm_l6_v1"
       
      string embedding_config_id = 4 [json_name = "embeddingConfigId"];
      Specified by:
      getEmbeddingConfigId in interface SemanticProcessingResultOrBuilder
      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 [json_name = "embeddingConfigId"];
      Specified by:
      getEmbeddingConfigIdBytes in interface SemanticProcessingResultOrBuilder
      Returns:
      The bytes for embeddingConfigId.
    • setEmbeddingConfigId

      public SemanticProcessingResult.Builder setEmbeddingConfigId(String value)
       Identifier for the embedding model/configuration used.
      
       Examples: "ada_002_v1", "minilm_l6_v1"
       
      string embedding_config_id = 4 [json_name = "embeddingConfigId"];
      Parameters:
      value - The embeddingConfigId to set.
      Returns:
      This builder for chaining.
    • clearEmbeddingConfigId

      public SemanticProcessingResult.Builder clearEmbeddingConfigId()
       Identifier for the embedding model/configuration used.
      
       Examples: "ada_002_v1", "minilm_l6_v1"
       
      string embedding_config_id = 4 [json_name = "embeddingConfigId"];
      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 [json_name = "embeddingConfigId"];
      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 [json_name = "resultSetName"];
      Specified by:
      hasResultSetName in interface SemanticProcessingResultOrBuilder
      Returns:
      Whether the resultSetName field is set.
    • getResultSetName

      public String 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 [json_name = "resultSetName"];
      Specified by:
      getResultSetName in interface SemanticProcessingResultOrBuilder
      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 [json_name = "resultSetName"];
      Specified by:
      getResultSetNameBytes in interface SemanticProcessingResultOrBuilder
      Returns:
      The bytes for resultSetName.
    • setResultSetName

      public SemanticProcessingResult.Builder setResultSetName(String value)
       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 [json_name = "resultSetName"];
      Parameters:
      value - The resultSetName to set.
      Returns:
      This builder for chaining.
    • clearResultSetName

      public SemanticProcessingResult.Builder 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 [json_name = "resultSetName"];
      Returns:
      This builder for chaining.
    • setResultSetNameBytes

      public SemanticProcessingResult.Builder setResultSetNameBytes(com.google.protobuf.ByteString value)
       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 [json_name = "resultSetName"];
      Parameters:
      value - The bytes for resultSetName to set.
      Returns:
      This builder for chaining.
    • getChunksList

      public List<SemanticChunk> getChunksList()
       List of semantic chunks with embeddings from this configuration.
       
      repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6 [json_name = "chunks"];
      Specified by:
      getChunksList in interface SemanticProcessingResultOrBuilder
    • getChunksCount

      public int getChunksCount()
       List of semantic chunks with embeddings from this configuration.
       
      repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6 [json_name = "chunks"];
      Specified by:
      getChunksCount in interface SemanticProcessingResultOrBuilder
    • getChunks

      public SemanticChunk getChunks(int index)
       List of semantic chunks with embeddings from this configuration.
       
      repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6 [json_name = "chunks"];
      Specified by:
      getChunks in interface SemanticProcessingResultOrBuilder
    • setChunks

      public SemanticProcessingResult.Builder setChunks(int index, SemanticChunk value)
       List of semantic chunks with embeddings from this configuration.
       
      repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6 [json_name = "chunks"];
    • setChunks

      public SemanticProcessingResult.Builder setChunks(int index, SemanticChunk.Builder builderForValue)
       List of semantic chunks with embeddings from this configuration.
       
      repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6 [json_name = "chunks"];
    • addChunks

       List of semantic chunks with embeddings from this configuration.
       
      repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6 [json_name = "chunks"];
    • addChunks

      public SemanticProcessingResult.Builder addChunks(int index, SemanticChunk value)
       List of semantic chunks with embeddings from this configuration.
       
      repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6 [json_name = "chunks"];
    • addChunks

      public SemanticProcessingResult.Builder addChunks(SemanticChunk.Builder builderForValue)
       List of semantic chunks with embeddings from this configuration.
       
      repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6 [json_name = "chunks"];
    • addChunks

      public SemanticProcessingResult.Builder addChunks(int index, SemanticChunk.Builder builderForValue)
       List of semantic chunks with embeddings from this configuration.
       
      repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6 [json_name = "chunks"];
    • addAllChunks

      public SemanticProcessingResult.Builder addAllChunks(Iterable<? extends SemanticChunk> values)
       List of semantic chunks with embeddings from this configuration.
       
      repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6 [json_name = "chunks"];
    • clearChunks

      public SemanticProcessingResult.Builder clearChunks()
       List of semantic chunks with embeddings from this configuration.
       
      repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6 [json_name = "chunks"];
    • removeChunks

      public SemanticProcessingResult.Builder removeChunks(int index)
       List of semantic chunks with embeddings from this configuration.
       
      repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6 [json_name = "chunks"];
    • getChunksBuilder

      public SemanticChunk.Builder getChunksBuilder(int index)
       List of semantic chunks with embeddings from this configuration.
       
      repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6 [json_name = "chunks"];
    • getChunksOrBuilder

      public SemanticChunkOrBuilder getChunksOrBuilder(int index)
       List of semantic chunks with embeddings from this configuration.
       
      repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6 [json_name = "chunks"];
      Specified by:
      getChunksOrBuilder in interface SemanticProcessingResultOrBuilder
    • getChunksOrBuilderList

      public List<? extends SemanticChunkOrBuilder> getChunksOrBuilderList()
       List of semantic chunks with embeddings from this configuration.
       
      repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6 [json_name = "chunks"];
      Specified by:
      getChunksOrBuilderList in interface SemanticProcessingResultOrBuilder
    • addChunksBuilder

      public SemanticChunk.Builder addChunksBuilder()
       List of semantic chunks with embeddings from this configuration.
       
      repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6 [json_name = "chunks"];
    • addChunksBuilder

      public SemanticChunk.Builder addChunksBuilder(int index)
       List of semantic chunks with embeddings from this configuration.
       
      repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6 [json_name = "chunks"];
    • getChunksBuilderList

      public List<SemanticChunk.Builder> getChunksBuilderList()
       List of semantic chunks with embeddings from this configuration.
       
      repeated .ai.pipestream.data.v1.SemanticChunk chunks = 6 [json_name = "chunks"];
    • getMetadataCount

      public int getMetadataCount()
      Description copied from interface: SemanticProcessingResultOrBuilder
       Processing run metadata (e.g., model version, execution time).
       
      map<string, .google.protobuf.Value> metadata = 7 [json_name = "metadata"];
      Specified by:
      getMetadataCount in interface SemanticProcessingResultOrBuilder
    • containsMetadata

      public boolean containsMetadata(String key)
       Processing run metadata (e.g., model version, execution time).
       
      map<string, .google.protobuf.Value> metadata = 7 [json_name = "metadata"];
      Specified by:
      containsMetadata in interface SemanticProcessingResultOrBuilder
    • getMetadata

      @Deprecated public Map<String,com.google.protobuf.Value> getMetadata()
      Deprecated.
      Use getMetadataMap() instead.
      Specified by:
      getMetadata in interface SemanticProcessingResultOrBuilder
    • getMetadataMap

      public Map<String,com.google.protobuf.Value> getMetadataMap()
       Processing run metadata (e.g., model version, execution time).
       
      map<string, .google.protobuf.Value> metadata = 7 [json_name = "metadata"];
      Specified by:
      getMetadataMap in interface SemanticProcessingResultOrBuilder
    • 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 [json_name = "metadata"];
      Specified by:
      getMetadataOrDefault in interface SemanticProcessingResultOrBuilder
    • getMetadataOrThrow

      public com.google.protobuf.Value getMetadataOrThrow(String key)
       Processing run metadata (e.g., model version, execution time).
       
      map<string, .google.protobuf.Value> metadata = 7 [json_name = "metadata"];
      Specified by:
      getMetadataOrThrow in interface SemanticProcessingResultOrBuilder
    • clearMetadata

      public SemanticProcessingResult.Builder clearMetadata()
    • removeMetadata

      public SemanticProcessingResult.Builder removeMetadata(String key)
       Processing run metadata (e.g., model version, execution time).
       
      map<string, .google.protobuf.Value> metadata = 7 [json_name = "metadata"];
    • getMutableMetadata

      @Deprecated public Map<String,com.google.protobuf.Value> getMutableMetadata()
      Deprecated.
      Use alternate mutation accessors instead.
    • putMetadata

      public SemanticProcessingResult.Builder putMetadata(String key, com.google.protobuf.Value value)
       Processing run metadata (e.g., model version, execution time).
       
      map<string, .google.protobuf.Value> metadata = 7 [json_name = "metadata"];
    • 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 [json_name = "metadata"];
    • putMetadataBuilderIfAbsent

      public com.google.protobuf.Value.Builder putMetadataBuilderIfAbsent(String key)
       Processing run metadata (e.g., model version, execution time).
       
      map<string, .google.protobuf.Value> metadata = 7 [json_name = "metadata"];