1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/ads/googleads/v3/resources/campaign_bid_modifier.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	_ "google.golang.org/genproto/googleapis/api/annotations"
14)
15
16// Reference imports to suppress errors if they are not otherwise used.
17var _ = proto.Marshal
18var _ = fmt.Errorf
19var _ = math.Inf
20
21// This is a compile-time assertion to ensure that this generated file
22// is compatible with the proto package it is being compiled against.
23// A compilation error at this line likely means your copy of the
24// proto package needs to be updated.
25const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
26
27// Represents a bid-modifiable only criterion at the campaign level.
28type CampaignBidModifier struct {
29	// Immutable. The resource name of the campaign bid modifier.
30	// Campaign bid modifier resource names have the form:
31	//
32	// `customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}`
33	ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
34	// Output only. The campaign to which this criterion belongs.
35	Campaign *wrappers.StringValue `protobuf:"bytes,2,opt,name=campaign,proto3" json:"campaign,omitempty"`
36	// Output only. The ID of the criterion to bid modify.
37	//
38	// This field is ignored for mutates.
39	CriterionId *wrappers.Int64Value `protobuf:"bytes,3,opt,name=criterion_id,json=criterionId,proto3" json:"criterion_id,omitempty"`
40	// The modifier for the bid when the criterion matches.
41	BidModifier *wrappers.DoubleValue `protobuf:"bytes,4,opt,name=bid_modifier,json=bidModifier,proto3" json:"bid_modifier,omitempty"`
42	// The criterion of this campaign bid modifier.
43	//
44	// Types that are valid to be assigned to Criterion:
45	//	*CampaignBidModifier_InteractionType
46	Criterion            isCampaignBidModifier_Criterion `protobuf_oneof:"criterion"`
47	XXX_NoUnkeyedLiteral struct{}                        `json:"-"`
48	XXX_unrecognized     []byte                          `json:"-"`
49	XXX_sizecache        int32                           `json:"-"`
50}
51
52func (m *CampaignBidModifier) Reset()         { *m = CampaignBidModifier{} }
53func (m *CampaignBidModifier) String() string { return proto.CompactTextString(m) }
54func (*CampaignBidModifier) ProtoMessage()    {}
55func (*CampaignBidModifier) Descriptor() ([]byte, []int) {
56	return fileDescriptor_6a7c4dd3c8a563d8, []int{0}
57}
58
59func (m *CampaignBidModifier) XXX_Unmarshal(b []byte) error {
60	return xxx_messageInfo_CampaignBidModifier.Unmarshal(m, b)
61}
62func (m *CampaignBidModifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
63	return xxx_messageInfo_CampaignBidModifier.Marshal(b, m, deterministic)
64}
65func (m *CampaignBidModifier) XXX_Merge(src proto.Message) {
66	xxx_messageInfo_CampaignBidModifier.Merge(m, src)
67}
68func (m *CampaignBidModifier) XXX_Size() int {
69	return xxx_messageInfo_CampaignBidModifier.Size(m)
70}
71func (m *CampaignBidModifier) XXX_DiscardUnknown() {
72	xxx_messageInfo_CampaignBidModifier.DiscardUnknown(m)
73}
74
75var xxx_messageInfo_CampaignBidModifier proto.InternalMessageInfo
76
77func (m *CampaignBidModifier) GetResourceName() string {
78	if m != nil {
79		return m.ResourceName
80	}
81	return ""
82}
83
84func (m *CampaignBidModifier) GetCampaign() *wrappers.StringValue {
85	if m != nil {
86		return m.Campaign
87	}
88	return nil
89}
90
91func (m *CampaignBidModifier) GetCriterionId() *wrappers.Int64Value {
92	if m != nil {
93		return m.CriterionId
94	}
95	return nil
96}
97
98func (m *CampaignBidModifier) GetBidModifier() *wrappers.DoubleValue {
99	if m != nil {
100		return m.BidModifier
101	}
102	return nil
103}
104
105type isCampaignBidModifier_Criterion interface {
106	isCampaignBidModifier_Criterion()
107}
108
109type CampaignBidModifier_InteractionType struct {
110	InteractionType *common.InteractionTypeInfo `protobuf:"bytes,5,opt,name=interaction_type,json=interactionType,proto3,oneof"`
111}
112
113func (*CampaignBidModifier_InteractionType) isCampaignBidModifier_Criterion() {}
114
115func (m *CampaignBidModifier) GetCriterion() isCampaignBidModifier_Criterion {
116	if m != nil {
117		return m.Criterion
118	}
119	return nil
120}
121
122func (m *CampaignBidModifier) GetInteractionType() *common.InteractionTypeInfo {
123	if x, ok := m.GetCriterion().(*CampaignBidModifier_InteractionType); ok {
124		return x.InteractionType
125	}
126	return nil
127}
128
129// XXX_OneofWrappers is for the internal use of the proto package.
130func (*CampaignBidModifier) XXX_OneofWrappers() []interface{} {
131	return []interface{}{
132		(*CampaignBidModifier_InteractionType)(nil),
133	}
134}
135
136func init() {
137	proto.RegisterType((*CampaignBidModifier)(nil), "google.ads.googleads.v3.resources.CampaignBidModifier")
138}
139
140func init() {
141	proto.RegisterFile("google/ads/googleads/v3/resources/campaign_bid_modifier.proto", fileDescriptor_6a7c4dd3c8a563d8)
142}
143
144var fileDescriptor_6a7c4dd3c8a563d8 = []byte{
145	// 534 bytes of a gzipped FileDescriptorProto
146	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x4f, 0x8b, 0xd3, 0x40,
147	0x14, 0xb7, 0xed, 0x56, 0xdc, 0x69, 0x45, 0x89, 0x97, 0x58, 0x17, 0xdd, 0x2a, 0x0b, 0x2b, 0xe8,
148	0x0c, 0x98, 0xc5, 0x43, 0x44, 0x64, 0xb2, 0xc2, 0x5a, 0x41, 0x59, 0xa2, 0x14, 0x94, 0x42, 0x98,
149	0x64, 0xa6, 0x71, 0xa0, 0x99, 0x89, 0x33, 0x69, 0x65, 0x91, 0x3d, 0xfa, 0x45, 0x3c, 0xfa, 0x3d,
150	0xbc, 0xf8, 0x29, 0x7a, 0xde, 0x8f, 0xb0, 0x27, 0x49, 0x32, 0x99, 0xad, 0xd8, 0xba, 0x78, 0x7b,
151	0xe1, 0xfd, 0xfe, 0xbc, 0xf7, 0xcb, 0x3c, 0xf0, 0x3c, 0x95, 0x32, 0x9d, 0x31, 0x44, 0xa8, 0x46,
152	0x75, 0x59, 0x56, 0x0b, 0x0f, 0x29, 0xa6, 0xe5, 0x5c, 0x25, 0x4c, 0xa3, 0x84, 0x64, 0x39, 0xe1,
153	0xa9, 0x88, 0x62, 0x4e, 0xa3, 0x4c, 0x52, 0x3e, 0xe5, 0x4c, 0xc1, 0x5c, 0xc9, 0x42, 0x3a, 0xc3,
154	0x9a, 0x03, 0x09, 0xd5, 0xd0, 0xd2, 0xe1, 0xc2, 0x83, 0x96, 0x3e, 0x78, 0xbc, 0xc9, 0x21, 0x91,
155	0x59, 0x26, 0x05, 0x4a, 0x14, 0x2f, 0x98, 0xe2, 0xa4, 0x56, 0x1c, 0xdc, 0x6b, 0xe0, 0x39, 0x47,
156	0x53, 0xce, 0x66, 0x34, 0x8a, 0xd9, 0x27, 0xb2, 0xe0, 0xd2, 0x58, 0x0e, 0x6e, 0xaf, 0x00, 0x1a,
157	0x17, 0xd3, 0xba, 0x6b, 0x5a, 0xd5, 0x57, 0x3c, 0x9f, 0xa2, 0x2f, 0x8a, 0xe4, 0x39, 0x53, 0xda,
158	0xf4, 0x77, 0x56, 0xa8, 0x44, 0x08, 0x59, 0x90, 0x82, 0x4b, 0x61, 0xba, 0xf7, 0x7f, 0x6e, 0x81,
159	0x5b, 0x87, 0x66, 0xd7, 0x80, 0xd3, 0x37, 0x66, 0x53, 0xe7, 0x03, 0xb8, 0xde, 0xf8, 0x44, 0x82,
160	0x64, 0xcc, 0x6d, 0xed, 0xb6, 0xf6, 0xb7, 0x83, 0x83, 0x25, 0xee, 0x9e, 0x63, 0x08, 0x1e, 0x5d,
161	0xec, 0x6d, 0xaa, 0x9c, 0x6b, 0x98, 0xc8, 0x0c, 0xad, 0x11, 0x0b, 0xfb, 0x8d, 0xd4, 0x5b, 0x92,
162	0x31, 0x27, 0x01, 0xd7, 0x9a, 0x74, 0xdd, 0xf6, 0x6e, 0x6b, 0xbf, 0xf7, 0x64, 0xc7, 0x88, 0xc0,
163	0x66, 0x07, 0xf8, 0xae, 0x50, 0x5c, 0xa4, 0x63, 0x32, 0x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x77, 0xfb, 0xcc,
175	0x56, 0xdf, 0xdb, 0x9d, 0x23, 0x8c, 0x7f, 0xb4, 0x87, 0x47, 0xb5, 0x24, 0xa6, 0x1a, 0xd6, 0x65,
176	0x59, 0x8d, 0x3d, 0x18, 0x36, 0xc8, 0x5f, 0x0d, 0x66, 0x82, 0xa9, 0x9e, 0x58, 0xcc, 0x64, 0xec,
177	0x4d, 0x2c, 0xe6, 0xac, 0xbd, 0x57, 0x37, 0x7c, 0x1f, 0x53, 0xed, 0xfb, 0x16, 0xe5, 0xfb, 0x63,
178	0xcf, 0xf7, 0x2d, 0x2e, 0xbe, 0x5a, 0x0d, 0xeb, 0xfd, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x5c, 0x0c,
179	0xc5, 0xc5, 0x63, 0x04, 0x00, 0x00,
180}
181