#[non_exhaustive]pub struct BatchProcessRequest {
pub name: String,
pub input_documents: Option<BatchDocumentsInputConfig>,
pub document_output_config: Option<DocumentOutputConfig>,
pub skip_human_review: bool,
pub process_options: Option<ProcessOptions>,
pub labels: HashMap<String, String>,
/* private fields */
}Expand description
Request message for BatchProcessDocuments.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringRequired. The resource name of
Processor or
ProcessorVersion.
Format: projects/{project}/locations/{location}/processors/{processor},
or
projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}
input_documents: Option<BatchDocumentsInputConfig>The input documents for the BatchProcessDocuments method.
document_output_config: Option<DocumentOutputConfig>The output configuration for the BatchProcessDocuments method.
skip_human_review: boolWhether human review should be skipped for this request. Default to
false.
process_options: Option<ProcessOptions>Inference-time options for the process API
labels: HashMap<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.
Implementations§
Source§impl BatchProcessRequest
impl BatchProcessRequest
pub fn new() -> Self
Sourcepub fn set_input_documents<T>(self, v: T) -> Selfwhere
T: Into<BatchDocumentsInputConfig>,
pub fn set_input_documents<T>(self, v: T) -> Selfwhere
T: Into<BatchDocumentsInputConfig>,
Sets the value of input_documents.
Sourcepub fn set_or_clear_input_documents<T>(self, v: Option<T>) -> Selfwhere
T: Into<BatchDocumentsInputConfig>,
pub fn set_or_clear_input_documents<T>(self, v: Option<T>) -> Selfwhere
T: Into<BatchDocumentsInputConfig>,
Sets or clears the value of input_documents.
Sourcepub fn set_document_output_config<T>(self, v: T) -> Selfwhere
T: Into<DocumentOutputConfig>,
pub fn set_document_output_config<T>(self, v: T) -> Selfwhere
T: Into<DocumentOutputConfig>,
Sets the value of document_output_config.
Sourcepub fn set_or_clear_document_output_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<DocumentOutputConfig>,
pub fn set_or_clear_document_output_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<DocumentOutputConfig>,
Sets or clears the value of document_output_config.
Sourcepub fn set_skip_human_review<T: Into<bool>>(self, v: T) -> Self
pub fn set_skip_human_review<T: Into<bool>>(self, v: T) -> Self
Sets the value of skip_human_review.
Sourcepub fn set_process_options<T>(self, v: T) -> Selfwhere
T: Into<ProcessOptions>,
pub fn set_process_options<T>(self, v: T) -> Selfwhere
T: Into<ProcessOptions>,
Sets the value of process_options.
Sourcepub fn set_or_clear_process_options<T>(self, v: Option<T>) -> Selfwhere
T: Into<ProcessOptions>,
pub fn set_or_clear_process_options<T>(self, v: Option<T>) -> Selfwhere
T: Into<ProcessOptions>,
Sets or clears the value of process_options.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Trait Implementations§
Source§impl Clone for BatchProcessRequest
impl Clone for BatchProcessRequest
Source§fn clone(&self) -> BatchProcessRequest
fn clone(&self) -> BatchProcessRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more