Struct google_api_proto::google::cloud::documentai::v1::ProcessorVersion
source · pub struct ProcessorVersion {Show 14 fields
pub name: String,
pub display_name: String,
pub document_schema: Option<DocumentSchema>,
pub state: i32,
pub create_time: Option<Timestamp>,
pub latest_evaluation: Option<EvaluationReference>,
pub kms_key_name: String,
pub kms_key_version_name: String,
pub google_managed: bool,
pub deprecation_info: Option<DeprecationInfo>,
pub model_type: i32,
pub satisfies_pzs: bool,
pub satisfies_pzi: bool,
pub gen_ai_model_info: Option<GenAiModelInfo>,
}
Expand description
A processor version is an implementation of a processor. Each processor can have multiple versions, pretrained by Google internally or uptrained by the customer. A processor can only have one default version at a time. Its document-processing behavior is defined by that version.
Fields§
§name: String
Identifier. The resource name of the processor version.
Format:
projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}
display_name: String
The display name of the processor version.
document_schema: Option<DocumentSchema>
The schema of the processor version. Describes the output.
state: i32
Output only. The state of the processor version.
create_time: Option<Timestamp>
The time the processor version was created.
latest_evaluation: Option<EvaluationReference>
The most recently invoked evaluation for the processor version.
kms_key_name: String
The KMS key name used for encryption.
kms_key_version_name: String
The KMS key version with which data is encrypted.
google_managed: bool
Output only. Denotes that this ProcessorVersion
is managed by Google.
deprecation_info: Option<DeprecationInfo>
If set, information about the eventual deprecation of this version.
model_type: i32
Output only. The model type of this processor version.
satisfies_pzs: bool
Output only. Reserved for future use.
satisfies_pzi: bool
Output only. Reserved for future use.
gen_ai_model_info: Option<GenAiModelInfo>
Output only. Information about Generative AI model-based processor versions.
Implementations§
source§impl ProcessorVersion
impl ProcessorVersion
sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn model_type(&self) -> ModelType
pub fn model_type(&self) -> ModelType
Returns the enum value of model_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_model_type(&mut self, value: ModelType)
pub fn set_model_type(&mut self, value: ModelType)
Sets model_type
to the provided enum value.
Trait Implementations§
source§impl Clone for ProcessorVersion
impl Clone for ProcessorVersion
source§fn clone(&self) -> ProcessorVersion
fn clone(&self) -> ProcessorVersion
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProcessorVersion
impl Debug for ProcessorVersion
source§impl Default for ProcessorVersion
impl Default for ProcessorVersion
source§impl Message for ProcessorVersion
impl Message for ProcessorVersion
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 ProcessorVersion
impl PartialEq for ProcessorVersion
source§fn eq(&self, other: &ProcessorVersion) -> bool
fn eq(&self, other: &ProcessorVersion) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ProcessorVersion
Auto Trait Implementations§
impl Freeze for ProcessorVersion
impl RefUnwindSafe for ProcessorVersion
impl Send for ProcessorVersion
impl Sync for ProcessorVersion
impl Unpin for ProcessorVersion
impl UnwindSafe for ProcessorVersion
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