pub struct DocumentUnderstandingServiceClient<T> { /* private fields */ }
Expand description
Service to parse structured information from unstructured or semi-structured documents using state-of-the-art Google AI such as natural language, computer vision, and translation.
Implementations§
Source§impl<T> DocumentUnderstandingServiceClient<T>where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
impl<T> DocumentUnderstandingServiceClient<T>where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self
Sourcepub async fn batch_process_documents(
&mut self,
request: impl IntoRequest<BatchProcessDocumentsRequest>,
) -> Result<Response<Operation>, Status>
pub async fn batch_process_documents( &mut self, request: impl IntoRequest<BatchProcessDocumentsRequest>, ) -> Result<Response<Operation>, Status>
LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format.
Sourcepub async fn process_document(
&mut self,
request: impl IntoRequest<ProcessDocumentRequest>,
) -> Result<Response<Document>, Status>
pub async fn process_document( &mut self, request: impl IntoRequest<ProcessDocumentRequest>, ) -> Result<Response<Document>, Status>
Processes a single document.
Trait Implementations§
Source§impl<T: Clone> Clone for DocumentUnderstandingServiceClient<T>
impl<T: Clone> Clone for DocumentUnderstandingServiceClient<T>
Auto Trait Implementations§
impl<T> Freeze for DocumentUnderstandingServiceClient<T>where
T: Freeze,
impl<T> !RefUnwindSafe for DocumentUnderstandingServiceClient<T>
impl<T> Send for DocumentUnderstandingServiceClient<T>where
T: Send,
impl<T> Sync for DocumentUnderstandingServiceClient<T>where
T: Sync,
impl<T> Unpin for DocumentUnderstandingServiceClient<T>where
T: Unpin,
impl<T> !UnwindSafe for DocumentUnderstandingServiceClient<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request