Struct google_api_proto::google::ads::googleads::v15::resources::ProductCategoryConstant
source · pub struct ProductCategoryConstant {
pub resource_name: String,
pub category_id: i64,
pub product_category_constant_parent: Option<String>,
pub level: i32,
pub state: i32,
pub localizations: Vec<ProductCategoryLocalization>,
}
Expand description
A Product Category.
Fields§
§resource_name: String
Output only. The resource name of the product category. Product category resource names have the form:
productCategoryConstants/{level}~{category_id}
category_id: i64
Output only. The ID of the product category.
This ID is equivalent to the google_product_category ID as described in this article: https://support.google.com/merchants/answer/6324436.
product_category_constant_parent: Option<String>
Output only. Resource name of the parent product category.
level: i32
Output only. Level of the product category.
state: i32
Output only. State of the product category.
localizations: Vec<ProductCategoryLocalization>
Output only. List of all available localizations of the product category.
Implementations§
source§impl ProductCategoryConstant
impl ProductCategoryConstant
sourcepub fn product_category_constant_parent(&self) -> &str
pub fn product_category_constant_parent(&self) -> &str
Returns the value of product_category_constant_parent
, or the default value if product_category_constant_parent
is unset.
sourcepub fn level(&self) -> ProductCategoryLevel
pub fn level(&self) -> ProductCategoryLevel
Returns the enum value of level
, or the default if the field is set to an invalid enum value.
sourcepub fn set_level(&mut self, value: ProductCategoryLevel)
pub fn set_level(&mut self, value: ProductCategoryLevel)
Sets level
to the provided enum value.
sourcepub fn state(&self) -> ProductCategoryState
pub fn state(&self) -> ProductCategoryState
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_state(&mut self, value: ProductCategoryState)
pub fn set_state(&mut self, value: ProductCategoryState)
Sets state
to the provided enum value.
Trait Implementations§
source§impl Clone for ProductCategoryConstant
impl Clone for ProductCategoryConstant
source§fn clone(&self) -> ProductCategoryConstant
fn clone(&self) -> ProductCategoryConstant
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProductCategoryConstant
impl Debug for ProductCategoryConstant
source§impl Default for ProductCategoryConstant
impl Default for ProductCategoryConstant
source§impl Message for ProductCategoryConstant
impl Message for ProductCategoryConstant
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 ProductCategoryConstant
impl PartialEq for ProductCategoryConstant
source§fn eq(&self, other: &ProductCategoryConstant) -> bool
fn eq(&self, other: &ProductCategoryConstant) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ProductCategoryConstant
Auto Trait Implementations§
impl Freeze for ProductCategoryConstant
impl RefUnwindSafe for ProductCategoryConstant
impl Send for ProductCategoryConstant
impl Sync for ProductCategoryConstant
impl Unpin for ProductCategoryConstant
impl UnwindSafe for ProductCategoryConstant
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