java.lang.Object
com.google.genai.gaos.models.interactions.Method

public class Method extends Object
Method

Optional. The method for blocking content. If not specified, the default behavior is to use the probability score.

  • Field Details

    • SEVERITY

      public static final Method SEVERITY
    • PROBABILITY

      public static final Method PROBABILITY
  • Method Details

    • of

      public static Method of(String value)
      Returns a Method with the given value. For a specific value the returned object will always be a singleton so reference equality is satisfied when the values are the same.
      Parameters:
      value - value to be wrapped as Method
    • value

      public String value()
    • asEnum

      public Optional<Method.MethodEnum> asEnum()
    • isKnown

      public boolean isKnown()
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • values

      public static Method[] values()