#[non_exhaustive]pub struct FindNeighborsRequest {
pub index_endpoint: String,
pub deployed_index_id: String,
pub queries: Vec<Query>,
pub return_full_datapoint: bool,
/* private fields */
}Expand description
The request message for MatchService.FindNeighbors.
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.index_endpoint: StringRequired. The name of the index endpoint.
Format:
projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}
deployed_index_id: StringThe ID of the DeployedIndex that will serve the request. This request is sent to a specific IndexEndpoint, as per the IndexEndpoint.network. That IndexEndpoint also has IndexEndpoint.deployed_indexes, and each such index has a DeployedIndex.id field. The value of the field below must equal one of the DeployedIndex.id fields of the IndexEndpoint that is being called for this request.
queries: Vec<Query>The list of queries.
return_full_datapoint: boolIf set to true, the full datapoints (including all vector values and restricts) of the nearest neighbors are returned. Note that returning full datapoint will significantly increase the latency and cost of the query.
Implementations§
Source§impl FindNeighborsRequest
impl FindNeighborsRequest
pub fn new() -> Self
Sourcepub fn set_index_endpoint<T: Into<String>>(self, v: T) -> Self
pub fn set_index_endpoint<T: Into<String>>(self, v: T) -> Self
Sets the value of index_endpoint.
Sourcepub fn set_deployed_index_id<T: Into<String>>(self, v: T) -> Self
pub fn set_deployed_index_id<T: Into<String>>(self, v: T) -> Self
Sets the value of deployed_index_id.
Sourcepub fn set_queries<T, V>(self, v: T) -> Self
pub fn set_queries<T, V>(self, v: T) -> Self
Sets the value of queries.
Sourcepub fn set_return_full_datapoint<T: Into<bool>>(self, v: T) -> Self
pub fn set_return_full_datapoint<T: Into<bool>>(self, v: T) -> Self
Sets the value of return_full_datapoint.
Trait Implementations§
Source§impl Clone for FindNeighborsRequest
impl Clone for FindNeighborsRequest
Source§fn clone(&self) -> FindNeighborsRequest
fn clone(&self) -> FindNeighborsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more