Struct google_api_proto::google::cloud::datacatalog::v1::SearchCatalogRequest
source · pub struct SearchCatalogRequest {
pub scope: Option<Scope>,
pub query: String,
pub page_size: i32,
pub page_token: String,
pub order_by: String,
pub admin_search: bool,
}
Expand description
Request message for [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog].
Fields§
§scope: Option<Scope>
Required. The scope of this search request.
The scope
is invalid if include_org_ids
, include_project_ids
are
empty AND include_gcp_public_datasets
is set to false
. In this case,
the request returns an error.
query: String
Optional. The query string with a minimum of 3 characters and specific syntax. For more information, see Data Catalog search syntax.
An empty query string returns all data assets (in the specified scope) that you have access to.
A query string can be a simple xyz
or qualified by predicates:
name:x
column:y
description:z
page_size: i32
Upper bound on the number of results you can get in a single response.
Can’t be negative or 0, defaults to 10 in this case. The maximum number is 1000. If exceeded, throws an “invalid argument” exception.
page_token: String
Optional. Pagination token that, if specified, returns the next page of search results. If empty, returns the first page.
This token is returned in the [SearchCatalogResponse.next_page_token][google.cloud.datacatalog.v1.SearchCatalogResponse.next_page_token] field of the response to a previous [SearchCatalogRequest][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog] call.
order_by: String
Specifies the order of results.
Currently supported case-sensitive values are:
relevance
that can only be descendinglast_modified_timestamp \[asc|desc\]
with descending (desc
) as defaultdefault
that can only be descending
Search queries don’t guarantee full recall. Results that match your query
might not be returned, even in subsequent result pages. Additionally,
returned (and not returned) results can vary if you repeat search queries.
If you are experiencing recall issues and you don’t have to fetch the
results in any specific order, consider setting this parameter to
default
.
If this parameter is omitted, it defaults to the descending relevance
.
admin_search: bool
Optional. If set, use searchAll permission granted on organizations from
include_org_ids
and projects from include_project_ids
instead of the
fine grained per resource permissions when filtering the search results.
The only allowed order_by
criteria for admin_search mode is default
.
Using this flags guarantees a full recall of the search results.
Trait Implementations§
source§impl Clone for SearchCatalogRequest
impl Clone for SearchCatalogRequest
source§fn clone(&self) -> SearchCatalogRequest
fn clone(&self) -> SearchCatalogRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SearchCatalogRequest
impl Debug for SearchCatalogRequest
source§impl Default for SearchCatalogRequest
impl Default for SearchCatalogRequest
source§impl Message for SearchCatalogRequest
impl Message for SearchCatalogRequest
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 SearchCatalogRequest
impl PartialEq for SearchCatalogRequest
source§fn eq(&self, other: &SearchCatalogRequest) -> bool
fn eq(&self, other: &SearchCatalogRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SearchCatalogRequest
Auto Trait Implementations§
impl Freeze for SearchCatalogRequest
impl RefUnwindSafe for SearchCatalogRequest
impl Send for SearchCatalogRequest
impl Sync for SearchCatalogRequest
impl Unpin for SearchCatalogRequest
impl UnwindSafe for SearchCatalogRequest
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