@InternalApi(value="For internal use by google-cloud-java clients only") public class GrpcRawCallableFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static <RequestT,ResponseT> |
createBidiStreamingCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings,
Set<com.google.api.gax.rpc.StatusCode.Code> retryableCodes)
Create a bidirectional streaming callable object with grpc-specific functionality.
|
static <RequestT,ResponseT> |
createClientStreamingCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings,
Set<com.google.api.gax.rpc.StatusCode.Code> retryableCodes)
Create a client-streaming callable object with grpc-specific functionality.
|
static <RequestT,ResponseT> |
createServerStreamingCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings,
Set<com.google.api.gax.rpc.StatusCode.Code> retryableCodes)
Create a server-streaming callable with grpc-specific functionality.
|
static <RequestT,ResponseT> |
createUnaryCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings,
Set<com.google.api.gax.rpc.StatusCode.Code> retryableCodes)
Create a Unary callable object with minimal grpc-specific functionality.
|
public static <RequestT,ResponseT> com.google.api.gax.rpc.UnaryCallable<RequestT,ResponseT> createUnaryCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, Set<com.google.api.gax.rpc.StatusCode.Code> retryableCodes)
grpcCallSettings - the gRPC call settingsretryableCodes - the StatusCode.Code that should be marked as retryable@BetaApi(value="The surface for streaming is not stable yet and may change in the future.") public static <RequestT,ResponseT> com.google.api.gax.rpc.BidiStreamingCallable<RequestT,ResponseT> createBidiStreamingCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, Set<com.google.api.gax.rpc.StatusCode.Code> retryableCodes)
grpcCallSettings - the gRPC call settingsretryableCodes - the StatusCode.Code that should be marked as retryableBidiStreamingCallable callable object.@BetaApi(value="The surface for streaming is not stable yet and may change in the future.") public static <RequestT,ResponseT> com.google.api.gax.rpc.ServerStreamingCallable<RequestT,ResponseT> createServerStreamingCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, Set<com.google.api.gax.rpc.StatusCode.Code> retryableCodes)
grpcCallSettings - the gRPC call settingsretryableCodes - the StatusCode.Code that should be marked as retryable@BetaApi(value="The surface for streaming is not stable yet and may change in the future.") public static <RequestT,ResponseT> com.google.api.gax.rpc.ClientStreamingCallable<RequestT,ResponseT> createClientStreamingCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, Set<com.google.api.gax.rpc.StatusCode.Code> retryableCodes)
grpcCallSettings - the gRPC call settingsretryableCodes - the StatusCode.Code that should be marked as retryable