Class ImageServiceGrpc.ImageServiceFutureStub (0.10.0)

public static final class ImageServiceGrpc.ImageServiceFutureStub extends AbstractFutureStub<ImageServiceGrpc.ImageServiceFutureStub>

A stub to allow clients to do ListenableFuture-style 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.AbstractFutureStub > ImageServiceGrpc.ImageServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected ImageServiceGrpc.ImageServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
ImageServiceGrpc.ImageServiceFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

generateProductImageBackground(GenerateProductImageBackgroundRequest request)

public ListenableFuture<GenerateProductImageBackgroundResponse> generateProductImageBackground(GenerateProductImageBackgroundRequest request)

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.

Parameter
Name Description
request GenerateProductImageBackgroundRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<GenerateProductImageBackgroundResponse>

removeProductImageBackground(RemoveProductImageBackgroundRequest request)

public ListenableFuture<RemoveProductImageBackgroundResponse> removeProductImageBackground(RemoveProductImageBackgroundRequest request)

RemoveProductImageBackground generates a new image where the background of the original image is removed.

Parameter
Name Description
request RemoveProductImageBackgroundRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<RemoveProductImageBackgroundResponse>

upscaleProductImage(UpscaleProductImageRequest request)

public ListenableFuture<UpscaleProductImageResponse> upscaleProductImage(UpscaleProductImageRequest request)

UpscaleProductImage generates a new image where the resolution of the original image is enhanced.

Parameter
Name Description
request UpscaleProductImageRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<UpscaleProductImageResponse>