// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v0/resources/shared_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 criterion belonging to a shared set. type SharedCriterion struct { // The resource name of the shared criterion. // Shared set resource names have the form: // // `customers/{customer_id}/sharedCriteria/{shared_set_id}_{criterion_id}` ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` // The shared set to which the shared criterion belongs. SharedSet *wrappers.StringValue `protobuf:"bytes,2,opt,name=shared_set,json=sharedSet,proto3" json:"shared_set,omitempty"` // The ID of the criterion. // // This field is ignored for mutates. CriterionId *wrappers.Int64Value `protobuf:"bytes,26,opt,name=criterion_id,json=criterionId,proto3" json:"criterion_id,omitempty"` // The type of the criterion. Type enums.CriterionTypeEnum_CriterionType `protobuf:"varint,4,opt,name=type,proto3,enum=google.ads.googleads.v0.enums.CriterionTypeEnum_CriterionType" json:"type,omitempty"` // The criterion. // // Exactly one must be set. // // Types that are valid to be assigned to Criterion: // *SharedCriterion_Keyword // *SharedCriterion_YoutubeVideo // *SharedCriterion_YoutubeChannel // *SharedCriterion_Placement // *SharedCriterion_MobileAppCategory Criterion isSharedCriterion_Criterion `protobuf_oneof:"criterion"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *SharedCriterion) Reset() { *m = SharedCriterion{} } func (m *SharedCriterion) String() string { return proto.CompactTextString(m) } func (*SharedCriterion) ProtoMessage() {} func (*SharedCriterion) Descriptor() ([]byte, []int) { return fileDescriptor_shared_criterion_607e03433279a6ca, []int{0} } func (m *SharedCriterion) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SharedCriterion.Unmarshal(m, b) } func (m *SharedCriterion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SharedCriterion.Marshal(b, m, deterministic) } func (dst *SharedCriterion) XXX_Merge(src proto.Message) { xxx_messageInfo_SharedCriterion.Merge(dst, src) } func (m *SharedCriterion) XXX_Size() int { return xxx_messageInfo_SharedCriterion.Size(m) } func (m *SharedCriterion) XXX_DiscardUnknown() { xxx_messageInfo_SharedCriterion.DiscardUnknown(m) } var xxx_messageInfo_SharedCriterion proto.InternalMessageInfo func (m *SharedCriterion) GetResourceName() string { if m != nil { return m.ResourceName } return "" } func (m *SharedCriterion) GetSharedSet() *wrappers.StringValue { if m != nil { return m.SharedSet } return nil } func (m *SharedCriterion) GetCriterionId() *wrappers.Int64Value { if m != nil { return m.CriterionId } return nil } func (m *SharedCriterion) GetType() enums.CriterionTypeEnum_CriterionType { if m != nil { return m.Type } return enums.CriterionTypeEnum_UNSPECIFIED } type isSharedCriterion_Criterion interface { isSharedCriterion_Criterion() } type SharedCriterion_Keyword struct { Keyword *common.KeywordInfo `protobuf:"bytes,3,opt,name=keyword,proto3,oneof"` } type SharedCriterion_YoutubeVideo struct { YoutubeVideo *common.YouTubeVideoInfo `protobuf:"bytes,5,opt,name=youtube_video,json=youtubeVideo,proto3,oneof"` } type SharedCriterion_YoutubeChannel struct { YoutubeChannel *common.YouTubeChannelInfo `protobuf:"bytes,6,opt,name=youtube_channel,json=youtubeChannel,proto3,oneof"` } type SharedCriterion_Placement struct { Placement *common.PlacementInfo `protobuf:"bytes,7,opt,name=placement,proto3,oneof"` } type SharedCriterion_MobileAppCategory struct { MobileAppCategory *common.MobileAppCategoryInfo `protobuf:"bytes,8,opt,name=mobile_app_category,json=mobileAppCategory,proto3,oneof"` } func (*SharedCriterion_Keyword) isSharedCriterion_Criterion() {} func (*SharedCriterion_YoutubeVideo) isSharedCriterion_Criterion() {} func (*SharedCriterion_YoutubeChannel) isSharedCriterion_Criterion() {} func (*SharedCriterion_Placement) isSharedCriterion_Criterion() {} func (*SharedCriterion_MobileAppCategory) isSharedCriterion_Criterion() {} func (m *SharedCriterion) GetCriterion() isSharedCriterion_Criterion { if m != nil { return m.Criterion } return nil } func (m *SharedCriterion) GetKeyword() *common.KeywordInfo { if x, ok := m.GetCriterion().(*SharedCriterion_Keyword); ok { return x.Keyword } return nil } func (m *SharedCriterion) GetYoutubeVideo() *common.YouTubeVideoInfo { if x, ok := m.GetCriterion().(*SharedCriterion_YoutubeVideo); ok { return x.YoutubeVideo } return nil } func (m *SharedCriterion) GetYoutubeChannel() *common.YouTubeChannelInfo { if x, ok := m.GetCriterion().(*SharedCriterion_YoutubeChannel); ok { return x.YoutubeChannel } return nil } func (m *SharedCriterion) GetPlacement() *common.PlacementInfo { if x, ok := m.GetCriterion().(*SharedCriterion_Placement); ok { return x.Placement } return nil } func (m *SharedCriterion) GetMobileAppCategory() *common.MobileAppCategoryInfo { if x, ok := m.GetCriterion().(*SharedCriterion_MobileAppCategory); ok { return x.MobileAppCategory } return nil } // XXX_OneofFuncs is for the internal use of the proto package. func (*SharedCriterion) 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 _SharedCriterion_OneofMarshaler, _SharedCriterion_OneofUnmarshaler, _SharedCriterion_OneofSizer, []interface{}{ (*SharedCriterion_Keyword)(nil), (*SharedCriterion_YoutubeVideo)(nil), (*SharedCriterion_YoutubeChannel)(nil), (*SharedCriterion_Placement)(nil), (*SharedCriterion_MobileAppCategory)(nil), } } func _SharedCriterion_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { m := msg.(*SharedCriterion) // criterion switch x := m.Criterion.(type) { case *SharedCriterion_Keyword: b.EncodeVarint(3<<3 | proto.WireBytes) if err := b.EncodeMessage(x.Keyword); err != nil { return err } case *SharedCriterion_YoutubeVideo: b.EncodeVarint(5<<3 | proto.WireBytes) if err := b.EncodeMessage(x.YoutubeVideo); err != nil { return err } case *SharedCriterion_YoutubeChannel: b.EncodeVarint(6<<3 | proto.WireBytes) if err := b.EncodeMessage(x.YoutubeChannel); err != nil { return err } case *SharedCriterion_Placement: b.EncodeVarint(7<<3 | proto.WireBytes) if err := b.EncodeMessage(x.Placement); err != nil { return err } case *SharedCriterion_MobileAppCategory: b.EncodeVarint(8<<3 | proto.WireBytes) if err := b.EncodeMessage(x.MobileAppCategory); err != nil { return err } case nil: default: return fmt.Errorf("SharedCriterion.Criterion has unexpected type %T", x) } return nil } func _SharedCriterion_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { m := msg.(*SharedCriterion) switch tag { case 3: // criterion.keyword if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(common.KeywordInfo) err := b.DecodeMessage(msg) m.Criterion = &SharedCriterion_Keyword{msg} return true, err case 5: // criterion.youtube_video if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(common.YouTubeVideoInfo) err := b.DecodeMessage(msg) m.Criterion = &SharedCriterion_YoutubeVideo{msg} return true, err case 6: // criterion.youtube_channel if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(common.YouTubeChannelInfo) err := b.DecodeMessage(msg) m.Criterion = &SharedCriterion_YoutubeChannel{msg} return true, err case 7: // criterion.placement if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(common.PlacementInfo) err := b.DecodeMessage(msg) m.Criterion = &SharedCriterion_Placement{msg} return true, err case 8: // criterion.mobile_app_category if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(common.MobileAppCategoryInfo) err := b.DecodeMessage(msg) m.Criterion = &SharedCriterion_MobileAppCategory{msg} return true, err default: return false, nil } } func _SharedCriterion_OneofSizer(msg proto.Message) (n int) { m := msg.(*SharedCriterion) // criterion switch x := m.Criterion.(type) { case *SharedCriterion_Keyword: s := proto.Size(x.Keyword) n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *SharedCriterion_YoutubeVideo: s := proto.Size(x.YoutubeVideo) n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *SharedCriterion_YoutubeChannel: s := proto.Size(x.YoutubeChannel) n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *SharedCriterion_Placement: s := proto.Size(x.Placement) n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *SharedCriterion_MobileAppCategory: s := proto.Size(x.MobileAppCategory) n += 1 // 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((*SharedCriterion)(nil), "google.ads.googleads.v0.resources.SharedCriterion") } func init() { proto.RegisterFile("google/ads/googleads/v0/resources/shared_criterion.proto", fileDescriptor_shared_criterion_607e03433279a6ca) } var fileDescriptor_shared_criterion_607e03433279a6ca = []byte{ // 559 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xdf, 0x8a, 0xd3, 0x4e, 0x14, 0xc7, 0x7f, 0xed, 0xfe, 0xfb, 0x75, 0xda, 0xdd, 0xc5, 0xe8, 0x45, 0xa8, 0x22, 0x5d, 0x65, 0xa1, 0x20, 0x3b, 0x09, 0xf5, 0x0f, 0x92, 0x85, 0x85, 0xb4, 0x48, 0xad, 0xb2, 0x52, 0xd2, 0xa5, 0xa2, 0x54, 0xc2, 0x34, 0x39, 0x9b, 0x0d, 0x26, 0x33, 0x61, 0x26, 0xe9, 0xd2, 0x4b, 0x5f, 0xc5, 0x4b, 0x1f, 0x45, 0xf0, 0x45, 0x7c, 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