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.
 
 
 

399 lines
15 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/ads/googleads/v0/resources/bidding_strategy.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 common "google.golang.org/genproto/googleapis/ads/googleads/v0/common"
  9. import enums "google.golang.org/genproto/googleapis/ads/googleads/v0/enums"
  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 bidding strategy.
  20. type BiddingStrategy struct {
  21. // The resource name of the bidding strategy.
  22. // Bidding strategy resource names have the form:
  23. //
  24. // `customers/{customer_id}/biddingStrategies/{bidding_strategy_id}`
  25. ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
  26. // The ID of the bidding strategy.
  27. Id *wrappers.Int64Value `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
  28. // The name of the bidding strategy.
  29. // All bidding strategies within an account must be named distinctly.
  30. //
  31. // The length of this string should be between 1 and 255, inclusive,
  32. // in UTF-8 bytes, (trimmed).
  33. Name *wrappers.StringValue `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
  34. // The type of the bidding strategy.
  35. // Create a bidding strategy by setting the bidding scheme.
  36. //
  37. // This field is read-only.
  38. Type enums.BiddingStrategyTypeEnum_BiddingStrategyType `protobuf:"varint,5,opt,name=type,proto3,enum=google.ads.googleads.v0.enums.BiddingStrategyTypeEnum_BiddingStrategyType" json:"type,omitempty"`
  39. // The bidding scheme.
  40. //
  41. // Only one can be set.
  42. //
  43. // Types that are valid to be assigned to Scheme:
  44. // *BiddingStrategy_EnhancedCpc
  45. // *BiddingStrategy_PageOnePromoted
  46. // *BiddingStrategy_TargetCpa
  47. // *BiddingStrategy_TargetOutrankShare
  48. // *BiddingStrategy_TargetRoas
  49. // *BiddingStrategy_TargetSpend
  50. Scheme isBiddingStrategy_Scheme `protobuf_oneof:"scheme"`
  51. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  52. XXX_unrecognized []byte `json:"-"`
  53. XXX_sizecache int32 `json:"-"`
  54. }
  55. func (m *BiddingStrategy) Reset() { *m = BiddingStrategy{} }
  56. func (m *BiddingStrategy) String() string { return proto.CompactTextString(m) }
  57. func (*BiddingStrategy) ProtoMessage() {}
  58. func (*BiddingStrategy) Descriptor() ([]byte, []int) {
  59. return fileDescriptor_bidding_strategy_40c5902f16816310, []int{0}
  60. }
  61. func (m *BiddingStrategy) XXX_Unmarshal(b []byte) error {
  62. return xxx_messageInfo_BiddingStrategy.Unmarshal(m, b)
  63. }
  64. func (m *BiddingStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  65. return xxx_messageInfo_BiddingStrategy.Marshal(b, m, deterministic)
  66. }
  67. func (dst *BiddingStrategy) XXX_Merge(src proto.Message) {
  68. xxx_messageInfo_BiddingStrategy.Merge(dst, src)
  69. }
  70. func (m *BiddingStrategy) XXX_Size() int {
  71. return xxx_messageInfo_BiddingStrategy.Size(m)
  72. }
  73. func (m *BiddingStrategy) XXX_DiscardUnknown() {
  74. xxx_messageInfo_BiddingStrategy.DiscardUnknown(m)
  75. }
  76. var xxx_messageInfo_BiddingStrategy proto.InternalMessageInfo
  77. func (m *BiddingStrategy) GetResourceName() string {
  78. if m != nil {
  79. return m.ResourceName
  80. }
  81. return ""
  82. }
  83. func (m *BiddingStrategy) GetId() *wrappers.Int64Value {
  84. if m != nil {
  85. return m.Id
  86. }
  87. return nil
  88. }
  89. func (m *BiddingStrategy) GetName() *wrappers.StringValue {
  90. if m != nil {
  91. return m.Name
  92. }
  93. return nil
  94. }
  95. func (m *BiddingStrategy) GetType() enums.BiddingStrategyTypeEnum_BiddingStrategyType {
  96. if m != nil {
  97. return m.Type
  98. }
  99. return enums.BiddingStrategyTypeEnum_UNSPECIFIED
  100. }
  101. type isBiddingStrategy_Scheme interface {
  102. isBiddingStrategy_Scheme()
  103. }
  104. type BiddingStrategy_EnhancedCpc struct {
  105. EnhancedCpc *common.EnhancedCpc `protobuf:"bytes,7,opt,name=enhanced_cpc,json=enhancedCpc,proto3,oneof"`
  106. }
  107. type BiddingStrategy_PageOnePromoted struct {
  108. PageOnePromoted *common.PageOnePromoted `protobuf:"bytes,8,opt,name=page_one_promoted,json=pageOnePromoted,proto3,oneof"`
  109. }
  110. type BiddingStrategy_TargetCpa struct {
  111. TargetCpa *common.TargetCpa `protobuf:"bytes,9,opt,name=target_cpa,json=targetCpa,proto3,oneof"`
  112. }
  113. type BiddingStrategy_TargetOutrankShare struct {
  114. TargetOutrankShare *common.TargetOutrankShare `protobuf:"bytes,10,opt,name=target_outrank_share,json=targetOutrankShare,proto3,oneof"`
  115. }
  116. type BiddingStrategy_TargetRoas struct {
  117. TargetRoas *common.TargetRoas `protobuf:"bytes,11,opt,name=target_roas,json=targetRoas,proto3,oneof"`
  118. }
  119. type BiddingStrategy_TargetSpend struct {
  120. TargetSpend *common.TargetSpend `protobuf:"bytes,12,opt,name=target_spend,json=targetSpend,proto3,oneof"`
  121. }
  122. func (*BiddingStrategy_EnhancedCpc) isBiddingStrategy_Scheme() {}
  123. func (*BiddingStrategy_PageOnePromoted) isBiddingStrategy_Scheme() {}
  124. func (*BiddingStrategy_TargetCpa) isBiddingStrategy_Scheme() {}
  125. func (*BiddingStrategy_TargetOutrankShare) isBiddingStrategy_Scheme() {}
  126. func (*BiddingStrategy_TargetRoas) isBiddingStrategy_Scheme() {}
  127. func (*BiddingStrategy_TargetSpend) isBiddingStrategy_Scheme() {}
  128. func (m *BiddingStrategy) GetScheme() isBiddingStrategy_Scheme {
  129. if m != nil {
  130. return m.Scheme
  131. }
  132. return nil
  133. }
  134. func (m *BiddingStrategy) GetEnhancedCpc() *common.EnhancedCpc {
  135. if x, ok := m.GetScheme().(*BiddingStrategy_EnhancedCpc); ok {
  136. return x.EnhancedCpc
  137. }
  138. return nil
  139. }
  140. func (m *BiddingStrategy) GetPageOnePromoted() *common.PageOnePromoted {
  141. if x, ok := m.GetScheme().(*BiddingStrategy_PageOnePromoted); ok {
  142. return x.PageOnePromoted
  143. }
  144. return nil
  145. }
  146. func (m *BiddingStrategy) GetTargetCpa() *common.TargetCpa {
  147. if x, ok := m.GetScheme().(*BiddingStrategy_TargetCpa); ok {
  148. return x.TargetCpa
  149. }
  150. return nil
  151. }
  152. func (m *BiddingStrategy) GetTargetOutrankShare() *common.TargetOutrankShare {
  153. if x, ok := m.GetScheme().(*BiddingStrategy_TargetOutrankShare); ok {
  154. return x.TargetOutrankShare
  155. }
  156. return nil
  157. }
  158. func (m *BiddingStrategy) GetTargetRoas() *common.TargetRoas {
  159. if x, ok := m.GetScheme().(*BiddingStrategy_TargetRoas); ok {
  160. return x.TargetRoas
  161. }
  162. return nil
  163. }
  164. func (m *BiddingStrategy) GetTargetSpend() *common.TargetSpend {
  165. if x, ok := m.GetScheme().(*BiddingStrategy_TargetSpend); ok {
  166. return x.TargetSpend
  167. }
  168. return nil
  169. }
  170. // XXX_OneofFuncs is for the internal use of the proto package.
  171. func (*BiddingStrategy) 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{}) {
  172. return _BiddingStrategy_OneofMarshaler, _BiddingStrategy_OneofUnmarshaler, _BiddingStrategy_OneofSizer, []interface{}{
  173. (*BiddingStrategy_EnhancedCpc)(nil),
  174. (*BiddingStrategy_PageOnePromoted)(nil),
  175. (*BiddingStrategy_TargetCpa)(nil),
  176. (*BiddingStrategy_TargetOutrankShare)(nil),
  177. (*BiddingStrategy_TargetRoas)(nil),
  178. (*BiddingStrategy_TargetSpend)(nil),
  179. }
  180. }
  181. func _BiddingStrategy_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  182. m := msg.(*BiddingStrategy)
  183. // scheme
  184. switch x := m.Scheme.(type) {
  185. case *BiddingStrategy_EnhancedCpc:
  186. b.EncodeVarint(7<<3 | proto.WireBytes)
  187. if err := b.EncodeMessage(x.EnhancedCpc); err != nil {
  188. return err
  189. }
  190. case *BiddingStrategy_PageOnePromoted:
  191. b.EncodeVarint(8<<3 | proto.WireBytes)
  192. if err := b.EncodeMessage(x.PageOnePromoted); err != nil {
  193. return err
  194. }
  195. case *BiddingStrategy_TargetCpa:
  196. b.EncodeVarint(9<<3 | proto.WireBytes)
  197. if err := b.EncodeMessage(x.TargetCpa); err != nil {
  198. return err
  199. }
  200. case *BiddingStrategy_TargetOutrankShare:
  201. b.EncodeVarint(10<<3 | proto.WireBytes)
  202. if err := b.EncodeMessage(x.TargetOutrankShare); err != nil {
  203. return err
  204. }
  205. case *BiddingStrategy_TargetRoas:
  206. b.EncodeVarint(11<<3 | proto.WireBytes)
  207. if err := b.EncodeMessage(x.TargetRoas); err != nil {
  208. return err
  209. }
  210. case *BiddingStrategy_TargetSpend:
  211. b.EncodeVarint(12<<3 | proto.WireBytes)
  212. if err := b.EncodeMessage(x.TargetSpend); err != nil {
  213. return err
  214. }
  215. case nil:
  216. default:
  217. return fmt.Errorf("BiddingStrategy.Scheme has unexpected type %T", x)
  218. }
  219. return nil
  220. }
  221. func _BiddingStrategy_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  222. m := msg.(*BiddingStrategy)
  223. switch tag {
  224. case 7: // scheme.enhanced_cpc
  225. if wire != proto.WireBytes {
  226. return true, proto.ErrInternalBadWireType
  227. }
  228. msg := new(common.EnhancedCpc)
  229. err := b.DecodeMessage(msg)
  230. m.Scheme = &BiddingStrategy_EnhancedCpc{msg}
  231. return true, err
  232. case 8: // scheme.page_one_promoted
  233. if wire != proto.WireBytes {
  234. return true, proto.ErrInternalBadWireType
  235. }
  236. msg := new(common.PageOnePromoted)
  237. err := b.DecodeMessage(msg)
  238. m.Scheme = &BiddingStrategy_PageOnePromoted{msg}
  239. return true, err
  240. case 9: // scheme.target_cpa
  241. if wire != proto.WireBytes {
  242. return true, proto.ErrInternalBadWireType
  243. }
  244. msg := new(common.TargetCpa)
  245. err := b.DecodeMessage(msg)
  246. m.Scheme = &BiddingStrategy_TargetCpa{msg}
  247. return true, err
  248. case 10: // scheme.target_outrank_share
  249. if wire != proto.WireBytes {
  250. return true, proto.ErrInternalBadWireType
  251. }
  252. msg := new(common.TargetOutrankShare)
  253. err := b.DecodeMessage(msg)
  254. m.Scheme = &BiddingStrategy_TargetOutrankShare{msg}
  255. return true, err
  256. case 11: // scheme.target_roas
  257. if wire != proto.WireBytes {
  258. return true, proto.ErrInternalBadWireType
  259. }
  260. msg := new(common.TargetRoas)
  261. err := b.DecodeMessage(msg)
  262. m.Scheme = &BiddingStrategy_TargetRoas{msg}
  263. return true, err
  264. case 12: // scheme.target_spend
  265. if wire != proto.WireBytes {
  266. return true, proto.ErrInternalBadWireType
  267. }
  268. msg := new(common.TargetSpend)
  269. err := b.DecodeMessage(msg)
  270. m.Scheme = &BiddingStrategy_TargetSpend{msg}
  271. return true, err
  272. default:
  273. return false, nil
  274. }
  275. }
  276. func _BiddingStrategy_OneofSizer(msg proto.Message) (n int) {
  277. m := msg.(*BiddingStrategy)
  278. // scheme
  279. switch x := m.Scheme.(type) {
  280. case *BiddingStrategy_EnhancedCpc:
  281. s := proto.Size(x.EnhancedCpc)
  282. n += 1 // tag and wire
  283. n += proto.SizeVarint(uint64(s))
  284. n += s
  285. case *BiddingStrategy_PageOnePromoted:
  286. s := proto.Size(x.PageOnePromoted)
  287. n += 1 // tag and wire
  288. n += proto.SizeVarint(uint64(s))
  289. n += s
  290. case *BiddingStrategy_TargetCpa:
  291. s := proto.Size(x.TargetCpa)
  292. n += 1 // tag and wire
  293. n += proto.SizeVarint(uint64(s))
  294. n += s
  295. case *BiddingStrategy_TargetOutrankShare:
  296. s := proto.Size(x.TargetOutrankShare)
  297. n += 1 // tag and wire
  298. n += proto.SizeVarint(uint64(s))
  299. n += s
  300. case *BiddingStrategy_TargetRoas:
  301. s := proto.Size(x.TargetRoas)
  302. n += 1 // tag and wire
  303. n += proto.SizeVarint(uint64(s))
  304. n += s
  305. case *BiddingStrategy_TargetSpend:
  306. s := proto.Size(x.TargetSpend)
  307. n += 1 // tag and wire
  308. n += proto.SizeVarint(uint64(s))
  309. n += s
  310. case nil:
  311. default:
  312. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  313. }
  314. return n
  315. }
  316. func init() {
  317. proto.RegisterType((*BiddingStrategy)(nil), "google.ads.googleads.v0.resources.BiddingStrategy")
  318. }
  319. func init() {
  320. proto.RegisterFile("google/ads/googleads/v0/resources/bidding_strategy.proto", fileDescriptor_bidding_strategy_40c5902f16816310)
  321. }
  322. var fileDescriptor_bidding_strategy_40c5902f16816310 = []byte{
  323. // 574 bytes of a gzipped FileDescriptorProto
  324. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xd1, 0x4e, 0xd4, 0x4c,
  325. 0x14, 0xc7, 0x77, 0x0b, 0x1f, 0x1f, 0xcc, 0xa2, 0xc4, 0x86, 0x8b, 0x06, 0x8d, 0x01, 0x0d, 0x09,
  326. 0x8a, 0x99, 0x36, 0x68, 0x8c, 0xd6, 0xab, 0x5d, 0x42, 0x58, 0x49, 0x94, 0x4d, 0x97, 0xec, 0x85,
  327. 0x59, 0x6d, 0x86, 0xce, 0x61, 0x68, 0xa4, 0x33, 0x93, 0x99, 0x29, 0x86, 0x4b, 0x2f, 0x7c, 0x11,
  328. 0x2f, 0x7d, 0x14, 0x1f, 0xc5, 0xa7,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8f, 0x8d, 0xca, 0x39, 0x73, 0x7a, 0xab, 0xf4, 0x3f, 0xa1, 0xf9, 0x6a,
  340. 0x8a, 0xe0, 0xbf, 0xf5, 0xee, 0xd6, 0xdd, 0x9d, 0x03, 0x3c, 0xeb, 0x95, 0xda, 0x37, 0x80, 0xaf,
  341. 0x4c, 0x70, 0x74, 0x21, 0x61, 0x8f, 0x97, 0xc5, 0xdf, 0xea, 0x89, 0xe5, 0xfa, 0x23, 0xb4, 0x0c,
  342. 0xfc, 0x94, 0xf0, 0x0c, 0x68, 0x9a, 0xc9, 0x2c, 0xf8, 0xdf, 0x76, 0xb6, 0x3d, 0xf3, 0x1c, 0xb7,
  343. 0x17, 0xbc, 0x57, 0x7b, 0x76, 0x65, 0x36, 0xec, 0x24, 0x3d, 0xb8, 0x4c, 0xfd, 0x8f, 0xe8, 0x9e,
  344. 0x24, 0x0c, 0x52, 0xc1, 0x21, 0x95, 0x4a, 0x14, 0xc2, 0x00, 0x0d, 0x16, 0x2d, 0x36, 0xbc, 0x09,
  345. 0x3b, 0x22, 0x0c, 0x0e, 0x39, 0x8c, 0x6a, 0xdb, 0xb0, 0x93, 0xac, 0xc8, 0x3f, 0x4b, 0xfe, 0x01,
  346. 0x42, 0x86, 0x28, 0x06, 0x26, 0xcd, 0x24, 0x09, 0x96, 0x2c, 0xf7, 0xc9, 0x4d, 0xdc, 0x23, 0xeb,
  347. 0xd8, 0x95, 0x64, 0xd8, 0x49, 0x96, 0x4c, 0x93, 0xf8, 0x27, 0x68, 0xb5, 0x66, 0x89, 0xd2, 0x28,
  348. 0xc2, 0x3f, 0xa7, 0xfa, 0x94, 0x28, 0x08, 0x90, 0xa5, 0xee, 0xdc, 0x8e, 0x7a, 0xe8, 0xac, 0xe3,
  349. 0xca, 0x39, 0xec, 0x24, 0xbe, 0xb9, 0x56, 0xf5, 0xdf, 0xa1, 0x5e, 0x7d, 0x8e, 0x12, 0x44, 0x07,
  350. 0x3d, 0x8b, 0x7f, 0x7a, 0x3b, 0x7c, 0x22, 0x88, 0x1e, 0x76, 0x92, 0x7a, 0xe8, 0x2a, 0xab, 0x76,
  351. 0x56, 0xe3, 0xb4, 0x04, 0x4e, 0x83, 0xe5, 0xdb, 0xed, 0xcc, 0xf1, 0xc6, 0x95, 0xa5, 0xda, 0x99,
  352. 0xb9, 0x4c, 0x07, 0x8b, 0x68, 0x41, 0x67, 0xa7, 0x50, 0xc0, 0xe0, 0xab, 0x87, 0x36, 0x33, 0x51,
  353. 0xe0, 0x1b, 0x3f, 0xdd, 0xc1, 0xea, 0x95, 0x4b, 0x35, 0xaa, 0x2e, 0xf1, 0xa8, 0xfb, 0xe1, 0xa0,
  354. 0xb6, 0x32, 0x71, 0x46, 0x38, 0xc3, 0x42, 0xb1, 0x90, 0x01, 0xb7, 0x57, 0xbc, 0xf9, 0x68, 0x65,
  355. 0xae, 0xff, 0xf1, 0x3b, 0x79, 0xd3, 0x46, 0xdf, 0xbd, 0xb9, 0xfd, 0x7e, 0xff, 0x87, 0xb7, 0xb1,
  356. 0xef, 0x90, 0x7d, 0xaa, 0xb1, 0x0b, 0xab, 0x68, 0x12, 0xe1, 0xa4, 0x51, 0xfe, 0x6c, 0x34, 0xd3,
  357. 0x3e, 0xd5, 0xd3, 0x56, 0x33, 0x9d, 0x44, 0xd3, 0x56, 0xf3, 0xcb, 0xdb, 0x74, 0x0f, 0xe2, 0xb8,
  358. 0x4f, 0x75, 0x1c, 0xb7, 0xaa, 0x38, 0x9e, 0x44, 0x71, 0xdc, 0xea, 0x8e, 0x17, 0x6c, 0xb3, 0xcf,
  359. 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0x21, 0x93, 0x56, 0xa6, 0xfa, 0x04, 0x00, 0x00,
  360. }