1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/ads/googleads/v3/resources/keyword_plan.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 Keyword Planner plan.
29// Max number of saved keyword plans: 10000.
30// It's possible to remove plans if limit is reached.
31type KeywordPlan struct {
32	// The resource name of the Keyword Planner plan.
33	// KeywordPlan resource names have the form:
34	//
35	// `customers/{customer_id}/keywordPlans/{kp_plan_id}`
36	ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
37	// The ID of the keyword plan.
38	Id *wrappers.Int64Value `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
39	// The name of the keyword plan.
40	//
41	// This field is required and should not be empty when creating new keyword
42	// plans.
43	Name *wrappers.StringValue `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
44	// The date period used for forecasting the plan.
45	ForecastPeriod       *KeywordPlanForecastPeriod `protobuf:"bytes,4,opt,name=forecast_period,json=forecastPeriod,proto3" json:"forecast_period,omitempty"`
46	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
47	XXX_unrecognized     []byte                     `json:"-"`
48	XXX_sizecache        int32                      `json:"-"`
49}
50
51func (m *KeywordPlan) Reset()         { *m = KeywordPlan{} }
52func (m *KeywordPlan) String() string { return proto.CompactTextString(m) }
53func (*KeywordPlan) ProtoMessage()    {}
54func (*KeywordPlan) Descriptor() ([]byte, []int) {
55	return fileDescriptor_b7a261a590e572b8, []int{0}
56}
57
58func (m *KeywordPlan) XXX_Unmarshal(b []byte) error {
59	return xxx_messageInfo_KeywordPlan.Unmarshal(m, b)
60}
61func (m *KeywordPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
62	return xxx_messageInfo_KeywordPlan.Marshal(b, m, deterministic)
63}
64func (m *KeywordPlan) XXX_Merge(src proto.Message) {
65	xxx_messageInfo_KeywordPlan.Merge(m, src)
66}
67func (m *KeywordPlan) XXX_Size() int {
68	return xxx_messageInfo_KeywordPlan.Size(m)
69}
70func (m *KeywordPlan) XXX_DiscardUnknown() {
71	xxx_messageInfo_KeywordPlan.DiscardUnknown(m)
72}
73
74var xxx_messageInfo_KeywordPlan proto.InternalMessageInfo
75
76func (m *KeywordPlan) GetResourceName() string {
77	if m != nil {
78		return m.ResourceName
79	}
80	return ""
81}
82
83func (m *KeywordPlan) GetId() *wrappers.Int64Value {
84	if m != nil {
85		return m.Id
86	}
87	return nil
88}
89
90func (m *KeywordPlan) GetName() *wrappers.StringValue {
91	if m != nil {
92		return m.Name
93	}
94	return nil
95}
96
97func (m *KeywordPlan) GetForecastPeriod() *KeywordPlanForecastPeriod {
98	if m != nil {
99		return m.ForecastPeriod
100	}
101	return nil
102}
103
104// The forecasting period associated with the keyword plan.
105type KeywordPlanForecastPeriod struct {
106	// Required. The date used for forecasting the Plan.
107	//
108	// Types that are valid to be assigned to Interval:
109	//	*KeywordPlanForecastPeriod_DateInterval
110	//	*KeywordPlanForecastPeriod_DateRange
111	Interval             isKeywordPlanForecastPeriod_Interval `protobuf_oneof:"interval"`
112	XXX_NoUnkeyedLiteral struct{}                             `json:"-"`
113	XXX_unrecognized     []byte                               `json:"-"`
114	XXX_sizecache        int32                                `json:"-"`
115}
116
117func (m *KeywordPlanForecastPeriod) Reset()         { *m = KeywordPlanForecastPeriod{} }
118func (m *KeywordPlanForecastPeriod) String() string { return proto.CompactTextString(m) }
119func (*KeywordPlanForecastPeriod) ProtoMessage()    {}
120func (*KeywordPlanForecastPeriod) Descriptor() ([]byte, []int) {
121	return fileDescriptor_b7a261a590e572b8, []int{1}
122}
123
124func (m *KeywordPlanForecastPeriod) XXX_Unmarshal(b []byte) error {
125	return xxx_messageInfo_KeywordPlanForecastPeriod.Unmarshal(m, b)
126}
127func (m *KeywordPlanForecastPeriod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
128	return xxx_messageInfo_KeywordPlanForecastPeriod.Marshal(b, m, deterministic)
129}
130func (m *KeywordPlanForecastPeriod) XXX_Merge(src proto.Message) {
131	xxx_messageInfo_KeywordPlanForecastPeriod.Merge(m, src)
132}
133func (m *KeywordPlanForecastPeriod) XXX_Size() int {
134	return xxx_messageInfo_KeywordPlanForecastPeriod.Size(m)
135}
136func (m *KeywordPlanForecastPeriod) XXX_DiscardUnknown() {
137	xxx_messageInfo_KeywordPlanForecastPeriod.DiscardUnknown(m)
138}
139
140var xxx_messageInfo_KeywordPlanForecastPeriod proto.InternalMessageInfo
141
142type isKeywordPlanForecastPeriod_Interval interface {
143	isKeywordPlanForecastPeriod_Interval()
144}
145
146type KeywordPlanForecastPeriod_DateInterval struct {
147	DateInterval enums.KeywordPlanForecastIntervalEnum_KeywordPlanForecastInterval `protobuf:"varint,1,opt,name=date_interval,json=dateInterval,proto3,enum=google.ads.googleads.v3.enums.KeywordPlanForecastIntervalEnum_KeywordPlanForecastInterval,oneof"`
148}
149
150type KeywordPlanForecastPeriod_DateRange struct {
151	DateRange *common.DateRange `protobuf:"bytes,2,opt,name=date_range,json=dateRange,proto3,oneof"`
152}
153
154func (*KeywordPlanForecastPeriod_DateInterval) isKeywordPlanForecastPeriod_Interval() {}
155
156func (*KeywordPlanForecastPeriod_DateRange) isKeywordPlanForecastPeriod_Interval() {}
157
158func (m *KeywordPlanForecastPeriod) GetInterval() isKeywordPlanForecastPeriod_Interval {
159	if m != nil {
160		return m.Interval
161	}
162	return nil
163}
164
165func (m *KeywordPlanForecastPeriod) GetDateInterval() enums.KeywordPlanForecastIntervalEnum_KeywordPlanForecastInterval {
166	if x, ok := m.GetInterval().(*KeywordPlanForecastPeriod_DateInterval); ok {
167		return x.DateInterval
168	}
169	return enums.KeywordPlanForecastIntervalEnum_UNSPECIFIED
170}
171
172func (m *KeywordPlanForecastPeriod) GetDateRange() *common.DateRange {
173	if x, ok := m.GetInterval().(*KeywordPlanForecastPeriod_DateRange); ok {
174		return x.DateRange
175	}
176	return nil
177}
178
179// XXX_OneofWrappers is for the internal use of the proto package.
180func (*KeywordPlanForecastPeriod) XXX_OneofWrappers() []interface{} {
181	return []interface{}{
182		(*KeywordPlanForecastPeriod_DateInterval)(nil),
183		(*KeywordPlanForecastPeriod_DateRange)(nil),
184	}
185}
186
187func init() {
188	proto.RegisterType((*KeywordPlan)(nil), "google.ads.googleads.v3.resources.KeywordPlan")
189	proto.RegisterType((*KeywordPlanForecastPeriod)(nil), "google.ads.googleads.v3.resources.KeywordPlanForecastPeriod")
190}
191
192func init() {
193	proto.RegisterFile("google/ads/googleads/v3/resources/keyword_plan.proto", fileDescriptor_b7a261a590e572b8)
194}
195
196var fileDescriptor_b7a261a590e572b8 = []byte{
197	// 533 bytes of a gzipped FileDescriptorProto
198	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0xdd, 0x6a, 0xd4, 0x40,
199	0x14, 0x6e, 0xd2, 0x22, 0x76, 0xfa, 0xa3, 0xe4, 0x6a, 0x5b, 0x8b, 0xb4, 0xd5, 0x42, 0x55, 0x98,
200	0x29, 0x4d, 0xf1, 0x22, 0x7a, 0x93, 0x45, 0xed, 0x8f, 0x20, 0x4b, 0x84, 0x45, 0xea, 0xc2, 0x32,
201	0xcd, 0xcc, 0x86, 0x60, 0x32, 0x13, 0x66, 0x26, 0x5b, 0xa4, 0xf4, 0xc2, 0x57, 0xf1, 0xd2, 0x47,
202	0xf1, 0xde, 0x97, 0xe8, 0x0b, 0x78, 0x25, 0x48, 0x26, 0x33, 0xd3, 0x2d, 0x9a, 0xf6, 0xee, 0x4c,
203	0xce, 0x77, 0xbe, 0xf3, 0x9d, 0xf3, 0x9d, 0x80, 0x83, 0x8c, 0xf3, 0xac, 0xa0, 0x08, 0x13, 0x89,
204	0xda, 0xb0, 0x89, 0xa6, 0x21, 0x12, 0x54, 0xf2, 0x5a, 0xa4, 0x54, 0xa2, 0x2f, 0xf4, 0xeb, 0x39,
205	0x17, 0x64, 0x5c, 0x15, 0x98, 0xc1, 0x4a, 0x70, 0xc5, 0x83, 0xad, 0x16, 0x0a, 0x31, 0x91, 0xd0,
206	0x55, 0xc1, 0x69, 0x08, 0x5d, 0xd5, 0xfa, 0xf3, 0x2e, 0xe2, 0x94, 0x97, 0x25, 0x67, 0x88, 0x60,
207	0x45, 0x65, 0x4b, 0xb7, 0xde, 0xef, 0xc2, 0x52, 0x56, 0x97, 0x37, 0x05, 0x8c, 0x27, 0x5c, 0xd0,
208	0x14, 0x4b, 0x35, 0xce, 0x99, 0xa2, 0x62, 0x8a, 0x0b, 0xc3, 0xb1, 0x66, 0x39, 0xaa, 0xdc, 0x69,
209	0x37, 0xa9, 0xc7, 0x26, 0xa5, 0x5f, 0x67, 0xf5, 0x04, 0x9d, 0x0b, 0x5c, 0x55, 0x54, 0xd8, 0xf6,
210	0x1b, 0x33, 0xa5, 0x98, 0x31, 0xae, 0xb0, 0xca, 0x39, 0x33, 0xd9, 0xed, 0x5f, 0x3e, 0x58, 0x7a,
211	0xdf, 0x2a, 0x18, 0x14, 0x98, 0x05, 0x4f, 0xc0, 0x8a, 0xe5, 0x1f, 0x33, 0x5c, 0xd2, 0x9e, 0xb7,
212	0xe9, 0xed, 0x2e, 0x26, 0xcb, 0xf6, 0xe3, 0x07, 0x5c, 0xd2, 0xe0, 0x05, 0xf0, 0x73, 0xd2, 0xf3,
213	0x37, 0xbd, 0xdd, 0xa5, 0xfd, 0x47, 0x66, 0x45, 0xd0, 0xf6, 0x87, 0xc7, 0x4c, 0xbd, 0x3c, 0x18,
214	0xe2, 0xa2, 0xa6, 0x89, 0x9f, 0x93, 0x60, 0x0f, 0x2c, 0x68, 0xa2, 0x79, 0x0d, 0xdf, 0xf8, 0x07,
215	0xfe, 0x51, 0x89, 0x9c, 0x65, 0x2d, 0x5e, 0x23, 0x03, 0x0a, 0x1e, 0xb8, 0x3d, 0x54, 0x54, 0xe4,
216	0x9c, 0xf4, 0x16, 0x74, 0xf1, 0x6b, 0x78, 0xa7, 0x33, 0x70, 0x66, 0x98, 0x77, 0x86, 0x64, 0xa0,
217	0x39, 0x92, 0xd5, 0xc9, 0x8d, 0x77, 0xf4, 0xf9, 0x2a, 0xfe, 0x04, 0x9e, 0x5e, 0xd3, 0x98, 0xa8,
218	0xca, 0x25, 0x4c, 0x79, 0x89, 0x66, 0xb7, 0xb2, 0x97, 0xd6, 0x52, 0xf1, 0x92, 0x0a, 0x89, 0x2e,
219	0x6c, 0x78, 0x69, 0x9d, 0x6b, 0x10, 0x12, 0x5d, 0xcc, 0xfa, 0x78, 0xb9, 0xfd, 0xdb, 0x03, 0x6b,
220	0x9d, 0x52, 0x82, 0x6f, 0x1e, 0x58, 0x69, 0x4e, 0xc4, 0xd9, 0xac, 0xd7, 0xbc, 0xba, 0x7f, 0xda,
221	0x39, 0xa0, 0xbe, 0x95, 0xff, 0x0d, 0x77, 0x6c, 0x18, 0xde, 0xb2, 0xba, 0xbc, 0x2d, 0x7f, 0x34,
222	0x97, 0x2c, 0x37, 0x2d, 0xed, 0x3b, 0x38, 0x01, 0x40, 0x4b, 0x10, 0x98, 0x65, 0xd4, 0x98, 0xf9,
223	0xac, 0xb3, 0x7f, 0x7b, 0xd7, 0xf0, 0x0d, 0x56, 0x34, 0x69, 0x0a, 0x8e, 0xe6, 0x92, 0x45, 0x62,
224	0x1f, 0x7d, 0x00, 0xee, 0xdb, 0x49, 0xfa, 0x7f, 0x3c, 0xb0, 0x93, 0xf2, 0xf2, 0x6e, 0xab, 0xfa,
225	0x0f, 0x67, 0xe4, 0x0e, 0x9a, 0x73, 0x18, 0x78, 0xa7, 0x27, 0xa6, 0x2c, 0xe3, 0x05, 0x66, 0x19,
226	0xe4, 0x22, 0x43, 0x19, 0x65, 0xfa, 0x58, 0xd0, 0xb5, 0x41, 0xb7, 0xfc, 0xd0, 0xaf, 0x5c, 0xf4,
227	0xdd, 0x9f, 0x3f, 0x8c, 0xe3, 0x1f, 0xfe, 0xd6, 0x61, 0x4b, 0x19, 0x13, 0x09, 0xdb, 0xb0, 0x89,
228	0x86, 0x21, 0x4c, 0x2c, 0xf2, 0xa7, 0xc5, 0x8c, 0x62, 0x22, 0x47, 0x0e, 0x33, 0x1a, 0x86, 0x23,
229	0x87, 0xb9, 0xf2, 0x77, 0xda, 0x44, 0x14, 0xc5, 0x44, 0x46, 0x91, 0x43, 0x45, 0xd1, 0x30, 0x8c,
230	0x22, 0x87, 0x3b, 0xbb, 0xa7, 0xc5, 0x86, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x6d, 0x77, 0x4d,
231	0x29, 0x7c, 0x04, 0x00, 0x00,
232}
233