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.
 
 
 

684 lines
30 KiB

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