Class Guardrail

java.lang.Object
org.opensearch.ml.common.model.Guardrail
All Implemented Interfaces:
org.opensearch.core.xcontent.ToXContent, org.opensearch.core.xcontent.ToXContentObject

public class Guardrail extends Object implements org.opensearch.core.xcontent.ToXContentObject
  • Field Details

  • Constructor Details

  • Method Details

    • writeTo

      public void writeTo(org.opensearch.core.common.io.stream.StreamOutput out) throws IOException
      Throws:
      IOException
    • toXContent

      public org.opensearch.core.xcontent.XContentBuilder toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.opensearch.core.xcontent.ToXContent
      Throws:
      IOException
    • parse

      public static Guardrail parse(org.opensearch.core.xcontent.XContentParser parser) throws IOException
      Throws:
      IOException
    • builder

      public static Guardrail.GuardrailBuilder builder()
    • toBuilder

      public Guardrail.GuardrailBuilder toBuilder()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

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

      public List<StopWords> getStopWords()
    • getRegex

      public String[] getRegex()