#[non_exhaustive]pub struct BatchReadFeatureValuesRequest {
pub featurestore: String,
pub destination: Option<FeatureValueDestination>,
pub pass_through_fields: Vec<PassThroughField>,
pub entity_type_specs: Vec<EntityTypeSpec>,
pub start_time: Option<Timestamp>,
pub read_option: Option<ReadOption>,
/* private fields */
}Expand description
Request message for FeaturestoreService.BatchReadFeatureValues.
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.featurestore: StringRequired. The resource name of the Featurestore from which to query Feature
values. Format:
projects/{project}/locations/{location}/featurestores/{featurestore}
destination: Option<FeatureValueDestination>Required. Specifies output location and format.
pass_through_fields: Vec<PassThroughField>When not empty, the specified fields in the *_read_instances source will be joined as-is in the output, in addition to those fields from the Featurestore Entity.
For BigQuery source, the type of the pass-through values will be automatically inferred. For CSV source, the pass-through values will be passed as opaque bytes.
entity_type_specs: Vec<EntityTypeSpec>Required. Specifies EntityType grouping Features to read values of and settings.
start_time: Option<Timestamp>Optional. Excludes Feature values with feature generation timestamp before this timestamp. If not set, retrieve oldest values kept in Feature Store. Timestamp, if present, must not have higher than millisecond precision.
read_option: Option<ReadOption>Implementations§
Source§impl BatchReadFeatureValuesRequest
impl BatchReadFeatureValuesRequest
pub fn new() -> Self
Sourcepub fn set_featurestore<T: Into<String>>(self, v: T) -> Self
pub fn set_featurestore<T: Into<String>>(self, v: T) -> Self
Sets the value of featurestore.
Sourcepub fn set_destination<T: Into<Option<FeatureValueDestination>>>(
self,
v: T,
) -> Self
pub fn set_destination<T: Into<Option<FeatureValueDestination>>>( self, v: T, ) -> Self
Sets the value of destination.
Sourcepub fn set_pass_through_fields<T, V>(self, v: T) -> Self
pub fn set_pass_through_fields<T, V>(self, v: T) -> Self
Sets the value of pass_through_fields.
Sourcepub fn set_entity_type_specs<T, V>(self, v: T) -> Self
pub fn set_entity_type_specs<T, V>(self, v: T) -> Self
Sets the value of entity_type_specs.
Sourcepub fn set_start_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_start_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of start_time.
Sourcepub fn set_read_option<T: Into<Option<ReadOption>>>(self, v: T) -> Self
pub fn set_read_option<T: Into<Option<ReadOption>>>(self, v: T) -> Self
Sets the value of read_option.
Note that all the setters affecting read_option are mutually
exclusive.
Sourcepub fn csv_read_instances(&self) -> Option<&Box<CsvSource>>
pub fn csv_read_instances(&self) -> Option<&Box<CsvSource>>
The value of read_option
if it holds a CsvReadInstances, None if the field is not set or
holds a different branch.
Sourcepub fn set_csv_read_instances<T: Into<Box<CsvSource>>>(self, v: T) -> Self
pub fn set_csv_read_instances<T: Into<Box<CsvSource>>>(self, v: T) -> Self
Sets the value of read_option
to hold a CsvReadInstances.
Note that all the setters affecting read_option are
mutually exclusive.
Sourcepub fn bigquery_read_instances(&self) -> Option<&Box<BigQuerySource>>
pub fn bigquery_read_instances(&self) -> Option<&Box<BigQuerySource>>
The value of read_option
if it holds a BigqueryReadInstances, None if the field is not set or
holds a different branch.
Sourcepub fn set_bigquery_read_instances<T: Into<Box<BigQuerySource>>>(
self,
v: T,
) -> Self
pub fn set_bigquery_read_instances<T: Into<Box<BigQuerySource>>>( self, v: T, ) -> Self
Sets the value of read_option
to hold a BigqueryReadInstances.
Note that all the setters affecting read_option are
mutually exclusive.
Trait Implementations§
Source§impl Clone for BatchReadFeatureValuesRequest
impl Clone for BatchReadFeatureValuesRequest
Source§fn clone(&self) -> BatchReadFeatureValuesRequest
fn clone(&self) -> BatchReadFeatureValuesRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for BatchReadFeatureValuesRequest
impl Default for BatchReadFeatureValuesRequest
Source§fn default() -> BatchReadFeatureValuesRequest
fn default() -> BatchReadFeatureValuesRequest
Source§impl<'de> Deserialize<'de> for BatchReadFeatureValuesRequestwhere
BatchReadFeatureValuesRequest: Default,
impl<'de> Deserialize<'de> for BatchReadFeatureValuesRequestwhere
BatchReadFeatureValuesRequest: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for BatchReadFeatureValuesRequest
impl PartialEq for BatchReadFeatureValuesRequest
Source§fn eq(&self, other: &BatchReadFeatureValuesRequest) -> bool
fn eq(&self, other: &BatchReadFeatureValuesRequest) -> bool
self and other values to be equal, and is used by ==.