Class HalfDuplexParamBase
java.lang.Object
com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase
- Direct Known Subclasses:
ApplicationParam,AsyncTaskListParam,AsyncTaskListParam,AsyncTaskParam,AsyncTaskParam,FlattenHalfDuplexParamBase,GeneralGetParam,HalfDuplexServiceParam
Deprecated.
The user input and parameter.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classHalfDuplexParamBase.HalfDuplexParamBaseBuilder<C extends HalfDuplexParamBase,B extends HalfDuplexParamBase.HalfDuplexParamBaseBuilder<C, B>> Deprecated. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanDeprecated.booleanDeprecated.Deprecated.The apiKey.abstract ByteBufferDeprecated.Get the binary data, only websocket, if no binary data, return null.Deprecated.Deprecated.The custom http header.abstract com.google.gson.JsonObjectDeprecated.Get the batch request data.abstract ObjectgetInput()Deprecated.Get the request input data.abstract StringgetModel()Deprecated.Deprecated.The service parameters.abstract ObjectDeprecated.Get the request resourcesDeprecated.workspaceinthashCode()Deprecated.booleanDeprecated.Open security checkvoidDeprecated.The apiKey.voidsetEnableEncrypt(Boolean enableEncrypt) Deprecated.voidsetHeaders(Map<String, Object> headers) Deprecated.The custom http header.voidsetParameters(Map<String, Object> parameters) Deprecated.The extra parameters.voidsetSecurityCheck(boolean securityCheck) Deprecated.Open security checkvoidsetWorkspace(String workspace) Deprecated.workspacebooleanDeprecated.Whether explicitly added JSON null values should be preserved when serializing the HTTP body.toString()Deprecated.abstract voidvalidate()Deprecated.Validate the input and parameters.
-
Field Details
-
parameters
Deprecated.The extra parameters. -
headers
Deprecated.The custom http header.
-
-
Constructor Details
-
HalfDuplexParamBase
Deprecated.
-
-
Method Details
-
getModel
Deprecated. -
getParameters
Deprecated.The service parameters.- Returns:
- The parameters
-
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:
trueto preserve explicit JSON null values
-
getInput
Deprecated.Get the request input data.- Returns:
- The input data object.
-
getResources
Deprecated.Get the request resources- Returns:
- The resource object
-
getBinaryData
Deprecated.Get the binary data, only websocket, if no binary data, return null.- Returns:
- The binary data
-
validate
Deprecated.Validate the input and parameters.- Throws:
InputRequiredException- Missing input fields.
-
getApiKey
Deprecated.The apiKey. -
isSecurityCheck
public boolean isSecurityCheck()Deprecated.Open security check -
getWorkspace
Deprecated.workspace -
getEnableEncrypt
Deprecated. -
setApiKey
Deprecated.The apiKey. -
setSecurityCheck
public void setSecurityCheck(boolean securityCheck) Deprecated.Open security check -
setWorkspace
Deprecated.workspace -
setEnableEncrypt
Deprecated. -
setParameters
Deprecated.The extra parameters. -
setHeaders
Deprecated.The custom http header. -
equals
Deprecated. -
canEqual
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-