Struct google_api_proto::google::cloud::documentai::v1beta3::ListDocumentsRequest
source · pub struct ListDocumentsRequest {
pub dataset: String,
pub page_size: i32,
pub page_token: String,
pub filter: String,
pub return_total_size: bool,
pub skip: i32,
}
Fields§
§dataset: String
Required. The resource name of the dataset to be listed. Format: projects/{project}/locations/{location}/processors/{processor}/dataset
page_size: i32
The maximum number of documents to return. The service may return fewer than this value. If unspecified, at most 20 documents will be returned. The maximum value is 100; values above 100 will be coerced to 100.
page_token: String
A page token, received from a previous ListDocuments
call.
Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to ListDocuments
must match the call that provided the page token.
filter: String
Optional. Query to filter the documents based on https://google.aip.dev/160.
§Currently support query strings are:
SplitType=DATASET_SPLIT_TEST|DATASET_SPLIT_TRAIN|DATASET_SPLIT_UNASSIGNED
LabelingState=DOCUMENT_LABELED|DOCUMENT_UNLABELED|DOCUMENT_AUTO_LABELED
DisplayName=\"file_name.pdf\"
EntityType=abc/def
TagName=\"auto-labeling-running\"|\"sampled\"
Note:
- Only
AND
,=
and!=
are supported. e.g.DisplayName=file_name AND EntityType!=abc
IS supported. - Wildcard
*
is supported only inDisplayName
filter - No duplicate filter keys are allowed,
e.g.
EntityType=a AND EntityType=b
is NOT supported. - String match is case sensitive (for filter
DisplayName
&EntityType
).
return_total_size: bool
Optional. Controls if the request requires a total size of matched documents. See [ListDocumentsResponse.total_size][google.cloud.documentai.v1beta3.ListDocumentsResponse.total_size].
Enabling this flag may adversely impact performance.
Defaults to false.
skip: i32
Optional. Number of results to skip beginning from the page_token
if
provided. https://google.aip.dev/158#skipping-results. It must be a
non-negative integer. Negative values will be rejected. Note that this is
not the number of pages to skip. If this value causes the cursor to move
past the end of results,
[ListDocumentsResponse.document_metadata][google.cloud.documentai.v1beta3.ListDocumentsResponse.document_metadata]
and
[ListDocumentsResponse.next_page_token][google.cloud.documentai.v1beta3.ListDocumentsResponse.next_page_token]
will be empty.
Trait Implementations§
source§impl Clone for ListDocumentsRequest
impl Clone for ListDocumentsRequest
source§fn clone(&self) -> ListDocumentsRequest
fn clone(&self) -> ListDocumentsRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ListDocumentsRequest
impl Debug for ListDocumentsRequest
source§impl Default for ListDocumentsRequest
impl Default for ListDocumentsRequest
source§impl Message for ListDocumentsRequest
impl Message for ListDocumentsRequest
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 ListDocumentsRequest
impl PartialEq for ListDocumentsRequest
source§fn eq(&self, other: &ListDocumentsRequest) -> bool
fn eq(&self, other: &ListDocumentsRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ListDocumentsRequest
Auto Trait Implementations§
impl Freeze for ListDocumentsRequest
impl RefUnwindSafe for ListDocumentsRequest
impl Send for ListDocumentsRequest
impl Sync for ListDocumentsRequest
impl Unpin for ListDocumentsRequest
impl UnwindSafe for ListDocumentsRequest
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