blob: c6a609f9543597646bc22eb20a3e672226db801f [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v0/resources/campaign_criterion.proto
package resources // import "google.golang.org/genproto/googleapis/ads/googleads/v0/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/v0/common"
import enums "google.golang.org/genproto/googleapis/ads/googleads/v0/enums"
// 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.v0.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
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_7bc4748acba0df76, []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"`
}
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 (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
}
// 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),
}
}
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 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
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 nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
func init() {
proto.RegisterType((*CampaignCriterion)(nil), "google.ads.googleads.v0.resources.CampaignCriterion")
}
func init() {
proto.RegisterFile("google/ads/googleads/v0/resources/campaign_criterion.proto", fileDescriptor_campaign_criterion_7bc4748acba0df76)
}
var fileDescriptor_campaign_criterion_7bc4748acba0df76 = []byte{
// 1007 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x96, 0xdd, 0x6e, 0x1c, 0x35,
0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