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.
 
 
 

1104 lines
48 KiB

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