Package com.google.api.gax.grpc
Class GrpcRawCallableFactory
- java.lang.Object
-
- com.google.api.gax.grpc.GrpcRawCallableFactory
-
@InternalApi("For internal use by google-cloud-java clients only") public class GrpcRawCallableFactory extends ObjectClass with utility methods to create low level grpc-based direct callables.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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)Create a bidirectional streaming callable object with grpc-specific functionality.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)Create a client-streaming callable object with grpc-specific functionality.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)Create a server-streaming callable with grpc-specific functionality.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)Create a Unary callable object with minimal grpc-specific functionality.
-
-
-
Method Detail
-
createUnaryCallable
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)
Create a Unary callable object with minimal grpc-specific functionality.- Parameters:
grpcCallSettings- the gRPC call settingsretryableCodes- theStatusCode.Codethat should be marked as retryable
-
createBidiStreamingCallable
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)
Create a bidirectional streaming callable object with grpc-specific functionality. Designed for use by generated code.- Parameters:
grpcCallSettings- the gRPC call settingsretryableCodes- theStatusCode.Codethat should be marked as retryable- Returns:
BidiStreamingCallablecallable object.
-
createServerStreamingCallable
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)
Create a server-streaming callable with grpc-specific functionality. Designed for use by generated code.- Parameters:
grpcCallSettings- the gRPC call settingsretryableCodes- theStatusCode.Codethat should be marked as retryable
-
createClientStreamingCallable
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)
Create a client-streaming callable object with grpc-specific functionality. Designed for use by generated code.- Parameters:
grpcCallSettings- the gRPC call settingsretryableCodes- theStatusCode.Codethat should be marked as retryable
-
-