Class Result
java.lang.Object
com.alibaba.dashscope.legacy_2x.common.Result
- Direct Known Subclasses:
DashScopeResult
Deprecated.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classResult.ResultBuilder<C extends Result,B extends Result.ResultBuilder<C, B>> Deprecated. -
Constructor Summary
ConstructorsModifierConstructorDescriptionResult()Deprecated.protectedResult(Result.ResultBuilder<?, ?> b) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanDeprecated.booleanDeprecated.protected abstract <T extends Result>
TfromResponse(Protocol protocol, NetworkResponse response) Deprecated.Load data from the server output.abstract <T extends Result>
TfromResponse(Protocol protocol, NetworkResponse response, boolean isFlattenResult) Deprecated.abstract <T extends Result>
TfromResponse(Protocol protocol, NetworkResponse response, boolean isFlattenResult, HalfDuplexRequest req) Deprecated.getCode()Deprecated.The error code from server responseDeprecated.The headers of responseDeprecated.The message from server responseDeprecated.The request id.Deprecated.Deprecated.The HTTP status code from server responsecom.google.gson.JsonElementgetUsage()Deprecated.The usage informationinthashCode()Deprecated.voidDeprecated.The error code from server responsevoidsetHeaders(Map<String, Object> headers) Deprecated.The headers of responsevoidsetMessage(String message) Deprecated.The message from server responsevoidsetRequestId(String requestId) Deprecated.The request id.voidsetStatusCode(Integer statusCode) Deprecated.The HTTP status code from server responsevoidsetUsage(com.google.gson.JsonElement usage) Deprecated.The usage informationtoString()Deprecated.
-
Constructor Details
-
Result
Deprecated. -
Result
public Result()Deprecated.
-
-
Method Details
-
getRequestIdOrUnknown
Deprecated. -
fromResponse
protected abstract <T extends Result> T fromResponse(Protocol protocol, NetworkResponse response) throws ApiException Deprecated.Load data from the server output.- Type Parameters:
T- Object extends `Result`- Parameters:
protocol- The protocol, please check the `Protocol` enum.response- The response.- Returns:
- The result.
- Throws:
ApiException- Failed, possibly due to a data error.
-
fromResponse
public abstract <T extends Result> T fromResponse(Protocol protocol, NetworkResponse response, boolean isFlattenResult) throws ApiException Deprecated.- Throws:
ApiException
-
fromResponse
public abstract <T extends Result> T fromResponse(Protocol protocol, NetworkResponse response, boolean isFlattenResult, HalfDuplexRequest req) throws ApiException Deprecated.- Throws:
ApiException
-
getRequestId
Deprecated.The request id. -
getUsage
public com.google.gson.JsonElement getUsage()Deprecated.The usage information -
getHeaders
Deprecated.The headers of response -
getStatusCode
Deprecated.The HTTP status code from server response -
getCode
Deprecated.The error code from server response -
getMessage
Deprecated.The message from server response -
setRequestId
Deprecated.The request id. -
setUsage
public void setUsage(com.google.gson.JsonElement usage) Deprecated.The usage information -
setHeaders
Deprecated.The headers of response -
setStatusCode
Deprecated.The HTTP status code from server response -
setCode
Deprecated.The error code from server response -
setMessage
Deprecated.The message from server response -
equals
Deprecated. -
canEqual
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-