#[non_exhaustive]pub struct ReadFeatureValuesRequest {
pub entity_type: String,
pub entity_id: String,
pub feature_selector: Option<FeatureSelector>,
/* private fields */
}Available on crate feature
featurestore-online-serving-service only.Expand description
Request message for FeaturestoreOnlineServingService.ReadFeatureValues.
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.entity_type: StringRequired. The resource name of the EntityType for the entity being read.
Value format:
projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}.
For example, for a machine learning model predicting user clicks on a
website, an EntityType ID could be user.
entity_id: StringRequired. ID for a specific entity. For example,
for a machine learning model predicting user clicks on a website, an entity
ID could be user_123.
feature_selector: Option<FeatureSelector>Required. Selector choosing Features of the target EntityType.
Implementations§
Source§impl ReadFeatureValuesRequest
impl ReadFeatureValuesRequest
pub fn new() -> Self
Sourcepub fn set_entity_type<T: Into<String>>(self, v: T) -> Self
pub fn set_entity_type<T: Into<String>>(self, v: T) -> Self
Sets the value of entity_type.
§Example
ⓘ
let x = ReadFeatureValuesRequest::new().set_entity_type("example");Sourcepub fn set_entity_id<T: Into<String>>(self, v: T) -> Self
pub fn set_entity_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_feature_selector<T>(self, v: T) -> Selfwhere
T: Into<FeatureSelector>,
pub fn set_feature_selector<T>(self, v: T) -> Selfwhere
T: Into<FeatureSelector>,
Sets the value of feature_selector.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::FeatureSelector;
let x = ReadFeatureValuesRequest::new().set_feature_selector(FeatureSelector::default()/* use setters */);Sourcepub fn set_or_clear_feature_selector<T>(self, v: Option<T>) -> Selfwhere
T: Into<FeatureSelector>,
pub fn set_or_clear_feature_selector<T>(self, v: Option<T>) -> Selfwhere
T: Into<FeatureSelector>,
Sets or clears the value of feature_selector.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::FeatureSelector;
let x = ReadFeatureValuesRequest::new().set_or_clear_feature_selector(Some(FeatureSelector::default()/* use setters */));
let x = ReadFeatureValuesRequest::new().set_or_clear_feature_selector(None::<FeatureSelector>);Trait Implementations§
Source§impl Clone for ReadFeatureValuesRequest
impl Clone for ReadFeatureValuesRequest
Source§fn clone(&self) -> ReadFeatureValuesRequest
fn clone(&self) -> ReadFeatureValuesRequest
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 ReadFeatureValuesRequest
impl Debug for ReadFeatureValuesRequest
Source§impl Default for ReadFeatureValuesRequest
impl Default for ReadFeatureValuesRequest
Source§fn default() -> ReadFeatureValuesRequest
fn default() -> ReadFeatureValuesRequest
Returns the “default value” for a type. Read more
Source§impl Message for ReadFeatureValuesRequest
impl Message for ReadFeatureValuesRequest
Source§impl PartialEq for ReadFeatureValuesRequest
impl PartialEq for ReadFeatureValuesRequest
impl StructuralPartialEq for ReadFeatureValuesRequest
Auto Trait Implementations§
impl Freeze for ReadFeatureValuesRequest
impl RefUnwindSafe for ReadFeatureValuesRequest
impl Send for ReadFeatureValuesRequest
impl Sync for ReadFeatureValuesRequest
impl Unpin for ReadFeatureValuesRequest
impl UnwindSafe for ReadFeatureValuesRequest
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