1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/ads/googleads/v1/common/frequency_cap.proto 3 4package common 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 enums "google.golang.org/genproto/googleapis/ads/googleads/v1/enums" 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// A rule specifying the maximum number of times an ad (or some set of ads) can 28// be shown to a user over a particular time period. 29type FrequencyCapEntry struct { 30 // The key of a particular frequency cap. There can be no more 31 // than one frequency cap with the same key. 32 Key *FrequencyCapKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 33 // Maximum number of events allowed during the time range by this cap. 34 Cap *wrappers.Int32Value `protobuf:"bytes,2,opt,name=cap,proto3" json:"cap,omitempty"` 35 XXX_NoUnkeyedLiteral struct{} `json:"-"` 36 XXX_unrecognized []byte `json:"-"` 37 XXX_sizecache int32 `json:"-"` 38} 39 40func (m *FrequencyCapEntry) Reset() { *m = FrequencyCapEntry{} } 41func (m *FrequencyCapEntry) String() string { return proto.CompactTextString(m) } 42func (*FrequencyCapEntry) ProtoMessage() {} 43func (*FrequencyCapEntry) Descriptor() ([]byte, []int) { 44 return fileDescriptor_945ed9a5640a9dfd, []int{0} 45} 46 47func (m *FrequencyCapEntry) XXX_Unmarshal(b []byte) error { 48 return xxx_messageInfo_FrequencyCapEntry.Unmarshal(m, b) 49} 50func (m *FrequencyCapEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 51 return xxx_messageInfo_FrequencyCapEntry.Marshal(b, m, deterministic) 52} 53func (m *FrequencyCapEntry) XXX_Merge(src proto.Message) { 54 xxx_messageInfo_FrequencyCapEntry.Merge(m, src) 55} 56func (m *FrequencyCapEntry) XXX_Size() int { 57 return xxx_messageInfo_FrequencyCapEntry.Size(m) 58} 59func (m *FrequencyCapEntry) XXX_DiscardUnknown() { 60 xxx_messageInfo_FrequencyCapEntry.DiscardUnknown(m) 61} 62 63var xxx_messageInfo_FrequencyCapEntry proto.InternalMessageInfo 64 65func (m *FrequencyCapEntry) GetKey() *FrequencyCapKey { 66 if m != nil { 67 return m.Key 68 } 69 return nil 70} 71 72func (m *FrequencyCapEntry) GetCap() *wrappers.Int32Value { 73 if m != nil { 74 return m.Cap 75 } 76 return nil 77} 78 79// A group of fields used as keys for a frequency cap. 80// There can be no more than one frequency cap with the same key. 81type FrequencyCapKey struct { 82 // The level on which the cap is to be applied (e.g. ad group ad, ad group). 83 // The cap is applied to all the entities of this level. 84 Level enums.FrequencyCapLevelEnum_FrequencyCapLevel `protobuf:"varint,1,opt,name=level,proto3,enum=google.ads.googleads.v1.enums.FrequencyCapLevelEnum_FrequencyCapLevel" json:"level,omitempty"` 85 // The type of event that the cap applies to (e.g. impression). 86 EventType enums.FrequencyCapEventTypeEnum_FrequencyCapEventType `protobuf:"varint,3,opt,name=event_type,json=eventType,proto3,enum=google.ads.googleads.v1.enums.FrequencyCapEventTypeEnum_FrequencyCapEventType" json:"event_type,omitempty"` 87 // Unit of time the cap is defined at (e.g. day, week). 88 TimeUnit enums.FrequencyCapTimeUnitEnum_FrequencyCapTimeUnit `protobuf:"varint,2,opt,name=time_unit,json=timeUnit,proto3,enum=google.ads.googleads.v1.enums.FrequencyCapTimeUnitEnum_FrequencyCapTimeUnit" json:"time_unit,omitempty"` 89 // Number of time units the cap lasts. 90 TimeLength *wrappers.Int32Value `protobuf:"bytes,4,opt,name=time_length,json=timeLength,proto3" json:"time_length,omitempty"` 91 XXX_NoUnkeyedLiteral struct{} `json:"-"` 92 XXX_unrecognized []byte `json:"-"` 93 XXX_sizecache int32 `json:"-"` 94} 95 96func (m *FrequencyCapKey) Reset() { *m = FrequencyCapKey{} } 97func (m *FrequencyCapKey) String() string { return proto.CompactTextString(m) } 98func (*FrequencyCapKey) ProtoMessage() {} 99func (*FrequencyCapKey) Descriptor() ([]byte, []int) { 100 return fileDescriptor_945ed9a5640a9dfd, []int{1} 101} 102 103func (m *FrequencyCapKey) XXX_Unmarshal(b []byte) error { 104 return xxx_messageInfo_FrequencyCapKey.Unmarshal(m, b) 105} 106func (m *FrequencyCapKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 107 return xxx_messageInfo_FrequencyCapKey.Marshal(b, m, deterministic) 108} 109func (m *FrequencyCapKey) XXX_Merge(src proto.Message) { 110 xxx_messageInfo_FrequencyCapKey.Merge(m, src) 111} 112func (m *FrequencyCapKey) XXX_Size() int { 113 return xxx_messageInfo_FrequencyCapKey.Size(m) 114} 115func (m *FrequencyCapKey) XXX_DiscardUnknown() { 116 xxx_messageInfo_FrequencyCapKey.DiscardUnknown(m) 117} 118 119var xxx_messageInfo_FrequencyCapKey proto.InternalMessageInfo 120 121func (m *FrequencyCapKey) GetLevel() enums.FrequencyCapLevelEnum_FrequencyCapLevel { 122 if m != nil { 123 return m.Level 124 } 125 return enums.FrequencyCapLevelEnum_UNSPECIFIED 126} 127 128func (m *FrequencyCapKey) GetEventType() enums.FrequencyCapEventTypeEnum_FrequencyCapEventType { 129 if m != nil { 130 return m.EventType 131 } 132 return enums.FrequencyCapEventTypeEnum_UNSPECIFIED 133} 134 135func (m *FrequencyCapKey) GetTimeUnit() enums.FrequencyCapTimeUnitEnum_FrequencyCapTimeUnit { 136 if m != nil { 137 return m.TimeUnit 138 } 139 return enums.FrequencyCapTimeUnitEnum_UNSPECIFIED 140} 141 142func (m *FrequencyCapKey) GetTimeLength() *wrappers.Int32Value { 143 if m != nil { 144 return m.TimeLength 145 } 146 return nil 147} 148 149func init() { 150 proto.RegisterType((*FrequencyCapEntry)(nil), "google.ads.googleads.v1.common.FrequencyCapEntry") 151 proto.RegisterType((*FrequencyCapKey)(nil), "google.ads.googleads.v1.common.FrequencyCapKey") 152} 153 154func init() { 155 proto.RegisterFile("google/ads/googleads/v1/common/frequency_cap.proto", fileDescriptor_945ed9a5640a9dfd) 156} 157 158var fileDescriptor_945ed9a5640a9dfd = []byte{ 159 // 466 bytes of a gzipped FileDescriptorProto 160 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0xcf, 0x6a, 0xd4, 0x40, 161 0x18, 0x27, 0x1b, 0x15, 0x3b, 0x85, 0x8a, 0x39, 0x2d, 0x55, 0x8a, 0xec, 0xc9, 0x8b, 0x33, 0x24, 162 0x3d, 0x08, 0x69, 0x2f, 0x69, 0xdd, 0x16, 0x71, 0x91, 0x12, 0xea, 0x1e, 0x24, 0xb0, 0x4c, 0x93, 163 0xaf, 0x31, 0x98, 0xcc, 0x8c, 0xc9, 0x64, 0x25, 0x0f, 0x20, 0xbe, 0x87, 0x47, 0x1f, 0xc5, 0x47, 164 0x11, 0x1f, 0x42, 0x66, 0x26, 0x13, 0x5d, 0x97, 0xb5, 0xe4, 0x94, 0x5f, 0xe6, 0xfb, 0xfd, 0xf9, 165 0xf2, 0x7d, 0x13, 0x14, 0xe4, 0x9c, 0xe7, 0x25, 0x10, 0x9a, 0x35, 0xc4, 0x40, 0x85, 0xd6, 0x3e, 166 0x49, 0x79, 0x55, 0x71, 0x46, 0x6e, 0x6b, 0xf8, 0xd4, 0x02, 0x4b, 0xbb, 0x55, 0x4a, 0x05, 0x16, 167 0x35, 0x97, 0xdc, 0x3b, 0x32, 0x44, 0x4c, 0xb3, 0x06, 0x0f, 0x1a, 0xbc, 0xf6, 0xb1, 0xd1, 0x1c, 168 0x9e, 0xee, 0xf2, 0x04, 0xd6, 0x56, 0xcd, 0xa6, 0xe5, 0x0a, 0xd6, 0xc0, 0xe4, 0x4a, 0x76, 0x02, 169 0x8c, 0xfb, 0xe1, 0xcb,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 0x72, 0x2b, 0xcc, 0x16, 0xe2, 0x87, 0xb2, 0x47, 181 0xde, 0x29, 0xda, 0xd7, 0x51, 0x25, 0xb0, 0x5c, 0x7e, 0x98, 0xde, 0xbb, 0x7b, 0x05, 0x48, 0xf1, 182 0x17, 0x9a, 0x7e, 0xf6, 0xcb, 0x41, 0xb3, 0x94, 0x57, 0x77, 0x2c, 0xfd, 0x6c, 0xe3, 0xd6, 0x5c, 183 0x29, 0xcf, 0x2b, 0xe7, 0xfd, 0xab, 0x5e, 0x94, 0xf3, 0x92, 0xb2, 0x1c, 0xf3, 0x3a, 0x27, 0x39, 184 0x30, 0x9d, 0x68, 0x2f, 0xb6, 0x28, 0x9a, 0x5d, 0xbf, 0xec, 0x89, 0x79, 0x7c, 0x9b, 0xb8, 0x97, 185 0x51, 0xf4, 0x7d, 0x72, 0x74, 0x69, 0xcc, 0xa2, 0xac, 0xc1, 0x06, 0x2a, 0xb4, 0xf4, 0xf1, 0xb9, 186 0xa6, 0xfd, 0xb0, 0x84, 0x24, 0xca, 0x9a, 0x64, 0x20, 0x24, 0x4b, 0x3f, 0x31, 0x84, 0x9f, 0x93, 187 0x99, 0x39, 0x0d, 0xc3, 0x28, 0x6b, 0xc2, 0x70, 0xa0, 0x84, 0xe1, 0xd2, 0x0f, 0x43, 0x43, 0xba, 188 0x79, 0xa0, 0xbb, 0x3b, 0xfe, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x78, 0xe2, 0x3f, 0x06, 0x4f, 0x04, 189 0x00, 0x00, 190} 191