Class GroundedGenerationServiceGrpc.GroundedGenerationServiceBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<GroundedGenerationServiceGrpc.GroundedGenerationServiceBlockingV2Stub>
com.google.cloud.discoveryengine.v1.GroundedGenerationServiceGrpc.GroundedGenerationServiceBlockingV2Stub
- Enclosing class:
- GroundedGenerationServiceGrpc
public static final class GroundedGenerationServiceGrpc.GroundedGenerationServiceBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<GroundedGenerationServiceGrpc.GroundedGenerationServiceBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service GroundedGenerationService.
Service for grounded generation.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) checkGrounding(CheckGroundingRequest request) Performs a grounding check.Generates grounded content.io.grpc.stub.BlockingClientCall<GenerateGroundedContentRequest,GenerateGroundedContentResponse> Generates grounded content in a streaming fashion.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected GroundedGenerationServiceGrpc.GroundedGenerationServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<GroundedGenerationServiceGrpc.GroundedGenerationServiceBlockingV2Stub>
-
streamGenerateGroundedContent
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<GenerateGroundedContentRequest,GenerateGroundedContentResponse> streamGenerateGroundedContent()Generates grounded content in a streaming fashion.
-
generateGroundedContent
public GenerateGroundedContentResponse generateGroundedContent(GenerateGroundedContentRequest request) throws io.grpc.StatusException Generates grounded content.
- Throws:
io.grpc.StatusException
-
checkGrounding
public CheckGroundingResponse checkGrounding(CheckGroundingRequest request) throws io.grpc.StatusException Performs a grounding check.
- Throws:
io.grpc.StatusException
-