Struct google_api_proto::google::cloud::contentwarehouse::v1::SearchDocumentsResponse
source · pub struct SearchDocumentsResponse {
pub matching_documents: Vec<MatchingDocument>,
pub next_page_token: String,
pub total_size: i32,
pub metadata: Option<ResponseMetadata>,
pub histogram_query_results: Vec<HistogramQueryResult>,
pub question_answer: String,
}
Expand description
Response message for DocumentService.SearchDocuments.
Fields§
§matching_documents: Vec<MatchingDocument>
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
next_page_token: String
The token that specifies the starting position of the next page of results. This field is empty if there are no more results.
total_size: i32
The total number of matched documents which is available only if the client
set
[SearchDocumentsRequest.require_total_size][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.require_total_size]
to true
or set
[SearchDocumentsRequest.total_result_size][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.total_result_size]
to ESTIMATED_SIZE
or ACTUAL_SIZE
. Otherwise, the value will be -1
.
Typically a UI would handle this condition by displaying "of
many", for example: "Displaying 10 of many".
metadata: Option<ResponseMetadata>
Additional information for the API invocation, such as the request tracking id.
histogram_query_results: Vec<HistogramQueryResult>
The histogram results that match with the specified [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
question_answer: String
Experimental. Question answer from the query against the document.
Trait Implementations§
source§impl Clone for SearchDocumentsResponse
impl Clone for SearchDocumentsResponse
source§fn clone(&self) -> SearchDocumentsResponse
fn clone(&self) -> SearchDocumentsResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SearchDocumentsResponse
impl Debug for SearchDocumentsResponse
source§impl Default for SearchDocumentsResponse
impl Default for SearchDocumentsResponse
source§impl Message for SearchDocumentsResponse
impl Message for SearchDocumentsResponse
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 SearchDocumentsResponse
impl PartialEq for SearchDocumentsResponse
source§fn eq(&self, other: &SearchDocumentsResponse) -> bool
fn eq(&self, other: &SearchDocumentsResponse) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SearchDocumentsResponse
Auto Trait Implementations§
impl Freeze for SearchDocumentsResponse
impl RefUnwindSafe for SearchDocumentsResponse
impl Send for SearchDocumentsResponse
impl Sync for SearchDocumentsResponse
impl Unpin for SearchDocumentsResponse
impl UnwindSafe for SearchDocumentsResponse
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