pub struct Property {Show 13 fields
pub name: String,
pub property_type: i32,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub parent: String,
pub display_name: String,
pub industry_category: i32,
pub time_zone: String,
pub currency_code: String,
pub service_level: i32,
pub delete_time: Option<Timestamp>,
pub expire_time: Option<Timestamp>,
pub account: String,
}
Expand description
A resource message representing a Google Analytics GA4 property.
Fields§
§name: String
Output only. Resource name of this property. Format: properties/{property_id} Example: “properties/1000”
property_type: i32
Immutable. The property type for this Property resource. When creating a property, if the type is “PROPERTY_TYPE_UNSPECIFIED”, then “ORDINARY_PROPERTY” will be implied.
create_time: Option<Timestamp>
Output only. Time when the entity was originally created.
update_time: Option<Timestamp>
Output only. Time when entity payload fields were last updated.
parent: String
Immutable. Resource name of this property’s logical parent.
Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: “accounts/100”, “properties/101”
display_name: String
Required. Human-readable display name for this property.
The max allowed display name length is 100 UTF-16 code units.
industry_category: i32
Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK
time_zone: String
Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes.
NOTE: Changing the time zone only affects data going forward, and is not applied retroactively.
Format: https://www.iana.org/time-zones Example: “America/Los_Angeles”
currency_code: String
The currency type used in reports involving monetary values.
Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: “USD”, “EUR”, “JPY”
service_level: i32
Output only. The Google Analytics service level that applies to this property.
delete_time: Option<Timestamp>
Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can.
expire_time: Option<Timestamp>
Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted.
account: String
Immutable. The resource name of the parent account Format: accounts/{account_id} Example: “accounts/123”
Implementations§
source§impl Property
impl Property
sourcepub fn industry_category(&self) -> IndustryCategory
pub fn industry_category(&self) -> IndustryCategory
Returns the enum value of industry_category
, or the default if the field is set to an invalid enum value.
sourcepub fn set_industry_category(&mut self, value: IndustryCategory)
pub fn set_industry_category(&mut self, value: IndustryCategory)
Sets industry_category
to the provided enum value.
sourcepub fn service_level(&self) -> ServiceLevel
pub fn service_level(&self) -> ServiceLevel
Returns the enum value of service_level
, or the default if the field is set to an invalid enum value.
sourcepub fn set_service_level(&mut self, value: ServiceLevel)
pub fn set_service_level(&mut self, value: ServiceLevel)
Sets service_level
to the provided enum value.
sourcepub fn property_type(&self) -> PropertyType
pub fn property_type(&self) -> PropertyType
Returns the enum value of property_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_property_type(&mut self, value: PropertyType)
pub fn set_property_type(&mut self, value: PropertyType)
Sets property_type
to the provided enum value.
Trait Implementations§
source§impl Message for Property
impl Message for Property
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 Property
impl PartialEq for Property
impl StructuralPartialEq for Property
Auto Trait Implementations§
impl Freeze for Property
impl RefUnwindSafe for Property
impl Send for Property
impl Sync for Property
impl Unpin for Property
impl UnwindSafe for Property
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