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.
 
 
 

686 lines
30 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/ads/googleads/v1/resources/feed.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. // The operator.
  20. type FeedAttributeOperation_Operator int32
  21. const (
  22. // Unspecified.
  23. FeedAttributeOperation_UNSPECIFIED FeedAttributeOperation_Operator = 0
  24. // Used for return value only. Represents value unknown in this version.
  25. FeedAttributeOperation_UNKNOWN FeedAttributeOperation_Operator = 1
  26. // Add the attribute to the existing attributes.
  27. FeedAttributeOperation_ADD FeedAttributeOperation_Operator = 2
  28. )
  29. var FeedAttributeOperation_Operator_name = map[int32]string{
  30. 0: "UNSPECIFIED",
  31. 1: "UNKNOWN",
  32. 2: "ADD",
  33. }
  34. var FeedAttributeOperation_Operator_value = map[string]int32{
  35. "UNSPECIFIED": 0,
  36. "UNKNOWN": 1,
  37. "ADD": 2,
  38. }
  39. func (x FeedAttributeOperation_Operator) String() string {
  40. return proto.EnumName(FeedAttributeOperation_Operator_name, int32(x))
  41. }
  42. func (FeedAttributeOperation_Operator) EnumDescriptor() ([]byte, []int) {
  43. return fileDescriptor_feed_8960a670f6dfba77, []int{2, 0}
  44. }
  45. // A feed.
  46. type Feed struct {
  47. // The resource name of the feed.
  48. // Feed resource names have the form:
  49. //
  50. // `customers/{customer_id}/feeds/{feed_id}`
  51. ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
  52. // The ID of the feed.
  53. // This field is read-only.
  54. Id *wrappers.Int64Value `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
  55. // Name of the feed. Required.
  56. Name *wrappers.StringValue `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
  57. // The Feed's attributes. Required on CREATE.
  58. // Disallowed on UPDATE. Use attribute_operations to add new attributes.
  59. Attributes []*FeedAttribute `protobuf:"bytes,4,rep,name=attributes,proto3" json:"attributes,omitempty"`
  60. // The list of operations changing the feed attributes. Attributes can only
  61. // be added, not removed.
  62. AttributeOperations []*FeedAttributeOperation `protobuf:"bytes,9,rep,name=attribute_operations,json=attributeOperations,proto3" json:"attribute_operations,omitempty"`
  63. // Specifies who manages the FeedAttributes for the Feed.
  64. Origin enums.FeedOriginEnum_FeedOrigin `protobuf:"varint,5,opt,name=origin,proto3,enum=google.ads.googleads.v1.enums.FeedOriginEnum_FeedOrigin" json:"origin,omitempty"`
  65. // Status of the feed.
  66. // This field is read-only.
  67. Status enums.FeedStatusEnum_FeedStatus `protobuf:"varint,8,opt,name=status,proto3,enum=google.ads.googleads.v1.enums.FeedStatusEnum_FeedStatus" json:"status,omitempty"`
  68. // The system data for the Feed. This data specifies information for
  69. // generating the feed items of the system generated feed.
  70. //
  71. // Types that are valid to be assigned to SystemFeedGenerationData:
  72. // *Feed_PlacesLocationFeedData_
  73. // *Feed_AffiliateLocationFeedData_
  74. SystemFeedGenerationData isFeed_SystemFeedGenerationData `protobuf_oneof:"system_feed_generation_data"`
  75. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  76. XXX_unrecognized []byte `json:"-"`
  77. XXX_sizecache int32 `json:"-"`
  78. }
  79. func (m *Feed) Reset() { *m = Feed{} }
  80. func (m *Feed) String() string { return proto.CompactTextString(m) }
  81. func (*Feed) ProtoMessage() {}
  82. func (*Feed) Descriptor() ([]byte, []int) {
  83. return fileDescriptor_feed_8960a670f6dfba77, []int{0}
  84. }
  85. func (m *Feed) XXX_Unmarshal(b []byte) error {
  86. return xxx_messageInfo_Feed.Unmarshal(m, b)
  87. }
  88. func (m *Feed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  89. return xxx_messageInfo_Feed.Marshal(b, m, deterministic)
  90. }
  91. func (dst *Feed) XXX_Merge(src proto.Message) {
  92. xxx_messageInfo_Feed.Merge(dst, src)
  93. }
  94. func (m *Feed) XXX_Size() int {
  95. return xxx_messageInfo_Feed.Size(m)
  96. }
  97. func (m *Feed) XXX_DiscardUnknown() {
  98. xxx_messageInfo_Feed.DiscardUnknown(m)
  99. }
  100. var xxx_messageInfo_Feed proto.InternalMessageInfo
  101. func (m *Feed) GetResourceName() string {
  102. if m != nil {
  103. return m.ResourceName
  104. }
  105. return ""
  106. }
  107. func (m *Feed) GetId() *wrappers.Int64Value {
  108. if m != nil {
  109. return m.Id
  110. }
  111. return nil
  112. }
  113. func (m *Feed) GetName() *wrappers.StringValue {
  114. if m != nil {
  115. return m.Name
  116. }
  117. return nil
  118. }
  119. func (m *Feed) GetAttributes() []*FeedAttribute {
  120. if m != nil {
  121. return m.Attributes
  122. }
  123. return nil
  124. }
  125. func (m *Feed) GetAttributeOperations() []*FeedAttributeOperation {
  126. if m != nil {
  127. return m.AttributeOperations
  128. }
  129. return nil
  130. }
  131. func (m *Feed) GetOrigin() enums.FeedOriginEnum_FeedOrigin {
  132. if m != nil {
  133. return m.Origin
  134. }
  135. return enums.FeedOriginEnum_UNSPECIFIED
  136. }
  137. func (m *Feed) GetStatus() enums.FeedStatusEnum_FeedStatus {
  138. if m != nil {
  139. return m.Status
  140. }
  141. return enums.FeedStatusEnum_UNSPECIFIED
  142. }
  143. type isFeed_SystemFeedGenerationData interface {
  144. isFeed_SystemFeedGenerationData()
  145. }
  146. type Feed_PlacesLocationFeedData_ struct {
  147. PlacesLocationFeedData *Feed_PlacesLocationFeedData `protobuf:"bytes,6,opt,name=places_location_feed_data,json=placesLocationFeedData,proto3,oneof"`
  148. }
  149. type Feed_AffiliateLocationFeedData_ struct {
  150. AffiliateLocationFeedData *Feed_AffiliateLocationFeedData `protobuf:"bytes,7,opt,name=affiliate_location_feed_data,json=affiliateLocationFeedData,proto3,oneof"`
  151. }
  152. func (*Feed_PlacesLocationFeedData_) isFeed_SystemFeedGenerationData() {}
  153. func (*Feed_AffiliateLocationFeedData_) isFeed_SystemFeedGenerationData() {}
  154. func (m *Feed) GetSystemFeedGenerationData() isFeed_SystemFeedGenerationData {
  155. if m != nil {
  156. return m.SystemFeedGenerationData
  157. }
  158. return nil
  159. }
  160. func (m *Feed) GetPlacesLocationFeedData() *Feed_PlacesLocationFeedData {
  161. if x, ok := m.GetSystemFeedGenerationData().(*Feed_PlacesLocationFeedData_); ok {
  162. return x.PlacesLocationFeedData
  163. }
  164. return nil
  165. }
  166. func (m *Feed) GetAffiliateLocationFeedData() *Feed_AffiliateLocationFeedData {
  167. if x, ok := m.GetSystemFeedGenerationData().(*Feed_AffiliateLocationFeedData_); ok {
  168. return x.AffiliateLocationFeedData
  169. }
  170. return nil
  171. }
  172. // XXX_OneofFuncs is for the internal use of the proto package.
  173. func (*Feed) 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{}) {
  174. return _Feed_OneofMarshaler, _Feed_OneofUnmarshaler, _Feed_OneofSizer, []interface{}{
  175. (*Feed_PlacesLocationFeedData_)(nil),
  176. (*Feed_AffiliateLocationFeedData_)(nil),
  177. }
  178. }
  179. func _Feed_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  180. m := msg.(*Feed)
  181. // system_feed_generation_data
  182. switch x := m.SystemFeedGenerationData.(type) {
  183. case *Feed_PlacesLocationFeedData_:
  184. b.EncodeVarint(6<<3 | proto.WireBytes)
  185. if err := b.EncodeMessage(x.PlacesLocationFeedData); err != nil {
  186. return err
  187. }
  188. case *Feed_AffiliateLocationFeedData_:
  189. b.EncodeVarint(7<<3 | proto.WireBytes)
  190. if err := b.EncodeMessage(x.AffiliateLocationFeedData); err != nil {
  191. return err
  192. }
  193. case nil:
  194. default:
  195. return fmt.Errorf("Feed.SystemFeedGenerationData has unexpected type %T", x)
  196. }
  197. return nil
  198. }
  199. func _Feed_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  200. m := msg.(*Feed)
  201. switch tag {
  202. case 6: // system_feed_generation_data.places_location_feed_data
  203. if wire != proto.WireBytes {
  204. return true, proto.ErrInternalBadWireType
  205. }
  206. msg := new(Feed_PlacesLocationFeedData)
  207. err := b.DecodeMessage(msg)
  208. m.SystemFeedGenerationData = &Feed_PlacesLocationFeedData_{msg}
  209. return true, err
  210. case 7: // system_feed_generation_data.affiliate_location_feed_data
  211. if wire != proto.WireBytes {
  212. return true, proto.ErrInternalBadWireType
  213. }
  214. msg := new(Feed_AffiliateLocationFeedData)
  215. err := b.DecodeMessage(msg)
  216. m.SystemFeedGenerationData = &Feed_AffiliateLocationFeedData_{msg}
  217. return true, err
  218. default:
  219. return false, nil
  220. }
  221. }
  222. func _Feed_OneofSizer(msg proto.Message) (n int) {
  223. m := msg.(*Feed)
  224. // system_feed_generation_data
  225. switch x := m.SystemFeedGenerationData.(type) {
  226. case *Feed_PlacesLocationFeedData_:
  227. s := proto.Size(x.PlacesLocationFeedData)
  228. n += 1 // tag and wire
  229. n += proto.SizeVarint(uint64(s))
  230. n += s
  231. case *Feed_AffiliateLocationFeedData_:
  232. s := proto.Size(x.AffiliateLocationFeedData)
  233. n += 1 // tag and wire
  234. n += proto.SizeVarint(uint64(s))
  235. n += s
  236. case nil:
  237. default:
  238. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  239. }
  240. return n
  241. }
  242. // Data used to configure a location feed populated from Google My Business
  243. // Locations.
  244. type Feed_PlacesLocationFeedData struct {
  245. // Required authentication token (from OAuth API) for the email.
  246. // This field can only be specified in a create request. All its subfields
  247. // are not selectable.
  248. OauthInfo *Feed_PlacesLocationFeedData_OAuthInfo `protobuf:"bytes,1,opt,name=oauth_info,json=oauthInfo,proto3" json:"oauth_info,omitempty"`
  249. // Email address of a Google My Business account or email address of a
  250. // manager of the Google My Business account. Required.
  251. EmailAddress *wrappers.StringValue `protobuf:"bytes,2,opt,name=email_address,json=emailAddress,proto3" json:"email_address,omitempty"`
  252. // Plus page ID of the managed business whose locations should be used. If
  253. // this field is not set, then all businesses accessible by the user
  254. // (specified by email_address) are used.
  255. // This field is mutate-only and is not selectable.
  256. BusinessAccountId *wrappers.StringValue `protobuf:"bytes,10,opt,name=business_account_id,json=businessAccountId,proto3" json:"business_account_id,omitempty"`
  257. // Used to filter Google My Business listings by business name. If
  258. // business_name_filter is set, only listings with a matching business name
  259. // are candidates to be sync'd into FeedItems.
  260. BusinessNameFilter *wrappers.StringValue `protobuf:"bytes,4,opt,name=business_name_filter,json=businessNameFilter,proto3" json:"business_name_filter,omitempty"`
  261. // Used to filter Google My Business listings by categories. If entries
  262. // exist in category_filters, only listings that belong to any of the
  263. // categories are candidates to be sync'd into FeedItems. If no entries
  264. // exist in category_filters, then all listings are candidates for syncing.
  265. CategoryFilters []*wrappers.StringValue `protobuf:"bytes,5,rep,name=category_filters,json=categoryFilters,proto3" json:"category_filters,omitempty"`
  266. // Used to filter Google My Business listings by labels. If entries exist in
  267. // label_filters, only listings that has any of the labels set are
  268. // candidates to be synchronized into FeedItems. If no entries exist in
  269. // label_filters, then all listings are candidates for syncing.
  270. LabelFilters []*wrappers.StringValue `protobuf:"bytes,6,rep,name=label_filters,json=labelFilters,proto3" json:"label_filters,omitempty"`
  271. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  272. XXX_unrecognized []byte `json:"-"`
  273. XXX_sizecache int32 `json:"-"`
  274. }
  275. func (m *Feed_PlacesLocationFeedData) Reset() { *m = Feed_PlacesLocationFeedData{} }
  276. func (m *Feed_PlacesLocationFeedData) String() string { return proto.CompactTextString(m) }
  277. func (*Feed_PlacesLocationFeedData) ProtoMessage() {}
  278. func (*Feed_PlacesLocationFeedData) Descriptor() ([]byte, []int) {
  279. return fileDescriptor_feed_8960a670f6dfba77, []int{0, 0}
  280. }
  281. func (m *Feed_PlacesLocationFeedData) XXX_Unmarshal(b []byte) error {
  282. return xxx_messageInfo_Feed_PlacesLocationFeedData.Unmarshal(m, b)
  283. }
  284. func (m *Feed_PlacesLocationFeedData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  285. return xxx_messageInfo_Feed_PlacesLocationFeedData.Marshal(b, m, deterministic)
  286. }
  287. func (dst *Feed_PlacesLocationFeedData) XXX_Merge(src proto.Message) {
  288. xxx_messageInfo_Feed_PlacesLocationFeedData.Merge(dst, src)
  289. }
  290. func (m *Feed_PlacesLocationFeedData) XXX_Size() int {
  291. return xxx_messageInfo_Feed_PlacesLocationFeedData.Size(m)
  292. }
  293. func (m *Feed_PlacesLocationFeedData) XXX_DiscardUnknown() {
  294. xxx_messageInfo_Feed_PlacesLocationFeedData.DiscardUnknown(m)
  295. }
  296. var xxx_messageInfo_Feed_PlacesLocationFeedData proto.InternalMessageInfo
  297. func (m *Feed_PlacesLocationFeedData) GetOauthInfo() *Feed_PlacesLocationFeedData_OAuthInfo {
  298. if m != nil {
  299. return m.OauthInfo
  300. }
  301. return nil
  302. }
  303. func (m *Feed_PlacesLocationFeedData) GetEmailAddress() *wrappers.StringValue {
  304. if m != nil {
  305. return m.EmailAddress
  306. }
  307. return nil
  308. }
  309. func (m *Feed_PlacesLocationFeedData) GetBusinessAccountId() *wrappers.StringValue {
  310. if m != nil {
  311. return m.BusinessAccountId
  312. }
  313. return nil
  314. }
  315. func (m *Feed_PlacesLocationFeedData) GetBusinessNameFilter() *wrappers.StringValue {
  316. if m != nil {
  317. return m.BusinessNameFilter
  318. }
  319. return nil
  320. }
  321. func (m *Feed_PlacesLocationFeedData) GetCategoryFilters() []*wrappers.StringValue {
  322. if m != nil {
  323. return m.CategoryFilters
  324. }
  325. return nil
  326. }
  327. func (m *Feed_PlacesLocationFeedData) GetLabelFilters() []*wrappers.StringValue {
  328. if m != nil {
  329. return m.LabelFilters
  330. }
  331. return nil
  332. }
  333. // Data used for authorization using OAuth.
  334. type Feed_PlacesLocationFeedData_OAuthInfo struct {
  335. // The HTTP method used to obtain authorization.
  336. HttpMethod *wrappers.StringValue `protobuf:"bytes,1,opt,name=http_method,json=httpMethod,proto3" json:"http_method,omitempty"`
  337. // The HTTP request URL used to obtain authorization.
  338. HttpRequestUrl *wrappers.StringValue `protobuf:"bytes,2,opt,name=http_request_url,json=httpRequestUrl,proto3" json:"http_request_url,omitempty"`
  339. // The HTTP authorization header used to obtain authorization.
  340. HttpAuthorizationHeader *wrappers.StringValue `protobuf:"bytes,3,opt,name=http_authorization_header,json=httpAuthorizationHeader,proto3" json:"http_authorization_header,omitempty"`
  341. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  342. XXX_unrecognized []byte `json:"-"`
  343. XXX_sizecache int32 `json:"-"`
  344. }
  345. func (m *Feed_PlacesLocationFeedData_OAuthInfo) Reset() { *m = Feed_PlacesLocationFeedData_OAuthInfo{} }
  346. func (m *Feed_PlacesLocationFeedData_OAuthInfo) String() string { return proto.CompactTextString(m) }
  347. func (*Feed_PlacesLocationFeedData_OAuthInfo) ProtoMessage() {}
  348. func (*Feed_PlacesLocationFeedData_OAuthInfo) Descriptor() ([]byte, []int) {
  349. return fileDescriptor_feed_8960a670f6dfba77, []int{0, 0, 0}
  350. }
  351. func (m *Feed_PlacesLocationFeedData_OAuthInfo) XXX_Unmarshal(b []byte) error {
  352. return xxx_messageInfo_Feed_PlacesLocationFeedData_OAuthInfo.Unmarshal(m, b)
  353. }
  354. func (m *Feed_PlacesLocationFeedData_OAuthInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  355. return xxx_messageInfo_Feed_PlacesLocationFeedData_OAuthInfo.Marshal(b, m, deterministic)
  356. }
  357. func (dst *Feed_PlacesLocationFeedData_OAuthInfo) XXX_Merge(src proto.Message) {
  358. xxx_messageInfo_Feed_PlacesLocationFeedData_OAuthInfo.Merge(dst, src)
  359. }
  360. func (m *Feed_PlacesLocationFeedData_OAuthInfo) XXX_Size() int {
  361. return xxx_messageInfo_Feed_PlacesLocationFeedData_OAuthInfo.Size(m)
  362. }
  363. func (m *Feed_PlacesLocationFeedData_OAuthInfo) XXX_DiscardUnknown() {
  364. xxx_messageInfo_Feed_PlacesLocationFeedData_OAuthInfo.DiscardUnknown(m)
  365. }
  366. var xxx_messageInfo_Feed_PlacesLocationFeedData_OAuthInfo proto.InternalMessageInfo
  367. func (m *Feed_PlacesLocationFeedData_OAuthInfo) GetHttpMethod() *wrappers.StringValue {
  368. if m != nil {
  369. return m.HttpMethod
  370. }
  371. return nil
  372. }
  373. func (m *Feed_PlacesLocationFeedData_OAuthInfo) GetHttpRequestUrl() *wrappers.StringValue {
  374. if m != nil {
  375. return m.HttpRequestUrl
  376. }
  377. return nil
  378. }
  379. func (m *Feed_PlacesLocationFeedData_OAuthInfo) GetHttpAuthorizationHeader() *wrappers.StringValue {
  380. if m != nil {
  381. return m.HttpAuthorizationHeader
  382. }
  383. return nil
  384. }
  385. // Data used to configure an affiliate location feed populated with the
  386. // specified chains.
  387. type Feed_AffiliateLocationFeedData struct {
  388. // The list of chains that the affiliate location feed will sync the
  389. // locations from.
  390. ChainIds []*wrappers.Int64Value `protobuf:"bytes,1,rep,name=chain_ids,json=chainIds,proto3" json:"chain_ids,omitempty"`
  391. // The relationship the chains have with the advertiser.
  392. RelationshipType enums.AffiliateLocationFeedRelationshipTypeEnum_AffiliateLocationFeedRelationshipType `protobuf:"varint,2,opt,name=relationship_type,json=relationshipType,proto3,enum=google.ads.googleads.v1.enums.AffiliateLocationFeedRelationshipTypeEnum_AffiliateLocationFeedRelationshipType" json:"relationship_type,omitempty"`
  393. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  394. XXX_unrecognized []byte `json:"-"`
  395. XXX_sizecache int32 `json:"-"`
  396. }
  397. func (m *Feed_AffiliateLocationFeedData) Reset() { *m = Feed_AffiliateLocationFeedData{} }
  398. func (m *Feed_AffiliateLocationFeedData) String() string { return proto.CompactTextString(m) }
  399. func (*Feed_AffiliateLocationFeedData) ProtoMessage() {}
  400. func (*Feed_AffiliateLocationFeedData) Descriptor() ([]byte, []int) {
  401. return fileDescriptor_feed_8960a670f6dfba77, []int{0, 1}
  402. }
  403. func (m *Feed_AffiliateLocationFeedData) XXX_Unmarshal(b []byte) error {
  404. return xxx_messageInfo_Feed_AffiliateLocationFeedData.Unmarshal(m, b)
  405. }
  406. func (m *Feed_AffiliateLocationFeedData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  407. return xxx_messageInfo_Feed_AffiliateLocationFeedData.Marshal(b, m, deterministic)
  408. }
  409. func (dst *Feed_AffiliateLocationFeedData) XXX_Merge(src proto.Message) {
  410. xxx_messageInfo_Feed_AffiliateLocationFeedData.Merge(dst, src)
  411. }
  412. func (m *Feed_AffiliateLocationFeedData) XXX_Size() int {
  413. return xxx_messageInfo_Feed_AffiliateLocationFeedData.Size(m)
  414. }
  415. func (m *Feed_AffiliateLocationFeedData) XXX_DiscardUnknown() {
  416. xxx_messageInfo_Feed_AffiliateLocationFeedData.DiscardUnknown(m)
  417. }
  418. var xxx_messageInfo_Feed_AffiliateLocationFeedData proto.InternalMessageInfo
  419. func (m *Feed_AffiliateLocationFeedData) GetChainIds() []*wrappers.Int64Value {
  420. if m != nil {
  421. return m.ChainIds
  422. }
  423. return nil
  424. }
  425. func (m *Feed_AffiliateLocationFeedData) GetRelationshipType() enums.AffiliateLocationFeedRelationshipTypeEnum_AffiliateLocationFeedRelationshipType {
  426. if m != nil {
  427. return m.RelationshipType
  428. }
  429. return enums.AffiliateLocationFeedRelationshipTypeEnum_UNSPECIFIED
  430. }
  431. // FeedAttributes define the types of data expected to be present in a Feed. A
  432. // single FeedAttribute specifies the expected type of the FeedItemAttributes
  433. // with the same FeedAttributeId. Optionally, a FeedAttribute can be marked as
  434. // being part of a FeedItem's unique key.
  435. type FeedAttribute struct {
  436. // ID of the attribute.
  437. Id *wrappers.Int64Value `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  438. // The name of the attribute. Required.
  439. Name *wrappers.StringValue `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  440. // Data type for feed attribute. Required.
  441. Type enums.FeedAttributeTypeEnum_FeedAttributeType `protobuf:"varint,3,opt,name=type,proto3,enum=google.ads.googleads.v1.enums.FeedAttributeTypeEnum_FeedAttributeType" json:"type,omitempty"`
  442. // Indicates that data corresponding to this attribute is part of a
  443. // FeedItem's unique key. It defaults to false if it is unspecified. Note
  444. // that a unique key is not required in a Feed's schema, in which case the
  445. // FeedItems must be referenced by their feed_item_id.
  446. IsPartOfKey *wrappers.BoolValue `protobuf:"bytes,4,opt,name=is_part_of_key,json=isPartOfKey,proto3" json:"is_part_of_key,omitempty"`
  447. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  448. XXX_unrecognized []byte `json:"-"`
  449. XXX_sizecache int32 `json:"-"`
  450. }
  451. func (m *FeedAttribute) Reset() { *m = FeedAttribute{} }
  452. func (m *FeedAttribute) String() string { return proto.CompactTextString(m) }
  453. func (*FeedAttribute) ProtoMessage() {}
  454. func (*FeedAttribute) Descriptor() ([]byte, []int) {
  455. return fileDescriptor_feed_8960a670f6dfba77, []int{1}
  456. }
  457. func (m *FeedAttribute) XXX_Unmarshal(b []byte) error {
  458. return xxx_messageInfo_FeedAttribute.Unmarshal(m, b)
  459. }
  460. func (m *FeedAttribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  461. return xxx_messageInfo_FeedAttribute.Marshal(b, m, deterministic)
  462. }
  463. func (dst *FeedAttribute) XXX_Merge(src proto.Message) {
  464. xxx_messageInfo_FeedAttribute.Merge(dst, src)
  465. }
  466. func (m *FeedAttribute) XXX_Size() int {
  467. return xxx_messageInfo_FeedAttribute.Size(m)
  468. }
  469. func (m *FeedAttribute) XXX_DiscardUnknown() {
  470. xxx_messageInfo_FeedAttribute.DiscardUnknown(m)
  471. }
  472. var xxx_messageInfo_FeedAttribute proto.InternalMessageInfo
  473. func (m *FeedAttribute) GetId() *wrappers.Int64Value {
  474. if m != nil {
  475. return m.Id
  476. }
  477. return nil
  478. }
  479. func (m *FeedAttribute) GetName() *wrappers.StringValue {
  480. if m != nil {
  481. return m.Name
  482. }
  483. return nil
  484. }
  485. func (m *FeedAttribute) GetType() enums.FeedAttributeTypeEnum_FeedAttributeType {
  486. if m != nil {
  487. return m.Type
  488. }
  489. return enums.FeedAttributeTypeEnum_UNSPECIFIED
  490. }
  491. func (m *FeedAttribute) GetIsPartOfKey() *wrappers.BoolValue {
  492. if m != nil {
  493. return m.IsPartOfKey
  494. }
  495. return nil
  496. }
  497. // Operation to be performed on a feed attribute list in a mutate.
  498. type FeedAttributeOperation struct {
  499. // Type of list operation to perform.
  500. Operator FeedAttributeOperation_Operator `protobuf:"varint,1,opt,name=operator,proto3,enum=google.ads.googleads.v1.resources.FeedAttributeOperation_Operator" json:"operator,omitempty"`
  501. // The feed attribute being added to the list.
  502. Value *FeedAttribute `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  503. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  504. XXX_unrecognized []byte `json:"-"`
  505. XXX_sizecache int32 `json:"-"`
  506. }
  507. func (m *FeedAttributeOperation) Reset() { *m = FeedAttributeOperation{} }
  508. func (m *FeedAttributeOperation) String() string { return proto.CompactTextString(m) }
  509. func (*FeedAttributeOperation) ProtoMessage() {}
  510. func (*FeedAttributeOperation) Descriptor() ([]byte, []int) {
  511. return fileDescriptor_feed_8960a670f6dfba77, []int{2}
  512. }
  513. func (m *FeedAttributeOperation) XXX_Unmarshal(b []byte) error {
  514. return xxx_messageInfo_FeedAttributeOperation.Unmarshal(m, b)
  515. }
  516. func (m *FeedAttributeOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  517. return xxx_messageInfo_FeedAttributeOperation.Marshal(b, m, deterministic)
  518. }
  519. func (dst *FeedAttributeOperation) XXX_Merge(src proto.Message) {
  520. xxx_messageInfo_FeedAttributeOperation.Merge(dst, src)
  521. }
  522. func (m *FeedAttributeOperation) XXX_Size() int {
  523. return xxx_messageInfo_FeedAttributeOperation.Size(m)
  524. }
  525. func (m *FeedAttributeOperation) XXX_DiscardUnknown() {
  526. xxx_messageInfo_FeedAttributeOperation.DiscardUnknown(m)
  527. }
  528. var xxx_messageInfo_FeedAttributeOperation proto.InternalMessageInfo
  529. func (m *FeedAttributeOperation) GetOperator() FeedAttributeOperation_Operator {
  530. if m != nil {
  531. return m.Operator
  532. }
  533. return FeedAttributeOperation_UNSPECIFIED
  534. }
  535. func (m *FeedAttributeOperation) GetValue() *FeedAttribute {
  536. if m != nil {
  537. return m.Value
  538. }
  539. return nil
  540. }
  541. func init() {
  542. proto.RegisterType((*Feed)(nil), "google.ads.googleads.v1.resources.Feed")
  543. proto.RegisterType((*Feed_PlacesLocationFeedData)(nil), "google.ads.googleads.v1.resources.Feed.PlacesLocationFeedData")
  544. proto.RegisterType((*Feed_PlacesLocationFeedData_OAuthInfo)(nil), "google.ads.googleads.v1.resources.Feed.PlacesLocationFeedData.OAuthInfo")
  545. proto.RegisterType((*Feed_AffiliateLocationFeedData)(nil), "google.ads.googleads.v1.resources.Feed.AffiliateLocationFeedData")
  546. proto.RegisterType((*FeedAttribute)(nil), "google.ads.googleads.v1.resources.FeedAttribute")
  547. proto.RegisterType((*FeedAttributeOperation)(nil), "google.ads.googleads.v1.resources.FeedAttributeOperation")
  548. proto.RegisterEnum("google.ads.googleads.v1.resources.FeedAttributeOperation_Operator", FeedAttributeOperation_Operator_name, FeedAttributeOperation_Operator_value)
  549. }
  550. func init() {
  551. proto.RegisterFile("google/ads/googleads/v1/resources/feed.proto", fileDescriptor_feed_8960a670f6dfba77)
  552. }
  553. var fileDescriptor_feed_8960a670f6dfba77 = []byte{
  554. // 1031 bytes of a gzipped FileDescriptorProto
  555. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x96, 0xcf, 0x6f, 0xe3, 0x44,
  556. 0x14, 0xc7, 0xd7, 0x49, 0xfa, 0x23, 0x93, 0x36, 0x9b, 0x9d, 0x5d, 0x15, 0x37, 0x5b, 0x50, 0xb7,
  557. 0x68, 0xa5, 0x4a, 0x20, 0x67, 0x13, 0x10, 0x2c, 0x41, 0x80, 0x1c, 0xda, 0xb4, 0x61, 0x77, 0x93,
  558. 0xc8, 0xa5, 0x05, 0xad, 0x2a, 0xac, 0x49, 0x3c, 0x71, 0x46, 0x38, 0x1e, 0x33, 0x33, 0x2e, 0x0a,
  559. 0x5c, 0xb9, 0xf1, 0x27, 0x70, 0xe3, 0xc8, 0x9f, 0xc2, 0xff, 0xc0, 0x19, 0x09, 0x71, 0x5b, 0x89,
  560. 0x33, 0xf2, 0x8c, 0x6d, 0x42, 0xf3, 0xa3, 0x2e, 0xdc, 0xc6, 0x33, 0xdf, 0xef, 0xc7, 0xcf, 0xef,
  561. 0xe5, 0xbd, 0x09, 0x78, 0xdb, 0xa5, 0xd4, 0xf5, 0x70, 0x0d, 0x39, 0xbc, 0xa6, 0x96, 0xd1, 0xea,
  562. 0xaa, 0x5e, 0x63, 0x98, 0xd3, 0x90, 0x0d, 0x31, 0xaf, 0x8d, 0x30, 0x76, 0x8c, 0x80, 0x51, 0x41,
  563. 0xe1, 0x23, 0x25, 0x31, 0x90, 0xc3, 0x8d, 0x54, 0x6d, 0x5c, 0xd5, 0x8d, 0x54, 0x5d, 0x7d, 0xb1,
  564. 0x0c, 0x88, 0xfd, 0x70, 0xc2, 0x6b, 0x68, 0x34, 0x22, 0x1e, 0x41, 0x02, 0xdb, 0x1e, 0x1d, 0x22,
  565. 0x41, 0xa8, 0x6f, 0x47, 0x7c, 0x9b, 0x61, 0x4f, 0x3e, 0xf1, 0x31, 0x09, 0x6c, 0x31, 0x0d, 0xb0,
  566. 0x7a, 0x63, 0xf5, 0xfd, 0xd5, 0x38, 0xe9, 0x45, 0x42, 0x30, 0x32, 0x08, 0x05, 0x9e, 0x35, 0xd6,
  567. 0x32, 0x18, 0x29, 0x23, 0x2e, 0xf1, 0x6f, 0x61, 0xe0, 0x02, 0x89, 0x90, 0xc7, 0x86, 0x37, 0x62,
  568. 0x83, 0x7c, 0x1a, 0x84, 0xa3, 0xda, 0xb7, 0x0c, 0x05, 0x01, 0x66, 0xc9, 0xf9, 0x5e, 0x02, 0x0c,
  569. 0x48, 0x0d, 0xf9, 0x3e, 0x15, 0xea, 0x03, 0xd5, 0xe9, 0xc1, 0xef, 0xdb, 0xa0, 0xd0, 0xc6, 0xd8,
  570. 0x81, 0x6f, 0x82, 0xed, 0x24, 0x7b, 0xb6, 0x8f, 0x26, 0x58, 0xd7, 0xf6, 0xb5, 0xc3, 0xa2, 0xb5,
  571. 0x95, 0x6c, 0x76, 0xd1, 0x04, 0xc3, 0xb7, 0x40, 0x8e, 0x38, 0x7a, 0x6e, 0x5f, 0x3b, 0x2c, 0x35,
  572. 0x1e, 0xc6, 0xa9, 0x37, 0x92, 0x17, 0x1b, 0x1d, 0x5f, 0xbc, 0xf7, 0xee, 0x05, 0xf2, 0x42, 0x6c,
  573. 0xe5, 0x88, 0x03, 0x9f, 0x80, 0x82, 0x04, 0xe5, 0xa5, 0x7c, 0x6f, 0x4e, 0x7e, 0x26, 0x18, 0xf1,
  574. 0x5d, 0xa5, 0x97, 0x4a, 0xd8, 0x07, 0x20, 0x4d, 0x22, 0xd7, 0x0b, 0xfb, 0xf9, 0xc3, 0x52, 0xe3,
  575. 0x89, 0x71, 0x63, 0xb1, 0x8d, 0xe8, 0x03, 0xcc, 0xc4, 0x68, 0xcd, 0x30, 0xa0, 0x07, 0x1e, 0xfc,
  576. 0x53, 0x16, 0x1a, 0x60, 0xa6, 0x3e, 0x5e, 0x2f, 0x4a, 0xf6, 0x07, 0xb7, 0x65, 0xf7, 0x12, 0x82,
  577. 0x75, 0x1f, 0xcd, 0xed, 0x71, 0xd8, 0x07, 0xeb, 0xaa, 0x96, 0xfa, 0xda, 0xbe, 0x76, 0x58, 0x6e,
  578. 0x3c, 0x5d, 0xca, 0x97, 0xc5, 0x94, 0xec, 0x9e, 0x34, 0x1c, 0xfb, 0xe1, 0x64, 0xe6, 0xd1, 0x8a,
  579. 0x39, 0x11, 0x51, 0x15, 0x5b, 0xdf, 0xcc, 0x4c, 0x3c, 0x93, 0x86, 0x94, 0xa8, 0x1e, 0xad, 0x98,
  580. 0x03, 0xbf, 0x07, 0xbb, 0x81, 0x87, 0x86, 0x98, 0x5f, 0xfb, 0xe5, 0x3b, 0x48, 0x20, 0x7d, 0x5d,
  581. 0x96, 0xea, 0xe3, 0x8c, 0x69, 0x31, 0xfa, 0x12, 0xf4, 0x3c, 0xe6, 0x44, 0x5b, 0x47, 0x48, 0xa0,
  582. 0xd3, 0x3b, 0xd6, 0x4e, 0xb0, 0xf0, 0x04, 0xfe, 0xa0, 0x81, 0xbd, 0x65, 0xad, 0x27, 0x03, 0xd8,
  583. 0x90, 0x01, 0x98, 0x59, 0x03, 0x30, 0x13, 0xd6, 0x82, 0x18, 0x76, 0xd1, 0xb2, 0xc3, 0xea, 0x6f,
  584. 0x6b, 0x60, 0x67, 0x71, 0xec, 0xd0, 0x05, 0x80, 0xa2, 0x50, 0x8c, 0x6d, 0xe2, 0x8f, 0xa8, 0xec,
  585. 0x81, 0x52, 0xe3, 0xf4, 0xff, 0xe5, 0xc3, 0xe8, 0x99, 0xa1, 0x18, 0x77, 0xfc, 0x11, 0xb5, 0x8a,
  586. 0x92, 0x1d, 0x2d, 0xa1, 0x09, 0xb6, 0xf1, 0x04, 0x11, 0xcf, 0x46, 0x8e, 0xc3, 0x30, 0xe7, 0x71,
  587. 0x57, 0xad, 0x6e, 0x93, 0x2d, 0x69, 0x31, 0x95, 0x03, 0x3e, 0x07, 0xf7, 0x07, 0x21, 0x27, 0x3e,
  588. 0xe6, 0xdc, 0x46, 0xc3, 0x21, 0x0d, 0x7d, 0x61, 0x13, 0x47, 0x07, 0x19, 0x40, 0xf7, 0x12, 0xa3,
  589. 0xa9, 0x7c, 0x1d, 0x07, 0x76, 0xc1, 0x83, 0x94, 0x16, 0x75, 0xa3, 0x3d, 0x22, 0x9e, 0xc0, 0x4c,
  590. 0x2f, 0x64, 0xc0, 0xc1, 0xc4, 0x19, 0x4d, 0x89, 0xb6, 0xf4, 0xc1, 0x13, 0x50, 0x19, 0x22, 0x81,
  591. 0x5d, 0xca, 0xa6, 0x31, 0x8a, 0xeb, 0x6b, 0xb2, 0xed, 0x56, 0xb3, 0xee, 0x26, 0x2e, 0xc5, 0xe1,
  592. 0x51, 0xa6, 0x3c, 0x34, 0xc0, 0x5e, 0x4a, 0x59, 0xcf, 0x40, 0xd9, 0x92, 0x96, 0x18, 0x51, 0xfd,
  593. 0x53, 0x03, 0xc5, 0xb4, 0x0a, 0xf0, 0x23, 0x50, 0x1a, 0x0b, 0x11, 0xd8, 0x13, 0x2c, 0xc6, 0xd4,
  594. 0x89, 0x8b, 0xbc, 0x1a, 0x07, 0x22, 0xc3, 0x0b, 0xa9, 0x87, 0x6d, 0x50, 0x91, 0x76, 0x86, 0xbf,
  595. 0x09, 0x31, 0x17, 0x76, 0xc8, 0xbc, 0x4c, 0xc5, 0x2b, 0x47, 0x2e, 0x4b, 0x99, 0xce, 0x99, 0x07,
  596. 0xbf, 0x04, 0xbb, 0x92, 0x13, 0xfd, 0x24, 0x28, 0x23, 0xdf, 0xa9, 0x5e, 0x18, 0x63, 0xe4, 0x60,
  597. 0x96, 0x69, 0x68, 0xbe, 0x16, 0xd9, 0xcd, 0x59, 0xf7, 0xa9, 0x34, 0x57, 0x5f, 0x69, 0x60, 0x77,
  598. 0x69, 0x6b, 0xc0, 0xa7, 0xa0, 0x38, 0x1c, 0x23, 0xe2, 0xdb, 0xc4, 0xe1, 0xba, 0x26, 0x73, 0xb9,
  599. 0x72, 0x96, 0x6f, 0x4a, 0x75, 0xc7, 0xe1, 0xf0, 0x27, 0x0d, 0xdc, 0x9b, 0xbb, 0x21, 0xe5, 0xb7,
  600. 0x97, 0x1b, 0xfe, 0x0d, 0x93, 0x69, 0x61, 0x3c, 0xd6, 0x0c, 0xec, 0xf3, 0x69, 0x80, 0xe5, 0xd0,
  601. 0xca, 0xa4, 0xb4, 0x2a, 0xec, 0xda, 0x4e, 0xeb, 0x75, 0xf0, 0x90, 0x4f, 0xb9, 0xc0, 0x13, 0x35,
  602. 0x4f, 0x5c, 0xec, 0xc7, 0x83, 0x59, 0x8e, 0x96, 0x83, 0x1f, 0x73, 0x60, 0xfb, 0x5f, 0xc3, 0x3c,
  603. 0xbe, 0xcd, 0xb4, 0xdb, 0xdd, 0x66, 0xb9, 0xcc, 0xb7, 0xd9, 0x4b, 0x50, 0x90, 0xf9, 0xc9, 0xcb,
  604. 0xfc, 0xb4, 0x33, 0x4c, 0xee, 0x34, 0xb4, 0x34, 0x17, 0x73, 0xbb, 0x96, 0x64, 0xc2, 0x4f, 0x40,
  605. 0x99, 0x70, 0x3b, 0x40, 0x4c, 0xd8, 0x74, 0x64, 0x7f, 0x8d, 0xa7, 0x71, 0x9b, 0x56, 0xe7, 0xe2,
  606. 0x6a, 0x51, 0xea, 0xa9, 0xa8, 0x4a, 0x84, 0xf7, 0x11, 0x13, 0xbd, 0xd1, 0x33, 0x3c, 0x3d, 0x78,
  607. 0xa5, 0x81, 0x9d, 0xc5, 0x57, 0x1b, 0xfc, 0x0a, 0x6c, 0xaa, 0x9b, 0x92, 0x32, 0x99, 0x9c, 0x72,
  608. 0xa3, 0xf5, 0x9f, 0xef, 0x49, 0xa3, 0x17, 0x93, 0xac, 0x94, 0x09, 0xdb, 0x60, 0xed, 0x2a, 0x0a,
  609. 0x28, 0x4e, 0xe5, 0xed, 0x2f, 0x78, 0x65, 0x3f, 0xa8, 0x83, 0xcd, 0x84, 0x0e, 0xef, 0x82, 0xd2,
  610. 0x79, 0xf7, 0xac, 0x7f, 0xfc, 0x69, 0xa7, 0xdd, 0x39, 0x3e, 0xaa, 0xdc, 0x81, 0x25, 0xb0, 0x71,
  611. 0xde, 0x7d, 0xd6, 0xed, 0x7d, 0xd1, 0xad, 0x68, 0x70, 0x03, 0xe4, 0xcd, 0xa3, 0xa3, 0x4a, 0xae,
  612. 0xf5, 0x97, 0x06, 0x1e, 0x0f, 0xe9, 0xe4, 0xe6, 0x37, 0xb6, 0x8a, 0xd1, 0x2b, 0xfb, 0x51, 0x12,
  613. 0xfb, 0xda, 0xcb, 0xcf, 0x62, 0xbd, 0x4b, 0x3d, 0xe4, 0xbb, 0x06, 0x65, 0x6e, 0xcd, 0xc5, 0xbe,
  614. 0x4c, 0x71, 0xf2, 0x1f, 0x2d, 0x20, 0x7c, 0xc5, 0x9f, 0xd7, 0x0f, 0xd3, 0xd5, 0xcf, 0xb9, 0xfc,
  615. 0x89, 0x69, 0xfe, 0x92, 0x7b, 0x74, 0xa2, 0x90, 0xa6, 0xc3, 0x0d, 0xb5, 0x8c, 0x56, 0x17, 0x75,
  616. 0xc3, 0x4a, 0x94, 0xbf, 0x26, 0x9a, 0x4b, 0xd3, 0xe1, 0x97, 0xa9, 0xe6, 0xf2, 0xa2, 0x7e, 0x99,
  617. 0x6a, 0xfe, 0xc8, 0x3d, 0x56, 0x07, 0xcd, 0xa6, 0xe9, 0xf0, 0x66, 0x33, 0x55, 0x35, 0x9b, 0x17,
  618. 0xf5, 0x66, 0x33, 0xd5, 0x0d, 0xd6, 0x65, 0xb0, 0xef, 0xfc, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x24,
  619. 0xbb, 0xd9, 0x51, 0x68, 0x0b, 0x00, 0x00,
  620. }