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.
 
 
 

1100 lines
47 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/ads/googleads/v0/common/policy.proto
  3. package common // import "google.golang.org/genproto/googleapis/ads/googleads/v0/common"
  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. // Key of the violation. The key is used for referring to a violation
  19. // when filing an exemption request.
  20. type PolicyViolationKey struct {
  21. // Unique ID of the violated policy.
  22. PolicyName *wrappers.StringValue `protobuf:"bytes,1,opt,name=policy_name,json=policyName,proto3" json:"policy_name,omitempty"`
  23. // The text that violates the policy if specified.
  24. // Otherwise, refers to the policy in general
  25. // (e.g., when requesting to be exempt from the whole policy).
  26. // If not specified for criterion exemptions, the whole policy is implied.
  27. // Must be specified for ad exemptions.
  28. ViolatingText *wrappers.StringValue `protobuf:"bytes,2,opt,name=violating_text,json=violatingText,proto3" json:"violating_text,omitempty"`
  29. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  30. XXX_unrecognized []byte `json:"-"`
  31. XXX_sizecache int32 `json:"-"`
  32. }
  33. func (m *PolicyViolationKey) Reset() { *m = PolicyViolationKey{} }
  34. func (m *PolicyViolationKey) String() string { return proto.CompactTextString(m) }
  35. func (*PolicyViolationKey) ProtoMessage() {}
  36. func (*PolicyViolationKey) Descriptor() ([]byte, []int) {
  37. return fileDescriptor_policy_74e29921f4fc9bc3, []int{0}
  38. }
  39. func (m *PolicyViolationKey) XXX_Unmarshal(b []byte) error {
  40. return xxx_messageInfo_PolicyViolationKey.Unmarshal(m, b)
  41. }
  42. func (m *PolicyViolationKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  43. return xxx_messageInfo_PolicyViolationKey.Marshal(b, m, deterministic)
  44. }
  45. func (dst *PolicyViolationKey) XXX_Merge(src proto.Message) {
  46. xxx_messageInfo_PolicyViolationKey.Merge(dst, src)
  47. }
  48. func (m *PolicyViolationKey) XXX_Size() int {
  49. return xxx_messageInfo_PolicyViolationKey.Size(m)
  50. }
  51. func (m *PolicyViolationKey) XXX_DiscardUnknown() {
  52. xxx_messageInfo_PolicyViolationKey.DiscardUnknown(m)
  53. }
  54. var xxx_messageInfo_PolicyViolationKey proto.InternalMessageInfo
  55. func (m *PolicyViolationKey) GetPolicyName() *wrappers.StringValue {
  56. if m != nil {
  57. return m.PolicyName
  58. }
  59. return nil
  60. }
  61. func (m *PolicyViolationKey) GetViolatingText() *wrappers.StringValue {
  62. if m != nil {
  63. return m.ViolatingText
  64. }
  65. return nil
  66. }
  67. // Parameter for controlling how policy checking is done.
  68. type PolicyValidationParameter struct {
  69. // The list of policy topics that should not cause a PolicyFindingError to
  70. // be reported. This field is currently only compatible with Enhanced Text Ad.
  71. // It corresponds to the PolicyTopicEntry.topic field.
  72. //
  73. // Resources violating these policies will be saved, but will not be eligible
  74. // to serve. They may begin serving at a later time due to a change in
  75. // policies, re-review of the resource, or a change in advertiser
  76. // certificates.
  77. IgnorablePolicyTopics []*wrappers.StringValue `protobuf:"bytes,1,rep,name=ignorable_policy_topics,json=ignorablePolicyTopics,proto3" json:"ignorable_policy_topics,omitempty"`
  78. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  79. XXX_unrecognized []byte `json:"-"`
  80. XXX_sizecache int32 `json:"-"`
  81. }
  82. func (m *PolicyValidationParameter) Reset() { *m = PolicyValidationParameter{} }
  83. func (m *PolicyValidationParameter) String() string { return proto.CompactTextString(m) }
  84. func (*PolicyValidationParameter) ProtoMessage() {}
  85. func (*PolicyValidationParameter) Descriptor() ([]byte, []int) {
  86. return fileDescriptor_policy_74e29921f4fc9bc3, []int{1}
  87. }
  88. func (m *PolicyValidationParameter) XXX_Unmarshal(b []byte) error {
  89. return xxx_messageInfo_PolicyValidationParameter.Unmarshal(m, b)
  90. }
  91. func (m *PolicyValidationParameter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  92. return xxx_messageInfo_PolicyValidationParameter.Marshal(b, m, deterministic)
  93. }
  94. func (dst *PolicyValidationParameter) XXX_Merge(src proto.Message) {
  95. xxx_messageInfo_PolicyValidationParameter.Merge(dst, src)
  96. }
  97. func (m *PolicyValidationParameter) XXX_Size() int {
  98. return xxx_messageInfo_PolicyValidationParameter.Size(m)
  99. }
  100. func (m *PolicyValidationParameter) XXX_DiscardUnknown() {
  101. xxx_messageInfo_PolicyValidationParameter.DiscardUnknown(m)
  102. }
  103. var xxx_messageInfo_PolicyValidationParameter proto.InternalMessageInfo
  104. func (m *PolicyValidationParameter) GetIgnorablePolicyTopics() []*wrappers.StringValue {
  105. if m != nil {
  106. return m.IgnorablePolicyTopics
  107. }
  108. return nil
  109. }
  110. // Policy finding attached to a resource (e.g. alcohol policy associated with
  111. // a site that sells alcohol).
  112. //
  113. // Each PolicyTopicEntry has a topic that indicates the specific ads policy
  114. // the entry is about and a type to indicate the effect that the entry will have
  115. // on serving. It may optionally have one or more evidences that indicate the
  116. // reason for the finding. It may also optionally have one or more constraints
  117. // that provide details about how serving may be restricted.
  118. //
  119. // Next tag: 5
  120. type PolicyTopicEntry struct {
  121. // Policy topic this finding refers to. For example, "ALCOHOL",
  122. // "TRADEMARKS_IN_AD_TEXT", or "DESTINATION_NOT_WORKING". The set of possible
  123. // policy topics is not fixed for a particular API version and may change
  124. // at any time.
  125. Topic *wrappers.StringValue `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
  126. // Describes the negative or positive effect this policy will have on serving.
  127. Type enums.PolicyTopicEntryTypeEnum_PolicyTopicEntryType `protobuf:"varint,2,opt,name=type,proto3,enum=google.ads.googleads.v0.enums.PolicyTopicEntryTypeEnum_PolicyTopicEntryType" json:"type,omitempty"`
  128. // Additional information that explains policy finding
  129. // (e.g. the brand name for a trademark finding).
  130. Evidences []*PolicyTopicEvidence `protobuf:"bytes,3,rep,name=evidences,proto3" json:"evidences,omitempty"`
  131. // Indicates how serving of this resource may be affected (e.g. not serving
  132. // in a country).
  133. Constraints []*PolicyTopicConstraint `protobuf:"bytes,4,rep,name=constraints,proto3" json:"constraints,omitempty"`
  134. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  135. XXX_unrecognized []byte `json:"-"`
  136. XXX_sizecache int32 `json:"-"`
  137. }
  138. func (m *PolicyTopicEntry) Reset() { *m = PolicyTopicEntry{} }
  139. func (m *PolicyTopicEntry) String() string { return proto.CompactTextString(m) }
  140. func (*PolicyTopicEntry) ProtoMessage() {}
  141. func (*PolicyTopicEntry) Descriptor() ([]byte, []int) {
  142. return fileDescriptor_policy_74e29921f4fc9bc3, []int{2}
  143. }
  144. func (m *PolicyTopicEntry) XXX_Unmarshal(b []byte) error {
  145. return xxx_messageInfo_PolicyTopicEntry.Unmarshal(m, b)
  146. }
  147. func (m *PolicyTopicEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  148. return xxx_messageInfo_PolicyTopicEntry.Marshal(b, m, deterministic)
  149. }
  150. func (dst *PolicyTopicEntry) XXX_Merge(src proto.Message) {
  151. xxx_messageInfo_PolicyTopicEntry.Merge(dst, src)
  152. }
  153. func (m *PolicyTopicEntry) XXX_Size() int {
  154. return xxx_messageInfo_PolicyTopicEntry.Size(m)
  155. }
  156. func (m *PolicyTopicEntry) XXX_DiscardUnknown() {
  157. xxx_messageInfo_PolicyTopicEntry.DiscardUnknown(m)
  158. }
  159. var xxx_messageInfo_PolicyTopicEntry proto.InternalMessageInfo
  160. func (m *PolicyTopicEntry) GetTopic() *wrappers.StringValue {
  161. if m != nil {
  162. return m.Topic
  163. }
  164. return nil
  165. }
  166. func (m *PolicyTopicEntry) GetType() enums.PolicyTopicEntryTypeEnum_PolicyTopicEntryType {
  167. if m != nil {
  168. return m.Type
  169. }
  170. return enums.PolicyTopicEntryTypeEnum_UNSPECIFIED
  171. }
  172. func (m *PolicyTopicEntry) GetEvidences() []*PolicyTopicEvidence {
  173. if m != nil {
  174. return m.Evidences
  175. }
  176. return nil
  177. }
  178. func (m *PolicyTopicEntry) GetConstraints() []*PolicyTopicConstraint {
  179. if m != nil {
  180. return m.Constraints
  181. }
  182. return nil
  183. }
  184. // Additional information that explains a policy finding.
  185. //
  186. // Next Id: 8
  187. type PolicyTopicEvidence struct {
  188. // Specific evidence information depending on the evidence type.
  189. //
  190. // Types that are valid to be assigned to Value:
  191. // *PolicyTopicEvidence_HttpCode
  192. // *PolicyTopicEvidence_WebsiteList_
  193. // *PolicyTopicEvidence_TextList_
  194. // *PolicyTopicEvidence_LanguageCode
  195. // *PolicyTopicEvidence_DestinationTextList_
  196. // *PolicyTopicEvidence_DestinationMismatch_
  197. Value isPolicyTopicEvidence_Value `protobuf_oneof:"value"`
  198. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  199. XXX_unrecognized []byte `json:"-"`
  200. XXX_sizecache int32 `json:"-"`
  201. }
  202. func (m *PolicyTopicEvidence) Reset() { *m = PolicyTopicEvidence{} }
  203. func (m *PolicyTopicEvidence) String() string { return proto.CompactTextString(m) }
  204. func (*PolicyTopicEvidence) ProtoMessage() {}
  205. func (*PolicyTopicEvidence) Descriptor() ([]byte, []int) {
  206. return fileDescriptor_policy_74e29921f4fc9bc3, []int{3}
  207. }
  208. func (m *PolicyTopicEvidence) XXX_Unmarshal(b []byte) error {
  209. return xxx_messageInfo_PolicyTopicEvidence.Unmarshal(m, b)
  210. }
  211. func (m *PolicyTopicEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  212. return xxx_messageInfo_PolicyTopicEvidence.Marshal(b, m, deterministic)
  213. }
  214. func (dst *PolicyTopicEvidence) XXX_Merge(src proto.Message) {
  215. xxx_messageInfo_PolicyTopicEvidence.Merge(dst, src)
  216. }
  217. func (m *PolicyTopicEvidence) XXX_Size() int {
  218. return xxx_messageInfo_PolicyTopicEvidence.Size(m)
  219. }
  220. func (m *PolicyTopicEvidence) XXX_DiscardUnknown() {
  221. xxx_messageInfo_PolicyTopicEvidence.DiscardUnknown(m)
  222. }
  223. var xxx_messageInfo_PolicyTopicEvidence proto.InternalMessageInfo
  224. type isPolicyTopicEvidence_Value interface {
  225. isPolicyTopicEvidence_Value()
  226. }
  227. type PolicyTopicEvidence_HttpCode struct {
  228. HttpCode *wrappers.Int32Value `protobuf:"bytes,2,opt,name=http_code,json=httpCode,proto3,oneof"`
  229. }
  230. type PolicyTopicEvidence_WebsiteList_ struct {
  231. WebsiteList *PolicyTopicEvidence_WebsiteList `protobuf:"bytes,3,opt,name=website_list,json=websiteList,proto3,oneof"`
  232. }
  233. type PolicyTopicEvidence_TextList_ struct {
  234. TextList *PolicyTopicEvidence_TextList `protobuf:"bytes,4,opt,name=text_list,json=textList,proto3,oneof"`
  235. }
  236. type PolicyTopicEvidence_LanguageCode struct {
  237. LanguageCode *wrappers.StringValue `protobuf:"bytes,5,opt,name=language_code,json=languageCode,proto3,oneof"`
  238. }
  239. type PolicyTopicEvidence_DestinationTextList_ struct {
  240. DestinationTextList *PolicyTopicEvidence_DestinationTextList `protobuf:"bytes,6,opt,name=destination_text_list,json=destinationTextList,proto3,oneof"`
  241. }
  242. type PolicyTopicEvidence_DestinationMismatch_ struct {
  243. DestinationMismatch *PolicyTopicEvidence_DestinationMismatch `protobuf:"bytes,7,opt,name=destination_mismatch,json=destinationMismatch,proto3,oneof"`
  244. }
  245. func (*PolicyTopicEvidence_HttpCode) isPolicyTopicEvidence_Value() {}
  246. func (*PolicyTopicEvidence_WebsiteList_) isPolicyTopicEvidence_Value() {}
  247. func (*PolicyTopicEvidence_TextList_) isPolicyTopicEvidence_Value() {}
  248. func (*PolicyTopicEvidence_LanguageCode) isPolicyTopicEvidence_Value() {}
  249. func (*PolicyTopicEvidence_DestinationTextList_) isPolicyTopicEvidence_Value() {}
  250. func (*PolicyTopicEvidence_DestinationMismatch_) isPolicyTopicEvidence_Value() {}
  251. func (m *PolicyTopicEvidence) GetValue() isPolicyTopicEvidence_Value {
  252. if m != nil {
  253. return m.Value
  254. }
  255. return nil
  256. }
  257. func (m *PolicyTopicEvidence) GetHttpCode() *wrappers.Int32Value {
  258. if x, ok := m.GetValue().(*PolicyTopicEvidence_HttpCode); ok {
  259. return x.HttpCode
  260. }
  261. return nil
  262. }
  263. func (m *PolicyTopicEvidence) GetWebsiteList() *PolicyTopicEvidence_WebsiteList {
  264. if x, ok := m.GetValue().(*PolicyTopicEvidence_WebsiteList_); ok {
  265. return x.WebsiteList
  266. }
  267. return nil
  268. }
  269. func (m *PolicyTopicEvidence) GetTextList() *PolicyTopicEvidence_TextList {
  270. if x, ok := m.GetValue().(*PolicyTopicEvidence_TextList_); ok {
  271. return x.TextList
  272. }
  273. return nil
  274. }
  275. func (m *PolicyTopicEvidence) GetLanguageCode() *wrappers.StringValue {
  276. if x, ok := m.GetValue().(*PolicyTopicEvidence_LanguageCode); ok {
  277. return x.LanguageCode
  278. }
  279. return nil
  280. }
  281. func (m *PolicyTopicEvidence) GetDestinationTextList() *PolicyTopicEvidence_DestinationTextList {
  282. if x, ok := m.GetValue().(*PolicyTopicEvidence_DestinationTextList_); ok {
  283. return x.DestinationTextList
  284. }
  285. return nil
  286. }
  287. func (m *PolicyTopicEvidence) GetDestinationMismatch() *PolicyTopicEvidence_DestinationMismatch {
  288. if x, ok := m.GetValue().(*PolicyTopicEvidence_DestinationMismatch_); ok {
  289. return x.DestinationMismatch
  290. }
  291. return nil
  292. }
  293. // XXX_OneofFuncs is for the internal use of the proto package.
  294. func (*PolicyTopicEvidence) 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{}) {
  295. return _PolicyTopicEvidence_OneofMarshaler, _PolicyTopicEvidence_OneofUnmarshaler, _PolicyTopicEvidence_OneofSizer, []interface{}{
  296. (*PolicyTopicEvidence_HttpCode)(nil),
  297. (*PolicyTopicEvidence_WebsiteList_)(nil),
  298. (*PolicyTopicEvidence_TextList_)(nil),
  299. (*PolicyTopicEvidence_LanguageCode)(nil),
  300. (*PolicyTopicEvidence_DestinationTextList_)(nil),
  301. (*PolicyTopicEvidence_DestinationMismatch_)(nil),
  302. }
  303. }
  304. func _PolicyTopicEvidence_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  305. m := msg.(*PolicyTopicEvidence)
  306. // value
  307. switch x := m.Value.(type) {
  308. case *PolicyTopicEvidence_HttpCode:
  309. b.EncodeVarint(2<<3 | proto.WireBytes)
  310. if err := b.EncodeMessage(x.HttpCode); err != nil {
  311. return err
  312. }
  313. case *PolicyTopicEvidence_WebsiteList_:
  314. b.EncodeVarint(3<<3 | proto.WireBytes)
  315. if err := b.EncodeMessage(x.WebsiteList); err != nil {
  316. return err
  317. }
  318. case *PolicyTopicEvidence_TextList_:
  319. b.EncodeVarint(4<<3 | proto.WireBytes)
  320. if err := b.EncodeMessage(x.TextList); err != nil {
  321. return err
  322. }
  323. case *PolicyTopicEvidence_LanguageCode:
  324. b.EncodeVarint(5<<3 | proto.WireBytes)
  325. if err := b.EncodeMessage(x.LanguageCode); err != nil {
  326. return err
  327. }
  328. case *PolicyTopicEvidence_DestinationTextList_:
  329. b.EncodeVarint(6<<3 | proto.WireBytes)
  330. if err := b.EncodeMessage(x.DestinationTextList); err != nil {
  331. return err
  332. }
  333. case *PolicyTopicEvidence_DestinationMismatch_:
  334. b.EncodeVarint(7<<3 | proto.WireBytes)
  335. if err := b.EncodeMessage(x.DestinationMismatch); err != nil {
  336. return err
  337. }
  338. case nil:
  339. default:
  340. return fmt.Errorf("PolicyTopicEvidence.Value has unexpected type %T", x)
  341. }
  342. return nil
  343. }
  344. func _PolicyTopicEvidence_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  345. m := msg.(*PolicyTopicEvidence)
  346. switch tag {
  347. case 2: // value.http_code
  348. if wire != proto.WireBytes {
  349. return true, proto.ErrInternalBadWireType
  350. }
  351. msg := new(wrappers.Int32Value)
  352. err := b.DecodeMessage(msg)
  353. m.Value = &PolicyTopicEvidence_HttpCode{msg}
  354. return true, err
  355. case 3: // value.website_list
  356. if wire != proto.WireBytes {
  357. return true, proto.ErrInternalBadWireType
  358. }
  359. msg := new(PolicyTopicEvidence_WebsiteList)
  360. err := b.DecodeMessage(msg)
  361. m.Value = &PolicyTopicEvidence_WebsiteList_{msg}
  362. return true, err
  363. case 4: // value.text_list
  364. if wire != proto.WireBytes {
  365. return true, proto.ErrInternalBadWireType
  366. }
  367. msg := new(PolicyTopicEvidence_TextList)
  368. err := b.DecodeMessage(msg)
  369. m.Value = &PolicyTopicEvidence_TextList_{msg}
  370. return true, err
  371. case 5: // value.language_code
  372. if wire != proto.WireBytes {
  373. return true, proto.ErrInternalBadWireType
  374. }
  375. msg := new(wrappers.StringValue)
  376. err := b.DecodeMessage(msg)
  377. m.Value = &PolicyTopicEvidence_LanguageCode{msg}
  378. return true, err
  379. case 6: // value.destination_text_list
  380. if wire != proto.WireBytes {
  381. return true, proto.ErrInternalBadWireType
  382. }
  383. msg := new(PolicyTopicEvidence_DestinationTextList)
  384. err := b.DecodeMessage(msg)
  385. m.Value = &PolicyTopicEvidence_DestinationTextList_{msg}
  386. return true, err
  387. case 7: // value.destination_mismatch
  388. if wire != proto.WireBytes {
  389. return true, proto.ErrInternalBadWireType
  390. }
  391. msg := new(PolicyTopicEvidence_DestinationMismatch)
  392. err := b.DecodeMessage(msg)
  393. m.Value = &PolicyTopicEvidence_DestinationMismatch_{msg}
  394. return true, err
  395. default:
  396. return false, nil
  397. }
  398. }
  399. func _PolicyTopicEvidence_OneofSizer(msg proto.Message) (n int) {
  400. m := msg.(*PolicyTopicEvidence)
  401. // value
  402. switch x := m.Value.(type) {
  403. case *PolicyTopicEvidence_HttpCode:
  404. s := proto.Size(x.HttpCode)
  405. n += 1 // tag and wire
  406. n += proto.SizeVarint(uint64(s))
  407. n += s
  408. case *PolicyTopicEvidence_WebsiteList_:
  409. s := proto.Size(x.WebsiteList)
  410. n += 1 // tag and wire
  411. n += proto.SizeVarint(uint64(s))
  412. n += s
  413. case *PolicyTopicEvidence_TextList_:
  414. s := proto.Size(x.TextList)
  415. n += 1 // tag and wire
  416. n += proto.SizeVarint(uint64(s))
  417. n += s
  418. case *PolicyTopicEvidence_LanguageCode:
  419. s := proto.Size(x.LanguageCode)
  420. n += 1 // tag and wire
  421. n += proto.SizeVarint(uint64(s))
  422. n += s
  423. case *PolicyTopicEvidence_DestinationTextList_:
  424. s := proto.Size(x.DestinationTextList)
  425. n += 1 // tag and wire
  426. n += proto.SizeVarint(uint64(s))
  427. n += s
  428. case *PolicyTopicEvidence_DestinationMismatch_:
  429. s := proto.Size(x.DestinationMismatch)
  430. n += 1 // tag and wire
  431. n += proto.SizeVarint(uint64(s))
  432. n += s
  433. case nil:
  434. default:
  435. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  436. }
  437. return n
  438. }
  439. // A list of fragments of text that violated a policy.
  440. //
  441. // Next Id: 2
  442. type PolicyTopicEvidence_TextList struct {
  443. // The fragments of text from the resource that caused the policy finding.
  444. Texts []*wrappers.StringValue `protobuf:"bytes,1,rep,name=texts,proto3" json:"texts,omitempty"`
  445. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  446. XXX_unrecognized []byte `json:"-"`
  447. XXX_sizecache int32 `json:"-"`
  448. }
  449. func (m *PolicyTopicEvidence_TextList) Reset() { *m = PolicyTopicEvidence_TextList{} }
  450. func (m *PolicyTopicEvidence_TextList) String() string { return proto.CompactTextString(m) }
  451. func (*PolicyTopicEvidence_TextList) ProtoMessage() {}
  452. func (*PolicyTopicEvidence_TextList) Descriptor() ([]byte, []int) {
  453. return fileDescriptor_policy_74e29921f4fc9bc3, []int{3, 0}
  454. }
  455. func (m *PolicyTopicEvidence_TextList) XXX_Unmarshal(b []byte) error {
  456. return xxx_messageInfo_PolicyTopicEvidence_TextList.Unmarshal(m, b)
  457. }
  458. func (m *PolicyTopicEvidence_TextList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  459. return xxx_messageInfo_PolicyTopicEvidence_TextList.Marshal(b, m, deterministic)
  460. }
  461. func (dst *PolicyTopicEvidence_TextList) XXX_Merge(src proto.Message) {
  462. xxx_messageInfo_PolicyTopicEvidence_TextList.Merge(dst, src)
  463. }
  464. func (m *PolicyTopicEvidence_TextList) XXX_Size() int {
  465. return xxx_messageInfo_PolicyTopicEvidence_TextList.Size(m)
  466. }
  467. func (m *PolicyTopicEvidence_TextList) XXX_DiscardUnknown() {
  468. xxx_messageInfo_PolicyTopicEvidence_TextList.DiscardUnknown(m)
  469. }
  470. var xxx_messageInfo_PolicyTopicEvidence_TextList proto.InternalMessageInfo
  471. func (m *PolicyTopicEvidence_TextList) GetTexts() []*wrappers.StringValue {
  472. if m != nil {
  473. return m.Texts
  474. }
  475. return nil
  476. }
  477. // A list of websites that caused a policy finding. Used for
  478. // ONE_WEBSITE_PER_AD_GROUP policy topic, for example. In case there are more
  479. // than five websites, only the top five (those that appear in resources the
  480. // most) will be listed here.
  481. //
  482. // Next Id: 2
  483. type PolicyTopicEvidence_WebsiteList struct {
  484. // Websites that caused the policy finding.
  485. Websites []*wrappers.StringValue `protobuf:"bytes,1,rep,name=websites,proto3" json:"websites,omitempty"`
  486. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  487. XXX_unrecognized []byte `json:"-"`
  488. XXX_sizecache int32 `json:"-"`
  489. }
  490. func (m *PolicyTopicEvidence_WebsiteList) Reset() { *m = PolicyTopicEvidence_WebsiteList{} }
  491. func (m *PolicyTopicEvidence_WebsiteList) String() string { return proto.CompactTextString(m) }
  492. func (*PolicyTopicEvidence_WebsiteList) ProtoMessage() {}
  493. func (*PolicyTopicEvidence_WebsiteList) Descriptor() ([]byte, []int) {
  494. return fileDescriptor_policy_74e29921f4fc9bc3, []int{3, 1}
  495. }
  496. func (m *PolicyTopicEvidence_WebsiteList) XXX_Unmarshal(b []byte) error {
  497. return xxx_messageInfo_PolicyTopicEvidence_WebsiteList.Unmarshal(m, b)
  498. }
  499. func (m *PolicyTopicEvidence_WebsiteList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  500. return xxx_messageInfo_PolicyTopicEvidence_WebsiteList.Marshal(b, m, deterministic)
  501. }
  502. func (dst *PolicyTopicEvidence_WebsiteList) XXX_Merge(src proto.Message) {
  503. xxx_messageInfo_PolicyTopicEvidence_WebsiteList.Merge(dst, src)
  504. }
  505. func (m *PolicyTopicEvidence_WebsiteList) XXX_Size() int {
  506. return xxx_messageInfo_PolicyTopicEvidence_WebsiteList.Size(m)
  507. }
  508. func (m *PolicyTopicEvidence_WebsiteList) XXX_DiscardUnknown() {
  509. xxx_messageInfo_PolicyTopicEvidence_WebsiteList.DiscardUnknown(m)
  510. }
  511. var xxx_messageInfo_PolicyTopicEvidence_WebsiteList proto.InternalMessageInfo
  512. func (m *PolicyTopicEvidence_WebsiteList) GetWebsites() []*wrappers.StringValue {
  513. if m != nil {
  514. return m.Websites
  515. }
  516. return nil
  517. }
  518. // A list of strings found in a destination page that caused a policy
  519. // finding.
  520. //
  521. // Next Id: 2
  522. type PolicyTopicEvidence_DestinationTextList struct {
  523. // List of text found in the resource's destination page.
  524. DestinationTexts []*wrappers.StringValue `protobuf:"bytes,1,rep,name=destination_texts,json=destinationTexts,proto3" json:"destination_texts,omitempty"`
  525. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  526. XXX_unrecognized []byte `json:"-"`
  527. XXX_sizecache int32 `json:"-"`
  528. }
  529. func (m *PolicyTopicEvidence_DestinationTextList) Reset() {
  530. *m = PolicyTopicEvidence_DestinationTextList{}
  531. }
  532. func (m *PolicyTopicEvidence_DestinationTextList) String() string { return proto.CompactTextString(m) }
  533. func (*PolicyTopicEvidence_DestinationTextList) ProtoMessage() {}
  534. func (*PolicyTopicEvidence_DestinationTextList) Descriptor() ([]byte, []int) {
  535. return fileDescriptor_policy_74e29921f4fc9bc3, []int{3, 2}
  536. }
  537. func (m *PolicyTopicEvidence_DestinationTextList) XXX_Unmarshal(b []byte) error {
  538. return xxx_messageInfo_PolicyTopicEvidence_DestinationTextList.Unmarshal(m, b)
  539. }
  540. func (m *PolicyTopicEvidence_DestinationTextList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  541. return xxx_messageInfo_PolicyTopicEvidence_DestinationTextList.Marshal(b, m, deterministic)
  542. }
  543. func (dst *PolicyTopicEvidence_DestinationTextList) XXX_Merge(src proto.Message) {
  544. xxx_messageInfo_PolicyTopicEvidence_DestinationTextList.Merge(dst, src)
  545. }
  546. func (m *PolicyTopicEvidence_DestinationTextList) XXX_Size() int {
  547. return xxx_messageInfo_PolicyTopicEvidence_DestinationTextList.Size(m)
  548. }
  549. func (m *PolicyTopicEvidence_DestinationTextList) XXX_DiscardUnknown() {
  550. xxx_messageInfo_PolicyTopicEvidence_DestinationTextList.DiscardUnknown(m)
  551. }
  552. var xxx_messageInfo_PolicyTopicEvidence_DestinationTextList proto.InternalMessageInfo
  553. func (m *PolicyTopicEvidence_DestinationTextList) GetDestinationTexts() []*wrappers.StringValue {
  554. if m != nil {
  555. return m.DestinationTexts
  556. }
  557. return nil
  558. }
  559. // Evidence of mismatches between the URLs of a resource.
  560. //
  561. // Next Id: 2
  562. type PolicyTopicEvidence_DestinationMismatch struct {
  563. // The set of URLs that did not match each other.
  564. UrlTypes []enums.PolicyTopicEvidenceDestinationMismatchUrlTypeEnum_PolicyTopicEvidenceDestinationMismatchUrlType `protobuf:"varint,1,rep,packed,name=url_types,json=urlTypes,proto3,enum=google.ads.googleads.v0.enums.PolicyTopicEvidenceDestinationMismatchUrlTypeEnum_PolicyTopicEvidenceDestinationMismatchUrlType" json:"url_types,omitempty"`
  565. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  566. XXX_unrecognized []byte `json:"-"`
  567. XXX_sizecache int32 `json:"-"`
  568. }
  569. func (m *PolicyTopicEvidence_DestinationMismatch) Reset() {
  570. *m = PolicyTopicEvidence_DestinationMismatch{}
  571. }
  572. func (m *PolicyTopicEvidence_DestinationMismatch) String() string { return proto.CompactTextString(m) }
  573. func (*PolicyTopicEvidence_DestinationMismatch) ProtoMessage() {}
  574. func (*PolicyTopicEvidence_DestinationMismatch) Descriptor() ([]byte, []int) {
  575. return fileDescriptor_policy_74e29921f4fc9bc3, []int{3, 3}
  576. }
  577. func (m *PolicyTopicEvidence_DestinationMismatch) XXX_Unmarshal(b []byte) error {
  578. return xxx_messageInfo_PolicyTopicEvidence_DestinationMismatch.Unmarshal(m, b)
  579. }
  580. func (m *PolicyTopicEvidence_DestinationMismatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  581. return xxx_messageInfo_PolicyTopicEvidence_DestinationMismatch.Marshal(b, m, deterministic)
  582. }
  583. func (dst *PolicyTopicEvidence_DestinationMismatch) XXX_Merge(src proto.Message) {
  584. xxx_messageInfo_PolicyTopicEvidence_DestinationMismatch.Merge(dst, src)
  585. }
  586. func (m *PolicyTopicEvidence_DestinationMismatch) XXX_Size() int {
  587. return xxx_messageInfo_PolicyTopicEvidence_DestinationMismatch.Size(m)
  588. }
  589. func (m *PolicyTopicEvidence_DestinationMismatch) XXX_DiscardUnknown() {
  590. xxx_messageInfo_PolicyTopicEvidence_DestinationMismatch.DiscardUnknown(m)
  591. }
  592. var xxx_messageInfo_PolicyTopicEvidence_DestinationMismatch proto.InternalMessageInfo
  593. func (m *PolicyTopicEvidence_DestinationMismatch) GetUrlTypes() []enums.PolicyTopicEvidenceDestinationMismatchUrlTypeEnum_PolicyTopicEvidenceDestinationMismatchUrlType {
  594. if m != nil {
  595. return m.UrlTypes
  596. }
  597. return nil
  598. }
  599. // Describes the effect on serving that a policy topic entry will have.
  600. //
  601. // Next Id: 5
  602. type PolicyTopicConstraint struct {
  603. // Specific information about the constraint.
  604. //
  605. // Types that are valid to be assigned to Value:
  606. // *PolicyTopicConstraint_CountryConstraintList_
  607. // *PolicyTopicConstraint_ResellerConstraint_
  608. // *PolicyTopicConstraint_CertificateMissingInCountryList
  609. // *PolicyTopicConstraint_CertificateDomainMismatchInCountryList
  610. Value isPolicyTopicConstraint_Value `protobuf_oneof:"value"`
  611. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  612. XXX_unrecognized []byte `json:"-"`
  613. XXX_sizecache int32 `json:"-"`
  614. }
  615. func (m *PolicyTopicConstraint) Reset() { *m = PolicyTopicConstraint{} }
  616. func (m *PolicyTopicConstraint) String() string { return proto.CompactTextString(m) }
  617. func (*PolicyTopicConstraint) ProtoMessage() {}
  618. func (*PolicyTopicConstraint) Descriptor() ([]byte, []int) {
  619. return fileDescriptor_policy_74e29921f4fc9bc3, []int{4}
  620. }
  621. func (m *PolicyTopicConstraint) XXX_Unmarshal(b []byte) error {
  622. return xxx_messageInfo_PolicyTopicConstraint.Unmarshal(m, b)
  623. }
  624. func (m *PolicyTopicConstraint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  625. return xxx_messageInfo_PolicyTopicConstraint.Marshal(b, m, deterministic)
  626. }
  627. func (dst *PolicyTopicConstraint) XXX_Merge(src proto.Message) {
  628. xxx_messageInfo_PolicyTopicConstraint.Merge(dst, src)
  629. }
  630. func (m *PolicyTopicConstraint) XXX_Size() int {
  631. return xxx_messageInfo_PolicyTopicConstraint.Size(m)
  632. }
  633. func (m *PolicyTopicConstraint) XXX_DiscardUnknown() {
  634. xxx_messageInfo_PolicyTopicConstraint.DiscardUnknown(m)
  635. }
  636. var xxx_messageInfo_PolicyTopicConstraint proto.InternalMessageInfo
  637. type isPolicyTopicConstraint_Value interface {
  638. isPolicyTopicConstraint_Value()
  639. }
  640. type PolicyTopicConstraint_CountryConstraintList_ struct {
  641. CountryConstraintList *PolicyTopicConstraint_CountryConstraintList `protobuf:"bytes,1,opt,name=country_constraint_list,json=countryConstraintList,proto3,oneof"`
  642. }
  643. type PolicyTopicConstraint_ResellerConstraint_ struct {
  644. ResellerConstraint *PolicyTopicConstraint_ResellerConstraint `protobuf:"bytes,2,opt,name=reseller_constraint,json=resellerConstraint,proto3,oneof"`
  645. }
  646. type PolicyTopicConstraint_CertificateMissingInCountryList struct {
  647. CertificateMissingInCountryList *PolicyTopicConstraint_CountryConstraintList `protobuf:"bytes,3,opt,name=certificate_missing_in_country_list,json=certificateMissingInCountryList,proto3,oneof"`
  648. }
  649. type PolicyTopicConstraint_CertificateDomainMismatchInCountryList struct {
  650. CertificateDomainMismatchInCountryList *PolicyTopicConstraint_CountryConstraintList `protobuf:"bytes,4,opt,name=certificate_domain_mismatch_in_country_list,json=certificateDomainMismatchInCountryList,proto3,oneof"`
  651. }
  652. func (*PolicyTopicConstraint_CountryConstraintList_) isPolicyTopicConstraint_Value() {}
  653. func (*PolicyTopicConstraint_ResellerConstraint_) isPolicyTopicConstraint_Value() {}
  654. func (*PolicyTopicConstraint_CertificateMissingInCountryList) isPolicyTopicConstraint_Value() {}
  655. func (*PolicyTopicConstraint_CertificateDomainMismatchInCountryList) isPolicyTopicConstraint_Value() {}
  656. func (m *PolicyTopicConstraint) GetValue() isPolicyTopicConstraint_Value {
  657. if m != nil {
  658. return m.Value
  659. }
  660. return nil
  661. }
  662. func (m *PolicyTopicConstraint) GetCountryConstraintList() *PolicyTopicConstraint_CountryConstraintList {
  663. if x, ok := m.GetValue().(*PolicyTopicConstraint_CountryConstraintList_); ok {
  664. return x.CountryConstraintList
  665. }
  666. return nil
  667. }
  668. func (m *PolicyTopicConstraint) GetResellerConstraint() *PolicyTopicConstraint_ResellerConstraint {
  669. if x, ok := m.GetValue().(*PolicyTopicConstraint_ResellerConstraint_); ok {
  670. return x.ResellerConstraint
  671. }
  672. return nil
  673. }
  674. func (m *PolicyTopicConstraint) GetCertificateMissingInCountryList() *PolicyTopicConstraint_CountryConstraintList {
  675. if x, ok := m.GetValue().(*PolicyTopicConstraint_CertificateMissingInCountryList); ok {
  676. return x.CertificateMissingInCountryList
  677. }
  678. return nil
  679. }
  680. func (m *PolicyTopicConstraint) GetCertificateDomainMismatchInCountryList() *PolicyTopicConstraint_CountryConstraintList {
  681. if x, ok := m.GetValue().(*PolicyTopicConstraint_CertificateDomainMismatchInCountryList); ok {
  682. return x.CertificateDomainMismatchInCountryList
  683. }
  684. return nil
  685. }
  686. // XXX_OneofFuncs is for the internal use of the proto package.
  687. func (*PolicyTopicConstraint) 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{}) {
  688. return _PolicyTopicConstraint_OneofMarshaler, _PolicyTopicConstraint_OneofUnmarshaler, _PolicyTopicConstraint_OneofSizer, []interface{}{
  689. (*PolicyTopicConstraint_CountryConstraintList_)(nil),
  690. (*PolicyTopicConstraint_ResellerConstraint_)(nil),
  691. (*PolicyTopicConstraint_CertificateMissingInCountryList)(nil),
  692. (*PolicyTopicConstraint_CertificateDomainMismatchInCountryList)(nil),
  693. }
  694. }
  695. func _PolicyTopicConstraint_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  696. m := msg.(*PolicyTopicConstraint)
  697. // value
  698. switch x := m.Value.(type) {
  699. case *PolicyTopicConstraint_CountryConstraintList_:
  700. b.EncodeVarint(1<<3 | proto.WireBytes)
  701. if err := b.EncodeMessage(x.CountryConstraintList); err != nil {
  702. return err
  703. }
  704. case *PolicyTopicConstraint_ResellerConstraint_:
  705. b.EncodeVarint(2<<3 | proto.WireBytes)
  706. if err := b.EncodeMessage(x.ResellerConstraint); err != nil {
  707. return err
  708. }
  709. case *PolicyTopicConstraint_CertificateMissingInCountryList:
  710. b.EncodeVarint(3<<3 | proto.WireBytes)
  711. if err := b.EncodeMessage(x.CertificateMissingInCountryList); err != nil {
  712. return err
  713. }
  714. case *PolicyTopicConstraint_CertificateDomainMismatchInCountryList:
  715. b.EncodeVarint(4<<3 | proto.WireBytes)
  716. if err := b.EncodeMessage(x.CertificateDomainMismatchInCountryList); err != nil {
  717. return err
  718. }
  719. case nil:
  720. default:
  721. return fmt.Errorf("PolicyTopicConstraint.Value has unexpected type %T", x)
  722. }
  723. return nil
  724. }
  725. func _PolicyTopicConstraint_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  726. m := msg.(*PolicyTopicConstraint)
  727. switch tag {
  728. case 1: // value.country_constraint_list
  729. if wire != proto.WireBytes {
  730. return true, proto.ErrInternalBadWireType
  731. }
  732. msg := new(PolicyTopicConstraint_CountryConstraintList)
  733. err := b.DecodeMessage(msg)
  734. m.Value = &PolicyTopicConstraint_CountryConstraintList_{msg}
  735. return true, err
  736. case 2: // value.reseller_constraint
  737. if wire != proto.WireBytes {
  738. return true, proto.ErrInternalBadWireType
  739. }
  740. msg := new(PolicyTopicConstraint_ResellerConstraint)
  741. err := b.DecodeMessage(msg)
  742. m.Value = &PolicyTopicConstraint_ResellerConstraint_{msg}
  743. return true, err
  744. case 3: // value.certificate_missing_in_country_list
  745. if wire != proto.WireBytes {
  746. return true, proto.ErrInternalBadWireType
  747. }
  748. msg := new(PolicyTopicConstraint_CountryConstraintList)
  749. err := b.DecodeMessage(msg)
  750. m.Value = &PolicyTopicConstraint_CertificateMissingInCountryList{msg}
  751. return true, err
  752. case 4: // value.certificate_domain_mismatch_in_country_list
  753. if wire != proto.WireBytes {
  754. return true, proto.ErrInternalBadWireType
  755. }
  756. msg := new(PolicyTopicConstraint_CountryConstraintList)
  757. err := b.DecodeMessage(msg)
  758. m.Value = &PolicyTopicConstraint_CertificateDomainMismatchInCountryList{msg}
  759. return true, err
  760. default:
  761. return false, nil
  762. }
  763. }
  764. func _PolicyTopicConstraint_OneofSizer(msg proto.Message) (n int) {
  765. m := msg.(*PolicyTopicConstraint)
  766. // value
  767. switch x := m.Value.(type) {
  768. case *PolicyTopicConstraint_CountryConstraintList_:
  769. s := proto.Size(x.CountryConstraintList)
  770. n += 1 // tag and wire
  771. n += proto.SizeVarint(uint64(s))
  772. n += s
  773. case *PolicyTopicConstraint_ResellerConstraint_:
  774. s := proto.Size(x.ResellerConstraint)
  775. n += 1 // tag and wire
  776. n += proto.SizeVarint(uint64(s))
  777. n += s
  778. case *PolicyTopicConstraint_CertificateMissingInCountryList:
  779. s := proto.Size(x.CertificateMissingInCountryList)
  780. n += 1 // tag and wire
  781. n += proto.SizeVarint(uint64(s))
  782. n += s
  783. case *PolicyTopicConstraint_CertificateDomainMismatchInCountryList:
  784. s := proto.Size(x.CertificateDomainMismatchInCountryList)
  785. n += 1 // tag and wire
  786. n += proto.SizeVarint(uint64(s))
  787. n += s
  788. case nil:
  789. default:
  790. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  791. }
  792. return n
  793. }
  794. // A list of countries where a resource's serving is constrained.
  795. //
  796. // Next Id: 3
  797. type PolicyTopicConstraint_CountryConstraintList struct {
  798. // Total number of countries targeted by the resource.
  799. TotalTargetedCountries *wrappers.Int32Value `protobuf:"bytes,1,opt,name=total_targeted_countries,json=totalTargetedCountries,proto3" json:"total_targeted_countries,omitempty"`
  800. // Countries in which serving is restricted.
  801. Countries []*PolicyTopicConstraint_CountryConstraint `protobuf:"bytes,2,rep,name=countries,proto3" json:"countries,omitempty"`
  802. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  803. XXX_unrecognized []byte `json:"-"`
  804. XXX_sizecache int32 `json:"-"`
  805. }
  806. func (m *PolicyTopicConstraint_CountryConstraintList) Reset() {
  807. *m = PolicyTopicConstraint_CountryConstraintList{}
  808. }
  809. func (m *PolicyTopicConstraint_CountryConstraintList) String() string {
  810. return proto.CompactTextString(m)
  811. }
  812. func (*PolicyTopicConstraint_CountryConstraintList) ProtoMessage() {}
  813. func (*PolicyTopicConstraint_CountryConstraintList) Descriptor() ([]byte, []int) {
  814. return fileDescriptor_policy_74e29921f4fc9bc3, []int{4, 0}
  815. }
  816. func (m *PolicyTopicConstraint_CountryConstraintList) XXX_Unmarshal(b []byte) error {
  817. return xxx_messageInfo_PolicyTopicConstraint_CountryConstraintList.Unmarshal(m, b)
  818. }
  819. func (m *PolicyTopicConstraint_CountryConstraintList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  820. return xxx_messageInfo_PolicyTopicConstraint_CountryConstraintList.Marshal(b, m, deterministic)
  821. }
  822. func (dst *PolicyTopicConstraint_CountryConstraintList) XXX_Merge(src proto.Message) {
  823. xxx_messageInfo_PolicyTopicConstraint_CountryConstraintList.Merge(dst, src)
  824. }
  825. func (m *PolicyTopicConstraint_CountryConstraintList) XXX_Size() int {
  826. return xxx_messageInfo_PolicyTopicConstraint_CountryConstraintList.Size(m)
  827. }
  828. func (m *PolicyTopicConstraint_CountryConstraintList) XXX_DiscardUnknown() {
  829. xxx_messageInfo_PolicyTopicConstraint_CountryConstraintList.DiscardUnknown(m)
  830. }
  831. var xxx_messageInfo_PolicyTopicConstraint_CountryConstraintList proto.InternalMessageInfo
  832. func (m *PolicyTopicConstraint_CountryConstraintList) GetTotalTargetedCountries() *wrappers.Int32Value {
  833. if m != nil {
  834. return m.TotalTargetedCountries
  835. }
  836. return nil
  837. }
  838. func (m *PolicyTopicConstraint_CountryConstraintList) GetCountries() []*PolicyTopicConstraint_CountryConstraint {
  839. if m != nil {
  840. return m.Countries
  841. }
  842. return nil
  843. }
  844. // Indicates that a policy topic was constrained due to disapproval of the
  845. // website for reseller purposes.
  846. //
  847. // Next Id: 1
  848. type PolicyTopicConstraint_ResellerConstraint struct {
  849. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  850. XXX_unrecognized []byte `json:"-"`
  851. XXX_sizecache int32 `json:"-"`
  852. }
  853. func (m *PolicyTopicConstraint_ResellerConstraint) Reset() {
  854. *m = PolicyTopicConstraint_ResellerConstraint{}
  855. }
  856. func (m *PolicyTopicConstraint_ResellerConstraint) String() string { return proto.CompactTextString(m) }
  857. func (*PolicyTopicConstraint_ResellerConstraint) ProtoMessage() {}
  858. func (*PolicyTopicConstraint_ResellerConstraint) Descriptor() ([]byte, []int) {
  859. return fileDescriptor_policy_74e29921f4fc9bc3, []int{4, 1}
  860. }
  861. func (m *PolicyTopicConstraint_ResellerConstraint) XXX_Unmarshal(b []byte) error {
  862. return xxx_messageInfo_PolicyTopicConstraint_ResellerConstraint.Unmarshal(m, b)
  863. }
  864. func (m *PolicyTopicConstraint_ResellerConstraint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  865. return xxx_messageInfo_PolicyTopicConstraint_ResellerConstraint.Marshal(b, m, deterministic)
  866. }
  867. func (dst *PolicyTopicConstraint_ResellerConstraint) XXX_Merge(src proto.Message) {
  868. xxx_messageInfo_PolicyTopicConstraint_ResellerConstraint.Merge(dst, src)
  869. }
  870. func (m *PolicyTopicConstraint_ResellerConstraint) XXX_Size() int {
  871. return xxx_messageInfo_PolicyTopicConstraint_ResellerConstraint.Size(m)
  872. }
  873. func (m *PolicyTopicConstraint_ResellerConstraint) XXX_DiscardUnknown() {
  874. xxx_messageInfo_PolicyTopicConstraint_ResellerConstraint.DiscardUnknown(m)
  875. }
  876. var xxx_messageInfo_PolicyTopicConstraint_ResellerConstraint proto.InternalMessageInfo
  877. // Indicates that a resource's ability to serve in a particular country is
  878. // constrained.
  879. //
  880. // Next Id: 2
  881. type PolicyTopicConstraint_CountryConstraint struct {
  882. // Geo target constant resource name of the country in which serving is
  883. // constrained.
  884. CountryCriterion *wrappers.StringValue `protobuf:"bytes,1,opt,name=country_criterion,json=countryCriterion,proto3" json:"country_criterion,omitempty"`
  885. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  886. XXX_unrecognized []byte `json:"-"`
  887. XXX_sizecache int32 `json:"-"`
  888. }
  889. func (m *PolicyTopicConstraint_CountryConstraint) Reset() {
  890. *m = PolicyTopicConstraint_CountryConstraint{}
  891. }
  892. func (m *PolicyTopicConstraint_CountryConstraint) String() string { return proto.CompactTextString(m) }
  893. func (*PolicyTopicConstraint_CountryConstraint) ProtoMessage() {}
  894. func (*PolicyTopicConstraint_CountryConstraint) Descriptor() ([]byte, []int) {
  895. return fileDescriptor_policy_74e29921f4fc9bc3, []int{4, 2}
  896. }
  897. func (m *PolicyTopicConstraint_CountryConstraint) XXX_Unmarshal(b []byte) error {
  898. return xxx_messageInfo_PolicyTopicConstraint_CountryConstraint.Unmarshal(m, b)
  899. }
  900. func (m *PolicyTopicConstraint_CountryConstraint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  901. return xxx_messageInfo_PolicyTopicConstraint_CountryConstraint.Marshal(b, m, deterministic)
  902. }
  903. func (dst *PolicyTopicConstraint_CountryConstraint) XXX_Merge(src proto.Message) {
  904. xxx_messageInfo_PolicyTopicConstraint_CountryConstraint.Merge(dst, src)
  905. }
  906. func (m *PolicyTopicConstraint_CountryConstraint) XXX_Size() int {
  907. return xxx_messageInfo_PolicyTopicConstraint_CountryConstraint.Size(m)
  908. }
  909. func (m *PolicyTopicConstraint_CountryConstraint) XXX_DiscardUnknown() {
  910. xxx_messageInfo_PolicyTopicConstraint_CountryConstraint.DiscardUnknown(m)
  911. }
  912. var xxx_messageInfo_PolicyTopicConstraint_CountryConstraint proto.InternalMessageInfo
  913. func (m *PolicyTopicConstraint_CountryConstraint) GetCountryCriterion() *wrappers.StringValue {
  914. if m != nil {
  915. return m.CountryCriterion
  916. }
  917. return nil
  918. }
  919. func init() {
  920. proto.RegisterType((*PolicyViolationKey)(nil), "google.ads.googleads.v0.common.PolicyViolationKey")
  921. proto.RegisterType((*PolicyValidationParameter)(nil), "google.ads.googleads.v0.common.PolicyValidationParameter")
  922. proto.RegisterType((*PolicyTopicEntry)(nil), "google.ads.googleads.v0.common.PolicyTopicEntry")
  923. proto.RegisterType((*PolicyTopicEvidence)(nil), "google.ads.googleads.v0.common.PolicyTopicEvidence")
  924. proto.RegisterType((*PolicyTopicEvidence_TextList)(nil), "google.ads.googleads.v0.common.PolicyTopicEvidence.TextList")
  925. proto.RegisterType((*PolicyTopicEvidence_WebsiteList)(nil), "google.ads.googleads.v0.common.PolicyTopicEvidence.WebsiteList")
  926. proto.RegisterType((*PolicyTopicEvidence_DestinationTextList)(nil), "google.ads.googleads.v0.common.PolicyTopicEvidence.DestinationTextList")
  927. proto.RegisterType((*PolicyTopicEvidence_DestinationMismatch)(nil), "google.ads.googleads.v0.common.PolicyTopicEvidence.DestinationMismatch")
  928. proto.RegisterType((*PolicyTopicConstraint)(nil), "google.ads.googleads.v0.common.PolicyTopicConstraint")
  929. proto.RegisterType((*PolicyTopicConstraint_CountryConstraintList)(nil), "google.ads.googleads.v0.common.PolicyTopicConstraint.CountryConstraintList")
  930. proto.RegisterType((*PolicyTopicConstraint_ResellerConstraint)(nil), "google.ads.googleads.v0.common.PolicyTopicConstraint.ResellerConstraint")
  931. proto.RegisterType((*PolicyTopicConstraint_CountryConstraint)(nil), "google.ads.googleads.v0.common.PolicyTopicConstraint.CountryConstraint")
  932. }
  933. func init() {
  934. proto.RegisterFile("google/ads/googleads/v0/common/policy.proto", fileDescriptor_policy_74e29921f4fc9bc3)
  935. }
  936. var fileDescriptor_policy_74e29921f4fc9bc3 = []byte{
  937. // 987 bytes of a gzipped FileDescriptorProto
  938. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x96, 0xdd, 0x6e, 0x1b, 0x45,
  939. 0x14, 0xc7, 0xb3, 0x4e, 0xd2, 0xd8, 0xe3, 0x36, 0x4a, 0x27, 0x35, 0x35, 0x06, 0x95, 0xca, 0x48,
  940. 0x08, 0xa9, 0xd2, 0xda, 0x72, 0x84, 0x84, 0x5c, 0x3e, 0xe4, 0x38, 0x95, 0x1d, 0xb5, 0x45, 0x61,
  941. 0x71, 0x1d, 0x09, 0x22, 0xb6, 0x93, 0xdd, 0xe9, 0x76, 0xa4, 0xdd, 0x19, 0x33, 0x33, 0x76, 0x62,
  942. 0xf1, 0x21, 0x6e, 0x78, 0x07, 0x24, 0xee, 0xb8, 0xcc, 0x2d, 0xf7, 0x3c, 0x00, 0xd7, 0xf0, 0x0a,
  943. 0x5c, 0xf0, 0x14, 0x68, 0x67, 0x66, 0xd7, 0x1b, 0xdb, 0xc1, 0x8e, 0x15, 0xae, 0x3c, 0x9e, 0x3d,
  944. 0xe7, 0x77, 0xfe, 0x73, 0xe6, 0x9c, 0xb3, 0x0b, 0x1e, 0x05, 0x8c, 0x05, 0x21, 0xae, 0x21, 0x5f,
  945. 0xd4, 0xf4, 0x32, 0x5e, 0x8d, 0xea, 0x35, 0x8f, 0x45, 0x11, 0xa3, 0xb5, 0x01, 0x0b, 0x89, 0x37,
  946. 0xb6, 0x07, 0x9c, 0x49, 0x06, 0x1f, 0x68, 0x0b, 0x1b, 0xf9, 0xc2, 0x4e, 0x8d, 0xed, 0x51, 0xdd,
  947. 0xd6, 0xc6, 0x95, 0xc7, 0x57, 0xc1, 0x30, 0x1d, 0x46, 0xc2, 0xb0, 0x5c, 0xc9, 0x06, 0xc4, 0x73,
  948. 0x31, 0x95, 0x7c, 0xec, 0xca, 0xf1, 0x00, 0x6b, 0x78, 0xe5, 0xf8, 0x3a, 0xce, 0x23, 0xe2, 0x63,
  949. 0xea, 0x61, 0xd7, 0xc7, 0x42, 0x12, 0x8a, 0x24, 0x61, 0xd4, 0x8d, 0x88, 0x88, 0x90, 0xf4, 0x5e,
  950. 0xbb, 0x43, 0x1e, 0x66, 0xc1, 0x46, 0x75, 0x4d, 0xfd, 0x3b, 0x1d, 0xbe, 0xaa, 0x9d, 0x71, 0x34,
  951. 0x18, 0x60, 0x2e, 0xf4, 0xf3, 0xea, 0xcf, 0x16, 0x80, 0x47, 0x8a, 0xde, 0x27, 0x2c, 0x54, 0xac,
  952. 0xa7, 0x78, 0x0c, 0x3f, 0x06, 0x45, 0x13, 0x93, 0xa2, 0x08, 0x97, 0xad, 0x87, 0xd6, 0xfb, 0xc5,
  953. 0xc6, 0xdb, 0xe6, 0xdc, 0x76, 0x02, 0xb3, 0xbf, 0x90, 0x9c, 0xd0, 0xa0, 0x8f, 0xc2, 0x21, 0x76,
  954. 0x80, 0x76, 0xf8, 0x0c, 0x45, 0x18, 0xb6, 0xc1, 0xf6, 0x48, 0xe3, 0x68, 0xe0, 0x4a, 0x7c, 0x2e,
  955. 0xcb, 0xb9, 0x25, 0x08, 0x77, 0x52, 0x9f, 0x1e, 0x3e, 0x97, 0xd5, 0x6f, 0xc0, 0x9b, 0x46, 0x19,
  956. 0x0a, 0x89, 0xaf, 0xa4, 0x1d, 0x21, 0x8e, 0x22, 0x2c, 0x31, 0x87, 0x3d, 0x70, 0x9f, 0x04, 0x94,
  957. 0x71, 0x74, 0x1a, 0x62, 0x37, 0x9b, 0x1e, 0x51, 0xb6, 0x1e, 0xae, 0x2f, 0x0c, 0x55, 0x4a, 0x9d,
  958. 0x75, 0x88, 0x9e, 0x72, 0xad, 0xfe, 0x99, 0x03, 0x3b, 0x99, 0x8d, 0x27, 0xf1, 0x35, 0xc1, 0x06,
  959. 0xd8, 0x54, 0xe4, 0xa5, 0xb2, 0xa0, 0x4d, 0xe1, 0x4b, 0xb0, 0x11, 0x5f, 0x82, 0x3a, 0xf6, 0x76,
  960. 0xe3, 0x99, 0x7d, 0x55, 0xed, 0xa8, 0xeb, 0xb5, 0xa7, 0x43, 0xf6, 0xc6, 0x03, 0xfc, 0x84, 0x0e,
  961. 0xa3, 0xb9, 0x0f, 0x1c, 0x45, 0x86, 0x9f, 0x83, 0x42, 0x52, 0x08, 0xa2, 0xbc, 0xae, 0x8e, 0xbc,
  962. 0x67, 0xff, 0x77, 0x89, 0x5e, 0xc2, 0x19, 0x5f, 0x67, 0x42, 0x81, 0xc7, 0xa0, 0xe8, 0x31, 0x2a,
  963. 0x24, 0x47, 0x84, 0x4a, 0x51, 0xde, 0x50, 0xd0, 0x0f, 0xae, 0x01, 0x6d, 0xa7, 0xde, 0x4e, 0x96,
  964. 0x54, 0xfd, 0x31, 0x0f, 0x76, 0xe7, 0xc4, 0x86, 0x4d, 0x50, 0x78, 0x2d, 0xe5, 0xc0, 0xf5, 0x98,
  965. 0x8f, 0x4d, 0x85, 0xbc, 0x35, 0x93, 0xdd, 0x43, 0x2a, 0xf7, 0x1a, 0x2a, 0xb9, 0xdd, 0x35, 0x27,
  966. 0x1f, 0xdb, 0xb7, 0x99, 0x8f, 0xa1, 0x0f, 0x6e, 0x9f, 0xe1, 0x53, 0x41, 0x24, 0x76, 0x43, 0x22,
  967. 0x64, 0x79, 0x5d, 0xb9, 0x7f, 0xba, 0x42, 0x0a, 0xec, 0x63, 0xcd, 0x79, 0x46, 0x84, 0xec, 0xae,
  968. 0x39, 0xc5, 0xb3, 0xc9, 0x5f, 0xf8, 0x15, 0x28, 0xc4, 0xe5, 0xab, 0x43, 0x6c, 0xa8, 0x10, 0x1f,
  969. 0xad, 0x12, 0x22, 0x2e, 0x68, 0xc3, 0xcf, 0x4b, 0xb3, 0x86, 0x6d, 0x70, 0x27, 0x44, 0x34, 0x18,
  970. 0xa2, 0x00, 0xeb, 0x14, 0x6c, 0x2e, 0x2e, 0xb0, 0xee, 0x9a, 0x73, 0x3b, 0x71, 0x52, 0x79, 0xf8,
  971. 0x1e, 0x94, 0xb2, 0x73, 0x60, 0xa2, 0xf6, 0x96, 0x82, 0x75, 0x56, 0x51, 0x7b, 0x30, 0x01, 0x66,
  972. 0x84, 0xef, 0xfa, 0xb3, 0xdb, 0xf0, 0x3b, 0x70, 0x6f, 0xde, 0x18, 0x2a, 0x6f, 0xdd, 0x48, 0xf4,
  973. 0xe7, 0x06, 0x37, 0x15, 0x3d, 0xd9, 0xae, 0x7c, 0x02, 0xf2, 0xa9, 0x92, 0xb8, 0x4d, 0xf1, 0xb9,
  974. 0x5c, 0xae, 0xff, 0xb5, 0x69, 0xa5, 0x03, 0x8a, 0x99, 0xcb, 0x87, 0x1f, 0x82, 0xbc, 0xb9, 0xfc,
  975. 0xe5, 0x28, 0xa9, 0x75, 0xe5, 0x25, 0xd8, 0x9d, 0x93, 0x34, 0x78, 0x08, 0xee, 0x4e, 0x5f, 0xce,
  976. 0x72, 0xe4, 0x9d, 0xa9, 0x5c, 0x8b, 0xca, 0x6f, 0xd6, 0xa5, 0x10, 0x49, 0x0a, 0xe0, 0x2f, 0x16,
  977. 0x28, 0x24, 0x33, 0x5f, 0xb3, 0xb7, 0x1b, 0x3f, 0x5c, 0x63, 0xde, 0x98, 0xac, 0xcf, 0x41, 0xbf,
  978. 0xe0, 0xe1, 0xdc, 0x41, 0xb4, 0xd0, 0xc3, 0xc9, 0x0f, 0xf5, 0x42, 0xec, 0x6f, 0x81, 0xcd, 0x51,
  979. 0x7c, 0xa0, 0xea, 0xef, 0x5b, 0xa0, 0x34, 0x77, 0x52, 0xc0, 0x9f, 0x2c, 0x70, 0xdf, 0x63, 0x43,
  980. 0xf5, 0x46, 0x9c, 0x0c, 0x0d, 0x5d, 0xc3, 0x7a, 0xe2, 0x3e, 0x5d, 0x69, 0x04, 0xd9, 0x6d, 0x0d,
  981. 0x9d, 0xec, 0x98, 0x3a, 0x2e, 0x79, 0xf3, 0x1e, 0xc0, 0x6f, 0xc1, 0x2e, 0xc7, 0x02, 0x87, 0x21,
  982. 0xe6, 0x19, 0x1d, 0x66, 0x2c, 0x75, 0x57, 0x93, 0xe0, 0x18, 0xe0, 0x64, 0xab, 0xbb, 0xe6, 0x40,
  983. 0x3e, 0xb3, 0x1b, 0xdf, 0xe2, 0xbb, 0x1e, 0xe6, 0x92, 0xbc, 0x22, 0x1e, 0x92, 0x38, 0xee, 0x23,
  984. 0x11, 0xbf, 0x3b, 0x09, 0x75, 0x93, 0xdc, 0x64, 0xa6, 0xdc, 0x0d, 0x27, 0xe4, 0x9d, 0x4c, 0xe4,
  985. 0xe7, 0x3a, 0xf0, 0x21, 0x35, 0xc6, 0x2a, 0x35, 0x17, 0x16, 0x78, 0x94, 0x55, 0xe7, 0xb3, 0x08,
  986. 0x91, 0xcc, 0x37, 0xc7, 0xb4, 0xca, 0x8d, 0xff, 0x43, 0xe5, 0x7b, 0x19, 0x05, 0x07, 0x4a, 0x40,
  987. 0x52, 0x76, 0x97, 0xc4, 0x56, 0xfe, 0xb2, 0x40, 0x69, 0x2e, 0x03, 0xbe, 0x00, 0x65, 0xc9, 0x24,
  988. 0x0a, 0x5d, 0x89, 0x78, 0x80, 0x25, 0xf6, 0x8d, 0x6a, 0xa2, 0x1a, 0x67, 0xd1, 0xdb, 0xc7, 0x79,
  989. 0x43, 0x39, 0xf7, 0x8c, 0x6f, 0x3b, 0x71, 0x85, 0x18, 0x14, 0x26, 0x9c, 0x9c, 0x6a, 0xee, 0xce,
  990. 0x0d, 0x1d, 0xdd, 0x99, 0x90, 0x2b, 0xf7, 0x00, 0x9c, 0x2d, 0xa7, 0xca, 0xd7, 0xe0, 0xee, 0x8c,
  991. 0x57, 0x3c, 0x76, 0xd2, 0x8e, 0xe2, 0x44, 0x62, 0x4e, 0x18, 0x5d, 0xea, 0xeb, 0x65, 0x27, 0x69,
  992. 0x8d, 0xc4, 0x2b, 0x6d, 0xe0, 0xfd, 0xbf, 0x2d, 0x50, 0xf5, 0x58, 0xb4, 0xe0, 0x60, 0xfb, 0x45,
  993. 0x7d, 0xb2, 0xa3, 0x98, 0x7e, 0x64, 0x7d, 0x79, 0x60, 0xcc, 0x03, 0x16, 0xbf, 0xb4, 0x6c, 0xc6,
  994. 0x83, 0x5a, 0x80, 0xa9, 0x8a, 0x9d, 0x7c, 0xe7, 0x0e, 0x88, 0xb8, 0xea, 0x03, 0xfc, 0xb1, 0xfe,
  995. 0xf9, 0x35, 0xb7, 0xde, 0x69, 0xb5, 0x2e, 0x72, 0x0f, 0x3a, 0x1a, 0xd6, 0xf2, 0x85, 0xad, 0x97,
  996. 0xf1, 0xaa, 0x5f, 0xb7, 0xdb, 0xca, 0xec, 0x8f, 0xc4, 0xe0, 0xa4, 0xe5, 0x8b, 0x93, 0xd4, 0xe0,
  997. 0xa4, 0x5f, 0x3f, 0xd1, 0x06, 0xff, 0xe4, 0xaa, 0x7a, 0xb7, 0xd9, 0x6c, 0xf9, 0xa2, 0xd9, 0x4c,
  998. 0x4d, 0x9a, 0xcd, 0x7e, 0xbd, 0xd9, 0xd4, 0x46, 0xa7, 0xb7, 0x94, 0xba, 0xbd, 0x7f, 0x03, 0x00,
  999. 0x00, 0xff, 0xff, 0x8c, 0x6f, 0xa6, 0x38, 0x1d, 0x0c, 0x00, 0x00,
  1000. }