public class HttpJsonGroundedGenerationServiceStub extends GroundedGenerationServiceStub
REST stub implementation for the GroundedGenerationService service API.
This class is for advanced usage and reflects the underlying API directly.
Static Methods
create(ClientContext clientContext)
public static final HttpJsonGroundedGenerationServiceStub create(ClientContext clientContext)
create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
public static final HttpJsonGroundedGenerationServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
create(GroundedGenerationServiceStubSettings settings)
public static final HttpJsonGroundedGenerationServiceStub create(GroundedGenerationServiceStubSettings settings)
getMethodDescriptors()
public static List<ApiMethodDescriptor> getMethodDescriptors()
Constructors
HttpJsonGroundedGenerationServiceStub(GroundedGenerationServiceStubSettings settings, ClientContext clientContext)
protected HttpJsonGroundedGenerationServiceStub(GroundedGenerationServiceStubSettings settings, ClientContext clientContext)
Constructs an instance of HttpJsonGroundedGenerationServiceStub, using the given settings. This
is protected so that it is easy to make a subclass, but otherwise, the static factory methods
should be preferred.
HttpJsonGroundedGenerationServiceStub(GroundedGenerationServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
protected HttpJsonGroundedGenerationServiceStub(GroundedGenerationServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonGroundedGenerationServiceStub, using the given settings. This
is protected so that it is easy to make a subclass, but otherwise, the static factory methods
should be preferred.
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
checkGroundingCallable()
public UnaryCallable<CheckGroundingRequest,CheckGroundingResponse> checkGroundingCallable()
Overrides
close()
public final void close()
Overrides
generateGroundedContentCallable()
public UnaryCallable<GenerateGroundedContentRequest,GenerateGroundedContentResponse> generateGroundedContentCallable()
Overrides
isShutdown()
public boolean isShutdown()
isTerminated()
public boolean isTerminated()
shutdown()
shutdownNow()
public void shutdownNow()
streamGenerateGroundedContentCallable()
public BidiStreamingCallable<GenerateGroundedContentRequest,GenerateGroundedContentResponse> streamGenerateGroundedContentCallable()
Overrides