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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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