Class GrpcRawCallableFactory


  • @InternalApi("For internal use by google-cloud-java clients only")
    public class GrpcRawCallableFactory
    extends Object
    Class 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 settings
        retryableCodes - the StatusCode.Code that 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 settings
        retryableCodes - the StatusCode.Code that should be marked as retryable
        Returns:
        BidiStreamingCallable callable 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 settings
        retryableCodes - the StatusCode.Code that 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 settings
        retryableCodes - the StatusCode.Code that should be marked as retryable