#[non_exhaustive]pub struct ListTargetSitesRequest {
pub parent: String,
pub page_size: i32,
pub page_token: String,
/* private fields */
}site-search-engine-service only.Expand description
Request message for SiteSearchEngineService.ListTargetSites 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 site search engine resource name, such as
projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine.
If the caller does not have permission to list TargetSites under this site search engine, regardless of whether or not this branch exists, a PERMISSION_DENIED error is returned.
page_size: i32Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. The maximum value is 1000; values above 1000 will be coerced to 1000.
If this field is negative, an INVALID_ARGUMENT error is returned.
page_token: StringA page token, received from a previous ListTargetSites call.
Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to ListTargetSites
must match the call that provided the page token.
Implementations§
Source§impl ListTargetSitesRequest
impl ListTargetSitesRequest
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 = ListTargetSitesRequest::new().set_page_token("example");Trait Implementations§
Source§impl Clone for ListTargetSitesRequest
impl Clone for ListTargetSitesRequest
Source§fn clone(&self) -> ListTargetSitesRequest
fn clone(&self) -> ListTargetSitesRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more