Struct google_api_proto::google::ads::googleads::v14::resources::ProductBiddingCategoryConstant
source · pub struct ProductBiddingCategoryConstant {
pub resource_name: String,
pub id: Option<i64>,
pub country_code: Option<String>,
pub product_bidding_category_constant_parent: Option<String>,
pub level: i32,
pub status: i32,
pub language_code: Option<String>,
pub localized_name: Option<String>,
}
Expand description
A Product Bidding Category.
Fields§
§resource_name: String
Output only. The resource name of the product bidding category. Product bidding category resource names have the form:
productBiddingCategoryConstants/{country_code}~{level}~{id}
id: Option<i64>
Output only. ID of the product bidding category.
This ID is equivalent to the google_product_category ID as described in this article: https://support.google.com/merchants/answer/6324436.
country_code: Option<String>
Output only. Two-letter upper-case country code of the product bidding category.
product_bidding_category_constant_parent: Option<String>
Output only. Resource name of the parent product bidding category.
level: i32
Output only. Level of the product bidding category.
status: i32
Output only. Status of the product bidding category.
language_code: Option<String>
Output only. Language code of the product bidding category.
localized_name: Option<String>
Output only. Display value of the product bidding category localized according to language_code.
Implementations§
source§impl ProductBiddingCategoryConstant
impl ProductBiddingCategoryConstant
sourcepub fn level(&self) -> ProductBiddingCategoryLevel
pub fn level(&self) -> ProductBiddingCategoryLevel
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: ProductBiddingCategoryLevel)
pub fn set_level(&mut self, value: ProductBiddingCategoryLevel)
Sets level
to the provided enum value.
sourcepub fn status(&self) -> ProductBiddingCategoryStatus
pub fn status(&self) -> ProductBiddingCategoryStatus
Returns the enum value of status
, or the default if the field is set to an invalid enum value.
sourcepub fn set_status(&mut self, value: ProductBiddingCategoryStatus)
pub fn set_status(&mut self, value: ProductBiddingCategoryStatus)
Sets status
to the provided enum value.
sourcepub fn country_code(&self) -> &str
pub fn country_code(&self) -> &str
Returns the value of country_code
, or the default value if country_code
is unset.
sourcepub fn product_bidding_category_constant_parent(&self) -> &str
pub fn product_bidding_category_constant_parent(&self) -> &str
Returns the value of product_bidding_category_constant_parent
, or the default value if product_bidding_category_constant_parent
is unset.
sourcepub fn language_code(&self) -> &str
pub fn language_code(&self) -> &str
Returns the value of language_code
, or the default value if language_code
is unset.
sourcepub fn localized_name(&self) -> &str
pub fn localized_name(&self) -> &str
Returns the value of localized_name
, or the default value if localized_name
is unset.
Trait Implementations§
source§impl Clone for ProductBiddingCategoryConstant
impl Clone for ProductBiddingCategoryConstant
source§fn clone(&self) -> ProductBiddingCategoryConstant
fn clone(&self) -> ProductBiddingCategoryConstant
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for ProductBiddingCategoryConstant
impl Message for ProductBiddingCategoryConstant
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 ProductBiddingCategoryConstant
impl PartialEq for ProductBiddingCategoryConstant
source§fn eq(&self, other: &ProductBiddingCategoryConstant) -> bool
fn eq(&self, other: &ProductBiddingCategoryConstant) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ProductBiddingCategoryConstant
Auto Trait Implementations§
impl Freeze for ProductBiddingCategoryConstant
impl RefUnwindSafe for ProductBiddingCategoryConstant
impl Send for ProductBiddingCategoryConstant
impl Sync for ProductBiddingCategoryConstant
impl Unpin for ProductBiddingCategoryConstant
impl UnwindSafe for ProductBiddingCategoryConstant
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