1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/ads/googleads/v3/resources/shared_criterion.proto
3
4package resources
5
6import (
7	fmt "fmt"
8	math "math"
9
10	proto "github.com/golang/protobuf/proto"
11	wrappers "github.com/golang/protobuf/ptypes/wrappers"
12	common "google.golang.org/genproto/googleapis/ads/googleads/v3/common"
13	enums "google.golang.org/genproto/googleapis/ads/googleads/v3/enums"
14	_ "google.golang.org/genproto/googleapis/api/annotations"
15)
16
17// Reference imports to suppress errors if they are not otherwise used.
18var _ = proto.Marshal
19var _ = fmt.Errorf
20var _ = math.Inf
21
22// This is a compile-time assertion to ensure that this generated file
23// is compatible with the proto package it is being compiled against.
24// A compilation error at this line likely means your copy of the
25// proto package needs to be updated.
26const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
27
28// A criterion belonging to a shared set.
29type SharedCriterion struct {
30	// Immutable. The resource name of the shared criterion.
31	// Shared set resource names have the form:
32	//
33	// `customers/{customer_id}/sharedCriteria/{shared_set_id}~{criterion_id}`
34	ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
35	// Immutable. The shared set to which the shared criterion belongs.
36	SharedSet *wrappers.StringValue `protobuf:"bytes,2,opt,name=shared_set,json=sharedSet,proto3" json:"shared_set,omitempty"`
37	// Output only. The ID of the criterion.
38	//
39	// This field is ignored for mutates.
40	CriterionId *wrappers.Int64Value `protobuf:"bytes,26,opt,name=criterion_id,json=criterionId,proto3" json:"criterion_id,omitempty"`
41	// Output only. The type of the criterion.
42	Type enums.CriterionTypeEnum_CriterionType `protobuf:"varint,4,opt,name=type,proto3,enum=google.ads.googleads.v3.enums.CriterionTypeEnum_CriterionType" json:"type,omitempty"`
43	// The criterion.
44	//
45	// Exactly one must be set.
46	//
47	// Types that are valid to be assigned to Criterion:
48	//	*SharedCriterion_Keyword
49	//	*SharedCriterion_YoutubeVideo
50	//	*SharedCriterion_YoutubeChannel
51	//	*SharedCriterion_Placement
52	//	*SharedCriterion_MobileAppCategory
53	//	*SharedCriterion_MobileApplication
54	Criterion            isSharedCriterion_Criterion `protobuf_oneof:"criterion"`
55	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
56	XXX_unrecognized     []byte                      `json:"-"`
57	XXX_sizecache        int32                       `json:"-"`
58}
59
60func (m *SharedCriterion) Reset()         { *m = SharedCriterion{} }
61func (m *SharedCriterion) String() string { return proto.CompactTextString(m) }
62func (*SharedCriterion) ProtoMessage()    {}
63func (*SharedCriterion) Descriptor() ([]byte, []int) {
64	return fileDescriptor_4619a4fc8d25dd41, []int{0}
65}
66
67func (m *SharedCriterion) XXX_Unmarshal(b []byte) error {
68	return xxx_messageInfo_SharedCriterion.Unmarshal(m, b)
69}
70func (m *SharedCriterion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
71	return xxx_messageInfo_SharedCriterion.Marshal(b, m, deterministic)
72}
73func (m *SharedCriterion) XXX_Merge(src proto.Message) {
74	xxx_messageInfo_SharedCriterion.Merge(m, src)
75}
76func (m *SharedCriterion) XXX_Size() int {
77	return xxx_messageInfo_SharedCriterion.Size(m)
78}
79func (m *SharedCriterion) XXX_DiscardUnknown() {
80	xxx_messageInfo_SharedCriterion.DiscardUnknown(m)
81}
82
83var xxx_messageInfo_SharedCriterion proto.InternalMessageInfo
84
85func (m *SharedCriterion) GetResourceName() string {
86	if m != nil {
87		return m.ResourceName
88	}
89	return ""
90}
91
92func (m *SharedCriterion) GetSharedSet() *wrappers.StringValue {
93	if m != nil {
94		return m.SharedSet
95	}
96	return nil
97}
98
99func (m *SharedCriterion) GetCriterionId() *wrappers.Int64Value {
100	if m != nil {
101		return m.CriterionId
102	}
103	return nil
104}
105
106func (m *SharedCriterion) GetType() enums.CriterionTypeEnum_CriterionType {
107	if m != nil {
108		return m.Type
109	}
110	return enums.CriterionTypeEnum_UNSPECIFIED
111}
112
113type isSharedCriterion_Criterion interface {
114	isSharedCriterion_Criterion()
115}
116
117type SharedCriterion_Keyword struct {
118	Keyword *common.KeywordInfo `protobuf:"bytes,3,opt,name=keyword,proto3,oneof"`
119}
120
121type SharedCriterion_YoutubeVideo struct {
122	YoutubeVideo *common.YouTubeVideoInfo `protobuf:"bytes,5,opt,name=youtube_video,json=youtubeVideo,proto3,oneof"`
123}
124
125type SharedCriterion_YoutubeChannel struct {
126	YoutubeChannel *common.YouTubeChannelInfo `protobuf:"bytes,6,opt,name=youtube_channel,json=youtubeChannel,proto3,oneof"`
127}
128
129type SharedCriterion_Placement struct {
130	Placement *common.PlacementInfo `protobuf:"bytes,7,opt,name=placement,proto3,oneof"`
131}
132
133type SharedCriterion_MobileAppCategory struct {
134	MobileAppCategory *common.MobileAppCategoryInfo `protobuf:"bytes,8,opt,name=mobile_app_category,json=mobileAppCategory,proto3,oneof"`
135}
136
137type SharedCriterion_MobileApplication struct {
138	MobileApplication *common.MobileApplicationInfo `protobuf:"bytes,9,opt,name=mobile_application,json=mobileApplication,proto3,oneof"`
139}
140
141func (*SharedCriterion_Keyword) isSharedCriterion_Criterion() {}
142
143func (*SharedCriterion_YoutubeVideo) isSharedCriterion_Criterion() {}
144
145func (*SharedCriterion_YoutubeChannel) isSharedCriterion_Criterion() {}
146
147func (*SharedCriterion_Placement) isSharedCriterion_Criterion() {}
148
149func (*SharedCriterion_MobileAppCategory) isSharedCriterion_Criterion() {}
150
151func (*SharedCriterion_MobileApplication) isSharedCriterion_Criterion() {}
152
153func (m *SharedCriterion) GetCriterion() isSharedCriterion_Criterion {
154	if m != nil {
155		return m.Criterion
156	}
157	return nil
158}
159
160func (m *SharedCriterion) GetKeyword() *common.KeywordInfo {
161	if x, ok := m.GetCriterion().(*SharedCriterion_Keyword); ok {
162		return x.Keyword
163	}
164	return nil
165}
166
167func (m *SharedCriterion) GetYoutubeVideo() *common.YouTubeVideoInfo {
168	if x, ok := m.GetCriterion().(*SharedCriterion_YoutubeVideo); ok {
169		return x.YoutubeVideo
170	}
171	return nil
172}
173
174func (m *SharedCriterion) GetYoutubeChannel() *common.YouTubeChannelInfo {
175	if x, ok := m.GetCriterion().(*SharedCriterion_YoutubeChannel); ok {
176		return x.YoutubeChannel
177	}
178	return nil
179}
180
181func (m *SharedCriterion) GetPlacement() *common.PlacementInfo {
182	if x, ok := m.GetCriterion().(*SharedCriterion_Placement); ok {
183		return x.Placement
184	}
185	return nil
186}
187
188func (m *SharedCriterion) GetMobileAppCategory() *common.MobileAppCategoryInfo {
189	if x, ok := m.GetCriterion().(*SharedCriterion_MobileAppCategory); ok {
190		return x.MobileAppCategory
191	}
192	return nil
193}
194
195func (m *SharedCriterion) GetMobileApplication() *common.MobileApplicationInfo {
196	if x, ok := m.GetCriterion().(*SharedCriterion_MobileApplication); ok {
197		return x.MobileApplication
198	}
199	return nil
200}
201
202// XXX_OneofWrappers is for the internal use of the proto package.
203func (*SharedCriterion) XXX_OneofWrappers() []interface{} {
204	return []interface{}{
205		(*SharedCriterion_Keyword)(nil),
206		(*SharedCriterion_YoutubeVideo)(nil),
207		(*SharedCriterion_YoutubeChannel)(nil),
208		(*SharedCriterion_Placement)(nil),
209		(*SharedCriterion_MobileAppCategory)(nil),
210		(*SharedCriterion_MobileApplication)(nil),
211	}
212}
213
214func init() {
215	proto.RegisterType((*SharedCriterion)(nil), "google.ads.googleads.v3.resources.SharedCriterion")
216}
217
218func init() {
219	proto.RegisterFile("google/ads/googleads/v3/resources/shared_criterion.proto", fileDescriptor_4619a4fc8d25dd41)
220}
221
222var fileDescriptor_4619a4fc8d25dd41 = []byte{
223	// 687 bytes of a gzipped FileDescriptorProto
224	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xdb, 0x6a, 0xdb, 0x4a,
225	0x14, 0x86, 0xb7, 0xed, 0x9c, 0x3c, 0x39, 0xb1, 0xb5, 0xf7, 0x85, 0x9a, 0x86, 0x36, 0x09, 0x0d,
226	0x98, 0x94, 0x8c, 0x82, 0xdd, 0x86, 0xa2, 0x42, 0x41, 0x36, 0x25, 0x4d, 0x4f, 0x04, 0x27, 0x75,
227	0x69, 0x31, 0x88, 0x91, 0xb4, 0xa2, 0x88, 0x48, 0x33, 0x42, 0x23, 0x39, 0x98, 0x90, 0x8b, 0xbe,
228	0x4a, 0x2e, 0xfb, 0x28, 0x7d, 0x8a, 0x5c, 0xe7, 0x11, 0x7a, 0x55, 0x3c, 0x9a, 0x91, 0x5d, 0xb7,
229	0xae, 0xd3, 0xbb, 0x25, 0xad, 0xff, 0xff, 0xfe, 0xa5, 0x19, 0xcd, 0xa0, 0x67, 0x3e, 0x63, 0x7e,
230	0x08, 0x06, 0xf1, 0xb8, 0x91, 0x97, 0x83, 0xaa, 0xd7, 0x30, 0x12, 0xe0, 0x2c, 0x4b, 0x5c, 0xe0,
231	0x06, 0x3f, 0x23, 0x09, 0x78, 0xb6, 0x9b, 0x04, 0x29, 0x24, 0x01, 0xa3, 0x38, 0x4e, 0x58, 0xca,
232	0xb4, 0xcd, 0x5c, 0x8e, 0x89, 0xc7, 0x71, 0xe1, 0xc4, 0xbd, 0x06, 0x2e, 0x9c, 0x6b, 0xbb, 0x93,
233	0xe0, 0x2e, 0x8b, 0x22, 0x46, 0x0d, 0x89, 0x24, 0x39, 0x71, 0xad, 0x3e, 0x49, 0x0e, 0x34, 0x8b,
234	0xb8, 0x51, 0x0c, 0x60, 0xa7, 0xfd, 0x18, 0xa4, 0xe7, 0xa1, 0xf2, 0xc4, 0x81, 0x71, 0x1a, 0x40,
235	0xe8, 0xd9, 0x0e, 0x9c, 0x91, 0x5e, 0xc0, 0x12, 0x29, 0xb8, 0x37, 0x22, 0x50, 0x93, 0xc9, 0xd6,
236	0x03, 0xd9, 0x12, 0x4f, 0x4e, 0x76, 0x6a, 0x5c, 0x24, 0x24, 0x8e, 0x21, 0xe1, 0xb2, 0xbf, 0x3e,
237	0x62, 0x25, 0x94, 0xb2, 0x94, 0xa4, 0x01, 0xa3, 0xb2, 0xbb, 0x75, 0xbd, 0x80, 0x56, 0x8f, 0xc5,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xb6, 0x42, 0x68, 0x5d, 0xb4, 0xdc, 0x67, 0x59, 0x9a, 0x39, 0x60, 0xf7, 0x02, 0x0f,
250	0x98, 0x3e, 0x2b, 0x98, 0x7b, 0xd3, 0x98, 0x9f, 0x58, 0x76, 0x92, 0x39, 0xd0, 0x19, 0x78, 0x46,
251	0xc1, 0x4b, 0x92, 0x26, 0x1a, 0x9a, 0x83, 0x56, 0x15, 0xdd, 0x3d, 0x23, 0x94, 0x42, 0xa8, 0xcf,
252	0x09, 0x7e, 0xfd, 0x8e, 0xfc, 0x56, 0xee, 0x1a, 0x4d, 0x58, 0x91, 0x44, 0xd9, 0xd2, 0xda, 0xa8,
253	0x1a, 0x87, 0xc4, 0x85, 0x08, 0x68, 0xaa, 0xcf, 0x0b, 0xfa, 0xee, 0x34, 0xfa, 0x91, 0x32, 0x8c,
254	0x82, 0x87, 0x18, 0x2d, 0x44, 0xff, 0x45, 0xcc, 0x09, 0x42, 0xb0, 0x49, 0x1c, 0xdb, 0x2e, 0x49,
255	0xc1, 0x67, 0x49, 0x5f, 0x5f, 0x10, 0xf4, 0xa7, 0xd3, 0xe8, 0xef, 0x84, 0xd5, 0x8a, 0xe3, 0x96,
256	0x34, 0x8e, 0xa6, 0xfc, 0x1b, 0x8d, 0x77, 0xb5, 0x73, 0xa4, 0x0d, 0xd3, 0xc2, 0xc0, 0x15, 0x07,
257	0x4c, 0xaf, 0xfe, 0x65, 0x98, 0x32, 0xfe, 0x3e, 0x4c, 0x75, 0x4d, 0xb8, 0xb5, 0x9c, 0xbb, 0x1f,
258	0x41, 0x6d, 0xdf, 0xcd, 0x78, 0xca, 0x22, 0x48, 0xb8, 0x71, 0xa9, 0xca, 0x2b, 0x79, 0x19, 0x4a,
259	0x15, 0x31, 0x2e, 0xc7, 0x2f, 0xc7, 0xab, 0xe6, 0x22, 0xaa, 0x16, 0x4f, 0xcd, 0x2f, 0x65, 0xb4,
260	0xed, 0xb2, 0x08, 0x4f, 0xbd, 0x2b, 0x9b,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