1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338
// This file is @generated by prost-build.
/// The weight represented as the value in string and the unit.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Weight {
/// Required. The weight represented as a number in micros (1 million micros is
/// an equivalent to one's currency standard unit, for example, 1 kg = 1000000
/// micros).
/// This field can also be set as infinity by setting to -1.
/// This field only support -1 and positive value.
#[prost(int64, optional, tag = "1")]
pub amount_micros: ::core::option::Option<i64>,
/// Required. The weight unit.
/// Acceptable values are: kg and lb
#[prost(enumeration = "weight::WeightUnit", tag = "2")]
pub unit: i32,
}
/// Nested message and enum types in `Weight`.
pub mod weight {
/// The weight unit.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum WeightUnit {
/// unit unspecified
Unspecified = 0,
/// lb unit.
Pound = 1,
/// kg unit.
Kilogram = 2,
}
impl WeightUnit {
/// 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 {
WeightUnit::Unspecified => "WEIGHT_UNIT_UNSPECIFIED",
WeightUnit::Pound => "POUND",
WeightUnit::Kilogram => "KILOGRAM",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"WEIGHT_UNIT_UNSPECIFIED" => Some(Self::Unspecified),
"POUND" => Some(Self::Pound),
"KILOGRAM" => Some(Self::Kilogram),
_ => None,
}
}
}
}
/// The price represented as a number and currency.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Price {
/// The price represented as a number in micros (1 million micros is an
/// equivalent to one's currency standard unit, for example, 1 USD = 1000000
/// micros).
#[prost(int64, optional, tag = "1")]
pub amount_micros: ::core::option::Option<i64>,
/// The currency of the price using three-letter acronyms according to [ISO
/// 4217](<http://en.wikipedia.org/wiki/ISO_4217>).
#[prost(string, optional, tag = "2")]
pub currency_code: ::core::option::Option<::prost::alloc::string::String>,
}
/// A message that represents custom attributes. Exactly one of `value` or
/// `group_values` must not be empty.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomAttribute {
/// The name of the attribute.
#[prost(string, optional, tag = "1")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
/// The value of the attribute. If `value` is not empty, `group_values` must be
/// empty.
#[prost(string, optional, tag = "2")]
pub value: ::core::option::Option<::prost::alloc::string::String>,
/// Subattributes within this attribute group. If
/// `group_values` is not empty, `value` must be empty.
#[prost(message, repeated, tag = "3")]
pub group_values: ::prost::alloc::vec::Vec<CustomAttribute>,
}
/// Destinations available for a product.
///
/// Destinations are used in Merchant Center to allow you to control where the
/// products from your data feed should be displayed.
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Destination {}
/// Nested message and enum types in `Destination`.
pub mod destination {
/// Destination values.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum DestinationEnum {
/// Not specified.
Unspecified = 0,
/// [Shopping ads](<https://support.google.com/google-ads/answer/2454022>).
ShoppingAds = 1,
/// [Display ads](<https://support.google.com/merchants/answer/6069387>).
DisplayAds = 2,
/// [Local inventory
/// ads](<https://support.google.com/merchants/answer/3057972>).
LocalInventoryAds = 3,
/// [Free listings](<https://support.google.com/merchants/answer/9199328>).
FreeListings = 4,
/// [Free local product
/// listings](<https://support.google.com/merchants/answer/9825611>).
FreeLocalListings = 5,
/// [YouTube Shopping](<https://support.google.com/merchants/answer/12362804>).
YoutubeShopping = 6,
}
impl DestinationEnum {
/// 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 {
DestinationEnum::Unspecified => "DESTINATION_ENUM_UNSPECIFIED",
DestinationEnum::ShoppingAds => "SHOPPING_ADS",
DestinationEnum::DisplayAds => "DISPLAY_ADS",
DestinationEnum::LocalInventoryAds => "LOCAL_INVENTORY_ADS",
DestinationEnum::FreeListings => "FREE_LISTINGS",
DestinationEnum::FreeLocalListings => "FREE_LOCAL_LISTINGS",
DestinationEnum::YoutubeShopping => "YOUTUBE_SHOPPING",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"DESTINATION_ENUM_UNSPECIFIED" => Some(Self::Unspecified),
"SHOPPING_ADS" => Some(Self::ShoppingAds),
"DISPLAY_ADS" => Some(Self::DisplayAds),
"LOCAL_INVENTORY_ADS" => Some(Self::LocalInventoryAds),
"FREE_LISTINGS" => Some(Self::FreeListings),
"FREE_LOCAL_LISTINGS" => Some(Self::FreeLocalListings),
"YOUTUBE_SHOPPING" => Some(Self::YoutubeShopping),
_ => None,
}
}
}
}
/// Reporting contexts that your account and product issues apply to.
///
/// Reporting contexts are groups of surfaces and formats for product results on
/// Google. They can represent the entire destination (for example, [Shopping
/// ads](<https://support.google.com/merchants/answer/6149970>)) or a subset of
/// formats within a destination (for example, [Demand Gen
/// ads](<https://support.google.com/merchants/answer/13389785>)).
///
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReportingContext {}
/// Nested message and enum types in `ReportingContext`.
pub mod reporting_context {
/// Reporting context values.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ReportingContextEnum {
/// Not specified.
Unspecified = 0,
/// [Shopping ads](<https://support.google.com/merchants/answer/6149970>).
ShoppingAds = 1,
/// Deprecated: Use `DEMAND_GEN_ADS` instead.
/// [Discovery and Demand Gen
/// ads](<https://support.google.com/merchants/answer/13389785>).
DiscoveryAds = 2,
/// [Demand Gen ads](<https://support.google.com/merchants/answer/13389785>).
DemandGenAds = 13,
/// [Demand Gen ads on Discover
/// surface](<https://support.google.com/merchants/answer/13389785>).
DemandGenAdsDiscoverSurface = 14,
/// [Video ads](<https://support.google.com/google-ads/answer/6340491>).
VideoAds = 3,
/// [Display ads](<https://support.google.com/merchants/answer/6069387>).
DisplayAds = 4,
/// [Local inventory
/// ads](<https://support.google.com/merchants/answer/3271956>).
LocalInventoryAds = 5,
/// [Vehicle inventory
/// ads](<https://support.google.com/merchants/answer/11544533>).
VehicleInventoryAds = 6,
/// [Free product
/// listings](<https://support.google.com/merchants/answer/9199328>).
FreeListings = 7,
/// [Free local product
/// listings](<https://support.google.com/merchants/answer/9825611>).
FreeLocalListings = 8,
/// [Free local vehicle
/// listings](<https://support.google.com/merchants/answer/11544533>).
FreeLocalVehicleListings = 9,
/// [YouTube
/// Shopping](<https://support.google.com/merchants/answer/13478370>).
YoutubeShopping = 10,
/// [Cloud retail](<https://cloud.google.com/solutions/retail>).
CloudRetail = 11,
/// [Local cloud retail](<https://cloud.google.com/solutions/retail>).
LocalCloudRetail = 12,
}
impl ReportingContextEnum {
/// 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 {
ReportingContextEnum::Unspecified => "REPORTING_CONTEXT_ENUM_UNSPECIFIED",
ReportingContextEnum::ShoppingAds => "SHOPPING_ADS",
ReportingContextEnum::DiscoveryAds => "DISCOVERY_ADS",
ReportingContextEnum::DemandGenAds => "DEMAND_GEN_ADS",
ReportingContextEnum::DemandGenAdsDiscoverSurface => {
"DEMAND_GEN_ADS_DISCOVER_SURFACE"
}
ReportingContextEnum::VideoAds => "VIDEO_ADS",
ReportingContextEnum::DisplayAds => "DISPLAY_ADS",
ReportingContextEnum::LocalInventoryAds => "LOCAL_INVENTORY_ADS",
ReportingContextEnum::VehicleInventoryAds => "VEHICLE_INVENTORY_ADS",
ReportingContextEnum::FreeListings => "FREE_LISTINGS",
ReportingContextEnum::FreeLocalListings => "FREE_LOCAL_LISTINGS",
ReportingContextEnum::FreeLocalVehicleListings => {
"FREE_LOCAL_VEHICLE_LISTINGS"
}
ReportingContextEnum::YoutubeShopping => "YOUTUBE_SHOPPING",
ReportingContextEnum::CloudRetail => "CLOUD_RETAIL",
ReportingContextEnum::LocalCloudRetail => "LOCAL_CLOUD_RETAIL",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"REPORTING_CONTEXT_ENUM_UNSPECIFIED" => Some(Self::Unspecified),
"SHOPPING_ADS" => Some(Self::ShoppingAds),
"DISCOVERY_ADS" => Some(Self::DiscoveryAds),
"DEMAND_GEN_ADS" => Some(Self::DemandGenAds),
"DEMAND_GEN_ADS_DISCOVER_SURFACE" => {
Some(Self::DemandGenAdsDiscoverSurface)
}
"VIDEO_ADS" => Some(Self::VideoAds),
"DISPLAY_ADS" => Some(Self::DisplayAds),
"LOCAL_INVENTORY_ADS" => Some(Self::LocalInventoryAds),
"VEHICLE_INVENTORY_ADS" => Some(Self::VehicleInventoryAds),
"FREE_LISTINGS" => Some(Self::FreeListings),
"FREE_LOCAL_LISTINGS" => Some(Self::FreeLocalListings),
"FREE_LOCAL_VEHICLE_LISTINGS" => Some(Self::FreeLocalVehicleListings),
"YOUTUBE_SHOPPING" => Some(Self::YoutubeShopping),
"CLOUD_RETAIL" => Some(Self::CloudRetail),
"LOCAL_CLOUD_RETAIL" => Some(Self::LocalCloudRetail),
_ => None,
}
}
}
}
/// [Channel](<https://support.google.com/merchants/answer/7361332>) of a product.
///
/// Channel is used to distinguish between online and local products.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Channel {}
/// Nested message and enum types in `Channel`.
pub mod channel {
/// Channel values.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ChannelEnum {
/// Not specified.
Unspecified = 0,
/// Online product.
Online = 1,
/// Local product.
Local = 2,
}
impl ChannelEnum {
/// 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 {
ChannelEnum::Unspecified => "CHANNEL_ENUM_UNSPECIFIED",
ChannelEnum::Online => "ONLINE",
ChannelEnum::Local => "LOCAL",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"CHANNEL_ENUM_UNSPECIFIED" => Some(Self::Unspecified),
"ONLINE" => Some(Self::Online),
"LOCAL" => Some(Self::Local),
_ => None,
}
}
}
}