#[non_exhaustive]pub struct ListIndexEndpointsRequest {
pub parent: String,
pub filter: String,
pub page_size: i32,
pub page_token: String,
pub read_mask: Option<FieldMask>,
/* private fields */
}Available on crate feature
index-endpoint-service only.Expand description
Request message for IndexEndpointService.ListIndexEndpoints.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The resource name of the Location from which to list the
IndexEndpoints. Format: projects/{project}/locations/{location}
filter: StringOptional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported.
index_endpointsupports = and !=.index_endpointrepresents the IndexEndpoint ID, ie. the last segment of the IndexEndpoint’s resourcename.display_namesupports =, != and regex() (uses re2 syntax)labelssupports general map functions that is:labels.key=value- key:value equalitylabels.key:* or labels:key - key existence A key including a space must be quoted.labels.“a key”`.
Some examples:
index_endpoint="1"display_name="myDisplayName"- `regex(display_name, “^A”) -> The display name starts with an A.
labels.myKey="myValue"
page_size: i32Optional. The standard list page size.
page_token: StringOptional. The standard list page token. Typically obtained via ListIndexEndpointsResponse.next_page_token of the previous IndexEndpointService.ListIndexEndpoints call.
read_mask: Option<FieldMask>Optional. Mask specifying which fields to read.
Implementations§
Source§impl ListIndexEndpointsRequest
impl ListIndexEndpointsRequest
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_filter<T: Into<String>>(self, v: T) -> Self
pub fn set_filter<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 = ListIndexEndpointsRequest::new().set_page_token("example");Sourcepub fn set_read_mask<T>(self, v: T) -> Self
pub fn set_read_mask<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_read_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_read_mask<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for ListIndexEndpointsRequest
impl Clone for ListIndexEndpointsRequest
Source§fn clone(&self) -> ListIndexEndpointsRequest
fn clone(&self) -> ListIndexEndpointsRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ListIndexEndpointsRequest
impl Debug for ListIndexEndpointsRequest
Source§impl Default for ListIndexEndpointsRequest
impl Default for ListIndexEndpointsRequest
Source§fn default() -> ListIndexEndpointsRequest
fn default() -> ListIndexEndpointsRequest
Returns the “default value” for a type. Read more
Source§impl Message for ListIndexEndpointsRequest
impl Message for ListIndexEndpointsRequest
impl StructuralPartialEq for ListIndexEndpointsRequest
Auto Trait Implementations§
impl Freeze for ListIndexEndpointsRequest
impl RefUnwindSafe for ListIndexEndpointsRequest
impl Send for ListIndexEndpointsRequest
impl Sync for ListIndexEndpointsRequest
impl Unpin for ListIndexEndpointsRequest
impl UnwindSafe for ListIndexEndpointsRequest
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
Mutably borrows from an owned value. Read more