google/cloud/documentai_v1beta2/services/document_understanding_service/transports/grpc.py
def process_document(
        self,
    ) -> Callable[[document_understanding.ProcessDocumentRequest], document.Document]:
        r"""Return a callable for the process document method over gRPC.

        Processes a single document.

        Returns:
            Callable[[~.ProcessDocumentRequest],
                    ~.Document]:
                A function that, when called, will call the underlying RPC
                on the server.
        """
        # Generate a "stub function" on-the-fly which will actually make
        # the request.
        # gRPC handles serialization and deserialization, so we just need
        # to pass in the functions for each.
        if "process_document" not in self._stubs:
            self._stubs["process_document"] = self.grpc_channel.unary_unary(
                "/google.cloud.documentai.v1beta2.DocumentUnderstandingService/ProcessDocument",
                request_serializer=document_understanding.ProcessDocumentRequest.serialize,
                response_deserializer=document.Document.deserialize,
            )
        return self._stubs["process_document"]
r"""Return a callable for the process document method over gRPC.

        Processes a single document.

        Returns:
            Callable[[~.ProcessDocumentRequest],
                    ~.Document]:
                A function that, when called, will call the underlying RPC
                on the server.
        
r"""Return a callable for the process document method over gRPC.
Processes a single document.
r " " " Return a callable for the process document method over gRPC . Processes a single document .
def process_document(
        self,
    ) -> Callable[[document_understanding.ProcessDocumentRequest], document.Document]:
        if "process_document" not in self._stubs:
            self._stubs["process_document"] = self.grpc_channel.unary_unary(
                "/google.cloud.documentai.v1beta2.DocumentUnderstandingService/ProcessDocument",
                request_serializer=document_understanding.ProcessDocumentRequest.serialize,
                response_deserializer=document.Document.deserialize,
            )
        return self._stubs["process_document"]
def process_document ( self , ) -> Callable [ [ document_understanding . ProcessDocumentRequest ] , document . Document ] : if "process_document" not in self . _stubs : self . _stubs [ "process_document" ] = self . grpc_channel . unary_unary ( "/google.cloud.documentai.v1beta2.DocumentUnderstandingService/ProcessDocument" , request_serializer = document_understanding . ProcessDocumentRequest . serialize , response_deserializer = document . Document . deserialize , ) return self . _stubs [ "process_document" ]
r"""Return a callable for the process document method over gRPC.
r " " " Return a callable for the process document method over gRPC .
r"""Return a callable for the process document method over gRPC.

        Processes a single document.

        Returns:
            Callable[[~.ProcessDocumentRequest],
                    ~.Document]:
                A function that, when called, will call the underlying RPC
                on the server.
        """ # Generate a "stub function" on-the-fly which will actually make # the request. # gRPC handles serialization and deserialization, so we just need # to pass in the functions for each.
A function that, when called, will call the underlying RPC
on the server.
A function that when called will call the underlying RPC on the server .
Callable[[~.ProcessDocumentRequest],
    ~.Document]
self