java.lang.Object
java.lang.Enum<StreamingMode>
com.alibaba.dashscope.applications.agentstudio.protocol.StreamingMode
All Implemented Interfaces:
Serializable, Comparable<StreamingMode>, Constable

public enum StreamingMode extends Enum<StreamingMode>
Service streaming mode.
  • Enum Constant Details

    • NONE

      public static final StreamingMode NONE
      one message in, one message out.
    • IN

      public static final StreamingMode IN
      Stream in, one message out.
    • OUT

      public static final StreamingMode OUT
      one message in, stream out.
    • DUPLEX

      public static final StreamingMode DUPLEX
      stream in, stream out.
  • Method Details

    • values

      public static StreamingMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static StreamingMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
    • of

      public static StreamingMode of(String value)