#[non_exhaustive]pub struct ListDocumentsRequest {
pub parent: String,
pub page_size: i32,
pub page_token: String,
/* private fields */
}document-service only.Expand description
Request message for DocumentService.ListDocuments method.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The parent branch resource name, such as
projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}.
Use default_branch as the branch ID, to list documents under the default
branch.
If the caller does not have permission to list
Documents under this branch,
regardless of whether or not this branch exists, a PERMISSION_DENIED
error is returned.
page_size: i32Maximum number of Documents to return. If unspecified, defaults to 100. The maximum allowed value is 1000. Values above 1000 are set to 1000.
If this field is negative, an INVALID_ARGUMENT error is returned.
page_token: StringA page token ListDocumentsResponse.next_page_token, received from a previous DocumentService.ListDocuments call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to
DocumentService.ListDocuments
must match the call that provided the page token. Otherwise, an
INVALID_ARGUMENT error is returned.
Implementations§
Source§impl ListDocumentsRequest
impl ListDocumentsRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn set_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of page_token.
§Example
let x = ListDocumentsRequest::new().set_page_token("example");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 more