Struct google_api_proto::google::ads::googleads::v15::common::LocationAsset
source · pub struct LocationAsset {
pub place_id: String,
pub business_profile_locations: Vec<BusinessProfileLocation>,
pub location_ownership_type: i32,
}
Expand description
A location asset.
Fields§
§place_id: String
Place IDs uniquely identify a place in the Google Places database and on Google Maps. This field is unique for a given customer ID and asset type. See https://developers.google.com/places/web-service/place-id to learn more about Place ID.
business_profile_locations: Vec<BusinessProfileLocation>
The list of business locations for the customer. This will only be returned if the Location Asset is syncing from the Business Profile account. It is possible to have multiple Business Profile listings under the same account that point to the same Place ID.
location_ownership_type: i32
The type of location ownership. If the type is BUSINESS_OWNER, it will be served as a location extension. If the type is AFFILIATE, it will be served as an affiliate location.
Implementations§
source§impl LocationAsset
impl LocationAsset
sourcepub fn location_ownership_type(&self) -> LocationOwnershipType
pub fn location_ownership_type(&self) -> LocationOwnershipType
Returns the enum value of location_ownership_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_location_ownership_type(&mut self, value: LocationOwnershipType)
pub fn set_location_ownership_type(&mut self, value: LocationOwnershipType)
Sets location_ownership_type
to the provided enum value.
Trait Implementations§
source§impl Clone for LocationAsset
impl Clone for LocationAsset
source§fn clone(&self) -> LocationAsset
fn clone(&self) -> LocationAsset
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LocationAsset
impl Debug for LocationAsset
source§impl Default for LocationAsset
impl Default for LocationAsset
source§impl Message for LocationAsset
impl Message for LocationAsset
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 LocationAsset
impl PartialEq for LocationAsset
source§fn eq(&self, other: &LocationAsset) -> bool
fn eq(&self, other: &LocationAsset) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LocationAsset
Auto Trait Implementations§
impl Freeze for LocationAsset
impl RefUnwindSafe for LocationAsset
impl Send for LocationAsset
impl Sync for LocationAsset
impl Unpin for LocationAsset
impl UnwindSafe for LocationAsset
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