#[non_exhaustive]pub struct ListModelVersionsRequest {
pub name: String,
pub page_size: i32,
pub page_token: String,
pub filter: String,
pub read_mask: Option<FieldMask>,
pub order_by: String,
/* private fields */
}model-service only.Expand description
Request message for ModelService.ListModelVersions.
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.name: StringRequired. The name of the model to list versions for.
page_size: i32The standard list page size.
page_token: StringThe standard list page token. Typically obtained via next_page_token of the previous ListModelVersions call.
filter: StringAn expression for filtering the results of the request. For field names both snake_case and camelCase are supported.
labelssupports general map functions that is:labels.key=value- key:value equality- `labels.key:* or labels:key - key existence
- A key including a space must be quoted.
labels."a key".
Some examples:
labels.myKey="myValue"
read_mask: Option<FieldMask>Mask specifying which fields to read.
order_by: StringA comma-separated list of fields to order by, sorted in ascending order. Use “desc” after a field name for descending. Supported fields:
create_timeupdate_time
Example: update_time asc, create_time desc.
Implementations§
Source§impl ListModelVersionsRequest
impl ListModelVersionsRequest
pub fn new() -> 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
Sets the value of page_size.
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.
Sourcepub fn set_filter<T: Into<String>>(self, v: T) -> Self
pub fn set_filter<T: Into<String>>(self, v: T) -> Self
Sets the value of filter.
Sourcepub fn set_read_mask<T>(self, v: T) -> Self
pub fn set_read_mask<T>(self, v: T) -> Self
Sets the value of read_mask.
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
Sets or clears the value of read_mask.
Sourcepub fn set_order_by<T: Into<String>>(self, v: T) -> Self
pub fn set_order_by<T: Into<String>>(self, v: T) -> Self
Sets the value of order_by.
Trait Implementations§
Source§impl Clone for ListModelVersionsRequest
impl Clone for ListModelVersionsRequest
Source§fn clone(&self) -> ListModelVersionsRequest
fn clone(&self) -> ListModelVersionsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more