pub struct CallAsset {
pub country_code: String,
pub phone_number: String,
pub call_conversion_reporting_state: i32,
pub call_conversion_action: String,
pub ad_schedule_targets: Vec<AdScheduleInfo>,
}
Expand description
A Call asset.
Fields§
§country_code: String
Required. Two-letter country code of the phone number. Examples: ‘US’, ‘us’.
phone_number: String
Required. The advertiser’s raw phone number. Examples: ‘1234567890’, ‘(123)456-7890’
call_conversion_reporting_state: i32
Indicates whether this CallAsset should use its own call conversion setting, follow the account level setting, or disable call conversion.
call_conversion_action: String
The conversion action to attribute a call conversion to. If not set, the default conversion action is used. This field only has effect if call_conversion_reporting_state is set to USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION.
ad_schedule_targets: Vec<AdScheduleInfo>
List of non-overlapping schedules specifying all time intervals for which the asset may serve. There can be a maximum of 6 schedules per day, 42 in total.
Implementations§
source§impl CallAsset
impl CallAsset
sourcepub fn call_conversion_reporting_state(&self) -> CallConversionReportingState
pub fn call_conversion_reporting_state(&self) -> CallConversionReportingState
Returns the enum value of call_conversion_reporting_state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_call_conversion_reporting_state(
&mut self,
value: CallConversionReportingState,
)
pub fn set_call_conversion_reporting_state( &mut self, value: CallConversionReportingState, )
Sets call_conversion_reporting_state
to the provided enum value.
Trait Implementations§
source§impl Message for CallAsset
impl Message for CallAsset
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 CallAsset
impl PartialEq for CallAsset
impl StructuralPartialEq for CallAsset
Auto Trait Implementations§
impl Freeze for CallAsset
impl RefUnwindSafe for CallAsset
impl Send for CallAsset
impl Sync for CallAsset
impl Unpin for CallAsset
impl UnwindSafe for CallAsset
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