Class OutputHints.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<OutputHints.Builder>
com.google.protobuf.GeneratedMessage.Builder<OutputHints.Builder>
ai.pipestream.data.v1.OutputHints.Builder
All Implemented Interfaces:
OutputHintsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
OutputHints

public static final class OutputHints.Builder extends com.google.protobuf.GeneratedMessage.Builder<OutputHints.Builder> implements OutputHintsOrBuilder
 Output hints for downstream processing and routing.

 Contains routing information and hints for how the document should be
 processed by downstream modules and where it should ultimately be stored/indexed.
 
Protobuf type ai.pipestream.data.v1.OutputHints
  • 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<OutputHints.Builder>
    • internalGetMutableMapFieldReflection

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

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

      public OutputHints.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<OutputHints.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<OutputHints.Builder>
    • getDefaultInstanceForType

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

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

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

      public OutputHints.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<OutputHints.Builder>
    • mergeFrom

      public OutputHints.Builder mergeFrom(OutputHints other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<OutputHints.Builder>
    • mergeFrom

      public OutputHints.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<OutputHints.Builder>
      Throws:
      IOException
    • getDesiredCollection

      public String getDesiredCollection()
       OpenSearch collection/index hint.
      
       Specifies the target collection or index where this document should be indexed.
       
      string desired_collection = 1 [json_name = "desiredCollection"];
      Specified by:
      getDesiredCollection in interface OutputHintsOrBuilder
      Returns:
      The desiredCollection.
    • getDesiredCollectionBytes

      public com.google.protobuf.ByteString getDesiredCollectionBytes()
       OpenSearch collection/index hint.
      
       Specifies the target collection or index where this document should be indexed.
       
      string desired_collection = 1 [json_name = "desiredCollection"];
      Specified by:
      getDesiredCollectionBytes in interface OutputHintsOrBuilder
      Returns:
      The bytes for desiredCollection.
    • setDesiredCollection

      public OutputHints.Builder setDesiredCollection(String value)
       OpenSearch collection/index hint.
      
       Specifies the target collection or index where this document should be indexed.
       
      string desired_collection = 1 [json_name = "desiredCollection"];
      Parameters:
      value - The desiredCollection to set.
      Returns:
      This builder for chaining.
    • clearDesiredCollection

      public OutputHints.Builder clearDesiredCollection()
       OpenSearch collection/index hint.
      
       Specifies the target collection or index where this document should be indexed.
       
      string desired_collection = 1 [json_name = "desiredCollection"];
      Returns:
      This builder for chaining.
    • setDesiredCollectionBytes

      public OutputHints.Builder setDesiredCollectionBytes(com.google.protobuf.ByteString value)
       OpenSearch collection/index hint.
      
       Specifies the target collection or index where this document should be indexed.
       
      string desired_collection = 1 [json_name = "desiredCollection"];
      Parameters:
      value - The bytes for desiredCollection to set.
      Returns:
      This builder for chaining.
    • getRoutingHintsCount

      public int getRoutingHintsCount()
      Description copied from interface: OutputHintsOrBuilder
       Routing hints for downstream modules.
      
       Key-value pairs that modules can use to make routing or processing decisions.
       
      map<string, string> routing_hints = 2 [json_name = "routingHints"];
      Specified by:
      getRoutingHintsCount in interface OutputHintsOrBuilder
    • containsRoutingHints

      public boolean containsRoutingHints(String key)
       Routing hints for downstream modules.
      
       Key-value pairs that modules can use to make routing or processing decisions.
       
      map<string, string> routing_hints = 2 [json_name = "routingHints"];
      Specified by:
      containsRoutingHints in interface OutputHintsOrBuilder
    • getRoutingHints

      @Deprecated public Map<String,String> getRoutingHints()
      Deprecated.
      Specified by:
      getRoutingHints in interface OutputHintsOrBuilder
    • getRoutingHintsMap

      public Map<String,String> getRoutingHintsMap()
       Routing hints for downstream modules.
      
       Key-value pairs that modules can use to make routing or processing decisions.
       
      map<string, string> routing_hints = 2 [json_name = "routingHints"];
      Specified by:
      getRoutingHintsMap in interface OutputHintsOrBuilder
    • getRoutingHintsOrDefault

      public String getRoutingHintsOrDefault(String key, String defaultValue)
       Routing hints for downstream modules.
      
       Key-value pairs that modules can use to make routing or processing decisions.
       
      map<string, string> routing_hints = 2 [json_name = "routingHints"];
      Specified by:
      getRoutingHintsOrDefault in interface OutputHintsOrBuilder
    • getRoutingHintsOrThrow

      public String getRoutingHintsOrThrow(String key)
       Routing hints for downstream modules.
      
       Key-value pairs that modules can use to make routing or processing decisions.
       
      map<string, string> routing_hints = 2 [json_name = "routingHints"];
      Specified by:
      getRoutingHintsOrThrow in interface OutputHintsOrBuilder
    • clearRoutingHints

      public OutputHints.Builder clearRoutingHints()
    • removeRoutingHints

      public OutputHints.Builder removeRoutingHints(String key)
       Routing hints for downstream modules.
      
       Key-value pairs that modules can use to make routing or processing decisions.
       
      map<string, string> routing_hints = 2 [json_name = "routingHints"];
    • getMutableRoutingHints

      @Deprecated public Map<String,String> getMutableRoutingHints()
      Deprecated.
      Use alternate mutation accessors instead.
    • putRoutingHints

      public OutputHints.Builder putRoutingHints(String key, String value)
       Routing hints for downstream modules.
      
       Key-value pairs that modules can use to make routing or processing decisions.
       
      map<string, string> routing_hints = 2 [json_name = "routingHints"];
    • putAllRoutingHints

      public OutputHints.Builder putAllRoutingHints(Map<String,String> values)
       Routing hints for downstream modules.
      
       Key-value pairs that modules can use to make routing or processing decisions.
       
      map<string, string> routing_hints = 2 [json_name = "routingHints"];