Class TextSuggestionsServiceGrpc.TextSuggestionsServiceStub (0.2.0)

public static final class TextSuggestionsServiceGrpc.TextSuggestionsServiceStub extends AbstractAsyncStub<TextSuggestionsServiceGrpc.TextSuggestionsServiceStub>

A stub to allow clients to do asynchronous rpc calls to service TextSuggestionsService.

Service that exposes Generative AI (GenAI) endpoints for creating and enhancing product text content, such as titles, descriptions, etc.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > TextSuggestionsServiceGrpc.TextSuggestionsServiceStub

Methods

build(Channel channel, CallOptions callOptions)

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

generateProductTextSuggestions(GenerateProductTextSuggestionsRequest request, StreamObserver<GenerateProductTextSuggestionsResponse> responseObserver)

public void generateProductTextSuggestions(GenerateProductTextSuggestionsRequest request, StreamObserver<GenerateProductTextSuggestionsResponse> responseObserver)

GenerateProductTextSuggestions generates a set of candidate text completions (e.g., product titles, descriptions) based on provided product information. This endpoint leverages GenAI models to create suggestions for improving existing product text or generating new content.

Parameters
Name Description
request GenerateProductTextSuggestionsRequest
responseObserver io.grpc.stub.StreamObserver<GenerateProductTextSuggestionsResponse>