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.
 
 
 

712 lines
30 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/ads/googleads/v0/resources/account_budget_proposal.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 proposal.
  19. //
  20. // All fields prefixed with 'proposed' may not necessarily be applied directly.
  21. // For example, proposed spending limits may be adjusted before their
  22. // application. This is true if the 'proposed' field has an 'approved'
  23. // counterpart, e.g. spending limits.
  24. //
  25. // Please note that the proposal type (proposal_type) changes which fields are
  26. // required and which must remain empty.
  27. type AccountBudgetProposal struct {
  28. // The resource name of the proposal.
  29. // AccountBudgetProposal resource names have the form:
  30. //
  31. //
  32. // `customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}`
  33. ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
  34. // The ID of the proposal.
  35. Id *wrappers.Int64Value `protobuf:"bytes,14,opt,name=id,proto3" json:"id,omitempty"`
  36. // The resource name of the billing setup associated with this proposal.
  37. BillingSetup *wrappers.StringValue `protobuf:"bytes,2,opt,name=billing_setup,json=billingSetup,proto3" json:"billing_setup,omitempty"`
  38. // The resource name of the account-level budget associated with this
  39. // proposal.
  40. AccountBudget *wrappers.StringValue `protobuf:"bytes,3,opt,name=account_budget,json=accountBudget,proto3" json:"account_budget,omitempty"`
  41. // The type of this proposal, e.g. END to end the budget associated with this
  42. // proposal.
  43. ProposalType enums.AccountBudgetProposalTypeEnum_AccountBudgetProposalType `protobuf:"varint,4,opt,name=proposal_type,json=proposalType,proto3,enum=google.ads.googleads.v0.enums.AccountBudgetProposalTypeEnum_AccountBudgetProposalType" json:"proposal_type,omitempty"`
  44. // The status of this proposal.
  45. // When a new proposal is created, the status defaults to PENDING.
  46. Status enums.AccountBudgetProposalStatusEnum_AccountBudgetProposalStatus `protobuf:"varint,15,opt,name=status,proto3,enum=google.ads.googleads.v0.enums.AccountBudgetProposalStatusEnum_AccountBudgetProposalStatus" json:"status,omitempty"`
  47. // The name to assign to the account-level budget.
  48. ProposedName *wrappers.StringValue `protobuf:"bytes,5,opt,name=proposed_name,json=proposedName,proto3" json:"proposed_name,omitempty"`
  49. // The approved start date time in yyyy-mm-dd hh:mm:ss format.
  50. ApprovedStartDateTime *wrappers.StringValue `protobuf:"bytes,20,opt,name=approved_start_date_time,json=approvedStartDateTime,proto3" json:"approved_start_date_time,omitempty"`
  51. // A purchase order number is a value that enables the user to help them
  52. // reference this budget in their monthly invoices.
  53. ProposedPurchaseOrderNumber *wrappers.StringValue `protobuf:"bytes,12,opt,name=proposed_purchase_order_number,json=proposedPurchaseOrderNumber,proto3" json:"proposed_purchase_order_number,omitempty"`
  54. // Notes associated with this budget.
  55. ProposedNotes *wrappers.StringValue `protobuf:"bytes,13,opt,name=proposed_notes,json=proposedNotes,proto3" json:"proposed_notes,omitempty"`
  56. // The date time when this account-level budget proposal was created, which is
  57. // not the same as its approval date time, if applicable.
  58. CreationDateTime *wrappers.StringValue `protobuf:"bytes,16,opt,name=creation_date_time,json=creationDateTime,proto3" json:"creation_date_time,omitempty"`
  59. // The date time when this account-level budget was approved, if applicable.
  60. ApprovalDateTime *wrappers.StringValue `protobuf:"bytes,17,opt,name=approval_date_time,json=approvalDateTime,proto3" json:"approval_date_time,omitempty"`
  61. // The proposed start date time of the account-level budget, which cannot be
  62. // in the past.
  63. //
  64. // Types that are valid to be assigned to ProposedStartTime:
  65. // *AccountBudgetProposal_ProposedStartDateTime
  66. // *AccountBudgetProposal_ProposedStartTimeType
  67. ProposedStartTime isAccountBudgetProposal_ProposedStartTime `protobuf_oneof:"proposed_start_time"`
  68. // The proposed end date time of the account-level budget, which cannot be in
  69. // the past.
  70. //
  71. // Types that are valid to be assigned to ProposedEndTime:
  72. // *AccountBudgetProposal_ProposedEndDateTime
  73. // *AccountBudgetProposal_ProposedEndTimeType
  74. ProposedEndTime isAccountBudgetProposal_ProposedEndTime `protobuf_oneof:"proposed_end_time"`
  75. // The approved end date time of the account-level budget.
  76. //
  77. // Types that are valid to be assigned to ApprovedEndTime:
  78. // *AccountBudgetProposal_ApprovedEndDateTime
  79. // *AccountBudgetProposal_ApprovedEndTimeType
  80. ApprovedEndTime isAccountBudgetProposal_ApprovedEndTime `protobuf_oneof:"approved_end_time"`
  81. // The proposed spending limit.
  82. //
  83. // Types that are valid to be assigned to ProposedSpendingLimit:
  84. // *AccountBudgetProposal_ProposedSpendingLimitMicros
  85. // *AccountBudgetProposal_ProposedSpendingLimitType
  86. ProposedSpendingLimit isAccountBudgetProposal_ProposedSpendingLimit `protobuf_oneof:"proposed_spending_limit"`
  87. // The approved spending limit.
  88. //
  89. // Types that are valid to be assigned to ApprovedSpendingLimit:
  90. // *AccountBudgetProposal_ApprovedSpendingLimitMicros
  91. // *AccountBudgetProposal_ApprovedSpendingLimitType
  92. ApprovedSpendingLimit isAccountBudgetProposal_ApprovedSpendingLimit `protobuf_oneof:"approved_spending_limit"`
  93. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  94. XXX_unrecognized []byte `json:"-"`
  95. XXX_sizecache int32 `json:"-"`
  96. }
  97. func (m *AccountBudgetProposal) Reset() { *m = AccountBudgetProposal{} }
  98. func (m *AccountBudgetProposal) String() string { return proto.CompactTextString(m) }
  99. func (*AccountBudgetProposal) ProtoMessage() {}
  100. func (*AccountBudgetProposal) Descriptor() ([]byte, []int) {
  101. return fileDescriptor_account_budget_proposal_13bbb9bf380a278c, []int{0}
  102. }
  103. func (m *AccountBudgetProposal) XXX_Unmarshal(b []byte) error {
  104. return xxx_messageInfo_AccountBudgetProposal.Unmarshal(m, b)
  105. }
  106. func (m *AccountBudgetProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  107. return xxx_messageInfo_AccountBudgetProposal.Marshal(b, m, deterministic)
  108. }
  109. func (dst *AccountBudgetProposal) XXX_Merge(src proto.Message) {
  110. xxx_messageInfo_AccountBudgetProposal.Merge(dst, src)
  111. }
  112. func (m *AccountBudgetProposal) XXX_Size() int {
  113. return xxx_messageInfo_AccountBudgetProposal.Size(m)
  114. }
  115. func (m *AccountBudgetProposal) XXX_DiscardUnknown() {
  116. xxx_messageInfo_AccountBudgetProposal.DiscardUnknown(m)
  117. }
  118. var xxx_messageInfo_AccountBudgetProposal proto.InternalMessageInfo
  119. func (m *AccountBudgetProposal) GetResourceName() string {
  120. if m != nil {
  121. return m.ResourceName
  122. }
  123. return ""
  124. }
  125. func (m *AccountBudgetProposal) GetId() *wrappers.Int64Value {
  126. if m != nil {
  127. return m.Id
  128. }
  129. return nil
  130. }
  131. func (m *AccountBudgetProposal) GetBillingSetup() *wrappers.StringValue {
  132. if m != nil {
  133. return m.BillingSetup
  134. }
  135. return nil
  136. }
  137. func (m *AccountBudgetProposal) GetAccountBudget() *wrappers.StringValue {
  138. if m != nil {
  139. return m.AccountBudget
  140. }
  141. return nil
  142. }
  143. func (m *AccountBudgetProposal) GetProposalType() enums.AccountBudgetProposalTypeEnum_AccountBudgetProposalType {
  144. if m != nil {
  145. return m.ProposalType
  146. }
  147. return enums.AccountBudgetProposalTypeEnum_UNSPECIFIED
  148. }
  149. func (m *AccountBudgetProposal) GetStatus() enums.AccountBudgetProposalStatusEnum_AccountBudgetProposalStatus {
  150. if m != nil {
  151. return m.Status
  152. }
  153. return enums.AccountBudgetProposalStatusEnum_UNSPECIFIED
  154. }
  155. func (m *AccountBudgetProposal) GetProposedName() *wrappers.StringValue {
  156. if m != nil {
  157. return m.ProposedName
  158. }
  159. return nil
  160. }
  161. func (m *AccountBudgetProposal) GetApprovedStartDateTime() *wrappers.StringValue {
  162. if m != nil {
  163. return m.ApprovedStartDateTime
  164. }
  165. return nil
  166. }
  167. func (m *AccountBudgetProposal) GetProposedPurchaseOrderNumber() *wrappers.StringValue {
  168. if m != nil {
  169. return m.ProposedPurchaseOrderNumber
  170. }
  171. return nil
  172. }
  173. func (m *AccountBudgetProposal) GetProposedNotes() *wrappers.StringValue {
  174. if m != nil {
  175. return m.ProposedNotes
  176. }
  177. return nil
  178. }
  179. func (m *AccountBudgetProposal) GetCreationDateTime() *wrappers.StringValue {
  180. if m != nil {
  181. return m.CreationDateTime
  182. }
  183. return nil
  184. }
  185. func (m *AccountBudgetProposal) GetApprovalDateTime() *wrappers.StringValue {
  186. if m != nil {
  187. return m.ApprovalDateTime
  188. }
  189. return nil
  190. }
  191. type isAccountBudgetProposal_ProposedStartTime interface {
  192. isAccountBudgetProposal_ProposedStartTime()
  193. }
  194. type AccountBudgetProposal_ProposedStartDateTime struct {
  195. ProposedStartDateTime *wrappers.StringValue `protobuf:"bytes,18,opt,name=proposed_start_date_time,json=proposedStartDateTime,proto3,oneof"`
  196. }
  197. type AccountBudgetProposal_ProposedStartTimeType struct {
  198. ProposedStartTimeType enums.TimeTypeEnum_TimeType `protobuf:"varint,7,opt,name=proposed_start_time_type,json=proposedStartTimeType,proto3,enum=google.ads.googleads.v0.enums.TimeTypeEnum_TimeType,oneof"`
  199. }
  200. func (*AccountBudgetProposal_ProposedStartDateTime) isAccountBudgetProposal_ProposedStartTime() {}
  201. func (*AccountBudgetProposal_ProposedStartTimeType) isAccountBudgetProposal_ProposedStartTime() {}
  202. func (m *AccountBudgetProposal) GetProposedStartTime() isAccountBudgetProposal_ProposedStartTime {
  203. if m != nil {
  204. return m.ProposedStartTime
  205. }
  206. return nil
  207. }
  208. func (m *AccountBudgetProposal) GetProposedStartDateTime() *wrappers.StringValue {
  209. if x, ok := m.GetProposedStartTime().(*AccountBudgetProposal_ProposedStartDateTime); ok {
  210. return x.ProposedStartDateTime
  211. }
  212. return nil
  213. }
  214. func (m *AccountBudgetProposal) GetProposedStartTimeType() enums.TimeTypeEnum_TimeType {
  215. if x, ok := m.GetProposedStartTime().(*AccountBudgetProposal_ProposedStartTimeType); ok {
  216. return x.ProposedStartTimeType
  217. }
  218. return enums.TimeTypeEnum_UNSPECIFIED
  219. }
  220. type isAccountBudgetProposal_ProposedEndTime interface {
  221. isAccountBudgetProposal_ProposedEndTime()
  222. }
  223. type AccountBudgetProposal_ProposedEndDateTime struct {
  224. ProposedEndDateTime *wrappers.StringValue `protobuf:"bytes,19,opt,name=proposed_end_date_time,json=proposedEndDateTime,proto3,oneof"`
  225. }
  226. type AccountBudgetProposal_ProposedEndTimeType struct {
  227. 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"`
  228. }
  229. func (*AccountBudgetProposal_ProposedEndDateTime) isAccountBudgetProposal_ProposedEndTime() {}
  230. func (*AccountBudgetProposal_ProposedEndTimeType) isAccountBudgetProposal_ProposedEndTime() {}
  231. func (m *AccountBudgetProposal) GetProposedEndTime() isAccountBudgetProposal_ProposedEndTime {
  232. if m != nil {
  233. return m.ProposedEndTime
  234. }
  235. return nil
  236. }
  237. func (m *AccountBudgetProposal) GetProposedEndDateTime() *wrappers.StringValue {
  238. if x, ok := m.GetProposedEndTime().(*AccountBudgetProposal_ProposedEndDateTime); ok {
  239. return x.ProposedEndDateTime
  240. }
  241. return nil
  242. }
  243. func (m *AccountBudgetProposal) GetProposedEndTimeType() enums.TimeTypeEnum_TimeType {
  244. if x, ok := m.GetProposedEndTime().(*AccountBudgetProposal_ProposedEndTimeType); ok {
  245. return x.ProposedEndTimeType
  246. }
  247. return enums.TimeTypeEnum_UNSPECIFIED
  248. }
  249. type isAccountBudgetProposal_ApprovedEndTime interface {
  250. isAccountBudgetProposal_ApprovedEndTime()
  251. }
  252. type AccountBudgetProposal_ApprovedEndDateTime struct {
  253. ApprovedEndDateTime *wrappers.StringValue `protobuf:"bytes,21,opt,name=approved_end_date_time,json=approvedEndDateTime,proto3,oneof"`
  254. }
  255. type AccountBudgetProposal_ApprovedEndTimeType struct {
  256. ApprovedEndTimeType enums.TimeTypeEnum_TimeType `protobuf:"varint,22,opt,name=approved_end_time_type,json=approvedEndTimeType,proto3,enum=google.ads.googleads.v0.enums.TimeTypeEnum_TimeType,oneof"`
  257. }
  258. func (*AccountBudgetProposal_ApprovedEndDateTime) isAccountBudgetProposal_ApprovedEndTime() {}
  259. func (*AccountBudgetProposal_ApprovedEndTimeType) isAccountBudgetProposal_ApprovedEndTime() {}
  260. func (m *AccountBudgetProposal) GetApprovedEndTime() isAccountBudgetProposal_ApprovedEndTime {
  261. if m != nil {
  262. return m.ApprovedEndTime
  263. }
  264. return nil
  265. }
  266. func (m *AccountBudgetProposal) GetApprovedEndDateTime() *wrappers.StringValue {
  267. if x, ok := m.GetApprovedEndTime().(*AccountBudgetProposal_ApprovedEndDateTime); ok {
  268. return x.ApprovedEndDateTime
  269. }
  270. return nil
  271. }
  272. func (m *AccountBudgetProposal) GetApprovedEndTimeType() enums.TimeTypeEnum_TimeType {
  273. if x, ok := m.GetApprovedEndTime().(*AccountBudgetProposal_ApprovedEndTimeType); ok {
  274. return x.ApprovedEndTimeType
  275. }
  276. return enums.TimeTypeEnum_UNSPECIFIED
  277. }
  278. type isAccountBudgetProposal_ProposedSpendingLimit interface {
  279. isAccountBudgetProposal_ProposedSpendingLimit()
  280. }
  281. type AccountBudgetProposal_ProposedSpendingLimitMicros struct {
  282. ProposedSpendingLimitMicros *wrappers.Int64Value `protobuf:"bytes,10,opt,name=proposed_spending_limit_micros,json=proposedSpendingLimitMicros,proto3,oneof"`
  283. }
  284. type AccountBudgetProposal_ProposedSpendingLimitType struct {
  285. ProposedSpendingLimitType enums.SpendingLimitTypeEnum_SpendingLimitType `protobuf:"varint,11,opt,name=proposed_spending_limit_type,json=proposedSpendingLimitType,proto3,enum=google.ads.googleads.v0.enums.SpendingLimitTypeEnum_SpendingLimitType,oneof"`
  286. }
  287. func (*AccountBudgetProposal_ProposedSpendingLimitMicros) isAccountBudgetProposal_ProposedSpendingLimit() {
  288. }
  289. func (*AccountBudgetProposal_ProposedSpendingLimitType) isAccountBudgetProposal_ProposedSpendingLimit() {
  290. }
  291. func (m *AccountBudgetProposal) GetProposedSpendingLimit() isAccountBudgetProposal_ProposedSpendingLimit {
  292. if m != nil {
  293. return m.ProposedSpendingLimit
  294. }
  295. return nil
  296. }
  297. func (m *AccountBudgetProposal) GetProposedSpendingLimitMicros() *wrappers.Int64Value {
  298. if x, ok := m.GetProposedSpendingLimit().(*AccountBudgetProposal_ProposedSpendingLimitMicros); ok {
  299. return x.ProposedSpendingLimitMicros
  300. }
  301. return nil
  302. }
  303. func (m *AccountBudgetProposal) GetProposedSpendingLimitType() enums.SpendingLimitTypeEnum_SpendingLimitType {
  304. if x, ok := m.GetProposedSpendingLimit().(*AccountBudgetProposal_ProposedSpendingLimitType); ok {
  305. return x.ProposedSpendingLimitType
  306. }
  307. return enums.SpendingLimitTypeEnum_UNSPECIFIED
  308. }
  309. type isAccountBudgetProposal_ApprovedSpendingLimit interface {
  310. isAccountBudgetProposal_ApprovedSpendingLimit()
  311. }
  312. type AccountBudgetProposal_ApprovedSpendingLimitMicros struct {
  313. ApprovedSpendingLimitMicros *wrappers.Int64Value `protobuf:"bytes,23,opt,name=approved_spending_limit_micros,json=approvedSpendingLimitMicros,proto3,oneof"`
  314. }
  315. type AccountBudgetProposal_ApprovedSpendingLimitType struct {
  316. ApprovedSpendingLimitType enums.SpendingLimitTypeEnum_SpendingLimitType `protobuf:"varint,24,opt,name=approved_spending_limit_type,json=approvedSpendingLimitType,proto3,enum=google.ads.googleads.v0.enums.SpendingLimitTypeEnum_SpendingLimitType,oneof"`
  317. }
  318. func (*AccountBudgetProposal_ApprovedSpendingLimitMicros) isAccountBudgetProposal_ApprovedSpendingLimit() {
  319. }
  320. func (*AccountBudgetProposal_ApprovedSpendingLimitType) isAccountBudgetProposal_ApprovedSpendingLimit() {
  321. }
  322. func (m *AccountBudgetProposal) GetApprovedSpendingLimit() isAccountBudgetProposal_ApprovedSpendingLimit {
  323. if m != nil {
  324. return m.ApprovedSpendingLimit
  325. }
  326. return nil
  327. }
  328. func (m *AccountBudgetProposal) GetApprovedSpendingLimitMicros() *wrappers.Int64Value {
  329. if x, ok := m.GetApprovedSpendingLimit().(*AccountBudgetProposal_ApprovedSpendingLimitMicros); ok {
  330. return x.ApprovedSpendingLimitMicros
  331. }
  332. return nil
  333. }
  334. func (m *AccountBudgetProposal) GetApprovedSpendingLimitType() enums.SpendingLimitTypeEnum_SpendingLimitType {
  335. if x, ok := m.GetApprovedSpendingLimit().(*AccountBudgetProposal_ApprovedSpendingLimitType); ok {
  336. return x.ApprovedSpendingLimitType
  337. }
  338. return enums.SpendingLimitTypeEnum_UNSPECIFIED
  339. }
  340. // XXX_OneofFuncs is for the internal use of the proto package.
  341. func (*AccountBudgetProposal) 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{}) {
  342. return _AccountBudgetProposal_OneofMarshaler, _AccountBudgetProposal_OneofUnmarshaler, _AccountBudgetProposal_OneofSizer, []interface{}{
  343. (*AccountBudgetProposal_ProposedStartDateTime)(nil),
  344. (*AccountBudgetProposal_ProposedStartTimeType)(nil),
  345. (*AccountBudgetProposal_ProposedEndDateTime)(nil),
  346. (*AccountBudgetProposal_ProposedEndTimeType)(nil),
  347. (*AccountBudgetProposal_ApprovedEndDateTime)(nil),
  348. (*AccountBudgetProposal_ApprovedEndTimeType)(nil),
  349. (*AccountBudgetProposal_ProposedSpendingLimitMicros)(nil),
  350. (*AccountBudgetProposal_ProposedSpendingLimitType)(nil),
  351. (*AccountBudgetProposal_ApprovedSpendingLimitMicros)(nil),
  352. (*AccountBudgetProposal_ApprovedSpendingLimitType)(nil),
  353. }
  354. }
  355. func _AccountBudgetProposal_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  356. m := msg.(*AccountBudgetProposal)
  357. // proposed_start_time
  358. switch x := m.ProposedStartTime.(type) {
  359. case *AccountBudgetProposal_ProposedStartDateTime:
  360. b.EncodeVarint(18<<3 | proto.WireBytes)
  361. if err := b.EncodeMessage(x.ProposedStartDateTime); err != nil {
  362. return err
  363. }
  364. case *AccountBudgetProposal_ProposedStartTimeType:
  365. b.EncodeVarint(7<<3 | proto.WireVarint)
  366. b.EncodeVarint(uint64(x.ProposedStartTimeType))
  367. case nil:
  368. default:
  369. return fmt.Errorf("AccountBudgetProposal.ProposedStartTime has unexpected type %T", x)
  370. }
  371. // proposed_end_time
  372. switch x := m.ProposedEndTime.(type) {
  373. case *AccountBudgetProposal_ProposedEndDateTime:
  374. b.EncodeVarint(19<<3 | proto.WireBytes)
  375. if err := b.EncodeMessage(x.ProposedEndDateTime); err != nil {
  376. return err
  377. }
  378. case *AccountBudgetProposal_ProposedEndTimeType:
  379. b.EncodeVarint(9<<3 | proto.WireVarint)
  380. b.EncodeVarint(uint64(x.ProposedEndTimeType))
  381. case nil:
  382. default:
  383. return fmt.Errorf("AccountBudgetProposal.ProposedEndTime has unexpected type %T", x)
  384. }
  385. // approved_end_time
  386. switch x := m.ApprovedEndTime.(type) {
  387. case *AccountBudgetProposal_ApprovedEndDateTime:
  388. b.EncodeVarint(21<<3 | proto.WireBytes)
  389. if err := b.EncodeMessage(x.ApprovedEndDateTime); err != nil {
  390. return err
  391. }
  392. case *AccountBudgetProposal_ApprovedEndTimeType:
  393. b.EncodeVarint(22<<3 | proto.WireVarint)
  394. b.EncodeVarint(uint64(x.ApprovedEndTimeType))
  395. case nil:
  396. default:
  397. return fmt.Errorf("AccountBudgetProposal.ApprovedEndTime has unexpected type %T", x)
  398. }
  399. // proposed_spending_limit
  400. switch x := m.ProposedSpendingLimit.(type) {
  401. case *AccountBudgetProposal_ProposedSpendingLimitMicros:
  402. b.EncodeVarint(10<<3 | proto.WireBytes)
  403. if err := b.EncodeMessage(x.ProposedSpendingLimitMicros); err != nil {
  404. return err
  405. }
  406. case *AccountBudgetProposal_ProposedSpendingLimitType:
  407. b.EncodeVarint(11<<3 | proto.WireVarint)
  408. b.EncodeVarint(uint64(x.ProposedSpendingLimitType))
  409. case nil:
  410. default:
  411. return fmt.Errorf("AccountBudgetProposal.ProposedSpendingLimit has unexpected type %T", x)
  412. }
  413. // approved_spending_limit
  414. switch x := m.ApprovedSpendingLimit.(type) {
  415. case *AccountBudgetProposal_ApprovedSpendingLimitMicros:
  416. b.EncodeVarint(23<<3 | proto.WireBytes)
  417. if err := b.EncodeMessage(x.ApprovedSpendingLimitMicros); err != nil {
  418. return err
  419. }
  420. case *AccountBudgetProposal_ApprovedSpendingLimitType:
  421. b.EncodeVarint(24<<3 | proto.WireVarint)
  422. b.EncodeVarint(uint64(x.ApprovedSpendingLimitType))
  423. case nil:
  424. default:
  425. return fmt.Errorf("AccountBudgetProposal.ApprovedSpendingLimit has unexpected type %T", x)
  426. }
  427. return nil
  428. }
  429. func _AccountBudgetProposal_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  430. m := msg.(*AccountBudgetProposal)
  431. switch tag {
  432. case 18: // proposed_start_time.proposed_start_date_time
  433. if wire != proto.WireBytes {
  434. return true, proto.ErrInternalBadWireType
  435. }
  436. msg := new(wrappers.StringValue)
  437. err := b.DecodeMessage(msg)
  438. m.ProposedStartTime = &AccountBudgetProposal_ProposedStartDateTime{msg}
  439. return true, err
  440. case 7: // proposed_start_time.proposed_start_time_type
  441. if wire != proto.WireVarint {
  442. return true, proto.ErrInternalBadWireType
  443. }
  444. x, err := b.DecodeVarint()
  445. m.ProposedStartTime = &AccountBudgetProposal_ProposedStartTimeType{enums.TimeTypeEnum_TimeType(x)}
  446. return true, err
  447. case 19: // proposed_end_time.proposed_end_date_time
  448. if wire != proto.WireBytes {
  449. return true, proto.ErrInternalBadWireType
  450. }
  451. msg := new(wrappers.StringValue)
  452. err := b.DecodeMessage(msg)
  453. m.ProposedEndTime = &AccountBudgetProposal_ProposedEndDateTime{msg}
  454. return true, err
  455. case 9: // proposed_end_time.proposed_end_time_type
  456. if wire != proto.WireVarint {
  457. return true, proto.ErrInternalBadWireType
  458. }
  459. x, err := b.DecodeVarint()
  460. m.ProposedEndTime = &AccountBudgetProposal_ProposedEndTimeType{enums.TimeTypeEnum_TimeType(x)}
  461. return true, err
  462. case 21: // approved_end_time.approved_end_date_time
  463. if wire != proto.WireBytes {
  464. return true, proto.ErrInternalBadWireType
  465. }
  466. msg := new(wrappers.StringValue)
  467. err := b.DecodeMessage(msg)
  468. m.ApprovedEndTime = &AccountBudgetProposal_ApprovedEndDateTime{msg}
  469. return true, err
  470. case 22: // approved_end_time.approved_end_time_type
  471. if wire != proto.WireVarint {
  472. return true, proto.ErrInternalBadWireType
  473. }
  474. x, err := b.DecodeVarint()
  475. m.ApprovedEndTime = &AccountBudgetProposal_ApprovedEndTimeType{enums.TimeTypeEnum_TimeType(x)}
  476. return true, err
  477. case 10: // proposed_spending_limit.proposed_spending_limit_micros
  478. if wire != proto.WireBytes {
  479. return true, proto.ErrInternalBadWireType
  480. }
  481. msg := new(wrappers.Int64Value)
  482. err := b.DecodeMessage(msg)
  483. m.ProposedSpendingLimit = &AccountBudgetProposal_ProposedSpendingLimitMicros{msg}
  484. return true, err
  485. case 11: // proposed_spending_limit.proposed_spending_limit_type
  486. if wire != proto.WireVarint {
  487. return true, proto.ErrInternalBadWireType
  488. }
  489. x, err := b.DecodeVarint()
  490. m.ProposedSpendingLimit = &AccountBudgetProposal_ProposedSpendingLimitType{enums.SpendingLimitTypeEnum_SpendingLimitType(x)}
  491. return true, err
  492. case 23: // approved_spending_limit.approved_spending_limit_micros
  493. if wire != proto.WireBytes {
  494. return true, proto.ErrInternalBadWireType
  495. }
  496. msg := new(wrappers.Int64Value)
  497. err := b.DecodeMessage(msg)
  498. m.ApprovedSpendingLimit = &AccountBudgetProposal_ApprovedSpendingLimitMicros{msg}
  499. return true, err
  500. case 24: // approved_spending_limit.approved_spending_limit_type
  501. if wire != proto.WireVarint {
  502. return true, proto.ErrInternalBadWireType
  503. }
  504. x, err := b.DecodeVarint()
  505. m.ApprovedSpendingLimit = &AccountBudgetProposal_ApprovedSpendingLimitType{enums.SpendingLimitTypeEnum_SpendingLimitType(x)}
  506. return true, err
  507. default:
  508. return false, nil
  509. }
  510. }
  511. func _AccountBudgetProposal_OneofSizer(msg proto.Message) (n int) {
  512. m := msg.(*AccountBudgetProposal)
  513. // proposed_start_time
  514. switch x := m.ProposedStartTime.(type) {
  515. case *AccountBudgetProposal_ProposedStartDateTime:
  516. s := proto.Size(x.ProposedStartDateTime)
  517. n += 2 // tag and wire
  518. n += proto.SizeVarint(uint64(s))
  519. n += s
  520. case *AccountBudgetProposal_ProposedStartTimeType:
  521. n += 1 // tag and wire
  522. n += proto.SizeVarint(uint64(x.ProposedStartTimeType))
  523. case nil:
  524. default:
  525. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  526. }
  527. // proposed_end_time
  528. switch x := m.ProposedEndTime.(type) {
  529. case *AccountBudgetProposal_ProposedEndDateTime:
  530. s := proto.Size(x.ProposedEndDateTime)
  531. n += 2 // tag and wire
  532. n += proto.SizeVarint(uint64(s))
  533. n += s
  534. case *AccountBudgetProposal_ProposedEndTimeType:
  535. n += 1 // tag and wire
  536. n += proto.SizeVarint(uint64(x.ProposedEndTimeType))
  537. case nil:
  538. default:
  539. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  540. }
  541. // approved_end_time
  542. switch x := m.ApprovedEndTime.(type) {
  543. case *AccountBudgetProposal_ApprovedEndDateTime:
  544. s := proto.Size(x.ApprovedEndDateTime)
  545. n += 2 // tag and wire
  546. n += proto.SizeVarint(uint64(s))
  547. n += s
  548. case *AccountBudgetProposal_ApprovedEndTimeType:
  549. n += 2 // tag and wire
  550. n += proto.SizeVarint(uint64(x.ApprovedEndTimeType))
  551. case nil:
  552. default:
  553. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  554. }
  555. // proposed_spending_limit
  556. switch x := m.ProposedSpendingLimit.(type) {
  557. case *AccountBudgetProposal_ProposedSpendingLimitMicros:
  558. s := proto.Size(x.ProposedSpendingLimitMicros)
  559. n += 1 // tag and wire
  560. n += proto.SizeVarint(uint64(s))
  561. n += s
  562. case *AccountBudgetProposal_ProposedSpendingLimitType:
  563. n += 1 // tag and wire
  564. n += proto.SizeVarint(uint64(x.ProposedSpendingLimitType))
  565. case nil:
  566. default:
  567. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  568. }
  569. // approved_spending_limit
  570. switch x := m.ApprovedSpendingLimit.(type) {
  571. case *AccountBudgetProposal_ApprovedSpendingLimitMicros:
  572. s := proto.Size(x.ApprovedSpendingLimitMicros)
  573. n += 2 // tag and wire
  574. n += proto.SizeVarint(uint64(s))
  575. n += s
  576. case *AccountBudgetProposal_ApprovedSpendingLimitType:
  577. n += 2 // tag and wire
  578. n += proto.SizeVarint(uint64(x.ApprovedSpendingLimitType))
  579. case nil:
  580. default:
  581. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  582. }
  583. return n
  584. }
  585. func init() {
  586. proto.RegisterType((*AccountBudgetProposal)(nil), "google.ads.googleads.v0.resources.AccountBudgetProposal")
  587. }
  588. func init() {
  589. proto.RegisterFile("google/ads/googleads/v0/resources/account_budget_proposal.proto", fileDescriptor_account_budget_proposal_13bbb9bf380a278c)
  590. }
  591. var fileDescriptor_account_budget_proposal_13bbb9bf380a278c = []byte{
  592. // 830 bytes of a gzipped FileDescriptorProto
  593. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x96, 0xdf, 0x6e, 0xdb, 0x36,
  594. 0x14, 0xc6, 0x67, 0x39, 0xcb, 0x10, 0xc6, 0xce, 0x12, 0x79, 0x4e, 0x94, 0x3f, 0x08, 0x92, 0x0d,
  595. 0x01, 0x02, 0x0c, 0x93, 0x8d, 0x2c, 0xd8, 0x00, 0xed, 0x62, 0xb3, 0xb7, 0x2c, 0x59, 0xb0, 0xa6,
  596. 0x86, 0x9c, 0xba, 0x40, 0x60, 0x40, 0xa0, 0x2d, 0x56, 0x15, 0x2a, 0x89, 0x02, 0x49, 0xa5, 0x08,
  597. 0xfa, 0x00, 0x45, 0x5f, 0xa3, 0x97, 0x7d, 0x94, 0xbe, 0x45, 0x6f, 0xfb, 0x14, 0x05, 0x25, 0x91,
  598. 0x96, 0x6c, 0x2b, 0x16, 0x92, 0xde, 0x51, 0x22, 0xbf, 0xef, 0x9c, 0xdf, 0xe1, 0x21, 0x25, 0xf0,
  599. 0xa7, 0x83, 0xb1, 0xe3, 0xa1, 0x16, 0xb4, 0x69, 0x2b, 0x19, 0xf2, 0xd1, 0x6d, 0xbb, 0x45, 0x10,
  600. 0xc5, 0x11, 0x19, 0x23, 0xda, 0x82, 0xe3, 0x31, 0x8e, 0x02, 0x66, 0x8d, 0x22, 0xdb, 0x41, 0xcc,
  601. 0x0a, 0x09, 0x0e, 0x31, 0x85, 0x9e, 0x1e, 0x12, 0xcc, 0xb0, 0x7a, 0x98, 0xa8, 0x74, 0x68, 0x53,
  602. 0x5d, 0x1a, 0xe8, 0xb7, 0x6d, 0x5d, 0x1a, 0xec, 0x74, 0x8b, 0x62, 0xa0, 0x20, 0xf2, 0x0b, 0xfd,
  603. 0x2d, 0xca, 0x20, 0x8b, 0x68, 0x12, 0x66, 0xe7, 0xaf, 0x87, 0x79, 0xb0, 0xbb, 0x10, 0xa5, 0x0e,
  604. 0xbf, 0xdf, 0xef, 0x40, 0x43, 0x14, 0xd8, 0x6e, 0xe0, 0x58, 0x9e, 0xeb, 0xbb, 0x2c, 0x2b, 0xfc,
  605. 0xe5, 0x7e, 0x21, 0x73, 0x7d, 0x94, 0x5d, 0xbe, 0x9f, 0x2e, 0x8f, 0x9f, 0x46, 0xd1, 0x8b, 0xd6,
  606. 0x6b, 0x02, 0xc3, 0x10, 0x91, 0x94, 0xe4, 0xc7, 0x4f, 0xeb, 0xa0, 0xd9, 0x49, 0xd2, 0xed, 0xc6,
  607. 0xd9, 0xf6, 0xd2, 0x64, 0xd5, 0x9f, 0x40, 0x5d, 0x14, 0xcd, 0x0a, 0xa0, 0x8f, 0xb4, 0xca, 0x41,
  608. 0xe5, 0x78, 0xc5, 0xac, 0x89, 0x97, 0x57, 0xd0, 0x47, 0xea, 0xcf, 0x40, 0x71, 0x6d, 0x6d, 0xed,
  609. 0xa0, 0x72, 0xbc, 0x7a, 0xb2, 0x9b, 0x56, 0x5c, 0x17, 0xb1, 0xf4, 0xff, 0x02, 0xf6, 0xdb, 0xe9,
  610. 0x00, 0x7a, 0x11, 0x32, 0x15, 0xd7, 0x56, 0x3b, 0xa0, 0x3e, 0x72, 0x3d, 0x8f, 0x63, 0x51, 0xc4,
  611. 0xa2, 0x50, 0x53, 0x62, 0xdd, 0xde, 0x8c, 0xae, 0xcf, 0x88, 0x1b, 0x38, 0x89, 0xb0, 0x96, 0x4a,
  612. 0xfa, 0x5c, 0xa1, 0xfe, 0x0d, 0xd6, 0xf2, 0xc5, 0xd5, 0xaa, 0x25, 0x3c, 0xea, 0x30, 0x4b, 0xa8,
  613. 0xbe, 0x01, 0xf5, 0xdc, 0x96, 0x68, 0x4b, 0x07, 0x95, 0xe3, 0xb5, 0x93, 0x81, 0x5e, 0xd4, 0x3c,
  614. 0x71, 0x69, 0xf5, 0xb9, 0x65, 0xba, 0xbe, 0x0b, 0xd1, 0x59, 0x10, 0xf9, 0xc5, 0xb3, 0x66, 0x2d,
  615. 0xcc, 0x3c, 0xa9, 0x04, 0x2c, 0x27, 0xad, 0xa4, 0x7d, 0x1f, 0x47, 0xbd, 0x79, 0x48, 0xd4, 0x7e,
  616. 0xec, 0x50, 0x1c, 0x37, 0x99, 0x37, 0xd3, 0x48, 0xbc, 0xf0, 0x49, 0x0e, 0xc8, 0x4e, 0xb6, 0xf2,
  617. 0xdb, 0x32, 0x85, 0x17, 0x92, 0x78, 0xa3, 0x9f, 0x01, 0x0d, 0x86, 0x21, 0xc1, 0xb7, 0xc8, 0xe6,
  618. 0x47, 0x81, 0x30, 0xcb, 0x86, 0x0c, 0x59, 0xbc, 0xdd, 0xb4, 0x1f, 0x4a, 0xb8, 0x35, 0x85, 0xba,
  619. 0xcf, 0xc5, 0xff, 0x40, 0x86, 0xae, 0x5d, 0x1f, 0xa9, 0x10, 0xec, 0xcb, 0xcc, 0xc2, 0x88, 0x8c,
  620. 0x5f, 0x42, 0x8a, 0x2c, 0x4c, 0x6c, 0x44, 0xac, 0x20, 0xf2, 0x47, 0x88, 0x68, 0xb5, 0x12, 0xe6,
  621. 0xbb, 0xc2, 0xa3, 0x97, 0x5a, 0x3c, 0xe5, 0x0e, 0x57, 0xb1, 0x01, 0x6f, 0x99, 0x09, 0x3c, 0x66,
  622. 0x88, 0x6a, 0xf5, 0x32, 0x2d, 0x23, 0xe9, 0xb9, 0x44, 0xbd, 0x04, 0xea, 0x98, 0x20, 0xc8, 0x5c,
  623. 0x1c, 0x64, 0xc0, 0xd7, 0x4b, 0x18, 0xad, 0x0b, 0x9d, 0x64, 0xbe, 0x04, 0x6a, 0x52, 0x0c, 0xe8,
  624. 0x65, 0xbc, 0x36, 0xca, 0x78, 0x09, 0x9d, 0xf4, 0x7a, 0x0e, 0x34, 0x09, 0x37, 0xbd, 0x2d, 0xea,
  625. 0x62, 0xc7, 0x8b, 0x6f, 0xcc, 0xa6, 0xd0, 0xe7, 0x37, 0x06, 0xcf, 0x18, 0xcb, 0x9b, 0x45, 0xfb,
  626. 0x2e, 0x6e, 0xdc, 0xd3, 0x05, 0x8d, 0xcb, 0x6d, 0xe4, 0xe9, 0x10, 0x0f, 0x33, 0x01, 0xc5, 0x84,
  627. 0xda, 0x07, 0x9b, 0x32, 0x20, 0x0a, 0xec, 0x0c, 0x47, 0xa3, 0x04, 0x47, 0xc5, 0x6c, 0x08, 0xf5,
  628. 0x59, 0x60, 0x4b, 0x8a, 0x57, 0x53, 0xa6, 0x13, 0x86, 0x95, 0x47, 0x30, 0xe4, 0x83, 0x65, 0x09,
  629. 0xe4, 0x11, 0xc9, 0x13, 0x34, 0x4b, 0x10, 0x28, 0x66, 0x43, 0xa8, 0xa7, 0x08, 0x72, 0xa6, 0x13,
  630. 0x82, 0xcd, 0x47, 0x10, 0xe4, 0x83, 0x49, 0x82, 0x51, 0xe6, 0x34, 0x4e, 0x7d, 0x81, 0x7c, 0x77,
  631. 0x4c, 0x30, 0xd5, 0xc0, 0xc2, 0x9b, 0xfe, 0xa2, 0x3a, 0x39, 0x8e, 0xfd, 0xd4, 0xe3, 0x7f, 0x6e,
  632. 0xf1, 0x24, 0x76, 0x50, 0xdf, 0x55, 0xc0, 0x5e, 0x51, 0x90, 0x98, 0x6b, 0x35, 0xe6, 0xfa, 0x77,
  633. 0x01, 0x57, 0xce, 0x5a, 0x02, 0xce, 0xbc, 0xbd, 0xa8, 0x9a, 0xdb, 0x73, 0xb3, 0x11, 0xbc, 0x93,
  634. 0x4b, 0x6d, 0x2e, 0xef, 0xd6, 0x62, 0xde, 0x25, 0x73, 0x57, 0xde, 0x6d, 0x05, 0xbc, 0x45, 0x41,
  635. 0x62, 0x5e, 0xed, 0xab, 0xf2, 0x2e, 0x99, 0xdb, 0x73, 0xb3, 0xe1, 0x93, 0xdd, 0x26, 0x68, 0xcc,
  636. 0x39, 0xd4, 0xdd, 0x06, 0xd8, 0x98, 0x39, 0x25, 0xfc, 0xe5, 0x4c, 0xe3, 0x75, 0xb7, 0xc1, 0x56,
  637. 0xc1, 0xde, 0xf1, 0xa9, 0x02, 0xcc, 0xee, 0x5b, 0x05, 0x1c, 0x8d, 0xb1, 0xaf, 0x2f, 0xfc, 0x37,
  638. 0xeb, 0xee, 0xcc, 0xfd, 0x9a, 0xf5, 0x78, 0xd5, 0x7b, 0x95, 0x9b, 0xcb, 0xd4, 0xc0, 0xc1, 0x1e,
  639. 0x0c, 0x1c, 0x1d, 0x13, 0xa7, 0xe5, 0xa0, 0x20, 0xde, 0x13, 0xf1, 0x2b, 0x14, 0xba, 0xf4, 0x9e,
  640. 0x9f, 0xc7, 0x3f, 0xe4, 0xe8, 0xbd, 0x52, 0x3d, 0xef, 0x74, 0x3e, 0x28, 0x87, 0xe7, 0x89, 0x65,
  641. 0xc7, 0xa6, 0x7a, 0x32, 0xe4, 0xa3, 0x41, 0x5b, 0x37, 0xc5, 0xca, 0x8f, 0x62, 0xcd, 0xb0, 0x63,
  642. 0xd3, 0xa1, 0x5c, 0x33, 0x1c, 0xb4, 0x87, 0x72, 0xcd, 0x67, 0xe5, 0x28, 0x99, 0x30, 0x8c, 0x8e,
  643. 0x4d, 0x0d, 0x43, 0xae, 0x32, 0x8c, 0x41, 0xdb, 0x30, 0xe4, 0xba, 0xd1, 0x72, 0x9c, 0xec, 0xaf,
  644. 0x5f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xf7, 0xf2, 0x38, 0x7d, 0xe8, 0x0a, 0x00, 0x00,
  645. }