You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

700 lines
25 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/ads/googleads/v1/resources/ad.proto
  3. package resources // import "google.golang.org/genproto/googleapis/ads/googleads/v1/resources"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import wrappers "github.com/golang/protobuf/ptypes/wrappers"
  8. import common "google.golang.org/genproto/googleapis/ads/googleads/v1/common"
  9. import enums "google.golang.org/genproto/googleapis/ads/googleads/v1/enums"
  10. import _ "google.golang.org/genproto/googleapis/api/annotations"
  11. // Reference imports to suppress errors if they are not otherwise used.
  12. var _ = proto.Marshal
  13. var _ = fmt.Errorf
  14. var _ = math.Inf
  15. // This is a compile-time assertion to ensure that this generated file
  16. // is compatible with the proto package it is being compiled against.
  17. // A compilation error at this line likely means your copy of the
  18. // proto package needs to be updated.
  19. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  20. // An ad.
  21. type Ad struct {
  22. // The ID of the ad.
  23. Id *wrappers.Int64Value `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  24. // The list of possible final URLs after all cross-domain redirects for the
  25. // ad.
  26. FinalUrls []*wrappers.StringValue `protobuf:"bytes,2,rep,name=final_urls,json=finalUrls,proto3" json:"final_urls,omitempty"`
  27. // The list of possible final mobile URLs after all cross-domain redirects
  28. // for the ad.
  29. FinalMobileUrls []*wrappers.StringValue `protobuf:"bytes,16,rep,name=final_mobile_urls,json=finalMobileUrls,proto3" json:"final_mobile_urls,omitempty"`
  30. // The URL template for constructing a tracking URL.
  31. TrackingUrlTemplate *wrappers.StringValue `protobuf:"bytes,12,opt,name=tracking_url_template,json=trackingUrlTemplate,proto3" json:"tracking_url_template,omitempty"`
  32. // The list of mappings that can be used to substitute custom parameter tags
  33. // in a `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
  34. UrlCustomParameters []*common.CustomParameter `protobuf:"bytes,10,rep,name=url_custom_parameters,json=urlCustomParameters,proto3" json:"url_custom_parameters,omitempty"`
  35. // The URL that appears in the ad description for some ad formats.
  36. DisplayUrl *wrappers.StringValue `protobuf:"bytes,4,opt,name=display_url,json=displayUrl,proto3" json:"display_url,omitempty"`
  37. // The type of ad.
  38. Type enums.AdTypeEnum_AdType `protobuf:"varint,5,opt,name=type,proto3,enum=google.ads.googleads.v1.enums.AdTypeEnum_AdType" json:"type,omitempty"`
  39. // Indicates if this ad was automatically added by Google Ads and not by a
  40. // user. For example, this could happen when ads are automatically created as
  41. // suggestions for new ads based on knowledge of how existing ads are
  42. // performing.
  43. AddedByGoogleAds *wrappers.BoolValue `protobuf:"bytes,19,opt,name=added_by_google_ads,json=addedByGoogleAds,proto3" json:"added_by_google_ads,omitempty"`
  44. // The device preference for the ad. You can only specify a preference for
  45. // mobile devices. When this preference is set the ad will be preferred over
  46. // other ads when being displayed on a mobile device. The ad can still be
  47. // displayed on other device types, e.g. if no other ads are available.
  48. // If unspecified (no device preference), all devices are targeted.
  49. // This is only supported by some ad types.
  50. DevicePreference enums.DeviceEnum_Device `protobuf:"varint,20,opt,name=device_preference,json=devicePreference,proto3,enum=google.ads.googleads.v1.enums.DeviceEnum_Device" json:"device_preference,omitempty"`
  51. // Additional URLs for the ad that are tagged with a unique identifier that
  52. // can be referenced from other fields in the ad.
  53. UrlCollections []*common.UrlCollection `protobuf:"bytes,26,rep,name=url_collections,json=urlCollections,proto3" json:"url_collections,omitempty"`
  54. // The name of the ad. This is only used to be able to identify the ad. It
  55. // does not need to be unique and does not affect the served ad.
  56. Name *wrappers.StringValue `protobuf:"bytes,23,opt,name=name,proto3" json:"name,omitempty"`
  57. // If this ad is system managed, then this field will indicate the source.
  58. // This field is read-only.
  59. SystemManagedResourceSource enums.SystemManagedResourceSourceEnum_SystemManagedResourceSource `protobuf:"varint,27,opt,name=system_managed_resource_source,json=systemManagedResourceSource,proto3,enum=google.ads.googleads.v1.enums.SystemManagedResourceSourceEnum_SystemManagedResourceSource" json:"system_managed_resource_source,omitempty"`
  60. // Details pertinent to the ad type. Exactly one value must be set.
  61. //
  62. // Types that are valid to be assigned to AdData:
  63. // *Ad_TextAd
  64. // *Ad_ExpandedTextAd
  65. // *Ad_CallOnlyAd
  66. // *Ad_ExpandedDynamicSearchAd
  67. // *Ad_HotelAd
  68. // *Ad_ShoppingSmartAd
  69. // *Ad_ShoppingProductAd
  70. // *Ad_GmailAd
  71. // *Ad_ImageAd
  72. // *Ad_VideoAd
  73. // *Ad_ResponsiveSearchAd
  74. // *Ad_LegacyResponsiveDisplayAd
  75. AdData isAd_AdData `protobuf_oneof:"ad_data"`
  76. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  77. XXX_unrecognized []byte `json:"-"`
  78. XXX_sizecache int32 `json:"-"`
  79. }
  80. func (m *Ad) Reset() { *m = Ad{} }
  81. func (m *Ad) String() string { return proto.CompactTextString(m) }
  82. func (*Ad) ProtoMessage() {}
  83. func (*Ad) Descriptor() ([]byte, []int) {
  84. return fileDescriptor_ad_aedd3fed701e067d, []int{0}
  85. }
  86. func (m *Ad) XXX_Unmarshal(b []byte) error {
  87. return xxx_messageInfo_Ad.Unmarshal(m, b)
  88. }
  89. func (m *Ad) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  90. return xxx_messageInfo_Ad.Marshal(b, m, deterministic)
  91. }
  92. func (dst *Ad) XXX_Merge(src proto.Message) {
  93. xxx_messageInfo_Ad.Merge(dst, src)
  94. }
  95. func (m *Ad) XXX_Size() int {
  96. return xxx_messageInfo_Ad.Size(m)
  97. }
  98. func (m *Ad) XXX_DiscardUnknown() {
  99. xxx_messageInfo_Ad.DiscardUnknown(m)
  100. }
  101. var xxx_messageInfo_Ad proto.InternalMessageInfo
  102. func (m *Ad) GetId() *wrappers.Int64Value {
  103. if m != nil {
  104. return m.Id
  105. }
  106. return nil
  107. }
  108. func (m *Ad) GetFinalUrls() []*wrappers.StringValue {
  109. if m != nil {
  110. return m.FinalUrls
  111. }
  112. return nil
  113. }
  114. func (m *Ad) GetFinalMobileUrls() []*wrappers.StringValue {
  115. if m != nil {
  116. return m.FinalMobileUrls
  117. }
  118. return nil
  119. }
  120. func (m *Ad) GetTrackingUrlTemplate() *wrappers.StringValue {
  121. if m != nil {
  122. return m.TrackingUrlTemplate
  123. }
  124. return nil
  125. }
  126. func (m *Ad) GetUrlCustomParameters() []*common.CustomParameter {
  127. if m != nil {
  128. return m.UrlCustomParameters
  129. }
  130. return nil
  131. }
  132. func (m *Ad) GetDisplayUrl() *wrappers.StringValue {
  133. if m != nil {
  134. return m.DisplayUrl
  135. }
  136. return nil
  137. }
  138. func (m *Ad) GetType() enums.AdTypeEnum_AdType {
  139. if m != nil {
  140. return m.Type
  141. }
  142. return enums.AdTypeEnum_UNSPECIFIED
  143. }
  144. func (m *Ad) GetAddedByGoogleAds() *wrappers.BoolValue {
  145. if m != nil {
  146. return m.AddedByGoogleAds
  147. }
  148. return nil
  149. }
  150. func (m *Ad) GetDevicePreference() enums.DeviceEnum_Device {
  151. if m != nil {
  152. return m.DevicePreference
  153. }
  154. return enums.DeviceEnum_UNSPECIFIED
  155. }
  156. func (m *Ad) GetUrlCollections() []*common.UrlCollection {
  157. if m != nil {
  158. return m.UrlCollections
  159. }
  160. return nil
  161. }
  162. func (m *Ad) GetName() *wrappers.StringValue {
  163. if m != nil {
  164. return m.Name
  165. }
  166. return nil
  167. }
  168. func (m *Ad) GetSystemManagedResourceSource() enums.SystemManagedResourceSourceEnum_SystemManagedResourceSource {
  169. if m != nil {
  170. return m.SystemManagedResourceSource
  171. }
  172. return enums.SystemManagedResourceSourceEnum_UNSPECIFIED
  173. }
  174. type isAd_AdData interface {
  175. isAd_AdData()
  176. }
  177. type Ad_TextAd struct {
  178. TextAd *common.TextAdInfo `protobuf:"bytes,6,opt,name=text_ad,json=textAd,proto3,oneof"`
  179. }
  180. type Ad_ExpandedTextAd struct {
  181. ExpandedTextAd *common.ExpandedTextAdInfo `protobuf:"bytes,7,opt,name=expanded_text_ad,json=expandedTextAd,proto3,oneof"`
  182. }
  183. type Ad_CallOnlyAd struct {
  184. CallOnlyAd *common.CallOnlyAdInfo `protobuf:"bytes,13,opt,name=call_only_ad,json=callOnlyAd,proto3,oneof"`
  185. }
  186. type Ad_ExpandedDynamicSearchAd struct {
  187. ExpandedDynamicSearchAd *common.ExpandedDynamicSearchAdInfo `protobuf:"bytes,14,opt,name=expanded_dynamic_search_ad,json=expandedDynamicSearchAd,proto3,oneof"`
  188. }
  189. type Ad_HotelAd struct {
  190. HotelAd *common.HotelAdInfo `protobuf:"bytes,15,opt,name=hotel_ad,json=hotelAd,proto3,oneof"`
  191. }
  192. type Ad_ShoppingSmartAd struct {
  193. ShoppingSmartAd *common.ShoppingSmartAdInfo `protobuf:"bytes,17,opt,name=shopping_smart_ad,json=shoppingSmartAd,proto3,oneof"`
  194. }
  195. type Ad_ShoppingProductAd struct {
  196. ShoppingProductAd *common.ShoppingProductAdInfo `protobuf:"bytes,18,opt,name=shopping_product_ad,json=shoppingProductAd,proto3,oneof"`
  197. }
  198. type Ad_GmailAd struct {
  199. GmailAd *common.GmailAdInfo `protobuf:"bytes,21,opt,name=gmail_ad,json=gmailAd,proto3,oneof"`
  200. }
  201. type Ad_ImageAd struct {
  202. ImageAd *common.ImageAdInfo `protobuf:"bytes,22,opt,name=image_ad,json=imageAd,proto3,oneof"`
  203. }
  204. type Ad_VideoAd struct {
  205. VideoAd *common.VideoAdInfo `protobuf:"bytes,24,opt,name=video_ad,json=videoAd,proto3,oneof"`
  206. }
  207. type Ad_ResponsiveSearchAd struct {
  208. ResponsiveSearchAd *common.ResponsiveSearchAdInfo `protobuf:"bytes,25,opt,name=responsive_search_ad,json=responsiveSearchAd,proto3,oneof"`
  209. }
  210. type Ad_LegacyResponsiveDisplayAd struct {
  211. LegacyResponsiveDisplayAd *common.LegacyResponsiveDisplayAdInfo `protobuf:"bytes,28,opt,name=legacy_responsive_display_ad,json=legacyResponsiveDisplayAd,proto3,oneof"`
  212. }
  213. func (*Ad_TextAd) isAd_AdData() {}
  214. func (*Ad_ExpandedTextAd) isAd_AdData() {}
  215. func (*Ad_CallOnlyAd) isAd_AdData() {}
  216. func (*Ad_ExpandedDynamicSearchAd) isAd_AdData() {}
  217. func (*Ad_HotelAd) isAd_AdData() {}
  218. func (*Ad_ShoppingSmartAd) isAd_AdData() {}
  219. func (*Ad_ShoppingProductAd) isAd_AdData() {}
  220. func (*Ad_GmailAd) isAd_AdData() {}
  221. func (*Ad_ImageAd) isAd_AdData() {}
  222. func (*Ad_VideoAd) isAd_AdData() {}
  223. func (*Ad_ResponsiveSearchAd) isAd_AdData() {}
  224. func (*Ad_LegacyResponsiveDisplayAd) isAd_AdData() {}
  225. func (m *Ad) GetAdData() isAd_AdData {
  226. if m != nil {
  227. return m.AdData
  228. }
  229. return nil
  230. }
  231. func (m *Ad) GetTextAd() *common.TextAdInfo {
  232. if x, ok := m.GetAdData().(*Ad_TextAd); ok {
  233. return x.TextAd
  234. }
  235. return nil
  236. }
  237. func (m *Ad) GetExpandedTextAd() *common.ExpandedTextAdInfo {
  238. if x, ok := m.GetAdData().(*Ad_ExpandedTextAd); ok {
  239. return x.ExpandedTextAd
  240. }
  241. return nil
  242. }
  243. func (m *Ad) GetCallOnlyAd() *common.CallOnlyAdInfo {
  244. if x, ok := m.GetAdData().(*Ad_CallOnlyAd); ok {
  245. return x.CallOnlyAd
  246. }
  247. return nil
  248. }
  249. func (m *Ad) GetExpandedDynamicSearchAd() *common.ExpandedDynamicSearchAdInfo {
  250. if x, ok := m.GetAdData().(*Ad_ExpandedDynamicSearchAd); ok {
  251. return x.ExpandedDynamicSearchAd
  252. }
  253. return nil
  254. }
  255. func (m *Ad) GetHotelAd() *common.HotelAdInfo {
  256. if x, ok := m.GetAdData().(*Ad_HotelAd); ok {
  257. return x.HotelAd
  258. }
  259. return nil
  260. }
  261. func (m *Ad) GetShoppingSmartAd() *common.ShoppingSmartAdInfo {
  262. if x, ok := m.GetAdData().(*Ad_ShoppingSmartAd); ok {
  263. return x.ShoppingSmartAd
  264. }
  265. return nil
  266. }
  267. func (m *Ad) GetShoppingProductAd() *common.ShoppingProductAdInfo {
  268. if x, ok := m.GetAdData().(*Ad_ShoppingProductAd); ok {
  269. return x.ShoppingProductAd
  270. }
  271. return nil
  272. }
  273. func (m *Ad) GetGmailAd() *common.GmailAdInfo {
  274. if x, ok := m.GetAdData().(*Ad_GmailAd); ok {
  275. return x.GmailAd
  276. }
  277. return nil
  278. }
  279. func (m *Ad) GetImageAd() *common.ImageAdInfo {
  280. if x, ok := m.GetAdData().(*Ad_ImageAd); ok {
  281. return x.ImageAd
  282. }
  283. return nil
  284. }
  285. func (m *Ad) GetVideoAd() *common.VideoAdInfo {
  286. if x, ok := m.GetAdData().(*Ad_VideoAd); ok {
  287. return x.VideoAd
  288. }
  289. return nil
  290. }
  291. func (m *Ad) GetResponsiveSearchAd() *common.ResponsiveSearchAdInfo {
  292. if x, ok := m.GetAdData().(*Ad_ResponsiveSearchAd); ok {
  293. return x.ResponsiveSearchAd
  294. }
  295. return nil
  296. }
  297. func (m *Ad) GetLegacyResponsiveDisplayAd() *common.LegacyResponsiveDisplayAdInfo {
  298. if x, ok := m.GetAdData().(*Ad_LegacyResponsiveDisplayAd); ok {
  299. return x.LegacyResponsiveDisplayAd
  300. }
  301. return nil
  302. }
  303. // XXX_OneofFuncs is for the internal use of the proto package.
  304. func (*Ad) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  305. return _Ad_OneofMarshaler, _Ad_OneofUnmarshaler, _Ad_OneofSizer, []interface{}{
  306. (*Ad_TextAd)(nil),
  307. (*Ad_ExpandedTextAd)(nil),
  308. (*Ad_CallOnlyAd)(nil),
  309. (*Ad_ExpandedDynamicSearchAd)(nil),
  310. (*Ad_HotelAd)(nil),
  311. (*Ad_ShoppingSmartAd)(nil),
  312. (*Ad_ShoppingProductAd)(nil),
  313. (*Ad_GmailAd)(nil),
  314. (*Ad_ImageAd)(nil),
  315. (*Ad_VideoAd)(nil),
  316. (*Ad_ResponsiveSearchAd)(nil),
  317. (*Ad_LegacyResponsiveDisplayAd)(nil),
  318. }
  319. }
  320. func _Ad_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  321. m := msg.(*Ad)
  322. // ad_data
  323. switch x := m.AdData.(type) {
  324. case *Ad_TextAd:
  325. b.EncodeVarint(6<<3 | proto.WireBytes)
  326. if err := b.EncodeMessage(x.TextAd); err != nil {
  327. return err
  328. }
  329. case *Ad_ExpandedTextAd:
  330. b.EncodeVarint(7<<3 | proto.WireBytes)
  331. if err := b.EncodeMessage(x.ExpandedTextAd); err != nil {
  332. return err
  333. }
  334. case *Ad_CallOnlyAd:
  335. b.EncodeVarint(13<<3 | proto.WireBytes)
  336. if err := b.EncodeMessage(x.CallOnlyAd); err != nil {
  337. return err
  338. }
  339. case *Ad_ExpandedDynamicSearchAd:
  340. b.EncodeVarint(14<<3 | proto.WireBytes)
  341. if err := b.EncodeMessage(x.ExpandedDynamicSearchAd); err != nil {
  342. return err
  343. }
  344. case *Ad_HotelAd:
  345. b.EncodeVarint(15<<3 | proto.WireBytes)
  346. if err := b.EncodeMessage(x.HotelAd); err != nil {
  347. return err
  348. }
  349. case *Ad_ShoppingSmartAd:
  350. b.EncodeVarint(17<<3 | proto.WireBytes)
  351. if err := b.EncodeMessage(x.ShoppingSmartAd); err != nil {
  352. return err
  353. }
  354. case *Ad_ShoppingProductAd:
  355. b.EncodeVarint(18<<3 | proto.WireBytes)
  356. if err := b.EncodeMessage(x.ShoppingProductAd); err != nil {
  357. return err
  358. }
  359. case *Ad_GmailAd:
  360. b.EncodeVarint(21<<3 | proto.WireBytes)
  361. if err := b.EncodeMessage(x.GmailAd); err != nil {
  362. return err
  363. }
  364. case *Ad_ImageAd:
  365. b.EncodeVarint(22<<3 | proto.WireBytes)
  366. if err := b.EncodeMessage(x.ImageAd); err != nil {
  367. return err
  368. }
  369. case *Ad_VideoAd:
  370. b.EncodeVarint(24<<3 | proto.WireBytes)
  371. if err := b.EncodeMessage(x.VideoAd); err != nil {
  372. return err
  373. }
  374. case *Ad_ResponsiveSearchAd:
  375. b.EncodeVarint(25<<3 | proto.WireBytes)
  376. if err := b.EncodeMessage(x.ResponsiveSearchAd); err != nil {
  377. return err
  378. }
  379. case *Ad_LegacyResponsiveDisplayAd:
  380. b.EncodeVarint(28<<3 | proto.WireBytes)
  381. if err := b.EncodeMessage(x.LegacyResponsiveDisplayAd); err != nil {
  382. return err
  383. }
  384. case nil:
  385. default:
  386. return fmt.Errorf("Ad.AdData has unexpected type %T", x)
  387. }
  388. return nil
  389. }
  390. func _Ad_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  391. m := msg.(*Ad)
  392. switch tag {
  393. case 6: // ad_data.text_ad
  394. if wire != proto.WireBytes {
  395. return true, proto.ErrInternalBadWireType
  396. }
  397. msg := new(common.TextAdInfo)
  398. err := b.DecodeMessage(msg)
  399. m.AdData = &Ad_TextAd{msg}
  400. return true, err
  401. case 7: // ad_data.expanded_text_ad
  402. if wire != proto.WireBytes {
  403. return true, proto.ErrInternalBadWireType
  404. }
  405. msg := new(common.ExpandedTextAdInfo)
  406. err := b.DecodeMessage(msg)
  407. m.AdData = &Ad_ExpandedTextAd{msg}
  408. return true, err
  409. case 13: // ad_data.call_only_ad
  410. if wire != proto.WireBytes {
  411. return true, proto.ErrInternalBadWireType
  412. }
  413. msg := new(common.CallOnlyAdInfo)
  414. err := b.DecodeMessage(msg)
  415. m.AdData = &Ad_CallOnlyAd{msg}
  416. return true, err
  417. case 14: // ad_data.expanded_dynamic_search_ad
  418. if wire != proto.WireBytes {
  419. return true, proto.ErrInternalBadWireType
  420. }
  421. msg := new(common.ExpandedDynamicSearchAdInfo)
  422. err := b.DecodeMessage(msg)
  423. m.AdData = &Ad_ExpandedDynamicSearchAd{msg}
  424. return true, err
  425. case 15: // ad_data.hotel_ad
  426. if wire != proto.WireBytes {
  427. return true, proto.ErrInternalBadWireType
  428. }
  429. msg := new(common.HotelAdInfo)
  430. err := b.DecodeMessage(msg)
  431. m.AdData = &Ad_HotelAd{msg}
  432. return true, err
  433. case 17: // ad_data.shopping_smart_ad
  434. if wire != proto.WireBytes {
  435. return true, proto.ErrInternalBadWireType
  436. }
  437. msg := new(common.ShoppingSmartAdInfo)
  438. err := b.DecodeMessage(msg)
  439. m.AdData = &Ad_ShoppingSmartAd{msg}
  440. return true, err
  441. case 18: // ad_data.shopping_product_ad
  442. if wire != proto.WireBytes {
  443. return true, proto.ErrInternalBadWireType
  444. }
  445. msg := new(common.ShoppingProductAdInfo)
  446. err := b.DecodeMessage(msg)
  447. m.AdData = &Ad_ShoppingProductAd{msg}
  448. return true, err
  449. case 21: // ad_data.gmail_ad
  450. if wire != proto.WireBytes {
  451. return true, proto.ErrInternalBadWireType
  452. }
  453. msg := new(common.GmailAdInfo)
  454. err := b.DecodeMessage(msg)
  455. m.AdData = &Ad_GmailAd{msg}
  456. return true, err
  457. case 22: // ad_data.image_ad
  458. if wire != proto.WireBytes {
  459. return true, proto.ErrInternalBadWireType
  460. }
  461. msg := new(common.ImageAdInfo)
  462. err := b.DecodeMessage(msg)
  463. m.AdData = &Ad_ImageAd{msg}
  464. return true, err
  465. case 24: // ad_data.video_ad
  466. if wire != proto.WireBytes {
  467. return true, proto.ErrInternalBadWireType
  468. }
  469. msg := new(common.VideoAdInfo)
  470. err := b.DecodeMessage(msg)
  471. m.AdData = &Ad_VideoAd{msg}
  472. return true, err
  473. case 25: // ad_data.responsive_search_ad
  474. if wire != proto.WireBytes {
  475. return true, proto.ErrInternalBadWireType
  476. }
  477. msg := new(common.ResponsiveSearchAdInfo)
  478. err := b.DecodeMessage(msg)
  479. m.AdData = &Ad_ResponsiveSearchAd{msg}
  480. return true, err
  481. case 28: // ad_data.legacy_responsive_display_ad
  482. if wire != proto.WireBytes {
  483. return true, proto.ErrInternalBadWireType
  484. }
  485. msg := new(common.LegacyResponsiveDisplayAdInfo)
  486. err := b.DecodeMessage(msg)
  487. m.AdData = &Ad_LegacyResponsiveDisplayAd{msg}
  488. return true, err
  489. default:
  490. return false, nil
  491. }
  492. }
  493. func _Ad_OneofSizer(msg proto.Message) (n int) {
  494. m := msg.(*Ad)
  495. // ad_data
  496. switch x := m.AdData.(type) {
  497. case *Ad_TextAd:
  498. s := proto.Size(x.TextAd)
  499. n += 1 // tag and wire
  500. n += proto.SizeVarint(uint64(s))
  501. n += s
  502. case *Ad_ExpandedTextAd:
  503. s := proto.Size(x.ExpandedTextAd)
  504. n += 1 // tag and wire
  505. n += proto.SizeVarint(uint64(s))
  506. n += s
  507. case *Ad_CallOnlyAd:
  508. s := proto.Size(x.CallOnlyAd)
  509. n += 1 // tag and wire
  510. n += proto.SizeVarint(uint64(s))
  511. n += s
  512. case *Ad_ExpandedDynamicSearchAd:
  513. s := proto.Size(x.ExpandedDynamicSearchAd)
  514. n += 1 // tag and wire
  515. n += proto.SizeVarint(uint64(s))
  516. n += s
  517. case *Ad_HotelAd:
  518. s := proto.Size(x.HotelAd)
  519. n += 1 // tag and wire
  520. n += proto.SizeVarint(uint64(s))
  521. n += s
  522. case *Ad_ShoppingSmartAd:
  523. s := proto.Size(x.ShoppingSmartAd)
  524. n += 2 // tag and wire
  525. n += proto.SizeVarint(uint64(s))
  526. n += s
  527. case *Ad_ShoppingProductAd:
  528. s := proto.Size(x.ShoppingProductAd)
  529. n += 2 // tag and wire
  530. n += proto.SizeVarint(uint64(s))
  531. n += s
  532. case *Ad_GmailAd:
  533. s := proto.Size(x.GmailAd)
  534. n += 2 // tag and wire
  535. n += proto.SizeVarint(uint64(s))
  536. n += s
  537. case *Ad_ImageAd:
  538. s := proto.Size(x.ImageAd)
  539. n += 2 // tag and wire
  540. n += proto.SizeVarint(uint64(s))
  541. n += s
  542. case *Ad_VideoAd:
  543. s := proto.Size(x.VideoAd)
  544. n += 2 // tag and wire
  545. n += proto.SizeVarint(uint64(s))
  546. n += s
  547. case *Ad_ResponsiveSearchAd:
  548. s := proto.Size(x.ResponsiveSearchAd)
  549. n += 2 // tag and wire
  550. n += proto.SizeVarint(uint64(s))
  551. n += s
  552. case *Ad_LegacyResponsiveDisplayAd:
  553. s := proto.Size(x.LegacyResponsiveDisplayAd)
  554. n += 2 // tag and wire
  555. n += proto.SizeVarint(uint64(s))
  556. n += s
  557. case nil:
  558. default:
  559. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  560. }
  561. return n
  562. }
  563. func init() {
  564. proto.RegisterType((*Ad)(nil), "google.ads.googleads.v1.resources.Ad")
  565. }
  566. func init() {
  567. proto.RegisterFile("google/ads/googleads/v1/resources/ad.proto", fileDescriptor_ad_aedd3fed701e067d)
  568. }
  569. var fileDescriptor_ad_aedd3fed701e067d = []byte{
  570. // 1018 bytes of a gzipped FileDescriptorProto
  571. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x96, 0xdd, 0x4e, 0xe4, 0x36,
  572. 0x14, 0xc7, 0x3b, 0xb3, 0x14, 0xba, 0x66, 0xcb, 0x87, 0x59, 0xba, 0x59, 0x40, 0x2b, 0xb6, 0xd2,
  573. 0x4a, 0x08, 0xd4, 0xcc, 0x02, 0xdd, 0xbd, 0x18, 0xb4, 0x52, 0xc3, 0x82, 0x80, 0xaa, 0xab, 0x8e,
  574. 0x32, 0x30, 0x17, 0x2b, 0xda, 0xc8, 0xc4, 0x26, 0xa4, 0x75, 0xec, 0xc8, 0x76, 0xa6, 0xa4, 0x57,
  575. 0x7d, 0x93, 0x4a, 0xbd, 0xec, 0x4d, 0xdf, 0xa3, 0x8f, 0xd2, 0xeb, 0x3e, 0x40, 0x65, 0x3b, 0x31,
  576. 0x5f, 0x9d, 0xc9, 0xdc, 0x8c, 0xec, 0xf8, 0xff, 0xff, 0x9d, 0xe3, 0x93, 0x63, 0x4f, 0xc0, 0x66,
  577. 0xc2, 0x79, 0x42, 0x49, 0x07, 0x61, 0xd9, 0xb1, 0x43, 0x3d, 0x1a, 0x6e, 0x77, 0x04, 0x91, 0xbc,
  578. 0x10, 0x31, 0x91, 0x1d, 0x84, 0xfd, 0x5c, 0x70, 0xc5, 0xe1, 0x4b, 0x2b, 0xf0, 0x11, 0x96, 0xbe,
  579. 0xd3, 0xfa, 0xc3, 0x6d, 0xdf, 0x69, 0x57, 0x76, 0x46, 0xe1, 0x62, 0x9e, 0x65, 0x9c, 0x75, 0x10,
  580. 0x8e, 0x54, 0x99, 0x93, 0x28, 0x65, 0x97, 0x5c, 0x5a, 0xec, 0xca, 0x9b, 0x06, 0x4f, 0x5c, 0x48,
  581. 0xc5, 0xb3, 0x28, 0x47, 0x02, 0x65, 0x44, 0x11, 0x51, 0xd9, 0x76, 0x1b, 0x6c, 0x85, 0xa0, 0x51,
  582. 0xcc, 0x29, 0x25, 0xb1, 0x4a, 0x39, 0xab, 0x4c, 0x5b, 0xa3, 0x4c, 0x84, 0x15, 0x99, 0xac, 0xd3,
  583. 0xab, 0xc4, 0x9b, 0xe3, 0xc5, 0x98, 0x0c, 0xd3, 0xb8, 0xd6, 0x7e, 0x33, 0x5e, 0x2b, 0x4b, 0xa9,
  584. 0x48, 0x16, 0x65, 0x88, 0xa1, 0x84, 0xe0, 0x88, 0x30, 0x95, 0xaa, 0x32, 0xb2, 0x55, 0xab, 0x08,
  585. 0x2f, 0x2a, 0x82, 0x99, 0x5d, 0x14, 0x97, 0x9d, 0x5f, 0x04, 0xca, 0x73, 0x22, 0xea, 0x32, 0xad,
  586. 0xd5, 0x11, 0xf2, 0xb4, 0x83, 0x18, 0xe3, 0x0a, 0xe9, 0x7d, 0x55, 0xab, 0x5f, 0xfe, 0xb5, 0x00,
  587. 0xda, 0x01, 0x86, 0x5b, 0xa0, 0x9d, 0x62, 0xaf, 0xb5, 0xde, 0xda, 0x98, 0xdd, 0x59, 0xad, 0x5e,
  588. 0x92, 0x5f, 0x13, 0xfd, 0x13, 0xa6, 0xde, 0x7e, 0x3d, 0x40, 0xb4, 0x20, 0x61, 0x3b, 0xc5, 0x70,
  589. 0x0f, 0x80, 0xcb, 0x94, 0x21, 0x1a, 0x15, 0x82, 0x4a, 0xaf, 0xbd, 0xfe, 0x68, 0x63, 0x76, 0x67,
  590. 0xed, 0x81, 0xa9, 0xaf, 0x44, 0xca, 0x12, 0xeb, 0x7a, 0x6c, 0xf4, 0x67, 0x82, 0x4a, 0x78, 0x0c,
  591. 0x16, 0xad, 0x39, 0xe3, 0x17, 0x29, 0x25, 0x96, 0xb1, 0x30, 0x01, 0x63, 0xde, 0xd8, 0x3e, 0x18,
  592. 0x97, 0x21, 0xf5, 0xc0, 0xb2, 0x12, 0x28, 0xfe, 0x39, 0x65, 0x89, 0xa6, 0x44, 0x8a, 0x64, 0x39,
  593. 0x45, 0x8a, 0x78, 0x4f, 0xcc, 0x36, 0xc6, 0xd3, 0x96, 0x6a, 0xeb, 0x99, 0xa0, 0xa7, 0x95, 0x11,
  594. 0xc6, 0x60, 0xd9, 0xbc, 0xfd, 0x7b, 0x8d, 0x23, 0x3d, 0x60, 0xf2, 0xeb, 0xf8, 0xa3, 0x1a, 0xd9,
  595. 0xb6, 0x8e, 0xff, 0xde, 0x18, 0x7b, 0xb5, 0x2f, 0x5c, 0x2a, 0x04, 0xbd, 0xf7, 0x4c, 0xc2, 0x77,
  596. 0x60, 0x16, 0xa7, 0x32, 0xa7, 0xa8, 0xd4, 0x59, 0x7b, 0x53, 0x13, 0x24, 0x0b, 0x2a, 0xc3, 0x99,
  597. 0xa0, 0xf0, 0x00, 0x4c, 0xe9, 0x56, 0xf3, 0x3e, 0x5d, 0x6f, 0x6d, 0xcc, 0xed, 0xbc, 0x1e, 0x99,
  598. 0x92, 0xe9, 0x1f, 0x3f, 0xc0, 0xa7, 0x65, 0x4e, 0x0e, 0x59, 0x91, 0x55, 0xc3, 0xd0, 0xb8, 0xe1,
  599. 0x09, 0x58, 0x42, 0x18, 0x13, 0x1c, 0x5d, 0x94, 0x91, 0xb5, 0x45, 0x08, 0x4b, 0x6f, 0xc9, 0x24,
  600. 0xb3, 0xf2, 0x20, 0x99, 0x7d, 0xce, 0xa9, 0x4d, 0x65, 0xc1, 0xd8, 0xf6, 0xcb, 0x23, 0xa3, 0x08,
  601. 0xb0, 0x84, 0x3f, 0x80, 0x45, 0xdb, 0xd1, 0x51, 0x2e, 0xc8, 0x25, 0x11, 0x84, 0xc5, 0xc4, 0x7b,
  602. 0x3a, 0x51, 0x76, 0x07, 0xc6, 0x67, 0xb2, 0xb3, 0xc3, 0x70, 0xc1, 0xa2, 0x7a, 0x8e, 0x04, 0x07,
  603. 0x60, 0xfe, 0xee, 0x89, 0x94, 0xde, 0x8a, 0x79, 0x1b, 0x5f, 0x35, 0xbd, 0x8d, 0x33, 0x41, 0xdf,
  604. 0x3b, 0x57, 0x38, 0x57, 0xdc, 0x9e, 0x4a, 0xf8, 0x1a, 0x4c, 0x31, 0x94, 0x11, 0xef, 0xd9, 0x04,
  605. 0xf5, 0x37, 0x4a, 0xf8, 0x7b, 0x0b, 0xbc, 0xb8, 0x77, 0x1e, 0xeb, 0x0b, 0xac, 0x3a, 0x91, 0xde,
  606. 0xaa, 0xd9, 0xf6, 0xc7, 0x86, 0x6d, 0xf7, 0x0d, 0xe4, 0x83, 0x65, 0x84, 0x15, 0xa2, 0x6f, 0x7e,
  607. 0x4d, 0x2d, 0xc6, 0xac, 0x87, 0xab, 0x72, 0xf4, 0x22, 0x3c, 0x04, 0x33, 0x8a, 0x5c, 0xab, 0x08,
  608. 0x61, 0x6f, 0xda, 0x6c, 0x6b, 0xb3, 0xa9, 0x46, 0xa7, 0xe4, 0x5a, 0x05, 0xf8, 0x84, 0x5d, 0xf2,
  609. 0xe3, 0x4f, 0xc2, 0x69, 0x65, 0x66, 0xf0, 0x47, 0xb0, 0x40, 0xae, 0x73, 0xc4, 0x74, 0x7f, 0xd4,
  610. 0xbc, 0x19, 0xc3, 0xdb, 0x69, 0xe2, 0x1d, 0x56, 0xbe, 0x3b, 0xdc, 0x39, 0x72, 0xe7, 0x29, 0x0c,
  611. 0xc1, 0x93, 0x18, 0x51, 0x1a, 0x71, 0x46, 0x4b, 0xcd, 0xfe, 0xdc, 0xb0, 0xfd, 0xc6, 0xd3, 0x85,
  612. 0x28, 0xfd, 0x9e, 0xd1, 0xd2, 0x71, 0x41, 0xec, 0x9e, 0xc0, 0x5f, 0xc1, 0x8a, 0xcb, 0x19, 0x97,
  613. 0x0c, 0x65, 0x69, 0x1c, 0x49, 0x82, 0x44, 0x7c, 0xa5, 0x23, 0xcc, 0x99, 0x08, 0x7b, 0x93, 0x66,
  614. 0x7f, 0x60, 0x01, 0x7d, 0xe3, 0x77, 0xe1, 0x9e, 0x91, 0xff, 0x5f, 0x86, 0xc7, 0xe0, 0xb3, 0x2b,
  615. 0xae, 0x08, 0xd5, 0x91, 0xe6, 0x4d, 0xa4, 0xad, 0xa6, 0x48, 0xc7, 0x5a, 0xef, 0xc8, 0x33, 0x57,
  616. 0x76, 0x0a, 0x11, 0x58, 0x94, 0x57, 0x3c, 0xcf, 0xf5, 0x95, 0x26, 0x33, 0x24, 0x4c, 0xe9, 0x17,
  617. 0x0d, 0x72, 0xb7, 0x09, 0xd9, 0xaf, 0x8c, 0x7d, 0xed, 0x73, 0xe8, 0x79, 0x79, 0xf7, 0x31, 0x4c,
  618. 0xc0, 0x92, 0x0b, 0x91, 0x0b, 0x8e, 0x8b, 0xd8, 0x04, 0x81, 0x26, 0xc8, 0x9b, 0x49, 0x83, 0xf4,
  619. 0xac, 0xd3, 0x85, 0x71, 0x69, 0xbb, 0x05, 0x5d, 0x95, 0x24, 0x43, 0xa9, 0xa9, 0xca, 0xf2, 0x64,
  620. 0x55, 0x39, 0xd2, 0xfa, 0x9b, 0xaa, 0x24, 0x76, 0xaa, 0x49, 0x69, 0x86, 0x12, 0x7d, 0x45, 0x79,
  621. 0x5f, 0x4c, 0x46, 0x3a, 0xd1, 0xfa, 0x1b, 0x52, 0x6a, 0xa7, 0x9a, 0x34, 0x4c, 0x31, 0xe1, 0x9a,
  622. 0xe4, 0x4d, 0x46, 0x1a, 0x68, 0xfd, 0x0d, 0x69, 0x68, 0xa7, 0xf0, 0x27, 0xf0, 0x54, 0x10, 0x99,
  623. 0x73, 0x26, 0xd3, 0x21, 0xb9, 0xd5, 0x69, 0xcf, 0x0d, 0xf5, 0x6d, 0x13, 0x35, 0x74, 0xde, 0x7b,
  624. 0x4d, 0x06, 0xc5, 0x83, 0x15, 0xf8, 0x5b, 0x0b, 0xac, 0x51, 0x92, 0xa0, 0xb8, 0x8c, 0x6e, 0xc5,
  625. 0xac, 0xff, 0x44, 0x10, 0xf6, 0xd6, 0x4c, 0xd0, 0x77, 0x4d, 0x41, 0xbf, 0x33, 0x8c, 0x9b, 0xd0,
  626. 0x07, 0x96, 0xe0, 0x62, 0x3f, 0xa7, 0xa3, 0x04, 0xfb, 0x8f, 0xc1, 0x0c, 0xc2, 0x11, 0x46, 0x0a,
  627. 0xed, 0xff, 0xdb, 0x02, 0xaf, 0x62, 0x9e, 0xf9, 0x8d, 0x1f, 0x75, 0xfb, 0x33, 0x01, 0xee, 0xe9,
  628. 0xeb, 0xb4, 0xd7, 0xfa, 0xf8, 0x6d, 0xa5, 0x4e, 0x38, 0x45, 0x2c, 0xf1, 0xb9, 0x48, 0x3a, 0x09,
  629. 0x61, 0xe6, 0xb2, 0xad, 0x3f, 0x7b, 0xf2, 0x54, 0x8e, 0xf9, 0x9a, 0xdc, 0x73, 0xa3, 0x3f, 0xda,
  630. 0x8f, 0x8e, 0x82, 0xe0, 0xcf, 0xf6, 0x4b, 0xfb, 0x17, 0xe4, 0x07, 0x58, 0xfa, 0xee, 0xdf, 0xc8,
  631. 0x1f, 0x6c, 0xfb, 0xf5, 0xa5, 0x28, 0xff, 0xae, 0x35, 0xe7, 0x01, 0x96, 0xe7, 0x4e, 0x73, 0x3e,
  632. 0xd8, 0x3e, 0x77, 0x9a, 0x7f, 0xda, 0xaf, 0xec, 0x42, 0xb7, 0x1b, 0x60, 0xd9, 0xed, 0x3a, 0x55,
  633. 0xb7, 0x3b, 0xd8, 0xee, 0x76, 0x9d, 0xee, 0x62, 0xda, 0x24, 0xbb, 0xfb, 0x5f, 0x00, 0x00, 0x00,
  634. 0xff, 0xff, 0xa3, 0x26, 0x2f, 0x66, 0xf9, 0x0a, 0x00, 0x00,
  635. }