Struct google_api_proto::google::cloud::aiplatform::v1beta1::IndexDatapoint
source · pub struct IndexDatapoint {
pub datapoint_id: String,
pub feature_vector: Vec<f32>,
pub sparse_embedding: Option<SparseEmbedding>,
pub restricts: Vec<Restriction>,
pub numeric_restricts: Vec<NumericRestriction>,
pub crowding_tag: Option<CrowdingTag>,
}
Expand description
A datapoint of Index.
Fields§
§datapoint_id: String
Required. Unique identifier of the datapoint.
feature_vector: Vec<f32>
Required. Feature embedding vector for dense index. An array of numbers with the length of [NearestNeighborSearchConfig.dimensions].
sparse_embedding: Option<SparseEmbedding>
Optional. Feature embedding vector for sparse index.
restricts: Vec<Restriction>
Optional. List of Restrict of the datapoint, used to perform “restricted searches” where boolean rule are used to filter the subset of the database eligible for matching. This uses categorical tokens. See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
numeric_restricts: Vec<NumericRestriction>
Optional. List of Restrict of the datapoint, used to perform “restricted searches” where boolean rule are used to filter the subset of the database eligible for matching. This uses numeric comparisons.
crowding_tag: Option<CrowdingTag>
Optional. CrowdingTag of the datapoint, the number of neighbors to return in each crowding can be configured during query.
Trait Implementations§
source§impl Clone for IndexDatapoint
impl Clone for IndexDatapoint
source§fn clone(&self) -> IndexDatapoint
fn clone(&self) -> IndexDatapoint
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IndexDatapoint
impl Debug for IndexDatapoint
source§impl Default for IndexDatapoint
impl Default for IndexDatapoint
source§impl Message for IndexDatapoint
impl Message for IndexDatapoint
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for IndexDatapoint
impl PartialEq for IndexDatapoint
source§fn eq(&self, other: &IndexDatapoint) -> bool
fn eq(&self, other: &IndexDatapoint) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IndexDatapoint
Auto Trait Implementations§
impl Freeze for IndexDatapoint
impl RefUnwindSafe for IndexDatapoint
impl Send for IndexDatapoint
impl Sync for IndexDatapoint
impl Unpin for IndexDatapoint
impl UnwindSafe for IndexDatapoint
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