Class ImageGeneration
java.lang.Object
com.alibaba.dashscope.legacy_2x.aigc.imagegeneration.ImageGeneration
Deprecated.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.ImageGeneration(String protocol) Deprecated.ImageGeneration(String protocol, String baseUrl) Deprecated.ImageGeneration(String protocol, String baseUrl, ConnectionOptions connectionOptions) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionasyncCall(ImageGenerationParam param) Deprecated.Call the server to get the whole result.call(ImageGenerationParam param) Deprecated.Call the server to get the whole result.voidcall(ImageGenerationParam param, ResultCallback<ImageGenerationResult> callback) Deprecated.Call the server to get the result in the callback function.cancel(ImageGenerationResult taskInfo, String apiKey) Deprecated.Deprecated.fetch(ImageGenerationResult taskInfo, String apiKey) Deprecated.Deprecated.list(AsyncTaskListParam param) Deprecated.list(String startTime, String endTime, String modelName, String apiKeyId, String region, String status, Integer pageNo, Integer pageSize) Deprecated.io.reactivex.Flowable<ImageGenerationResult>streamCall(ImageGenerationParam param) Deprecated.Call the server to get the result by stream.voidstreamCall(ImageGenerationParam param, ResultCallback<ImageGenerationResult> callback) Deprecated.Call the server to get the result by stream.wait(ImageGenerationResult taskInfo, String apiKey) Deprecated.Deprecated.
-
Constructor Details
-
ImageGeneration
public ImageGeneration()Deprecated. -
ImageGeneration
Deprecated. -
ImageGeneration
Deprecated. -
ImageGeneration
Deprecated.
-
-
Method Details
-
call
public ImageGenerationResult call(ImageGenerationParam param) throws ApiException, NoApiKeyException, UploadFileException Deprecated.Call the server to get the whole result.- Parameters:
param- The input param of class `ImageGenerationParam`.- Returns:
- The output structure of `ImageGenerationResult`.
- Throws:
NoApiKeyException- Can not find api keyUploadFileException- Fail upload failed.ApiException
-
call
public void call(ImageGenerationParam param, ResultCallback<ImageGenerationResult> callback) throws ApiException, NoApiKeyException, UploadFileException Deprecated.Call the server to get the result in the callback function.- Parameters:
param- The input param of class `ImageGenerationParam`.callback- The callback to receive response, the template class is `ImageGenerationResult`.- Throws:
NoApiKeyException- Can not find api keyApiException- The request failed, possibly due to a network or data error.UploadFileException- File upload failed.
-
asyncCall
public ImageGenerationResult asyncCall(ImageGenerationParam param) throws ApiException, NoApiKeyException, UploadFileException Deprecated.Call the server to get the whole result.- Parameters:
param- The input param of class `ImageGenerationParam`.- Returns:
- The output structure of `ImageGenerationResult`.
- Throws:
NoApiKeyException- Can not find api keyUploadFileException- Fail upload failed.ApiException
-
list
public ImageGenerationListResult list(AsyncTaskListParam param) throws ApiException, NoApiKeyException Deprecated.- Throws:
ApiExceptionNoApiKeyException
-
list
public ImageGenerationListResult list(String startTime, String endTime, String modelName, String apiKeyId, String region, String status, Integer pageNo, Integer pageSize) throws ApiException, NoApiKeyException Deprecated.- Throws:
ApiExceptionNoApiKeyException
-
fetch
public ImageGenerationResult fetch(String taskId, String apiKey) throws ApiException, NoApiKeyException Deprecated.- Throws:
ApiExceptionNoApiKeyException
-
fetch
public ImageGenerationResult fetch(ImageGenerationResult taskInfo, String apiKey) throws ApiException, NoApiKeyException Deprecated.- Throws:
ApiExceptionNoApiKeyException
-
cancel
public ImageGenerationResult cancel(String taskId, String apiKey) throws ApiException, NoApiKeyException Deprecated.- Throws:
ApiExceptionNoApiKeyException
-
cancel
public ImageGenerationResult cancel(ImageGenerationResult taskInfo, String apiKey) throws ApiException, NoApiKeyException Deprecated.- Throws:
ApiExceptionNoApiKeyException
-
wait
public ImageGenerationResult wait(String taskId, String apiKey) throws ApiException, NoApiKeyException Deprecated.- Throws:
ApiExceptionNoApiKeyException
-
wait
public ImageGenerationResult wait(ImageGenerationResult taskInfo, String apiKey) throws ApiException, NoApiKeyException Deprecated.- Throws:
ApiExceptionNoApiKeyException
-
streamCall
public io.reactivex.Flowable<ImageGenerationResult> streamCall(ImageGenerationParam param) throws ApiException, NoApiKeyException, UploadFileException Deprecated.Call the server to get the result by stream.- Parameters:
param- The input param of class `ImageGenerationParam`.- 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.UploadFileException- File upload failed.
-
streamCall
public void streamCall(ImageGenerationParam param, ResultCallback<ImageGenerationResult> callback) throws ApiException, NoApiKeyException, InputRequiredException, UploadFileException Deprecated.Call the server to get the result by stream.- Parameters:
param- The input param of class `ImageGenerationParam`.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.UploadFileException- File upload failed.
-