#[non_exhaustive]pub struct DeleteFeatureValuesRequest {
pub entity_type: String,
pub delete_option: Option<DeleteOption>,
/* private fields */
}featurestore-service only.Expand description
Request message for FeaturestoreService.DeleteFeatureValues.
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 EntityType grouping the Features for
which values are being deleted from. Format:
projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}
delete_option: Option<DeleteOption>Defines options to select feature values to be deleted.
Implementations§
Source§impl DeleteFeatureValuesRequest
impl DeleteFeatureValuesRequest
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 = DeleteFeatureValuesRequest::new().set_entity_type("example");Sourcepub fn set_delete_option<T: Into<Option<DeleteOption>>>(self, v: T) -> Self
pub fn set_delete_option<T: Into<Option<DeleteOption>>>(self, v: T) -> Self
Sets the value of delete_option.
Note that all the setters affecting delete_option are mutually
exclusive.
§Example
use google_cloud_aiplatform_v1::model::delete_feature_values_request::SelectEntity;
let x = DeleteFeatureValuesRequest::new().set_delete_option(Some(
google_cloud_aiplatform_v1::model::delete_feature_values_request::DeleteOption::SelectEntity(SelectEntity::default().into())));Sourcepub fn select_entity(&self) -> Option<&Box<SelectEntity>>
pub fn select_entity(&self) -> Option<&Box<SelectEntity>>
The value of delete_option
if it holds a SelectEntity, None if the field is not set or
holds a different branch.
Sourcepub fn set_select_entity<T: Into<Box<SelectEntity>>>(self, v: T) -> Self
pub fn set_select_entity<T: Into<Box<SelectEntity>>>(self, v: T) -> Self
Sets the value of delete_option
to hold a SelectEntity.
Note that all the setters affecting delete_option are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::delete_feature_values_request::SelectEntity;
let x = DeleteFeatureValuesRequest::new().set_select_entity(SelectEntity::default()/* use setters */);
assert!(x.select_entity().is_some());
assert!(x.select_time_range_and_feature().is_none());Sourcepub fn select_time_range_and_feature(
&self,
) -> Option<&Box<SelectTimeRangeAndFeature>>
pub fn select_time_range_and_feature( &self, ) -> Option<&Box<SelectTimeRangeAndFeature>>
The value of delete_option
if it holds a SelectTimeRangeAndFeature, None if the field is not set or
holds a different branch.
Sourcepub fn set_select_time_range_and_feature<T: Into<Box<SelectTimeRangeAndFeature>>>(
self,
v: T,
) -> Self
pub fn set_select_time_range_and_feature<T: Into<Box<SelectTimeRangeAndFeature>>>( self, v: T, ) -> Self
Sets the value of delete_option
to hold a SelectTimeRangeAndFeature.
Note that all the setters affecting delete_option are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::delete_feature_values_request::SelectTimeRangeAndFeature;
let x = DeleteFeatureValuesRequest::new().set_select_time_range_and_feature(SelectTimeRangeAndFeature::default()/* use setters */);
assert!(x.select_time_range_and_feature().is_some());
assert!(x.select_entity().is_none());Trait Implementations§
Source§impl Clone for DeleteFeatureValuesRequest
impl Clone for DeleteFeatureValuesRequest
Source§fn clone(&self) -> DeleteFeatureValuesRequest
fn clone(&self) -> DeleteFeatureValuesRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more