Struct google_api_proto::google::cloud::contentwarehouse::v1::CreateDocumentRequest
source · pub struct CreateDocumentRequest {
pub parent: String,
pub document: Option<Document>,
pub request_metadata: Option<RequestMetadata>,
pub policy: Option<Policy>,
pub cloud_ai_document_option: Option<CloudAiDocumentOption>,
pub create_mask: Option<FieldMask>,
}
Expand description
Request message for DocumentService.CreateDocument.
Fields§
§parent: String
Required. The parent name. Format: projects/{project_number}/locations/{location}.
document: Option<Document>
Required. The document to create.
request_metadata: Option<RequestMetadata>
The meta information collected about the end user, used to enforce access control for the service.
policy: Option<Policy>
Default document policy during creation. This refers to an Identity and Access (IAM) policy, which specifies access controls for the Document. Conditions defined in the policy will be ignored.
cloud_ai_document_option: Option<CloudAiDocumentOption>
Request Option for processing Cloud AI Document in Document Warehouse. This field offers limited support for mapping entities from Cloud AI Document to Warehouse Document. Please consult with product team before using this field and other available options.
create_mask: Option<FieldMask>
Field mask for creating Document fields. If mask path is empty,
it means all fields are masked.
For the FieldMask
definition,
see
https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
Trait Implementations§
source§impl Clone for CreateDocumentRequest
impl Clone for CreateDocumentRequest
source§fn clone(&self) -> CreateDocumentRequest
fn clone(&self) -> CreateDocumentRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateDocumentRequest
impl Debug for CreateDocumentRequest
source§impl Default for CreateDocumentRequest
impl Default for CreateDocumentRequest
source§impl Message for CreateDocumentRequest
impl Message for CreateDocumentRequest
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 CreateDocumentRequest
impl PartialEq for CreateDocumentRequest
source§fn eq(&self, other: &CreateDocumentRequest) -> bool
fn eq(&self, other: &CreateDocumentRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateDocumentRequest
Auto Trait Implementations§
impl !Freeze for CreateDocumentRequest
impl RefUnwindSafe for CreateDocumentRequest
impl Send for CreateDocumentRequest
impl Sync for CreateDocumentRequest
impl Unpin for CreateDocumentRequest
impl UnwindSafe for CreateDocumentRequest
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