Skip to content

Commit

Permalink
Google APIs updated at 2024-11-02 (#167)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub Actions <>
  • Loading branch information
github-actions[bot] authored Nov 3, 2024
1 parent f6b22f7 commit a2df3f0
Show file tree
Hide file tree
Showing 70 changed files with 129,740 additions and 6,774 deletions.
10,843 changes: 7,480 additions & 3,363 deletions gcloud-sdk/genproto/google.ads.admanager.v1.rs

Large diffs are not rendered by default.

7,908 changes: 7,908 additions & 0 deletions gcloud-sdk/genproto/google.ads.googleads.v18.common.rs

Large diffs are not rendered by default.

29,081 changes: 29,081 additions & 0 deletions gcloud-sdk/genproto/google.ads.googleads.v18.enums.rs

Large diffs are not rendered by default.

20,146 changes: 20,146 additions & 0 deletions gcloud-sdk/genproto/google.ads.googleads.v18.errors.rs

Large diffs are not rendered by default.

12,377 changes: 12,377 additions & 0 deletions gcloud-sdk/genproto/google.ads.googleads.v18.resources.rs

Large diffs are not rendered by default.

31,007 changes: 31,007 additions & 0 deletions gcloud-sdk/genproto/google.ads.googleads.v18.services.rs

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions gcloud-sdk/genproto/google.ads.searchads360.v0.common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -945,9 +945,19 @@ pub struct Metrics {
/// Cross-device conversions are already included in all_conversions.
#[prost(double, optional, tag = "173")]
pub cross_device_conversions: ::core::option::Option<f64>,
/// The number of cross-device conversions by conversion date.
/// Details for the by_conversion_date columns are available at
/// <https://support.google.com/sa360/answer/9250611.>
#[prost(double, optional, tag = "372")]
pub cross_device_conversions_by_conversion_date: ::core::option::Option<f64>,
/// The sum of the value of cross-device conversions.
#[prost(double, optional, tag = "253")]
pub cross_device_conversions_value: ::core::option::Option<f64>,
/// The sum of cross-device conversions value by conversion date.
/// Details for the by_conversion_date columns are available at
/// <https://support.google.com/sa360/answer/9250611.>
#[prost(double, optional, tag = "373")]
pub cross_device_conversions_value_by_conversion_date: ::core::option::Option<f64>,
/// The number of clicks your ad receives (Clicks) divided by the number
/// of times your ad is shown (Impressions).
#[prost(double, optional, tag = "174")]
Expand Down Expand Up @@ -1015,6 +1025,26 @@ pub struct Metrics {
/// Number of clicks Google considers illegitimate and doesn't charge you for.
#[prost(int64, optional, tag = "225")]
pub invalid_clicks: ::core::option::Option<i64>,
/// The percentage of clicks that have been filtered out of your total number
/// of clicks (filtered + non-filtered clicks) due to being general invalid
/// clicks. These are clicks Google considers illegitimate that are detected
/// through routine means of filtration (that is, known invalid data-center
/// traffic, bots and spiders or other crawlers, irregular patterns, etc).
/// You're not charged for them, and they don't affect your account statistics.
/// See the help page at
/// <https://support.google.com/campaignmanager/answer/6076504> for
/// details.
#[prost(double, optional, tag = "370")]
pub general_invalid_click_rate: ::core::option::Option<f64>,
/// Number of general invalid clicks. These are a subset of your invalid clicks
/// that are detected through routine means of filtration (such as known
/// invalid data-center traffic, bots and spiders or other crawlers, irregular
/// patterns, etc.). You're not charged for them, and they don't affect your
/// account statistics. See the help page at
/// <https://support.google.com/campaignmanager/answer/6076504> for
/// details.
#[prost(int64, optional, tag = "371")]
pub general_invalid_clicks: ::core::option::Option<i64>,
/// The percentage of mobile clicks that go to a mobile-friendly page.
#[prost(double, optional, tag = "229")]
pub mobile_friendly_clicks_percentage: ::core::option::Option<f64>,
Expand Down
57 changes: 54 additions & 3 deletions gcloud-sdk/genproto/google.ads.searchads360.v0.resources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,11 @@ pub struct AdGroup {
/// Output only. The resource names of labels attached to this ad group.
#[prost(string, repeated, tag = "49")]
pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Output only. The resource names of effective labels attached to this ad
/// group. An effective label is a label inherited or directly assigned to this
/// ad group.
#[prost(string, repeated, tag = "66")]
pub effective_labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Output only. ID of the ad group in the external engine account. This field
/// is for non-Google Ads account only, for example, Yahoo Japan, Microsoft,
/// Baidu etc. For Google Ads entity, use "ad_group.id" instead.
Expand Down Expand Up @@ -631,6 +636,26 @@ pub struct AdGroupCriterionLabel {
#[prost(int64, optional, tag = "6")]
pub owner_customer_id: ::core::option::Option<i64>,
}
/// A relationship between an ad group and an effective label.
/// An effective label is a label inherited or directly assigned to this
/// ad group.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdGroupEffectiveLabel {
/// Immutable. The resource name of the ad group effective label.
/// Ad group effective label resource names have the form:
/// `customers/{customer_id}/adGroupEffectiveLabels/{ad_group_id}~{label_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Immutable. The ad group to which the effective label is attached.
#[prost(string, optional, tag = "2")]
pub ad_group: ::core::option::Option<::prost::alloc::string::String>,
/// Immutable. The effective label assigned to the ad group.
#[prost(string, optional, tag = "3")]
pub label: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The ID of the Customer which owns the effective label.
#[prost(int64, optional, tag = "4")]
pub owner_customer_id: ::core::option::Option<i64>,
}
/// A relationship between an ad group and a label.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdGroupLabel {
Expand Down Expand Up @@ -1324,10 +1349,15 @@ pub struct Campaign {
/// The setting for ads geotargeting.
#[prost(message, optional, tag = "47")]
pub geo_target_type_setting: ::core::option::Option<campaign::GeoTargetTypeSetting>,
/// Output only. The resource names of effective labels attached to this
/// campaign. An effective label is a label inherited or directly assigned to
/// this campaign.
#[prost(string, repeated, tag = "95")]
pub effective_labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Output only. The resource names of labels attached to this campaign.
#[prost(string, repeated, tag = "61")]
pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The budget of the campaign.
/// The resource name of the campaign budget of the campaign.
#[prost(string, optional, tag = "62")]
pub campaign_budget: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The type of bidding strategy.
Expand Down Expand Up @@ -1536,7 +1566,8 @@ pub mod campaign {
/// AdvertisingChannelSubType.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SelectiveOptimization {
/// The selected set of conversion actions for optimizing this campaign.
/// The selected set of resource names for conversion actions for optimizing
/// this campaign.
#[prost(string, repeated, tag = "2")]
pub conversion_actions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
Expand All @@ -1558,7 +1589,7 @@ pub mod campaign {
/// standard, that is embedded into the campaign.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum CampaignBiddingStrategy {
/// Portfolio bidding strategy used by campaign.
/// The resource name of the portfolio bidding strategy used by the campaign.
#[prost(string, tag = "67")]
BiddingStrategy(::prost::alloc::string::String),
/// Standard Manual CPA bidding strategy.
Expand Down Expand Up @@ -1783,6 +1814,26 @@ pub mod campaign_criterion {
LocationGroup(super::super::common::LocationGroupInfo),
}
}
/// Represents a relationship between a campaign and an effective label.
/// An effective label is a label inherited or directly assigned to this
/// campaign.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CampaignEffectiveLabel {
/// Immutable. Name of the resource.
/// CampaignEffectivelabel resource names have the form:
/// `customers/{customer_id}/campaignEffectiveLabels/{campaign_id}~{label_id}`
#[prost(string, tag = "1")]
pub resource_name: ::prost::alloc::string::String,
/// Immutable. The campaign to which the effective label is attached.
#[prost(string, optional, tag = "2")]
pub campaign: ::core::option::Option<::prost::alloc::string::String>,
/// Immutable. The effective label assigned to the campaign.
#[prost(string, optional, tag = "3")]
pub label: ::core::option::Option<::prost::alloc::string::String>,
/// Output only. The ID of the Customer which owns the effective label.
#[prost(int64, optional, tag = "4")]
pub owner_customer_id: ::core::option::Option<i64>,
}
/// Represents a relationship between a campaign and a label.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CampaignLabel {
Expand Down
10 changes: 10 additions & 0 deletions gcloud-sdk/genproto/google.ads.searchads360.v0.services.rs
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,11 @@ pub struct SearchAds360Row {
pub ad_group_criterion_label: ::core::option::Option<
super::resources::AdGroupCriterionLabel,
>,
/// The ad group effective label referenced in the query.
#[prost(message, optional, tag = "231")]
pub ad_group_effective_label: ::core::option::Option<
super::resources::AdGroupEffectiveLabel,
>,
/// The ad group label referenced in the query.
#[prost(message, optional, tag = "115")]
pub ad_group_label: ::core::option::Option<super::resources::AdGroupLabel>,
Expand Down Expand Up @@ -785,6 +790,11 @@ pub struct SearchAds360Row {
/// The campaign criterion referenced in the query.
#[prost(message, optional, tag = "20")]
pub campaign_criterion: ::core::option::Option<super::resources::CampaignCriterion>,
/// The campaign effective label referenced in the query.
#[prost(message, optional, tag = "229")]
pub campaign_effective_label: ::core::option::Option<
super::resources::CampaignEffectiveLabel,
>,
/// The campaign label referenced in the query.
#[prost(message, optional, tag = "108")]
pub campaign_label: ::core::option::Option<super::resources::CampaignLabel>,
Expand Down
45 changes: 45 additions & 0 deletions gcloud-sdk/genproto/google.analytics.data.v1alpha.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2118,6 +2118,48 @@ impl RestrictedMetricType {
}
}
}
/// Categories of sampling levels for the requests.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SamplingLevel {
/// Unspecified type.
Unspecified = 0,
/// Applies a sampling level of 10 million to standard properties and
/// 100 million to Google Analytics 360 properties.
Low = 1,
/// Exclusive to Google Analytics 360 properties with a sampling level of 1
/// billion.
Medium = 2,
/// Exclusive to Google Analytics 360 properties. Unsampled explorations are
/// more accurate and can reveal insights that aren't visible in standard
/// explorations. To learn more, see
/// <https://support.google.com/analytics/answer/10896953.>
Unsampled = 3,
}
impl SamplingLevel {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "SAMPLING_LEVEL_UNSPECIFIED",
Self::Low => "LOW",
Self::Medium => "MEDIUM",
Self::Unsampled => "UNSAMPLED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SAMPLING_LEVEL_UNSPECIFIED" => Some(Self::Unspecified),
"LOW" => Some(Self::Low),
"MEDIUM" => Some(Self::Medium),
"UNSAMPLED" => Some(Self::Unsampled),
_ => None,
}
}
}
/// A request to create a new recurring audience list.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateRecurringAudienceListRequest {
Expand Down Expand Up @@ -2909,6 +2951,9 @@ pub mod report_task {
/// containing eventName: "purchase" and eventCount: 0.
#[prost(bool, tag = "13")]
pub keep_empty_rows: bool,
/// Optional. The report's sampling level.
#[prost(enumeration = "super::SamplingLevel", optional, tag = "14")]
pub sampling_level: ::core::option::Option<i32>,
}
/// The report metadata for a specific report task.
#[derive(Clone, PartialEq, ::prost::Message)]
Expand Down
110 changes: 109 additions & 1 deletion gcloud-sdk/genproto/google.api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,9 @@ pub struct CommonLanguageSettings {
/// The destination where API teams want this client library to be published.
#[prost(enumeration = "ClientLibraryDestination", repeated, tag = "2")]
pub destinations: ::prost::alloc::vec::Vec<i32>,
/// Configuration for which RPCs should be generated in the GAPIC client.
#[prost(message, optional, tag = "3")]
pub selective_gapic_generation: ::core::option::Option<SelectiveGapicGeneration>,
}
/// Details about how and where to publish client libraries.
#[derive(Clone, PartialEq, ::prost::Message)]
Expand Down Expand Up @@ -1108,6 +1111,15 @@ pub mod method_settings {
pub total_poll_timeout: ::core::option::Option<::prost_types::Duration>,
}
}
/// This message is used to configure the generation of a subset of the RPCs in
/// a service for client libraries.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SelectiveGapicGeneration {
/// An allowlist of the fully qualified names of RPCs that should be included
/// on public client surfaces.
#[prost(string, repeated, tag = "1")]
pub methods: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// The organization for which the client libraries are being published.
/// Affects the url where generated docs are published, etc.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
Expand Down Expand Up @@ -2960,6 +2972,37 @@ pub enum ErrorReason {
/// "locations/asia-northeast3" violates at least one location policy.
/// The troubleshooting guidance is provided in the Help links.
LocationPolicyViolated = 31,
/// The request is denied because origin request header is missing.
///
/// Example of an ErrorInfo when
/// accessing "pubsub.googleapis.com" service with an empty "Origin" request
/// header.
///
/// {
/// reason: "MISSING_ORIGIN"
/// domain: "googleapis.com"
/// metadata {
/// "consumer":"projects/123456"
/// "service": "pubsub.googleapis.com"
/// }
/// }
MissingOrigin = 33,
/// The request is denied because the request contains more than one credential
/// type that are individually acceptable, but not together. The customer
/// should retry their request with only one set of credentials.
///
/// Example of an ErrorInfo when
/// accessing "pubsub.googleapis.com" service with overloaded credentials.
///
/// {
/// reason: "OVERLOADED_CREDENTIALS"
/// domain: "googleapis.com"
/// metadata {
/// "consumer":"projects/123456"
/// "service": "pubsub.googleapis.com"
/// }
/// }
OverloadedCredentials = 34,
}
impl ErrorReason {
/// String value of the enum field names used in the ProtoBuf definition.
Expand Down Expand Up @@ -3001,6 +3044,8 @@ impl ErrorReason {
Self::ServiceNotVisible => "SERVICE_NOT_VISIBLE",
Self::GcpSuspended => "GCP_SUSPENDED",
Self::LocationPolicyViolated => "LOCATION_POLICY_VIOLATED",
Self::MissingOrigin => "MISSING_ORIGIN",
Self::OverloadedCredentials => "OVERLOADED_CREDENTIALS",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand Down Expand Up @@ -3039,6 +3084,8 @@ impl ErrorReason {
"SERVICE_NOT_VISIBLE" => Some(Self::ServiceNotVisible),
"GCP_SUSPENDED" => Some(Self::GcpSuspended),
"LOCATION_POLICY_VIOLATED" => Some(Self::LocationPolicyViolated),
"MISSING_ORIGIN" => Some(Self::MissingOrigin),
"OVERLOADED_CREDENTIALS" => Some(Self::OverloadedCredentials),
_ => None,
}
}
Expand Down Expand Up @@ -3517,7 +3564,7 @@ pub struct MetricDescriptor {
/// Nested message and enum types in `MetricDescriptor`.
pub mod metric_descriptor {
/// Additional annotations that can be used to guide the usage of a metric.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MetricDescriptorMetadata {
/// Deprecated. Must use the
/// [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage]
Expand All @@ -3536,6 +3583,67 @@ pub mod metric_descriptor {
/// data loss due to errors.
#[prost(message, optional, tag = "3")]
pub ingest_delay: ::core::option::Option<::prost_types::Duration>,
/// The scope of the timeseries data of the metric.
#[prost(
enumeration = "metric_descriptor_metadata::TimeSeriesResourceHierarchyLevel",
repeated,
tag = "4"
)]
pub time_series_resource_hierarchy_level: ::prost::alloc::vec::Vec<i32>,
}
/// Nested message and enum types in `MetricDescriptorMetadata`.
pub mod metric_descriptor_metadata {
/// The resource hierarchy level of the timeseries data of a metric.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum TimeSeriesResourceHierarchyLevel {
/// Do not use this default value.
Unspecified = 0,
/// Scopes a metric to a project.
Project = 1,
/// Scopes a metric to an organization.
Organization = 2,
/// Scopes a metric to a folder.
Folder = 3,
}
impl TimeSeriesResourceHierarchyLevel {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => {
"TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED"
}
Self::Project => "PROJECT",
Self::Organization => "ORGANIZATION",
Self::Folder => "FOLDER",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED" => {
Some(Self::Unspecified)
}
"PROJECT" => Some(Self::Project),
"ORGANIZATION" => Some(Self::Organization),
"FOLDER" => Some(Self::Folder),
_ => None,
}
}
}
}
/// The kind of measurement. It describes how the data is reported.
/// For information on setting the start time and end time based on
Expand Down
Loading

0 comments on commit a2df3f0

Please sign in to comment.