Enum google_api_proto::google::cloud::aiplatform::v1beta1::batch_read_feature_values_request::ReadOption
source · pub enum ReadOption {
CsvReadInstances(CsvSource),
BigqueryReadInstances(BigQuerySource),
}
Variants§
CsvReadInstances(CsvSource)
Each read instance consists of exactly one read timestamp and one or more entity IDs identifying entities of the corresponding EntityTypes whose Features are requested.
Each output instance contains Feature values of requested entities concatenated together as of the read time.
An example read instance may be foo_entity_id, bar_entity_id, 2020-01-01T10:00:00.123Z
.
An example output instance may be foo_entity_id, bar_entity_id, 2020-01-01T10:00:00.123Z, foo_entity_feature1_value, bar_entity_feature2_value
.
Timestamp in each read instance must be millisecond-aligned.
csv_read_instances
are read instances stored in a plain-text CSV file.
The header should be:
[ENTITY_TYPE_ID1], [ENTITY_TYPE_ID2], …, timestamp
The columns can be in any order.
Values in the timestamp column must use the RFC 3339 format, e.g.
2012-07-30T10:43:17.123Z
.
BigqueryReadInstances(BigQuerySource)
Similar to csv_read_instances, but from BigQuery source.
Implementations§
source§impl ReadOption
impl ReadOption
sourcepub fn merge<B>(
field: &mut Option<ReadOption>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<ReadOption>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl Clone for ReadOption
impl Clone for ReadOption
source§fn clone(&self) -> ReadOption
fn clone(&self) -> ReadOption
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReadOption
impl Debug for ReadOption
source§impl PartialEq for ReadOption
impl PartialEq for ReadOption
source§fn eq(&self, other: &ReadOption) -> bool
fn eq(&self, other: &ReadOption) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ReadOption
Auto Trait Implementations§
impl Freeze for ReadOption
impl RefUnwindSafe for ReadOption
impl Send for ReadOption
impl Sync for ReadOption
impl Unpin for ReadOption
impl UnwindSafe for ReadOption
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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