Enum google_api_proto::google::cloud::discoveryengine::v1beta::evaluation::evaluation_spec::SearchSpec
source · pub enum SearchSpec {
SearchRequest(SearchRequest),
}
Expand description
The search specification.
Variants§
SearchRequest(SearchRequest)
Required. The search request that is used to perform the evaluation.
Only the following fields within SearchRequest are supported; if any other fields are provided, an UNSUPPORTED error will be returned:
- [SearchRequest.serving_config][google.cloud.discoveryengine.v1beta.SearchRequest.serving_config]
- [SearchRequest.branch][google.cloud.discoveryengine.v1beta.SearchRequest.branch]
- [SearchRequest.canonical_filter][google.cloud.discoveryengine.v1beta.SearchRequest.canonical_filter]
- [SearchRequest.query_expansion_spec][google.cloud.discoveryengine.v1beta.SearchRequest.query_expansion_spec]
- [SearchRequest.spell_correction_spec][google.cloud.discoveryengine.v1beta.SearchRequest.spell_correction_spec]
- [SearchRequest.content_search_spec][google.cloud.discoveryengine.v1beta.SearchRequest.content_search_spec]
- [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id]
Implementations§
source§impl SearchSpec
impl SearchSpec
sourcepub fn merge(
field: &mut Option<SearchSpec>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<SearchSpec>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
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 SearchSpec
impl Clone for SearchSpec
source§fn clone(&self) -> SearchSpec
fn clone(&self) -> SearchSpec
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SearchSpec
impl Debug for SearchSpec
source§impl PartialEq for SearchSpec
impl PartialEq for SearchSpec
source§fn eq(&self, other: &SearchSpec) -> bool
fn eq(&self, other: &SearchSpec) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SearchSpec
Auto Trait Implementations§
impl Freeze for SearchSpec
impl RefUnwindSafe for SearchSpec
impl Send for SearchSpec
impl Sync for SearchSpec
impl Unpin for SearchSpec
impl UnwindSafe for SearchSpec
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
Mutably borrows from an owned value. Read more
§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>
Wrap the input message
T
in a tonic::Request