Struct google_api_proto::google::cloud::talent::v4::CustomAttribute
source · pub struct CustomAttribute {
pub string_values: Vec<String>,
pub long_values: Vec<i64>,
pub filterable: bool,
pub keyword_searchable: bool,
}
Expand description
Custom attribute values that are either filterable or non-filterable.
Fields§
§string_values: Vec<String>
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified.
This field is used to perform a string match (CASE_SENSITIVE_MATCH
or
CASE_INSENSITIVE_MATCH
) search.
For filterable string_value
s, a maximum total number of 200 values
is allowed, with each string_value
has a byte size of no more than
500B. For unfilterable string_values
, the maximum total byte size of
unfilterable string_values
is 50KB.
Empty string isn’t allowed.
long_values: Vec<i64>
Exactly one of [string_values][google.cloud.talent.v4.CustomAttribute.string_values] or [long_values][google.cloud.talent.v4.CustomAttribute.long_values] must be specified.
This field is used to perform number range search.
(EQ
, GT
, GE
, LE
, LT
) over filterable long_value
.
Currently at most 1 [long_values][google.cloud.talent.v4.CustomAttribute.long_values] is supported.
filterable: bool
If the filterable
flag is true, the custom field values may be used for
custom attribute filters
[JobQuery.custom_attribute_filter][google.cloud.talent.v4.JobQuery.custom_attribute_filter].
If false, these values may not be used for custom attribute filters.
Default is false.
keyword_searchable: bool
If the keyword_searchable
flag is true, the keywords in custom fields are
searchable by keyword match.
If false, the values are not searchable by keyword match.
Default is false.
Trait Implementations§
source§impl Clone for CustomAttribute
impl Clone for CustomAttribute
source§fn clone(&self) -> CustomAttribute
fn clone(&self) -> CustomAttribute
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CustomAttribute
impl Debug for CustomAttribute
source§impl Default for CustomAttribute
impl Default for CustomAttribute
source§impl Message for CustomAttribute
impl Message for CustomAttribute
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 CustomAttribute
impl PartialEq for CustomAttribute
source§fn eq(&self, other: &CustomAttribute) -> bool
fn eq(&self, other: &CustomAttribute) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CustomAttribute
Auto Trait Implementations§
impl Freeze for CustomAttribute
impl RefUnwindSafe for CustomAttribute
impl Send for CustomAttribute
impl Sync for CustomAttribute
impl Unpin for CustomAttribute
impl UnwindSafe for CustomAttribute
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