|
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: google/ads/googleads/v1/resources/account_budget_proposal.proto
-
- package resources // import "google.golang.org/genproto/googleapis/ads/googleads/v1/resources"
-
- import proto "github.com/golang/protobuf/proto"
- import fmt "fmt"
- import math "math"
- import wrappers "github.com/golang/protobuf/ptypes/wrappers"
- import enums "google.golang.org/genproto/googleapis/ads/googleads/v1/enums"
- import _ "google.golang.org/genproto/googleapis/api/annotations"
-
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
-
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
-
- // An account-level budget proposal.
- //
- // All fields prefixed with 'proposed' may not necessarily be applied directly.
- // For example, proposed spending limits may be adjusted before their
- // application. This is true if the 'proposed' field has an 'approved'
- // counterpart, e.g. spending limits.
- //
- // Please note that the proposal type (proposal_type) changes which fields are
- // required and which must remain empty.
- type AccountBudgetProposal struct {
- // The resource name of the proposal.
- // AccountBudgetProposal resource names have the form:
- //
- //
- // `customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}`
- ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
- // The ID of the proposal.
- Id *wrappers.Int64Value `protobuf:"bytes,14,opt,name=id,proto3" json:"id,omitempty"`
- // The resource name of the billing setup associated with this proposal.
- BillingSetup *wrappers.StringValue `protobuf:"bytes,2,opt,name=billing_setup,json=billingSetup,proto3" json:"billing_setup,omitempty"`
- // The resource name of the account-level budget associated with this
- // proposal.
- AccountBudget *wrappers.StringValue `protobuf:"bytes,3,opt,name=account_budget,json=accountBudget,proto3" json:"account_budget,omitempty"`
- // The type of this proposal, e.g. END to end the budget associated with this
- // proposal.
- 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"`
- // The status of this proposal.
- // When a new proposal is created, the status defaults to PENDING.
- Status enums.AccountBudgetProposalStatusEnum_AccountBudgetProposalStatus `protobuf:"varint,15,opt,name=status,proto3,enum=google.ads.googleads.v1.enums.AccountBudgetProposalStatusEnum_AccountBudgetProposalStatus" json:"status,omitempty"`
- // The name to assign to the account-level budget.
- ProposedName *wrappers.StringValue `protobuf:"bytes,5,opt,name=proposed_name,json=proposedName,proto3" json:"proposed_name,omitempty"`
- // The approved start date time in yyyy-mm-dd hh:mm:ss format.
- ApprovedStartDateTime *wrappers.StringValue `protobuf:"bytes,20,opt,name=approved_start_date_time,json=approvedStartDateTime,proto3" json:"approved_start_date_time,omitempty"`
- // A purchase order number is a value that enables the user to help them
- // reference this budget in their monthly invoices.
- ProposedPurchaseOrderNumber *wrappers.StringValue `protobuf:"bytes,12,opt,name=proposed_purchase_order_number,json=proposedPurchaseOrderNumber,proto3" json:"proposed_purchase_order_number,omitempty"`
- // Notes associated with this budget.
- ProposedNotes *wrappers.StringValue `protobuf:"bytes,13,opt,name=proposed_notes,json=proposedNotes,proto3" json:"proposed_notes,omitempty"`
- // The date time when this account-level budget proposal was created, which is
- // not the same as its approval date time, if applicable.
- CreationDateTime *wrappers.StringValue `protobuf:"bytes,16,opt,name=creation_date_time,json=creationDateTime,proto3" json:"creation_date_time,omitempty"`
- // The date time when this account-level budget was approved, if applicable.
- ApprovalDateTime *wrappers.StringValue `protobuf:"bytes,17,opt,name=approval_date_time,json=approvalDateTime,proto3" json:"approval_date_time,omitempty"`
- // The proposed start date time of the account-level budget, which cannot be
- // in the past.
- //
- // Types that are valid to be assigned to ProposedStartTime:
- // *AccountBudgetProposal_ProposedStartDateTime
- // *AccountBudgetProposal_ProposedStartTimeType
- ProposedStartTime isAccountBudgetProposal_ProposedStartTime `protobuf_oneof:"proposed_start_time"`
- // The proposed end date time of the account-level budget, which cannot be in
- // the past.
- //
- // Types that are valid to be assigned to ProposedEndTime:
- // *AccountBudgetProposal_ProposedEndDateTime
- // *AccountBudgetProposal_ProposedEndTimeType
- ProposedEndTime isAccountBudgetProposal_ProposedEndTime `protobuf_oneof:"proposed_end_time"`
- // The approved end date time of the account-level budget.
- //
- // Types that are valid to be assigned to ApprovedEndTime:
- // *AccountBudgetProposal_ApprovedEndDateTime
- // *AccountBudgetProposal_ApprovedEndTimeType
- ApprovedEndTime isAccountBudgetProposal_ApprovedEndTime `protobuf_oneof:"approved_end_time"`
- // The proposed spending limit.
- //
- // Types that are valid to be assigned to ProposedSpendingLimit:
- // *AccountBudgetProposal_ProposedSpendingLimitMicros
- // *AccountBudgetProposal_ProposedSpendingLimitType
- ProposedSpendingLimit isAccountBudgetProposal_ProposedSpendingLimit `protobuf_oneof:"proposed_spending_limit"`
- // The approved spending limit.
- //
- // Types that are valid to be assigned to ApprovedSpendingLimit:
- // *AccountBudgetProposal_ApprovedSpendingLimitMicros
- // *AccountBudgetProposal_ApprovedSpendingLimitType
- ApprovedSpendingLimit isAccountBudgetProposal_ApprovedSpendingLimit `protobuf_oneof:"approved_spending_limit"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
-
- func (m *AccountBudgetProposal) Reset() { *m = AccountBudgetProposal{} }
- func (m *AccountBudgetProposal) String() string { return proto.CompactTextString(m) }
- func (*AccountBudgetProposal) ProtoMessage() {}
- func (*AccountBudgetProposal) Descriptor() ([]byte, []int) {
- return fileDescriptor_account_budget_proposal_522c3e292dda2d1a, []int{0}
- }
- func (m *AccountBudgetProposal) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_AccountBudgetProposal.Unmarshal(m, b)
- }
- func (m *AccountBudgetProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_AccountBudgetProposal.Marshal(b, m, deterministic)
- }
- func (dst *AccountBudgetProposal) XXX_Merge(src proto.Message) {
- xxx_messageInfo_AccountBudgetProposal.Merge(dst, src)
- }
- func (m *AccountBudgetProposal) XXX_Size() int {
- return xxx_messageInfo_AccountBudgetProposal.Size(m)
- }
- func (m *AccountBudgetProposal) XXX_DiscardUnknown() {
- xxx_messageInfo_AccountBudgetProposal.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_AccountBudgetProposal proto.InternalMessageInfo
-
- func (m *AccountBudgetProposal) GetResourceName() string {
- if m != nil {
- return m.ResourceName
- }
- return ""
- }
-
- func (m *AccountBudgetProposal) GetId() *wrappers.Int64Value {
- if m != nil {
- return m.Id
- }
- return nil
- }
-
- func (m *AccountBudgetProposal) GetBillingSetup() *wrappers.StringValue {
- if m != nil {
- return m.BillingSetup
- }
- return nil
- }
-
- func (m *AccountBudgetProposal) GetAccountBudget() *wrappers.StringValue {
- if m != nil {
- return m.AccountBudget
- }
- return nil
- }
-
- func (m *AccountBudgetProposal) GetProposalType() enums.AccountBudgetProposalTypeEnum_AccountBudgetProposalType {
- if m != nil {
- return m.ProposalType
- }
- return enums.AccountBudgetProposalTypeEnum_UNSPECIFIED
- }
-
- func (m *AccountBudgetProposal) GetStatus() enums.AccountBudgetProposalStatusEnum_AccountBudgetProposalStatus {
- if m != nil {
- return m.Status
- }
- return enums.AccountBudgetProposalStatusEnum_UNSPECIFIED
- }
-
- func (m *AccountBudgetProposal) GetProposedName() *wrappers.StringValue {
- if m != nil {
- return m.ProposedName
- }
- return nil
- }
-
- func (m *AccountBudgetProposal) GetApprovedStartDateTime() *wrappers.StringValue {
- if m != nil {
- return m.ApprovedStartDateTime
- }
- return nil
- }
-
- func (m *AccountBudgetProposal) GetProposedPurchaseOrderNumber() *wrappers.StringValue {
- if m != nil {
- return m.ProposedPurchaseOrderNumber
- }
- return nil
- }
-
- func (m *AccountBudgetProposal) GetProposedNotes() *wrappers.StringValue {
- if m != nil {
- return m.ProposedNotes
- }
- return nil
- }
-
- func (m *AccountBudgetProposal) GetCreationDateTime() *wrappers.StringValue {
- if m != nil {
- return m.CreationDateTime
- }
- return nil
- }
-
- func (m *AccountBudgetProposal) GetApprovalDateTime() *wrappers.StringValue {
- if m != nil {
- return m.ApprovalDateTime
- }
- return nil
- }
-
- type isAccountBudgetProposal_ProposedStartTime interface {
- isAccountBudgetProposal_ProposedStartTime()
- }
-
- type AccountBudgetProposal_ProposedStartDateTime struct {
- ProposedStartDateTime *wrappers.StringValue `protobuf:"bytes,18,opt,name=proposed_start_date_time,json=proposedStartDateTime,proto3,oneof"`
- }
-
- type AccountBudgetProposal_ProposedStartTimeType struct {
- 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"`
- }
-
- func (*AccountBudgetProposal_ProposedStartDateTime) isAccountBudgetProposal_ProposedStartTime() {}
-
- func (*AccountBudgetProposal_ProposedStartTimeType) isAccountBudgetProposal_ProposedStartTime() {}
-
- func (m *AccountBudgetProposal) GetProposedStartTime() isAccountBudgetProposal_ProposedStartTime {
- if m != nil {
- return m.ProposedStartTime
- }
- return nil
- }
-
- func (m *AccountBudgetProposal) GetProposedStartDateTime() *wrappers.StringValue {
- if x, ok := m.GetProposedStartTime().(*AccountBudgetProposal_ProposedStartDateTime); ok {
- return x.ProposedStartDateTime
- }
- return nil
- }
-
- func (m *AccountBudgetProposal) GetProposedStartTimeType() enums.TimeTypeEnum_TimeType {
- if x, ok := m.GetProposedStartTime().(*AccountBudgetProposal_ProposedStartTimeType); ok {
- return x.ProposedStartTimeType
- }
- return enums.TimeTypeEnum_UNSPECIFIED
- }
-
- type isAccountBudgetProposal_ProposedEndTime interface {
- isAccountBudgetProposal_ProposedEndTime()
- }
-
- type AccountBudgetProposal_ProposedEndDateTime struct {
- ProposedEndDateTime *wrappers.StringValue `protobuf:"bytes,19,opt,name=proposed_end_date_time,json=proposedEndDateTime,proto3,oneof"`
- }
-
- type AccountBudgetProposal_ProposedEndTimeType struct {
- 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"`
- }
-
- func (*AccountBudgetProposal_ProposedEndDateTime) isAccountBudgetProposal_ProposedEndTime() {}
-
- func (*AccountBudgetProposal_ProposedEndTimeType) isAccountBudgetProposal_ProposedEndTime() {}
-
- func (m *AccountBudgetProposal) GetProposedEndTime() isAccountBudgetProposal_ProposedEndTime {
- if m != nil {
- return m.ProposedEndTime
- }
- return nil
- }
-
- func (m *AccountBudgetProposal) GetProposedEndDateTime() *wrappers.StringValue {
- if x, ok := m.GetProposedEndTime().(*AccountBudgetProposal_ProposedEndDateTime); ok {
- return x.ProposedEndDateTime
- }
- return nil
- }
-
- func (m *AccountBudgetProposal) GetProposedEndTimeType() enums.TimeTypeEnum_TimeType {
- if x, ok := m.GetProposedEndTime().(*AccountBudgetProposal_ProposedEndTimeType); ok {
- return x.ProposedEndTimeType
- }
- return enums.TimeTypeEnum_UNSPECIFIED
- }
-
- type isAccountBudgetProposal_ApprovedEndTime interface {
- isAccountBudgetProposal_ApprovedEndTime()
- }
-
- type AccountBudgetProposal_ApprovedEndDateTime struct {
- ApprovedEndDateTime *wrappers.StringValue `protobuf:"bytes,21,opt,name=approved_end_date_time,json=approvedEndDateTime,proto3,oneof"`
- }
-
- type AccountBudgetProposal_ApprovedEndTimeType struct {
- 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"`
- }
-
- func (*AccountBudgetProposal_ApprovedEndDateTime) isAccountBudgetProposal_ApprovedEndTime() {}
-
- func (*AccountBudgetProposal_ApprovedEndTimeType) isAccountBudgetProposal_ApprovedEndTime() {}
-
- func (m *AccountBudgetProposal) GetApprovedEndTime() isAccountBudgetProposal_ApprovedEndTime {
- if m != nil {
- return m.ApprovedEndTime
- }
- return nil
- }
-
- func (m *AccountBudgetProposal) GetApprovedEndDateTime() *wrappers.StringValue {
- if x, ok := m.GetApprovedEndTime().(*AccountBudgetProposal_ApprovedEndDateTime); ok {
- return x.ApprovedEndDateTime
- }
- return nil
- }
-
- func (m *AccountBudgetProposal) GetApprovedEndTimeType() enums.TimeTypeEnum_TimeType {
- if x, ok := m.GetApprovedEndTime().(*AccountBudgetProposal_ApprovedEndTimeType); ok {
- return x.ApprovedEndTimeType
- }
- return enums.TimeTypeEnum_UNSPECIFIED
- }
-
- type isAccountBudgetProposal_ProposedSpendingLimit interface {
- isAccountBudgetProposal_ProposedSpendingLimit()
- }
-
- type AccountBudgetProposal_ProposedSpendingLimitMicros struct {
- ProposedSpendingLimitMicros *wrappers.Int64Value `protobuf:"bytes,10,opt,name=proposed_spending_limit_micros,json=proposedSpendingLimitMicros,proto3,oneof"`
- }
-
- type AccountBudgetProposal_ProposedSpendingLimitType struct {
- 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"`
- }
-
- func (*AccountBudgetProposal_ProposedSpendingLimitMicros) isAccountBudgetProposal_ProposedSpendingLimit() {
- }
-
- func (*AccountBudgetProposal_ProposedSpendingLimitType) isAccountBudgetProposal_ProposedSpendingLimit() {
- }
-
- func (m *AccountBudgetProposal) GetProposedSpendingLimit() isAccountBudgetProposal_ProposedSpendingLimit {
- if m != nil {
- return m.ProposedSpendingLimit
- }
- return nil
- }
-
- func (m *AccountBudgetProposal) GetProposedSpendingLimitMicros() *wrappers.Int64Value {
- if x, ok := m.GetProposedSpendingLimit().(*AccountBudgetProposal_ProposedSpendingLimitMicros); ok {
- return x.ProposedSpendingLimitMicros
- }
- return nil
- }
-
- func (m *AccountBudgetProposal) GetProposedSpendingLimitType() enums.SpendingLimitTypeEnum_SpendingLimitType {
- if x, ok := m.GetProposedSpendingLimit().(*AccountBudgetProposal_ProposedSpendingLimitType); ok {
- return x.ProposedSpendingLimitType
- }
- return enums.SpendingLimitTypeEnum_UNSPECIFIED
- }
-
- type isAccountBudgetProposal_ApprovedSpendingLimit interface {
- isAccountBudgetProposal_ApprovedSpendingLimit()
- }
-
- type AccountBudgetProposal_ApprovedSpendingLimitMicros struct {
- ApprovedSpendingLimitMicros *wrappers.Int64Value `protobuf:"bytes,23,opt,name=approved_spending_limit_micros,json=approvedSpendingLimitMicros,proto3,oneof"`
- }
-
- type AccountBudgetProposal_ApprovedSpendingLimitType struct {
- 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"`
- }
-
- func (*AccountBudgetProposal_ApprovedSpendingLimitMicros) isAccountBudgetProposal_ApprovedSpendingLimit() {
- }
-
- func (*AccountBudgetProposal_ApprovedSpendingLimitType) isAccountBudgetProposal_ApprovedSpendingLimit() {
- }
-
- func (m *AccountBudgetProposal) GetApprovedSpendingLimit() isAccountBudgetProposal_ApprovedSpendingLimit {
- if m != nil {
- return m.ApprovedSpendingLimit
- }
- return nil
- }
-
- func (m *AccountBudgetProposal) GetApprovedSpendingLimitMicros() *wrappers.Int64Value {
- if x, ok := m.GetApprovedSpendingLimit().(*AccountBudgetProposal_ApprovedSpendingLimitMicros); ok {
- return x.ApprovedSpendingLimitMicros
- }
- return nil
- }
-
- func (m *AccountBudgetProposal) GetApprovedSpendingLimitType() enums.SpendingLimitTypeEnum_SpendingLimitType {
- if x, ok := m.GetApprovedSpendingLimit().(*AccountBudgetProposal_ApprovedSpendingLimitType); ok {
- return x.ApprovedSpendingLimitType
- }
- return enums.SpendingLimitTypeEnum_UNSPECIFIED
- }
-
- // XXX_OneofFuncs is for the internal use of the proto package.
- 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{}) {
- return _AccountBudgetProposal_OneofMarshaler, _AccountBudgetProposal_OneofUnmarshaler, _AccountBudgetProposal_OneofSizer, []interface{}{
- (*AccountBudgetProposal_ProposedStartDateTime)(nil),
- (*AccountBudgetProposal_ProposedStartTimeType)(nil),
- (*AccountBudgetProposal_ProposedEndDateTime)(nil),
- (*AccountBudgetProposal_ProposedEndTimeType)(nil),
- (*AccountBudgetProposal_ApprovedEndDateTime)(nil),
- (*AccountBudgetProposal_ApprovedEndTimeType)(nil),
- (*AccountBudgetProposal_ProposedSpendingLimitMicros)(nil),
- (*AccountBudgetProposal_ProposedSpendingLimitType)(nil),
- (*AccountBudgetProposal_ApprovedSpendingLimitMicros)(nil),
- (*AccountBudgetProposal_ApprovedSpendingLimitType)(nil),
- }
- }
-
- func _AccountBudgetProposal_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
- m := msg.(*AccountBudgetProposal)
- // proposed_start_time
- switch x := m.ProposedStartTime.(type) {
- case *AccountBudgetProposal_ProposedStartDateTime:
- b.EncodeVarint(18<<3 | proto.WireBytes)
- if err := b.EncodeMessage(x.ProposedStartDateTime); err != nil {
- return err
- }
- case *AccountBudgetProposal_ProposedStartTimeType:
- b.EncodeVarint(7<<3 | proto.WireVarint)
- b.EncodeVarint(uint64(x.ProposedStartTimeType))
- case nil:
- default:
- return fmt.Errorf("AccountBudgetProposal.ProposedStartTime has unexpected type %T", x)
- }
- // proposed_end_time
- switch x := m.ProposedEndTime.(type) {
- case *AccountBudgetProposal_ProposedEndDateTime:
- b.EncodeVarint(19<<3 | proto.WireBytes)
- if err := b.EncodeMessage(x.ProposedEndDateTime); err != nil {
- return err
- }
- case *AccountBudgetProposal_ProposedEndTimeType:
- b.EncodeVarint(9<<3 | proto.WireVarint)
- b.EncodeVarint(uint64(x.ProposedEndTimeType))
- case nil:
- default:
- return fmt.Errorf("AccountBudgetProposal.ProposedEndTime has unexpected type %T", x)
- }
- // approved_end_time
- switch x := m.ApprovedEndTime.(type) {
- case *AccountBudgetProposal_ApprovedEndDateTime:
- b.EncodeVarint(21<<3 | proto.WireBytes)
- if err := b.EncodeMessage(x.ApprovedEndDateTime); err != nil {
- return err
- }
- case *AccountBudgetProposal_ApprovedEndTimeType:
- b.EncodeVarint(22<<3 | proto.WireVarint)
- b.EncodeVarint(uint64(x.ApprovedEndTimeType))
- case nil:
- default:
- return fmt.Errorf("AccountBudgetProposal.ApprovedEndTime has unexpected type %T", x)
- }
- // proposed_spending_limit
- switch x := m.ProposedSpendingLimit.(type) {
- case *AccountBudgetProposal_ProposedSpendingLimitMicros:
- b.EncodeVarint(10<<3 | proto.WireBytes)
- if err := b.EncodeMessage(x.ProposedSpendingLimitMicros); err != nil {
- return err
- }
- case *AccountBudgetProposal_ProposedSpendingLimitType:
- b.EncodeVarint(11<<3 | proto.WireVarint)
- b.EncodeVarint(uint64(x.ProposedSpendingLimitType))
- case nil:
- default:
- return fmt.Errorf("AccountBudgetProposal.ProposedSpendingLimit has unexpected type %T", x)
- }
- // approved_spending_limit
- switch x := m.ApprovedSpendingLimit.(type) {
- case *AccountBudgetProposal_ApprovedSpendingLimitMicros:
- b.EncodeVarint(23<<3 | proto.WireBytes)
- if err := b.EncodeMessage(x.ApprovedSpendingLimitMicros); err != nil {
- return err
- }
- case *AccountBudgetProposal_ApprovedSpendingLimitType:
- b.EncodeVarint(24<<3 | proto.WireVarint)
- b.EncodeVarint(uint64(x.ApprovedSpendingLimitType))
- case nil:
- default:
- return fmt.Errorf("AccountBudgetProposal.ApprovedSpendingLimit has unexpected type %T", x)
- }
- return nil
- }
-
- func _AccountBudgetProposal_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
- m := msg.(*AccountBudgetProposal)
- switch tag {
- case 18: // proposed_start_time.proposed_start_date_time
- if wire != proto.WireBytes {
- return true, proto.ErrInternalBadWireType
- }
- msg := new(wrappers.StringValue)
- err := b.DecodeMessage(msg)
- m.ProposedStartTime = &AccountBudgetProposal_ProposedStartDateTime{msg}
- return true, err
- case 7: // proposed_start_time.proposed_start_time_type
- if wire != proto.WireVarint {
- return true, proto.ErrInternalBadWireType
- }
- x, err := b.DecodeVarint()
- m.ProposedStartTime = &AccountBudgetProposal_ProposedStartTimeType{enums.TimeTypeEnum_TimeType(x)}
- return true, err
- case 19: // proposed_end_time.proposed_end_date_time
- if wire != proto.WireBytes {
- return true, proto.ErrInternalBadWireType
- }
- msg := new(wrappers.StringValue)
- err := b.DecodeMessage(msg)
- m.ProposedEndTime = &AccountBudgetProposal_ProposedEndDateTime{msg}
- return true, err
- case 9: // proposed_end_time.proposed_end_time_type
- if wire != proto.WireVarint {
- return true, proto.ErrInternalBadWireType
- }
- x, err := b.DecodeVarint()
- m.ProposedEndTime = &AccountBudgetProposal_ProposedEndTimeType{enums.TimeTypeEnum_TimeType(x)}
- return true, err
- case 21: // approved_end_time.approved_end_date_time
- if wire != proto.WireBytes {
- return true, proto.ErrInternalBadWireType
- }
- msg := new(wrappers.StringValue)
- err := b.DecodeMessage(msg)
- m.ApprovedEndTime = &AccountBudgetProposal_ApprovedEndDateTime{msg}
- return true, err
- case 22: // approved_end_time.approved_end_time_type
- if wire != proto.WireVarint {
- return true, proto.ErrInternalBadWireType
- }
- x, err := b.DecodeVarint()
- m.ApprovedEndTime = &AccountBudgetProposal_ApprovedEndTimeType{enums.TimeTypeEnum_TimeType(x)}
- return true, err
- case 10: // proposed_spending_limit.proposed_spending_limit_micros
- if wire != proto.WireBytes {
- return true, proto.ErrInternalBadWireType
- }
- msg := new(wrappers.Int64Value)
- err := b.DecodeMessage(msg)
- m.ProposedSpendingLimit = &AccountBudgetProposal_ProposedSpendingLimitMicros{msg}
- return true, err
- case 11: // proposed_spending_limit.proposed_spending_limit_type
- if wire != proto.WireVarint {
- return true, proto.ErrInternalBadWireType
- }
- x, err := b.DecodeVarint()
- m.ProposedSpendingLimit = &AccountBudgetProposal_ProposedSpendingLimitType{enums.SpendingLimitTypeEnum_SpendingLimitType(x)}
- return true, err
- case 23: // approved_spending_limit.approved_spending_limit_micros
- if wire != proto.WireBytes {
- return true, proto.ErrInternalBadWireType
- }
- msg := new(wrappers.Int64Value)
- err := b.DecodeMessage(msg)
- m.ApprovedSpendingLimit = &AccountBudgetProposal_ApprovedSpendingLimitMicros{msg}
- return true, err
- case 24: // approved_spending_limit.approved_spending_limit_type
- if wire != proto.WireVarint {
- return true, proto.ErrInternalBadWireType
- }
- x, err := b.DecodeVarint()
- m.ApprovedSpendingLimit = &AccountBudgetProposal_ApprovedSpendingLimitType{enums.SpendingLimitTypeEnum_SpendingLimitType(x)}
- return true, err
- default:
- return false, nil
- }
- }
-
- func _AccountBudgetProposal_OneofSizer(msg proto.Message) (n int) {
- m := msg.(*AccountBudgetProposal)
- // proposed_start_time
- switch x := m.ProposedStartTime.(type) {
- case *AccountBudgetProposal_ProposedStartDateTime:
- s := proto.Size(x.ProposedStartDateTime)
- n += 2 // tag and wire
- n += proto.SizeVarint(uint64(s))
- n += s
- case *AccountBudgetProposal_ProposedStartTimeType:
- n += 1 // tag and wire
- n += proto.SizeVarint(uint64(x.ProposedStartTimeType))
- case nil:
- default:
- panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
- }
- // proposed_end_time
- switch x := m.ProposedEndTime.(type) {
- case *AccountBudgetProposal_ProposedEndDateTime:
- s := proto.Size(x.ProposedEndDateTime)
- n += 2 // tag and wire
- n += proto.SizeVarint(uint64(s))
- n += s
- case *AccountBudgetProposal_ProposedEndTimeType:
- n += 1 // tag and wire
- n += proto.SizeVarint(uint64(x.ProposedEndTimeType))
- case nil:
- default:
- panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
- }
- // approved_end_time
- switch x := m.ApprovedEndTime.(type) {
- case *AccountBudgetProposal_ApprovedEndDateTime:
- s := proto.Size(x.ApprovedEndDateTime)
- n += 2 // tag and wire
- n += proto.SizeVarint(uint64(s))
- n += s
- case *AccountBudgetProposal_ApprovedEndTimeType:
- n += 2 // tag and wire
- n += proto.SizeVarint(uint64(x.ApprovedEndTimeType))
- case nil:
- default:
- panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
- }
- // proposed_spending_limit
- switch x := m.ProposedSpendingLimit.(type) {
- case *AccountBudgetProposal_ProposedSpendingLimitMicros:
- s := proto.Size(x.ProposedSpendingLimitMicros)
- n += 1 // tag and wire
- n += proto.SizeVarint(uint64(s))
- n += s
- case *AccountBudgetProposal_ProposedSpendingLimitType:
- n += 1 // tag and wire
- n += proto.SizeVarint(uint64(x.ProposedSpendingLimitType))
- case nil:
- default:
- panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
- }
- // approved_spending_limit
- switch x := m.ApprovedSpendingLimit.(type) {
- case *AccountBudgetProposal_ApprovedSpendingLimitMicros:
- s := proto.Size(x.ApprovedSpendingLimitMicros)
- n += 2 // tag and wire
- n += proto.SizeVarint(uint64(s))
- n += s
- case *AccountBudgetProposal_ApprovedSpendingLimitType:
- n += 2 // tag and wire
- n += proto.SizeVarint(uint64(x.ApprovedSpendingLimitType))
- case nil:
- default:
- panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
- }
- return n
- }
-
- func init() {
- proto.RegisterType((*AccountBudgetProposal)(nil), "google.ads.googleads.v1.resources.AccountBudgetProposal")
- }
-
- func init() {
- proto.RegisterFile("google/ads/googleads/v1/resources/account_budget_proposal.proto", fileDescriptor_account_budget_proposal_522c3e292dda2d1a)
- }
-
- var fileDescriptor_account_budget_proposal_522c3e292dda2d1a = []byte{
- // 840 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x96, 0xef, 0x6e, 0xeb, 0x34,
- 0x18, 0xc6, 0x69, 0x3a, 0x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