Struct google_api_proto::google::cloud::contentwarehouse::v1::HistogramQueryPropertyNameFilter
source · pub struct HistogramQueryPropertyNameFilter {
pub document_schemas: Vec<String>,
pub property_names: Vec<String>,
pub y_axis: i32,
}
Fields§
§document_schemas: Vec<String>
This filter specifies the exact document schema(s) [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] to run histogram query against. It is optional. It will perform histogram for property names for all the document schemas if it is not set.
At most 10 document schema names are allowed. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
property_names: Vec<String>
It is optional. It will perform histogram for all the property names if it is not set. The properties need to be defined with the is_filterable flag set to true and the name of the property should be in the format: “schemaId.propertyName”. The property needs to be defined in the schema. Example: the schema id is abc. Then the name of property for property MORTGAGE_TYPE will be “abc.MORTGAGE_TYPE”.
y_axis: i32
By default, the y_axis is HISTOGRAM_YAXIS_DOCUMENT if this field is not set.
Implementations§
source§impl HistogramQueryPropertyNameFilter
impl HistogramQueryPropertyNameFilter
sourcepub fn y_axis(&self) -> HistogramYAxis
pub fn y_axis(&self) -> HistogramYAxis
Returns the enum value of y_axis
, or the default if the field is set to an invalid enum value.
sourcepub fn set_y_axis(&mut self, value: HistogramYAxis)
pub fn set_y_axis(&mut self, value: HistogramYAxis)
Sets y_axis
to the provided enum value.
Trait Implementations§
source§impl Clone for HistogramQueryPropertyNameFilter
impl Clone for HistogramQueryPropertyNameFilter
source§fn clone(&self) -> HistogramQueryPropertyNameFilter
fn clone(&self) -> HistogramQueryPropertyNameFilter
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for HistogramQueryPropertyNameFilter
impl Message for HistogramQueryPropertyNameFilter
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.source§impl PartialEq for HistogramQueryPropertyNameFilter
impl PartialEq for HistogramQueryPropertyNameFilter
source§fn eq(&self, other: &HistogramQueryPropertyNameFilter) -> bool
fn eq(&self, other: &HistogramQueryPropertyNameFilter) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HistogramQueryPropertyNameFilter
Auto Trait Implementations§
impl Freeze for HistogramQueryPropertyNameFilter
impl RefUnwindSafe for HistogramQueryPropertyNameFilter
impl Send for HistogramQueryPropertyNameFilter
impl Sync for HistogramQueryPropertyNameFilter
impl Unpin for HistogramQueryPropertyNameFilter
impl UnwindSafe for HistogramQueryPropertyNameFilter
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