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.
 
 
 

1056 lines
44 KiB

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