public static final class ImageServiceGrpc.ImageServiceStub extends AbstractAsyncStub<ImageServiceGrpc.ImageServiceStub>A stub to allow clients to do asynchronous rpc calls to service ImageService.
Service that exposes Generative AI (GenAI) endpoints for creating and enhancing product image content.
Inheritance
java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > ImageServiceGrpc.ImageServiceStubMethods
build(Channel channel, CallOptions callOptions)
protected ImageServiceGrpc.ImageServiceStub build(Channel channel, CallOptions callOptions)| Parameters | |
|---|---|
| Name | Description |
channel |
io.grpc.Channel |
callOptions |
io.grpc.CallOptions |
| Returns | |
|---|---|
| Type | Description |
ImageServiceGrpc.ImageServiceStub |
|
generateProductImageBackground(GenerateProductImageBackgroundRequest request, StreamObserver<GenerateProductImageBackgroundResponse> responseObserver)
public void generateProductImageBackground(GenerateProductImageBackgroundRequest request, StreamObserver<GenerateProductImageBackgroundResponse> responseObserver)GenerateProductImageBackground generates a new image where the background of the original image is replaced by an AI generated scene based on provided product information and a text prompt.
| Parameters | |
|---|---|
| Name | Description |
request |
GenerateProductImageBackgroundRequest |
responseObserver |
io.grpc.stub.StreamObserver<GenerateProductImageBackgroundResponse> |
removeProductImageBackground(RemoveProductImageBackgroundRequest request, StreamObserver<RemoveProductImageBackgroundResponse> responseObserver)
public void removeProductImageBackground(RemoveProductImageBackgroundRequest request, StreamObserver<RemoveProductImageBackgroundResponse> responseObserver)RemoveProductImageBackground generates a new image where the background of the original image is removed.
| Parameters | |
|---|---|
| Name | Description |
request |
RemoveProductImageBackgroundRequest |
responseObserver |
io.grpc.stub.StreamObserver<RemoveProductImageBackgroundResponse> |
upscaleProductImage(UpscaleProductImageRequest request, StreamObserver<UpscaleProductImageResponse> responseObserver)
public void upscaleProductImage(UpscaleProductImageRequest request, StreamObserver<UpscaleProductImageResponse> responseObserver)UpscaleProductImage generates a new image where the resolution of the original image is enhanced.
| Parameters | |
|---|---|
| Name | Description |
request |
UpscaleProductImageRequest |
responseObserver |
io.grpc.stub.StreamObserver<UpscaleProductImageResponse> |