#[non_exhaustive]pub struct FetchFeatureValuesResponse {
pub data_key: Option<FeatureViewDataKey>,
pub format: Option<Format>,
/* private fields */
}feature-online-store-service only.Expand description
Response message for FeatureOnlineStoreService.FetchFeatureValues
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.data_key: Option<FeatureViewDataKey>The data key associated with this response. Will only be populated for [FeatureOnlineStoreService.StreamingFetchFeatureValues][] RPCs.
format: Option<Format>Implementations§
Source§impl FetchFeatureValuesResponse
impl FetchFeatureValuesResponse
pub fn new() -> Self
Sourcepub fn set_data_key<T>(self, v: T) -> Selfwhere
T: Into<FeatureViewDataKey>,
pub fn set_data_key<T>(self, v: T) -> Selfwhere
T: Into<FeatureViewDataKey>,
Sourcepub fn set_or_clear_data_key<T>(self, v: Option<T>) -> Selfwhere
T: Into<FeatureViewDataKey>,
pub fn set_or_clear_data_key<T>(self, v: Option<T>) -> Selfwhere
T: Into<FeatureViewDataKey>,
Sets or clears the value of data_key.
§Example
use google_cloud_aiplatform_v1::model::FeatureViewDataKey;
let x = FetchFeatureValuesResponse::new().set_or_clear_data_key(Some(FeatureViewDataKey::default()/* use setters */));
let x = FetchFeatureValuesResponse::new().set_or_clear_data_key(None::<FeatureViewDataKey>);Sourcepub fn set_format<T: Into<Option<Format>>>(self, v: T) -> Self
pub fn set_format<T: Into<Option<Format>>>(self, v: T) -> Self
Sets the value of format.
Note that all the setters affecting format are mutually
exclusive.
§Example
use google_cloud_aiplatform_v1::model::fetch_feature_values_response::FeatureNameValuePairList;
let x = FetchFeatureValuesResponse::new().set_format(Some(
google_cloud_aiplatform_v1::model::fetch_feature_values_response::Format::KeyValues(FeatureNameValuePairList::default().into())));Sourcepub fn key_values(&self) -> Option<&Box<FeatureNameValuePairList>>
pub fn key_values(&self) -> Option<&Box<FeatureNameValuePairList>>
The value of format
if it holds a KeyValues, None if the field is not set or
holds a different branch.
Sourcepub fn set_key_values<T: Into<Box<FeatureNameValuePairList>>>(
self,
v: T,
) -> Self
pub fn set_key_values<T: Into<Box<FeatureNameValuePairList>>>( self, v: T, ) -> Self
Sets the value of format
to hold a KeyValues.
Note that all the setters affecting format are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::fetch_feature_values_response::FeatureNameValuePairList;
let x = FetchFeatureValuesResponse::new().set_key_values(FeatureNameValuePairList::default()/* use setters */);
assert!(x.key_values().is_some());
assert!(x.proto_struct().is_none());Sourcepub fn proto_struct(&self) -> Option<&Box<Struct>>
pub fn proto_struct(&self) -> Option<&Box<Struct>>
The value of format
if it holds a ProtoStruct, None if the field is not set or
holds a different branch.
Sourcepub fn set_proto_struct<T: Into<Box<Struct>>>(self, v: T) -> Self
pub fn set_proto_struct<T: Into<Box<Struct>>>(self, v: T) -> Self
Sets the value of format
to hold a ProtoStruct.
Note that all the setters affecting format are
mutually exclusive.
§Example
use wkt::Struct;
let x = FetchFeatureValuesResponse::new().set_proto_struct(Struct::default()/* use setters */);
assert!(x.proto_struct().is_some());
assert!(x.key_values().is_none());Trait Implementations§
Source§impl Clone for FetchFeatureValuesResponse
impl Clone for FetchFeatureValuesResponse
Source§fn clone(&self) -> FetchFeatureValuesResponse
fn clone(&self) -> FetchFeatureValuesResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more