Class Left1

java.lang.Object
com.sap.ai.sdk.grounding.model.Left1

public class Left1 extends Object
Left operand of the boolean expression
  • Constructor Details

    • Left1

      protected Left1()
      Default constructor for Left1.
  • Method Details

    • operator

      @Nonnull public Left1 operator(@Nonnull Left1.OperatorEnum operator)
      Set the operator of this Left1 instance and return the same instance.
      Parameters:
      operator - Boolean operator for combining filter conditions
      Returns:
      The same instance of this Left1 class
    • getOperator

      @Nonnull public Left1.OperatorEnum getOperator()
      Boolean operator for combining filter conditions
      Returns:
      operator The operator of this Left1 instance.
    • setOperator

      public void setOperator(@Nonnull Left1.OperatorEnum operator)
      Set the operator of this Left1 instance.
      Parameters:
      operator - Boolean operator for combining filter conditions
    • left

      @Nonnull public Left1 left(@Nonnull Left1 left)
      Set the left of this Left1 instance and return the same instance.
      Parameters:
      left - The left of this Left1
      Returns:
      The same instance of this Left1 class
    • getLeft

      @Nonnull public Left1 getLeft()
      Get left
      Returns:
      left The left of this Left1 instance.
    • setLeft

      public void setLeft(@Nonnull Left1 left)
      Set the left of this Left1 instance.
      Parameters:
      left - The left of this Left1
    • right

      @Nonnull public Left1 right(@Nonnull Right1 right)
      Set the right of this Left1 instance and return the same instance.
      Parameters:
      right - The right of this Left1
      Returns:
      The same instance of this Left1 class
    • getRight

      @Nonnull public Right1 getRight()
      Get right
      Returns:
      right The right of this Left1 instance.
    • setRight

      public void setRight(@Nonnull Right1 right)
      Set the right of this Left1 instance.
      Parameters:
      right - The right of this Left1
    • key

      @Nonnull public Left1 key(@Nonnull String key)
      Set the key of this Left1 instance and return the same instance.
      Parameters:
      key - The key of this Left1
      Returns:
      The same instance of this Left1 class
    • getKey

      @Nonnull public String getKey()
      Get key
      Returns:
      key The key of this Left1 instance.
    • setKey

      public void setKey(@Nonnull String key)
      Set the key of this Left1 instance.
      Parameters:
      key - The key of this Left1
    • value

      @Nonnull public Left1 value(@Nonnull List<String> value)
      Set the value of this Left1 instance and return the same instance.
      Parameters:
      value - The value of this Left1
      Returns:
      The same instance of this Left1 class
    • addValueItem

      @Nonnull public Left1 addValueItem(@Nonnull String valueItem)
      Add one value instance to this Left1.
      Parameters:
      valueItem - The value that should be added
      Returns:
      The same instance of type Left1
    • getValue

      @Nonnull public List<String> getValue()
      Get value
      Returns:
      value The value of this Left1 instance.
    • setValue

      public void setValue(@Nonnull List<String> value)
      Set the value of this Left1 instance.
      Parameters:
      value - The value of this Left1
    • scope

      @Nonnull public Left1 scope(@Nullable Left1.ScopeEnum scope)
      Set the scope of this Left1 instance and return the same instance.
      Parameters:
      scope - Scope of the metadata filter (e.g., collection, document, chunk)
      Returns:
      The same instance of this Left1 class
    • getScope

      @Nonnull public Left1.ScopeEnum getScope()
      Scope of the metadata filter (e.g., collection, document, chunk)
      Returns:
      scope The scope of this Left1 instance.
    • setScope

      public void setScope(@Nullable Left1.ScopeEnum scope)
      Set the scope of this Left1 instance.
      Parameters:
      scope - Scope of the metadata filter (e.g., collection, document, chunk)
    • getCustomFieldNames

      @Nonnull public Set<String> getCustomFieldNames()
      Get the names of the unrecognizable properties of the Left1.
      Returns:
      The set of properties names
    • getCustomField

      @Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException
      Deprecated.
      Use toMap() instead.
      Get the value of an unrecognizable property of this Left1 instance.
      Parameters:
      name - The name of the property
      Returns:
      The value of the property
      Throws:
      NoSuchElementException - If no property with the given name could be found.
    • toMap

      @Nonnull public Map<String,Object> toMap()
      Get the value of all properties of this Left1 instance including unrecognized properties.
      Returns:
      The map of all properties
    • setCustomField

      public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue)
      Set an unrecognizable property of this Left1 instance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.
      Parameters:
      customFieldName - The name of the property
      customFieldValue - The value of the property
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object
    • create

      public static Left1.Builder create()
      Create a type-safe, fluent-api builder object to construct a new Left1 instance with all required arguments.