#[non_exhaustive]pub struct StreamingReadFeatureValuesRequest {
pub entity_type: String,
pub entity_ids: Vec<String>,
pub feature_selector: Option<FeatureSelector>,
/* private fields */
}featurestore-online-serving-service only.Expand description
Request message for [FeaturestoreOnlineServingService.StreamingReadFeatureValues][google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.StreamingReadFeatureValues].
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.entity_type: StringRequired. The resource name of the entities’ type.
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_ids: Vec<String>Required. IDs of entities to read Feature values of. The maximum number of
IDs is 100. 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. Feature IDs will be deduplicated.
Implementations§
Source§impl StreamingReadFeatureValuesRequest
impl StreamingReadFeatureValuesRequest
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 = StreamingReadFeatureValuesRequest::new().set_entity_type("example");Sourcepub fn set_entity_ids<T, V>(self, v: T) -> Self
pub fn set_entity_ids<T, V>(self, v: T) -> Self
Sets the value of entity_ids.
§Example
let x = StreamingReadFeatureValuesRequest::new().set_entity_ids(["a", "b", "c"]);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 = StreamingReadFeatureValuesRequest::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 = StreamingReadFeatureValuesRequest::new().set_or_clear_feature_selector(Some(FeatureSelector::default()/* use setters */));
let x = StreamingReadFeatureValuesRequest::new().set_or_clear_feature_selector(None::<FeatureSelector>);Trait Implementations§
Source§impl Clone for StreamingReadFeatureValuesRequest
impl Clone for StreamingReadFeatureValuesRequest
Source§fn clone(&self) -> StreamingReadFeatureValuesRequest
fn clone(&self) -> StreamingReadFeatureValuesRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for StreamingReadFeatureValuesRequest
impl Default for StreamingReadFeatureValuesRequest
Source§fn default() -> StreamingReadFeatureValuesRequest
fn default() -> StreamingReadFeatureValuesRequest
Source§impl PartialEq for StreamingReadFeatureValuesRequest
impl PartialEq for StreamingReadFeatureValuesRequest
Source§fn eq(&self, other: &StreamingReadFeatureValuesRequest) -> bool
fn eq(&self, other: &StreamingReadFeatureValuesRequest) -> bool
self and other values to be equal, and is used by ==.