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.
 
 
 

219 lines
9.2 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/ads/googleads/v1/resources/campaign_bid_modifier.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 common "google.golang.org/genproto/googleapis/ads/googleads/v1/common"
  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. // Represents a bid-modifiable only criterion at the campaign level.
  20. type CampaignBidModifier struct {
  21. // The resource name of the campaign bid modifier.
  22. // Campaign bid modifier resource names have the form:
  23. //
  24. // `customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}`
  25. ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
  26. // The campaign to which this criterion belongs.
  27. Campaign *wrappers.StringValue `protobuf:"bytes,2,opt,name=campaign,proto3" json:"campaign,omitempty"`
  28. // The ID of the criterion to bid modify.
  29. //
  30. // This field is ignored for mutates.
  31. CriterionId *wrappers.Int64Value `protobuf:"bytes,3,opt,name=criterion_id,json=criterionId,proto3" json:"criterion_id,omitempty"`
  32. // The modifier for the bid when the criterion matches.
  33. BidModifier *wrappers.DoubleValue `protobuf:"bytes,4,opt,name=bid_modifier,json=bidModifier,proto3" json:"bid_modifier,omitempty"`
  34. // The criterion of this campaign bid modifier.
  35. //
  36. // Types that are valid to be assigned to Criterion:
  37. // *CampaignBidModifier_InteractionType
  38. Criterion isCampaignBidModifier_Criterion `protobuf_oneof:"criterion"`
  39. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  40. XXX_unrecognized []byte `json:"-"`
  41. XXX_sizecache int32 `json:"-"`
  42. }
  43. func (m *CampaignBidModifier) Reset() { *m = CampaignBidModifier{} }
  44. func (m *CampaignBidModifier) String() string { return proto.CompactTextString(m) }
  45. func (*CampaignBidModifier) ProtoMessage() {}
  46. func (*CampaignBidModifier) Descriptor() ([]byte, []int) {
  47. return fileDescriptor_campaign_bid_modifier_84a465f8617851ab, []int{0}
  48. }
  49. func (m *CampaignBidModifier) XXX_Unmarshal(b []byte) error {
  50. return xxx_messageInfo_CampaignBidModifier.Unmarshal(m, b)
  51. }
  52. func (m *CampaignBidModifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  53. return xxx_messageInfo_CampaignBidModifier.Marshal(b, m, deterministic)
  54. }
  55. func (dst *CampaignBidModifier) XXX_Merge(src proto.Message) {
  56. xxx_messageInfo_CampaignBidModifier.Merge(dst, src)
  57. }
  58. func (m *CampaignBidModifier) XXX_Size() int {
  59. return xxx_messageInfo_CampaignBidModifier.Size(m)
  60. }
  61. func (m *CampaignBidModifier) XXX_DiscardUnknown() {
  62. xxx_messageInfo_CampaignBidModifier.DiscardUnknown(m)
  63. }
  64. var xxx_messageInfo_CampaignBidModifier proto.InternalMessageInfo
  65. func (m *CampaignBidModifier) GetResourceName() string {
  66. if m != nil {
  67. return m.ResourceName
  68. }
  69. return ""
  70. }
  71. func (m *CampaignBidModifier) GetCampaign() *wrappers.StringValue {
  72. if m != nil {
  73. return m.Campaign
  74. }
  75. return nil
  76. }
  77. func (m *CampaignBidModifier) GetCriterionId() *wrappers.Int64Value {
  78. if m != nil {
  79. return m.CriterionId
  80. }
  81. return nil
  82. }
  83. func (m *CampaignBidModifier) GetBidModifier() *wrappers.DoubleValue {
  84. if m != nil {
  85. return m.BidModifier
  86. }
  87. return nil
  88. }
  89. type isCampaignBidModifier_Criterion interface {
  90. isCampaignBidModifier_Criterion()
  91. }
  92. type CampaignBidModifier_InteractionType struct {
  93. InteractionType *common.InteractionTypeInfo `protobuf:"bytes,5,opt,name=interaction_type,json=interactionType,proto3,oneof"`
  94. }
  95. func (*CampaignBidModifier_InteractionType) isCampaignBidModifier_Criterion() {}
  96. func (m *CampaignBidModifier) GetCriterion() isCampaignBidModifier_Criterion {
  97. if m != nil {
  98. return m.Criterion
  99. }
  100. return nil
  101. }
  102. func (m *CampaignBidModifier) GetInteractionType() *common.InteractionTypeInfo {
  103. if x, ok := m.GetCriterion().(*CampaignBidModifier_InteractionType); ok {
  104. return x.InteractionType
  105. }
  106. return nil
  107. }
  108. // XXX_OneofFuncs is for the internal use of the proto package.
  109. func (*CampaignBidModifier) 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{}) {
  110. return _CampaignBidModifier_OneofMarshaler, _CampaignBidModifier_OneofUnmarshaler, _CampaignBidModifier_OneofSizer, []interface{}{
  111. (*CampaignBidModifier_InteractionType)(nil),
  112. }
  113. }
  114. func _CampaignBidModifier_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  115. m := msg.(*CampaignBidModifier)
  116. // criterion
  117. switch x := m.Criterion.(type) {
  118. case *CampaignBidModifier_InteractionType:
  119. b.EncodeVarint(5<<3 | proto.WireBytes)
  120. if err := b.EncodeMessage(x.InteractionType); err != nil {
  121. return err
  122. }
  123. case nil:
  124. default:
  125. return fmt.Errorf("CampaignBidModifier.Criterion has unexpected type %T", x)
  126. }
  127. return nil
  128. }
  129. func _CampaignBidModifier_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  130. m := msg.(*CampaignBidModifier)
  131. switch tag {
  132. case 5: // criterion.interaction_type
  133. if wire != proto.WireBytes {
  134. return true, proto.ErrInternalBadWireType
  135. }
  136. msg := new(common.InteractionTypeInfo)
  137. err := b.DecodeMessage(msg)
  138. m.Criterion = &CampaignBidModifier_InteractionType{msg}
  139. return true, err
  140. default:
  141. return false, nil
  142. }
  143. }
  144. func _CampaignBidModifier_OneofSizer(msg proto.Message) (n int) {
  145. m := msg.(*CampaignBidModifier)
  146. // criterion
  147. switch x := m.Criterion.(type) {
  148. case *CampaignBidModifier_InteractionType:
  149. s := proto.Size(x.InteractionType)
  150. n += 1 // tag and wire
  151. n += proto.SizeVarint(uint64(s))
  152. n += s
  153. case nil:
  154. default:
  155. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  156. }
  157. return n
  158. }
  159. func init() {
  160. proto.RegisterType((*CampaignBidModifier)(nil), "google.ads.googleads.v1.resources.CampaignBidModifier")
  161. }
  162. func init() {
  163. proto.RegisterFile("google/ads/googleads/v1/resources/campaign_bid_modifier.proto", fileDescriptor_campaign_bid_modifier_84a465f8617851ab)
  164. }
  165. var fileDescriptor_campaign_bid_modifier_84a465f8617851ab = []byte{
  166. // 440 bytes of a gzipped FileDescriptorProto
  167. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0xdd, 0x8a, 0xd4, 0x30,
  168. 0x14, 0x76, 0xba, 0x2a, 0x6e, 0x66, 0x44, 0xa9, 0x37, 0x65, 0x5d, 0x64, 0x57, 0x59, 0xd8, 0x1b,
  169. 0x53, 0xea, 0x8a, 0x48, 0x45, 0xa5, 0xa3, 0xb0, 0x8e, 0xa0, 0x2c, 0xa3, 0xcc, 0x85, 0x0c, 0xd4,
  170. 0xb4, 0xc9, 0x94, 0xc0, 0x34, 0x27, 0x24, 0xe9, 0xca, 0x3e, 0x80, 0x2f, 0xe2, 0xa5, 0x8f, 0xe2,
  171. 0x73, 0x78, 0xe5, 0x53, 0x48, 0x9b, 0x1f, 0x46, 0x74, 0xdc, 0xbb, 0x93, 0x9c, 0xef, 0xfb, 0xf2,
  172. 0x7d, 0xe7, 0x04, 0x3d, 0x6f, 0x00, 0x9a, 0x35, 0x4b, 0x09, 0xd5, 0xa9, 0x2d, 0xfb, 0xea, 0x3c,
  173. 0x4b, 0x15, 0xd3, 0xd0, 0xa9, 0x9a, 0xe9, 0xb4, 0x26, 0xad, 0x24, 0xbc, 0x11, 0x65, 0xc5, 0x69,
  174. 0xd9, 0x02, 0xe5, 0x2b, 0xce, 0x14, 0x96, 0x0a, 0x0c, 0xc4, 0x87, 0x96, 0x83, 0x09, 0xd5, 0x38,
  175. 0xd0, 0xf1, 0x79, 0x86, 0x03, 0x7d, 0xef, 0xe1, 0xb6, 0x17, 0x6a, 0x68, 0x5b, 0x10, 0x69, 0xad,
  176. 0xb8, 0x61, 0x8a, 0x13, 0xab, 0xb8, 0x77, 0xcf, 0xc1, 0x87, 0x53, 0xd5, 0xad, 0xd2, 0x2f, 0x8a,
  177. 0x48, 0xc9, 0x94, 0x76, 0xfd, 0x7d, 0x2f, 0x27, 0x79, 0x4a, 0x84, 0x00, 0x43, 0x0c, 0x07, 0xe1,
  178. 0xba, 0xf7, 0x7f, 0x46, 0xe8, 0xce, 0x2b, 0xe7, 0x77, 0xca, 0xe9, 0x3b, 0xe7, 0x36, 0x7e, 0x80,
  179. 0x6e, 0x7a, 0x47, 0xa5, 0x20, 0x2d, 0x4b, 0x46, 0x07, 0xa3, 0xe3, 0xdd, 0xf9, 0xc4, 0x5f, 0xbe,
  180. 0x27, 0x2d, 0x8b, 0x9f, 0xa2, 0x1b, 0x3e, 0x6b, 0x12, 0x1d, 0x8c, 0x8e, 0xc7, 0x8f, 0xf6, 0x5d,
  181. 0x28, 0xec, 0xdd, 0xe0, 0x0f, 0x46, 0x71, 0xd1, 0x2c, 0xc8, 0xba, 0x63, 0xf3, 0x80, 0x8e, 0x5f,
  182. 0xa0, 0x89, 0x8b, 0x01, 0xa2, 0xe4, 0x34, 0xd9, 0x19, 0xd8, 0x77, 0xff, 0x62, 0xcf, 0x84, 0x79,
  183. 0xf2, 0xd8, 0x92, 0xc7, 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, 0xf4, 0x46, 0x03, 0x00, 0x00,
  195. }