Struct google_api_proto::google::cloud::discoveryengine::v1alpha::GetProcessedDocumentRequest
source · pub struct GetProcessedDocumentRequest {
pub name: String,
pub processed_document_type: i32,
pub processed_document_format: i32,
}
Expand description
Request message for [DocumentService.GetDocument][google.cloud.discoveryengine.v1alpha.DocumentService.GetDocument] method.
Fields§
§name: String
Required. Full resource name of
[Document][google.cloud.discoveryengine.v1alpha.Document], such as
projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}
.
If the caller does not have permission to access the
[Document][google.cloud.discoveryengine.v1alpha.Document], regardless of
whether or not it exists, a PERMISSION_DENIED
error is returned.
If the requested [Document][google.cloud.discoveryengine.v1alpha.Document]
does not exist, a NOT_FOUND
error is returned.
processed_document_type: i32
Required. What type of processing to return.
processed_document_format: i32
What format output should be. If unspecified, defaults to JSON.
Implementations§
source§impl GetProcessedDocumentRequest
impl GetProcessedDocumentRequest
sourcepub fn processed_document_type(&self) -> ProcessedDocumentType
pub fn processed_document_type(&self) -> ProcessedDocumentType
Returns the enum value of processed_document_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_processed_document_type(&mut self, value: ProcessedDocumentType)
pub fn set_processed_document_type(&mut self, value: ProcessedDocumentType)
Sets processed_document_type
to the provided enum value.
sourcepub fn processed_document_format(&self) -> ProcessedDocumentFormat
pub fn processed_document_format(&self) -> ProcessedDocumentFormat
Returns the enum value of processed_document_format
, or the default if the field is set to an invalid enum value.
sourcepub fn set_processed_document_format(&mut self, value: ProcessedDocumentFormat)
pub fn set_processed_document_format(&mut self, value: ProcessedDocumentFormat)
Sets processed_document_format
to the provided enum value.
Trait Implementations§
source§impl Clone for GetProcessedDocumentRequest
impl Clone for GetProcessedDocumentRequest
source§fn clone(&self) -> GetProcessedDocumentRequest
fn clone(&self) -> GetProcessedDocumentRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetProcessedDocumentRequest
impl Debug for GetProcessedDocumentRequest
source§impl Message for GetProcessedDocumentRequest
impl Message for GetProcessedDocumentRequest
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 GetProcessedDocumentRequest
impl PartialEq for GetProcessedDocumentRequest
source§fn eq(&self, other: &GetProcessedDocumentRequest) -> bool
fn eq(&self, other: &GetProcessedDocumentRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetProcessedDocumentRequest
Auto Trait Implementations§
impl Freeze for GetProcessedDocumentRequest
impl RefUnwindSafe for GetProcessedDocumentRequest
impl Send for GetProcessedDocumentRequest
impl Sync for GetProcessedDocumentRequest
impl Unpin for GetProcessedDocumentRequest
impl UnwindSafe for GetProcessedDocumentRequest
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