Class CodeGeneration
java.lang.Object
com.alibaba.dashscope.legacy_2x.aigc.codegeneration.CodeGeneration
Deprecated.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.static classDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.CodeGeneration(String protocol) Deprecated.CodeGeneration(String protocol, String baseUrl) Deprecated.CodeGeneration(String protocol, String baseUrl, ConnectionOptions connectionOptions) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptioncall(CodeGenerationParam param) Deprecated.Call the server to get the whole result.voidcall(CodeGenerationParam param, ResultCallback<CodeGenerationResult> callback) Deprecated.Call the server to get the result in the callback function.io.reactivex.Flowable<CodeGenerationResult>streamCall(CodeGenerationParam param) Deprecated.Call the server to get the result by stream.voidstreamCall(CodeGenerationParam param, ResultCallback<CodeGenerationResult> callback) Deprecated.Call the server to get the result by stream.
-
Constructor Details
-
CodeGeneration
public CodeGeneration()Deprecated. -
CodeGeneration
Deprecated. -
CodeGeneration
Deprecated. -
CodeGeneration
Deprecated.
-
-
Method Details
-
call
public CodeGenerationResult call(CodeGenerationParam param) throws ApiException, NoApiKeyException, InputRequiredException Deprecated.Call the server to get the whole result.- Parameters:
param- The input param of class `CodeGenerationParam`.- Returns:
- The output structure of `CodeGenerationResult`.
- Throws:
NoApiKeyException- Can not find api keyInputRequiredException- Missing inputs.ApiException
-
call
public void call(CodeGenerationParam param, ResultCallback<CodeGenerationResult> callback) throws ApiException, NoApiKeyException, InputRequiredException Deprecated.Call the server to get the result in the callback function.- Parameters:
param- The input param of class `CodeGenerationParam`.callback- The callback to receive response, the template class is `CodeGenerationResult`.- Throws:
NoApiKeyException- Can not find api keyApiException- The request failed, possibly due to a network or data error.InputRequiredException- Missing inputs.
-
streamCall
public io.reactivex.Flowable<CodeGenerationResult> streamCall(CodeGenerationParam param) throws ApiException, NoApiKeyException, InputRequiredException Deprecated.Call the server to get the result by stream.- Parameters:
param- The input param of class `CodeGenerationParam`.- Returns:
- A `Flowable` of the output structure.
- Throws:
NoApiKeyException- Can not find api keyApiException- The request failed, possibly due to a network or data error.InputRequiredException- Missing inputs.
-
streamCall
public void streamCall(CodeGenerationParam param, ResultCallback<CodeGenerationResult> callback) throws ApiException, NoApiKeyException, InputRequiredException Deprecated.Call the server to get the result by stream.- Parameters:
param- The input param of class `CodeGenerationParam`.callback- The result callback.- Throws:
NoApiKeyException- Can not find api keyApiException- The request failed, possibly due to a network or data error.InputRequiredException- The input field is missing.
-