Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 

1054 řádky
44 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/ads/googleads/v0/resources/account_budget.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. // An account-level budget. It contains information about the budget itself,
  19. // as well as the most recently approved changes to the budget and proposed
  20. // changes that are pending approval. The proposed changes that are pending
  21. // approval, if any, are found in 'pending_proposal'. Effective details about
  22. // the budget are found in fields prefixed 'approved_', 'adjusted_' and those
  23. // without a prefix. Since some effective details may differ from what the user
  24. // had originally requested (e.g. spending limit), these differences are
  25. // juxtaposed via 'proposed_', 'approved_', and possibly 'adjusted_' fields.
  26. //
  27. // This resource is mutated using AccountBudgetProposal and cannot be mutated
  28. // directly. A budget may have at most one pending proposal at any given time.
  29. // It is read through pending_proposal.
  30. //
  31. // Once approved, a budget may be subject to adjustments, such as credit
  32. // adjustments. Adjustments create differences between the 'approved' and
  33. // 'adjusted' fields, which would otherwise be identical.
  34. type AccountBudget struct {
  35. // The resource name of the account-level budget.
  36. // AccountBudget resource names have the form:
  37. //
  38. // `customers/{customer_id}/accountBudgets/{account_budget_id}`
  39. ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
  40. // The ID of the account-level budget.
  41. Id *wrappers.Int64Value `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
  42. // The resource name of the billing setup associated with this account-level
  43. // budget. BillingSetup resource names have the form:
  44. //
  45. // `customers/{customer_id}/billingSetups/{billing_setup_id}`
  46. BillingSetup *wrappers.StringValue `protobuf:"bytes,3,opt,name=billing_setup,json=billingSetup,proto3" json:"billing_setup,omitempty"`
  47. // The status of this account-level budget.
  48. Status enums.AccountBudgetStatusEnum_AccountBudgetStatus `protobuf:"varint,4,opt,name=status,proto3,enum=google.ads.googleads.v0.enums.AccountBudgetStatusEnum_AccountBudgetStatus" json:"status,omitempty"`
  49. // The name of the account-level budget.
  50. Name *wrappers.StringValue `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
  51. // The proposed start time of the account-level budget in
  52. // yyyy-MM-dd HH:mm:ss format. If a start time type of NOW was proposed,
  53. // this is the time of request.
  54. ProposedStartDateTime *wrappers.StringValue `protobuf:"bytes,6,opt,name=proposed_start_date_time,json=proposedStartDateTime,proto3" json:"proposed_start_date_time,omitempty"`
  55. // The approved start time of the account-level budget in yyyy-MM-dd HH:mm:ss
  56. // format.
  57. //
  58. // For example, if a new budget is approved after the proposed start time,
  59. // the approved start time is the time of approval.
  60. ApprovedStartDateTime *wrappers.StringValue `protobuf:"bytes,7,opt,name=approved_start_date_time,json=approvedStartDateTime,proto3" json:"approved_start_date_time,omitempty"`
  61. // The total adjustments amount.
  62. //
  63. // An example of an adjustment is courtesy credits.
  64. TotalAdjustmentsMicros *wrappers.Int64Value `protobuf:"bytes,18,opt,name=total_adjustments_micros,json=totalAdjustmentsMicros,proto3" json:"total_adjustments_micros,omitempty"`
  65. // The value of Ads that have been served, in micros.
  66. //
  67. // This includes overdelivery costs, in which case a credit might be
  68. // automatically applied to the budget (see total_adjustments_micros).
  69. AmountServedMicros *wrappers.Int64Value `protobuf:"bytes,19,opt,name=amount_served_micros,json=amountServedMicros,proto3" json:"amount_served_micros,omitempty"`
  70. // A purchase order number is a value that helps users reference this budget
  71. // in their monthly invoices.
  72. PurchaseOrderNumber *wrappers.StringValue `protobuf:"bytes,20,opt,name=purchase_order_number,json=purchaseOrderNumber,proto3" json:"purchase_order_number,omitempty"`
  73. // Notes associated with the budget.
  74. Notes *wrappers.StringValue `protobuf:"bytes,21,opt,name=notes,proto3" json:"notes,omitempty"`
  75. // The pending proposal to modify this budget, if applicable.
  76. PendingProposal *AccountBudget_PendingAccountBudgetProposal `protobuf:"bytes,22,opt,name=pending_proposal,json=pendingProposal,proto3" json:"pending_proposal,omitempty"`
  77. // The proposed end time of the account-level budget.
  78. //
  79. // Types that are valid to be assigned to ProposedEndTime:
  80. // *AccountBudget_ProposedEndDateTime
  81. // *AccountBudget_ProposedEndTimeType
  82. ProposedEndTime isAccountBudget_ProposedEndTime `protobuf_oneof:"proposed_end_time"`
  83. // The approved end time of the account-level budget.
  84. //
  85. // For example, if a budget's end time is updated and the proposal is approved
  86. // after the proposed end time, the approved end time is the time of approval.
  87. //
  88. // Types that are valid to be assigned to ApprovedEndTime:
  89. // *AccountBudget_ApprovedEndDateTime
  90. // *AccountBudget_ApprovedEndTimeType
  91. ApprovedEndTime isAccountBudget_ApprovedEndTime `protobuf_oneof:"approved_end_time"`
  92. // The proposed spending limit.
  93. //
  94. // Types that are valid to be assigned to ProposedSpendingLimit:
  95. // *AccountBudget_ProposedSpendingLimitMicros
  96. // *AccountBudget_ProposedSpendingLimitType
  97. ProposedSpendingLimit isAccountBudget_ProposedSpendingLimit `protobuf_oneof:"proposed_spending_limit"`
  98. // The approved spending limit.
  99. //
  100. // For example, if the amount already spent by the account exceeds the
  101. // proposed spending limit at the time the proposal is approved, the approved
  102. // spending limit is set to the amount already spent.
  103. //
  104. // Types that are valid to be assigned to ApprovedSpendingLimit:
  105. // *AccountBudget_ApprovedSpendingLimitMicros
  106. // *AccountBudget_ApprovedSpendingLimitType
  107. ApprovedSpendingLimit isAccountBudget_ApprovedSpendingLimit `protobuf_oneof:"approved_spending_limit"`
  108. // The spending limit after adjustments have been applied. Adjustments are
  109. // stored in total_adjustments_micros.
  110. //
  111. // This value has the final say on how much the account is allowed to spend.
  112. //
  113. // Types that are valid to be assigned to AdjustedSpendingLimit:
  114. // *AccountBudget_AdjustedSpendingLimitMicros
  115. // *AccountBudget_AdjustedSpendingLimitType
  116. AdjustedSpendingLimit isAccountBudget_AdjustedSpendingLimit `protobuf_oneof:"adjusted_spending_limit"`
  117. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  118. XXX_unrecognized []byte `json:"-"`
  119. XXX_sizecache int32 `json:"-"`
  120. }
  121. func (m *AccountBudget) Reset() { *m = AccountBudget{} }
  122. func (m *AccountBudget) String() string { return proto.CompactTextString(m) }
  123. func (*AccountBudget) ProtoMessage() {}
  124. func (*AccountBudget) Descriptor() ([]byte, []int) {
  125. return fileDescriptor_account_budget_b49b5199235ca7bd, []int{0}
  126. }
  127. func (m *AccountBudget) XXX_Unmarshal(b []byte) error {
  128. return xxx_messageInfo_AccountBudget.Unmarshal(m, b)
  129. }
  130. func (m *AccountBudget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  131. return xxx_messageInfo_AccountBudget.Marshal(b, m, deterministic)
  132. }
  133. func (dst *AccountBudget) XXX_Merge(src proto.Message) {
  134. xxx_messageInfo_AccountBudget.Merge(dst, src)
  135. }
  136. func (m *AccountBudget) XXX_Size() int {
  137. return xxx_messageInfo_AccountBudget.Size(m)
  138. }
  139. func (m *AccountBudget) XXX_DiscardUnknown() {
  140. xxx_messageInfo_AccountBudget.DiscardUnknown(m)
  141. }
  142. var xxx_messageInfo_AccountBudget proto.InternalMessageInfo
  143. func (m *AccountBudget) GetResourceName() string {
  144. if m != nil {
  145. return m.ResourceName
  146. }
  147. return ""
  148. }
  149. func (m *AccountBudget) GetId() *wrappers.Int64Value {
  150. if m != nil {
  151. return m.Id
  152. }
  153. return nil
  154. }
  155. func (m *AccountBudget) GetBillingSetup() *wrappers.StringValue {
  156. if m != nil {
  157. return m.BillingSetup
  158. }
  159. return nil
  160. }
  161. func (m *AccountBudget) GetStatus() enums.AccountBudgetStatusEnum_AccountBudgetStatus {
  162. if m != nil {
  163. return m.Status
  164. }
  165. return enums.AccountBudgetStatusEnum_UNSPECIFIED
  166. }
  167. func (m *AccountBudget) GetName() *wrappers.StringValue {
  168. if m != nil {
  169. return m.Name
  170. }
  171. return nil
  172. }
  173. func (m *AccountBudget) GetProposedStartDateTime() *wrappers.StringValue {
  174. if m != nil {
  175. return m.ProposedStartDateTime
  176. }
  177. return nil
  178. }
  179. func (m *AccountBudget) GetApprovedStartDateTime() *wrappers.StringValue {
  180. if m != nil {
  181. return m.ApprovedStartDateTime
  182. }
  183. return nil
  184. }
  185. func (m *AccountBudget) GetTotalAdjustmentsMicros() *wrappers.Int64Value {
  186. if m != nil {
  187. return m.TotalAdjustmentsMicros
  188. }
  189. return nil
  190. }
  191. func (m *AccountBudget) GetAmountServedMicros() *wrappers.Int64Value {
  192. if m != nil {
  193. return m.AmountServedMicros
  194. }
  195. return nil
  196. }
  197. func (m *AccountBudget) GetPurchaseOrderNumber() *wrappers.StringValue {
  198. if m != nil {
  199. return m.PurchaseOrderNumber
  200. }
  201. return nil
  202. }
  203. func (m *AccountBudget) GetNotes() *wrappers.StringValue {
  204. if m != nil {
  205. return m.Notes
  206. }
  207. return nil
  208. }
  209. func (m *AccountBudget) GetPendingProposal() *AccountBudget_PendingAccountBudgetProposal {
  210. if m != nil {
  211. return m.PendingProposal
  212. }
  213. return nil
  214. }
  215. type isAccountBudget_ProposedEndTime interface {
  216. isAccountBudget_ProposedEndTime()
  217. }
  218. type AccountBudget_ProposedEndDateTime struct {
  219. ProposedEndDateTime *wrappers.StringValue `protobuf:"bytes,8,opt,name=proposed_end_date_time,json=proposedEndDateTime,proto3,oneof"`
  220. }
  221. type AccountBudget_ProposedEndTimeType struct {
  222. ProposedEndTimeType enums.TimeTypeEnum_TimeType `protobuf:"varint,9,opt,name=proposed_end_time_type,json=proposedEndTimeType,proto3,enum=google.ads.googleads.v0.enums.TimeTypeEnum_TimeType,oneof"`
  223. }
  224. func (*AccountBudget_ProposedEndDateTime) isAccountBudget_ProposedEndTime() {}
  225. func (*AccountBudget_ProposedEndTimeType) isAccountBudget_ProposedEndTime() {}
  226. func (m *AccountBudget) GetProposedEndTime() isAccountBudget_ProposedEndTime {
  227. if m != nil {
  228. return m.ProposedEndTime
  229. }
  230. return nil
  231. }
  232. func (m *AccountBudget) GetProposedEndDateTime() *wrappers.StringValue {
  233. if x, ok := m.GetProposedEndTime().(*AccountBudget_ProposedEndDateTime); ok {
  234. return x.ProposedEndDateTime
  235. }
  236. return nil
  237. }
  238. func (m *AccountBudget) GetProposedEndTimeType() enums.TimeTypeEnum_TimeType {
  239. if x, ok := m.GetProposedEndTime().(*AccountBudget_ProposedEndTimeType); ok {
  240. return x.ProposedEndTimeType
  241. }
  242. return enums.TimeTypeEnum_UNSPECIFIED
  243. }
  244. type isAccountBudget_ApprovedEndTime interface {
  245. isAccountBudget_ApprovedEndTime()
  246. }
  247. type AccountBudget_ApprovedEndDateTime struct {
  248. ApprovedEndDateTime *wrappers.StringValue `protobuf:"bytes,10,opt,name=approved_end_date_time,json=approvedEndDateTime,proto3,oneof"`
  249. }
  250. type AccountBudget_ApprovedEndTimeType struct {
  251. ApprovedEndTimeType enums.TimeTypeEnum_TimeType `protobuf:"varint,11,opt,name=approved_end_time_type,json=approvedEndTimeType,proto3,enum=google.ads.googleads.v0.enums.TimeTypeEnum_TimeType,oneof"`
  252. }
  253. func (*AccountBudget_ApprovedEndDateTime) isAccountBudget_ApprovedEndTime() {}
  254. func (*AccountBudget_ApprovedEndTimeType) isAccountBudget_ApprovedEndTime() {}
  255. func (m *AccountBudget) GetApprovedEndTime() isAccountBudget_ApprovedEndTime {
  256. if m != nil {
  257. return m.ApprovedEndTime
  258. }
  259. return nil
  260. }
  261. func (m *AccountBudget) GetApprovedEndDateTime() *wrappers.StringValue {
  262. if x, ok := m.GetApprovedEndTime().(*AccountBudget_ApprovedEndDateTime); ok {
  263. return x.ApprovedEndDateTime
  264. }
  265. return nil
  266. }
  267. func (m *AccountBudget) GetApprovedEndTimeType() enums.TimeTypeEnum_TimeType {
  268. if x, ok := m.GetApprovedEndTime().(*AccountBudget_ApprovedEndTimeType); ok {
  269. return x.ApprovedEndTimeType
  270. }
  271. return enums.TimeTypeEnum_UNSPECIFIED
  272. }
  273. type isAccountBudget_ProposedSpendingLimit interface {
  274. isAccountBudget_ProposedSpendingLimit()
  275. }
  276. type AccountBudget_ProposedSpendingLimitMicros struct {
  277. ProposedSpendingLimitMicros *wrappers.Int64Value `protobuf:"bytes,12,opt,name=proposed_spending_limit_micros,json=proposedSpendingLimitMicros,proto3,oneof"`
  278. }
  279. type AccountBudget_ProposedSpendingLimitType struct {
  280. ProposedSpendingLimitType enums.SpendingLimitTypeEnum_SpendingLimitType `protobuf:"varint,13,opt,name=proposed_spending_limit_type,json=proposedSpendingLimitType,proto3,enum=google.ads.googleads.v0.enums.SpendingLimitTypeEnum_SpendingLimitType,oneof"`
  281. }
  282. func (*AccountBudget_ProposedSpendingLimitMicros) isAccountBudget_ProposedSpendingLimit() {}
  283. func (*AccountBudget_ProposedSpendingLimitType) isAccountBudget_ProposedSpendingLimit() {}
  284. func (m *AccountBudget) GetProposedSpendingLimit() isAccountBudget_ProposedSpendingLimit {
  285. if m != nil {
  286. return m.ProposedSpendingLimit
  287. }
  288. return nil
  289. }
  290. func (m *AccountBudget) GetProposedSpendingLimitMicros() *wrappers.Int64Value {
  291. if x, ok := m.GetProposedSpendingLimit().(*AccountBudget_ProposedSpendingLimitMicros); ok {
  292. return x.ProposedSpendingLimitMicros
  293. }
  294. return nil
  295. }
  296. func (m *AccountBudget) GetProposedSpendingLimitType() enums.SpendingLimitTypeEnum_SpendingLimitType {
  297. if x, ok := m.GetProposedSpendingLimit().(*AccountBudget_ProposedSpendingLimitType); ok {
  298. return x.ProposedSpendingLimitType
  299. }
  300. return enums.SpendingLimitTypeEnum_UNSPECIFIED
  301. }
  302. type isAccountBudget_ApprovedSpendingLimit interface {
  303. isAccountBudget_ApprovedSpendingLimit()
  304. }
  305. type AccountBudget_ApprovedSpendingLimitMicros struct {
  306. ApprovedSpendingLimitMicros *wrappers.Int64Value `protobuf:"bytes,14,opt,name=approved_spending_limit_micros,json=approvedSpendingLimitMicros,proto3,oneof"`
  307. }
  308. type AccountBudget_ApprovedSpendingLimitType struct {
  309. ApprovedSpendingLimitType enums.SpendingLimitTypeEnum_SpendingLimitType `protobuf:"varint,15,opt,name=approved_spending_limit_type,json=approvedSpendingLimitType,proto3,enum=google.ads.googleads.v0.enums.SpendingLimitTypeEnum_SpendingLimitType,oneof"`
  310. }
  311. func (*AccountBudget_ApprovedSpendingLimitMicros) isAccountBudget_ApprovedSpendingLimit() {}
  312. func (*AccountBudget_ApprovedSpendingLimitType) isAccountBudget_ApprovedSpendingLimit() {}
  313. func (m *AccountBudget) GetApprovedSpendingLimit() isAccountBudget_ApprovedSpendingLimit {
  314. if m != nil {
  315. return m.ApprovedSpendingLimit
  316. }
  317. return nil
  318. }
  319. func (m *AccountBudget) GetApprovedSpendingLimitMicros() *wrappers.Int64Value {
  320. if x, ok := m.GetApprovedSpendingLimit().(*AccountBudget_ApprovedSpendingLimitMicros); ok {
  321. return x.ApprovedSpendingLimitMicros
  322. }
  323. return nil
  324. }
  325. func (m *AccountBudget) GetApprovedSpendingLimitType() enums.SpendingLimitTypeEnum_SpendingLimitType {
  326. if x, ok := m.GetApprovedSpendingLimit().(*AccountBudget_ApprovedSpendingLimitType); ok {
  327. return x.ApprovedSpendingLimitType
  328. }
  329. return enums.SpendingLimitTypeEnum_UNSPECIFIED
  330. }
  331. type isAccountBudget_AdjustedSpendingLimit interface {
  332. isAccountBudget_AdjustedSpendingLimit()
  333. }
  334. type AccountBudget_AdjustedSpendingLimitMicros struct {
  335. AdjustedSpendingLimitMicros *wrappers.Int64Value `protobuf:"bytes,16,opt,name=adjusted_spending_limit_micros,json=adjustedSpendingLimitMicros,proto3,oneof"`
  336. }
  337. type AccountBudget_AdjustedSpendingLimitType struct {
  338. AdjustedSpendingLimitType enums.SpendingLimitTypeEnum_SpendingLimitType `protobuf:"varint,17,opt,name=adjusted_spending_limit_type,json=adjustedSpendingLimitType,proto3,enum=google.ads.googleads.v0.enums.SpendingLimitTypeEnum_SpendingLimitType,oneof"`
  339. }
  340. func (*AccountBudget_AdjustedSpendingLimitMicros) isAccountBudget_AdjustedSpendingLimit() {}
  341. func (*AccountBudget_AdjustedSpendingLimitType) isAccountBudget_AdjustedSpendingLimit() {}
  342. func (m *AccountBudget) GetAdjustedSpendingLimit() isAccountBudget_AdjustedSpendingLimit {
  343. if m != nil {
  344. return m.AdjustedSpendingLimit
  345. }
  346. return nil
  347. }
  348. func (m *AccountBudget) GetAdjustedSpendingLimitMicros() *wrappers.Int64Value {
  349. if x, ok := m.GetAdjustedSpendingLimit().(*AccountBudget_AdjustedSpendingLimitMicros); ok {
  350. return x.AdjustedSpendingLimitMicros
  351. }
  352. return nil
  353. }
  354. func (m *AccountBudget) GetAdjustedSpendingLimitType() enums.SpendingLimitTypeEnum_SpendingLimitType {
  355. if x, ok := m.GetAdjustedSpendingLimit().(*AccountBudget_AdjustedSpendingLimitType); ok {
  356. return x.AdjustedSpendingLimitType
  357. }
  358. return enums.SpendingLimitTypeEnum_UNSPECIFIED
  359. }
  360. // XXX_OneofFuncs is for the internal use of the proto package.
  361. func (*AccountBudget) 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{}) {
  362. return _AccountBudget_OneofMarshaler, _AccountBudget_OneofUnmarshaler, _AccountBudget_OneofSizer, []interface{}{
  363. (*AccountBudget_ProposedEndDateTime)(nil),
  364. (*AccountBudget_ProposedEndTimeType)(nil),
  365. (*AccountBudget_ApprovedEndDateTime)(nil),
  366. (*AccountBudget_ApprovedEndTimeType)(nil),
  367. (*AccountBudget_ProposedSpendingLimitMicros)(nil),
  368. (*AccountBudget_ProposedSpendingLimitType)(nil),
  369. (*AccountBudget_ApprovedSpendingLimitMicros)(nil),
  370. (*AccountBudget_ApprovedSpendingLimitType)(nil),
  371. (*AccountBudget_AdjustedSpendingLimitMicros)(nil),
  372. (*AccountBudget_AdjustedSpendingLimitType)(nil),
  373. }
  374. }
  375. func _AccountBudget_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  376. m := msg.(*AccountBudget)
  377. // proposed_end_time
  378. switch x := m.ProposedEndTime.(type) {
  379. case *AccountBudget_ProposedEndDateTime:
  380. b.EncodeVarint(8<<3 | proto.WireBytes)
  381. if err := b.EncodeMessage(x.ProposedEndDateTime); err != nil {
  382. return err
  383. }
  384. case *AccountBudget_ProposedEndTimeType:
  385. b.EncodeVarint(9<<3 | proto.WireVarint)
  386. b.EncodeVarint(uint64(x.ProposedEndTimeType))
  387. case nil:
  388. default:
  389. return fmt.Errorf("AccountBudget.ProposedEndTime has unexpected type %T", x)
  390. }
  391. // approved_end_time
  392. switch x := m.ApprovedEndTime.(type) {
  393. case *AccountBudget_ApprovedEndDateTime:
  394. b.EncodeVarint(10<<3 | proto.WireBytes)
  395. if err := b.EncodeMessage(x.ApprovedEndDateTime); err != nil {
  396. return err
  397. }
  398. case *AccountBudget_ApprovedEndTimeType:
  399. b.EncodeVarint(11<<3 | proto.WireVarint)
  400. b.EncodeVarint(uint64(x.ApprovedEndTimeType))
  401. case nil:
  402. default:
  403. return fmt.Errorf("AccountBudget.ApprovedEndTime has unexpected type %T", x)
  404. }
  405. // proposed_spending_limit
  406. switch x := m.ProposedSpendingLimit.(type) {
  407. case *AccountBudget_ProposedSpendingLimitMicros:
  408. b.EncodeVarint(12<<3 | proto.WireBytes)
  409. if err := b.EncodeMessage(x.ProposedSpendingLimitMicros); err != nil {
  410. return err
  411. }
  412. case *AccountBudget_ProposedSpendingLimitType:
  413. b.EncodeVarint(13<<3 | proto.WireVarint)
  414. b.EncodeVarint(uint64(x.ProposedSpendingLimitType))
  415. case nil:
  416. default:
  417. return fmt.Errorf("AccountBudget.ProposedSpendingLimit has unexpected type %T", x)
  418. }
  419. // approved_spending_limit
  420. switch x := m.ApprovedSpendingLimit.(type) {
  421. case *AccountBudget_ApprovedSpendingLimitMicros:
  422. b.EncodeVarint(14<<3 | proto.WireBytes)
  423. if err := b.EncodeMessage(x.ApprovedSpendingLimitMicros); err != nil {
  424. return err
  425. }
  426. case *AccountBudget_ApprovedSpendingLimitType:
  427. b.EncodeVarint(15<<3 | proto.WireVarint)
  428. b.EncodeVarint(uint64(x.ApprovedSpendingLimitType))
  429. case nil:
  430. default:
  431. return fmt.Errorf("AccountBudget.ApprovedSpendingLimit has unexpected type %T", x)
  432. }
  433. // adjusted_spending_limit
  434. switch x := m.AdjustedSpendingLimit.(type) {
  435. case *AccountBudget_AdjustedSpendingLimitMicros:
  436. b.EncodeVarint(16<<3 | proto.WireBytes)
  437. if err := b.EncodeMessage(x.AdjustedSpendingLimitMicros); err != nil {
  438. return err
  439. }
  440. case *AccountBudget_AdjustedSpendingLimitType:
  441. b.EncodeVarint(17<<3 | proto.WireVarint)
  442. b.EncodeVarint(uint64(x.AdjustedSpendingLimitType))
  443. case nil:
  444. default:
  445. return fmt.Errorf("AccountBudget.AdjustedSpendingLimit has unexpected type %T", x)
  446. }
  447. return nil
  448. }
  449. func _AccountBudget_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  450. m := msg.(*AccountBudget)
  451. switch tag {
  452. case 8: // proposed_end_time.proposed_end_date_time
  453. if wire != proto.WireBytes {
  454. return true, proto.ErrInternalBadWireType
  455. }
  456. msg := new(wrappers.StringValue)
  457. err := b.DecodeMessage(msg)
  458. m.ProposedEndTime = &AccountBudget_ProposedEndDateTime{msg}
  459. return true, err
  460. case 9: // proposed_end_time.proposed_end_time_type
  461. if wire != proto.WireVarint {
  462. return true, proto.ErrInternalBadWireType
  463. }
  464. x, err := b.DecodeVarint()
  465. m.ProposedEndTime = &AccountBudget_ProposedEndTimeType{enums.TimeTypeEnum_TimeType(x)}
  466. return true, err
  467. case 10: // approved_end_time.approved_end_date_time
  468. if wire != proto.WireBytes {
  469. return true, proto.ErrInternalBadWireType
  470. }
  471. msg := new(wrappers.StringValue)
  472. err := b.DecodeMessage(msg)
  473. m.ApprovedEndTime = &AccountBudget_ApprovedEndDateTime{msg}
  474. return true, err
  475. case 11: // approved_end_time.approved_end_time_type
  476. if wire != proto.WireVarint {
  477. return true, proto.ErrInternalBadWireType
  478. }
  479. x, err := b.DecodeVarint()
  480. m.ApprovedEndTime = &AccountBudget_ApprovedEndTimeType{enums.TimeTypeEnum_TimeType(x)}
  481. return true, err
  482. case 12: // proposed_spending_limit.proposed_spending_limit_micros
  483. if wire != proto.WireBytes {
  484. return true, proto.ErrInternalBadWireType
  485. }
  486. msg := new(wrappers.Int64Value)
  487. err := b.DecodeMessage(msg)
  488. m.ProposedSpendingLimit = &AccountBudget_ProposedSpendingLimitMicros{msg}
  489. return true, err
  490. case 13: // proposed_spending_limit.proposed_spending_limit_type
  491. if wire != proto.WireVarint {
  492. return true, proto.ErrInternalBadWireType
  493. }
  494. x, err := b.DecodeVarint()
  495. m.ProposedSpendingLimit = &AccountBudget_ProposedSpendingLimitType{enums.SpendingLimitTypeEnum_SpendingLimitType(x)}
  496. return true, err
  497. case 14: // approved_spending_limit.approved_spending_limit_micros
  498. if wire != proto.WireBytes {
  499. return true, proto.ErrInternalBadWireType
  500. }
  501. msg := new(wrappers.Int64Value)
  502. err := b.DecodeMessage(msg)
  503. m.ApprovedSpendingLimit = &AccountBudget_ApprovedSpendingLimitMicros{msg}
  504. return true, err
  505. case 15: // approved_spending_limit.approved_spending_limit_type
  506. if wire != proto.WireVarint {
  507. return true, proto.ErrInternalBadWireType
  508. }
  509. x, err := b.DecodeVarint()
  510. m.ApprovedSpendingLimit = &AccountBudget_ApprovedSpendingLimitType{enums.SpendingLimitTypeEnum_SpendingLimitType(x)}
  511. return true, err
  512. case 16: // adjusted_spending_limit.adjusted_spending_limit_micros
  513. if wire != proto.WireBytes {
  514. return true, proto.ErrInternalBadWireType
  515. }
  516. msg := new(wrappers.Int64Value)
  517. err := b.DecodeMessage(msg)
  518. m.AdjustedSpendingLimit = &AccountBudget_AdjustedSpendingLimitMicros{msg}
  519. return true, err
  520. case 17: // adjusted_spending_limit.adjusted_spending_limit_type
  521. if wire != proto.WireVarint {
  522. return true, proto.ErrInternalBadWireType
  523. }
  524. x, err := b.DecodeVarint()
  525. m.AdjustedSpendingLimit = &AccountBudget_AdjustedSpendingLimitType{enums.SpendingLimitTypeEnum_SpendingLimitType(x)}
  526. return true, err
  527. default:
  528. return false, nil
  529. }
  530. }
  531. func _AccountBudget_OneofSizer(msg proto.Message) (n int) {
  532. m := msg.(*AccountBudget)
  533. // proposed_end_time
  534. switch x := m.ProposedEndTime.(type) {
  535. case *AccountBudget_ProposedEndDateTime:
  536. s := proto.Size(x.ProposedEndDateTime)
  537. n += 1 // tag and wire
  538. n += proto.SizeVarint(uint64(s))
  539. n += s
  540. case *AccountBudget_ProposedEndTimeType:
  541. n += 1 // tag and wire
  542. n += proto.SizeVarint(uint64(x.ProposedEndTimeType))
  543. case nil:
  544. default:
  545. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  546. }
  547. // approved_end_time
  548. switch x := m.ApprovedEndTime.(type) {
  549. case *AccountBudget_ApprovedEndDateTime:
  550. s := proto.Size(x.ApprovedEndDateTime)
  551. n += 1 // tag and wire
  552. n += proto.SizeVarint(uint64(s))
  553. n += s
  554. case *AccountBudget_ApprovedEndTimeType:
  555. n += 1 // tag and wire
  556. n += proto.SizeVarint(uint64(x.ApprovedEndTimeType))
  557. case nil:
  558. default:
  559. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  560. }
  561. // proposed_spending_limit
  562. switch x := m.ProposedSpendingLimit.(type) {
  563. case *AccountBudget_ProposedSpendingLimitMicros:
  564. s := proto.Size(x.ProposedSpendingLimitMicros)
  565. n += 1 // tag and wire
  566. n += proto.SizeVarint(uint64(s))
  567. n += s
  568. case *AccountBudget_ProposedSpendingLimitType:
  569. n += 1 // tag and wire
  570. n += proto.SizeVarint(uint64(x.ProposedSpendingLimitType))
  571. case nil:
  572. default:
  573. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  574. }
  575. // approved_spending_limit
  576. switch x := m.ApprovedSpendingLimit.(type) {
  577. case *AccountBudget_ApprovedSpendingLimitMicros:
  578. s := proto.Size(x.ApprovedSpendingLimitMicros)
  579. n += 1 // tag and wire
  580. n += proto.SizeVarint(uint64(s))
  581. n += s
  582. case *AccountBudget_ApprovedSpendingLimitType:
  583. n += 1 // tag and wire
  584. n += proto.SizeVarint(uint64(x.ApprovedSpendingLimitType))
  585. case nil:
  586. default:
  587. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  588. }
  589. // adjusted_spending_limit
  590. switch x := m.AdjustedSpendingLimit.(type) {
  591. case *AccountBudget_AdjustedSpendingLimitMicros:
  592. s := proto.Size(x.AdjustedSpendingLimitMicros)
  593. n += 2 // tag and wire
  594. n += proto.SizeVarint(uint64(s))
  595. n += s
  596. case *AccountBudget_AdjustedSpendingLimitType:
  597. n += 2 // tag and wire
  598. n += proto.SizeVarint(uint64(x.AdjustedSpendingLimitType))
  599. case nil:
  600. default:
  601. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  602. }
  603. return n
  604. }
  605. // A pending proposal associated with the enclosing account-level budget,
  606. // if applicable.
  607. type AccountBudget_PendingAccountBudgetProposal struct {
  608. // The resource name of the proposal.
  609. // AccountBudgetProposal resource names have the form:
  610. //
  611. //
  612. // `customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}`
  613. AccountBudgetProposal *wrappers.StringValue `protobuf:"bytes,1,opt,name=account_budget_proposal,json=accountBudgetProposal,proto3" json:"account_budget_proposal,omitempty"`
  614. // The type of this proposal, e.g. END to end the budget associated
  615. // with this proposal.
  616. ProposalType enums.AccountBudgetProposalTypeEnum_AccountBudgetProposalType `protobuf:"varint,2,opt,name=proposal_type,json=proposalType,proto3,enum=google.ads.googleads.v0.enums.AccountBudgetProposalTypeEnum_AccountBudgetProposalType" json:"proposal_type,omitempty"`
  617. // The name to assign to the account-level budget.
  618. Name *wrappers.StringValue `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
  619. // The start time in yyyy-MM-dd HH:mm:ss format.
  620. StartDateTime *wrappers.StringValue `protobuf:"bytes,4,opt,name=start_date_time,json=startDateTime,proto3" json:"start_date_time,omitempty"`
  621. // A purchase order number is a value that helps users reference this budget
  622. // in their monthly invoices.
  623. PurchaseOrderNumber *wrappers.StringValue `protobuf:"bytes,9,opt,name=purchase_order_number,json=purchaseOrderNumber,proto3" json:"purchase_order_number,omitempty"`
  624. // Notes associated with this budget.
  625. Notes *wrappers.StringValue `protobuf:"bytes,10,opt,name=notes,proto3" json:"notes,omitempty"`
  626. // The time when this account-level budget proposal was created.
  627. // Formatted as yyyy-MM-dd HH:mm:ss.
  628. CreationDateTime *wrappers.StringValue `protobuf:"bytes,11,opt,name=creation_date_time,json=creationDateTime,proto3" json:"creation_date_time,omitempty"`
  629. // The end time of the account-level budget.
  630. //
  631. // Types that are valid to be assigned to EndTime:
  632. // *AccountBudget_PendingAccountBudgetProposal_EndDateTime
  633. // *AccountBudget_PendingAccountBudgetProposal_EndTimeType
  634. EndTime isAccountBudget_PendingAccountBudgetProposal_EndTime `protobuf_oneof:"end_time"`
  635. // The spending limit.
  636. //
  637. // Types that are valid to be assigned to SpendingLimit:
  638. // *AccountBudget_PendingAccountBudgetProposal_SpendingLimitMicros
  639. // *AccountBudget_PendingAccountBudgetProposal_SpendingLimitType
  640. SpendingLimit isAccountBudget_PendingAccountBudgetProposal_SpendingLimit `protobuf_oneof:"spending_limit"`
  641. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  642. XXX_unrecognized []byte `json:"-"`
  643. XXX_sizecache int32 `json:"-"`
  644. }
  645. func (m *AccountBudget_PendingAccountBudgetProposal) Reset() {
  646. *m = AccountBudget_PendingAccountBudgetProposal{}
  647. }
  648. func (m *AccountBudget_PendingAccountBudgetProposal) String() string {
  649. return proto.CompactTextString(m)
  650. }
  651. func (*AccountBudget_PendingAccountBudgetProposal) ProtoMessage() {}
  652. func (*AccountBudget_PendingAccountBudgetProposal) Descriptor() ([]byte, []int) {
  653. return fileDescriptor_account_budget_b49b5199235ca7bd, []int{0, 0}
  654. }
  655. func (m *AccountBudget_PendingAccountBudgetProposal) XXX_Unmarshal(b []byte) error {
  656. return xxx_messageInfo_AccountBudget_PendingAccountBudgetProposal.Unmarshal(m, b)
  657. }
  658. func (m *AccountBudget_PendingAccountBudgetProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  659. return xxx_messageInfo_AccountBudget_PendingAccountBudgetProposal.Marshal(b, m, deterministic)
  660. }
  661. func (dst *AccountBudget_PendingAccountBudgetProposal) XXX_Merge(src proto.Message) {
  662. xxx_messageInfo_AccountBudget_PendingAccountBudgetProposal.Merge(dst, src)
  663. }
  664. func (m *AccountBudget_PendingAccountBudgetProposal) XXX_Size() int {
  665. return xxx_messageInfo_AccountBudget_PendingAccountBudgetProposal.Size(m)
  666. }
  667. func (m *AccountBudget_PendingAccountBudgetProposal) XXX_DiscardUnknown() {
  668. xxx_messageInfo_AccountBudget_PendingAccountBudgetProposal.DiscardUnknown(m)
  669. }
  670. var xxx_messageInfo_AccountBudget_PendingAccountBudgetProposal proto.InternalMessageInfo
  671. func (m *AccountBudget_PendingAccountBudgetProposal) GetAccountBudgetProposal() *wrappers.StringValue {
  672. if m != nil {
  673. return m.AccountBudgetProposal
  674. }
  675. return nil
  676. }
  677. func (m *AccountBudget_PendingAccountBudgetProposal) GetProposalType() enums.AccountBudgetProposalTypeEnum_AccountBudgetProposalType {
  678. if m != nil {
  679. return m.ProposalType
  680. }
  681. return enums.AccountBudgetProposalTypeEnum_UNSPECIFIED
  682. }
  683. func (m *AccountBudget_PendingAccountBudgetProposal) GetName() *wrappers.StringValue {
  684. if m != nil {
  685. return m.Name
  686. }
  687. return nil
  688. }
  689. func (m *AccountBudget_PendingAccountBudgetProposal) GetStartDateTime() *wrappers.StringValue {
  690. if m != nil {
  691. return m.StartDateTime
  692. }
  693. return nil
  694. }
  695. func (m *AccountBudget_PendingAccountBudgetProposal) GetPurchaseOrderNumber() *wrappers.StringValue {
  696. if m != nil {
  697. return m.PurchaseOrderNumber
  698. }
  699. return nil
  700. }
  701. func (m *AccountBudget_PendingAccountBudgetProposal) GetNotes() *wrappers.StringValue {
  702. if m != nil {
  703. return m.Notes
  704. }
  705. return nil
  706. }
  707. func (m *AccountBudget_PendingAccountBudgetProposal) GetCreationDateTime() *wrappers.StringValue {
  708. if m != nil {
  709. return m.CreationDateTime
  710. }
  711. return nil
  712. }
  713. type isAccountBudget_PendingAccountBudgetProposal_EndTime interface {
  714. isAccountBudget_PendingAccountBudgetProposal_EndTime()
  715. }
  716. type AccountBudget_PendingAccountBudgetProposal_EndDateTime struct {
  717. EndDateTime *wrappers.StringValue `protobuf:"bytes,5,opt,name=end_date_time,json=endDateTime,proto3,oneof"`
  718. }
  719. type AccountBudget_PendingAccountBudgetProposal_EndTimeType struct {
  720. EndTimeType enums.TimeTypeEnum_TimeType `protobuf:"varint,6,opt,name=end_time_type,json=endTimeType,proto3,enum=google.ads.googleads.v0.enums.TimeTypeEnum_TimeType,oneof"`
  721. }
  722. func (*AccountBudget_PendingAccountBudgetProposal_EndDateTime) isAccountBudget_PendingAccountBudgetProposal_EndTime() {
  723. }
  724. func (*AccountBudget_PendingAccountBudgetProposal_EndTimeType) isAccountBudget_PendingAccountBudgetProposal_EndTime() {
  725. }
  726. func (m *AccountBudget_PendingAccountBudgetProposal) GetEndTime() isAccountBudget_PendingAccountBudgetProposal_EndTime {
  727. if m != nil {
  728. return m.EndTime
  729. }
  730. return nil
  731. }
  732. func (m *AccountBudget_PendingAccountBudgetProposal) GetEndDateTime() *wrappers.StringValue {
  733. if x, ok := m.GetEndTime().(*AccountBudget_PendingAccountBudgetProposal_EndDateTime); ok {
  734. return x.EndDateTime
  735. }
  736. return nil
  737. }
  738. func (m *AccountBudget_PendingAccountBudgetProposal) GetEndTimeType() enums.TimeTypeEnum_TimeType {
  739. if x, ok := m.GetEndTime().(*AccountBudget_PendingAccountBudgetProposal_EndTimeType); ok {
  740. return x.EndTimeType
  741. }
  742. return enums.TimeTypeEnum_UNSPECIFIED
  743. }
  744. type isAccountBudget_PendingAccountBudgetProposal_SpendingLimit interface {
  745. isAccountBudget_PendingAccountBudgetProposal_SpendingLimit()
  746. }
  747. type AccountBudget_PendingAccountBudgetProposal_SpendingLimitMicros struct {
  748. SpendingLimitMicros *wrappers.Int64Value `protobuf:"bytes,7,opt,name=spending_limit_micros,json=spendingLimitMicros,proto3,oneof"`
  749. }
  750. type AccountBudget_PendingAccountBudgetProposal_SpendingLimitType struct {
  751. SpendingLimitType enums.SpendingLimitTypeEnum_SpendingLimitType `protobuf:"varint,8,opt,name=spending_limit_type,json=spendingLimitType,proto3,enum=google.ads.googleads.v0.enums.SpendingLimitTypeEnum_SpendingLimitType,oneof"`
  752. }
  753. func (*AccountBudget_PendingAccountBudgetProposal_SpendingLimitMicros) isAccountBudget_PendingAccountBudgetProposal_SpendingLimit() {
  754. }
  755. func (*AccountBudget_PendingAccountBudgetProposal_SpendingLimitType) isAccountBudget_PendingAccountBudgetProposal_SpendingLimit() {
  756. }
  757. func (m *AccountBudget_PendingAccountBudgetProposal) GetSpendingLimit() isAccountBudget_PendingAccountBudgetProposal_SpendingLimit {
  758. if m != nil {
  759. return m.SpendingLimit
  760. }
  761. return nil
  762. }
  763. func (m *AccountBudget_PendingAccountBudgetProposal) GetSpendingLimitMicros() *wrappers.Int64Value {
  764. if x, ok := m.GetSpendingLimit().(*AccountBudget_PendingAccountBudgetProposal_SpendingLimitMicros); ok {
  765. return x.SpendingLimitMicros
  766. }
  767. return nil
  768. }
  769. func (m *AccountBudget_PendingAccountBudgetProposal) GetSpendingLimitType() enums.SpendingLimitTypeEnum_SpendingLimitType {
  770. if x, ok := m.GetSpendingLimit().(*AccountBudget_PendingAccountBudgetProposal_SpendingLimitType); ok {
  771. return x.SpendingLimitType
  772. }
  773. return enums.SpendingLimitTypeEnum_UNSPECIFIED
  774. }
  775. // XXX_OneofFuncs is for the internal use of the proto package.
  776. func (*AccountBudget_PendingAccountBudgetProposal) 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{}) {
  777. return _AccountBudget_PendingAccountBudgetProposal_OneofMarshaler, _AccountBudget_PendingAccountBudgetProposal_OneofUnmarshaler, _AccountBudget_PendingAccountBudgetProposal_OneofSizer, []interface{}{
  778. (*AccountBudget_PendingAccountBudgetProposal_EndDateTime)(nil),
  779. (*AccountBudget_PendingAccountBudgetProposal_EndTimeType)(nil),
  780. (*AccountBudget_PendingAccountBudgetProposal_SpendingLimitMicros)(nil),
  781. (*AccountBudget_PendingAccountBudgetProposal_SpendingLimitType)(nil),
  782. }
  783. }
  784. func _AccountBudget_PendingAccountBudgetProposal_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  785. m := msg.(*AccountBudget_PendingAccountBudgetProposal)
  786. // end_time
  787. switch x := m.EndTime.(type) {
  788. case *AccountBudget_PendingAccountBudgetProposal_EndDateTime:
  789. b.EncodeVarint(5<<3 | proto.WireBytes)
  790. if err := b.EncodeMessage(x.EndDateTime); err != nil {
  791. return err
  792. }
  793. case *AccountBudget_PendingAccountBudgetProposal_EndTimeType:
  794. b.EncodeVarint(6<<3 | proto.WireVarint)
  795. b.EncodeVarint(uint64(x.EndTimeType))
  796. case nil:
  797. default:
  798. return fmt.Errorf("AccountBudget_PendingAccountBudgetProposal.EndTime has unexpected type %T", x)
  799. }
  800. // spending_limit
  801. switch x := m.SpendingLimit.(type) {
  802. case *AccountBudget_PendingAccountBudgetProposal_SpendingLimitMicros:
  803. b.EncodeVarint(7<<3 | proto.WireBytes)
  804. if err := b.EncodeMessage(x.SpendingLimitMicros); err != nil {
  805. return err
  806. }
  807. case *AccountBudget_PendingAccountBudgetProposal_SpendingLimitType:
  808. b.EncodeVarint(8<<3 | proto.WireVarint)
  809. b.EncodeVarint(uint64(x.SpendingLimitType))
  810. case nil:
  811. default:
  812. return fmt.Errorf("AccountBudget_PendingAccountBudgetProposal.SpendingLimit has unexpected type %T", x)
  813. }
  814. return nil
  815. }
  816. func _AccountBudget_PendingAccountBudgetProposal_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  817. m := msg.(*AccountBudget_PendingAccountBudgetProposal)
  818. switch tag {
  819. case 5: // end_time.end_date_time
  820. if wire != proto.WireBytes {
  821. return true, proto.ErrInternalBadWireType
  822. }
  823. msg := new(wrappers.StringValue)
  824. err := b.DecodeMessage(msg)
  825. m.EndTime = &AccountBudget_PendingAccountBudgetProposal_EndDateTime{msg}
  826. return true, err
  827. case 6: // end_time.end_time_type
  828. if wire != proto.WireVarint {
  829. return true, proto.ErrInternalBadWireType
  830. }
  831. x, err := b.DecodeVarint()
  832. m.EndTime = &AccountBudget_PendingAccountBudgetProposal_EndTimeType{enums.TimeTypeEnum_TimeType(x)}
  833. return true, err
  834. case 7: // spending_limit.spending_limit_micros
  835. if wire != proto.WireBytes {
  836. return true, proto.ErrInternalBadWireType
  837. }
  838. msg := new(wrappers.Int64Value)
  839. err := b.DecodeMessage(msg)
  840. m.SpendingLimit = &AccountBudget_PendingAccountBudgetProposal_SpendingLimitMicros{msg}
  841. return true, err
  842. case 8: // spending_limit.spending_limit_type
  843. if wire != proto.WireVarint {
  844. return true, proto.ErrInternalBadWireType
  845. }
  846. x, err := b.DecodeVarint()
  847. m.SpendingLimit = &AccountBudget_PendingAccountBudgetProposal_SpendingLimitType{enums.SpendingLimitTypeEnum_SpendingLimitType(x)}
  848. return true, err
  849. default:
  850. return false, nil
  851. }
  852. }
  853. func _AccountBudget_PendingAccountBudgetProposal_OneofSizer(msg proto.Message) (n int) {
  854. m := msg.(*AccountBudget_PendingAccountBudgetProposal)
  855. // end_time
  856. switch x := m.EndTime.(type) {
  857. case *AccountBudget_PendingAccountBudgetProposal_EndDateTime:
  858. s := proto.Size(x.EndDateTime)
  859. n += 1 // tag and wire
  860. n += proto.SizeVarint(uint64(s))
  861. n += s
  862. case *AccountBudget_PendingAccountBudgetProposal_EndTimeType:
  863. n += 1 // tag and wire
  864. n += proto.SizeVarint(uint64(x.EndTimeType))
  865. case nil:
  866. default:
  867. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  868. }
  869. // spending_limit
  870. switch x := m.SpendingLimit.(type) {
  871. case *AccountBudget_PendingAccountBudgetProposal_SpendingLimitMicros:
  872. s := proto.Size(x.SpendingLimitMicros)
  873. n += 1 // tag and wire
  874. n += proto.SizeVarint(uint64(s))
  875. n += s
  876. case *AccountBudget_PendingAccountBudgetProposal_SpendingLimitType:
  877. n += 1 // tag and wire
  878. n += proto.SizeVarint(uint64(x.SpendingLimitType))
  879. case nil:
  880. default:
  881. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  882. }
  883. return n
  884. }
  885. func init() {
  886. proto.RegisterType((*AccountBudget)(nil), "google.ads.googleads.v0.resources.AccountBudget")
  887. proto.RegisterType((*AccountBudget_PendingAccountBudgetProposal)(nil), "google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal")
  888. }
  889. func init() {
  890. proto.RegisterFile("google/ads/googleads/v0/resources/account_budget.proto", fileDescriptor_account_budget_b49b5199235ca7bd)
  891. }
  892. var fileDescriptor_account_budget_b49b5199235ca7bd = []byte{
  893. // 998 bytes of a gzipped FileDescriptorProto
  894. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xdd, 0x6e, 0xdb, 0x36,
  895. 0x14, 0x9e, 0x6c, 0xe7, 0x8f, 0x89, 0xf3, 0x23, 0x37, 0xa9, 0xf2, 0x83, 0x22, 0xdd, 0x50, 0x20,
  896. 0xc0, 0x30, 0xd9, 0xc8, 0x8a, 0x0e, 0xf3, 0x6e, 0x66, 0xa3, 0x5d, 0xb3, 0x60, 0xe9, 0x32, 0x39,
  897. 0xf3, 0x45, 0x11, 0x40, 0xa0, 0x2d, 0x4e, 0xd3, 0x66, 0x91, 0x02, 0x49, 0x65, 0x2d, 0xf6, 0x04,
  898. 0x7b, 0x8d, 0x5d, 0xec, 0x62, 0x0f, 0xb2, 0x8b, 0x3d, 0xca, 0x5e, 0x62, 0x05, 0x29, 0x91, 0xb6,
  899. 0x6c, 0x29, 0x52, 0x90, 0xdc, 0x51, 0xe4, 0xf9, 0xbe, 0x73, 0x3e, 0x92, 0xe7, 0x1c, 0x0a, 0xbc,
  900. 0xf0, 0x09, 0xf1, 0x27, 0xa8, 0x0d, 0x3d, 0xd6, 0x4e, 0x86, 0x62, 0x74, 0xd3, 0x69, 0x53, 0xc4,
  901. 0x48, 0x4c, 0xc7, 0x88, 0xb5, 0xe1, 0x78, 0x4c, 0x62, 0xcc, 0xdd, 0x51, 0xec, 0xf9, 0x88, 0xdb,
  902. 0x11, 0x25, 0x9c, 0x98, 0x4f, 0x13, 0x63, 0x1b, 0x7a, 0xcc, 0xd6, 0x38, 0xfb, 0xa6, 0x63, 0x6b,
  903. 0xdc, 0xc1, 0xd7, 0x45, 0xd4, 0x08, 0xc7, 0xe1, 0x3c, 0xad, 0x1b, 0x51, 0x12, 0x11, 0x06, 0x27,
  904. 0x2e, 0x7f, 0x1f, 0xa1, 0xc4, 0xc9, 0xc1, 0x97, 0x77, 0x62, 0x60, 0x1c, 0xf2, 0x98, 0xa5, 0xd0,
  905. 0x2f, 0x6e, 0x87, 0xb2, 0x08, 0x61, 0x2f, 0xc0, 0xbe, 0x3b, 0x09, 0xc2, 0x80, 0xcf, 0xfa, 0xfc,
  906. 0xec, 0x76, 0x20, 0x0f, 0x42, 0x34, 0x6b, 0xfe, 0x24, 0x35, 0x97, 0x5f, 0xa3, 0xf8, 0xa7, 0xf6,
  907. 0x6f, 0x14, 0x46, 0x11, 0xa2, 0x69, 0x1c, 0x1f, 0xff, 0x65, 0x81, 0x66, 0x2f, 0x89, 0xb3, 0x2f,
  908. 0xc3, 0x34, 0x3f, 0x01, 0x4d, 0xb5, 0x47, 0x2e, 0x86, 0x21, 0xb2, 0x8c, 0x63, 0xe3, 0x64, 0xcd,
  909. 0xd9, 0x50, 0x93, 0x6f, 0x60, 0x88, 0xcc, 0x4f, 0x41, 0x2d, 0xf0, 0xac, 0xda, 0xb1, 0x71, 0xb2,
  910. 0x7e, 0x7a, 0x98, 0x6e, 0xb0, 0xad, 0x7c, 0xd8, 0xdf, 0x62, 0xfe, 0xe2, 0xf9, 0x10, 0x4e, 0x62,
  911. 0xe4, 0xd4, 0x02, 0xcf, 0xec, 0x81, 0xe6, 0x28, 0x98, 0x4c, 0x84, 0x1c, 0x86, 0x78, 0x1c, 0x59,
  912. 0x75, 0x89, 0x3b, 0x5a, 0xc0, 0x0d, 0x38, 0x0d, 0xb0, 0x9f, 0x00, 0x37, 0x52, 0xc8, 0x40, 0x20,
  913. 0xcc, 0x11, 0x58, 0x4e, 0xb6, 0xcf, 0x6a, 0x1c, 0x1b, 0x27, 0x9b, 0xa7, 0xe7, 0x76, 0xd1, 0xf9,
  914. 0xca, 0x6d, 0xb0, 0x33, 0x92, 0x06, 0x12, 0xf9, 0x0a, 0xc7, 0x61, 0xde, 0xbc, 0x93, 0x32, 0x9b,
  915. 0x1d, 0xd0, 0x90, 0x7a, 0x97, 0x2a, 0x44, 0x27, 0x2d, 0xcd, 0x1f, 0x81, 0x95, 0x5c, 0x0b, 0xe4,
  916. 0x89, 0xd3, 0xa5, 0xdc, 0xf5, 0x20, 0x47, 0xae, 0x38, 0x03, 0x6b, 0xb9, 0x02, 0xcb, 0xae, 0x42,
  917. 0x0f, 0x04, 0xf8, 0x25, 0xe4, 0xe8, 0x2a, 0x48, 0x68, 0x61, 0x14, 0x51, 0x72, 0x93, 0x43, 0xbb,
  918. 0x52, 0x85, 0x56, 0xa1, 0x17, 0x68, 0x39, 0xe1, 0x70, 0xe2, 0x42, 0xef, 0x97, 0x98, 0xf1, 0x10,
  919. 0x61, 0xce, 0xdc, 0x30, 0x18, 0x53, 0xc2, 0x2c, 0xb3, 0xfc, 0x24, 0xf7, 0x24, 0xb8, 0x37, 0xc5,
  920. 0x5e, 0x48, 0xa8, 0x79, 0x01, 0x1e, 0xc1, 0x50, 0xde, 0x73, 0x86, 0xa8, 0x08, 0x39, 0xa5, 0x6c,
  921. 0x95, 0x53, 0x9a, 0x09, 0x70, 0x20, 0x71, 0x29, 0xdd, 0x25, 0xd8, 0x8d, 0x62, 0x3a, 0xfe, 0x19,
  922. 0x32, 0xe4, 0x12, 0xea, 0x21, 0xea, 0xe2, 0x38, 0x1c, 0x21, 0x6a, 0x3d, 0xaa, 0xa0, 0xbc, 0xa5,
  923. 0xa0, 0xdf, 0x0b, 0xe4, 0x1b, 0x09, 0x34, 0x4f, 0xc1, 0x12, 0x26, 0x1c, 0x31, 0x6b, 0xb7, 0x02,
  924. 0x43, 0x62, 0x6a, 0xbe, 0x03, 0xdb, 0x2a, 0x03, 0x55, 0xe2, 0x5b, 0x7b, 0x12, 0x7e, 0x61, 0x97,
  925. 0x56, 0x96, 0xec, 0x2d, 0xb3, 0x2f, 0x13, 0xa2, 0xcc, 0xe4, 0x65, 0x4a, 0xea, 0x6c, 0xa5, 0x6e,
  926. 0xd4, 0x84, 0x39, 0x00, 0x7b, 0xfa, 0x4e, 0x21, 0xec, 0xcd, 0x1c, 0xfd, 0x6a, 0x79, 0xf8, 0x67,
  927. 0x1f, 0x39, 0x2d, 0x85, 0x7e, 0x85, 0x3d, 0x7d, 0xf4, 0xbf, 0xce, 0x91, 0xea, 0x2a, 0x61, 0xad,
  928. 0xc9, 0x74, 0x7a, 0x5e, 0x92, 0x4e, 0x82, 0xe4, 0xea, 0x7d, 0x84, 0x64, 0x0e, 0xa9, 0x8f, 0x39,
  929. 0x67, 0x6a, 0x5a, 0x28, 0xd0, 0xd7, 0x37, 0xab, 0x00, 0x54, 0x50, 0x60, 0x38, 0x2d, 0x85, 0x9e,
  930. 0x53, 0x90, 0x21, 0x9d, 0x2a, 0x58, 0xbf, 0x87, 0x82, 0xac, 0x33, 0xad, 0x60, 0x04, 0x9e, 0x4c,
  931. 0xf3, 0x3a, 0x5b, 0x89, 0xd3, 0xcb, 0xbd, 0x51, 0x7a, 0xb9, 0xcf, 0x6a, 0xce, 0xa1, 0x4e, 0xef,
  932. 0x94, 0xe3, 0x3b, 0x41, 0x91, 0xde, 0xf3, 0x3f, 0x0c, 0x70, 0x54, 0xe4, 0x44, 0xea, 0x6a, 0x4a,
  933. 0x5d, 0xdf, 0x94, 0xe8, 0xca, 0x50, 0x6b, 0x81, 0x0b, 0xb3, 0x67, 0x35, 0x67, 0x3f, 0x37, 0x1a,
  934. 0xa5, 0x77, 0x5a, 0x70, 0x72, 0xf5, 0x6e, 0x96, 0xeb, 0xad, 0x3b, 0x87, 0xba, 0xee, 0x14, 0xe8,
  935. 0x2d, 0x72, 0x22, 0xf5, 0x6e, 0x3d, 0xa8, 0xde, 0xba, 0xb3, 0x9f, 0x1b, 0x8d, 0xd6, 0x2b, 0xeb,
  936. 0x58, 0xa1, 0xde, 0xed, 0x72, 0xbd, 0x0d, 0xe7, 0x50, 0x91, 0x14, 0xea, 0x2d, 0x70, 0x22, 0xf5,
  937. 0xee, 0x3c, 0xa8, 0xde, 0x86, 0xb3, 0x9f, 0x1b, 0x8d, 0x58, 0x3c, 0xf8, 0x67, 0x05, 0x1c, 0xdd,
  938. 0x56, 0x85, 0xcc, 0x2b, 0xf0, 0xb8, 0xe0, 0xb9, 0x23, 0xbb, 0x7f, 0x79, 0xc3, 0xc9, 0x65, 0xfd,
  939. 0x1d, 0x34, 0x33, 0xaf, 0x26, 0xf9, 0x5e, 0xd8, 0x3c, 0x1d, 0xde, 0xa5, 0x77, 0x2b, 0x32, 0x2d,
  940. 0xbd, 0x70, 0xd5, 0xd9, 0x88, 0x66, 0xbe, 0x74, 0x37, 0xaf, 0x57, 0xee, 0xe6, 0x2f, 0xc1, 0xd6,
  941. 0x7c, 0xb7, 0x6d, 0x54, 0x00, 0x37, 0x59, 0xa6, 0xcb, 0x16, 0xf6, 0xaf, 0xb5, 0x7b, 0xf7, 0x2f,
  942. 0x50, 0xbd, 0x7f, 0x9d, 0x03, 0x73, 0x4c, 0x11, 0xe4, 0x01, 0xc1, 0x33, 0x72, 0xd6, 0x2b, 0x10,
  943. 0x6c, 0x2b, 0x9c, 0x56, 0xd4, 0x07, 0xcd, 0x6c, 0x19, 0x5f, 0xaa, 0xd4, 0x88, 0xd6, 0xd1, 0x4c,
  944. 0xf9, 0x7e, 0x9b, 0x70, 0x4c, 0xab, 0xf6, 0xf2, 0xbd, 0xfa, 0x8e, 0xe0, 0xd6, 0xd5, 0xfa, 0x07,
  945. 0xb0, 0x9b, 0x9f, 0xc4, 0x2b, 0xe5, 0x49, 0x6c, 0x38, 0x2d, 0x96, 0x93, 0xbc, 0xef, 0x40, 0x2b,
  946. 0x2f, 0x65, 0x57, 0x1f, 0x34, 0x65, 0x0d, 0x67, 0x87, 0xcd, 0x4f, 0xf6, 0x01, 0x58, 0x55, 0x1b,
  947. 0xd5, 0xdf, 0x06, 0x9b, 0xd9, 0x28, 0xfa, 0x2d, 0xb0, 0xb3, 0xd0, 0xc7, 0xc5, 0xe4, 0x42, 0x6b,
  948. 0xec, 0xef, 0x83, 0xc7, 0x05, 0xdd, 0x45, 0x2c, 0x15, 0x14, 0x62, 0xb9, 0x94, 0x5f, 0xb3, 0xfa,
  949. 0xff, 0x1b, 0xe0, 0xd9, 0x98, 0x84, 0xe5, 0xaf, 0x9f, 0xbe, 0x39, 0x9f, 0xa2, 0x9c, 0x5c, 0x1a,
  950. 0x6f, 0xcf, 0x53, 0xa0, 0x4f, 0x26, 0x10, 0xfb, 0x36, 0xa1, 0x7e, 0xdb, 0x47, 0x58, 0x9e, 0x89,
  951. 0xfa, 0x8f, 0x89, 0x02, 0x76, 0xcb, 0x7f, 0xde, 0x57, 0x7a, 0xf4, 0x67, 0xad, 0xfe, 0xba, 0xd7,
  952. 0xfb, 0xbb, 0xf6, 0xf4, 0x75, 0x42, 0xd9, 0xf3, 0x98, 0x9d, 0x0c, 0xc5, 0x68, 0xd8, 0xb1, 0x1d,
  953. 0x65, 0xf9, 0xaf, 0xb2, 0xb9, 0xee, 0x79, 0xec, 0x5a, 0xdb, 0x5c, 0x0f, 0x3b, 0xd7, 0xda, 0xe6,
  954. 0xbf, 0xda, 0xb3, 0x64, 0xa1, 0xdb, 0xed, 0x79, 0xac, 0xdb, 0xd5, 0x56, 0xdd, 0xee, 0xb0, 0xd3,
  955. 0xed, 0x6a, 0xbb, 0xd1, 0xb2, 0x0c, 0xf6, 0xf3, 0x0f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x66, 0x97,
  956. 0x24, 0xa4, 0x93, 0x0e, 0x00, 0x00,
  957. }