Struct google_api_proto::google::cloud::contentwarehouse::v1::Document
source · pub struct Document {Show 21 fields
pub name: String,
pub reference_id: String,
pub display_name: String,
pub title: String,
pub display_uri: String,
pub document_schema_name: String,
pub structured_content_uri: String,
pub properties: Vec<Property>,
pub update_time: Option<Timestamp>,
pub create_time: Option<Timestamp>,
pub raw_document_file_type: i32,
pub async_enabled: bool,
pub content_category: i32,
pub text_extraction_disabled: bool,
pub text_extraction_enabled: bool,
pub creator: String,
pub updater: String,
pub disposition_time: Option<Timestamp>,
pub legal_hold: bool,
pub structured_content: Option<StructuredContent>,
pub raw_document: Option<RawDocument>,
}
Expand description
Defines the structure for content warehouse document proto.
Fields§
§name: String
The resource name of the document. Format: projects/{project_number}/locations/{location}/documents/{document_id}.
The name is ignored when creating a document.
reference_id: String
The reference ID set by customers. Must be unique per project and location.
display_name: String
Required. Display name of the document given by the user. This name will be displayed in the UI. Customer can populate this field with the name of the document. This differs from the ‘title’ field as ‘title’ is optional and stores the top heading in the document.
title: String
Title that describes the document. This can be the top heading or text that describes the document.
display_uri: String
Uri to display the document, for example, in the UI.
document_schema_name: String
The Document schema name. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
structured_content_uri: String
A path linked to structured content file.
properties: Vec<Property>
List of values that are user supplied metadata.
update_time: Option<Timestamp>
Output only. The time when the document is last updated.
create_time: Option<Timestamp>
Output only. The time when the document is created.
raw_document_file_type: i32
This is used when DocAI was not used to load the document and parsing/ extracting is needed for the inline_raw_document. For example, if inline_raw_document is the byte representation of a PDF file, then this should be set to: RAW_DOCUMENT_FILE_TYPE_PDF.
async_enabled: bool
If true, makes the document visible to asynchronous policies and rules.
content_category: i32
Indicates the category (image, audio, video etc.) of the original content.
text_extraction_disabled: bool
If true, text extraction will not be performed.
text_extraction_enabled: bool
If true, text extraction will be performed.
creator: String
The user who creates the document.
updater: String
The user who lastly updates the document.
disposition_time: Option<Timestamp>
Output only. If linked to a Collection with RetentionPolicy, the date when the document becomes mutable.
legal_hold: bool
Output only. Indicates if the document has a legal hold on it.
structured_content: Option<StructuredContent>
§raw_document: Option<RawDocument>
Raw document file.
Implementations§
source§impl Document
impl Document
sourcepub fn raw_document_file_type(&self) -> RawDocumentFileType
pub fn raw_document_file_type(&self) -> RawDocumentFileType
Returns the enum value of raw_document_file_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_raw_document_file_type(&mut self, value: RawDocumentFileType)
pub fn set_raw_document_file_type(&mut self, value: RawDocumentFileType)
Sets raw_document_file_type
to the provided enum value.
sourcepub fn content_category(&self) -> ContentCategory
pub fn content_category(&self) -> ContentCategory
Returns the enum value of content_category
, or the default if the field is set to an invalid enum value.
sourcepub fn set_content_category(&mut self, value: ContentCategory)
pub fn set_content_category(&mut self, value: ContentCategory)
Sets content_category
to the provided enum value.
Trait Implementations§
source§impl Message for Document
impl Message for Document
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 Document
impl PartialEq for Document
impl StructuralPartialEq for Document
Auto Trait Implementations§
impl !Freeze for Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnwindSafe for Document
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