blob: 6289be36ad80e624aa856518e6d31728073a0a45 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v0/resources/keyword_plan.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 Keyword Planner plan.
type KeywordPlan struct {
// The resource name of the Keyword Planner plan.
// KeywordPlan resource names have the form:
//
// `customers/{customer_id}/keywordPlans/{kp_plan_id}`
ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
// The ID of the keyword plan.
Id *wrappers.Int64Value `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// The name of the keyword plan.
//
// This field is required and should not be empty when creating new keyword
// plans.
Name *wrappers.StringValue `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
// The date period used for forecasting the plan.
ForecastPeriod *KeywordPlanForecastPeriod `protobuf:"bytes,4,opt,name=forecast_period,json=forecastPeriod,proto3" json:"forecast_period,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *KeywordPlan) Reset() { *m = KeywordPlan{} }
func (m *KeywordPlan) String() string { return proto.CompactTextString(m) }
func (*KeywordPlan) ProtoMessage() {}
func (*KeywordPlan) Descriptor() ([]byte, []int) {
return fileDescriptor_keyword_plan_9d2df87f9b36e60a, []int{0}
}
func (m *KeywordPlan) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_KeywordPlan.Unmarshal(m, b)
}
func (m *KeywordPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_KeywordPlan.Marshal(b, m, deterministic)
}
func (dst *KeywordPlan) XXX_Merge(src proto.Message) {
xxx_messageInfo_KeywordPlan.Merge(dst, src)
}
func (m *KeywordPlan) XXX_Size() int {
return xxx_messageInfo_KeywordPlan.Size(m)
}
func (m *KeywordPlan) XXX_DiscardUnknown() {
xxx_messageInfo_KeywordPlan.DiscardUnknown(m)
}
var xxx_messageInfo_KeywordPlan proto.InternalMessageInfo
func (m *KeywordPlan) GetResourceName() string {
if m != nil {
return m.ResourceName
}
return ""
}
func (m *KeywordPlan) GetId() *wrappers.Int64Value {
if m != nil {
return m.Id
}
return nil
}
func (m *KeywordPlan) GetName() *wrappers.StringValue {
if m != nil {
return m.Name
}
return nil
}
func (m *KeywordPlan) GetForecastPeriod() *KeywordPlanForecastPeriod {
if m != nil {
return m.ForecastPeriod
}
return nil
}
// The forecasting period associated with the keyword plan.
type KeywordPlanForecastPeriod struct {
// Required. The date used for forecasting the Plan.
//
// Types that are valid to be assigned to Interval:
// *KeywordPlanForecastPeriod_DateInterval
// *KeywordPlanForecastPeriod_DateRange
Interval isKeywordPlanForecastPeriod_Interval `protobuf_oneof:"interval"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *KeywordPlanForecastPeriod) Reset() { *m = KeywordPlanForecastPeriod{} }
func (m *KeywordPlanForecastPeriod) String() string { return proto.CompactTextString(m) }
func (*KeywordPlanForecastPeriod) ProtoMessage() {}
func (*KeywordPlanForecastPeriod) Descriptor() ([]byte, []int) {
return fileDescriptor_keyword_plan_9d2df87f9b36e60a, []int{1}
}
func (m *KeywordPlanForecastPeriod) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_KeywordPlanForecastPeriod.Unmarshal(m, b)
}
func (m *KeywordPlanForecastPeriod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_KeywordPlanForecastPeriod.Marshal(b, m, deterministic)
}
func (dst *KeywordPlanForecastPeriod) XXX_Merge(src proto.Message) {
xxx_messageInfo_KeywordPlanForecastPeriod.Merge(dst, src)
}
func (m *KeywordPlanForecastPeriod) XXX_Size() int {
return xxx_messageInfo_KeywordPlanForecastPeriod.Size(m)
}
func (m *KeywordPlanForecastPeriod) XXX_DiscardUnknown() {
xxx_messageInfo_KeywordPlanForecastPeriod.DiscardUnknown(m)
}
var xxx_messageInfo_KeywordPlanForecastPeriod proto.InternalMessageInfo
type isKeywordPlanForecastPeriod_Interval interface {
isKeywordPlanForecastPeriod_Interval()
}
type KeywordPlanForecastPeriod_DateInterval struct {
DateInterval enums.KeywordPlanForecastIntervalEnum_KeywordPlanForecastInterval `protobuf:"varint,1,opt,name=date_interval,json=dateInterval,proto3,enum=google.ads.googleads.v0.enums.KeywordPlanForecastIntervalEnum_KeywordPlanForecastInterval,oneof"`
}
type KeywordPlanForecastPeriod_DateRange struct {
DateRange *common.DateRange `protobuf:"bytes,2,opt,name=date_range,json=dateRange,proto3,oneof"`
}
func (*KeywordPlanForecastPeriod_DateInterval) isKeywordPlanForecastPeriod_Interval() {}
func (*KeywordPlanForecastPeriod_DateRange) isKeywordPlanForecastPeriod_Interval() {}
func (m *KeywordPlanForecastPeriod) GetInterval() isKeywordPlanForecastPeriod_Interval {
if m != nil {
return m.Interval
}
return nil
}
func (m *KeywordPlanForecastPeriod) GetDateInterval() enums.KeywordPlanForecastIntervalEnum_KeywordPlanForecastInterval {
if x, ok := m.GetInterval().(*KeywordPlanForecastPeriod_DateInterval); ok {
return x.DateInterval
}
return enums.KeywordPlanForecastIntervalEnum_UNSPECIFIED
}
func (m *KeywordPlanForecastPeriod) GetDateRange() *common.DateRange {
if x, ok := m.GetInterval().(*KeywordPlanForecastPeriod_DateRange); ok {
return x.DateRange
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
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{}) {
return _KeywordPlanForecastPeriod_OneofMarshaler, _KeywordPlanForecastPeriod_OneofUnmarshaler, _KeywordPlanForecastPeriod_OneofSizer, []interface{}{
(*KeywordPlanForecastPeriod_DateInterval)(nil),
(*KeywordPlanForecastPeriod_DateRange)(nil),
}
}
func _KeywordPlanForecastPeriod_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*KeywordPlanForecastPeriod)
// interval
switch x := m.Interval.(type) {
case *KeywordPlanForecastPeriod_DateInterval:
b.EncodeVarint(1<<3 | proto.WireVarint)
b.EncodeVarint(uint64(x.DateInterval))
case *KeywordPlanForecastPeriod_DateRange:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.DateRange); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("KeywordPlanForecastPeriod.Interval has unexpected type %T", x)
}
return nil
}
func _KeywordPlanForecastPeriod_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*KeywordPlanForecastPeriod)
switch tag {
case 1: // interval.date_interval
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeVarint()
m.Interval = &KeywordPlanForecastPeriod_DateInterval{enums.KeywordPlanForecastIntervalEnum_KeywordPlanForecastInterval(x)}
return true, err
case 2: // interval.date_range
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(common.DateRange)
err := b.DecodeMessage(msg)
m.Interval = &KeywordPlanForecastPeriod_DateRange{msg}
return true, err
default:
return false, nil
}
}
func _KeywordPlanForecastPeriod_OneofSizer(msg proto.Message) (n int) {
m := msg.(*KeywordPlanForecastPeriod)
// interval
switch x := m.Interval.(type) {
case *KeywordPlanForecastPeriod_DateInterval:
n += 1 // tag and wire
n += proto.SizeVarint(uint64(x.DateInterval))
case *KeywordPlanForecastPeriod_DateRange:
s := proto.Size(x.DateRange)
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((*KeywordPlan)(nil), "google.ads.googleads.v0.resources.KeywordPlan")
proto.RegisterType((*KeywordPlanForecastPeriod)(nil), "google.ads.googleads.v0.resources.KeywordPlanForecastPeriod")
}
func init() {
proto.RegisterFile("google/ads/googleads/v0/resources/keyword_plan.proto", fileDescriptor_keyword_plan_9d2df87f9b36e60a)
}
var fileDescriptor_keyword_plan_9d2df87f9b36e60a = []byte{
// 453 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0xcd, 0x6a, 0xd5, 0x40,
0x14, 0xc7, 0x3b, 0x69, 0x11, 0x3b, 0xfd, 0x50, 0xb2, 0xba, 0x56, 0x91, 0xb6, 0x22, 0x54, 0x85,
0x49, 0xa8, 0xc5, 0x8d, 0x6e, 0xee, 0x45, 0xed, 0x87, 0x20, 0x21, 0xc2, 0x5d, 0x94, 0x40, 0x98,
0x66, 0xce, 0x1d, 0x82, 0xc9, 0x4c, 0x98, 0x49, 0x6e, 0x71, 0xe9, 0xab, 0xb8, 0xf4, 0x51, 0xdc,
0xfb, 0x2c, 0xba, 0x94, 0xcc, 0x47, 0x68, 0xb1, 0x69, 0x77, 0xe7, 0xdc, 0xfb, 0x3b, 0xff, 0xf3,
0x3f, 0xe7, 0x4c, 0xf0, 0x11, 0x97, 0x92, 0x57, 0x10, 0x51, 0xa6, 0x23, 0x1b, 0xf6, 0xd1, 0x32,
0x8e, 0x14, 0x68, 0xd9, 0xa9, 0x02, 0x74, 0xf4, 0x15, 0xbe, 0x5d, 0x4a, 0xc5, 0xf2, 0xa6, 0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