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.
 
 
 

714 lines
30 KiB

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