Class HalfDuplexParamBase

java.lang.Object
com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase
Direct Known Subclasses:
ApplicationParam, AsyncTaskListParam, AsyncTaskListParam, AsyncTaskParam, AsyncTaskParam, FlattenHalfDuplexParamBase, GeneralGetParam, HalfDuplexServiceParam

@Deprecated public abstract class HalfDuplexParamBase extends Object
Deprecated.
The user input and parameter.
  • Field Details

    • parameters

      protected Map<String,Object> parameters
      Deprecated.
      The extra parameters.
    • headers

      protected Map<String,Object> headers
      Deprecated.
      The custom http header.
  • Constructor Details

  • Method Details

    • getModel

      public abstract String getModel()
      Deprecated.
    • getParameters

      public abstract Map<String,Object> getParameters()
      Deprecated.
      The service parameters.
      Returns:
      The parameters
    • getHeaders

      public abstract Map<String,String> getHeaders()
      Deprecated.
      The custom http header.
      Returns:
      The headers.
    • getHttpBody

      public abstract com.google.gson.JsonObject getHttpBody()
      Deprecated.
      Get the batch request data. Http body include {"model": "model_name", "input": "input data", "parameters": "The request parameters"}
      Returns:
      The http request body
    • shouldSerializeExplicitNulls

      public boolean shouldSerializeExplicitNulls()
      Deprecated.
      Whether explicitly added JSON null values should be preserved when serializing the HTTP body.
      Returns:
      true to preserve explicit JSON null values
    • getInput

      public abstract Object getInput()
      Deprecated.
      Get the request input data.
      Returns:
      The input data object.
    • getResources

      public abstract Object getResources()
      Deprecated.
      Get the request resources
      Returns:
      The resource object
    • getBinaryData

      public abstract ByteBuffer getBinaryData()
      Deprecated.
      Get the binary data, only websocket, if no binary data, return null.
      Returns:
      The binary data
    • validate

      public abstract void validate() throws InputRequiredException
      Deprecated.
      Validate the input and parameters.
      Throws:
      InputRequiredException - Missing input fields.
    • getApiKey

      public String getApiKey()
      Deprecated.
      The apiKey.
    • isSecurityCheck

      public boolean isSecurityCheck()
      Deprecated.
      Open security check
    • getWorkspace

      public String getWorkspace()
      Deprecated.
      workspace
    • getEnableEncrypt

      public Boolean getEnableEncrypt()
      Deprecated.
    • setApiKey

      public void setApiKey(String apiKey)
      Deprecated.
      The apiKey.
    • setSecurityCheck

      public void setSecurityCheck(boolean securityCheck)
      Deprecated.
      Open security check
    • setWorkspace

      public void setWorkspace(String workspace)
      Deprecated.
      workspace
    • setEnableEncrypt

      public void setEnableEncrypt(Boolean enableEncrypt)
      Deprecated.
    • setParameters

      public void setParameters(Map<String,Object> parameters)
      Deprecated.
      The extra parameters.
    • setHeaders

      public void setHeaders(Map<String,Object> headers)
      Deprecated.
      The custom http header.
    • equals

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

      protected boolean canEqual(Object other)
      Deprecated.
    • hashCode

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

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object