@BetaApi(value="The surface for streaming is not stable yet and may change in the future.") public abstract class ClientStreamingCallable<RequestT,ResponseT> extends Object
It is considered advanced usage for a user to create a ClientStreamingCallable themselves. This class is intended to be created by a generated client class, and configured by instances of StreamingCallSettings.Builder which are exposed through the client settings class.
| Modifier | Constructor and Description |
|---|---|
protected |
ClientStreamingCallable() |
| Modifier and Type | Method and Description |
|---|---|
ApiStreamObserver<RequestT> |
clientStreamingCall(ApiStreamObserver<ResponseT> responseObserver)
Conduct a client streaming call
|
abstract ApiStreamObserver<RequestT> |
clientStreamingCall(ApiStreamObserver<ResponseT> responseObserver,
ApiCallContext context)
Conduct a client streaming call with the given
ApiCallContext |
ClientStreamingCallable<RequestT,ResponseT> |
withDefaultCallContext(ApiCallContext defaultCallContext)
Returns a new
ClientStreamingCallable with an ApiCallContext that is used as a
default when none is supplied in individual calls. |
public abstract ApiStreamObserver<RequestT> clientStreamingCall(ApiStreamObserver<ResponseT> responseObserver, ApiCallContext context)
ApiCallContextresponseObserver - ApiStreamObserver to receive the non-streaming response.context - ApiCallContext to provide context information for the RPC call.ApiStreamObserver which is used for making streaming requests.public ApiStreamObserver<RequestT> clientStreamingCall(ApiStreamObserver<ResponseT> responseObserver)
responseObserver - ApiStreamObserver to receive the non-streaming response.ApiStreamObserver which is used for making streaming requests.public ClientStreamingCallable<RequestT,ResponseT> withDefaultCallContext(ApiCallContext defaultCallContext)
ClientStreamingCallable with an ApiCallContext that is used as a
default when none is supplied in individual calls.defaultCallContext - the default ApiCallContext.