pub struct AssetSet {
pub id: i64,
pub resource_name: String,
pub name: String,
pub type: i32,
pub status: i32,
pub merchant_center_feed: Option<MerchantCenterFeed>,
pub location_group_parent_asset_set_id: i64,
pub hotel_property_data: Option<HotelPropertyData>,
pub asset_set_source: Option<AssetSetSource>,
}
Expand description
An asset set representing a collection of assets. Use AssetSetAsset to link an asset to the asset set.
Fields§
§id: i64
Output only. The ID of the asset set.
resource_name: String
Immutable. The resource name of the asset set. Asset set resource names have the form:
customers/{customer_id}/assetSets/{asset_set_id}
name: String
Required. Name of the asset set. Required. It must have a minimum length of 1 and maximum length of 128.
type: i32
Required. Immutable. The type of the asset set. Required.
status: i32
Output only. The status of the asset set. Read-only.
merchant_center_feed: Option<MerchantCenterFeed>
Merchant ID and Feed Label from Google Merchant Center.
location_group_parent_asset_set_id: i64
Immutable. Parent asset set id for the asset set where the elements of this asset set come from. For example: the sync level location AssetSet id where the the elements in LocationGroup AssetSet come from. This field is required and only applicable for Location Group typed AssetSet.
hotel_property_data: Option<HotelPropertyData>
Output only. For Performance Max for travel goals campaigns with a Hotel Center account link. Read-only.
asset_set_source: Option<AssetSetSource>
Asset set data specific to each asset set type. Not all types have specific data.
Implementations§
source§impl AssetSet
impl AssetSet
sourcepub fn type(&self) -> AssetSetType
pub fn type(&self) -> AssetSetType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_type(&mut self, value: AssetSetType)
pub fn set_type(&mut self, value: AssetSetType)
Sets type
to the provided enum value.
sourcepub fn status(&self) -> AssetSetStatus
pub fn status(&self) -> AssetSetStatus
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: AssetSetStatus)
pub fn set_status(&mut self, value: AssetSetStatus)
Sets status
to the provided enum value.
Trait Implementations§
source§impl Message for AssetSet
impl Message for AssetSet
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 AssetSet
impl PartialEq for AssetSet
impl StructuralPartialEq for AssetSet
Auto Trait Implementations§
impl Freeze for AssetSet
impl RefUnwindSafe for AssetSet
impl Send for AssetSet
impl Sync for AssetSet
impl Unpin for AssetSet
impl UnwindSafe for AssetSet
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