Class ImageServiceGrpc.ImageServiceBlockingV2Stub (0.20.0)

public static final class ImageServiceGrpc.ImageServiceBlockingV2Stub extends AbstractBlockingStub<ImageServiceGrpc.ImageServiceBlockingV2Stub>

A stub to allow clients to do synchronous 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.AbstractBlockingStub > ImageServiceGrpc.ImageServiceBlockingV2Stub

Methods

build(Channel channel, CallOptions callOptions)

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

generateProductImageBackground(GenerateProductImageBackgroundRequest request)

public 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
GenerateProductImageBackgroundResponse
Exceptions
Type Description
io.grpc.StatusException

removeProductImageBackground(RemoveProductImageBackgroundRequest request)

public 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
RemoveProductImageBackgroundResponse
Exceptions
Type Description
io.grpc.StatusException

upscaleProductImage(UpscaleProductImageRequest request)

public 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
UpscaleProductImageResponse
Exceptions
Type Description
io.grpc.StatusException