1// Copyright 2020 Google LLC 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15// Code generated by protoc-gen-go. DO NOT EDIT. 16// versions: 17// protoc-gen-go v1.25.0 18// protoc v3.13.0 19// source: google/ads/googleads/v3/resources/ad_parameter.proto 20 21package resources 22 23import ( 24 reflect "reflect" 25 sync "sync" 26 27 proto "github.com/golang/protobuf/proto" 28 _ "google.golang.org/genproto/googleapis/api/annotations" 29 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 30 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 31 wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" 32) 33 34const ( 35 // Verify that this generated code is sufficiently up-to-date. 36 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 37 // Verify that runtime/protoimpl is sufficiently up-to-date. 38 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 39) 40 41// This is a compile-time assertion that a sufficiently up-to-date version 42// of the legacy proto package is being used. 43const _ = proto.ProtoPackageIsVersion4 44 45// An ad parameter that is used to update numeric values (such as prices or 46// inventory levels) in any text line of an ad (including URLs). There can 47// be a maximum of two AdParameters per ad group criterion. (One with 48// parameter_index = 1 and one with parameter_index = 2.) 49// In the ad the parameters are referenced by a placeholder of the form 50// "{param#:value}". E.g. "{param1:$17}" 51type AdParameter struct { 52 state protoimpl.MessageState 53 sizeCache protoimpl.SizeCache 54 unknownFields protoimpl.UnknownFields 55 56 // Immutable. The resource name of the ad parameter. 57 // Ad parameter resource names have the form: 58 // 59 // `customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}` 60 ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` 61 // Immutable. The ad group criterion that this ad parameter belongs to. 62 AdGroupCriterion *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=ad_group_criterion,json=adGroupCriterion,proto3" json:"ad_group_criterion,omitempty"` 63 // Immutable. The unique index of this ad parameter. Must be either 1 or 2. 64 ParameterIndex *wrapperspb.Int64Value `protobuf:"bytes,3,opt,name=parameter_index,json=parameterIndex,proto3" json:"parameter_index,omitempty"` 65 // Numeric value to insert into the ad text. The following restrictions 66 // apply: 67 // - Can use comma or period as a separator, with an optional period or 68 // comma (respectively) for fractional values. For example, 1,000,000.00 69 // and 2.000.000,10 are valid. 70 // - Can be prepended or appended with a currency symbol. For example, 71 // $99.99 is valid. 72 // - Can be prepended or appended with a currency code. For example, 99.99USD 73 // and EUR200 are valid. 74 // - Can use '%'. For example, 1.0% and 1,0% are valid. 75 // - Can use plus or minus. For example, -10.99 and 25+ are valid. 76 // - Can use '/' between two numbers. For example 4/1 and 0.95/0.45 are 77 // valid. 78 InsertionText *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=insertion_text,json=insertionText,proto3" json:"insertion_text,omitempty"` 79} 80 81func (x *AdParameter) Reset() { 82 *x = AdParameter{} 83 if protoimpl.UnsafeEnabled { 84 mi := &file_google_ads_googleads_v3_resources_ad_parameter_proto_msgTypes[0] 85 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 86 ms.StoreMessageInfo(mi) 87 } 88} 89 90func (x *AdParameter) String() string { 91 return protoimpl.X.MessageStringOf(x) 92} 93 94func (*AdParameter) ProtoMessage() {} 95 96func (x *AdParameter) ProtoReflect() protoreflect.Message { 97 mi := &file_google_ads_googleads_v3_resources_ad_parameter_proto_msgTypes[0] 98 if protoimpl.UnsafeEnabled && x != nil { 99 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 100 if ms.LoadMessageInfo() == nil { 101 ms.StoreMessageInfo(mi) 102 } 103 return ms 104 } 105 return mi.MessageOf(x) 106} 107 108// Deprecated: Use AdParameter.ProtoReflect.Descriptor instead. 109func (*AdParameter) Descriptor() ([]byte, []int) { 110 return file_google_ads_googleads_v3_resources_ad_parameter_proto_rawDescGZIP(), []int{0} 111} 112 113func (x *AdParameter) GetResourceName() string { 114 if x != nil { 115 return x.ResourceName 116 } 117 return "" 118} 119 120func (x *AdParameter) GetAdGroupCriterion() *wrapperspb.StringValue { 121 if x != nil { 122 return x.AdGroupCriterion 123 } 124 return nil 125} 126 127func (x *AdParameter) GetParameterIndex() *wrapperspb.Int64Value { 128 if x != nil { 129 return x.ParameterIndex 130 } 131 return nil 132} 133 134func (x *AdParameter) GetInsertionText() *wrapperspb.StringValue { 135 if x != nil { 136 return x.InsertionText 137 } 138 return nil 139} 140 141var File_google_ads_googleads_v3_resources_ad_parameter_proto protoreflect.FileDescriptor 142 143var file_google_ads_googleads_v3_resources_ad_parameter_proto_rawDesc = []byte{ 144 0x0a, 0x34, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x64, 0x73, 0x2f, 0x67, 0x6f, 0x6f, 145 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2f, 0x76, 0x33, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 146 0x63, 0x65, 0x73, 0x2f, 0x61, 0x64, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 147 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 148 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x33, 0x2e, 149 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 150 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 151 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 152 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 153 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 154 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 155 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 156 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 157 0x6f, 0x74, 0x6f, 0x22, 0xcc, 0x03, 0x0a, 0x0b, 0x41, 0x64, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 158 0x74, 0x65, 0x72, 0x12, 0x51, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 159 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2c, 0xe0, 0x41, 0x05, 0xfa, 160 0x41, 0x26, 0x0a, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 161 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x64, 0x50, 162 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 163 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x7d, 0x0a, 0x12, 0x61, 0x64, 0x5f, 0x67, 0x72, 0x6f, 164 0x75, 0x70, 0x5f, 0x63, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 165 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 166 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 167 0x42, 0x31, 0xe0, 0x41, 0x05, 0xfa, 0x41, 0x2b, 0x0a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 168 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 169 0x6f, 0x6d, 0x2f, 0x41, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x72, 0x69, 0x74, 0x65, 0x72, 170 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x61, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x72, 0x69, 0x74, 171 0x65, 0x72, 0x69, 0x6f, 0x6e, 0x12, 0x49, 0x0a, 0x0f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 172 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 173 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 174 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x05, 175 0x52, 0x0e, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x64, 0x65, 0x78, 176 0x12, 0x43, 0x0a, 0x0e, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x65, 177 0x78, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 178 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 179 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0d, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x69, 0x6f, 180 0x6e, 0x54, 0x65, 0x78, 0x74, 0x3a, 0x5b, 0xea, 0x41, 0x58, 0x0a, 0x24, 0x67, 0x6f, 0x6f, 0x67, 181 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 182 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x64, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 183 0x12, 0x30, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x63, 0x75, 0x73, 184 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x7d, 0x2f, 0x61, 0x64, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 185 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 186 0x72, 0x7d, 0x42, 0xfd, 0x01, 0x0a, 0x25, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 187 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 188 0x76, 0x33, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x42, 0x10, 0x41, 0x64, 189 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 190 0x5a, 0x4a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 191 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 192 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x64, 0x73, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 193 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2f, 0x76, 0x33, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 194 0x65, 0x73, 0x3b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0xa2, 0x02, 0x03, 0x47, 195 0x41, 0x41, 0xaa, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x41, 0x64, 0x73, 0x2e, 196 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x41, 0x64, 0x73, 0x2e, 0x56, 0x33, 0x2e, 0x52, 0x65, 0x73, 197 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0xca, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 198 0x41, 0x64, 0x73, 0x5c, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x41, 0x64, 0x73, 0x5c, 0x56, 0x33, 199 0x5c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0xea, 0x02, 0x25, 0x47, 0x6f, 0x6f, 200 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x41, 0x64, 0x73, 0x3a, 0x3a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 201 0x41, 0x64, 0x73, 0x3a, 0x3a, 0x56, 0x33, 0x3a, 0x3a, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 202 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 203} 204 205var ( 206 file_google_ads_googleads_v3_resources_ad_parameter_proto_rawDescOnce sync.Once 207 file_google_ads_googleads_v3_resources_ad_parameter_proto_rawDescData = file_google_ads_googleads_v3_resources_ad_parameter_proto_rawDesc 208) 209 210func file_google_ads_googleads_v3_resources_ad_parameter_proto_rawDescGZIP() []byte { 211 file_google_ads_googleads_v3_resources_ad_parameter_proto_rawDescOnce.Do(func() { 212 file_google_ads_googleads_v3_resources_ad_parameter_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_ads_googleads_v3_resources_ad_parameter_proto_rawDescData) 213 }) 214 return file_google_ads_googleads_v3_resources_ad_parameter_proto_rawDescData 215} 216 217var file_google_ads_googleads_v3_resources_ad_parameter_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 218var file_google_ads_googleads_v3_resources_ad_parameter_proto_goTypes = []interface{}{ 219 (*AdParameter)(nil), // 0: google.ads.googleads.v3.resources.AdParameter 220 (*wrapperspb.StringValue)(nil), // 1: google.protobuf.StringValue 221 (*wrapperspb.Int64Value)(nil), // 2: google.protobuf.Int64Value 222} 223var file_google_ads_googleads_v3_resources_ad_parameter_proto_depIdxs = []int32{ 224 1, // 0: google.ads.googleads.v3.resources.AdParameter.ad_group_criterion:type_name -> google.protobuf.StringValue 225 2, // 1: google.ads.googleads.v3.resources.AdParameter.parameter_index:type_name -> google.protobuf.Int64Value 226 1, // 2: google.ads.googleads.v3.resources.AdParameter.insertion_text:type_name -> google.protobuf.StringValue 227 3, // [3:3] is the sub-list for method output_type 228 3, // [3:3] is the sub-list for method input_type 229 3, // [3:3] is the sub-list for extension type_name 230 3, // [3:3] is the sub-list for extension extendee 231 0, // [0:3] is the sub-list for field type_name 232} 233 234func init() { file_google_ads_googleads_v3_resources_ad_parameter_proto_init() } 235func file_google_ads_googleads_v3_resources_ad_parameter_proto_init() { 236 if File_google_ads_googleads_v3_resources_ad_parameter_proto != nil { 237 return 238 } 239 if !protoimpl.UnsafeEnabled { 240 file_google_ads_googleads_v3_resources_ad_parameter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 241 switch v := v.(*AdParameter); i { 242 case 0: 243 return &v.state 244 case 1: 245 return &v.sizeCache 246 case 2: 247 return &v.unknownFields 248 default: 249 return nil 250 } 251 } 252 } 253 type x struct{} 254 out := protoimpl.TypeBuilder{ 255 File: protoimpl.DescBuilder{ 256 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 257 RawDescriptor: file_google_ads_googleads_v3_resources_ad_parameter_proto_rawDesc, 258 NumEnums: 0, 259 NumMessages: 1, 260 NumExtensions: 0, 261 NumServices: 0, 262 }, 263 GoTypes: file_google_ads_googleads_v3_resources_ad_parameter_proto_goTypes, 264 DependencyIndexes: file_google_ads_googleads_v3_resources_ad_parameter_proto_depIdxs, 265 MessageInfos: file_google_ads_googleads_v3_resources_ad_parameter_proto_msgTypes, 266 }.Build() 267 File_google_ads_googleads_v3_resources_ad_parameter_proto = out.File 268 file_google_ads_googleads_v3_resources_ad_parameter_proto_rawDesc = nil 269 file_google_ads_googleads_v3_resources_ad_parameter_proto_goTypes = nil 270 file_google_ads_googleads_v3_resources_ad_parameter_proto_depIdxs = nil 271} 272