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.
 
 
 

360 lines
14 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/ads/googleads/v0/resources/shared_criterion.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 common "google.golang.org/genproto/googleapis/ads/googleads/v0/common"
  9. import enums "google.golang.org/genproto/googleapis/ads/googleads/v0/enums"
  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. // A criterion belonging to a shared set.
  20. type SharedCriterion struct {
  21. // The resource name of the shared criterion.
  22. // Shared set resource names have the form:
  23. //
  24. // `customers/{customer_id}/sharedCriteria/{shared_set_id}_{criterion_id}`
  25. ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
  26. // The shared set to which the shared criterion belongs.
  27. SharedSet *wrappers.StringValue `protobuf:"bytes,2,opt,name=shared_set,json=sharedSet,proto3" json:"shared_set,omitempty"`
  28. // The ID of the criterion.
  29. //
  30. // This field is ignored for mutates.
  31. CriterionId *wrappers.Int64Value `protobuf:"bytes,26,opt,name=criterion_id,json=criterionId,proto3" json:"criterion_id,omitempty"`
  32. // The type of the criterion.
  33. Type enums.CriterionTypeEnum_CriterionType `protobuf:"varint,4,opt,name=type,proto3,enum=google.ads.googleads.v0.enums.CriterionTypeEnum_CriterionType" json:"type,omitempty"`
  34. // The criterion.
  35. //
  36. // Exactly one must be set.
  37. //
  38. // Types that are valid to be assigned to Criterion:
  39. // *SharedCriterion_Keyword
  40. // *SharedCriterion_YoutubeVideo
  41. // *SharedCriterion_YoutubeChannel
  42. // *SharedCriterion_Placement
  43. // *SharedCriterion_MobileAppCategory
  44. Criterion isSharedCriterion_Criterion `protobuf_oneof:"criterion"`
  45. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  46. XXX_unrecognized []byte `json:"-"`
  47. XXX_sizecache int32 `json:"-"`
  48. }
  49. func (m *SharedCriterion) Reset() { *m = SharedCriterion{} }
  50. func (m *SharedCriterion) String() string { return proto.CompactTextString(m) }
  51. func (*SharedCriterion) ProtoMessage() {}
  52. func (*SharedCriterion) Descriptor() ([]byte, []int) {
  53. return fileDescriptor_shared_criterion_607e03433279a6ca, []int{0}
  54. }
  55. func (m *SharedCriterion) XXX_Unmarshal(b []byte) error {
  56. return xxx_messageInfo_SharedCriterion.Unmarshal(m, b)
  57. }
  58. func (m *SharedCriterion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  59. return xxx_messageInfo_SharedCriterion.Marshal(b, m, deterministic)
  60. }
  61. func (dst *SharedCriterion) XXX_Merge(src proto.Message) {
  62. xxx_messageInfo_SharedCriterion.Merge(dst, src)
  63. }
  64. func (m *SharedCriterion) XXX_Size() int {
  65. return xxx_messageInfo_SharedCriterion.Size(m)
  66. }
  67. func (m *SharedCriterion) XXX_DiscardUnknown() {
  68. xxx_messageInfo_SharedCriterion.DiscardUnknown(m)
  69. }
  70. var xxx_messageInfo_SharedCriterion proto.InternalMessageInfo
  71. func (m *SharedCriterion) GetResourceName() string {
  72. if m != nil {
  73. return m.ResourceName
  74. }
  75. return ""
  76. }
  77. func (m *SharedCriterion) GetSharedSet() *wrappers.StringValue {
  78. if m != nil {
  79. return m.SharedSet
  80. }
  81. return nil
  82. }
  83. func (m *SharedCriterion) GetCriterionId() *wrappers.Int64Value {
  84. if m != nil {
  85. return m.CriterionId
  86. }
  87. return nil
  88. }
  89. func (m *SharedCriterion) GetType() enums.CriterionTypeEnum_CriterionType {
  90. if m != nil {
  91. return m.Type
  92. }
  93. return enums.CriterionTypeEnum_UNSPECIFIED
  94. }
  95. type isSharedCriterion_Criterion interface {
  96. isSharedCriterion_Criterion()
  97. }
  98. type SharedCriterion_Keyword struct {
  99. Keyword *common.KeywordInfo `protobuf:"bytes,3,opt,name=keyword,proto3,oneof"`
  100. }
  101. type SharedCriterion_YoutubeVideo struct {
  102. YoutubeVideo *common.YouTubeVideoInfo `protobuf:"bytes,5,opt,name=youtube_video,json=youtubeVideo,proto3,oneof"`
  103. }
  104. type SharedCriterion_YoutubeChannel struct {
  105. YoutubeChannel *common.YouTubeChannelInfo `protobuf:"bytes,6,opt,name=youtube_channel,json=youtubeChannel,proto3,oneof"`
  106. }
  107. type SharedCriterion_Placement struct {
  108. Placement *common.PlacementInfo `protobuf:"bytes,7,opt,name=placement,proto3,oneof"`
  109. }
  110. type SharedCriterion_MobileAppCategory struct {
  111. MobileAppCategory *common.MobileAppCategoryInfo `protobuf:"bytes,8,opt,name=mobile_app_category,json=mobileAppCategory,proto3,oneof"`
  112. }
  113. func (*SharedCriterion_Keyword) isSharedCriterion_Criterion() {}
  114. func (*SharedCriterion_YoutubeVideo) isSharedCriterion_Criterion() {}
  115. func (*SharedCriterion_YoutubeChannel) isSharedCriterion_Criterion() {}
  116. func (*SharedCriterion_Placement) isSharedCriterion_Criterion() {}
  117. func (*SharedCriterion_MobileAppCategory) isSharedCriterion_Criterion() {}
  118. func (m *SharedCriterion) GetCriterion() isSharedCriterion_Criterion {
  119. if m != nil {
  120. return m.Criterion
  121. }
  122. return nil
  123. }
  124. func (m *SharedCriterion) GetKeyword() *common.KeywordInfo {
  125. if x, ok := m.GetCriterion().(*SharedCriterion_Keyword); ok {
  126. return x.Keyword
  127. }
  128. return nil
  129. }
  130. func (m *SharedCriterion) GetYoutubeVideo() *common.YouTubeVideoInfo {
  131. if x, ok := m.GetCriterion().(*SharedCriterion_YoutubeVideo); ok {
  132. return x.YoutubeVideo
  133. }
  134. return nil
  135. }
  136. func (m *SharedCriterion) GetYoutubeChannel() *common.YouTubeChannelInfo {
  137. if x, ok := m.GetCriterion().(*SharedCriterion_YoutubeChannel); ok {
  138. return x.YoutubeChannel
  139. }
  140. return nil
  141. }
  142. func (m *SharedCriterion) GetPlacement() *common.PlacementInfo {
  143. if x, ok := m.GetCriterion().(*SharedCriterion_Placement); ok {
  144. return x.Placement
  145. }
  146. return nil
  147. }
  148. func (m *SharedCriterion) GetMobileAppCategory() *common.MobileAppCategoryInfo {
  149. if x, ok := m.GetCriterion().(*SharedCriterion_MobileAppCategory); ok {
  150. return x.MobileAppCategory
  151. }
  152. return nil
  153. }
  154. // XXX_OneofFuncs is for the internal use of the proto package.
  155. func (*SharedCriterion) 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{}) {
  156. return _SharedCriterion_OneofMarshaler, _SharedCriterion_OneofUnmarshaler, _SharedCriterion_OneofSizer, []interface{}{
  157. (*SharedCriterion_Keyword)(nil),
  158. (*SharedCriterion_YoutubeVideo)(nil),
  159. (*SharedCriterion_YoutubeChannel)(nil),
  160. (*SharedCriterion_Placement)(nil),
  161. (*SharedCriterion_MobileAppCategory)(nil),
  162. }
  163. }
  164. func _SharedCriterion_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  165. m := msg.(*SharedCriterion)
  166. // criterion
  167. switch x := m.Criterion.(type) {
  168. case *SharedCriterion_Keyword:
  169. b.EncodeVarint(3<<3 | proto.WireBytes)
  170. if err := b.EncodeMessage(x.Keyword); err != nil {
  171. return err
  172. }
  173. case *SharedCriterion_YoutubeVideo:
  174. b.EncodeVarint(5<<3 | proto.WireBytes)
  175. if err := b.EncodeMessage(x.YoutubeVideo); err != nil {
  176. return err
  177. }
  178. case *SharedCriterion_YoutubeChannel:
  179. b.EncodeVarint(6<<3 | proto.WireBytes)
  180. if err := b.EncodeMessage(x.YoutubeChannel); err != nil {
  181. return err
  182. }
  183. case *SharedCriterion_Placement:
  184. b.EncodeVarint(7<<3 | proto.WireBytes)
  185. if err := b.EncodeMessage(x.Placement); err != nil {
  186. return err
  187. }
  188. case *SharedCriterion_MobileAppCategory:
  189. b.EncodeVarint(8<<3 | proto.WireBytes)
  190. if err := b.EncodeMessage(x.MobileAppCategory); err != nil {
  191. return err
  192. }
  193. case nil:
  194. default:
  195. return fmt.Errorf("SharedCriterion.Criterion has unexpected type %T", x)
  196. }
  197. return nil
  198. }
  199. func _SharedCriterion_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  200. m := msg.(*SharedCriterion)
  201. switch tag {
  202. case 3: // criterion.keyword
  203. if wire != proto.WireBytes {
  204. return true, proto.ErrInternalBadWireType
  205. }
  206. msg := new(common.KeywordInfo)
  207. err := b.DecodeMessage(msg)
  208. m.Criterion = &SharedCriterion_Keyword{msg}
  209. return true, err
  210. case 5: // criterion.youtube_video
  211. if wire != proto.WireBytes {
  212. return true, proto.ErrInternalBadWireType
  213. }
  214. msg := new(common.YouTubeVideoInfo)
  215. err := b.DecodeMessage(msg)
  216. m.Criterion = &SharedCriterion_YoutubeVideo{msg}
  217. return true, err
  218. case 6: // criterion.youtube_channel
  219. if wire != proto.WireBytes {
  220. return true, proto.ErrInternalBadWireType
  221. }
  222. msg := new(common.YouTubeChannelInfo)
  223. err := b.DecodeMessage(msg)
  224. m.Criterion = &SharedCriterion_YoutubeChannel{msg}
  225. return true, err
  226. case 7: // criterion.placement
  227. if wire != proto.WireBytes {
  228. return true, proto.ErrInternalBadWireType
  229. }
  230. msg := new(common.PlacementInfo)
  231. err := b.DecodeMessage(msg)
  232. m.Criterion = &SharedCriterion_Placement{msg}
  233. return true, err
  234. case 8: // criterion.mobile_app_category
  235. if wire != proto.WireBytes {
  236. return true, proto.ErrInternalBadWireType
  237. }
  238. msg := new(common.MobileAppCategoryInfo)
  239. err := b.DecodeMessage(msg)
  240. m.Criterion = &SharedCriterion_MobileAppCategory{msg}
  241. return true, err
  242. default:
  243. return false, nil
  244. }
  245. }
  246. func _SharedCriterion_OneofSizer(msg proto.Message) (n int) {
  247. m := msg.(*SharedCriterion)
  248. // criterion
  249. switch x := m.Criterion.(type) {
  250. case *SharedCriterion_Keyword:
  251. s := proto.Size(x.Keyword)
  252. n += 1 // tag and wire
  253. n += proto.SizeVarint(uint64(s))
  254. n += s
  255. case *SharedCriterion_YoutubeVideo:
  256. s := proto.Size(x.YoutubeVideo)
  257. n += 1 // tag and wire
  258. n += proto.SizeVarint(uint64(s))
  259. n += s
  260. case *SharedCriterion_YoutubeChannel:
  261. s := proto.Size(x.YoutubeChannel)
  262. n += 1 // tag and wire
  263. n += proto.SizeVarint(uint64(s))
  264. n += s
  265. case *SharedCriterion_Placement:
  266. s := proto.Size(x.Placement)
  267. n += 1 // tag and wire
  268. n += proto.SizeVarint(uint64(s))
  269. n += s
  270. case *SharedCriterion_MobileAppCategory:
  271. s := proto.Size(x.MobileAppCategory)
  272. n += 1 // tag and wire
  273. n += proto.SizeVarint(uint64(s))
  274. n += s
  275. case nil:
  276. default:
  277. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  278. }
  279. return n
  280. }
  281. func init() {
  282. proto.RegisterType((*SharedCriterion)(nil), "google.ads.googleads.v0.resources.SharedCriterion")
  283. }
  284. func init() {
  285. proto.RegisterFile("google/ads/googleads/v0/resources/shared_criterion.proto", fileDescriptor_shared_criterion_607e03433279a6ca)
  286. }
  287. var fileDescriptor_shared_criterion_607e03433279a6ca = []byte{
  288. // 559 bytes of a gzipped FileDescriptorProto
  289. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xdf, 0x8a, 0xd3, 0x4e,
  290. 0x14, 0xc7, 0x7f, 0xed, 0xfe, 0xfb, 0x75, 0xda, 0xdd, 0xc5, 0xe8, 0x45, 0xa8, 0x22, 0x5d, 0x65,
  291. 0xa1, 0x20, 0x3b, 0x09, 0xf5, 0x0f, 0x92, 0x85, 0x85, 0xb4, 0x48, 0xad, 0xb2, 0x52, 0xd2, 0xa5,
  292. 0xa2, 0x54, 0xc2, 0x34, 0x39, 0x9b, 0x0d, 0x26, 0x33, 0x61, 0x26, 0xe9, 0xd2, 0x4b, 0x5f, 0xc5,
  293. 0x4b, 0x1f, 0x45, 0xf0, 0x45, 0x7c, 0x0a, 0xe9, 0xcc, 0x24, 0x8b, 0x2b, 0xb5, 0xde, 0x9d, 0xce,
  294. 0x7c, 0x3f, 0x9f, 0x9c, 0x93, 0xce, 0x04, 0xbd, 0x8c, 0x18, 0x8b, 0x12, 0xb0, 0x48, 0x28, 0x2c,
  295. 0x55, 0xae, 0xaa, 0x85, 0x6d, 0x71, 0x10, 0xac, 0xe0, 0x01, 0x08, 0x4b, 0x5c, 0x11, 0x0e, 0xa1,
  296. 0x1f, 0xf0, 0x38, 0x07, 0x1e, 0x33, 0x8a, 0x33, 0xce, 0x72, 0x66, 0x1c, 0xa9, 0x38, 0x26, 0xa1,
  297. 0xc0, 0x15, 0x89, 0x17, 0x36, 0xae, 0xc8, 0xf6, 0xc9, 0x3a, 0x79, 0xc0, 0xd2, 0x94, 0x51, 0x4b,
  298. 0x2b, 0x89, 0x32, 0xb6, 0x7b, 0xeb, 0xe2, 0x40, 0x8b, 0x54, 0x58, 0x55, 0x03, 0x7e, 0xbe, 0xcc,
  299. 0x40, 0x33, 0x0f, 0x35, 0x23, 0x7f, 0xcd, 0x8b, 0x4b, 0xeb, 0x9a, 0x93, 0x2c, 0x03, 0x2e, 0xd4,
  300. 0xfe, 0xa3, 0x1f, 0x3b, 0xe8, 0x70, 0x22, 0x07, 0x18, 0x94, 0xb8, 0xf1, 0x18, 0xed, 0x97, 0x3d,
  301. 0xfa, 0x94, 0xa4, 0x60, 0xd6, 0x3a, 0xb5, 0x6e, 0xc3, 0x6b, 0x95, 0x8b, 0xef, 0x48, 0x0a, 0xc6,
  302. 0x29, 0x42, 0x7a, 0x70, 0x01, 0xb9, 0x59, 0xef, 0xd4, 0xba, 0xcd, 0xde, 0x03, 0x3d, 0x28, 0x2e,
  303. 0x9f, 0x86, 0x27, 0x39, 0x8f, 0x69, 0x34, 0x25, 0x49, 0x01, 0x5e, 0x43, 0xe5, 0x27, 0x90, 0x1b,
  304. 0x67, 0xa8, 0x75, 0xd3, 0x6d, 0x1c, 0x9a, 0x6d, 0x89, 0xdf, 0xff, 0x03, 0x1f, 0xd1, 0xfc, 0xc5,
  305. 0x33, 0x45, 0x37, 0x2b, 0x60, 0x14, 0x1a, 0x1e, 0xda, 0x5e, 0xcd, 0x68, 0x6e, 0x77, 0x6a, 0xdd,
  306. 0x83, 0xde, 0x19, 0x5e, 0xf7, 0xaa, 0xe5, 0x8b, 0xc1, 0xd5, 0x64, 0x17, 0xcb, 0x0c, 0x5e, 0xd1,
  307. 0x22, 0xfd, 0x7d, 0xc5, 0x93, 0x2e, 0x63, 0x88, 0xf6, 0x3e, 0xc3, 0xf2, 0x9a, 0xf1, 0xd0, 0xdc,
  308. 0x92, 0xed, 0x3c, 0x59, 0xab, 0x55, 0x7f, 0x0f, 0x7e, 0xab, 0xe2, 0x23, 0x7a, 0xc9, 0x5e, 0xff,
  309. 0xe7, 0x95, 0xb4, 0xf1, 0x1e, 0xed, 0x2f, 0x59, 0x91, 0x17, 0x73, 0xf0, 0x17, 0x71, 0x08, 0xcc,
  310. 0xdc, 0x91, 0x3a, 0x7b, 0x93, 0xee, 0x03, 0x2b, 0x2e, 0x8a, 0x39, 0x4c, 0x57, 0x8c, 0x76, 0xb6,
  311. 0xb4, 0x48, 0xae, 0x19, 0x9f, 0xd0, 0x61, 0x29, 0x0e, 0xae, 0x08, 0xa5, 0x90, 0x98, 0xbb, 0x52,
  312. 0xdd, 0xfb, 0x47, 0xf5, 0x40, 0x51, 0x5a, 0x7e, 0xa0, 0x65, 0x7a, 0xd5, 0x38, 0x47, 0x8d, 0x2c,
  313. 0x21, 0x01, 0xa4, 0x40, 0x73, 0x73, 0x4f, 0x8a, 0x4f, 0x36, 0x89, 0xc7, 0x25, 0xa0, 0x9d, 0x37,
  314. 0x06, 0x23, 0x42, 0x77, 0x53, 0x36, 0x8f, 0x13, 0xf0, 0x49, 0x96, 0xf9, 0x01, 0xc9, 0x21, 0x62,
  315. 0x7c, 0x69, 0xfe, 0x2f, 0xc5, 0xcf, 0x37, 0x89, 0xcf, 0x25, 0xea, 0x66, 0xd9, 0x40, 0x83, 0xfa,
  316. 0x01, 0x77, 0xd2, 0xdb, 0x1b, 0xfd, 0x26, 0x6a, 0x54, 0x67, 0xa3, 0xff, 0xa5, 0x8e, 0x8e, 0x03,
  317. 0x96, 0xe2, 0x8d, 0x97, 0xaf, 0x7f, 0xef, 0xd6, 0xb1, 0x1f, 0xaf, 0x0e, 0xdd, 0xb8, 0xf6, 0xf1,
  318. 0x8d, 0x46, 0x23, 0x96, 0x10, 0x1a, 0x61, 0xc6, 0x23, 0x2b, 0x02, 0x2a, 0x8f, 0x64, 0x79, 0xeb,
  319. 0xb2, 0x58, 0xfc, 0xe5, 0x83, 0x70, 0x5a, 0x55, 0x5f, 0xeb, 0x5b, 0x43, 0xd7, 0xfd, 0x56, 0x3f,
  320. 0x1a, 0x2a, 0xa5, 0x1b, 0x0a, 0xac, 0xca, 0x55, 0x35, 0xb5, 0xb1, 0x57, 0x26, 0xbf, 0x97, 0x99,
  321. 0x99, 0x1b, 0x8a, 0x59, 0x95, 0x99, 0x4d, 0xed, 0x59, 0x95, 0xf9, 0x59, 0x3f, 0x56, 0x1b, 0x8e,
  322. 0xe3, 0x86, 0xc2, 0x71, 0xaa, 0x94, 0xe3, 0x4c, 0x6d, 0xc7, 0xa9, 0x72, 0xf3, 0x5d, 0xd9, 0xec,
  323. 0xd3, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xbe, 0x05, 0xb8, 0xd3, 0xbc, 0x04, 0x00, 0x00,
  324. }