#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Account {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub create_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag = "3")]
pub update_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(string, tag = "4")]
pub display_name: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub region_code: ::prost::alloc::string::String,
#[prost(bool, tag = "6")]
pub deleted: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Property {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(enumeration = "PropertyType", tag = "14")]
pub property_type: i32,
#[prost(message, optional, tag = "3")]
pub create_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag = "4")]
pub update_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(string, tag = "2")]
pub parent: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub display_name: ::prost::alloc::string::String,
#[prost(enumeration = "IndustryCategory", tag = "6")]
pub industry_category: i32,
#[prost(string, tag = "7")]
pub time_zone: ::prost::alloc::string::String,
#[prost(string, tag = "8")]
pub currency_code: ::prost::alloc::string::String,
#[prost(enumeration = "ServiceLevel", tag = "10")]
pub service_level: i32,
#[prost(message, optional, tag = "11")]
pub delete_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag = "12")]
pub expire_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(string, tag = "13")]
pub account: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DataStream {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(enumeration = "data_stream::DataStreamType", tag = "2")]
pub r#type: i32,
#[prost(string, tag = "3")]
pub display_name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "4")]
pub create_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag = "5")]
pub update_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(oneof = "data_stream::StreamData", tags = "6, 7, 8")]
pub stream_data: ::core::option::Option<data_stream::StreamData>,
}
pub mod data_stream {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WebStreamData {
#[prost(string, tag = "1")]
pub measurement_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub firebase_app_id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub default_uri: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AndroidAppStreamData {
#[prost(string, tag = "1")]
pub firebase_app_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub package_name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IosAppStreamData {
#[prost(string, tag = "1")]
pub firebase_app_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub bundle_id: ::prost::alloc::string::String,
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum DataStreamType {
Unspecified = 0,
WebDataStream = 1,
AndroidAppDataStream = 2,
IosAppDataStream = 3,
}
impl DataStreamType {
pub fn as_str_name(&self) -> &'static str {
match self {
DataStreamType::Unspecified => "DATA_STREAM_TYPE_UNSPECIFIED",
DataStreamType::WebDataStream => "WEB_DATA_STREAM",
DataStreamType::AndroidAppDataStream => "ANDROID_APP_DATA_STREAM",
DataStreamType::IosAppDataStream => "IOS_APP_DATA_STREAM",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"DATA_STREAM_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"WEB_DATA_STREAM" => Some(Self::WebDataStream),
"ANDROID_APP_DATA_STREAM" => Some(Self::AndroidAppDataStream),
"IOS_APP_DATA_STREAM" => Some(Self::IosAppDataStream),
_ => None,
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum StreamData {
#[prost(message, tag = "6")]
WebStreamData(WebStreamData),
#[prost(message, tag = "7")]
AndroidAppStreamData(AndroidAppStreamData),
#[prost(message, tag = "8")]
IosAppStreamData(IosAppStreamData),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FirebaseLink {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub project: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub create_time: ::core::option::Option<::prost_types::Timestamp>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GoogleAdsLink {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub customer_id: ::prost::alloc::string::String,
#[prost(bool, tag = "4")]
pub can_manage_clients: bool,
#[prost(message, optional, tag = "5")]
pub ads_personalization_enabled: ::core::option::Option<bool>,
#[prost(message, optional, tag = "7")]
pub create_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag = "8")]
pub update_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(string, tag = "9")]
pub creator_email_address: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DataSharingSettings {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(bool, tag = "2")]
pub sharing_with_google_support_enabled: bool,
#[prost(bool, tag = "3")]
pub sharing_with_google_assigned_sales_enabled: bool,
#[prost(bool, tag = "4")]
pub sharing_with_google_any_sales_enabled: bool,
#[prost(bool, tag = "5")]
pub sharing_with_google_products_enabled: bool,
#[prost(bool, tag = "6")]
pub sharing_with_others_enabled: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccountSummary {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub account: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub display_name: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "4")]
pub property_summaries: ::prost::alloc::vec::Vec<PropertySummary>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PropertySummary {
#[prost(string, tag = "1")]
pub property: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub display_name: ::prost::alloc::string::String,
#[prost(enumeration = "PropertyType", tag = "3")]
pub property_type: i32,
#[prost(string, tag = "4")]
pub parent: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MeasurementProtocolSecret {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub display_name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub secret_value: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChangeHistoryEvent {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub change_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(enumeration = "ActorType", tag = "3")]
pub actor_type: i32,
#[prost(string, tag = "4")]
pub user_actor_email: ::prost::alloc::string::String,
#[prost(bool, tag = "5")]
pub changes_filtered: bool,
#[prost(message, repeated, tag = "6")]
pub changes: ::prost::alloc::vec::Vec<ChangeHistoryChange>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChangeHistoryChange {
#[prost(string, tag = "1")]
pub resource: ::prost::alloc::string::String,
#[prost(enumeration = "ActionType", tag = "2")]
pub action: i32,
#[prost(message, optional, tag = "3")]
pub resource_before_change: ::core::option::Option<
change_history_change::ChangeHistoryResource,
>,
#[prost(message, optional, tag = "4")]
pub resource_after_change: ::core::option::Option<
change_history_change::ChangeHistoryResource,
>,
}
pub mod change_history_change {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChangeHistoryResource {
#[prost(
oneof = "change_history_resource::Resource",
tags = "1, 2, 6, 7, 11, 12, 15, 18"
)]
pub resource: ::core::option::Option<change_history_resource::Resource>,
}
pub mod change_history_resource {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Resource {
#[prost(message, tag = "1")]
Account(super::super::Account),
#[prost(message, tag = "2")]
Property(super::super::Property),
#[prost(message, tag = "6")]
FirebaseLink(super::super::FirebaseLink),
#[prost(message, tag = "7")]
GoogleAdsLink(super::super::GoogleAdsLink),
#[prost(message, tag = "11")]
ConversionEvent(super::super::ConversionEvent),
#[prost(message, tag = "12")]
MeasurementProtocolSecret(super::super::MeasurementProtocolSecret),
#[prost(message, tag = "15")]
DataRetentionSettings(super::super::DataRetentionSettings),
#[prost(message, tag = "18")]
DataStream(super::super::DataStream),
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConversionEvent {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub event_name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub create_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(bool, tag = "4")]
pub deletable: bool,
#[prost(bool, tag = "5")]
pub custom: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomDimension {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub parameter_name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub display_name: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub description: ::prost::alloc::string::String,
#[prost(enumeration = "custom_dimension::DimensionScope", tag = "5")]
pub scope: i32,
#[prost(bool, tag = "6")]
pub disallow_ads_personalization: bool,
}
pub mod custom_dimension {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum DimensionScope {
Unspecified = 0,
Event = 1,
User = 2,
}
impl DimensionScope {
pub fn as_str_name(&self) -> &'static str {
match self {
DimensionScope::Unspecified => "DIMENSION_SCOPE_UNSPECIFIED",
DimensionScope::Event => "EVENT",
DimensionScope::User => "USER",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"DIMENSION_SCOPE_UNSPECIFIED" => Some(Self::Unspecified),
"EVENT" => Some(Self::Event),
"USER" => Some(Self::User),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomMetric {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub parameter_name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub display_name: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub description: ::prost::alloc::string::String,
#[prost(enumeration = "custom_metric::MeasurementUnit", tag = "5")]
pub measurement_unit: i32,
#[prost(enumeration = "custom_metric::MetricScope", tag = "6")]
pub scope: i32,
#[prost(
enumeration = "custom_metric::RestrictedMetricType",
repeated,
packed = "false",
tag = "8"
)]
pub restricted_metric_type: ::prost::alloc::vec::Vec<i32>,
}
pub mod custom_metric {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum MeasurementUnit {
Unspecified = 0,
Standard = 1,
Currency = 2,
Feet = 3,
Meters = 4,
Kilometers = 5,
Miles = 6,
Milliseconds = 7,
Seconds = 8,
Minutes = 9,
Hours = 10,
}
impl MeasurementUnit {
pub fn as_str_name(&self) -> &'static str {
match self {
MeasurementUnit::Unspecified => "MEASUREMENT_UNIT_UNSPECIFIED",
MeasurementUnit::Standard => "STANDARD",
MeasurementUnit::Currency => "CURRENCY",
MeasurementUnit::Feet => "FEET",
MeasurementUnit::Meters => "METERS",
MeasurementUnit::Kilometers => "KILOMETERS",
MeasurementUnit::Miles => "MILES",
MeasurementUnit::Milliseconds => "MILLISECONDS",
MeasurementUnit::Seconds => "SECONDS",
MeasurementUnit::Minutes => "MINUTES",
MeasurementUnit::Hours => "HOURS",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"MEASUREMENT_UNIT_UNSPECIFIED" => Some(Self::Unspecified),
"STANDARD" => Some(Self::Standard),
"CURRENCY" => Some(Self::Currency),
"FEET" => Some(Self::Feet),
"METERS" => Some(Self::Meters),
"KILOMETERS" => Some(Self::Kilometers),
"MILES" => Some(Self::Miles),
"MILLISECONDS" => Some(Self::Milliseconds),
"SECONDS" => Some(Self::Seconds),
"MINUTES" => Some(Self::Minutes),
"HOURS" => Some(Self::Hours),
_ => None,
}
}
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum MetricScope {
Unspecified = 0,
Event = 1,
}
impl MetricScope {
pub fn as_str_name(&self) -> &'static str {
match self {
MetricScope::Unspecified => "METRIC_SCOPE_UNSPECIFIED",
MetricScope::Event => "EVENT",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"METRIC_SCOPE_UNSPECIFIED" => Some(Self::Unspecified),
"EVENT" => Some(Self::Event),
_ => None,
}
}
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum RestrictedMetricType {
Unspecified = 0,
CostData = 1,
RevenueData = 2,
}
impl RestrictedMetricType {
pub fn as_str_name(&self) -> &'static str {
match self {
RestrictedMetricType::Unspecified => "RESTRICTED_METRIC_TYPE_UNSPECIFIED",
RestrictedMetricType::CostData => "COST_DATA",
RestrictedMetricType::RevenueData => "REVENUE_DATA",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"RESTRICTED_METRIC_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"COST_DATA" => Some(Self::CostData),
"REVENUE_DATA" => Some(Self::RevenueData),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DataRetentionSettings {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(enumeration = "data_retention_settings::RetentionDuration", tag = "2")]
pub event_data_retention: i32,
#[prost(bool, tag = "3")]
pub reset_user_data_on_new_activity: bool,
}
pub mod data_retention_settings {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum RetentionDuration {
Unspecified = 0,
TwoMonths = 1,
FourteenMonths = 3,
TwentySixMonths = 4,
ThirtyEightMonths = 5,
FiftyMonths = 6,
}
impl RetentionDuration {
pub fn as_str_name(&self) -> &'static str {
match self {
RetentionDuration::Unspecified => "RETENTION_DURATION_UNSPECIFIED",
RetentionDuration::TwoMonths => "TWO_MONTHS",
RetentionDuration::FourteenMonths => "FOURTEEN_MONTHS",
RetentionDuration::TwentySixMonths => "TWENTY_SIX_MONTHS",
RetentionDuration::ThirtyEightMonths => "THIRTY_EIGHT_MONTHS",
RetentionDuration::FiftyMonths => "FIFTY_MONTHS",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"RETENTION_DURATION_UNSPECIFIED" => Some(Self::Unspecified),
"TWO_MONTHS" => Some(Self::TwoMonths),
"FOURTEEN_MONTHS" => Some(Self::FourteenMonths),
"TWENTY_SIX_MONTHS" => Some(Self::TwentySixMonths),
"THIRTY_EIGHT_MONTHS" => Some(Self::ThirtyEightMonths),
"FIFTY_MONTHS" => Some(Self::FiftyMonths),
_ => None,
}
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum IndustryCategory {
Unspecified = 0,
Automotive = 1,
BusinessAndIndustrialMarkets = 2,
Finance = 3,
Healthcare = 4,
Technology = 5,
Travel = 6,
Other = 7,
ArtsAndEntertainment = 8,
BeautyAndFitness = 9,
BooksAndLiterature = 10,
FoodAndDrink = 11,
Games = 12,
HobbiesAndLeisure = 13,
HomeAndGarden = 14,
InternetAndTelecom = 15,
LawAndGovernment = 16,
News = 17,
OnlineCommunities = 18,
PeopleAndSociety = 19,
PetsAndAnimals = 20,
RealEstate = 21,
Reference = 22,
Science = 23,
Sports = 24,
JobsAndEducation = 25,
Shopping = 26,
}
impl IndustryCategory {
pub fn as_str_name(&self) -> &'static str {
match self {
IndustryCategory::Unspecified => "INDUSTRY_CATEGORY_UNSPECIFIED",
IndustryCategory::Automotive => "AUTOMOTIVE",
IndustryCategory::BusinessAndIndustrialMarkets => {
"BUSINESS_AND_INDUSTRIAL_MARKETS"
}
IndustryCategory::Finance => "FINANCE",
IndustryCategory::Healthcare => "HEALTHCARE",
IndustryCategory::Technology => "TECHNOLOGY",
IndustryCategory::Travel => "TRAVEL",
IndustryCategory::Other => "OTHER",
IndustryCategory::ArtsAndEntertainment => "ARTS_AND_ENTERTAINMENT",
IndustryCategory::BeautyAndFitness => "BEAUTY_AND_FITNESS",
IndustryCategory::BooksAndLiterature => "BOOKS_AND_LITERATURE",
IndustryCategory::FoodAndDrink => "FOOD_AND_DRINK",
IndustryCategory::Games => "GAMES",
IndustryCategory::HobbiesAndLeisure => "HOBBIES_AND_LEISURE",
IndustryCategory::HomeAndGarden => "HOME_AND_GARDEN",
IndustryCategory::InternetAndTelecom => "INTERNET_AND_TELECOM",
IndustryCategory::LawAndGovernment => "LAW_AND_GOVERNMENT",
IndustryCategory::News => "NEWS",
IndustryCategory::OnlineCommunities => "ONLINE_COMMUNITIES",
IndustryCategory::PeopleAndSociety => "PEOPLE_AND_SOCIETY",
IndustryCategory::PetsAndAnimals => "PETS_AND_ANIMALS",
IndustryCategory::RealEstate => "REAL_ESTATE",
IndustryCategory::Reference => "REFERENCE",
IndustryCategory::Science => "SCIENCE",
IndustryCategory::Sports => "SPORTS",
IndustryCategory::JobsAndEducation => "JOBS_AND_EDUCATION",
IndustryCategory::Shopping => "SHOPPING",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"INDUSTRY_CATEGORY_UNSPECIFIED" => Some(Self::Unspecified),
"AUTOMOTIVE" => Some(Self::Automotive),
"BUSINESS_AND_INDUSTRIAL_MARKETS" => Some(Self::BusinessAndIndustrialMarkets),
"FINANCE" => Some(Self::Finance),
"HEALTHCARE" => Some(Self::Healthcare),
"TECHNOLOGY" => Some(Self::Technology),
"TRAVEL" => Some(Self::Travel),
"OTHER" => Some(Self::Other),
"ARTS_AND_ENTERTAINMENT" => Some(Self::ArtsAndEntertainment),
"BEAUTY_AND_FITNESS" => Some(Self::BeautyAndFitness),
"BOOKS_AND_LITERATURE" => Some(Self::BooksAndLiterature),
"FOOD_AND_DRINK" => Some(Self::FoodAndDrink),
"GAMES" => Some(Self::Games),
"HOBBIES_AND_LEISURE" => Some(Self::HobbiesAndLeisure),
"HOME_AND_GARDEN" => Some(Self::HomeAndGarden),
"INTERNET_AND_TELECOM" => Some(Self::InternetAndTelecom),
"LAW_AND_GOVERNMENT" => Some(Self::LawAndGovernment),
"NEWS" => Some(Self::News),
"ONLINE_COMMUNITIES" => Some(Self::OnlineCommunities),
"PEOPLE_AND_SOCIETY" => Some(Self::PeopleAndSociety),
"PETS_AND_ANIMALS" => Some(Self::PetsAndAnimals),
"REAL_ESTATE" => Some(Self::RealEstate),
"REFERENCE" => Some(Self::Reference),
"SCIENCE" => Some(Self::Science),
"SPORTS" => Some(Self::Sports),
"JOBS_AND_EDUCATION" => Some(Self::JobsAndEducation),
"SHOPPING" => Some(Self::Shopping),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ServiceLevel {
Unspecified = 0,
GoogleAnalyticsStandard = 1,
GoogleAnalytics360 = 2,
}
impl ServiceLevel {
pub fn as_str_name(&self) -> &'static str {
match self {
ServiceLevel::Unspecified => "SERVICE_LEVEL_UNSPECIFIED",
ServiceLevel::GoogleAnalyticsStandard => "GOOGLE_ANALYTICS_STANDARD",
ServiceLevel::GoogleAnalytics360 => "GOOGLE_ANALYTICS_360",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SERVICE_LEVEL_UNSPECIFIED" => Some(Self::Unspecified),
"GOOGLE_ANALYTICS_STANDARD" => Some(Self::GoogleAnalyticsStandard),
"GOOGLE_ANALYTICS_360" => Some(Self::GoogleAnalytics360),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ActorType {
Unspecified = 0,
User = 1,
System = 2,
Support = 3,
}
impl ActorType {
pub fn as_str_name(&self) -> &'static str {
match self {
ActorType::Unspecified => "ACTOR_TYPE_UNSPECIFIED",
ActorType::User => "USER",
ActorType::System => "SYSTEM",
ActorType::Support => "SUPPORT",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"ACTOR_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"USER" => Some(Self::User),
"SYSTEM" => Some(Self::System),
"SUPPORT" => Some(Self::Support),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ActionType {
Unspecified = 0,
Created = 1,
Updated = 2,
Deleted = 3,
}
impl ActionType {
pub fn as_str_name(&self) -> &'static str {
match self {
ActionType::Unspecified => "ACTION_TYPE_UNSPECIFIED",
ActionType::Created => "CREATED",
ActionType::Updated => "UPDATED",
ActionType::Deleted => "DELETED",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"ACTION_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"CREATED" => Some(Self::Created),
"UPDATED" => Some(Self::Updated),
"DELETED" => Some(Self::Deleted),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ChangeHistoryResourceType {
Unspecified = 0,
Account = 1,
Property = 2,
FirebaseLink = 6,
GoogleAdsLink = 7,
GoogleSignalsSettings = 8,
ConversionEvent = 9,
MeasurementProtocolSecret = 10,
DataRetentionSettings = 13,
DisplayVideo360AdvertiserLink = 14,
DisplayVideo360AdvertiserLinkProposal = 15,
DataStream = 18,
AttributionSettings = 20,
}
impl ChangeHistoryResourceType {
pub fn as_str_name(&self) -> &'static str {
match self {
ChangeHistoryResourceType::Unspecified => {
"CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED"
}
ChangeHistoryResourceType::Account => "ACCOUNT",
ChangeHistoryResourceType::Property => "PROPERTY",
ChangeHistoryResourceType::FirebaseLink => "FIREBASE_LINK",
ChangeHistoryResourceType::GoogleAdsLink => "GOOGLE_ADS_LINK",
ChangeHistoryResourceType::GoogleSignalsSettings => "GOOGLE_SIGNALS_SETTINGS",
ChangeHistoryResourceType::ConversionEvent => "CONVERSION_EVENT",
ChangeHistoryResourceType::MeasurementProtocolSecret => {
"MEASUREMENT_PROTOCOL_SECRET"
}
ChangeHistoryResourceType::DataRetentionSettings => "DATA_RETENTION_SETTINGS",
ChangeHistoryResourceType::DisplayVideo360AdvertiserLink => {
"DISPLAY_VIDEO_360_ADVERTISER_LINK"
}
ChangeHistoryResourceType::DisplayVideo360AdvertiserLinkProposal => {
"DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL"
}
ChangeHistoryResourceType::DataStream => "DATA_STREAM",
ChangeHistoryResourceType::AttributionSettings => "ATTRIBUTION_SETTINGS",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"ACCOUNT" => Some(Self::Account),
"PROPERTY" => Some(Self::Property),
"FIREBASE_LINK" => Some(Self::FirebaseLink),
"GOOGLE_ADS_LINK" => Some(Self::GoogleAdsLink),
"GOOGLE_SIGNALS_SETTINGS" => Some(Self::GoogleSignalsSettings),
"CONVERSION_EVENT" => Some(Self::ConversionEvent),
"MEASUREMENT_PROTOCOL_SECRET" => Some(Self::MeasurementProtocolSecret),
"DATA_RETENTION_SETTINGS" => Some(Self::DataRetentionSettings),
"DISPLAY_VIDEO_360_ADVERTISER_LINK" => {
Some(Self::DisplayVideo360AdvertiserLink)
}
"DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL" => {
Some(Self::DisplayVideo360AdvertiserLinkProposal)
}
"DATA_STREAM" => Some(Self::DataStream),
"ATTRIBUTION_SETTINGS" => Some(Self::AttributionSettings),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum PropertyType {
Unspecified = 0,
Ordinary = 1,
Subproperty = 2,
Rollup = 3,
}
impl PropertyType {
pub fn as_str_name(&self) -> &'static str {
match self {
PropertyType::Unspecified => "PROPERTY_TYPE_UNSPECIFIED",
PropertyType::Ordinary => "PROPERTY_TYPE_ORDINARY",
PropertyType::Subproperty => "PROPERTY_TYPE_SUBPROPERTY",
PropertyType::Rollup => "PROPERTY_TYPE_ROLLUP",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"PROPERTY_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"PROPERTY_TYPE_ORDINARY" => Some(Self::Ordinary),
"PROPERTY_TYPE_SUBPROPERTY" => Some(Self::Subproperty),
"PROPERTY_TYPE_ROLLUP" => Some(Self::Rollup),
_ => None,
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetAccountRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListAccountsRequest {
#[prost(int32, tag = "1")]
pub page_size: i32,
#[prost(string, tag = "2")]
pub page_token: ::prost::alloc::string::String,
#[prost(bool, tag = "3")]
pub show_deleted: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListAccountsResponse {
#[prost(message, repeated, tag = "1")]
pub accounts: ::prost::alloc::vec::Vec<Account>,
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteAccountRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateAccountRequest {
#[prost(message, optional, tag = "1")]
pub account: ::core::option::Option<Account>,
#[prost(message, optional, tag = "2")]
pub update_mask: ::core::option::Option<::prost_types::FieldMask>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProvisionAccountTicketRequest {
#[prost(message, optional, tag = "1")]
pub account: ::core::option::Option<Account>,
#[prost(string, tag = "2")]
pub redirect_uri: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProvisionAccountTicketResponse {
#[prost(string, tag = "1")]
pub account_ticket_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetPropertyRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListPropertiesRequest {
#[prost(string, tag = "1")]
pub filter: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub page_size: i32,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
#[prost(bool, tag = "4")]
pub show_deleted: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListPropertiesResponse {
#[prost(message, repeated, tag = "1")]
pub properties: ::prost::alloc::vec::Vec<Property>,
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdatePropertyRequest {
#[prost(message, optional, tag = "1")]
pub property: ::core::option::Option<Property>,
#[prost(message, optional, tag = "2")]
pub update_mask: ::core::option::Option<::prost_types::FieldMask>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreatePropertyRequest {
#[prost(message, optional, tag = "1")]
pub property: ::core::option::Option<Property>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeletePropertyRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateFirebaseLinkRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub firebase_link: ::core::option::Option<FirebaseLink>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteFirebaseLinkRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListFirebaseLinksRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub page_size: i32,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListFirebaseLinksResponse {
#[prost(message, repeated, tag = "1")]
pub firebase_links: ::prost::alloc::vec::Vec<FirebaseLink>,
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateGoogleAdsLinkRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub google_ads_link: ::core::option::Option<GoogleAdsLink>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateGoogleAdsLinkRequest {
#[prost(message, optional, tag = "1")]
pub google_ads_link: ::core::option::Option<GoogleAdsLink>,
#[prost(message, optional, tag = "2")]
pub update_mask: ::core::option::Option<::prost_types::FieldMask>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteGoogleAdsLinkRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListGoogleAdsLinksRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub page_size: i32,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListGoogleAdsLinksResponse {
#[prost(message, repeated, tag = "1")]
pub google_ads_links: ::prost::alloc::vec::Vec<GoogleAdsLink>,
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetDataSharingSettingsRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListAccountSummariesRequest {
#[prost(int32, tag = "1")]
pub page_size: i32,
#[prost(string, tag = "2")]
pub page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListAccountSummariesResponse {
#[prost(message, repeated, tag = "1")]
pub account_summaries: ::prost::alloc::vec::Vec<AccountSummary>,
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AcknowledgeUserDataCollectionRequest {
#[prost(string, tag = "1")]
pub property: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub acknowledgement: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AcknowledgeUserDataCollectionResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchChangeHistoryEventsRequest {
#[prost(string, tag = "1")]
pub account: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub property: ::prost::alloc::string::String,
#[prost(
enumeration = "ChangeHistoryResourceType",
repeated,
packed = "false",
tag = "3"
)]
pub resource_type: ::prost::alloc::vec::Vec<i32>,
#[prost(enumeration = "ActionType", repeated, packed = "false", tag = "4")]
pub action: ::prost::alloc::vec::Vec<i32>,
#[prost(string, repeated, tag = "5")]
pub actor_email: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, optional, tag = "6")]
pub earliest_change_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag = "7")]
pub latest_change_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(int32, tag = "8")]
pub page_size: i32,
#[prost(string, tag = "9")]
pub page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchChangeHistoryEventsResponse {
#[prost(message, repeated, tag = "1")]
pub change_history_events: ::prost::alloc::vec::Vec<ChangeHistoryEvent>,
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMeasurementProtocolSecretRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMeasurementProtocolSecretRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub measurement_protocol_secret: ::core::option::Option<MeasurementProtocolSecret>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteMeasurementProtocolSecretRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMeasurementProtocolSecretRequest {
#[prost(message, optional, tag = "1")]
pub measurement_protocol_secret: ::core::option::Option<MeasurementProtocolSecret>,
#[prost(message, optional, tag = "2")]
pub update_mask: ::core::option::Option<::prost_types::FieldMask>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMeasurementProtocolSecretsRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub page_size: i32,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListMeasurementProtocolSecretsResponse {
#[prost(message, repeated, tag = "1")]
pub measurement_protocol_secrets: ::prost::alloc::vec::Vec<
MeasurementProtocolSecret,
>,
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateConversionEventRequest {
#[prost(message, optional, tag = "1")]
pub conversion_event: ::core::option::Option<ConversionEvent>,
#[prost(string, tag = "2")]
pub parent: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetConversionEventRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteConversionEventRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListConversionEventsRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub page_size: i32,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListConversionEventsResponse {
#[prost(message, repeated, tag = "1")]
pub conversion_events: ::prost::alloc::vec::Vec<ConversionEvent>,
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateCustomDimensionRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub custom_dimension: ::core::option::Option<CustomDimension>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateCustomDimensionRequest {
#[prost(message, optional, tag = "1")]
pub custom_dimension: ::core::option::Option<CustomDimension>,
#[prost(message, optional, tag = "2")]
pub update_mask: ::core::option::Option<::prost_types::FieldMask>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListCustomDimensionsRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub page_size: i32,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListCustomDimensionsResponse {
#[prost(message, repeated, tag = "1")]
pub custom_dimensions: ::prost::alloc::vec::Vec<CustomDimension>,
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ArchiveCustomDimensionRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetCustomDimensionRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateCustomMetricRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub custom_metric: ::core::option::Option<CustomMetric>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateCustomMetricRequest {
#[prost(message, optional, tag = "1")]
pub custom_metric: ::core::option::Option<CustomMetric>,
#[prost(message, optional, tag = "2")]
pub update_mask: ::core::option::Option<::prost_types::FieldMask>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListCustomMetricsRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub page_size: i32,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListCustomMetricsResponse {
#[prost(message, repeated, tag = "1")]
pub custom_metrics: ::prost::alloc::vec::Vec<CustomMetric>,
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ArchiveCustomMetricRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetCustomMetricRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetDataRetentionSettingsRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateDataRetentionSettingsRequest {
#[prost(message, optional, tag = "1")]
pub data_retention_settings: ::core::option::Option<DataRetentionSettings>,
#[prost(message, optional, tag = "2")]
pub update_mask: ::core::option::Option<::prost_types::FieldMask>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateDataStreamRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub data_stream: ::core::option::Option<DataStream>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteDataStreamRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateDataStreamRequest {
#[prost(message, optional, tag = "1")]
pub data_stream: ::core::option::Option<DataStream>,
#[prost(message, optional, tag = "2")]
pub update_mask: ::core::option::Option<::prost_types::FieldMask>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListDataStreamsRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub page_size: i32,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListDataStreamsResponse {
#[prost(message, repeated, tag = "1")]
pub data_streams: ::prost::alloc::vec::Vec<DataStream>,
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetDataStreamRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
pub mod analytics_admin_service_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
#[derive(Debug, Clone)]
pub struct AnalyticsAdminServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl AnalyticsAdminServiceClient<tonic::transport::Channel> {
pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
where
D: std::convert::TryInto<tonic::transport::Endpoint>,
D::Error: Into<StdError>,
{
let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
Ok(Self::new(conn))
}
}
impl<T> AnalyticsAdminServiceClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> AnalyticsAdminServiceClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
AnalyticsAdminServiceClient::new(InterceptedService::new(inner, interceptor))
}
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
pub async fn get_account(
&mut self,
request: impl tonic::IntoRequest<super::GetAccountRequest>,
) -> Result<tonic::Response<super::Account>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/GetAccount",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn list_accounts(
&mut self,
request: impl tonic::IntoRequest<super::ListAccountsRequest>,
) -> Result<tonic::Response<super::ListAccountsResponse>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/ListAccounts",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn delete_account(
&mut self,
request: impl tonic::IntoRequest<super::DeleteAccountRequest>,
) -> Result<tonic::Response<()>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteAccount",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn update_account(
&mut self,
request: impl tonic::IntoRequest<super::UpdateAccountRequest>,
) -> Result<tonic::Response<super::Account>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateAccount",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn provision_account_ticket(
&mut self,
request: impl tonic::IntoRequest<super::ProvisionAccountTicketRequest>,
) -> Result<
tonic::Response<super::ProvisionAccountTicketResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/ProvisionAccountTicket",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn list_account_summaries(
&mut self,
request: impl tonic::IntoRequest<super::ListAccountSummariesRequest>,
) -> Result<
tonic::Response<super::ListAccountSummariesResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/ListAccountSummaries",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn get_property(
&mut self,
request: impl tonic::IntoRequest<super::GetPropertyRequest>,
) -> Result<tonic::Response<super::Property>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/GetProperty",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn list_properties(
&mut self,
request: impl tonic::IntoRequest<super::ListPropertiesRequest>,
) -> Result<tonic::Response<super::ListPropertiesResponse>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/ListProperties",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn create_property(
&mut self,
request: impl tonic::IntoRequest<super::CreatePropertyRequest>,
) -> Result<tonic::Response<super::Property>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/CreateProperty",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn delete_property(
&mut self,
request: impl tonic::IntoRequest<super::DeletePropertyRequest>,
) -> Result<tonic::Response<super::Property>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteProperty",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn update_property(
&mut self,
request: impl tonic::IntoRequest<super::UpdatePropertyRequest>,
) -> Result<tonic::Response<super::Property>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateProperty",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn create_firebase_link(
&mut self,
request: impl tonic::IntoRequest<super::CreateFirebaseLinkRequest>,
) -> Result<tonic::Response<super::FirebaseLink>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/CreateFirebaseLink",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn delete_firebase_link(
&mut self,
request: impl tonic::IntoRequest<super::DeleteFirebaseLinkRequest>,
) -> Result<tonic::Response<()>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteFirebaseLink",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn list_firebase_links(
&mut self,
request: impl tonic::IntoRequest<super::ListFirebaseLinksRequest>,
) -> Result<tonic::Response<super::ListFirebaseLinksResponse>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/ListFirebaseLinks",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn create_google_ads_link(
&mut self,
request: impl tonic::IntoRequest<super::CreateGoogleAdsLinkRequest>,
) -> Result<tonic::Response<super::GoogleAdsLink>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/CreateGoogleAdsLink",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn update_google_ads_link(
&mut self,
request: impl tonic::IntoRequest<super::UpdateGoogleAdsLinkRequest>,
) -> Result<tonic::Response<super::GoogleAdsLink>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateGoogleAdsLink",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn delete_google_ads_link(
&mut self,
request: impl tonic::IntoRequest<super::DeleteGoogleAdsLinkRequest>,
) -> Result<tonic::Response<()>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteGoogleAdsLink",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn list_google_ads_links(
&mut self,
request: impl tonic::IntoRequest<super::ListGoogleAdsLinksRequest>,
) -> Result<tonic::Response<super::ListGoogleAdsLinksResponse>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/ListGoogleAdsLinks",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn get_data_sharing_settings(
&mut self,
request: impl tonic::IntoRequest<super::GetDataSharingSettingsRequest>,
) -> Result<tonic::Response<super::DataSharingSettings>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/GetDataSharingSettings",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn get_measurement_protocol_secret(
&mut self,
request: impl tonic::IntoRequest<super::GetMeasurementProtocolSecretRequest>,
) -> Result<tonic::Response<super::MeasurementProtocolSecret>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/GetMeasurementProtocolSecret",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn list_measurement_protocol_secrets(
&mut self,
request: impl tonic::IntoRequest<
super::ListMeasurementProtocolSecretsRequest,
>,
) -> Result<
tonic::Response<super::ListMeasurementProtocolSecretsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/ListMeasurementProtocolSecrets",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn create_measurement_protocol_secret(
&mut self,
request: impl tonic::IntoRequest<
super::CreateMeasurementProtocolSecretRequest,
>,
) -> Result<tonic::Response<super::MeasurementProtocolSecret>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/CreateMeasurementProtocolSecret",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn delete_measurement_protocol_secret(
&mut self,
request: impl tonic::IntoRequest<
super::DeleteMeasurementProtocolSecretRequest,
>,
) -> Result<tonic::Response<()>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteMeasurementProtocolSecret",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn update_measurement_protocol_secret(
&mut self,
request: impl tonic::IntoRequest<
super::UpdateMeasurementProtocolSecretRequest,
>,
) -> Result<tonic::Response<super::MeasurementProtocolSecret>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateMeasurementProtocolSecret",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn acknowledge_user_data_collection(
&mut self,
request: impl tonic::IntoRequest<super::AcknowledgeUserDataCollectionRequest>,
) -> Result<
tonic::Response<super::AcknowledgeUserDataCollectionResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/AcknowledgeUserDataCollection",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn search_change_history_events(
&mut self,
request: impl tonic::IntoRequest<super::SearchChangeHistoryEventsRequest>,
) -> Result<
tonic::Response<super::SearchChangeHistoryEventsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/SearchChangeHistoryEvents",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn create_conversion_event(
&mut self,
request: impl tonic::IntoRequest<super::CreateConversionEventRequest>,
) -> Result<tonic::Response<super::ConversionEvent>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/CreateConversionEvent",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn get_conversion_event(
&mut self,
request: impl tonic::IntoRequest<super::GetConversionEventRequest>,
) -> Result<tonic::Response<super::ConversionEvent>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/GetConversionEvent",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn delete_conversion_event(
&mut self,
request: impl tonic::IntoRequest<super::DeleteConversionEventRequest>,
) -> Result<tonic::Response<()>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteConversionEvent",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn list_conversion_events(
&mut self,
request: impl tonic::IntoRequest<super::ListConversionEventsRequest>,
) -> Result<
tonic::Response<super::ListConversionEventsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/ListConversionEvents",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn create_custom_dimension(
&mut self,
request: impl tonic::IntoRequest<super::CreateCustomDimensionRequest>,
) -> Result<tonic::Response<super::CustomDimension>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/CreateCustomDimension",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn update_custom_dimension(
&mut self,
request: impl tonic::IntoRequest<super::UpdateCustomDimensionRequest>,
) -> Result<tonic::Response<super::CustomDimension>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateCustomDimension",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn list_custom_dimensions(
&mut self,
request: impl tonic::IntoRequest<super::ListCustomDimensionsRequest>,
) -> Result<
tonic::Response<super::ListCustomDimensionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/ListCustomDimensions",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn archive_custom_dimension(
&mut self,
request: impl tonic::IntoRequest<super::ArchiveCustomDimensionRequest>,
) -> Result<tonic::Response<()>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/ArchiveCustomDimension",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn get_custom_dimension(
&mut self,
request: impl tonic::IntoRequest<super::GetCustomDimensionRequest>,
) -> Result<tonic::Response<super::CustomDimension>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/GetCustomDimension",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn create_custom_metric(
&mut self,
request: impl tonic::IntoRequest<super::CreateCustomMetricRequest>,
) -> Result<tonic::Response<super::CustomMetric>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/CreateCustomMetric",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn update_custom_metric(
&mut self,
request: impl tonic::IntoRequest<super::UpdateCustomMetricRequest>,
) -> Result<tonic::Response<super::CustomMetric>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateCustomMetric",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn list_custom_metrics(
&mut self,
request: impl tonic::IntoRequest<super::ListCustomMetricsRequest>,
) -> Result<tonic::Response<super::ListCustomMetricsResponse>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/ListCustomMetrics",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn archive_custom_metric(
&mut self,
request: impl tonic::IntoRequest<super::ArchiveCustomMetricRequest>,
) -> Result<tonic::Response<()>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/ArchiveCustomMetric",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn get_custom_metric(
&mut self,
request: impl tonic::IntoRequest<super::GetCustomMetricRequest>,
) -> Result<tonic::Response<super::CustomMetric>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/GetCustomMetric",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn get_data_retention_settings(
&mut self,
request: impl tonic::IntoRequest<super::GetDataRetentionSettingsRequest>,
) -> Result<tonic::Response<super::DataRetentionSettings>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/GetDataRetentionSettings",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn update_data_retention_settings(
&mut self,
request: impl tonic::IntoRequest<super::UpdateDataRetentionSettingsRequest>,
) -> Result<tonic::Response<super::DataRetentionSettings>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateDataRetentionSettings",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn create_data_stream(
&mut self,
request: impl tonic::IntoRequest<super::CreateDataStreamRequest>,
) -> Result<tonic::Response<super::DataStream>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/CreateDataStream",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn delete_data_stream(
&mut self,
request: impl tonic::IntoRequest<super::DeleteDataStreamRequest>,
) -> Result<tonic::Response<()>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/DeleteDataStream",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn update_data_stream(
&mut self,
request: impl tonic::IntoRequest<super::UpdateDataStreamRequest>,
) -> Result<tonic::Response<super::DataStream>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/UpdateDataStream",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn list_data_streams(
&mut self,
request: impl tonic::IntoRequest<super::ListDataStreamsRequest>,
) -> Result<tonic::Response<super::ListDataStreamsResponse>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/ListDataStreams",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn get_data_stream(
&mut self,
request: impl tonic::IntoRequest<super::GetDataStreamRequest>,
) -> Result<tonic::Response<super::DataStream>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.analytics.admin.v1beta.AnalyticsAdminService/GetDataStream",
);
self.inner.unary(request.into_request(), path, codec).await
}
}
}