Struct google_api_proto::google::ads::googleads::v16::resources::OperatingSystemVersionConstant
source · pub struct OperatingSystemVersionConstant {
pub resource_name: String,
pub id: Option<i64>,
pub name: Option<String>,
pub os_major_version: Option<i32>,
pub os_minor_version: Option<i32>,
pub operator_type: i32,
}
Expand description
A mobile operating system version or a range of versions, depending on
operator_type
. List of available mobile platforms at
https://developers.google.com/google-ads/api/reference/data/codes-formats#mobile-platforms
Fields§
§resource_name: String
Output only. The resource name of the operating system version constant. Operating system version constant resource names have the form:
operatingSystemVersionConstants/{criterion_id}
id: Option<i64>
Output only. The ID of the operating system version.
name: Option<String>
Output only. Name of the operating system.
os_major_version: Option<i32>
Output only. The OS Major Version number.
os_minor_version: Option<i32>
Output only. The OS Minor Version number.
operator_type: i32
Output only. Determines whether this constant represents a single version or a range of versions.
Implementations§
source§impl OperatingSystemVersionConstant
impl OperatingSystemVersionConstant
sourcepub fn operator_type(&self) -> OperatingSystemVersionOperatorType
pub fn operator_type(&self) -> OperatingSystemVersionOperatorType
Returns the enum value of operator_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_operator_type(&mut self, value: OperatingSystemVersionOperatorType)
pub fn set_operator_type(&mut self, value: OperatingSystemVersionOperatorType)
Sets operator_type
to the provided enum value.
sourcepub fn os_major_version(&self) -> i32
pub fn os_major_version(&self) -> i32
Returns the value of os_major_version
, or the default value if os_major_version
is unset.
sourcepub fn os_minor_version(&self) -> i32
pub fn os_minor_version(&self) -> i32
Returns the value of os_minor_version
, or the default value if os_minor_version
is unset.
Trait Implementations§
source§impl Clone for OperatingSystemVersionConstant
impl Clone for OperatingSystemVersionConstant
source§fn clone(&self) -> OperatingSystemVersionConstant
fn clone(&self) -> OperatingSystemVersionConstant
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for OperatingSystemVersionConstant
impl Message for OperatingSystemVersionConstant
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 OperatingSystemVersionConstant
impl PartialEq for OperatingSystemVersionConstant
source§fn eq(&self, other: &OperatingSystemVersionConstant) -> bool
fn eq(&self, other: &OperatingSystemVersionConstant) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OperatingSystemVersionConstant
Auto Trait Implementations§
impl Freeze for OperatingSystemVersionConstant
impl RefUnwindSafe for OperatingSystemVersionConstant
impl Send for OperatingSystemVersionConstant
impl Sync for OperatingSystemVersionConstant
impl Unpin for OperatingSystemVersionConstant
impl UnwindSafe for OperatingSystemVersionConstant
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