Struct google_api_proto::google::cloud::retail::v2beta::AttributesConfig
source · pub struct AttributesConfig {
pub name: String,
pub catalog_attributes: BTreeMap<String, CatalogAttribute>,
pub attribute_config_level: i32,
}
Expand description
Catalog level attribute config.
Fields§
§name: String
Required. Immutable. The fully qualified resource name of the attribute
config. Format: projects/*/locations/*/catalogs/*/attributesConfig
catalog_attributes: BTreeMap<String, CatalogAttribute>
Enable attribute(s) config at catalog level. For example, indexable, dynamic_facetable, or searchable for each attribute.
The key is catalog attribute’s name.
For example: color
, brands
, attributes.custom_attribute
, such as
attributes.xyz
.
The maximum number of catalog attributes allowed in a request is 1000.
attribute_config_level: i32
Output only. The [AttributeConfigLevel][google.cloud.retail.v2beta.AttributeConfigLevel] used for this catalog.
Implementations§
source§impl AttributesConfig
impl AttributesConfig
sourcepub fn attribute_config_level(&self) -> AttributeConfigLevel
pub fn attribute_config_level(&self) -> AttributeConfigLevel
Returns the enum value of attribute_config_level
, or the default if the field is set to an invalid enum value.
sourcepub fn set_attribute_config_level(&mut self, value: AttributeConfigLevel)
pub fn set_attribute_config_level(&mut self, value: AttributeConfigLevel)
Sets attribute_config_level
to the provided enum value.
Trait Implementations§
source§impl Clone for AttributesConfig
impl Clone for AttributesConfig
source§fn clone(&self) -> AttributesConfig
fn clone(&self) -> AttributesConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AttributesConfig
impl Debug for AttributesConfig
source§impl Default for AttributesConfig
impl Default for AttributesConfig
source§impl Message for AttributesConfig
impl Message for AttributesConfig
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 AttributesConfig
impl PartialEq for AttributesConfig
source§fn eq(&self, other: &AttributesConfig) -> bool
fn eq(&self, other: &AttributesConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AttributesConfig
Auto Trait Implementations§
impl Freeze for AttributesConfig
impl RefUnwindSafe for AttributesConfig
impl Send for AttributesConfig
impl Sync for AttributesConfig
impl Unpin for AttributesConfig
impl UnwindSafe for AttributesConfig
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