#[non_exhaustive]pub struct ExportFeatureValuesRequest {
pub entity_type: String,
pub destination: Option<FeatureValueDestination>,
pub feature_selector: Option<FeatureSelector>,
pub settings: Vec<DestinationFeatureSetting>,
pub mode: Option<Mode>,
/* private fields */
}featurestore-service only.Expand description
Request message for FeaturestoreService.ExportFeatureValues.
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 from which to export Feature
values. Format:
projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}
destination: Option<FeatureValueDestination>Required. Specifies destination location and format.
feature_selector: Option<FeatureSelector>Required. Selects Features to export values of.
settings: Vec<DestinationFeatureSetting>Per-Feature export settings.
mode: Option<Mode>Required. The mode in which Feature values are exported.
Implementations§
Source§impl ExportFeatureValuesRequest
impl ExportFeatureValuesRequest
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 = ExportFeatureValuesRequest::new().set_entity_type(format!("projects/{project_id}/locations/{location_id}/featurestores/{featurestore_id}/entityTypes/{entity_type_id}"));Sourcepub fn set_destination<T>(self, v: T) -> Selfwhere
T: Into<FeatureValueDestination>,
pub fn set_destination<T>(self, v: T) -> Selfwhere
T: Into<FeatureValueDestination>,
Sets the value of destination.
§Example
use google_cloud_aiplatform_v1::model::FeatureValueDestination;
let x = ExportFeatureValuesRequest::new().set_destination(FeatureValueDestination::default()/* use setters */);Sourcepub fn set_or_clear_destination<T>(self, v: Option<T>) -> Selfwhere
T: Into<FeatureValueDestination>,
pub fn set_or_clear_destination<T>(self, v: Option<T>) -> Selfwhere
T: Into<FeatureValueDestination>,
Sets or clears the value of destination.
§Example
use google_cloud_aiplatform_v1::model::FeatureValueDestination;
let x = ExportFeatureValuesRequest::new().set_or_clear_destination(Some(FeatureValueDestination::default()/* use setters */));
let x = ExportFeatureValuesRequest::new().set_or_clear_destination(None::<FeatureValueDestination>);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 = ExportFeatureValuesRequest::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 = ExportFeatureValuesRequest::new().set_or_clear_feature_selector(Some(FeatureSelector::default()/* use setters */));
let x = ExportFeatureValuesRequest::new().set_or_clear_feature_selector(None::<FeatureSelector>);Sourcepub fn set_settings<T, V>(self, v: T) -> Self
pub fn set_settings<T, V>(self, v: T) -> Self
Sourcepub fn set_mode<T: Into<Option<Mode>>>(self, v: T) -> Self
pub fn set_mode<T: Into<Option<Mode>>>(self, v: T) -> Self
Sets the value of mode.
Note that all the setters affecting mode are mutually
exclusive.
§Example
use google_cloud_aiplatform_v1::model::export_feature_values_request::SnapshotExport;
let x = ExportFeatureValuesRequest::new().set_mode(Some(
google_cloud_aiplatform_v1::model::export_feature_values_request::Mode::SnapshotExport(SnapshotExport::default().into())));Sourcepub fn snapshot_export(&self) -> Option<&Box<SnapshotExport>>
pub fn snapshot_export(&self) -> Option<&Box<SnapshotExport>>
The value of mode
if it holds a SnapshotExport, None if the field is not set or
holds a different branch.
Sourcepub fn set_snapshot_export<T: Into<Box<SnapshotExport>>>(self, v: T) -> Self
pub fn set_snapshot_export<T: Into<Box<SnapshotExport>>>(self, v: T) -> Self
Sets the value of mode
to hold a SnapshotExport.
Note that all the setters affecting mode are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::export_feature_values_request::SnapshotExport;
let x = ExportFeatureValuesRequest::new().set_snapshot_export(SnapshotExport::default()/* use setters */);
assert!(x.snapshot_export().is_some());
assert!(x.full_export().is_none());Sourcepub fn full_export(&self) -> Option<&Box<FullExport>>
pub fn full_export(&self) -> Option<&Box<FullExport>>
The value of mode
if it holds a FullExport, None if the field is not set or
holds a different branch.
Sourcepub fn set_full_export<T: Into<Box<FullExport>>>(self, v: T) -> Self
pub fn set_full_export<T: Into<Box<FullExport>>>(self, v: T) -> Self
Sets the value of mode
to hold a FullExport.
Note that all the setters affecting mode are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::export_feature_values_request::FullExport;
let x = ExportFeatureValuesRequest::new().set_full_export(FullExport::default()/* use setters */);
assert!(x.full_export().is_some());
assert!(x.snapshot_export().is_none());Trait Implementations§
Source§impl Clone for ExportFeatureValuesRequest
impl Clone for ExportFeatureValuesRequest
Source§fn clone(&self) -> ExportFeatureValuesRequest
fn clone(&self) -> ExportFeatureValuesRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExportFeatureValuesRequest
impl Debug for ExportFeatureValuesRequest
Source§impl Default for ExportFeatureValuesRequest
impl Default for ExportFeatureValuesRequest
Source§fn default() -> ExportFeatureValuesRequest
fn default() -> ExportFeatureValuesRequest
Source§impl Message for ExportFeatureValuesRequest
impl Message for ExportFeatureValuesRequest
impl StructuralPartialEq for ExportFeatureValuesRequest
Auto Trait Implementations§
impl Freeze for ExportFeatureValuesRequest
impl RefUnwindSafe for ExportFeatureValuesRequest
impl Send for ExportFeatureValuesRequest
impl Sync for ExportFeatureValuesRequest
impl Unpin for ExportFeatureValuesRequest
impl UnsafeUnpin for ExportFeatureValuesRequest
impl UnwindSafe for ExportFeatureValuesRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request