You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

284 lines
12 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/ads/googleads/v0/resources/keyword_plan.proto
  3. package resources // import "google.golang.org/genproto/googleapis/ads/googleads/v0/resources"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import wrappers "github.com/golang/protobuf/ptypes/wrappers"
  8. import common "google.golang.org/genproto/googleapis/ads/googleads/v0/common"
  9. import enums "google.golang.org/genproto/googleapis/ads/googleads/v0/enums"
  10. // Reference imports to suppress errors if they are not otherwise used.
  11. var _ = proto.Marshal
  12. var _ = fmt.Errorf
  13. var _ = math.Inf
  14. // This is a compile-time assertion to ensure that this generated file
  15. // is compatible with the proto package it is being compiled against.
  16. // A compilation error at this line likely means your copy of the
  17. // proto package needs to be updated.
  18. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  19. // A Keyword Planner plan.
  20. // Max number of saved keyword plans: 10000.
  21. // It's possible to remove plans if limit is reached.
  22. type KeywordPlan struct {
  23. // The resource name of the Keyword Planner plan.
  24. // KeywordPlan resource names have the form:
  25. //
  26. // `customers/{customer_id}/keywordPlans/{kp_plan_id}`
  27. ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
  28. // The ID of the keyword plan.
  29. Id *wrappers.Int64Value `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
  30. // The name of the keyword plan.
  31. //
  32. // This field is required and should not be empty when creating new keyword
  33. // plans.
  34. Name *wrappers.StringValue `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
  35. // The date period used for forecasting the plan.
  36. ForecastPeriod *KeywordPlanForecastPeriod `protobuf:"bytes,4,opt,name=forecast_period,json=forecastPeriod,proto3" json:"forecast_period,omitempty"`
  37. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  38. XXX_unrecognized []byte `json:"-"`
  39. XXX_sizecache int32 `json:"-"`
  40. }
  41. func (m *KeywordPlan) Reset() { *m = KeywordPlan{} }
  42. func (m *KeywordPlan) String() string { return proto.CompactTextString(m) }
  43. func (*KeywordPlan) ProtoMessage() {}
  44. func (*KeywordPlan) Descriptor() ([]byte, []int) {
  45. return fileDescriptor_keyword_plan_0987a890c66a71a2, []int{0}
  46. }
  47. func (m *KeywordPlan) XXX_Unmarshal(b []byte) error {
  48. return xxx_messageInfo_KeywordPlan.Unmarshal(m, b)
  49. }
  50. func (m *KeywordPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  51. return xxx_messageInfo_KeywordPlan.Marshal(b, m, deterministic)
  52. }
  53. func (dst *KeywordPlan) XXX_Merge(src proto.Message) {
  54. xxx_messageInfo_KeywordPlan.Merge(dst, src)
  55. }
  56. func (m *KeywordPlan) XXX_Size() int {
  57. return xxx_messageInfo_KeywordPlan.Size(m)
  58. }
  59. func (m *KeywordPlan) XXX_DiscardUnknown() {
  60. xxx_messageInfo_KeywordPlan.DiscardUnknown(m)
  61. }
  62. var xxx_messageInfo_KeywordPlan proto.InternalMessageInfo
  63. func (m *KeywordPlan) GetResourceName() string {
  64. if m != nil {
  65. return m.ResourceName
  66. }
  67. return ""
  68. }
  69. func (m *KeywordPlan) GetId() *wrappers.Int64Value {
  70. if m != nil {
  71. return m.Id
  72. }
  73. return nil
  74. }
  75. func (m *KeywordPlan) GetName() *wrappers.StringValue {
  76. if m != nil {
  77. return m.Name
  78. }
  79. return nil
  80. }
  81. func (m *KeywordPlan) GetForecastPeriod() *KeywordPlanForecastPeriod {
  82. if m != nil {
  83. return m.ForecastPeriod
  84. }
  85. return nil
  86. }
  87. // The forecasting period associated with the keyword plan.
  88. type KeywordPlanForecastPeriod struct {
  89. // Required. The date used for forecasting the Plan.
  90. //
  91. // Types that are valid to be assigned to Interval:
  92. // *KeywordPlanForecastPeriod_DateInterval
  93. // *KeywordPlanForecastPeriod_DateRange
  94. Interval isKeywordPlanForecastPeriod_Interval `protobuf_oneof:"interval"`
  95. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  96. XXX_unrecognized []byte `json:"-"`
  97. XXX_sizecache int32 `json:"-"`
  98. }
  99. func (m *KeywordPlanForecastPeriod) Reset() { *m = KeywordPlanForecastPeriod{} }
  100. func (m *KeywordPlanForecastPeriod) String() string { return proto.CompactTextString(m) }
  101. func (*KeywordPlanForecastPeriod) ProtoMessage() {}
  102. func (*KeywordPlanForecastPeriod) Descriptor() ([]byte, []int) {
  103. return fileDescriptor_keyword_plan_0987a890c66a71a2, []int{1}
  104. }
  105. func (m *KeywordPlanForecastPeriod) XXX_Unmarshal(b []byte) error {
  106. return xxx_messageInfo_KeywordPlanForecastPeriod.Unmarshal(m, b)
  107. }
  108. func (m *KeywordPlanForecastPeriod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  109. return xxx_messageInfo_KeywordPlanForecastPeriod.Marshal(b, m, deterministic)
  110. }
  111. func (dst *KeywordPlanForecastPeriod) XXX_Merge(src proto.Message) {
  112. xxx_messageInfo_KeywordPlanForecastPeriod.Merge(dst, src)
  113. }
  114. func (m *KeywordPlanForecastPeriod) XXX_Size() int {
  115. return xxx_messageInfo_KeywordPlanForecastPeriod.Size(m)
  116. }
  117. func (m *KeywordPlanForecastPeriod) XXX_DiscardUnknown() {
  118. xxx_messageInfo_KeywordPlanForecastPeriod.DiscardUnknown(m)
  119. }
  120. var xxx_messageInfo_KeywordPlanForecastPeriod proto.InternalMessageInfo
  121. type isKeywordPlanForecastPeriod_Interval interface {
  122. isKeywordPlanForecastPeriod_Interval()
  123. }
  124. type KeywordPlanForecastPeriod_DateInterval struct {
  125. DateInterval enums.KeywordPlanForecastIntervalEnum_KeywordPlanForecastInterval `protobuf:"varint,1,opt,name=date_interval,json=dateInterval,proto3,enum=google.ads.googleads.v0.enums.KeywordPlanForecastIntervalEnum_KeywordPlanForecastInterval,oneof"`
  126. }
  127. type KeywordPlanForecastPeriod_DateRange struct {
  128. DateRange *common.DateRange `protobuf:"bytes,2,opt,name=date_range,json=dateRange,proto3,oneof"`
  129. }
  130. func (*KeywordPlanForecastPeriod_DateInterval) isKeywordPlanForecastPeriod_Interval() {}
  131. func (*KeywordPlanForecastPeriod_DateRange) isKeywordPlanForecastPeriod_Interval() {}
  132. func (m *KeywordPlanForecastPeriod) GetInterval() isKeywordPlanForecastPeriod_Interval {
  133. if m != nil {
  134. return m.Interval
  135. }
  136. return nil
  137. }
  138. func (m *KeywordPlanForecastPeriod) GetDateInterval() enums.KeywordPlanForecastIntervalEnum_KeywordPlanForecastInterval {
  139. if x, ok := m.GetInterval().(*KeywordPlanForecastPeriod_DateInterval); ok {
  140. return x.DateInterval
  141. }
  142. return enums.KeywordPlanForecastIntervalEnum_UNSPECIFIED
  143. }
  144. func (m *KeywordPlanForecastPeriod) GetDateRange() *common.DateRange {
  145. if x, ok := m.GetInterval().(*KeywordPlanForecastPeriod_DateRange); ok {
  146. return x.DateRange
  147. }
  148. return nil
  149. }
  150. // XXX_OneofFuncs is for the internal use of the proto package.
  151. func (*KeywordPlanForecastPeriod) 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{}) {
  152. return _KeywordPlanForecastPeriod_OneofMarshaler, _KeywordPlanForecastPeriod_OneofUnmarshaler, _KeywordPlanForecastPeriod_OneofSizer, []interface{}{
  153. (*KeywordPlanForecastPeriod_DateInterval)(nil),
  154. (*KeywordPlanForecastPeriod_DateRange)(nil),
  155. }
  156. }
  157. func _KeywordPlanForecastPeriod_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  158. m := msg.(*KeywordPlanForecastPeriod)
  159. // interval
  160. switch x := m.Interval.(type) {
  161. case *KeywordPlanForecastPeriod_DateInterval:
  162. b.EncodeVarint(1<<3 | proto.WireVarint)
  163. b.EncodeVarint(uint64(x.DateInterval))
  164. case *KeywordPlanForecastPeriod_DateRange:
  165. b.EncodeVarint(2<<3 | proto.WireBytes)
  166. if err := b.EncodeMessage(x.DateRange); err != nil {
  167. return err
  168. }
  169. case nil:
  170. default:
  171. return fmt.Errorf("KeywordPlanForecastPeriod.Interval has unexpected type %T", x)
  172. }
  173. return nil
  174. }
  175. func _KeywordPlanForecastPeriod_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  176. m := msg.(*KeywordPlanForecastPeriod)
  177. switch tag {
  178. case 1: // interval.date_interval
  179. if wire != proto.WireVarint {
  180. return true, proto.ErrInternalBadWireType
  181. }
  182. x, err := b.DecodeVarint()
  183. m.Interval = &KeywordPlanForecastPeriod_DateInterval{enums.KeywordPlanForecastIntervalEnum_KeywordPlanForecastInterval(x)}
  184. return true, err
  185. case 2: // interval.date_range
  186. if wire != proto.WireBytes {
  187. return true, proto.ErrInternalBadWireType
  188. }
  189. msg := new(common.DateRange)
  190. err := b.DecodeMessage(msg)
  191. m.Interval = &KeywordPlanForecastPeriod_DateRange{msg}
  192. return true, err
  193. default:
  194. return false, nil
  195. }
  196. }
  197. func _KeywordPlanForecastPeriod_OneofSizer(msg proto.Message) (n int) {
  198. m := msg.(*KeywordPlanForecastPeriod)
  199. // interval
  200. switch x := m.Interval.(type) {
  201. case *KeywordPlanForecastPeriod_DateInterval:
  202. n += 1 // tag and wire
  203. n += proto.SizeVarint(uint64(x.DateInterval))
  204. case *KeywordPlanForecastPeriod_DateRange:
  205. s := proto.Size(x.DateRange)
  206. n += 1 // tag and wire
  207. n += proto.SizeVarint(uint64(s))
  208. n += s
  209. case nil:
  210. default:
  211. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  212. }
  213. return n
  214. }
  215. func init() {
  216. proto.RegisterType((*KeywordPlan)(nil), "google.ads.googleads.v0.resources.KeywordPlan")
  217. proto.RegisterType((*KeywordPlanForecastPeriod)(nil), "google.ads.googleads.v0.resources.KeywordPlanForecastPeriod")
  218. }
  219. func init() {
  220. proto.RegisterFile("google/ads/googleads/v0/resources/keyword_plan.proto", fileDescriptor_keyword_plan_0987a890c66a71a2)
  221. }
  222. var fileDescriptor_keyword_plan_0987a890c66a71a2 = []byte{
  223. // 473 bytes of a gzipped FileDescriptorProto
  224. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0xdd, 0x6a, 0xd4, 0x40,
  225. 0x14, 0xc7, 0x9b, 0xb4, 0x88, 0x9d, 0x7e, 0x28, 0xb9, 0x5a, 0xab, 0x48, 0x5b, 0x29, 0x54, 0x85,
  226. 0x49, 0xa8, 0xc5, 0x8b, 0xe8, 0x4d, 0x16, 0xb5, 0x1f, 0x82, 0x2c, 0x11, 0xf6, 0xa2, 0x2c, 0x2c,
  227. 0xd3, 0x9d, 0xb3, 0x43, 0x30, 0x99, 0x09, 0x33, 0xc9, 0x16, 0x2f, 0x7d, 0x15, 0x2f, 0x7d, 0x14,
  228. 0x1f, 0xc5, 0x17, 0xd0, 0x1b, 0x41, 0x32, 0x5f, 0xb4, 0xd8, 0x74, 0xef, 0xce, 0xd9, 0xfc, 0xce,
  229. 0xff, 0xfc, 0xcf, 0x39, 0xb3, 0xe8, 0x98, 0x09, 0xc1, 0x4a, 0x88, 0x09, 0x55, 0xb1, 0x09, 0xbb,
  230. 0x68, 0x91, 0xc4, 0x12, 0x94, 0x68, 0xe5, 0x0c, 0x54, 0xfc, 0x05, 0xbe, 0x5e, 0x09, 0x49, 0xa7,
  231. 0x75, 0x49, 0x38, 0xae, 0xa5, 0x68, 0x44, 0xb4, 0x67, 0x50, 0x4c, 0xa8, 0xc2, 0xbe, 0x0a, 0x2f,
  232. 0x12, 0xec, 0xab, 0x76, 0x5e, 0xf4, 0x09, 0xcf, 0x44, 0x55, 0x09, 0x1e, 0x53, 0xd2, 0x80, 0x32,
  233. 0x72, 0x3b, 0xc3, 0x3e, 0x16, 0x78, 0x5b, 0xdd, 0x34, 0x30, 0x9d, 0x0b, 0x09, 0x33, 0xa2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 0x41, 0x12, 0xce,
  245. 0xc0, 0xee, 0xfb, 0x79, 0x6f, 0x7f, 0xf3, 0x82, 0xf0, 0x3b, 0xd2, 0x40, 0xde, 0x15, 0x9c, 0xae,
  246. 0xe4, 0xeb, 0xd4, 0x25, 0x43, 0x84, 0xee, 0xbb, 0x49, 0x86, 0x7f, 0x03, 0x74, 0x30, 0x13, 0xd5,
  247. 0xf2, 0x6d, 0x0e, 0x1f, 0x5e, 0xb3, 0x3b, 0xea, 0x2e, 0x36, 0x0a, 0x2e, 0xce, 0x6d, 0x19, 0x13,
  248. 0x25, 0xe1, 0x0c, 0x0b, 0xc9, 0x62, 0x06, 0x5c, 0xdf, 0xd3, 0x3d, 0xd3, 0xba, 0x50, 0x77, 0xfc,
  249. 0x75, 0xde, 0xf8, 0xe8, 0x7b, 0xb8, 0x7a, 0x92, 0x65, 0x3f, 0xc2, 0xbd, 0x13, 0x23, 0x99, 0x51,
  250. 0x85, 0x4d, 0xd8, 0x45, 0xe3, 0x04, 0xe7, 0x8e, 0xfc, 0xe9, 0x98, 0x49, 0x46, 0xd5, 0xc4, 0x33,
  251. 0x93, 0x71, 0x32, 0xf1, 0xcc, 0xaf, 0xf0, 0xc0, 0x7c, 0x48, 0xd3, 0x8c, 0xaa, 0x34, 0xf5, 0x54,
  252. 0x9a, 0x8e, 0x93, 0x34, 0xf5, 0xdc, 0xe5, 0x3d, 0x6d, 0xf6, 0xd5, 0xbf, 0x00, 0x00, 0x00, 0xff,
  253. 0xff, 0xc4, 0xd4, 0x18, 0x9c, 0xe6, 0x03, 0x00, 0x00,
  254. }