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.
 
 
 

994 lines
45 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/ads/googleads/v1/resources/feed_mapping.proto
  3. package resources // import "google.golang.org/genproto/googleapis/ads/googleads/v1/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 enums "google.golang.org/genproto/googleapis/ads/googleads/v1/enums"
  9. import _ "google.golang.org/genproto/googleapis/api/annotations"
  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 feed mapping.
  20. type FeedMapping struct {
  21. // The resource name of the feed mapping.
  22. // Feed mapping resource names have the form:
  23. //
  24. // `customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}`
  25. ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
  26. // The feed of this feed mapping.
  27. Feed *wrappers.StringValue `protobuf:"bytes,2,opt,name=feed,proto3" json:"feed,omitempty"`
  28. // Feed attributes to field mappings. These mappings are a one-to-many
  29. // relationship meaning that 1 feed attribute can be used to populate
  30. // multiple placeholder fields, but 1 placeholder field can only draw
  31. // data from 1 feed attribute. Ad Customizer is an exception, 1 placeholder
  32. // field can be mapped to multiple feed attributes. Required.
  33. AttributeFieldMappings []*AttributeFieldMapping `protobuf:"bytes,5,rep,name=attribute_field_mappings,json=attributeFieldMappings,proto3" json:"attribute_field_mappings,omitempty"`
  34. // Status of the feed mapping.
  35. // This field is read-only.
  36. Status enums.FeedMappingStatusEnum_FeedMappingStatus `protobuf:"varint,6,opt,name=status,proto3,enum=google.ads.googleads.v1.enums.FeedMappingStatusEnum_FeedMappingStatus" json:"status,omitempty"`
  37. // Feed mapping target. Can be either a placeholder or a criterion. For a
  38. // given feed, the active FeedMappings must have unique targets. Required.
  39. //
  40. // Types that are valid to be assigned to Target:
  41. // *FeedMapping_PlaceholderType
  42. // *FeedMapping_CriterionType
  43. Target isFeedMapping_Target `protobuf_oneof:"target"`
  44. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  45. XXX_unrecognized []byte `json:"-"`
  46. XXX_sizecache int32 `json:"-"`
  47. }
  48. func (m *FeedMapping) Reset() { *m = FeedMapping{} }
  49. func (m *FeedMapping) String() string { return proto.CompactTextString(m) }
  50. func (*FeedMapping) ProtoMessage() {}
  51. func (*FeedMapping) Descriptor() ([]byte, []int) {
  52. return fileDescriptor_feed_mapping_f08dc24e8136e1ff, []int{0}
  53. }
  54. func (m *FeedMapping) XXX_Unmarshal(b []byte) error {
  55. return xxx_messageInfo_FeedMapping.Unmarshal(m, b)
  56. }
  57. func (m *FeedMapping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  58. return xxx_messageInfo_FeedMapping.Marshal(b, m, deterministic)
  59. }
  60. func (dst *FeedMapping) XXX_Merge(src proto.Message) {
  61. xxx_messageInfo_FeedMapping.Merge(dst, src)
  62. }
  63. func (m *FeedMapping) XXX_Size() int {
  64. return xxx_messageInfo_FeedMapping.Size(m)
  65. }
  66. func (m *FeedMapping) XXX_DiscardUnknown() {
  67. xxx_messageInfo_FeedMapping.DiscardUnknown(m)
  68. }
  69. var xxx_messageInfo_FeedMapping proto.InternalMessageInfo
  70. func (m *FeedMapping) GetResourceName() string {
  71. if m != nil {
  72. return m.ResourceName
  73. }
  74. return ""
  75. }
  76. func (m *FeedMapping) GetFeed() *wrappers.StringValue {
  77. if m != nil {
  78. return m.Feed
  79. }
  80. return nil
  81. }
  82. func (m *FeedMapping) GetAttributeFieldMappings() []*AttributeFieldMapping {
  83. if m != nil {
  84. return m.AttributeFieldMappings
  85. }
  86. return nil
  87. }
  88. func (m *FeedMapping) GetStatus() enums.FeedMappingStatusEnum_FeedMappingStatus {
  89. if m != nil {
  90. return m.Status
  91. }
  92. return enums.FeedMappingStatusEnum_UNSPECIFIED
  93. }
  94. type isFeedMapping_Target interface {
  95. isFeedMapping_Target()
  96. }
  97. type FeedMapping_PlaceholderType struct {
  98. PlaceholderType enums.PlaceholderTypeEnum_PlaceholderType `protobuf:"varint,3,opt,name=placeholder_type,json=placeholderType,proto3,enum=google.ads.googleads.v1.enums.PlaceholderTypeEnum_PlaceholderType,oneof"`
  99. }
  100. type FeedMapping_CriterionType struct {
  101. CriterionType enums.FeedMappingCriterionTypeEnum_FeedMappingCriterionType `protobuf:"varint,4,opt,name=criterion_type,json=criterionType,proto3,enum=google.ads.googleads.v1.enums.FeedMappingCriterionTypeEnum_FeedMappingCriterionType,oneof"`
  102. }
  103. func (*FeedMapping_PlaceholderType) isFeedMapping_Target() {}
  104. func (*FeedMapping_CriterionType) isFeedMapping_Target() {}
  105. func (m *FeedMapping) GetTarget() isFeedMapping_Target {
  106. if m != nil {
  107. return m.Target
  108. }
  109. return nil
  110. }
  111. func (m *FeedMapping) GetPlaceholderType() enums.PlaceholderTypeEnum_PlaceholderType {
  112. if x, ok := m.GetTarget().(*FeedMapping_PlaceholderType); ok {
  113. return x.PlaceholderType
  114. }
  115. return enums.PlaceholderTypeEnum_UNSPECIFIED
  116. }
  117. func (m *FeedMapping) GetCriterionType() enums.FeedMappingCriterionTypeEnum_FeedMappingCriterionType {
  118. if x, ok := m.GetTarget().(*FeedMapping_CriterionType); ok {
  119. return x.CriterionType
  120. }
  121. return enums.FeedMappingCriterionTypeEnum_UNSPECIFIED
  122. }
  123. // XXX_OneofFuncs is for the internal use of the proto package.
  124. func (*FeedMapping) 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{}) {
  125. return _FeedMapping_OneofMarshaler, _FeedMapping_OneofUnmarshaler, _FeedMapping_OneofSizer, []interface{}{
  126. (*FeedMapping_PlaceholderType)(nil),
  127. (*FeedMapping_CriterionType)(nil),
  128. }
  129. }
  130. func _FeedMapping_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  131. m := msg.(*FeedMapping)
  132. // target
  133. switch x := m.Target.(type) {
  134. case *FeedMapping_PlaceholderType:
  135. b.EncodeVarint(3<<3 | proto.WireVarint)
  136. b.EncodeVarint(uint64(x.PlaceholderType))
  137. case *FeedMapping_CriterionType:
  138. b.EncodeVarint(4<<3 | proto.WireVarint)
  139. b.EncodeVarint(uint64(x.CriterionType))
  140. case nil:
  141. default:
  142. return fmt.Errorf("FeedMapping.Target has unexpected type %T", x)
  143. }
  144. return nil
  145. }
  146. func _FeedMapping_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  147. m := msg.(*FeedMapping)
  148. switch tag {
  149. case 3: // target.placeholder_type
  150. if wire != proto.WireVarint {
  151. return true, proto.ErrInternalBadWireType
  152. }
  153. x, err := b.DecodeVarint()
  154. m.Target = &FeedMapping_PlaceholderType{enums.PlaceholderTypeEnum_PlaceholderType(x)}
  155. return true, err
  156. case 4: // target.criterion_type
  157. if wire != proto.WireVarint {
  158. return true, proto.ErrInternalBadWireType
  159. }
  160. x, err := b.DecodeVarint()
  161. m.Target = &FeedMapping_CriterionType{enums.FeedMappingCriterionTypeEnum_FeedMappingCriterionType(x)}
  162. return true, err
  163. default:
  164. return false, nil
  165. }
  166. }
  167. func _FeedMapping_OneofSizer(msg proto.Message) (n int) {
  168. m := msg.(*FeedMapping)
  169. // target
  170. switch x := m.Target.(type) {
  171. case *FeedMapping_PlaceholderType:
  172. n += 1 // tag and wire
  173. n += proto.SizeVarint(uint64(x.PlaceholderType))
  174. case *FeedMapping_CriterionType:
  175. n += 1 // tag and wire
  176. n += proto.SizeVarint(uint64(x.CriterionType))
  177. case nil:
  178. default:
  179. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  180. }
  181. return n
  182. }
  183. // Maps from feed attribute id to a placeholder or criterion field id.
  184. type AttributeFieldMapping struct {
  185. // Feed attribute from which to map.
  186. FeedAttributeId *wrappers.Int64Value `protobuf:"bytes,1,opt,name=feed_attribute_id,json=feedAttributeId,proto3" json:"feed_attribute_id,omitempty"`
  187. // The placeholder field ID. If a placeholder field enum is not published in
  188. // the current API version, then this field will be populated and the field
  189. // oneof will be empty.
  190. // This field is read-only.
  191. FieldId *wrappers.Int64Value `protobuf:"bytes,2,opt,name=field_id,json=fieldId,proto3" json:"field_id,omitempty"`
  192. // Placeholder or criterion field to be populated using data from
  193. // the above feed attribute. Required.
  194. //
  195. // Types that are valid to be assigned to Field:
  196. // *AttributeFieldMapping_SitelinkField
  197. // *AttributeFieldMapping_CallField
  198. // *AttributeFieldMapping_AppField
  199. // *AttributeFieldMapping_LocationField
  200. // *AttributeFieldMapping_AffiliateLocationField
  201. // *AttributeFieldMapping_CalloutField
  202. // *AttributeFieldMapping_StructuredSnippetField
  203. // *AttributeFieldMapping_MessageField
  204. // *AttributeFieldMapping_PriceField
  205. // *AttributeFieldMapping_PromotionField
  206. // *AttributeFieldMapping_AdCustomizerField
  207. // *AttributeFieldMapping_DsaPageFeedField
  208. // *AttributeFieldMapping_LocationExtensionTargetingField
  209. // *AttributeFieldMapping_EducationField
  210. // *AttributeFieldMapping_FlightField
  211. // *AttributeFieldMapping_CustomField
  212. // *AttributeFieldMapping_HotelField
  213. // *AttributeFieldMapping_RealEstateField
  214. // *AttributeFieldMapping_TravelField
  215. // *AttributeFieldMapping_LocalField
  216. // *AttributeFieldMapping_JobField
  217. Field isAttributeFieldMapping_Field `protobuf_oneof:"field"`
  218. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  219. XXX_unrecognized []byte `json:"-"`
  220. XXX_sizecache int32 `json:"-"`
  221. }
  222. func (m *AttributeFieldMapping) Reset() { *m = AttributeFieldMapping{} }
  223. func (m *AttributeFieldMapping) String() string { return proto.CompactTextString(m) }
  224. func (*AttributeFieldMapping) ProtoMessage() {}
  225. func (*AttributeFieldMapping) Descriptor() ([]byte, []int) {
  226. return fileDescriptor_feed_mapping_f08dc24e8136e1ff, []int{1}
  227. }
  228. func (m *AttributeFieldMapping) XXX_Unmarshal(b []byte) error {
  229. return xxx_messageInfo_AttributeFieldMapping.Unmarshal(m, b)
  230. }
  231. func (m *AttributeFieldMapping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  232. return xxx_messageInfo_AttributeFieldMapping.Marshal(b, m, deterministic)
  233. }
  234. func (dst *AttributeFieldMapping) XXX_Merge(src proto.Message) {
  235. xxx_messageInfo_AttributeFieldMapping.Merge(dst, src)
  236. }
  237. func (m *AttributeFieldMapping) XXX_Size() int {
  238. return xxx_messageInfo_AttributeFieldMapping.Size(m)
  239. }
  240. func (m *AttributeFieldMapping) XXX_DiscardUnknown() {
  241. xxx_messageInfo_AttributeFieldMapping.DiscardUnknown(m)
  242. }
  243. var xxx_messageInfo_AttributeFieldMapping proto.InternalMessageInfo
  244. func (m *AttributeFieldMapping) GetFeedAttributeId() *wrappers.Int64Value {
  245. if m != nil {
  246. return m.FeedAttributeId
  247. }
  248. return nil
  249. }
  250. func (m *AttributeFieldMapping) GetFieldId() *wrappers.Int64Value {
  251. if m != nil {
  252. return m.FieldId
  253. }
  254. return nil
  255. }
  256. type isAttributeFieldMapping_Field interface {
  257. isAttributeFieldMapping_Field()
  258. }
  259. type AttributeFieldMapping_SitelinkField struct {
  260. SitelinkField enums.SitelinkPlaceholderFieldEnum_SitelinkPlaceholderField `protobuf:"varint,3,opt,name=sitelink_field,json=sitelinkField,proto3,enum=google.ads.googleads.v1.enums.SitelinkPlaceholderFieldEnum_SitelinkPlaceholderField,oneof"`
  261. }
  262. type AttributeFieldMapping_CallField struct {
  263. CallField enums.CallPlaceholderFieldEnum_CallPlaceholderField `protobuf:"varint,4,opt,name=call_field,json=callField,proto3,enum=google.ads.googleads.v1.enums.CallPlaceholderFieldEnum_CallPlaceholderField,oneof"`
  264. }
  265. type AttributeFieldMapping_AppField struct {
  266. AppField enums.AppPlaceholderFieldEnum_AppPlaceholderField `protobuf:"varint,5,opt,name=app_field,json=appField,proto3,enum=google.ads.googleads.v1.enums.AppPlaceholderFieldEnum_AppPlaceholderField,oneof"`
  267. }
  268. type AttributeFieldMapping_LocationField struct {
  269. LocationField enums.LocationPlaceholderFieldEnum_LocationPlaceholderField `protobuf:"varint,6,opt,name=location_field,json=locationField,proto3,enum=google.ads.googleads.v1.enums.LocationPlaceholderFieldEnum_LocationPlaceholderField,oneof"`
  270. }
  271. type AttributeFieldMapping_AffiliateLocationField struct {
  272. AffiliateLocationField enums.AffiliateLocationPlaceholderFieldEnum_AffiliateLocationPlaceholderField `protobuf:"varint,7,opt,name=affiliate_location_field,json=affiliateLocationField,proto3,enum=google.ads.googleads.v1.enums.AffiliateLocationPlaceholderFieldEnum_AffiliateLocationPlaceholderField,oneof"`
  273. }
  274. type AttributeFieldMapping_CalloutField struct {
  275. CalloutField enums.CalloutPlaceholderFieldEnum_CalloutPlaceholderField `protobuf:"varint,8,opt,name=callout_field,json=calloutField,proto3,enum=google.ads.googleads.v1.enums.CalloutPlaceholderFieldEnum_CalloutPlaceholderField,oneof"`
  276. }
  277. type AttributeFieldMapping_StructuredSnippetField struct {
  278. StructuredSnippetField enums.StructuredSnippetPlaceholderFieldEnum_StructuredSnippetPlaceholderField `protobuf:"varint,9,opt,name=structured_snippet_field,json=structuredSnippetField,proto3,enum=google.ads.googleads.v1.enums.StructuredSnippetPlaceholderFieldEnum_StructuredSnippetPlaceholderField,oneof"`
  279. }
  280. type AttributeFieldMapping_MessageField struct {
  281. MessageField enums.MessagePlaceholderFieldEnum_MessagePlaceholderField `protobuf:"varint,10,opt,name=message_field,json=messageField,proto3,enum=google.ads.googleads.v1.enums.MessagePlaceholderFieldEnum_MessagePlaceholderField,oneof"`
  282. }
  283. type AttributeFieldMapping_PriceField struct {
  284. PriceField enums.PricePlaceholderFieldEnum_PricePlaceholderField `protobuf:"varint,11,opt,name=price_field,json=priceField,proto3,enum=google.ads.googleads.v1.enums.PricePlaceholderFieldEnum_PricePlaceholderField,oneof"`
  285. }
  286. type AttributeFieldMapping_PromotionField struct {
  287. PromotionField enums.PromotionPlaceholderFieldEnum_PromotionPlaceholderField `protobuf:"varint,12,opt,name=promotion_field,json=promotionField,proto3,enum=google.ads.googleads.v1.enums.PromotionPlaceholderFieldEnum_PromotionPlaceholderField,oneof"`
  288. }
  289. type AttributeFieldMapping_AdCustomizerField struct {
  290. AdCustomizerField enums.AdCustomizerPlaceholderFieldEnum_AdCustomizerPlaceholderField `protobuf:"varint,13,opt,name=ad_customizer_field,json=adCustomizerField,proto3,enum=google.ads.googleads.v1.enums.AdCustomizerPlaceholderFieldEnum_AdCustomizerPlaceholderField,oneof"`
  291. }
  292. type AttributeFieldMapping_DsaPageFeedField struct {
  293. DsaPageFeedField enums.DsaPageFeedCriterionFieldEnum_DsaPageFeedCriterionField `protobuf:"varint,14,opt,name=dsa_page_feed_field,json=dsaPageFeedField,proto3,enum=google.ads.googleads.v1.enums.DsaPageFeedCriterionFieldEnum_DsaPageFeedCriterionField,oneof"`
  294. }
  295. type AttributeFieldMapping_LocationExtensionTargetingField struct {
  296. LocationExtensionTargetingField enums.LocationExtensionTargetingCriterionFieldEnum_LocationExtensionTargetingCriterionField `protobuf:"varint,15,opt,name=location_extension_targeting_field,json=locationExtensionTargetingField,proto3,enum=google.ads.googleads.v1.enums.LocationExtensionTargetingCriterionFieldEnum_LocationExtensionTargetingCriterionField,oneof"`
  297. }
  298. type AttributeFieldMapping_EducationField struct {
  299. EducationField enums.EducationPlaceholderFieldEnum_EducationPlaceholderField `protobuf:"varint,16,opt,name=education_field,json=educationField,proto3,enum=google.ads.googleads.v1.enums.EducationPlaceholderFieldEnum_EducationPlaceholderField,oneof"`
  300. }
  301. type AttributeFieldMapping_FlightField struct {
  302. FlightField enums.FlightPlaceholderFieldEnum_FlightPlaceholderField `protobuf:"varint,17,opt,name=flight_field,json=flightField,proto3,enum=google.ads.googleads.v1.enums.FlightPlaceholderFieldEnum_FlightPlaceholderField,oneof"`
  303. }
  304. type AttributeFieldMapping_CustomField struct {
  305. CustomField enums.CustomPlaceholderFieldEnum_CustomPlaceholderField `protobuf:"varint,18,opt,name=custom_field,json=customField,proto3,enum=google.ads.googleads.v1.enums.CustomPlaceholderFieldEnum_CustomPlaceholderField,oneof"`
  306. }
  307. type AttributeFieldMapping_HotelField struct {
  308. HotelField enums.HotelPlaceholderFieldEnum_HotelPlaceholderField `protobuf:"varint,19,opt,name=hotel_field,json=hotelField,proto3,enum=google.ads.googleads.v1.enums.HotelPlaceholderFieldEnum_HotelPlaceholderField,oneof"`
  309. }
  310. type AttributeFieldMapping_RealEstateField struct {
  311. RealEstateField enums.RealEstatePlaceholderFieldEnum_RealEstatePlaceholderField `protobuf:"varint,20,opt,name=real_estate_field,json=realEstateField,proto3,enum=google.ads.googleads.v1.enums.RealEstatePlaceholderFieldEnum_RealEstatePlaceholderField,oneof"`
  312. }
  313. type AttributeFieldMapping_TravelField struct {
  314. TravelField enums.TravelPlaceholderFieldEnum_TravelPlaceholderField `protobuf:"varint,21,opt,name=travel_field,json=travelField,proto3,enum=google.ads.googleads.v1.enums.TravelPlaceholderFieldEnum_TravelPlaceholderField,oneof"`
  315. }
  316. type AttributeFieldMapping_LocalField struct {
  317. LocalField enums.LocalPlaceholderFieldEnum_LocalPlaceholderField `protobuf:"varint,22,opt,name=local_field,json=localField,proto3,enum=google.ads.googleads.v1.enums.LocalPlaceholderFieldEnum_LocalPlaceholderField,oneof"`
  318. }
  319. type AttributeFieldMapping_JobField struct {
  320. JobField enums.JobPlaceholderFieldEnum_JobPlaceholderField `protobuf:"varint,23,opt,name=job_field,json=jobField,proto3,enum=google.ads.googleads.v1.enums.JobPlaceholderFieldEnum_JobPlaceholderField,oneof"`
  321. }
  322. func (*AttributeFieldMapping_SitelinkField) isAttributeFieldMapping_Field() {}
  323. func (*AttributeFieldMapping_CallField) isAttributeFieldMapping_Field() {}
  324. func (*AttributeFieldMapping_AppField) isAttributeFieldMapping_Field() {}
  325. func (*AttributeFieldMapping_LocationField) isAttributeFieldMapping_Field() {}
  326. func (*AttributeFieldMapping_AffiliateLocationField) isAttributeFieldMapping_Field() {}
  327. func (*AttributeFieldMapping_CalloutField) isAttributeFieldMapping_Field() {}
  328. func (*AttributeFieldMapping_StructuredSnippetField) isAttributeFieldMapping_Field() {}
  329. func (*AttributeFieldMapping_MessageField) isAttributeFieldMapping_Field() {}
  330. func (*AttributeFieldMapping_PriceField) isAttributeFieldMapping_Field() {}
  331. func (*AttributeFieldMapping_PromotionField) isAttributeFieldMapping_Field() {}
  332. func (*AttributeFieldMapping_AdCustomizerField) isAttributeFieldMapping_Field() {}
  333. func (*AttributeFieldMapping_DsaPageFeedField) isAttributeFieldMapping_Field() {}
  334. func (*AttributeFieldMapping_LocationExtensionTargetingField) isAttributeFieldMapping_Field() {}
  335. func (*AttributeFieldMapping_EducationField) isAttributeFieldMapping_Field() {}
  336. func (*AttributeFieldMapping_FlightField) isAttributeFieldMapping_Field() {}
  337. func (*AttributeFieldMapping_CustomField) isAttributeFieldMapping_Field() {}
  338. func (*AttributeFieldMapping_HotelField) isAttributeFieldMapping_Field() {}
  339. func (*AttributeFieldMapping_RealEstateField) isAttributeFieldMapping_Field() {}
  340. func (*AttributeFieldMapping_TravelField) isAttributeFieldMapping_Field() {}
  341. func (*AttributeFieldMapping_LocalField) isAttributeFieldMapping_Field() {}
  342. func (*AttributeFieldMapping_JobField) isAttributeFieldMapping_Field() {}
  343. func (m *AttributeFieldMapping) GetField() isAttributeFieldMapping_Field {
  344. if m != nil {
  345. return m.Field
  346. }
  347. return nil
  348. }
  349. func (m *AttributeFieldMapping) GetSitelinkField() enums.SitelinkPlaceholderFieldEnum_SitelinkPlaceholderField {
  350. if x, ok := m.GetField().(*AttributeFieldMapping_SitelinkField); ok {
  351. return x.SitelinkField
  352. }
  353. return enums.SitelinkPlaceholderFieldEnum_UNSPECIFIED
  354. }
  355. func (m *AttributeFieldMapping) GetCallField() enums.CallPlaceholderFieldEnum_CallPlaceholderField {
  356. if x, ok := m.GetField().(*AttributeFieldMapping_CallField); ok {
  357. return x.CallField
  358. }
  359. return enums.CallPlaceholderFieldEnum_UNSPECIFIED
  360. }
  361. func (m *AttributeFieldMapping) GetAppField() enums.AppPlaceholderFieldEnum_AppPlaceholderField {
  362. if x, ok := m.GetField().(*AttributeFieldMapping_AppField); ok {
  363. return x.AppField
  364. }
  365. return enums.AppPlaceholderFieldEnum_UNSPECIFIED
  366. }
  367. func (m *AttributeFieldMapping) GetLocationField() enums.LocationPlaceholderFieldEnum_LocationPlaceholderField {
  368. if x, ok := m.GetField().(*AttributeFieldMapping_LocationField); ok {
  369. return x.LocationField
  370. }
  371. return enums.LocationPlaceholderFieldEnum_UNSPECIFIED
  372. }
  373. func (m *AttributeFieldMapping) GetAffiliateLocationField() enums.AffiliateLocationPlaceholderFieldEnum_AffiliateLocationPlaceholderField {
  374. if x, ok := m.GetField().(*AttributeFieldMapping_AffiliateLocationField); ok {
  375. return x.AffiliateLocationField
  376. }
  377. return enums.AffiliateLocationPlaceholderFieldEnum_UNSPECIFIED
  378. }
  379. func (m *AttributeFieldMapping) GetCalloutField() enums.CalloutPlaceholderFieldEnum_CalloutPlaceholderField {
  380. if x, ok := m.GetField().(*AttributeFieldMapping_CalloutField); ok {
  381. return x.CalloutField
  382. }
  383. return enums.CalloutPlaceholderFieldEnum_UNSPECIFIED
  384. }
  385. func (m *AttributeFieldMapping) GetStructuredSnippetField() enums.StructuredSnippetPlaceholderFieldEnum_StructuredSnippetPlaceholderField {
  386. if x, ok := m.GetField().(*AttributeFieldMapping_StructuredSnippetField); ok {
  387. return x.StructuredSnippetField
  388. }
  389. return enums.StructuredSnippetPlaceholderFieldEnum_UNSPECIFIED
  390. }
  391. func (m *AttributeFieldMapping) GetMessageField() enums.MessagePlaceholderFieldEnum_MessagePlaceholderField {
  392. if x, ok := m.GetField().(*AttributeFieldMapping_MessageField); ok {
  393. return x.MessageField
  394. }
  395. return enums.MessagePlaceholderFieldEnum_UNSPECIFIED
  396. }
  397. func (m *AttributeFieldMapping) GetPriceField() enums.PricePlaceholderFieldEnum_PricePlaceholderField {
  398. if x, ok := m.GetField().(*AttributeFieldMapping_PriceField); ok {
  399. return x.PriceField
  400. }
  401. return enums.PricePlaceholderFieldEnum_UNSPECIFIED
  402. }
  403. func (m *AttributeFieldMapping) GetPromotionField() enums.PromotionPlaceholderFieldEnum_PromotionPlaceholderField {
  404. if x, ok := m.GetField().(*AttributeFieldMapping_PromotionField); ok {
  405. return x.PromotionField
  406. }
  407. return enums.PromotionPlaceholderFieldEnum_UNSPECIFIED
  408. }
  409. func (m *AttributeFieldMapping) GetAdCustomizerField() enums.AdCustomizerPlaceholderFieldEnum_AdCustomizerPlaceholderField {
  410. if x, ok := m.GetField().(*AttributeFieldMapping_AdCustomizerField); ok {
  411. return x.AdCustomizerField
  412. }
  413. return enums.AdCustomizerPlaceholderFieldEnum_UNSPECIFIED
  414. }
  415. func (m *AttributeFieldMapping) GetDsaPageFeedField() enums.DsaPageFeedCriterionFieldEnum_DsaPageFeedCriterionField {
  416. if x, ok := m.GetField().(*AttributeFieldMapping_DsaPageFeedField); ok {
  417. return x.DsaPageFeedField
  418. }
  419. return enums.DsaPageFeedCriterionFieldEnum_UNSPECIFIED
  420. }
  421. func (m *AttributeFieldMapping) GetLocationExtensionTargetingField() enums.LocationExtensionTargetingCriterionFieldEnum_LocationExtensionTargetingCriterionField {
  422. if x, ok := m.GetField().(*AttributeFieldMapping_LocationExtensionTargetingField); ok {
  423. return x.LocationExtensionTargetingField
  424. }
  425. return enums.LocationExtensionTargetingCriterionFieldEnum_UNSPECIFIED
  426. }
  427. func (m *AttributeFieldMapping) GetEducationField() enums.EducationPlaceholderFieldEnum_EducationPlaceholderField {
  428. if x, ok := m.GetField().(*AttributeFieldMapping_EducationField); ok {
  429. return x.EducationField
  430. }
  431. return enums.EducationPlaceholderFieldEnum_UNSPECIFIED
  432. }
  433. func (m *AttributeFieldMapping) GetFlightField() enums.FlightPlaceholderFieldEnum_FlightPlaceholderField {
  434. if x, ok := m.GetField().(*AttributeFieldMapping_FlightField); ok {
  435. return x.FlightField
  436. }
  437. return enums.FlightPlaceholderFieldEnum_UNSPECIFIED
  438. }
  439. func (m *AttributeFieldMapping) GetCustomField() enums.CustomPlaceholderFieldEnum_CustomPlaceholderField {
  440. if x, ok := m.GetField().(*AttributeFieldMapping_CustomField); ok {
  441. return x.CustomField
  442. }
  443. return enums.CustomPlaceholderFieldEnum_UNSPECIFIED
  444. }
  445. func (m *AttributeFieldMapping) GetHotelField() enums.HotelPlaceholderFieldEnum_HotelPlaceholderField {
  446. if x, ok := m.GetField().(*AttributeFieldMapping_HotelField); ok {
  447. return x.HotelField
  448. }
  449. return enums.HotelPlaceholderFieldEnum_UNSPECIFIED
  450. }
  451. func (m *AttributeFieldMapping) GetRealEstateField() enums.RealEstatePlaceholderFieldEnum_RealEstatePlaceholderField {
  452. if x, ok := m.GetField().(*AttributeFieldMapping_RealEstateField); ok {
  453. return x.RealEstateField
  454. }
  455. return enums.RealEstatePlaceholderFieldEnum_UNSPECIFIED
  456. }
  457. func (m *AttributeFieldMapping) GetTravelField() enums.TravelPlaceholderFieldEnum_TravelPlaceholderField {
  458. if x, ok := m.GetField().(*AttributeFieldMapping_TravelField); ok {
  459. return x.TravelField
  460. }
  461. return enums.TravelPlaceholderFieldEnum_UNSPECIFIED
  462. }
  463. func (m *AttributeFieldMapping) GetLocalField() enums.LocalPlaceholderFieldEnum_LocalPlaceholderField {
  464. if x, ok := m.GetField().(*AttributeFieldMapping_LocalField); ok {
  465. return x.LocalField
  466. }
  467. return enums.LocalPlaceholderFieldEnum_UNSPECIFIED
  468. }
  469. func (m *AttributeFieldMapping) GetJobField() enums.JobPlaceholderFieldEnum_JobPlaceholderField {
  470. if x, ok := m.GetField().(*AttributeFieldMapping_JobField); ok {
  471. return x.JobField
  472. }
  473. return enums.JobPlaceholderFieldEnum_UNSPECIFIED
  474. }
  475. // XXX_OneofFuncs is for the internal use of the proto package.
  476. func (*AttributeFieldMapping) 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{}) {
  477. return _AttributeFieldMapping_OneofMarshaler, _AttributeFieldMapping_OneofUnmarshaler, _AttributeFieldMapping_OneofSizer, []interface{}{
  478. (*AttributeFieldMapping_SitelinkField)(nil),
  479. (*AttributeFieldMapping_CallField)(nil),
  480. (*AttributeFieldMapping_AppField)(nil),
  481. (*AttributeFieldMapping_LocationField)(nil),
  482. (*AttributeFieldMapping_AffiliateLocationField)(nil),
  483. (*AttributeFieldMapping_CalloutField)(nil),
  484. (*AttributeFieldMapping_StructuredSnippetField)(nil),
  485. (*AttributeFieldMapping_MessageField)(nil),
  486. (*AttributeFieldMapping_PriceField)(nil),
  487. (*AttributeFieldMapping_PromotionField)(nil),
  488. (*AttributeFieldMapping_AdCustomizerField)(nil),
  489. (*AttributeFieldMapping_DsaPageFeedField)(nil),
  490. (*AttributeFieldMapping_LocationExtensionTargetingField)(nil),
  491. (*AttributeFieldMapping_EducationField)(nil),
  492. (*AttributeFieldMapping_FlightField)(nil),
  493. (*AttributeFieldMapping_CustomField)(nil),
  494. (*AttributeFieldMapping_HotelField)(nil),
  495. (*AttributeFieldMapping_RealEstateField)(nil),
  496. (*AttributeFieldMapping_TravelField)(nil),
  497. (*AttributeFieldMapping_LocalField)(nil),
  498. (*AttributeFieldMapping_JobField)(nil),
  499. }
  500. }
  501. func _AttributeFieldMapping_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  502. m := msg.(*AttributeFieldMapping)
  503. // field
  504. switch x := m.Field.(type) {
  505. case *AttributeFieldMapping_SitelinkField:
  506. b.EncodeVarint(3<<3 | proto.WireVarint)
  507. b.EncodeVarint(uint64(x.SitelinkField))
  508. case *AttributeFieldMapping_CallField:
  509. b.EncodeVarint(4<<3 | proto.WireVarint)
  510. b.EncodeVarint(uint64(x.CallField))
  511. case *AttributeFieldMapping_AppField:
  512. b.EncodeVarint(5<<3 | proto.WireVarint)
  513. b.EncodeVarint(uint64(x.AppField))
  514. case *AttributeFieldMapping_LocationField:
  515. b.EncodeVarint(6<<3 | proto.WireVarint)
  516. b.EncodeVarint(uint64(x.LocationField))
  517. case *AttributeFieldMapping_AffiliateLocationField:
  518. b.EncodeVarint(7<<3 | proto.WireVarint)
  519. b.EncodeVarint(uint64(x.AffiliateLocationField))
  520. case *AttributeFieldMapping_CalloutField:
  521. b.EncodeVarint(8<<3 | proto.WireVarint)
  522. b.EncodeVarint(uint64(x.CalloutField))
  523. case *AttributeFieldMapping_StructuredSnippetField:
  524. b.EncodeVarint(9<<3 | proto.WireVarint)
  525. b.EncodeVarint(uint64(x.StructuredSnippetField))
  526. case *AttributeFieldMapping_MessageField:
  527. b.EncodeVarint(10<<3 | proto.WireVarint)
  528. b.EncodeVarint(uint64(x.MessageField))
  529. case *AttributeFieldMapping_PriceField:
  530. b.EncodeVarint(11<<3 | proto.WireVarint)
  531. b.EncodeVarint(uint64(x.PriceField))
  532. case *AttributeFieldMapping_PromotionField:
  533. b.EncodeVarint(12<<3 | proto.WireVarint)
  534. b.EncodeVarint(uint64(x.PromotionField))
  535. case *AttributeFieldMapping_AdCustomizerField:
  536. b.EncodeVarint(13<<3 | proto.WireVarint)
  537. b.EncodeVarint(uint64(x.AdCustomizerField))
  538. case *AttributeFieldMapping_DsaPageFeedField:
  539. b.EncodeVarint(14<<3 | proto.WireVarint)
  540. b.EncodeVarint(uint64(x.DsaPageFeedField))
  541. case *AttributeFieldMapping_LocationExtensionTargetingField:
  542. b.EncodeVarint(15<<3 | proto.WireVarint)
  543. b.EncodeVarint(uint64(x.LocationExtensionTargetingField))
  544. case *AttributeFieldMapping_EducationField:
  545. b.EncodeVarint(16<<3 | proto.WireVarint)
  546. b.EncodeVarint(uint64(x.EducationField))
  547. case *AttributeFieldMapping_FlightField:
  548. b.EncodeVarint(17<<3 | proto.WireVarint)
  549. b.EncodeVarint(uint64(x.FlightField))
  550. case *AttributeFieldMapping_CustomField:
  551. b.EncodeVarint(18<<3 | proto.WireVarint)
  552. b.EncodeVarint(uint64(x.CustomField))
  553. case *AttributeFieldMapping_HotelField:
  554. b.EncodeVarint(19<<3 | proto.WireVarint)
  555. b.EncodeVarint(uint64(x.HotelField))
  556. case *AttributeFieldMapping_RealEstateField:
  557. b.EncodeVarint(20<<3 | proto.WireVarint)
  558. b.EncodeVarint(uint64(x.RealEstateField))
  559. case *AttributeFieldMapping_TravelField:
  560. b.EncodeVarint(21<<3 | proto.WireVarint)
  561. b.EncodeVarint(uint64(x.TravelField))
  562. case *AttributeFieldMapping_LocalField:
  563. b.EncodeVarint(22<<3 | proto.WireVarint)
  564. b.EncodeVarint(uint64(x.LocalField))
  565. case *AttributeFieldMapping_JobField:
  566. b.EncodeVarint(23<<3 | proto.WireVarint)
  567. b.EncodeVarint(uint64(x.JobField))
  568. case nil:
  569. default:
  570. return fmt.Errorf("AttributeFieldMapping.Field has unexpected type %T", x)
  571. }
  572. return nil
  573. }
  574. func _AttributeFieldMapping_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  575. m := msg.(*AttributeFieldMapping)
  576. switch tag {
  577. case 3: // field.sitelink_field
  578. if wire != proto.WireVarint {
  579. return true, proto.ErrInternalBadWireType
  580. }
  581. x, err := b.DecodeVarint()
  582. m.Field = &AttributeFieldMapping_SitelinkField{enums.SitelinkPlaceholderFieldEnum_SitelinkPlaceholderField(x)}
  583. return true, err
  584. case 4: // field.call_field
  585. if wire != proto.WireVarint {
  586. return true, proto.ErrInternalBadWireType
  587. }
  588. x, err := b.DecodeVarint()
  589. m.Field = &AttributeFieldMapping_CallField{enums.CallPlaceholderFieldEnum_CallPlaceholderField(x)}
  590. return true, err
  591. case 5: // field.app_field
  592. if wire != proto.WireVarint {
  593. return true, proto.ErrInternalBadWireType
  594. }
  595. x, err := b.DecodeVarint()
  596. m.Field = &AttributeFieldMapping_AppField{enums.AppPlaceholderFieldEnum_AppPlaceholderField(x)}
  597. return true, err
  598. case 6: // field.location_field
  599. if wire != proto.WireVarint {
  600. return true, proto.ErrInternalBadWireType
  601. }
  602. x, err := b.DecodeVarint()
  603. m.Field = &AttributeFieldMapping_LocationField{enums.LocationPlaceholderFieldEnum_LocationPlaceholderField(x)}
  604. return true, err
  605. case 7: // field.affiliate_location_field
  606. if wire != proto.WireVarint {
  607. return true, proto.ErrInternalBadWireType
  608. }
  609. x, err := b.DecodeVarint()
  610. m.Field = &AttributeFieldMapping_AffiliateLocationField{enums.AffiliateLocationPlaceholderFieldEnum_AffiliateLocationPlaceholderField(x)}
  611. return true, err
  612. case 8: // field.callout_field
  613. if wire != proto.WireVarint {
  614. return true, proto.ErrInternalBadWireType
  615. }
  616. x, err := b.DecodeVarint()
  617. m.Field = &AttributeFieldMapping_CalloutField{enums.CalloutPlaceholderFieldEnum_CalloutPlaceholderField(x)}
  618. return true, err
  619. case 9: // field.structured_snippet_field
  620. if wire != proto.WireVarint {
  621. return true, proto.ErrInternalBadWireType
  622. }
  623. x, err := b.DecodeVarint()
  624. m.Field = &AttributeFieldMapping_StructuredSnippetField{enums.StructuredSnippetPlaceholderFieldEnum_StructuredSnippetPlaceholderField(x)}
  625. return true, err
  626. case 10: // field.message_field
  627. if wire != proto.WireVarint {
  628. return true, proto.ErrInternalBadWireType
  629. }
  630. x, err := b.DecodeVarint()
  631. m.Field = &AttributeFieldMapping_MessageField{enums.MessagePlaceholderFieldEnum_MessagePlaceholderField(x)}
  632. return true, err
  633. case 11: // field.price_field
  634. if wire != proto.WireVarint {
  635. return true, proto.ErrInternalBadWireType
  636. }
  637. x, err := b.DecodeVarint()
  638. m.Field = &AttributeFieldMapping_PriceField{enums.PricePlaceholderFieldEnum_PricePlaceholderField(x)}
  639. return true, err
  640. case 12: // field.promotion_field
  641. if wire != proto.WireVarint {
  642. return true, proto.ErrInternalBadWireType
  643. }
  644. x, err := b.DecodeVarint()
  645. m.Field = &AttributeFieldMapping_PromotionField{enums.PromotionPlaceholderFieldEnum_PromotionPlaceholderField(x)}
  646. return true, err
  647. case 13: // field.ad_customizer_field
  648. if wire != proto.WireVarint {
  649. return true, proto.ErrInternalBadWireType
  650. }
  651. x, err := b.DecodeVarint()
  652. m.Field = &AttributeFieldMapping_AdCustomizerField{enums.AdCustomizerPlaceholderFieldEnum_AdCustomizerPlaceholderField(x)}
  653. return true, err
  654. case 14: // field.dsa_page_feed_field
  655. if wire != proto.WireVarint {
  656. return true, proto.ErrInternalBadWireType
  657. }
  658. x, err := b.DecodeVarint()
  659. m.Field = &AttributeFieldMapping_DsaPageFeedField{enums.DsaPageFeedCriterionFieldEnum_DsaPageFeedCriterionField(x)}
  660. return true, err
  661. case 15: // field.location_extension_targeting_field
  662. if wire != proto.WireVarint {
  663. return true, proto.ErrInternalBadWireType
  664. }
  665. x, err := b.DecodeVarint()
  666. m.Field = &AttributeFieldMapping_LocationExtensionTargetingField{enums.LocationExtensionTargetingCriterionFieldEnum_LocationExtensionTargetingCriterionField(x)}
  667. return true, err
  668. case 16: // field.education_field
  669. if wire != proto.WireVarint {
  670. return true, proto.ErrInternalBadWireType
  671. }
  672. x, err := b.DecodeVarint()
  673. m.Field = &AttributeFieldMapping_EducationField{enums.EducationPlaceholderFieldEnum_EducationPlaceholderField(x)}
  674. return true, err
  675. case 17: // field.flight_field
  676. if wire != proto.WireVarint {
  677. return true, proto.ErrInternalBadWireType
  678. }
  679. x, err := b.DecodeVarint()
  680. m.Field = &AttributeFieldMapping_FlightField{enums.FlightPlaceholderFieldEnum_FlightPlaceholderField(x)}
  681. return true, err
  682. case 18: // field.custom_field
  683. if wire != proto.WireVarint {
  684. return true, proto.ErrInternalBadWireType
  685. }
  686. x, err := b.DecodeVarint()
  687. m.Field = &AttributeFieldMapping_CustomField{enums.CustomPlaceholderFieldEnum_CustomPlaceholderField(x)}
  688. return true, err
  689. case 19: // field.hotel_field
  690. if wire != proto.WireVarint {
  691. return true, proto.ErrInternalBadWireType
  692. }
  693. x, err := b.DecodeVarint()
  694. m.Field = &AttributeFieldMapping_HotelField{enums.HotelPlaceholderFieldEnum_HotelPlaceholderField(x)}
  695. return true, err
  696. case 20: // field.real_estate_field
  697. if wire != proto.WireVarint {
  698. return true, proto.ErrInternalBadWireType
  699. }
  700. x, err := b.DecodeVarint()
  701. m.Field = &AttributeFieldMapping_RealEstateField{enums.RealEstatePlaceholderFieldEnum_RealEstatePlaceholderField(x)}
  702. return true, err
  703. case 21: // field.travel_field
  704. if wire != proto.WireVarint {
  705. return true, proto.ErrInternalBadWireType
  706. }
  707. x, err := b.DecodeVarint()
  708. m.Field = &AttributeFieldMapping_TravelField{enums.TravelPlaceholderFieldEnum_TravelPlaceholderField(x)}
  709. return true, err
  710. case 22: // field.local_field
  711. if wire != proto.WireVarint {
  712. return true, proto.ErrInternalBadWireType
  713. }
  714. x, err := b.DecodeVarint()
  715. m.Field = &AttributeFieldMapping_LocalField{enums.LocalPlaceholderFieldEnum_LocalPlaceholderField(x)}
  716. return true, err
  717. case 23: // field.job_field
  718. if wire != proto.WireVarint {
  719. return true, proto.ErrInternalBadWireType
  720. }
  721. x, err := b.DecodeVarint()
  722. m.Field = &AttributeFieldMapping_JobField{enums.JobPlaceholderFieldEnum_JobPlaceholderField(x)}
  723. return true, err
  724. default:
  725. return false, nil
  726. }
  727. }
  728. func _AttributeFieldMapping_OneofSizer(msg proto.Message) (n int) {
  729. m := msg.(*AttributeFieldMapping)
  730. // field
  731. switch x := m.Field.(type) {
  732. case *AttributeFieldMapping_SitelinkField:
  733. n += 1 // tag and wire
  734. n += proto.SizeVarint(uint64(x.SitelinkField))
  735. case *AttributeFieldMapping_CallField:
  736. n += 1 // tag and wire
  737. n += proto.SizeVarint(uint64(x.CallField))
  738. case *AttributeFieldMapping_AppField:
  739. n += 1 // tag and wire
  740. n += proto.SizeVarint(uint64(x.AppField))
  741. case *AttributeFieldMapping_LocationField:
  742. n += 1 // tag and wire
  743. n += proto.SizeVarint(uint64(x.LocationField))
  744. case *AttributeFieldMapping_AffiliateLocationField:
  745. n += 1 // tag and wire
  746. n += proto.SizeVarint(uint64(x.AffiliateLocationField))
  747. case *AttributeFieldMapping_CalloutField:
  748. n += 1 // tag and wire
  749. n += proto.SizeVarint(uint64(x.CalloutField))
  750. case *AttributeFieldMapping_StructuredSnippetField:
  751. n += 1 // tag and wire
  752. n += proto.SizeVarint(uint64(x.StructuredSnippetField))
  753. case *AttributeFieldMapping_MessageField:
  754. n += 1 // tag and wire
  755. n += proto.SizeVarint(uint64(x.MessageField))
  756. case *AttributeFieldMapping_PriceField:
  757. n += 1 // tag and wire
  758. n += proto.SizeVarint(uint64(x.PriceField))
  759. case *AttributeFieldMapping_PromotionField:
  760. n += 1 // tag and wire
  761. n += proto.SizeVarint(uint64(x.PromotionField))
  762. case *AttributeFieldMapping_AdCustomizerField:
  763. n += 1 // tag and wire
  764. n += proto.SizeVarint(uint64(x.AdCustomizerField))
  765. case *AttributeFieldMapping_DsaPageFeedField:
  766. n += 1 // tag and wire
  767. n += proto.SizeVarint(uint64(x.DsaPageFeedField))
  768. case *AttributeFieldMapping_LocationExtensionTargetingField:
  769. n += 1 // tag and wire
  770. n += proto.SizeVarint(uint64(x.LocationExtensionTargetingField))
  771. case *AttributeFieldMapping_EducationField:
  772. n += 2 // tag and wire
  773. n += proto.SizeVarint(uint64(x.EducationField))
  774. case *AttributeFieldMapping_FlightField:
  775. n += 2 // tag and wire
  776. n += proto.SizeVarint(uint64(x.FlightField))
  777. case *AttributeFieldMapping_CustomField:
  778. n += 2 // tag and wire
  779. n += proto.SizeVarint(uint64(x.CustomField))
  780. case *AttributeFieldMapping_HotelField:
  781. n += 2 // tag and wire
  782. n += proto.SizeVarint(uint64(x.HotelField))
  783. case *AttributeFieldMapping_RealEstateField:
  784. n += 2 // tag and wire
  785. n += proto.SizeVarint(uint64(x.RealEstateField))
  786. case *AttributeFieldMapping_TravelField:
  787. n += 2 // tag and wire
  788. n += proto.SizeVarint(uint64(x.TravelField))
  789. case *AttributeFieldMapping_LocalField:
  790. n += 2 // tag and wire
  791. n += proto.SizeVarint(uint64(x.LocalField))
  792. case *AttributeFieldMapping_JobField:
  793. n += 2 // tag and wire
  794. n += proto.SizeVarint(uint64(x.JobField))
  795. case nil:
  796. default:
  797. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  798. }
  799. return n
  800. }
  801. func init() {
  802. proto.RegisterType((*FeedMapping)(nil), "google.ads.googleads.v1.resources.FeedMapping")
  803. proto.RegisterType((*AttributeFieldMapping)(nil), "google.ads.googleads.v1.resources.AttributeFieldMapping")
  804. }
  805. func init() {
  806. proto.RegisterFile("google/ads/googleads/v1/resources/feed_mapping.proto", fileDescriptor_feed_mapping_f08dc24e8136e1ff)
  807. }
  808. var fileDescriptor_feed_mapping_f08dc24e8136e1ff = []byte{
  809. // 1316 bytes of a gzipped FileDescriptorProto
  810. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x98, 0x4d, 0x6f, 0xe4, 0x44,
  811. 0x13, 0xc7, 0xed, 0x6c, 0x5e, 0x7b, 0xf2, 0x3a, 0x79, 0x36, 0xcf, 0x68, 0x59, 0x41, 0x36, 0x68,
  812. 0xa5, 0x9c, 0x3c, 0x24, 0x44, 0x0b, 0xcc, 0xf2, 0xa2, 0x49, 0x48, 0xe2, 0x44, 0xbb, 0xab, 0x91,
  813. 0x13, 0x45, 0x08, 0x45, 0x8c, 0x7a, 0xc6, 0x3d, 0x13, 0x07, 0x8f, 0x6d, 0xec, 0x76, 0x20, 0x48,
  814. 0x7b, 0xe0, 0x02, 0x37, 0x3e, 0xc4, 0x1e, 0x39, 0xf2, 0x15, 0xb8, 0x71, 0xe6, 0x53, 0xf0, 0x1d,
  815. 0x90, 0x50, 0x77, 0xd9, 0x3d, 0x4e, 0xb6, 0xdb, 0x6d, 0xe6, 0xe6, 0x74, 0xd5, 0xbf, 0x7e, 0x35,
  816. 0xe5, 0xea, 0x76, 0x75, 0xd0, 0xde, 0x30, 0x0c, 0x87, 0x3e, 0x69, 0x62, 0x37, 0x69, 0xc2, 0x23,
  817. 0x7b, 0xba, 0xd9, 0x69, 0xc6, 0x24, 0x09, 0xd3, 0xb8, 0x4f, 0x92, 0xe6, 0x80, 0x10, 0xb7, 0x3b,
  818. 0xc2, 0x51, 0xe4, 0x05, 0x43, 0x2b, 0x8a, 0x43, 0x1a, 0xd6, 0x9f, 0x80, 0xab, 0x85, 0xdd, 0xc4,
  819. 0x12, 0x2a, 0xeb, 0x66, 0xc7, 0x12, 0xaa, 0x47, 0x07, 0xaa, 0xc0, 0x24, 0x48, 0x47, 0x49, 0x13,
  820. 0xbb, 0xdd, 0x7e, 0x9a, 0xd0, 0x70, 0xe4, 0xfd, 0x48, 0xe2, 0x6e, 0xe4, 0xe3, 0x3e, 0xb9, 0x0a,
  821. 0x7d, 0x97, 0xc4, 0xdd, 0x81, 0x47, 0x7c, 0x17, 0x38, 0x8f, 0x6c, 0x4d, 0x90, 0xc1, 0xc0, 0xf3,
  822. 0x3d, 0x4c, 0x49, 0xd7, 0x0f, 0xfb, 0x98, 0x7a, 0x61, 0xa0, 0x8c, 0xf4, 0x89, 0x26, 0x52, 0x14,
  823. 0x29, 0xa5, 0xad, 0x72, 0x69, 0x1f, 0xfb, 0xbe, 0x52, 0xfb, 0x99, 0x5e, 0x1b, 0xa6, 0x54, 0x29,
  824. 0xff, 0x54, 0x23, 0xe7, 0x15, 0x54, 0xaa, 0xdb, 0xe5, 0x6a, 0x37, 0xc1, 0xdd, 0x08, 0x0f, 0x49,
  825. 0x97, 0xbf, 0xe0, 0x7e, 0xec, 0x51, 0x12, 0xb3, 0x12, 0x16, 0x43, 0x7c, 0x51, 0x1e, 0x82, 0xb8,
  826. 0xa9, 0xa6, 0xee, 0x9a, 0x00, 0xc5, 0xde, 0x2a, 0xa4, 0x40, 0x6f, 0x23, 0x92, 0x05, 0xf8, 0xe8,
  827. 0x3f, 0x04, 0x48, 0x28, 0xa6, 0x69, 0x52, 0xad, 0x76, 0x03, 0xdf, 0x1b, 0x5e, 0xa9, 0x2b, 0xff,
  828. 0xbc, 0x5c, 0x7d, 0x15, 0x52, 0xe2, 0x4f, 0xda, 0x6c, 0xd7, 0x61, 0x6f, 0x52, 0x2e, 0xeb, 0x73,
  829. 0x35, 0xb7, 0xa3, 0x17, 0xf3, 0x97, 0x45, 0x7e, 0xa0, 0x24, 0x48, 0x78, 0xa1, 0x71, 0x3c, 0x24,
  830. 0xf4, 0x6e, 0xf1, 0x8b, 0x11, 0x3f, 0xaf, 0x18, 0x71, 0xc2, 0xfe, 0x1f, 0x91, 0x24, 0x61, 0x1d,
  831. 0xa8, 0x92, 0xef, 0x95, 0xcb, 0x8b, 0xb2, 0x42, 0xcb, 0x68, 0x6a, 0x18, 0xc5, 0x5e, 0x9f, 0x4c,
  832. 0xda, 0xb0, 0x51, 0x1c, 0x8e, 0xc2, 0xd2, 0x9f, 0xac, 0xd9, 0x75, 0x31, 0xc1, 0x7e, 0x97, 0xb0,
  833. 0x4e, 0x55, 0xe7, 0xa0, 0xa9, 0x7a, 0xe2, 0x51, 0xe2, 0x7b, 0xc1, 0xb7, 0x93, 0x1e, 0x9b, 0x09,
  834. 0x8d, 0xd3, 0x3e, 0x4d, 0x63, 0xe2, 0x76, 0x93, 0xc0, 0x8b, 0x22, 0x32, 0xf1, 0x01, 0x44, 0x63,
  835. 0x7c, 0x53, 0xb2, 0x0f, 0xde, 0xcd, 0xd4, 0xfc, 0xaf, 0x5e, 0x3a, 0x68, 0x7e, 0x1f, 0xe3, 0x28,
  836. 0x22, 0x71, 0xbe, 0x45, 0x1f, 0xe7, 0xd1, 0x23, 0xaf, 0x89, 0x83, 0x20, 0xa4, 0xbc, 0x99, 0x32,
  837. 0xeb, 0xd6, 0xef, 0xd3, 0xa8, 0x76, 0x44, 0x88, 0xfb, 0x12, 0x76, 0x77, 0xfd, 0x7d, 0xb4, 0x94,
  838. 0x7f, 0x5e, 0xba, 0x01, 0x1e, 0x91, 0x86, 0xb9, 0x69, 0x6e, 0x2f, 0x38, 0x8b, 0xf9, 0xe2, 0x2b,
  839. 0x3c, 0x22, 0xf5, 0x0f, 0xd0, 0x34, 0x3b, 0x12, 0x1a, 0x53, 0x9b, 0xe6, 0x76, 0x6d, 0xf7, 0x71,
  840. 0xf6, 0x75, 0xb2, 0xf2, 0x0c, 0xac, 0x33, 0x1a, 0x7b, 0xc1, 0xf0, 0x02, 0xfb, 0x29, 0x71, 0xb8,
  841. 0x67, 0x3d, 0x46, 0x0d, 0x4c, 0x69, 0xec, 0xf5, 0x52, 0x4a, 0x20, 0xfb, 0xfc, 0x3c, 0x49, 0x1a,
  842. 0x33, 0x9b, 0x0f, 0xb6, 0x6b, 0xbb, 0x1f, 0x5b, 0xda, 0xcf, 0x9d, 0xd5, 0xce, 0x43, 0x1c, 0xb1,
  843. 0x08, 0x59, 0xca, 0xce, 0x06, 0x96, 0x2d, 0x27, 0xf5, 0x6f, 0xd0, 0x2c, 0x9c, 0x55, 0x8d, 0xd9,
  844. 0x4d, 0x73, 0x7b, 0x79, 0xf7, 0x48, 0x49, 0xe0, 0x75, 0xb6, 0x0a, 0x65, 0x38, 0xe3, 0xba, 0xc3,
  845. 0x20, 0x1d, 0xbd, 0xbd, 0xea, 0x64, 0x51, 0xeb, 0x21, 0x5a, 0xbd, 0xbf, 0x37, 0x1a, 0x0f, 0x38,
  846. 0x69, 0x5f, 0x43, 0xea, 0x8c, 0x65, 0xe7, 0xb7, 0x11, 0xe1, 0x9c, 0x7b, 0x6b, 0xb6, 0xe1, 0xac,
  847. 0x44, 0x77, 0x97, 0xea, 0xaf, 0xd1, 0xf2, 0xdd, 0xd3, 0xbb, 0x31, 0xcd, 0x71, 0xe7, 0xd5, 0x7f,
  848. 0xd8, 0x41, 0xae, 0x17, 0x5c, 0x95, 0xd1, 0x36, 0x9c, 0xa5, 0x7e, 0x71, 0x61, 0x7f, 0x1e, 0xcd,
  849. 0xc2, 0x49, 0xb6, 0xf5, 0xd7, 0x06, 0x7a, 0x28, 0x7d, 0x17, 0xf5, 0x63, 0xb4, 0xc6, 0x3f, 0x16,
  850. 0xe3, 0x97, 0xed, 0xb9, 0xbc, 0x85, 0x6a, 0xbb, 0xef, 0xbc, 0xd5, 0x26, 0x27, 0x01, 0x7d, 0xb6,
  851. 0x07, 0x5d, 0xb2, 0xc2, 0x54, 0x22, 0xe4, 0x89, 0x5b, 0x7f, 0x86, 0xe6, 0xa1, 0x4d, 0xbc, 0xbc,
  852. 0xcd, 0x4a, 0xf5, 0x73, 0xdc, 0xf9, 0xc4, 0x65, 0x35, 0x12, 0x3b, 0x97, 0xaf, 0x65, 0xaf, 0x44,
  853. 0x57, 0xa3, 0xb3, 0x4c, 0x54, 0x78, 0x0d, 0xfc, 0x87, 0xf1, 0x1a, 0xa9, 0x8c, 0xac, 0x46, 0x39,
  854. 0x8d, 0x2f, 0xd4, 0x47, 0x08, 0xf1, 0x51, 0x05, 0xd0, 0xf0, 0x7a, 0x5e, 0x68, 0xd0, 0x07, 0xd8,
  855. 0xf7, 0xa5, 0x58, 0x99, 0xc1, 0x36, 0x9c, 0x05, 0x46, 0x00, 0x9c, 0x87, 0x16, 0xd8, 0x50, 0x05,
  856. 0xb4, 0x19, 0x4e, 0x3b, 0xd5, 0xd0, 0xda, 0x51, 0x24, 0x85, 0x49, 0xd6, 0x6d, 0xc3, 0x99, 0xc7,
  857. 0x51, 0x04, 0xa8, 0xd7, 0x68, 0x59, 0x7c, 0x88, 0x80, 0x37, 0x5b, 0xa9, 0xb0, 0x2f, 0x32, 0x91,
  858. 0x14, 0xaa, 0x32, 0xb2, 0xc2, 0xe6, 0x34, 0xc0, 0xbf, 0x31, 0x51, 0x43, 0x32, 0x89, 0x42, 0x26,
  859. 0x73, 0x3c, 0x93, 0x81, 0xee, 0x97, 0xe7, 0xf2, 0xd2, 0x94, 0xb4, 0x5e, 0xb6, 0xe1, 0x6c, 0xe0,
  860. 0xfb, 0x4e, 0x90, 0xe4, 0x2d, 0x5a, 0xca, 0x87, 0x4d, 0x48, 0x6c, 0x9e, 0x27, 0xe6, 0x54, 0x68,
  861. 0x80, 0x30, 0xa5, 0xca, 0x1e, 0x90, 0xd8, 0x6c, 0xc3, 0x59, 0xcc, 0x50, 0xe3, 0xfa, 0x48, 0x3e,
  862. 0x39, 0x90, 0xc6, 0x42, 0xa5, 0xfa, 0x9c, 0x09, 0xf9, 0x19, 0xa8, 0xe5, 0x7b, 0x41, 0xe7, 0xc5,
  863. 0xea, 0x93, 0xdc, 0x77, 0x12, 0xf5, 0xc9, 0x87, 0x11, 0x48, 0x0c, 0x55, 0xaa, 0xcf, 0x4b, 0xd0,
  864. 0x48, 0xd3, 0x51, 0xd8, 0x58, 0x7d, 0x32, 0x14, 0xa0, 0xbf, 0x43, 0x35, 0x18, 0x49, 0x00, 0x5c,
  865. 0xe3, 0xe0, 0x57, 0xba, 0x73, 0x9a, 0x29, 0xa4, 0x58, 0xa9, 0xc5, 0x36, 0x1c, 0xc4, 0x21, 0x80,
  866. 0xfc, 0xc9, 0x44, 0x2b, 0xe3, 0x49, 0x06, 0xb8, 0x8b, 0x9c, 0x7b, 0xa1, 0xe5, 0x66, 0x2a, 0x05,
  867. 0x5b, 0x61, 0xb5, 0x0d, 0x67, 0x59, 0x00, 0x21, 0x87, 0x5f, 0x4d, 0xb4, 0x7e, 0xf7, 0x16, 0x08,
  868. 0x79, 0x2c, 0xf1, 0x3c, 0x2e, 0x75, 0x3b, 0xc6, 0x3d, 0x10, 0x42, 0xf9, 0x66, 0x29, 0x71, 0xb0,
  869. 0x0d, 0x67, 0x0d, 0x17, 0xec, 0x90, 0xd0, 0x2f, 0x26, 0x5a, 0xbf, 0x7b, 0x27, 0x82, 0x84, 0x96,
  870. 0x2b, 0x15, 0xe6, 0xcb, 0x04, 0x77, 0xd8, 0x2b, 0x25, 0xc4, 0x15, 0x1f, 0xab, 0x71, 0x36, 0x4a,
  871. 0xab, 0x6d, 0x38, 0xab, 0xee, 0xd8, 0x08, 0x99, 0xfc, 0x61, 0xa2, 0xad, 0xd2, 0x61, 0x1d, 0x12,
  872. 0x5b, 0xe1, 0x89, 0xd1, 0x8a, 0xa7, 0xdc, 0x61, 0x1e, 0xe7, 0x3c, 0x0f, 0x23, 0xc9, 0xb3, 0xaa,
  873. 0xb3, 0x6d, 0x38, 0xef, 0xf9, 0x4a, 0xdf, 0x71, 0x93, 0x8d, 0x2f, 0x88, 0x90, 0xf2, 0x6a, 0xa5,
  874. 0x5a, 0x1e, 0xe6, 0x2a, 0xe9, 0x9b, 0x55, 0x5a, 0x59, 0x93, 0x09, 0x20, 0xe4, 0x90, 0xa2, 0xc5,
  875. 0xec, 0xa2, 0x07, 0xfc, 0x35, 0xce, 0xef, 0xe8, 0xa6, 0x12, 0x2e, 0x91, 0xc2, 0xe5, 0x26, 0xdb,
  876. 0x70, 0x6a, 0xc0, 0x11, 0xd8, 0xec, 0x6e, 0x0e, 0xd8, 0x7a, 0x25, 0x2c, 0x34, 0xa4, 0xfc, 0xac,
  877. 0x95, 0x9a, 0x18, 0x16, 0x38, 0xe2, 0x24, 0x81, 0x8b, 0x29, 0x50, 0xd7, 0x2b, 0x9d, 0x24, 0x36,
  878. 0x53, 0x48, 0xa1, 0x52, 0x0b, 0x3b, 0x49, 0x38, 0x04, 0x90, 0x3f, 0x9b, 0x68, 0xad, 0x78, 0xa5,
  879. 0x01, 0xf2, 0xff, 0x38, 0xf9, 0x2b, 0x0d, 0xd9, 0x21, 0xd8, 0x3f, 0xe4, 0x32, 0x29, 0x5e, 0x6d,
  880. 0x66, 0x13, 0x68, 0x2c, 0xac, 0xa2, 0xe4, 0xd9, 0x6d, 0x04, 0x52, 0x78, 0x58, 0xa9, 0xe4, 0xe7,
  881. 0x5c, 0x22, 0xc5, 0xcb, 0x4d, 0xac, 0xe4, 0xc0, 0x11, 0x25, 0x87, 0x3b, 0x39, 0x50, 0x37, 0x2a,
  882. 0x95, 0x9c, 0xed, 0x32, 0x5f, 0x39, 0x75, 0x48, 0x4b, 0xce, 0x21, 0x62, 0xb2, 0xba, 0x0e, 0x7b,
  883. 0x19, 0xf0, 0xff, 0x95, 0x26, 0xab, 0xd3, 0xb0, 0x27, 0xc5, 0x49, 0xd6, 0xd9, 0x64, 0x75, 0x1d,
  884. 0xf6, 0xf8, 0xf3, 0xfe, 0x1c, 0x9a, 0xe1, 0x98, 0xfd, 0x7f, 0x4c, 0xf4, 0xb4, 0x1f, 0x8e, 0xf4,
  885. 0x17, 0xa1, 0xfd, 0xd5, 0xc2, 0xd4, 0xde, 0x61, 0xe3, 0x70, 0xc7, 0xfc, 0xfa, 0x34, 0x93, 0x0d,
  886. 0x43, 0x1f, 0x07, 0x43, 0x2b, 0x8c, 0x87, 0xcd, 0x21, 0x09, 0xf8, 0xb0, 0x9c, 0xdf, 0x2a, 0x23,
  887. 0x2f, 0x29, 0xf9, 0x1f, 0xe4, 0x73, 0xf1, 0xf4, 0x66, 0xea, 0xc1, 0x71, 0xbb, 0xfd, 0xdb, 0xd4,
  888. 0x93, 0x63, 0x08, 0xd9, 0x76, 0x13, 0x0b, 0x1e, 0xd9, 0xd3, 0xc5, 0x8e, 0xe5, 0xe4, 0x9e, 0x7f,
  889. 0xe6, 0x3e, 0x97, 0x6d, 0x37, 0xb9, 0x14, 0x3e, 0x97, 0x17, 0x3b, 0x97, 0xc2, 0xe7, 0xef, 0xa9,
  890. 0xa7, 0x60, 0x68, 0xb5, 0xda, 0x6e, 0xd2, 0x6a, 0x09, 0xaf, 0x56, 0xeb, 0x62, 0xa7, 0xd5, 0x12,
  891. 0x7e, 0xbd, 0x59, 0x9e, 0xec, 0x87, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x40, 0x51, 0x6f, 0xf7,
  892. 0x2f, 0x15, 0x00, 0x00,
  893. }