// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/resources/campaign_criterion.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 // A campaign criterion. type CampaignCriterion struct { // The resource name of the campaign criterion. // Campaign criterion resource names have the form: // // `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}` ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` // The campaign to which the criterion belongs. Campaign *wrappers.StringValue `protobuf:"bytes,4,opt,name=campaign,proto3" json:"campaign,omitempty"` // The ID of the criterion. // // This field is ignored during mutate. CriterionId *wrappers.Int64Value `protobuf:"bytes,5,opt,name=criterion_id,json=criterionId,proto3" json:"criterion_id,omitempty"` // The modifier for the bids when the criterion matches. The modifier must be // in the range: 0.1 - 10.0. Most targetable criteria types support modifiers. // Use 0 to opt out of a Device type. BidModifier *wrappers.FloatValue `protobuf:"bytes,14,opt,name=bid_modifier,json=bidModifier,proto3" json:"bid_modifier,omitempty"` // Whether to target (`false`) or exclude (`true`) the criterion. Negative *wrappers.BoolValue `protobuf:"bytes,7,opt,name=negative,proto3" json:"negative,omitempty"` // The type of the criterion. Type enums.CriterionTypeEnum_CriterionType `protobuf:"varint,6,opt,name=type,proto3,enum=google.ads.googleads.v1.enums.CriterionTypeEnum_CriterionType" json:"type,omitempty"` // The campaign criterion. // // Exactly one must be set. // // Types that are valid to be assigned to Criterion: // *CampaignCriterion_Keyword // *CampaignCriterion_Placement // *CampaignCriterion_MobileAppCategory // *CampaignCriterion_Location // *CampaignCriterion_Device // *CampaignCriterion_AdSchedule // *CampaignCriterion_AgeRange // *CampaignCriterion_Gender // *CampaignCriterion_IncomeRange // *CampaignCriterion_ParentalStatus // *CampaignCriterion_UserList // *CampaignCriterion_YoutubeVideo // *CampaignCriterion_YoutubeChannel // *CampaignCriterion_Proximity // *CampaignCriterion_Topic // *CampaignCriterion_ListingScope // *CampaignCriterion_Language // *CampaignCriterion_IpBlock // *CampaignCriterion_ContentLabel // *CampaignCriterion_Carrier // *CampaignCriterion_UserInterest // *CampaignCriterion_Webpage // *CampaignCriterion_OperatingSystemVersion // *CampaignCriterion_MobileDevice Criterion isCampaignCriterion_Criterion `protobuf_oneof:"criterion"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CampaignCriterion) Reset() { *m = CampaignCriterion{} } func (m *CampaignCriterion) String() string { return proto.CompactTextString(m) } func (*CampaignCriterion) ProtoMessage() {} func (*CampaignCriterion) Descriptor() ([]byte, []int) { return fileDescriptor_campaign_criterion_d60516931b349118, []int{0} } func (m *CampaignCriterion) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CampaignCriterion.Unmarshal(m, b) } func (m *CampaignCriterion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CampaignCriterion.Marshal(b, m, deterministic) } func (dst *CampaignCriterion) XXX_Merge(src proto.Message) { xxx_messageInfo_CampaignCriterion.Merge(dst, src) } func (m *CampaignCriterion) XXX_Size() int { return xxx_messageInfo_CampaignCriterion.Size(m) } func (m *CampaignCriterion) XXX_DiscardUnknown() { xxx_messageInfo_CampaignCriterion.DiscardUnknown(m) } var xxx_messageInfo_CampaignCriterion proto.InternalMessageInfo func (m *CampaignCriterion) GetResourceName() string { if m != nil { return m.ResourceName } return "" } func (m *CampaignCriterion) GetCampaign() *wrappers.StringValue { if m != nil { return m.Campaign } return nil } func (m *CampaignCriterion) GetCriterionId() *wrappers.Int64Value { if m != nil { return m.CriterionId } return nil } func (m *CampaignCriterion) GetBidModifier() *wrappers.FloatValue { if m != nil { return m.BidModifier } return nil } func (m *CampaignCriterion) GetNegative() *wrappers.BoolValue { if m != nil { return m.Negative } return nil } func (m *CampaignCriterion) GetType() enums.CriterionTypeEnum_CriterionType { if m != nil { return m.Type } return enums.CriterionTypeEnum_UNSPECIFIED } type isCampaignCriterion_Criterion interface { isCampaignCriterion_Criterion() } type CampaignCriterion_Keyword struct { Keyword *common.KeywordInfo `protobuf:"bytes,8,opt,name=keyword,proto3,oneof"` } type CampaignCriterion_Placement struct { Placement *common.PlacementInfo `protobuf:"bytes,9,opt,name=placement,proto3,oneof"` } type CampaignCriterion_MobileAppCategory struct { MobileAppCategory *common.MobileAppCategoryInfo `protobuf:"bytes,10,opt,name=mobile_app_category,json=mobileAppCategory,proto3,oneof"` } type CampaignCriterion_Location struct { Location *common.LocationInfo `protobuf:"bytes,12,opt,name=location,proto3,oneof"` } type CampaignCriterion_Device struct { Device *common.DeviceInfo `protobuf:"bytes,13,opt,name=device,proto3,oneof"` } type CampaignCriterion_AdSchedule struct { AdSchedule *common.AdScheduleInfo `protobuf:"bytes,15,opt,name=ad_schedule,json=adSchedule,proto3,oneof"` } type CampaignCriterion_AgeRange struct { AgeRange *common.AgeRangeInfo `protobuf:"bytes,16,opt,name=age_range,json=ageRange,proto3,oneof"` } type CampaignCriterion_Gender struct { Gender *common.GenderInfo `protobuf:"bytes,17,opt,name=gender,proto3,oneof"` } type CampaignCriterion_IncomeRange struct { IncomeRange *common.IncomeRangeInfo `protobuf:"bytes,18,opt,name=income_range,json=incomeRange,proto3,oneof"` } type CampaignCriterion_ParentalStatus struct { ParentalStatus *common.ParentalStatusInfo `protobuf:"bytes,19,opt,name=parental_status,json=parentalStatus,proto3,oneof"` } type CampaignCriterion_UserList struct { UserList *common.UserListInfo `protobuf:"bytes,22,opt,name=user_list,json=userList,proto3,oneof"` } type CampaignCriterion_YoutubeVideo struct { YoutubeVideo *common.YouTubeVideoInfo `protobuf:"bytes,20,opt,name=youtube_video,json=youtubeVideo,proto3,oneof"` } type CampaignCriterion_YoutubeChannel struct { YoutubeChannel *common.YouTubeChannelInfo `protobuf:"bytes,21,opt,name=youtube_channel,json=youtubeChannel,proto3,oneof"` } type CampaignCriterion_Proximity struct { Proximity *common.ProximityInfo `protobuf:"bytes,23,opt,name=proximity,proto3,oneof"` } type CampaignCriterion_Topic struct { Topic *common.TopicInfo `protobuf:"bytes,24,opt,name=topic,proto3,oneof"` } type CampaignCriterion_ListingScope struct { ListingScope *common.ListingScopeInfo `protobuf:"bytes,25,opt,name=listing_scope,json=listingScope,proto3,oneof"` } type CampaignCriterion_Language struct { Language *common.LanguageInfo `protobuf:"bytes,26,opt,name=language,proto3,oneof"` } type CampaignCriterion_IpBlock struct { IpBlock *common.IpBlockInfo `protobuf:"bytes,27,opt,name=ip_block,json=ipBlock,proto3,oneof"` } type CampaignCriterion_ContentLabel struct { ContentLabel *common.ContentLabelInfo `protobuf:"bytes,28,opt,name=content_label,json=contentLabel,proto3,oneof"` } type CampaignCriterion_Carrier struct { Carrier *common.CarrierInfo `protobuf:"bytes,29,opt,name=carrier,proto3,oneof"` } type CampaignCriterion_UserInterest struct { UserInterest *common.UserInterestInfo `protobuf:"bytes,30,opt,name=user_interest,json=userInterest,proto3,oneof"` } type CampaignCriterion_Webpage struct { Webpage *common.WebpageInfo `protobuf:"bytes,31,opt,name=webpage,proto3,oneof"` } type CampaignCriterion_OperatingSystemVersion struct { OperatingSystemVersion *common.OperatingSystemVersionInfo `protobuf:"bytes,32,opt,name=operating_system_version,json=operatingSystemVersion,proto3,oneof"` } type CampaignCriterion_MobileDevice struct { MobileDevice *common.MobileDeviceInfo `protobuf:"bytes,33,opt,name=mobile_device,json=mobileDevice,proto3,oneof"` } func (*CampaignCriterion_Keyword) isCampaignCriterion_Criterion() {} func (*CampaignCriterion_Placement) isCampaignCriterion_Criterion() {} func (*CampaignCriterion_MobileAppCategory) isCampaignCriterion_Criterion() {} func (*CampaignCriterion_Location) isCampaignCriterion_Criterion() {} func (*CampaignCriterion_Device) isCampaignCriterion_Criterion() {} func (*CampaignCriterion_AdSchedule) isCampaignCriterion_Criterion() {} func (*CampaignCriterion_AgeRange) isCampaignCriterion_Criterion() {} func (*CampaignCriterion_Gender) isCampaignCriterion_Criterion() {} func (*CampaignCriterion_IncomeRange) isCampaignCriterion_Criterion() {} func (*CampaignCriterion_ParentalStatus) isCampaignCriterion_Criterion() {} func (*CampaignCriterion_UserList) isCampaignCriterion_Criterion() {} func (*CampaignCriterion_YoutubeVideo) isCampaignCriterion_Criterion() {} func (*CampaignCriterion_YoutubeChannel) isCampaignCriterion_Criterion() {} func (*CampaignCriterion_Proximity) isCampaignCriterion_Criterion() {} func (*CampaignCriterion_Topic) isCampaignCriterion_Criterion() {} func (*CampaignCriterion_ListingScope) isCampaignCriterion_Criterion() {} func (*CampaignCriterion_Language) isCampaignCriterion_Criterion() {} func (*CampaignCriterion_IpBlock) isCampaignCriterion_Criterion() {} func (*CampaignCriterion_ContentLabel) isCampaignCriterion_Criterion() {} func (*CampaignCriterion_Carrier) isCampaignCriterion_Criterion() {} func (*CampaignCriterion_UserInterest) isCampaignCriterion_Criterion() {} func (*CampaignCriterion_Webpage) isCampaignCriterion_Criterion() {} func (*CampaignCriterion_OperatingSystemVersion) isCampaignCriterion_Criterion() {} func (*CampaignCriterion_MobileDevice) isCampaignCriterion_Criterion() {} func (m *CampaignCriterion) GetCriterion() isCampaignCriterion_Criterion { if m != nil { return m.Criterion } return nil } func (m *CampaignCriterion) GetKeyword() *common.KeywordInfo { if x, ok := m.GetCriterion().(*CampaignCriterion_Keyword); ok { return x.Keyword } return nil } func (m *CampaignCriterion) GetPlacement() *common.PlacementInfo { if x, ok := m.GetCriterion().(*CampaignCriterion_Placement); ok { return x.Placement } return nil } func (m *CampaignCriterion) GetMobileAppCategory() *common.MobileAppCategoryInfo { if x, ok := m.GetCriterion().(*CampaignCriterion_MobileAppCategory); ok { return x.MobileAppCategory } return nil } func (m *CampaignCriterion) GetLocation() *common.LocationInfo { if x, ok := m.GetCriterion().(*CampaignCriterion_Location); ok { return x.Location } return nil } func (m *CampaignCriterion) GetDevice() *common.DeviceInfo { if x, ok := m.GetCriterion().(*CampaignCriterion_Device); ok { return x.Device } return nil } func (m *CampaignCriterion) GetAdSchedule() *common.AdScheduleInfo { if x, ok := m.GetCriterion().(*CampaignCriterion_AdSchedule); ok { return x.AdSchedule } return nil } func (m *CampaignCriterion) GetAgeRange() *common.AgeRangeInfo { if x, ok := m.GetCriterion().(*CampaignCriterion_AgeRange); ok { return x.AgeRange } return nil } func (m *CampaignCriterion) GetGender() *common.GenderInfo { if x, ok := m.GetCriterion().(*CampaignCriterion_Gender); ok { return x.Gender } return nil } func (m *CampaignCriterion) GetIncomeRange() *common.IncomeRangeInfo { if x, ok := m.GetCriterion().(*CampaignCriterion_IncomeRange); ok { return x.IncomeRange } return nil } func (m *CampaignCriterion) GetParentalStatus() *common.ParentalStatusInfo { if x, ok := m.GetCriterion().(*CampaignCriterion_ParentalStatus); ok { return x.ParentalStatus } return nil } func (m *CampaignCriterion) GetUserList() *common.UserListInfo { if x, ok := m.GetCriterion().(*CampaignCriterion_UserList); ok { return x.UserList } return nil } func (m *CampaignCriterion) GetYoutubeVideo() *common.YouTubeVideoInfo { if x, ok := m.GetCriterion().(*CampaignCriterion_YoutubeVideo); ok { return x.YoutubeVideo } return nil } func (m *CampaignCriterion) GetYoutubeChannel() *common.YouTubeChannelInfo { if x, ok := m.GetCriterion().(*CampaignCriterion_YoutubeChannel); ok { return x.YoutubeChannel } return nil } func (m *CampaignCriterion) GetProximity() *common.ProximityInfo { if x, ok := m.GetCriterion().(*CampaignCriterion_Proximity); ok { return x.Proximity } return nil } func (m *CampaignCriterion) GetTopic() *common.TopicInfo { if x, ok := m.GetCriterion().(*CampaignCriterion_Topic); ok { return x.Topic } return nil } func (m *CampaignCriterion) GetListingScope() *common.ListingScopeInfo { if x, ok := m.GetCriterion().(*CampaignCriterion_ListingScope); ok { return x.ListingScope } return nil } func (m *CampaignCriterion) GetLanguage() *common.LanguageInfo { if x, ok := m.GetCriterion().(*CampaignCriterion_Language); ok { return x.Language } return nil } func (m *CampaignCriterion) GetIpBlock() *common.IpBlockInfo { if x, ok := m.GetCriterion().(*CampaignCriterion_IpBlock); ok { return x.IpBlock } return nil } func (m *CampaignCriterion) GetContentLabel() *common.ContentLabelInfo { if x, ok := m.GetCriterion().(*CampaignCriterion_ContentLabel); ok { return x.ContentLabel } return nil } func (m *CampaignCriterion) GetCarrier() *common.CarrierInfo { if x, ok := m.GetCriterion().(*CampaignCriterion_Carrier); ok { return x.Carrier } return nil } func (m *CampaignCriterion) GetUserInterest() *common.UserInterestInfo { if x, ok := m.GetCriterion().(*CampaignCriterion_UserInterest); ok { return x.UserInterest } return nil } func (m *CampaignCriterion) GetWebpage() *common.WebpageInfo { if x, ok := m.GetCriterion().(*CampaignCriterion_Webpage); ok { return x.Webpage } return nil } func (m *CampaignCriterion) GetOperatingSystemVersion() *common.OperatingSystemVersionInfo { if x, ok := m.GetCriterion().(*CampaignCriterion_OperatingSystemVersion); ok { return x.OperatingSystemVersion } return nil } func (m *CampaignCriterion) GetMobileDevice() *common.MobileDeviceInfo { if x, ok := m.GetCriterion().(*CampaignCriterion_MobileDevice); ok { return x.MobileDevice } return nil } // XXX_OneofFuncs is for the internal use of the proto package. func (*CampaignCriterion) 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 _CampaignCriterion_OneofMarshaler, _CampaignCriterion_OneofUnmarshaler, _CampaignCriterion_OneofSizer, []interface{}{ (*CampaignCriterion_Keyword)(nil), (*CampaignCriterion_Placement)(nil), (*CampaignCriterion_MobileAppCategory)(nil), (*CampaignCriterion_Location)(nil), (*CampaignCriterion_Device)(nil), (*CampaignCriterion_AdSchedule)(nil), (*CampaignCriterion_AgeRange)(nil), (*CampaignCriterion_Gender)(nil), (*CampaignCriterion_IncomeRange)(nil), (*CampaignCriterion_ParentalStatus)(nil), (*CampaignCriterion_UserList)(nil), (*CampaignCriterion_YoutubeVideo)(nil), (*CampaignCriterion_YoutubeChannel)(nil), (*CampaignCriterion_Proximity)(nil), (*CampaignCriterion_Topic)(nil), (*CampaignCriterion_ListingScope)(nil), (*CampaignCriterion_Language)(nil), (*CampaignCriterion_IpBlock)(nil), (*CampaignCriterion_ContentLabel)(nil), (*CampaignCriterion_Carrier)(nil), (*CampaignCriterion_UserInterest)(nil), (*CampaignCriterion_Webpage)(nil), (*CampaignCriterion_OperatingSystemVersion)(nil), (*CampaignCriterion_MobileDevice)(nil), } } func _CampaignCriterion_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { m := msg.(*CampaignCriterion) // criterion switch x := m.Criterion.(type) { case *CampaignCriterion_Keyword: b.EncodeVarint(8<<3 | proto.WireBytes) if err := b.EncodeMessage(x.Keyword); err != nil { return err } case *CampaignCriterion_Placement: b.EncodeVarint(9<<3 | proto.WireBytes) if err := b.EncodeMessage(x.Placement); err != nil { return err } case *CampaignCriterion_MobileAppCategory: b.EncodeVarint(10<<3 | proto.WireBytes) if err := b.EncodeMessage(x.MobileAppCategory); err != nil { return err } case *CampaignCriterion_Location: b.EncodeVarint(12<<3 | proto.WireBytes) if err := b.EncodeMessage(x.Location); err != nil { return err } case *CampaignCriterion_Device: b.EncodeVarint(13<<3 | proto.WireBytes) if err := b.EncodeMessage(x.Device); err != nil { return err } case *CampaignCriterion_AdSchedule: b.EncodeVarint(15<<3 | proto.WireBytes) if err := b.EncodeMessage(x.AdSchedule); err != nil { return err } case *CampaignCriterion_AgeRange: b.EncodeVarint(16<<3 | proto.WireBytes) if err := b.EncodeMessage(x.AgeRange); err != nil { return err } case *CampaignCriterion_Gender: b.EncodeVarint(17<<3 | proto.WireBytes) if err := b.EncodeMessage(x.Gender); err != nil { return err } case *CampaignCriterion_IncomeRange: b.EncodeVarint(18<<3 | proto.WireBytes) if err := b.EncodeMessage(x.IncomeRange); err != nil { return err } case *CampaignCriterion_ParentalStatus: b.EncodeVarint(19<<3 | proto.WireBytes) if err := b.EncodeMessage(x.ParentalStatus); err != nil { return err } case *CampaignCriterion_UserList: b.EncodeVarint(22<<3 | proto.WireBytes) if err := b.EncodeMessage(x.UserList); err != nil { return err } case *CampaignCriterion_YoutubeVideo: b.EncodeVarint(20<<3 | proto.WireBytes) if err := b.EncodeMessage(x.YoutubeVideo); err != nil { return err } case *CampaignCriterion_YoutubeChannel: b.EncodeVarint(21<<3 | proto.WireBytes) if err := b.EncodeMessage(x.YoutubeChannel); err != nil { return err } case *CampaignCriterion_Proximity: b.EncodeVarint(23<<3 | proto.WireBytes) if err := b.EncodeMessage(x.Proximity); err != nil { return err } case *CampaignCriterion_Topic: b.EncodeVarint(24<<3 | proto.WireBytes) if err := b.EncodeMessage(x.Topic); err != nil { return err } case *CampaignCriterion_ListingScope: b.EncodeVarint(25<<3 | proto.WireBytes) if err := b.EncodeMessage(x.ListingScope); err != nil { return err } case *CampaignCriterion_Language: b.EncodeVarint(26<<3 | proto.WireBytes) if err := b.EncodeMessage(x.Language); err != nil { return err } case *CampaignCriterion_IpBlock: b.EncodeVarint(27<<3 | proto.WireBytes) if err := b.EncodeMessage(x.IpBlock); err != nil { return err } case *CampaignCriterion_ContentLabel: b.EncodeVarint(28<<3 | proto.WireBytes) if err := b.EncodeMessage(x.ContentLabel); err != nil { return err } case *CampaignCriterion_Carrier: b.EncodeVarint(29<<3 | proto.WireBytes) if err := b.EncodeMessage(x.Carrier); err != nil { return err } case *CampaignCriterion_UserInterest: b.EncodeVarint(30<<3 | proto.WireBytes) if err := b.EncodeMessage(x.UserInterest); err != nil { return err } case *CampaignCriterion_Webpage: b.EncodeVarint(31<<3 | proto.WireBytes) if err := b.EncodeMessage(x.Webpage); err != nil { return err } case *CampaignCriterion_OperatingSystemVersion: b.EncodeVarint(32<<3 | proto.WireBytes) if err := b.EncodeMessage(x.OperatingSystemVersion); err != nil { return err } case *CampaignCriterion_MobileDevice: b.EncodeVarint(33<<3 | proto.WireBytes) if err := b.EncodeMessage(x.MobileDevice); err != nil { return err } case nil: default: return fmt.Errorf("CampaignCriterion.Criterion has unexpected type %T", x) } return nil } func _CampaignCriterion_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { m := msg.(*CampaignCriterion) switch tag { case 8: // criterion.keyword if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(common.KeywordInfo) err := b.DecodeMessage(msg) m.Criterion = &CampaignCriterion_Keyword{msg} return true, err case 9: // criterion.placement if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(common.PlacementInfo) err := b.DecodeMessage(msg) m.Criterion = &CampaignCriterion_Placement{msg} return true, err case 10: // criterion.mobile_app_category if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(common.MobileAppCategoryInfo) err := b.DecodeMessage(msg) m.Criterion = &CampaignCriterion_MobileAppCategory{msg} return true, err case 12: // criterion.location if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(common.LocationInfo) err := b.DecodeMessage(msg) m.Criterion = &CampaignCriterion_Location{msg} return true, err case 13: // criterion.device if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(common.DeviceInfo) err := b.DecodeMessage(msg) m.Criterion = &CampaignCriterion_Device{msg} return true, err case 15: // criterion.ad_schedule if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(common.AdScheduleInfo) err := b.DecodeMessage(msg) m.Criterion = &CampaignCriterion_AdSchedule{msg} return true, err case 16: // criterion.age_range if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(common.AgeRangeInfo) err := b.DecodeMessage(msg) m.Criterion = &CampaignCriterion_AgeRange{msg} return true, err case 17: // criterion.gender if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(common.GenderInfo) err := b.DecodeMessage(msg) m.Criterion = &CampaignCriterion_Gender{msg} return true, err case 18: // criterion.income_range if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(common.IncomeRangeInfo) err := b.DecodeMessage(msg) m.Criterion = &CampaignCriterion_IncomeRange{msg} return true, err case 19: // criterion.parental_status if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(common.ParentalStatusInfo) err := b.DecodeMessage(msg) m.Criterion = &CampaignCriterion_ParentalStatus{msg} return true, err case 22: // criterion.user_list if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(common.UserListInfo) err := b.DecodeMessage(msg) m.Criterion = &CampaignCriterion_UserList{msg} return true, err case 20: // criterion.youtube_video if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(common.YouTubeVideoInfo) err := b.DecodeMessage(msg) m.Criterion = &CampaignCriterion_YoutubeVideo{msg} return true, err case 21: // criterion.youtube_channel if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(common.YouTubeChannelInfo) err := b.DecodeMessage(msg) m.Criterion = &CampaignCriterion_YoutubeChannel{msg} return true, err case 23: // criterion.proximity if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(common.ProximityInfo) err := b.DecodeMessage(msg) m.Criterion = &CampaignCriterion_Proximity{msg} return true, err case 24: // criterion.topic if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(common.TopicInfo) err := b.DecodeMessage(msg) m.Criterion = &CampaignCriterion_Topic{msg} return true, err case 25: // criterion.listing_scope if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(common.ListingScopeInfo) err := b.DecodeMessage(msg) m.Criterion = &CampaignCriterion_ListingScope{msg} return true, err case 26: // criterion.language if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(common.LanguageInfo) err := b.DecodeMessage(msg) m.Criterion = &CampaignCriterion_Language{msg} return true, err case 27: // criterion.ip_block if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(common.IpBlockInfo) err := b.DecodeMessage(msg) m.Criterion = &CampaignCriterion_IpBlock{msg} return true, err case 28: // criterion.content_label if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(common.ContentLabelInfo) err := b.DecodeMessage(msg) m.Criterion = &CampaignCriterion_ContentLabel{msg} return true, err case 29: // criterion.carrier if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(common.CarrierInfo) err := b.DecodeMessage(msg) m.Criterion = &CampaignCriterion_Carrier{msg} return true, err case 30: // criterion.user_interest if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(common.UserInterestInfo) err := b.DecodeMessage(msg) m.Criterion = &CampaignCriterion_UserInterest{msg} return true, err case 31: // criterion.webpage if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(common.WebpageInfo) err := b.DecodeMessage(msg) m.Criterion = &CampaignCriterion_Webpage{msg} return true, err case 32: // criterion.operating_system_version if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(common.OperatingSystemVersionInfo) err := b.DecodeMessage(msg) m.Criterion = &CampaignCriterion_OperatingSystemVersion{msg} return true, err case 33: // criterion.mobile_device if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(common.MobileDeviceInfo) err := b.DecodeMessage(msg) m.Criterion = &CampaignCriterion_MobileDevice{msg} return true, err default: return false, nil } } func _CampaignCriterion_OneofSizer(msg proto.Message) (n int) { m := msg.(*CampaignCriterion) // criterion switch x := m.Criterion.(type) { case *CampaignCriterion_Keyword: s := proto.Size(x.Keyword) n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *CampaignCriterion_Placement: s := proto.Size(x.Placement) n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *CampaignCriterion_MobileAppCategory: s := proto.Size(x.MobileAppCategory) n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *CampaignCriterion_Location: s := proto.Size(x.Location) n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *CampaignCriterion_Device: s := proto.Size(x.Device) n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *CampaignCriterion_AdSchedule: s := proto.Size(x.AdSchedule) n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *CampaignCriterion_AgeRange: s := proto.Size(x.AgeRange) n += 2 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *CampaignCriterion_Gender: s := proto.Size(x.Gender) n += 2 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *CampaignCriterion_IncomeRange: s := proto.Size(x.IncomeRange) n += 2 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *CampaignCriterion_ParentalStatus: s := proto.Size(x.ParentalStatus) n += 2 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *CampaignCriterion_UserList: s := proto.Size(x.UserList) n += 2 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *CampaignCriterion_YoutubeVideo: s := proto.Size(x.YoutubeVideo) n += 2 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *CampaignCriterion_YoutubeChannel: s := proto.Size(x.YoutubeChannel) n += 2 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *CampaignCriterion_Proximity: s := proto.Size(x.Proximity) n += 2 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *CampaignCriterion_Topic: s := proto.Size(x.Topic) n += 2 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *CampaignCriterion_ListingScope: s := proto.Size(x.ListingScope) n += 2 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *CampaignCriterion_Language: s := proto.Size(x.Language) n += 2 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *CampaignCriterion_IpBlock: s := proto.Size(x.IpBlock) n += 2 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *CampaignCriterion_ContentLabel: s := proto.Size(x.ContentLabel) n += 2 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *CampaignCriterion_Carrier: s := proto.Size(x.Carrier) n += 2 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *CampaignCriterion_UserInterest: s := proto.Size(x.UserInterest) n += 2 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *CampaignCriterion_Webpage: s := proto.Size(x.Webpage) n += 2 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *CampaignCriterion_OperatingSystemVersion: s := proto.Size(x.OperatingSystemVersion) n += 2 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *CampaignCriterion_MobileDevice: s := proto.Size(x.MobileDevice) 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((*CampaignCriterion)(nil), "google.ads.googleads.v1.resources.CampaignCriterion") } func init() { proto.RegisterFile("google/ads/googleads/v1/resources/campaign_criterion.proto", fileDescriptor_campaign_criterion_d60516931b349118) } var fileDescriptor_campaign_criterion_d60516931b349118 = []byte{ // 1041 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x96, 0xdf, 0x6e, 0x1c, 0xb5, 0x17, 0xc7, 0x7f, 0xc9, 0xaf, 0x4d, 0x37, 0xce, 0x26, 0x25, 0x2e, 0x04, 0x93, 0x86, 0x92, 0x80, 0x2a, 0x85, 0x3f, 0x9d, 0x25, 0x01, 0x2a, 0xb4, 0x48, 0x95, 0x36, 0x5b, 0x48, 0xb7, 0x4d, 0x20, 0x6c, 0xc2, 0x56, 0xa0, 0xa0, 0x91, 0x77, 0xe6, 0x64, 0x6a, 0x75, 0xc6, 0xb6, 0x6c, 0xcf, 0x86, 0xbd, 0xe6, 0x4d, 0xb8, 0xe4, 0x51, 0xb8, 0xe6, 0x29, 0x78, 0x0a, 0x64, 0x8f, 0x3d, 0x49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