Struct google_api_proto::google::cloud::documentai::v1beta3::ProcessRequest
source · pub struct ProcessRequest {
pub name: String,
pub document: Option<Document>,
pub skip_human_review: bool,
pub field_mask: Option<FieldMask>,
pub process_options: Option<ProcessOptions>,
pub labels: BTreeMap<String, String>,
pub imageless_mode: bool,
pub source: Option<Source>,
}
Expand description
Request message for the [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument] method.
Fields§
§name: String
Required. The resource name of the
[Processor][google.cloud.documentai.v1beta3.Processor] or
[ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion]
to use for processing. If a
[Processor][google.cloud.documentai.v1beta3.Processor] is specified, the
server will use its [default
version][google.cloud.documentai.v1beta3.Processor.default_processor_version].
Format: projects/{project}/locations/{location}/processors/{processor}
,
or
projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}
document: Option<Document>
The document payload, the [content][google.cloud.documentai.v1beta3.Document.content] and [mime_type][google.cloud.documentai.v1beta3.Document.mime_type] fields must be set.
skip_human_review: bool
Whether human review should be skipped for this request. Default to
false
.
field_mask: Option<FieldMask>
Specifies which fields to include in the
[ProcessResponse.document][google.cloud.documentai.v1beta3.ProcessResponse.document]
output. Only supports top-level document and pages field, so it must be in
the form of {document_field_name}
or pages.{page_field_name}
.
process_options: Option<ProcessOptions>
Inference-time options for the process API
labels: BTreeMap<String, String>
Optional. The labels with user-defined metadata for the request.
Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
imageless_mode: bool
Optional. Option to remove images from the document.
source: Option<Source>
The document payload.
Trait Implementations§
source§impl Clone for ProcessRequest
impl Clone for ProcessRequest
source§fn clone(&self) -> ProcessRequest
fn clone(&self) -> ProcessRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProcessRequest
impl Debug for ProcessRequest
source§impl Default for ProcessRequest
impl Default for ProcessRequest
source§impl Message for ProcessRequest
impl Message for ProcessRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ProcessRequest
impl PartialEq for ProcessRequest
source§fn eq(&self, other: &ProcessRequest) -> bool
fn eq(&self, other: &ProcessRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ProcessRequest
Auto Trait Implementations§
impl !Freeze for ProcessRequest
impl RefUnwindSafe for ProcessRequest
impl Send for ProcessRequest
impl Sync for ProcessRequest
impl Unpin for ProcessRequest
impl UnwindSafe for ProcessRequest
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
T
in a tonic::Request