#[non_exhaustive]pub struct CreateFeatureViewRequest {
pub parent: String,
pub feature_view: Option<FeatureView>,
pub feature_view_id: String,
pub run_sync_immediately: bool,
/* private fields */
}feature-online-store-admin-service only.Expand description
Request message for FeatureOnlineStoreAdminService.CreateFeatureView.
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.parent: StringRequired. The resource name of the FeatureOnlineStore to create
FeatureViews. Format:
projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}
feature_view: Option<FeatureView>Required. The FeatureView to create.
feature_view_id: StringRequired. The ID to use for the FeatureView, which will become the final component of the FeatureView’s resource name.
This value may be up to 60 characters, and valid characters are
[a-z0-9_]. The first character cannot be a number.
The value must be unique within a FeatureOnlineStore.
run_sync_immediately: boolImmutable. If set to true, one on demand sync will be run immediately, regardless whether the FeatureView.sync_config is configured or not.
Implementations§
Source§impl CreateFeatureViewRequest
impl CreateFeatureViewRequest
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_feature_view<T>(self, v: T) -> Selfwhere
T: Into<FeatureView>,
pub fn set_feature_view<T>(self, v: T) -> Selfwhere
T: Into<FeatureView>,
Sets the value of feature_view.
§Example
use google_cloud_aiplatform_v1::model::FeatureView;
let x = CreateFeatureViewRequest::new().set_feature_view(FeatureView::default()/* use setters */);Sourcepub fn set_or_clear_feature_view<T>(self, v: Option<T>) -> Selfwhere
T: Into<FeatureView>,
pub fn set_or_clear_feature_view<T>(self, v: Option<T>) -> Selfwhere
T: Into<FeatureView>,
Sets or clears the value of feature_view.
§Example
use google_cloud_aiplatform_v1::model::FeatureView;
let x = CreateFeatureViewRequest::new().set_or_clear_feature_view(Some(FeatureView::default()/* use setters */));
let x = CreateFeatureViewRequest::new().set_or_clear_feature_view(None::<FeatureView>);Sourcepub fn set_feature_view_id<T: Into<String>>(self, v: T) -> Self
pub fn set_feature_view_id<T: Into<String>>(self, v: T) -> Self
Sets the value of feature_view_id.
§Example
let x = CreateFeatureViewRequest::new().set_feature_view_id("example");Sourcepub fn set_run_sync_immediately<T: Into<bool>>(self, v: T) -> Self
pub fn set_run_sync_immediately<T: Into<bool>>(self, v: T) -> Self
Sets the value of run_sync_immediately.
§Example
let x = CreateFeatureViewRequest::new().set_run_sync_immediately(true);Trait Implementations§
Source§impl Clone for CreateFeatureViewRequest
impl Clone for CreateFeatureViewRequest
Source§fn clone(&self) -> CreateFeatureViewRequest
fn clone(&self) -> CreateFeatureViewRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more