|
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: google/ads/googleads/v1/resources/ad.proto
-
- package resources // import "google.golang.org/genproto/googleapis/ads/googleads/v1/resources"
-
- import proto "github.com/golang/protobuf/proto"
- import fmt "fmt"
- import math "math"
- import wrappers "github.com/golang/protobuf/ptypes/wrappers"
- import common "google.golang.org/genproto/googleapis/ads/googleads/v1/common"
- import enums "google.golang.org/genproto/googleapis/ads/googleads/v1/enums"
- import _ "google.golang.org/genproto/googleapis/api/annotations"
-
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
-
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
-
- // An ad.
- type Ad struct {
- // The ID of the ad.
- Id *wrappers.Int64Value `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
- // The list of possible final URLs after all cross-domain redirects for the
- // ad.
- FinalUrls []*wrappers.StringValue `protobuf:"bytes,2,rep,name=final_urls,json=finalUrls,proto3" json:"final_urls,omitempty"`
- // The list of possible final mobile URLs after all cross-domain redirects
- // for the ad.
- FinalMobileUrls []*wrappers.StringValue `protobuf:"bytes,16,rep,name=final_mobile_urls,json=finalMobileUrls,proto3" json:"final_mobile_urls,omitempty"`
- // The URL template for constructing a tracking URL.
- TrackingUrlTemplate *wrappers.StringValue `protobuf:"bytes,12,opt,name=tracking_url_template,json=trackingUrlTemplate,proto3" json:"tracking_url_template,omitempty"`
- // The list of mappings that can be used to substitute custom parameter tags
- // in a `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
- UrlCustomParameters []*common.CustomParameter `protobuf:"bytes,10,rep,name=url_custom_parameters,json=urlCustomParameters,proto3" json:"url_custom_parameters,omitempty"`
- // The URL that appears in the ad description for some ad formats.
- DisplayUrl *wrappers.StringValue `protobuf:"bytes,4,opt,name=display_url,json=displayUrl,proto3" json:"display_url,omitempty"`
- // The type of ad.
- Type enums.AdTypeEnum_AdType `protobuf:"varint,5,opt,name=type,proto3,enum=google.ads.googleads.v1.enums.AdTypeEnum_AdType" json:"type,omitempty"`
- // Indicates if this ad was automatically added by Google Ads and not by a
- // user. For example, this could happen when ads are automatically created as
- // suggestions for new ads based on knowledge of how existing ads are
- // performing.
- AddedByGoogleAds *wrappers.BoolValue `protobuf:"bytes,19,opt,name=added_by_google_ads,json=addedByGoogleAds,proto3" json:"added_by_google_ads,omitempty"`
- // The device preference for the ad. You can only specify a preference for
- // mobile devices. When this preference is set the ad will be preferred over
- // other ads when being displayed on a mobile device. The ad can still be
- // displayed on other device types, e.g. if no other ads are available.
- // If unspecified (no device preference), all devices are targeted.
- // This is only supported by some ad types.
- 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"`
- // Additional URLs for the ad that are tagged with a unique identifier that
- // can be referenced from other fields in the ad.
- UrlCollections []*common.UrlCollection `protobuf:"bytes,26,rep,name=url_collections,json=urlCollections,proto3" json:"url_collections,omitempty"`
- // The name of the ad. This is only used to be able to identify the ad. It
- // does not need to be unique and does not affect the served ad.
- Name *wrappers.StringValue `protobuf:"bytes,23,opt,name=name,proto3" json:"name,omitempty"`
- // If this ad is system managed, then this field will indicate the source.
- // This field is read-only.
- 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"`
- // Details pertinent to the ad type. Exactly one value must be set.
- //
- // Types that are valid to be assigned to AdData:
- // *Ad_TextAd
- // *Ad_ExpandedTextAd
- // *Ad_CallOnlyAd
- // *Ad_ExpandedDynamicSearchAd
- // *Ad_HotelAd
- // *Ad_ShoppingSmartAd
- // *Ad_ShoppingProductAd
- // *Ad_GmailAd
- // *Ad_ImageAd
- // *Ad_VideoAd
- // *Ad_ResponsiveSearchAd
- // *Ad_LegacyResponsiveDisplayAd
- AdData isAd_AdData `protobuf_oneof:"ad_data"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
-
- func (m *Ad) Reset() { *m = Ad{} }
- func (m *Ad) String() string { return proto.CompactTextString(m) }
- func (*Ad) ProtoMessage() {}
- func (*Ad) Descriptor() ([]byte, []int) {
- return fileDescriptor_ad_aedd3fed701e067d, []int{0}
- }
- func (m *Ad) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_Ad.Unmarshal(m, b)
- }
- func (m *Ad) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_Ad.Marshal(b, m, deterministic)
- }
- func (dst *Ad) XXX_Merge(src proto.Message) {
- xxx_messageInfo_Ad.Merge(dst, src)
- }
- func (m *Ad) XXX_Size() int {
- return xxx_messageInfo_Ad.Size(m)
- }
- func (m *Ad) XXX_DiscardUnknown() {
- xxx_messageInfo_Ad.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_Ad proto.InternalMessageInfo
-
- func (m *Ad) GetId() *wrappers.Int64Value {
- if m != nil {
- return m.Id
- }
- return nil
- }
-
- func (m *Ad) GetFinalUrls() []*wrappers.StringValue {
- if m != nil {
- return m.FinalUrls
- }
- return nil
- }
-
- func (m *Ad) GetFinalMobileUrls() []*wrappers.StringValue {
- if m != nil {
- return m.FinalMobileUrls
- }
- return nil
- }
-
- func (m *Ad) GetTrackingUrlTemplate() *wrappers.StringValue {
- if m != nil {
- return m.TrackingUrlTemplate
- }
- return nil
- }
-
- func (m *Ad) GetUrlCustomParameters() []*common.CustomParameter {
- if m != nil {
- return m.UrlCustomParameters
- }
- return nil
- }
-
- func (m *Ad) GetDisplayUrl() *wrappers.StringValue {
- if m != nil {
- return m.DisplayUrl
- }
- return nil
- }
-
- func (m *Ad) GetType() enums.AdTypeEnum_AdType {
- if m != nil {
- return m.Type
- }
- return enums.AdTypeEnum_UNSPECIFIED
- }
-
- func (m *Ad) GetAddedByGoogleAds() *wrappers.BoolValue {
- if m != nil {
- return m.AddedByGoogleAds
- }
- return nil
- }
-
- func (m *Ad) GetDevicePreference() enums.DeviceEnum_Device {
- if m != nil {
- return m.DevicePreference
- }
- return enums.DeviceEnum_UNSPECIFIED
- }
-
- func (m *Ad) GetUrlCollections() []*common.UrlCollection {
- if m != nil {
- return m.UrlCollections
- }
- return nil
- }
-
- func (m *Ad) GetName() *wrappers.StringValue {
- if m != nil {
- return m.Name
- }
- return nil
- }
-
- func (m *Ad) GetSystemManagedResourceSource() enums.SystemManagedResourceSourceEnum_SystemManagedResourceSource {
- if m != nil {
- return m.SystemManagedResourceSource
- }
- return enums.SystemManagedResourceSourceEnum_UNSPECIFIED
- }
-
- type isAd_AdData interface {
- isAd_AdData()
- }
-
- type Ad_TextAd struct {
- TextAd *common.TextAdInfo `protobuf:"bytes,6,opt,name=text_ad,json=textAd,proto3,oneof"`
- }
-
- type Ad_ExpandedTextAd struct {
- ExpandedTextAd *common.ExpandedTextAdInfo `protobuf:"bytes,7,opt,name=expanded_text_ad,json=expandedTextAd,proto3,oneof"`
- }
-
- type Ad_CallOnlyAd struct {
- CallOnlyAd *common.CallOnlyAdInfo `protobuf:"bytes,13,opt,name=call_only_ad,json=callOnlyAd,proto3,oneof"`
- }
-
- type Ad_ExpandedDynamicSearchAd struct {
- ExpandedDynamicSearchAd *common.ExpandedDynamicSearchAdInfo `protobuf:"bytes,14,opt,name=expanded_dynamic_search_ad,json=expandedDynamicSearchAd,proto3,oneof"`
- }
-
- type Ad_HotelAd struct {
- HotelAd *common.HotelAdInfo `protobuf:"bytes,15,opt,name=hotel_ad,json=hotelAd,proto3,oneof"`
- }
-
- type Ad_ShoppingSmartAd struct {
- ShoppingSmartAd *common.ShoppingSmartAdInfo `protobuf:"bytes,17,opt,name=shopping_smart_ad,json=shoppingSmartAd,proto3,oneof"`
- }
-
- type Ad_ShoppingProductAd struct {
- ShoppingProductAd *common.ShoppingProductAdInfo `protobuf:"bytes,18,opt,name=shopping_product_ad,json=shoppingProductAd,proto3,oneof"`
- }
-
- type Ad_GmailAd struct {
- GmailAd *common.GmailAdInfo `protobuf:"bytes,21,opt,name=gmail_ad,json=gmailAd,proto3,oneof"`
- }
-
- type Ad_ImageAd struct {
- ImageAd *common.ImageAdInfo `protobuf:"bytes,22,opt,name=image_ad,json=imageAd,proto3,oneof"`
- }
-
- type Ad_VideoAd struct {
- VideoAd *common.VideoAdInfo `protobuf:"bytes,24,opt,name=video_ad,json=videoAd,proto3,oneof"`
- }
-
- type Ad_ResponsiveSearchAd struct {
- ResponsiveSearchAd *common.ResponsiveSearchAdInfo `protobuf:"bytes,25,opt,name=responsive_search_ad,json=responsiveSearchAd,proto3,oneof"`
- }
-
- type Ad_LegacyResponsiveDisplayAd struct {
- LegacyResponsiveDisplayAd *common.LegacyResponsiveDisplayAdInfo `protobuf:"bytes,28,opt,name=legacy_responsive_display_ad,json=legacyResponsiveDisplayAd,proto3,oneof"`
- }
-
- func (*Ad_TextAd) isAd_AdData() {}
-
- func (*Ad_ExpandedTextAd) isAd_AdData() {}
-
- func (*Ad_CallOnlyAd) isAd_AdData() {}
-
- func (*Ad_ExpandedDynamicSearchAd) isAd_AdData() {}
-
- func (*Ad_HotelAd) isAd_AdData() {}
-
- func (*Ad_ShoppingSmartAd) isAd_AdData() {}
-
- func (*Ad_ShoppingProductAd) isAd_AdData() {}
-
- func (*Ad_GmailAd) isAd_AdData() {}
-
- func (*Ad_ImageAd) isAd_AdData() {}
-
- func (*Ad_VideoAd) isAd_AdData() {}
-
- func (*Ad_ResponsiveSearchAd) isAd_AdData() {}
-
- func (*Ad_LegacyResponsiveDisplayAd) isAd_AdData() {}
-
- func (m *Ad) GetAdData() isAd_AdData {
- if m != nil {
- return m.AdData
- }
- return nil
- }
-
- func (m *Ad) GetTextAd() *common.TextAdInfo {
- if x, ok := m.GetAdData().(*Ad_TextAd); ok {
- return x.TextAd
- }
- return nil
- }
-
- func (m *Ad) GetExpandedTextAd() *common.ExpandedTextAdInfo {
- if x, ok := m.GetAdData().(*Ad_ExpandedTextAd); ok {
- return x.ExpandedTextAd
- }
- return nil
- }
-
- func (m *Ad) GetCallOnlyAd() *common.CallOnlyAdInfo {
- if x, ok := m.GetAdData().(*Ad_CallOnlyAd); ok {
- return x.CallOnlyAd
- }
- return nil
- }
-
- func (m *Ad) GetExpandedDynamicSearchAd() *common.ExpandedDynamicSearchAdInfo {
- if x, ok := m.GetAdData().(*Ad_ExpandedDynamicSearchAd); ok {
- return x.ExpandedDynamicSearchAd
- }
- return nil
- }
-
- func (m *Ad) GetHotelAd() *common.HotelAdInfo {
- if x, ok := m.GetAdData().(*Ad_HotelAd); ok {
- return x.HotelAd
- }
- return nil
- }
-
- func (m *Ad) GetShoppingSmartAd() *common.ShoppingSmartAdInfo {
- if x, ok := m.GetAdData().(*Ad_ShoppingSmartAd); ok {
- return x.ShoppingSmartAd
- }
- return nil
- }
-
- func (m *Ad) GetShoppingProductAd() *common.ShoppingProductAdInfo {
- if x, ok := m.GetAdData().(*Ad_ShoppingProductAd); ok {
- return x.ShoppingProductAd
- }
- return nil
- }
-
- func (m *Ad) GetGmailAd() *common.GmailAdInfo {
- if x, ok := m.GetAdData().(*Ad_GmailAd); ok {
- return x.GmailAd
- }
- return nil
- }
-
- func (m *Ad) GetImageAd() *common.ImageAdInfo {
- if x, ok := m.GetAdData().(*Ad_ImageAd); ok {
- return x.ImageAd
- }
- return nil
- }
-
- func (m *Ad) GetVideoAd() *common.VideoAdInfo {
- if x, ok := m.GetAdData().(*Ad_VideoAd); ok {
- return x.VideoAd
- }
- return nil
- }
-
- func (m *Ad) GetResponsiveSearchAd() *common.ResponsiveSearchAdInfo {
- if x, ok := m.GetAdData().(*Ad_ResponsiveSearchAd); ok {
- return x.ResponsiveSearchAd
- }
- return nil
- }
-
- func (m *Ad) GetLegacyResponsiveDisplayAd() *common.LegacyResponsiveDisplayAdInfo {
- if x, ok := m.GetAdData().(*Ad_LegacyResponsiveDisplayAd); ok {
- return x.LegacyResponsiveDisplayAd
- }
- return nil
- }
-
- // XXX_OneofFuncs is for the internal use of the proto package.
- 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{}) {
- return _Ad_OneofMarshaler, _Ad_OneofUnmarshaler, _Ad_OneofSizer, []interface{}{
- (*Ad_TextAd)(nil),
- (*Ad_ExpandedTextAd)(nil),
- (*Ad_CallOnlyAd)(nil),
- (*Ad_ExpandedDynamicSearchAd)(nil),
- (*Ad_HotelAd)(nil),
- (*Ad_ShoppingSmartAd)(nil),
- (*Ad_ShoppingProductAd)(nil),
- (*Ad_GmailAd)(nil),
- (*Ad_ImageAd)(nil),
- (*Ad_VideoAd)(nil),
- (*Ad_ResponsiveSearchAd)(nil),
- (*Ad_LegacyResponsiveDisplayAd)(nil),
- }
- }
-
- func _Ad_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
- m := msg.(*Ad)
- // ad_data
- switch x := m.AdData.(type) {
- case *Ad_TextAd:
- b.EncodeVarint(6<<3 | proto.WireBytes)
- if err := b.EncodeMessage(x.TextAd); err != nil {
- return err
- }
- case *Ad_ExpandedTextAd:
- b.EncodeVarint(7<<3 | proto.WireBytes)
- if err := b.EncodeMessage(x.ExpandedTextAd); err != nil {
- return err
- }
- case *Ad_CallOnlyAd:
- b.EncodeVarint(13<<3 | proto.WireBytes)
- if err := b.EncodeMessage(x.CallOnlyAd); err != nil {
- return err
- }
- case *Ad_ExpandedDynamicSearchAd:
- b.EncodeVarint(14<<3 | proto.WireBytes)
- if err := b.EncodeMessage(x.ExpandedDynamicSearchAd); err != nil {
- return err
- }
- case *Ad_HotelAd:
- b.EncodeVarint(15<<3 | proto.WireBytes)
- if err := b.EncodeMessage(x.HotelAd); err != nil {
- return err
- }
- case *Ad_ShoppingSmartAd:
- b.EncodeVarint(17<<3 | proto.WireBytes)
- if err := b.EncodeMessage(x.ShoppingSmartAd); err != nil {
- return err
- }
- case *Ad_ShoppingProductAd:
- b.EncodeVarint(18<<3 | proto.WireBytes)
- if err := b.EncodeMessage(x.ShoppingProductAd); err != nil {
- return err
- }
- case *Ad_GmailAd:
- b.EncodeVarint(21<<3 | proto.WireBytes)
- if err := b.EncodeMessage(x.GmailAd); err != nil {
- return err
- }
- case *Ad_ImageAd:
- b.EncodeVarint(22<<3 | proto.WireBytes)
- if err := b.EncodeMessage(x.ImageAd); err != nil {
- return err
- }
- case *Ad_VideoAd:
- b.EncodeVarint(24<<3 | proto.WireBytes)
- if err := b.EncodeMessage(x.VideoAd); err != nil {
- return err
- }
- case *Ad_ResponsiveSearchAd:
- b.EncodeVarint(25<<3 | proto.WireBytes)
- if err := b.EncodeMessage(x.ResponsiveSearchAd); err != nil {
- return err
- }
- case *Ad_LegacyResponsiveDisplayAd:
- b.EncodeVarint(28<<3 | proto.WireBytes)
- if err := b.EncodeMessage(x.LegacyResponsiveDisplayAd); err != nil {
- return err
- }
- case nil:
- default:
- return fmt.Errorf("Ad.AdData has unexpected type %T", x)
- }
- return nil
- }
-
- func _Ad_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
- m := msg.(*Ad)
- switch tag {
- case 6: // ad_data.text_ad
- if wire != proto.WireBytes {
- return true, proto.ErrInternalBadWireType
- }
- msg := new(common.TextAdInfo)
- err := b.DecodeMessage(msg)
- m.AdData = &Ad_TextAd{msg}
- return true, err
- case 7: // ad_data.expanded_text_ad
- if wire != proto.WireBytes {
- return true, proto.ErrInternalBadWireType
- }
- msg := new(common.ExpandedTextAdInfo)
- err := b.DecodeMessage(msg)
- m.AdData = &Ad_ExpandedTextAd{msg}
- return true, err
- case 13: // ad_data.call_only_ad
- if wire != proto.WireBytes {
- return true, proto.ErrInternalBadWireType
- }
- msg := new(common.CallOnlyAdInfo)
- err := b.DecodeMessage(msg)
- m.AdData = &Ad_CallOnlyAd{msg}
- return true, err
- case 14: // ad_data.expanded_dynamic_search_ad
- if wire != proto.WireBytes {
- return true, proto.ErrInternalBadWireType
- }
- msg := new(common.ExpandedDynamicSearchAdInfo)
- err := b.DecodeMessage(msg)
- m.AdData = &Ad_ExpandedDynamicSearchAd{msg}
- return true, err
- case 15: // ad_data.hotel_ad
- if wire != proto.WireBytes {
- return true, proto.ErrInternalBadWireType
- }
- msg := new(common.HotelAdInfo)
- err := b.DecodeMessage(msg)
- m.AdData = &Ad_HotelAd{msg}
- return true, err
- case 17: // ad_data.shopping_smart_ad
- if wire != proto.WireBytes {
- return true, proto.ErrInternalBadWireType
- }
- msg := new(common.ShoppingSmartAdInfo)
- err := b.DecodeMessage(msg)
- m.AdData = &Ad_ShoppingSmartAd{msg}
- return true, err
- case 18: // ad_data.shopping_product_ad
- if wire != proto.WireBytes {
- return true, proto.ErrInternalBadWireType
- }
- msg := new(common.ShoppingProductAdInfo)
- err := b.DecodeMessage(msg)
- m.AdData = &Ad_ShoppingProductAd{msg}
- return true, err
- case 21: // ad_data.gmail_ad
- if wire != proto.WireBytes {
- return true, proto.ErrInternalBadWireType
- }
- msg := new(common.GmailAdInfo)
- err := b.DecodeMessage(msg)
- m.AdData = &Ad_GmailAd{msg}
- return true, err
- case 22: // ad_data.image_ad
- if wire != proto.WireBytes {
- return true, proto.ErrInternalBadWireType
- }
- msg := new(common.ImageAdInfo)
- err := b.DecodeMessage(msg)
- m.AdData = &Ad_ImageAd{msg}
- return true, err
- case 24: // ad_data.video_ad
- if wire != proto.WireBytes {
- return true, proto.ErrInternalBadWireType
- }
- msg := new(common.VideoAdInfo)
- err := b.DecodeMessage(msg)
- m.AdData = &Ad_VideoAd{msg}
- return true, err
- case 25: // ad_data.responsive_search_ad
- if wire != proto.WireBytes {
- return true, proto.ErrInternalBadWireType
- }
- msg := new(common.ResponsiveSearchAdInfo)
- err := b.DecodeMessage(msg)
- m.AdData = &Ad_ResponsiveSearchAd{msg}
- return true, err
- case 28: // ad_data.legacy_responsive_display_ad
- if wire != proto.WireBytes {
- return true, proto.ErrInternalBadWireType
- }
- msg := new(common.LegacyResponsiveDisplayAdInfo)
- err := b.DecodeMessage(msg)
- m.AdData = &Ad_LegacyResponsiveDisplayAd{msg}
- return true, err
- default:
- return false, nil
- }
- }
-
- func _Ad_OneofSizer(msg proto.Message) (n int) {
- m := msg.(*Ad)
- // ad_data
- switch x := m.AdData.(type) {
- case *Ad_TextAd:
- s := proto.Size(x.TextAd)
- n += 1 // tag and wire
- n += proto.SizeVarint(uint64(s))
- n += s
- case *Ad_ExpandedTextAd:
- s := proto.Size(x.ExpandedTextAd)
- n += 1 // tag and wire
- n += proto.SizeVarint(uint64(s))
- n += s
- case *Ad_CallOnlyAd:
- s := proto.Size(x.CallOnlyAd)
- n += 1 // tag and wire
- n += proto.SizeVarint(uint64(s))
- n += s
- case *Ad_ExpandedDynamicSearchAd:
- s := proto.Size(x.ExpandedDynamicSearchAd)
- n += 1 // tag and wire
- n += proto.SizeVarint(uint64(s))
- n += s
- case *Ad_HotelAd:
- s := proto.Size(x.HotelAd)
- n += 1 // tag and wire
- n += proto.SizeVarint(uint64(s))
- n += s
- case *Ad_ShoppingSmartAd:
- s := proto.Size(x.ShoppingSmartAd)
- n += 2 // tag and wire
- n += proto.SizeVarint(uint64(s))
- n += s
- case *Ad_ShoppingProductAd:
- s := proto.Size(x.ShoppingProductAd)
- n += 2 // tag and wire
- n += proto.SizeVarint(uint64(s))
- n += s
- case *Ad_GmailAd:
- s := proto.Size(x.GmailAd)
- n += 2 // tag and wire
- n += proto.SizeVarint(uint64(s))
- n += s
- case *Ad_ImageAd:
- s := proto.Size(x.ImageAd)
- n += 2 // tag and wire
- n += proto.SizeVarint(uint64(s))
- n += s
- case *Ad_VideoAd:
- s := proto.Size(x.VideoAd)
- n += 2 // tag and wire
- n += proto.SizeVarint(uint64(s))
- n += s
- case *Ad_ResponsiveSearchAd:
- s := proto.Size(x.ResponsiveSearchAd)
- n += 2 // tag and wire
- n += proto.SizeVarint(uint64(s))
- n += s
- case *Ad_LegacyResponsiveDisplayAd:
- s := proto.Size(x.LegacyResponsiveDisplayAd)
- n += 2 // tag and wire
- n += proto.SizeVarint(uint64(s))
- n += s
- case nil:
- default:
- panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
- }
- return n
- }
-
- func init() {
- proto.RegisterType((*Ad)(nil), "google.ads.googleads.v1.resources.Ad")
- }
-
- func init() {
- proto.RegisterFile("google/ads/googleads/v1/resources/ad.proto", fileDescriptor_ad_aedd3fed701e067d)
- }
-
- var fileDescriptor_ad_aedd3fed701e067d = []byte{
- // 1018 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x96, 0xdd, 0x4e, 0xe4, 0x36,
- 0x14, 0xc7, 0x3b, 0xb3, 0x14, 0xba, 0x66, 0xcb, 0x87, 0x59, 0xba, 0x59, 0x40, 0x2b, 0xb6, 0xd2,
- 0x4a, 0x08, 0xd4, 0xcc, 0x02, 0xdd, 0xbd, 0x18, 0xb4, 0x52, 0xc3, 0x82, 0x80, 0xaa, 0xab, 0x8e,
- 0x32, 0x30, 0x17, 0x2b, 0xda, 0xc8, 0xc4, 0x26, 0xa4, 0x75, 0xec, 0xc8, 0x76, 0xa6, 0xa4, 0x57,
- 0x7d, 0x93, 0x4a, 0xbd, 0xec, 0x4d, 0xdf, 0xa3, 0x8f, 0xd2, 0xeb, 0x3e, 0x40, 0x65, 0x3b, 0x31,
- 0x5f, 0x9d, 0xc9, 0xdc, 0x8c, 0xec, 0xf8, 0xff, 0xff, 0x9d, 0xe3, 0x93, 0x63, 0x4f, 0xc0, 0x66,
- 0xc2, 0x79, 0x42, 0x49, 0x07, 0x61, 0xd9, 0xb1, 0x43, 0x3d, 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