pub struct GoogleCloudAiplatformV1beta1NearestNeighborQuery {
pub entity_id: Option<String>,
pub neighbor_count: Option<i32>,
pub string_filters: Option<Vec<GoogleCloudAiplatformV1beta1NearestNeighborQueryStringFilter>>,
pub parameters: Option<GoogleCloudAiplatformV1beta1NearestNeighborQueryParameters>,
pub numeric_filters: Option<Vec<GoogleCloudAiplatformV1beta1NearestNeighborQueryNumericFilter>>,
pub embedding: Option<GoogleCloudAiplatformV1beta1NearestNeighborQueryEmbedding>,
pub per_crowding_attribute_neighbor_count: Option<i32>,
}Expand description
A query to find a number of similar entities.
This type is not used in any activity, and only used as part of another schema.
Fields§
§entity_id: Option<String>Optional. The entity id whose similar entities should be searched for. If embedding is set, search will use embedding instead of entity_id.
neighbor_count: Option<i32>Optional. The number of similar entities to be retrieved from feature view for each query.
string_filters: Option<Vec<GoogleCloudAiplatformV1beta1NearestNeighborQueryStringFilter>>Optional. The list of string filters.
parameters: Option<GoogleCloudAiplatformV1beta1NearestNeighborQueryParameters>Optional. Parameters that can be set to tune query on the fly.
numeric_filters: Option<Vec<GoogleCloudAiplatformV1beta1NearestNeighborQueryNumericFilter>>Optional. The list of numeric filters.
embedding: Option<GoogleCloudAiplatformV1beta1NearestNeighborQueryEmbedding>Optional. The embedding vector that be used for similar search.
per_crowding_attribute_neighbor_count: Option<i32>Optional. Crowding is a constraint on a neighbor list produced by nearest neighbor search requiring that no more than sper_crowding_attribute_neighbor_count of the k neighbors returned have the same value of crowding_attribute. It’s used for improving result diversity.
Trait Implementations§
Source§impl Clone for GoogleCloudAiplatformV1beta1NearestNeighborQuery
impl Clone for GoogleCloudAiplatformV1beta1NearestNeighborQuery
Source§fn clone(&self) -> GoogleCloudAiplatformV1beta1NearestNeighborQuery
fn clone(&self) -> GoogleCloudAiplatformV1beta1NearestNeighborQuery
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GoogleCloudAiplatformV1beta1NearestNeighborQuery
impl Default for GoogleCloudAiplatformV1beta1NearestNeighborQuery
Source§fn default() -> GoogleCloudAiplatformV1beta1NearestNeighborQuery
fn default() -> GoogleCloudAiplatformV1beta1NearestNeighborQuery
Source§impl<'de> Deserialize<'de> for GoogleCloudAiplatformV1beta1NearestNeighborQuery
impl<'de> Deserialize<'de> for GoogleCloudAiplatformV1beta1NearestNeighborQuery
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>,
impl Part for GoogleCloudAiplatformV1beta1NearestNeighborQuery
Auto Trait Implementations§
impl Freeze for GoogleCloudAiplatformV1beta1NearestNeighborQuery
impl RefUnwindSafe for GoogleCloudAiplatformV1beta1NearestNeighborQuery
impl Send for GoogleCloudAiplatformV1beta1NearestNeighborQuery
impl Sync for GoogleCloudAiplatformV1beta1NearestNeighborQuery
impl Unpin for GoogleCloudAiplatformV1beta1NearestNeighborQuery
impl UnwindSafe for GoogleCloudAiplatformV1beta1NearestNeighborQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more