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.
 
 
 

1101 lines
52 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/ads/googleads/v0/services/recommendation_service.proto
  3. package services // import "google.golang.org/genproto/googleapis/ads/googleads/v0/services"
  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. import resources "google.golang.org/genproto/googleapis/ads/googleads/v0/resources"
  10. import _ "google.golang.org/genproto/googleapis/api/annotations"
  11. import status "google.golang.org/genproto/googleapis/rpc/status"
  12. import (
  13. context "golang.org/x/net/context"
  14. grpc "google.golang.org/grpc"
  15. )
  16. // Reference imports to suppress errors if they are not otherwise used.
  17. var _ = proto.Marshal
  18. var _ = fmt.Errorf
  19. var _ = math.Inf
  20. // This is a compile-time assertion to ensure that this generated file
  21. // is compatible with the proto package it is being compiled against.
  22. // A compilation error at this line likely means your copy of the
  23. // proto package needs to be updated.
  24. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  25. // Request message for
  26. // [RecommendationService.GetRecommendation][google.ads.googleads.v0.services.RecommendationService.GetRecommendation].
  27. type GetRecommendationRequest struct {
  28. // The resource name of the recommendation to fetch.
  29. ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
  30. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  31. XXX_unrecognized []byte `json:"-"`
  32. XXX_sizecache int32 `json:"-"`
  33. }
  34. func (m *GetRecommendationRequest) Reset() { *m = GetRecommendationRequest{} }
  35. func (m *GetRecommendationRequest) String() string { return proto.CompactTextString(m) }
  36. func (*GetRecommendationRequest) ProtoMessage() {}
  37. func (*GetRecommendationRequest) Descriptor() ([]byte, []int) {
  38. return fileDescriptor_recommendation_service_49514a7817ff77b2, []int{0}
  39. }
  40. func (m *GetRecommendationRequest) XXX_Unmarshal(b []byte) error {
  41. return xxx_messageInfo_GetRecommendationRequest.Unmarshal(m, b)
  42. }
  43. func (m *GetRecommendationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  44. return xxx_messageInfo_GetRecommendationRequest.Marshal(b, m, deterministic)
  45. }
  46. func (dst *GetRecommendationRequest) XXX_Merge(src proto.Message) {
  47. xxx_messageInfo_GetRecommendationRequest.Merge(dst, src)
  48. }
  49. func (m *GetRecommendationRequest) XXX_Size() int {
  50. return xxx_messageInfo_GetRecommendationRequest.Size(m)
  51. }
  52. func (m *GetRecommendationRequest) XXX_DiscardUnknown() {
  53. xxx_messageInfo_GetRecommendationRequest.DiscardUnknown(m)
  54. }
  55. var xxx_messageInfo_GetRecommendationRequest proto.InternalMessageInfo
  56. func (m *GetRecommendationRequest) GetResourceName() string {
  57. if m != nil {
  58. return m.ResourceName
  59. }
  60. return ""
  61. }
  62. // Request message for
  63. // [RecommendationService.ApplyRecommendation][google.ads.googleads.v0.services.RecommendationService.ApplyRecommendation].
  64. type ApplyRecommendationRequest struct {
  65. // The ID of the customer with the recommendation.
  66. CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
  67. // The list of operations to apply recommendations.
  68. // If partial_failure=false all recommendations should be of the same type
  69. // There is a limit of 100 operations per request.
  70. Operations []*ApplyRecommendationOperation `protobuf:"bytes,2,rep,name=operations,proto3" json:"operations,omitempty"`
  71. // If true, successful operations will be carried out and invalid
  72. // operations will return errors. If false, operations will be carried
  73. // out as a transaction if and only if they are all valid.
  74. // Default is false.
  75. PartialFailure bool `protobuf:"varint,3,opt,name=partial_failure,json=partialFailure,proto3" json:"partial_failure,omitempty"`
  76. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  77. XXX_unrecognized []byte `json:"-"`
  78. XXX_sizecache int32 `json:"-"`
  79. }
  80. func (m *ApplyRecommendationRequest) Reset() { *m = ApplyRecommendationRequest{} }
  81. func (m *ApplyRecommendationRequest) String() string { return proto.CompactTextString(m) }
  82. func (*ApplyRecommendationRequest) ProtoMessage() {}
  83. func (*ApplyRecommendationRequest) Descriptor() ([]byte, []int) {
  84. return fileDescriptor_recommendation_service_49514a7817ff77b2, []int{1}
  85. }
  86. func (m *ApplyRecommendationRequest) XXX_Unmarshal(b []byte) error {
  87. return xxx_messageInfo_ApplyRecommendationRequest.Unmarshal(m, b)
  88. }
  89. func (m *ApplyRecommendationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  90. return xxx_messageInfo_ApplyRecommendationRequest.Marshal(b, m, deterministic)
  91. }
  92. func (dst *ApplyRecommendationRequest) XXX_Merge(src proto.Message) {
  93. xxx_messageInfo_ApplyRecommendationRequest.Merge(dst, src)
  94. }
  95. func (m *ApplyRecommendationRequest) XXX_Size() int {
  96. return xxx_messageInfo_ApplyRecommendationRequest.Size(m)
  97. }
  98. func (m *ApplyRecommendationRequest) XXX_DiscardUnknown() {
  99. xxx_messageInfo_ApplyRecommendationRequest.DiscardUnknown(m)
  100. }
  101. var xxx_messageInfo_ApplyRecommendationRequest proto.InternalMessageInfo
  102. func (m *ApplyRecommendationRequest) GetCustomerId() string {
  103. if m != nil {
  104. return m.CustomerId
  105. }
  106. return ""
  107. }
  108. func (m *ApplyRecommendationRequest) GetOperations() []*ApplyRecommendationOperation {
  109. if m != nil {
  110. return m.Operations
  111. }
  112. return nil
  113. }
  114. func (m *ApplyRecommendationRequest) GetPartialFailure() bool {
  115. if m != nil {
  116. return m.PartialFailure
  117. }
  118. return false
  119. }
  120. // Information about the operation to apply a recommendation and any parameters
  121. // to
  122. // customize it.
  123. type ApplyRecommendationOperation struct {
  124. // The resource name of the recommendation to apply.
  125. ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
  126. // Parameters to use when applying the recommendation.
  127. //
  128. // Types that are valid to be assigned to ApplyParameters:
  129. // *ApplyRecommendationOperation_CampaignBudget
  130. // *ApplyRecommendationOperation_TextAd
  131. // *ApplyRecommendationOperation_Keyword
  132. // *ApplyRecommendationOperation_TargetCpaOptIn
  133. ApplyParameters isApplyRecommendationOperation_ApplyParameters `protobuf_oneof:"apply_parameters"`
  134. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  135. XXX_unrecognized []byte `json:"-"`
  136. XXX_sizecache int32 `json:"-"`
  137. }
  138. func (m *ApplyRecommendationOperation) Reset() { *m = ApplyRecommendationOperation{} }
  139. func (m *ApplyRecommendationOperation) String() string { return proto.CompactTextString(m) }
  140. func (*ApplyRecommendationOperation) ProtoMessage() {}
  141. func (*ApplyRecommendationOperation) Descriptor() ([]byte, []int) {
  142. return fileDescriptor_recommendation_service_49514a7817ff77b2, []int{2}
  143. }
  144. func (m *ApplyRecommendationOperation) XXX_Unmarshal(b []byte) error {
  145. return xxx_messageInfo_ApplyRecommendationOperation.Unmarshal(m, b)
  146. }
  147. func (m *ApplyRecommendationOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  148. return xxx_messageInfo_ApplyRecommendationOperation.Marshal(b, m, deterministic)
  149. }
  150. func (dst *ApplyRecommendationOperation) XXX_Merge(src proto.Message) {
  151. xxx_messageInfo_ApplyRecommendationOperation.Merge(dst, src)
  152. }
  153. func (m *ApplyRecommendationOperation) XXX_Size() int {
  154. return xxx_messageInfo_ApplyRecommendationOperation.Size(m)
  155. }
  156. func (m *ApplyRecommendationOperation) XXX_DiscardUnknown() {
  157. xxx_messageInfo_ApplyRecommendationOperation.DiscardUnknown(m)
  158. }
  159. var xxx_messageInfo_ApplyRecommendationOperation proto.InternalMessageInfo
  160. func (m *ApplyRecommendationOperation) GetResourceName() string {
  161. if m != nil {
  162. return m.ResourceName
  163. }
  164. return ""
  165. }
  166. type isApplyRecommendationOperation_ApplyParameters interface {
  167. isApplyRecommendationOperation_ApplyParameters()
  168. }
  169. type ApplyRecommendationOperation_CampaignBudget struct {
  170. CampaignBudget *ApplyRecommendationOperation_CampaignBudgetParameters `protobuf:"bytes,2,opt,name=campaign_budget,json=campaignBudget,proto3,oneof"`
  171. }
  172. type ApplyRecommendationOperation_TextAd struct {
  173. TextAd *ApplyRecommendationOperation_TextAdParameters `protobuf:"bytes,3,opt,name=text_ad,json=textAd,proto3,oneof"`
  174. }
  175. type ApplyRecommendationOperation_Keyword struct {
  176. Keyword *ApplyRecommendationOperation_KeywordParameters `protobuf:"bytes,4,opt,name=keyword,proto3,oneof"`
  177. }
  178. type ApplyRecommendationOperation_TargetCpaOptIn struct {
  179. TargetCpaOptIn *ApplyRecommendationOperation_TargetCpaOptInParameters `protobuf:"bytes,5,opt,name=target_cpa_opt_in,json=targetCpaOptIn,proto3,oneof"`
  180. }
  181. func (*ApplyRecommendationOperation_CampaignBudget) isApplyRecommendationOperation_ApplyParameters() {}
  182. func (*ApplyRecommendationOperation_TextAd) isApplyRecommendationOperation_ApplyParameters() {}
  183. func (*ApplyRecommendationOperation_Keyword) isApplyRecommendationOperation_ApplyParameters() {}
  184. func (*ApplyRecommendationOperation_TargetCpaOptIn) isApplyRecommendationOperation_ApplyParameters() {}
  185. func (m *ApplyRecommendationOperation) GetApplyParameters() isApplyRecommendationOperation_ApplyParameters {
  186. if m != nil {
  187. return m.ApplyParameters
  188. }
  189. return nil
  190. }
  191. func (m *ApplyRecommendationOperation) GetCampaignBudget() *ApplyRecommendationOperation_CampaignBudgetParameters {
  192. if x, ok := m.GetApplyParameters().(*ApplyRecommendationOperation_CampaignBudget); ok {
  193. return x.CampaignBudget
  194. }
  195. return nil
  196. }
  197. func (m *ApplyRecommendationOperation) GetTextAd() *ApplyRecommendationOperation_TextAdParameters {
  198. if x, ok := m.GetApplyParameters().(*ApplyRecommendationOperation_TextAd); ok {
  199. return x.TextAd
  200. }
  201. return nil
  202. }
  203. func (m *ApplyRecommendationOperation) GetKeyword() *ApplyRecommendationOperation_KeywordParameters {
  204. if x, ok := m.GetApplyParameters().(*ApplyRecommendationOperation_Keyword); ok {
  205. return x.Keyword
  206. }
  207. return nil
  208. }
  209. func (m *ApplyRecommendationOperation) GetTargetCpaOptIn() *ApplyRecommendationOperation_TargetCpaOptInParameters {
  210. if x, ok := m.GetApplyParameters().(*ApplyRecommendationOperation_TargetCpaOptIn); ok {
  211. return x.TargetCpaOptIn
  212. }
  213. return nil
  214. }
  215. // XXX_OneofFuncs is for the internal use of the proto package.
  216. func (*ApplyRecommendationOperation) 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{}) {
  217. return _ApplyRecommendationOperation_OneofMarshaler, _ApplyRecommendationOperation_OneofUnmarshaler, _ApplyRecommendationOperation_OneofSizer, []interface{}{
  218. (*ApplyRecommendationOperation_CampaignBudget)(nil),
  219. (*ApplyRecommendationOperation_TextAd)(nil),
  220. (*ApplyRecommendationOperation_Keyword)(nil),
  221. (*ApplyRecommendationOperation_TargetCpaOptIn)(nil),
  222. }
  223. }
  224. func _ApplyRecommendationOperation_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  225. m := msg.(*ApplyRecommendationOperation)
  226. // apply_parameters
  227. switch x := m.ApplyParameters.(type) {
  228. case *ApplyRecommendationOperation_CampaignBudget:
  229. b.EncodeVarint(2<<3 | proto.WireBytes)
  230. if err := b.EncodeMessage(x.CampaignBudget); err != nil {
  231. return err
  232. }
  233. case *ApplyRecommendationOperation_TextAd:
  234. b.EncodeVarint(3<<3 | proto.WireBytes)
  235. if err := b.EncodeMessage(x.TextAd); err != nil {
  236. return err
  237. }
  238. case *ApplyRecommendationOperation_Keyword:
  239. b.EncodeVarint(4<<3 | proto.WireBytes)
  240. if err := b.EncodeMessage(x.Keyword); err != nil {
  241. return err
  242. }
  243. case *ApplyRecommendationOperation_TargetCpaOptIn:
  244. b.EncodeVarint(5<<3 | proto.WireBytes)
  245. if err := b.EncodeMessage(x.TargetCpaOptIn); err != nil {
  246. return err
  247. }
  248. case nil:
  249. default:
  250. return fmt.Errorf("ApplyRecommendationOperation.ApplyParameters has unexpected type %T", x)
  251. }
  252. return nil
  253. }
  254. func _ApplyRecommendationOperation_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  255. m := msg.(*ApplyRecommendationOperation)
  256. switch tag {
  257. case 2: // apply_parameters.campaign_budget
  258. if wire != proto.WireBytes {
  259. return true, proto.ErrInternalBadWireType
  260. }
  261. msg := new(ApplyRecommendationOperation_CampaignBudgetParameters)
  262. err := b.DecodeMessage(msg)
  263. m.ApplyParameters = &ApplyRecommendationOperation_CampaignBudget{msg}
  264. return true, err
  265. case 3: // apply_parameters.text_ad
  266. if wire != proto.WireBytes {
  267. return true, proto.ErrInternalBadWireType
  268. }
  269. msg := new(ApplyRecommendationOperation_TextAdParameters)
  270. err := b.DecodeMessage(msg)
  271. m.ApplyParameters = &ApplyRecommendationOperation_TextAd{msg}
  272. return true, err
  273. case 4: // apply_parameters.keyword
  274. if wire != proto.WireBytes {
  275. return true, proto.ErrInternalBadWireType
  276. }
  277. msg := new(ApplyRecommendationOperation_KeywordParameters)
  278. err := b.DecodeMessage(msg)
  279. m.ApplyParameters = &ApplyRecommendationOperation_Keyword{msg}
  280. return true, err
  281. case 5: // apply_parameters.target_cpa_opt_in
  282. if wire != proto.WireBytes {
  283. return true, proto.ErrInternalBadWireType
  284. }
  285. msg := new(ApplyRecommendationOperation_TargetCpaOptInParameters)
  286. err := b.DecodeMessage(msg)
  287. m.ApplyParameters = &ApplyRecommendationOperation_TargetCpaOptIn{msg}
  288. return true, err
  289. default:
  290. return false, nil
  291. }
  292. }
  293. func _ApplyRecommendationOperation_OneofSizer(msg proto.Message) (n int) {
  294. m := msg.(*ApplyRecommendationOperation)
  295. // apply_parameters
  296. switch x := m.ApplyParameters.(type) {
  297. case *ApplyRecommendationOperation_CampaignBudget:
  298. s := proto.Size(x.CampaignBudget)
  299. n += 1 // tag and wire
  300. n += proto.SizeVarint(uint64(s))
  301. n += s
  302. case *ApplyRecommendationOperation_TextAd:
  303. s := proto.Size(x.TextAd)
  304. n += 1 // tag and wire
  305. n += proto.SizeVarint(uint64(s))
  306. n += s
  307. case *ApplyRecommendationOperation_Keyword:
  308. s := proto.Size(x.Keyword)
  309. n += 1 // tag and wire
  310. n += proto.SizeVarint(uint64(s))
  311. n += s
  312. case *ApplyRecommendationOperation_TargetCpaOptIn:
  313. s := proto.Size(x.TargetCpaOptIn)
  314. n += 1 // tag and wire
  315. n += proto.SizeVarint(uint64(s))
  316. n += s
  317. case nil:
  318. default:
  319. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  320. }
  321. return n
  322. }
  323. // Parameters to use when applying a campaign budget recommendation.
  324. type ApplyRecommendationOperation_CampaignBudgetParameters struct {
  325. // New budget amount to set for target budget resource. This is a required
  326. // field.
  327. NewBudgetAmountMicros *wrappers.Int64Value `protobuf:"bytes,1,opt,name=new_budget_amount_micros,json=newBudgetAmountMicros,proto3" json:"new_budget_amount_micros,omitempty"`
  328. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  329. XXX_unrecognized []byte `json:"-"`
  330. XXX_sizecache int32 `json:"-"`
  331. }
  332. func (m *ApplyRecommendationOperation_CampaignBudgetParameters) Reset() {
  333. *m = ApplyRecommendationOperation_CampaignBudgetParameters{}
  334. }
  335. func (m *ApplyRecommendationOperation_CampaignBudgetParameters) String() string {
  336. return proto.CompactTextString(m)
  337. }
  338. func (*ApplyRecommendationOperation_CampaignBudgetParameters) ProtoMessage() {}
  339. func (*ApplyRecommendationOperation_CampaignBudgetParameters) Descriptor() ([]byte, []int) {
  340. return fileDescriptor_recommendation_service_49514a7817ff77b2, []int{2, 0}
  341. }
  342. func (m *ApplyRecommendationOperation_CampaignBudgetParameters) XXX_Unmarshal(b []byte) error {
  343. return xxx_messageInfo_ApplyRecommendationOperation_CampaignBudgetParameters.Unmarshal(m, b)
  344. }
  345. func (m *ApplyRecommendationOperation_CampaignBudgetParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  346. return xxx_messageInfo_ApplyRecommendationOperation_CampaignBudgetParameters.Marshal(b, m, deterministic)
  347. }
  348. func (dst *ApplyRecommendationOperation_CampaignBudgetParameters) XXX_Merge(src proto.Message) {
  349. xxx_messageInfo_ApplyRecommendationOperation_CampaignBudgetParameters.Merge(dst, src)
  350. }
  351. func (m *ApplyRecommendationOperation_CampaignBudgetParameters) XXX_Size() int {
  352. return xxx_messageInfo_ApplyRecommendationOperation_CampaignBudgetParameters.Size(m)
  353. }
  354. func (m *ApplyRecommendationOperation_CampaignBudgetParameters) XXX_DiscardUnknown() {
  355. xxx_messageInfo_ApplyRecommendationOperation_CampaignBudgetParameters.DiscardUnknown(m)
  356. }
  357. var xxx_messageInfo_ApplyRecommendationOperation_CampaignBudgetParameters proto.InternalMessageInfo
  358. func (m *ApplyRecommendationOperation_CampaignBudgetParameters) GetNewBudgetAmountMicros() *wrappers.Int64Value {
  359. if m != nil {
  360. return m.NewBudgetAmountMicros
  361. }
  362. return nil
  363. }
  364. // Parameters to use when applying a text ad recommendation.
  365. type ApplyRecommendationOperation_TextAdParameters struct {
  366. // New ad to add to recommended ad group. All necessary fields need to be
  367. // set in this message. This is a required field.
  368. Ad *resources.Ad `protobuf:"bytes,1,opt,name=ad,proto3" json:"ad,omitempty"`
  369. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  370. XXX_unrecognized []byte `json:"-"`
  371. XXX_sizecache int32 `json:"-"`
  372. }
  373. func (m *ApplyRecommendationOperation_TextAdParameters) Reset() {
  374. *m = ApplyRecommendationOperation_TextAdParameters{}
  375. }
  376. func (m *ApplyRecommendationOperation_TextAdParameters) String() string {
  377. return proto.CompactTextString(m)
  378. }
  379. func (*ApplyRecommendationOperation_TextAdParameters) ProtoMessage() {}
  380. func (*ApplyRecommendationOperation_TextAdParameters) Descriptor() ([]byte, []int) {
  381. return fileDescriptor_recommendation_service_49514a7817ff77b2, []int{2, 1}
  382. }
  383. func (m *ApplyRecommendationOperation_TextAdParameters) XXX_Unmarshal(b []byte) error {
  384. return xxx_messageInfo_ApplyRecommendationOperation_TextAdParameters.Unmarshal(m, b)
  385. }
  386. func (m *ApplyRecommendationOperation_TextAdParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  387. return xxx_messageInfo_ApplyRecommendationOperation_TextAdParameters.Marshal(b, m, deterministic)
  388. }
  389. func (dst *ApplyRecommendationOperation_TextAdParameters) XXX_Merge(src proto.Message) {
  390. xxx_messageInfo_ApplyRecommendationOperation_TextAdParameters.Merge(dst, src)
  391. }
  392. func (m *ApplyRecommendationOperation_TextAdParameters) XXX_Size() int {
  393. return xxx_messageInfo_ApplyRecommendationOperation_TextAdParameters.Size(m)
  394. }
  395. func (m *ApplyRecommendationOperation_TextAdParameters) XXX_DiscardUnknown() {
  396. xxx_messageInfo_ApplyRecommendationOperation_TextAdParameters.DiscardUnknown(m)
  397. }
  398. var xxx_messageInfo_ApplyRecommendationOperation_TextAdParameters proto.InternalMessageInfo
  399. func (m *ApplyRecommendationOperation_TextAdParameters) GetAd() *resources.Ad {
  400. if m != nil {
  401. return m.Ad
  402. }
  403. return nil
  404. }
  405. // Parameters to use when applying keyword recommendation.
  406. type ApplyRecommendationOperation_KeywordParameters struct {
  407. // The ad group resource to add keyword to. This is a required field.
  408. AdGroup *wrappers.StringValue `protobuf:"bytes,1,opt,name=ad_group,json=adGroup,proto3" json:"ad_group,omitempty"`
  409. // The match type of the keyword. This is a required field.
  410. MatchType enums.KeywordMatchTypeEnum_KeywordMatchType `protobuf:"varint,2,opt,name=match_type,json=matchType,proto3,enum=google.ads.googleads.v0.enums.KeywordMatchTypeEnum_KeywordMatchType" json:"match_type,omitempty"`
  411. // Optional, CPC bid to set for the keyword. If not set, keyword will use
  412. // bid based on bidding strategy used by target ad group.
  413. CpcBidMicros *wrappers.Int64Value `protobuf:"bytes,3,opt,name=cpc_bid_micros,json=cpcBidMicros,proto3" json:"cpc_bid_micros,omitempty"`
  414. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  415. XXX_unrecognized []byte `json:"-"`
  416. XXX_sizecache int32 `json:"-"`
  417. }
  418. func (m *ApplyRecommendationOperation_KeywordParameters) Reset() {
  419. *m = ApplyRecommendationOperation_KeywordParameters{}
  420. }
  421. func (m *ApplyRecommendationOperation_KeywordParameters) String() string {
  422. return proto.CompactTextString(m)
  423. }
  424. func (*ApplyRecommendationOperation_KeywordParameters) ProtoMessage() {}
  425. func (*ApplyRecommendationOperation_KeywordParameters) Descriptor() ([]byte, []int) {
  426. return fileDescriptor_recommendation_service_49514a7817ff77b2, []int{2, 2}
  427. }
  428. func (m *ApplyRecommendationOperation_KeywordParameters) XXX_Unmarshal(b []byte) error {
  429. return xxx_messageInfo_ApplyRecommendationOperation_KeywordParameters.Unmarshal(m, b)
  430. }
  431. func (m *ApplyRecommendationOperation_KeywordParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  432. return xxx_messageInfo_ApplyRecommendationOperation_KeywordParameters.Marshal(b, m, deterministic)
  433. }
  434. func (dst *ApplyRecommendationOperation_KeywordParameters) XXX_Merge(src proto.Message) {
  435. xxx_messageInfo_ApplyRecommendationOperation_KeywordParameters.Merge(dst, src)
  436. }
  437. func (m *ApplyRecommendationOperation_KeywordParameters) XXX_Size() int {
  438. return xxx_messageInfo_ApplyRecommendationOperation_KeywordParameters.Size(m)
  439. }
  440. func (m *ApplyRecommendationOperation_KeywordParameters) XXX_DiscardUnknown() {
  441. xxx_messageInfo_ApplyRecommendationOperation_KeywordParameters.DiscardUnknown(m)
  442. }
  443. var xxx_messageInfo_ApplyRecommendationOperation_KeywordParameters proto.InternalMessageInfo
  444. func (m *ApplyRecommendationOperation_KeywordParameters) GetAdGroup() *wrappers.StringValue {
  445. if m != nil {
  446. return m.AdGroup
  447. }
  448. return nil
  449. }
  450. func (m *ApplyRecommendationOperation_KeywordParameters) GetMatchType() enums.KeywordMatchTypeEnum_KeywordMatchType {
  451. if m != nil {
  452. return m.MatchType
  453. }
  454. return enums.KeywordMatchTypeEnum_UNSPECIFIED
  455. }
  456. func (m *ApplyRecommendationOperation_KeywordParameters) GetCpcBidMicros() *wrappers.Int64Value {
  457. if m != nil {
  458. return m.CpcBidMicros
  459. }
  460. return nil
  461. }
  462. // Parameters to use when applying Target CPA recommendation.
  463. type ApplyRecommendationOperation_TargetCpaOptInParameters struct {
  464. // Average CPA to use for Target CPA bidding strategy. This is a required
  465. // field.
  466. TargetCpaMicros *wrappers.Int64Value `protobuf:"bytes,1,opt,name=target_cpa_micros,json=targetCpaMicros,proto3" json:"target_cpa_micros,omitempty"`
  467. // Optional, budget amount to set for the campaign.
  468. NewCampaignBudgetAmountMicros *wrappers.Int64Value `protobuf:"bytes,2,opt,name=new_campaign_budget_amount_micros,json=newCampaignBudgetAmountMicros,proto3" json:"new_campaign_budget_amount_micros,omitempty"`
  469. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  470. XXX_unrecognized []byte `json:"-"`
  471. XXX_sizecache int32 `json:"-"`
  472. }
  473. func (m *ApplyRecommendationOperation_TargetCpaOptInParameters) Reset() {
  474. *m = ApplyRecommendationOperation_TargetCpaOptInParameters{}
  475. }
  476. func (m *ApplyRecommendationOperation_TargetCpaOptInParameters) String() string {
  477. return proto.CompactTextString(m)
  478. }
  479. func (*ApplyRecommendationOperation_TargetCpaOptInParameters) ProtoMessage() {}
  480. func (*ApplyRecommendationOperation_TargetCpaOptInParameters) Descriptor() ([]byte, []int) {
  481. return fileDescriptor_recommendation_service_49514a7817ff77b2, []int{2, 3}
  482. }
  483. func (m *ApplyRecommendationOperation_TargetCpaOptInParameters) XXX_Unmarshal(b []byte) error {
  484. return xxx_messageInfo_ApplyRecommendationOperation_TargetCpaOptInParameters.Unmarshal(m, b)
  485. }
  486. func (m *ApplyRecommendationOperation_TargetCpaOptInParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  487. return xxx_messageInfo_ApplyRecommendationOperation_TargetCpaOptInParameters.Marshal(b, m, deterministic)
  488. }
  489. func (dst *ApplyRecommendationOperation_TargetCpaOptInParameters) XXX_Merge(src proto.Message) {
  490. xxx_messageInfo_ApplyRecommendationOperation_TargetCpaOptInParameters.Merge(dst, src)
  491. }
  492. func (m *ApplyRecommendationOperation_TargetCpaOptInParameters) XXX_Size() int {
  493. return xxx_messageInfo_ApplyRecommendationOperation_TargetCpaOptInParameters.Size(m)
  494. }
  495. func (m *ApplyRecommendationOperation_TargetCpaOptInParameters) XXX_DiscardUnknown() {
  496. xxx_messageInfo_ApplyRecommendationOperation_TargetCpaOptInParameters.DiscardUnknown(m)
  497. }
  498. var xxx_messageInfo_ApplyRecommendationOperation_TargetCpaOptInParameters proto.InternalMessageInfo
  499. func (m *ApplyRecommendationOperation_TargetCpaOptInParameters) GetTargetCpaMicros() *wrappers.Int64Value {
  500. if m != nil {
  501. return m.TargetCpaMicros
  502. }
  503. return nil
  504. }
  505. func (m *ApplyRecommendationOperation_TargetCpaOptInParameters) GetNewCampaignBudgetAmountMicros() *wrappers.Int64Value {
  506. if m != nil {
  507. return m.NewCampaignBudgetAmountMicros
  508. }
  509. return nil
  510. }
  511. // Response message for
  512. // [RecommendationService.ApplyRecommendation][google.ads.googleads.v0.services.RecommendationService.ApplyRecommendation].
  513. type ApplyRecommendationResponse struct {
  514. // Results of operations to apply recommendations.
  515. Results []*ApplyRecommendationResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
  516. // Errors that pertain to operation failures in the partial failure mode.
  517. // Returned only when partial_failure = true and all errors occur inside the
  518. // operations. If any errors occur outside the operations (e.g. auth errors)
  519. // we return the RPC level error.
  520. PartialFailureError *status.Status `protobuf:"bytes,2,opt,name=partial_failure_error,json=partialFailureError,proto3" json:"partial_failure_error,omitempty"`
  521. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  522. XXX_unrecognized []byte `json:"-"`
  523. XXX_sizecache int32 `json:"-"`
  524. }
  525. func (m *ApplyRecommendationResponse) Reset() { *m = ApplyRecommendationResponse{} }
  526. func (m *ApplyRecommendationResponse) String() string { return proto.CompactTextString(m) }
  527. func (*ApplyRecommendationResponse) ProtoMessage() {}
  528. func (*ApplyRecommendationResponse) Descriptor() ([]byte, []int) {
  529. return fileDescriptor_recommendation_service_49514a7817ff77b2, []int{3}
  530. }
  531. func (m *ApplyRecommendationResponse) XXX_Unmarshal(b []byte) error {
  532. return xxx_messageInfo_ApplyRecommendationResponse.Unmarshal(m, b)
  533. }
  534. func (m *ApplyRecommendationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  535. return xxx_messageInfo_ApplyRecommendationResponse.Marshal(b, m, deterministic)
  536. }
  537. func (dst *ApplyRecommendationResponse) XXX_Merge(src proto.Message) {
  538. xxx_messageInfo_ApplyRecommendationResponse.Merge(dst, src)
  539. }
  540. func (m *ApplyRecommendationResponse) XXX_Size() int {
  541. return xxx_messageInfo_ApplyRecommendationResponse.Size(m)
  542. }
  543. func (m *ApplyRecommendationResponse) XXX_DiscardUnknown() {
  544. xxx_messageInfo_ApplyRecommendationResponse.DiscardUnknown(m)
  545. }
  546. var xxx_messageInfo_ApplyRecommendationResponse proto.InternalMessageInfo
  547. func (m *ApplyRecommendationResponse) GetResults() []*ApplyRecommendationResult {
  548. if m != nil {
  549. return m.Results
  550. }
  551. return nil
  552. }
  553. func (m *ApplyRecommendationResponse) GetPartialFailureError() *status.Status {
  554. if m != nil {
  555. return m.PartialFailureError
  556. }
  557. return nil
  558. }
  559. // The result of applying a recommendation.
  560. type ApplyRecommendationResult struct {
  561. // Returned for successful applies.
  562. ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
  563. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  564. XXX_unrecognized []byte `json:"-"`
  565. XXX_sizecache int32 `json:"-"`
  566. }
  567. func (m *ApplyRecommendationResult) Reset() { *m = ApplyRecommendationResult{} }
  568. func (m *ApplyRecommendationResult) String() string { return proto.CompactTextString(m) }
  569. func (*ApplyRecommendationResult) ProtoMessage() {}
  570. func (*ApplyRecommendationResult) Descriptor() ([]byte, []int) {
  571. return fileDescriptor_recommendation_service_49514a7817ff77b2, []int{4}
  572. }
  573. func (m *ApplyRecommendationResult) XXX_Unmarshal(b []byte) error {
  574. return xxx_messageInfo_ApplyRecommendationResult.Unmarshal(m, b)
  575. }
  576. func (m *ApplyRecommendationResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  577. return xxx_messageInfo_ApplyRecommendationResult.Marshal(b, m, deterministic)
  578. }
  579. func (dst *ApplyRecommendationResult) XXX_Merge(src proto.Message) {
  580. xxx_messageInfo_ApplyRecommendationResult.Merge(dst, src)
  581. }
  582. func (m *ApplyRecommendationResult) XXX_Size() int {
  583. return xxx_messageInfo_ApplyRecommendationResult.Size(m)
  584. }
  585. func (m *ApplyRecommendationResult) XXX_DiscardUnknown() {
  586. xxx_messageInfo_ApplyRecommendationResult.DiscardUnknown(m)
  587. }
  588. var xxx_messageInfo_ApplyRecommendationResult proto.InternalMessageInfo
  589. func (m *ApplyRecommendationResult) GetResourceName() string {
  590. if m != nil {
  591. return m.ResourceName
  592. }
  593. return ""
  594. }
  595. // Request message for
  596. // [RecommendationService.DismissRecommendation][google.ads.googleads.v0.services.RecommendationService.DismissRecommendation].
  597. type DismissRecommendationRequest struct {
  598. // The ID of the customer with the recommendation.
  599. CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
  600. // The list of operations to dismiss recommendations.
  601. // If partial_failure=false all recommendations should be of the same type
  602. // There is a limit of 100 operations per request.
  603. Operations []*DismissRecommendationRequest_DismissRecommendationOperation `protobuf:"bytes,3,rep,name=operations,proto3" json:"operations,omitempty"`
  604. // If true, successful operations will be carried out and invalid
  605. // operations will return errors. If false, operations will be carried in a
  606. // single transaction if and only if they are all valid.
  607. // Default is false.
  608. PartialFailure bool `protobuf:"varint,2,opt,name=partial_failure,json=partialFailure,proto3" json:"partial_failure,omitempty"`
  609. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  610. XXX_unrecognized []byte `json:"-"`
  611. XXX_sizecache int32 `json:"-"`
  612. }
  613. func (m *DismissRecommendationRequest) Reset() { *m = DismissRecommendationRequest{} }
  614. func (m *DismissRecommendationRequest) String() string { return proto.CompactTextString(m) }
  615. func (*DismissRecommendationRequest) ProtoMessage() {}
  616. func (*DismissRecommendationRequest) Descriptor() ([]byte, []int) {
  617. return fileDescriptor_recommendation_service_49514a7817ff77b2, []int{5}
  618. }
  619. func (m *DismissRecommendationRequest) XXX_Unmarshal(b []byte) error {
  620. return xxx_messageInfo_DismissRecommendationRequest.Unmarshal(m, b)
  621. }
  622. func (m *DismissRecommendationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  623. return xxx_messageInfo_DismissRecommendationRequest.Marshal(b, m, deterministic)
  624. }
  625. func (dst *DismissRecommendationRequest) XXX_Merge(src proto.Message) {
  626. xxx_messageInfo_DismissRecommendationRequest.Merge(dst, src)
  627. }
  628. func (m *DismissRecommendationRequest) XXX_Size() int {
  629. return xxx_messageInfo_DismissRecommendationRequest.Size(m)
  630. }
  631. func (m *DismissRecommendationRequest) XXX_DiscardUnknown() {
  632. xxx_messageInfo_DismissRecommendationRequest.DiscardUnknown(m)
  633. }
  634. var xxx_messageInfo_DismissRecommendationRequest proto.InternalMessageInfo
  635. func (m *DismissRecommendationRequest) GetCustomerId() string {
  636. if m != nil {
  637. return m.CustomerId
  638. }
  639. return ""
  640. }
  641. func (m *DismissRecommendationRequest) GetOperations() []*DismissRecommendationRequest_DismissRecommendationOperation {
  642. if m != nil {
  643. return m.Operations
  644. }
  645. return nil
  646. }
  647. func (m *DismissRecommendationRequest) GetPartialFailure() bool {
  648. if m != nil {
  649. return m.PartialFailure
  650. }
  651. return false
  652. }
  653. // Operation to dismiss a single recommendation identified by resource_name.
  654. type DismissRecommendationRequest_DismissRecommendationOperation struct {
  655. // The resource name of the recommendation to dismiss.
  656. ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
  657. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  658. XXX_unrecognized []byte `json:"-"`
  659. XXX_sizecache int32 `json:"-"`
  660. }
  661. func (m *DismissRecommendationRequest_DismissRecommendationOperation) Reset() {
  662. *m = DismissRecommendationRequest_DismissRecommendationOperation{}
  663. }
  664. func (m *DismissRecommendationRequest_DismissRecommendationOperation) String() string {
  665. return proto.CompactTextString(m)
  666. }
  667. func (*DismissRecommendationRequest_DismissRecommendationOperation) ProtoMessage() {}
  668. func (*DismissRecommendationRequest_DismissRecommendationOperation) Descriptor() ([]byte, []int) {
  669. return fileDescriptor_recommendation_service_49514a7817ff77b2, []int{5, 0}
  670. }
  671. func (m *DismissRecommendationRequest_DismissRecommendationOperation) XXX_Unmarshal(b []byte) error {
  672. return xxx_messageInfo_DismissRecommendationRequest_DismissRecommendationOperation.Unmarshal(m, b)
  673. }
  674. func (m *DismissRecommendationRequest_DismissRecommendationOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  675. return xxx_messageInfo_DismissRecommendationRequest_DismissRecommendationOperation.Marshal(b, m, deterministic)
  676. }
  677. func (dst *DismissRecommendationRequest_DismissRecommendationOperation) XXX_Merge(src proto.Message) {
  678. xxx_messageInfo_DismissRecommendationRequest_DismissRecommendationOperation.Merge(dst, src)
  679. }
  680. func (m *DismissRecommendationRequest_DismissRecommendationOperation) XXX_Size() int {
  681. return xxx_messageInfo_DismissRecommendationRequest_DismissRecommendationOperation.Size(m)
  682. }
  683. func (m *DismissRecommendationRequest_DismissRecommendationOperation) XXX_DiscardUnknown() {
  684. xxx_messageInfo_DismissRecommendationRequest_DismissRecommendationOperation.DiscardUnknown(m)
  685. }
  686. var xxx_messageInfo_DismissRecommendationRequest_DismissRecommendationOperation proto.InternalMessageInfo
  687. func (m *DismissRecommendationRequest_DismissRecommendationOperation) GetResourceName() string {
  688. if m != nil {
  689. return m.ResourceName
  690. }
  691. return ""
  692. }
  693. // Response message for
  694. // [RecommendationService.DismissRecommendation][google.ads.googleads.v0.services.RecommendationService.DismissRecommendation].
  695. type DismissRecommendationResponse struct {
  696. // Results of operations to dismiss recommendations.
  697. Results []*DismissRecommendationResponse_DismissRecommendationResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
  698. // Errors that pertain to operation failures in the partial failure mode.
  699. // Returned only when partial_failure = true and all errors occur inside the
  700. // operations. If any errors occur outside the operations (e.g. auth errors)
  701. // we return the RPC level error.
  702. PartialFailureError *status.Status `protobuf:"bytes,2,opt,name=partial_failure_error,json=partialFailureError,proto3" json:"partial_failure_error,omitempty"`
  703. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  704. XXX_unrecognized []byte `json:"-"`
  705. XXX_sizecache int32 `json:"-"`
  706. }
  707. func (m *DismissRecommendationResponse) Reset() { *m = DismissRecommendationResponse{} }
  708. func (m *DismissRecommendationResponse) String() string { return proto.CompactTextString(m) }
  709. func (*DismissRecommendationResponse) ProtoMessage() {}
  710. func (*DismissRecommendationResponse) Descriptor() ([]byte, []int) {
  711. return fileDescriptor_recommendation_service_49514a7817ff77b2, []int{6}
  712. }
  713. func (m *DismissRecommendationResponse) XXX_Unmarshal(b []byte) error {
  714. return xxx_messageInfo_DismissRecommendationResponse.Unmarshal(m, b)
  715. }
  716. func (m *DismissRecommendationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  717. return xxx_messageInfo_DismissRecommendationResponse.Marshal(b, m, deterministic)
  718. }
  719. func (dst *DismissRecommendationResponse) XXX_Merge(src proto.Message) {
  720. xxx_messageInfo_DismissRecommendationResponse.Merge(dst, src)
  721. }
  722. func (m *DismissRecommendationResponse) XXX_Size() int {
  723. return xxx_messageInfo_DismissRecommendationResponse.Size(m)
  724. }
  725. func (m *DismissRecommendationResponse) XXX_DiscardUnknown() {
  726. xxx_messageInfo_DismissRecommendationResponse.DiscardUnknown(m)
  727. }
  728. var xxx_messageInfo_DismissRecommendationResponse proto.InternalMessageInfo
  729. func (m *DismissRecommendationResponse) GetResults() []*DismissRecommendationResponse_DismissRecommendationResult {
  730. if m != nil {
  731. return m.Results
  732. }
  733. return nil
  734. }
  735. func (m *DismissRecommendationResponse) GetPartialFailureError() *status.Status {
  736. if m != nil {
  737. return m.PartialFailureError
  738. }
  739. return nil
  740. }
  741. // The result of dismissing a recommendation.
  742. type DismissRecommendationResponse_DismissRecommendationResult struct {
  743. // Returned for successful dismissals.
  744. ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
  745. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  746. XXX_unrecognized []byte `json:"-"`
  747. XXX_sizecache int32 `json:"-"`
  748. }
  749. func (m *DismissRecommendationResponse_DismissRecommendationResult) Reset() {
  750. *m = DismissRecommendationResponse_DismissRecommendationResult{}
  751. }
  752. func (m *DismissRecommendationResponse_DismissRecommendationResult) String() string {
  753. return proto.CompactTextString(m)
  754. }
  755. func (*DismissRecommendationResponse_DismissRecommendationResult) ProtoMessage() {}
  756. func (*DismissRecommendationResponse_DismissRecommendationResult) Descriptor() ([]byte, []int) {
  757. return fileDescriptor_recommendation_service_49514a7817ff77b2, []int{6, 0}
  758. }
  759. func (m *DismissRecommendationResponse_DismissRecommendationResult) XXX_Unmarshal(b []byte) error {
  760. return xxx_messageInfo_DismissRecommendationResponse_DismissRecommendationResult.Unmarshal(m, b)
  761. }
  762. func (m *DismissRecommendationResponse_DismissRecommendationResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  763. return xxx_messageInfo_DismissRecommendationResponse_DismissRecommendationResult.Marshal(b, m, deterministic)
  764. }
  765. func (dst *DismissRecommendationResponse_DismissRecommendationResult) XXX_Merge(src proto.Message) {
  766. xxx_messageInfo_DismissRecommendationResponse_DismissRecommendationResult.Merge(dst, src)
  767. }
  768. func (m *DismissRecommendationResponse_DismissRecommendationResult) XXX_Size() int {
  769. return xxx_messageInfo_DismissRecommendationResponse_DismissRecommendationResult.Size(m)
  770. }
  771. func (m *DismissRecommendationResponse_DismissRecommendationResult) XXX_DiscardUnknown() {
  772. xxx_messageInfo_DismissRecommendationResponse_DismissRecommendationResult.DiscardUnknown(m)
  773. }
  774. var xxx_messageInfo_DismissRecommendationResponse_DismissRecommendationResult proto.InternalMessageInfo
  775. func (m *DismissRecommendationResponse_DismissRecommendationResult) GetResourceName() string {
  776. if m != nil {
  777. return m.ResourceName
  778. }
  779. return ""
  780. }
  781. func init() {
  782. proto.RegisterType((*GetRecommendationRequest)(nil), "google.ads.googleads.v0.services.GetRecommendationRequest")
  783. proto.RegisterType((*ApplyRecommendationRequest)(nil), "google.ads.googleads.v0.services.ApplyRecommendationRequest")
  784. proto.RegisterType((*ApplyRecommendationOperation)(nil), "google.ads.googleads.v0.services.ApplyRecommendationOperation")
  785. proto.RegisterType((*ApplyRecommendationOperation_CampaignBudgetParameters)(nil), "google.ads.googleads.v0.services.ApplyRecommendationOperation.CampaignBudgetParameters")
  786. proto.RegisterType((*ApplyRecommendationOperation_TextAdParameters)(nil), "google.ads.googleads.v0.services.ApplyRecommendationOperation.TextAdParameters")
  787. proto.RegisterType((*ApplyRecommendationOperation_KeywordParameters)(nil), "google.ads.googleads.v0.services.ApplyRecommendationOperation.KeywordParameters")
  788. proto.RegisterType((*ApplyRecommendationOperation_TargetCpaOptInParameters)(nil), "google.ads.googleads.v0.services.ApplyRecommendationOperation.TargetCpaOptInParameters")
  789. proto.RegisterType((*ApplyRecommendationResponse)(nil), "google.ads.googleads.v0.services.ApplyRecommendationResponse")
  790. proto.RegisterType((*ApplyRecommendationResult)(nil), "google.ads.googleads.v0.services.ApplyRecommendationResult")
  791. proto.RegisterType((*DismissRecommendationRequest)(nil), "google.ads.googleads.v0.services.DismissRecommendationRequest")
  792. proto.RegisterType((*DismissRecommendationRequest_DismissRecommendationOperation)(nil), "google.ads.googleads.v0.services.DismissRecommendationRequest.DismissRecommendationOperation")
  793. proto.RegisterType((*DismissRecommendationResponse)(nil), "google.ads.googleads.v0.services.DismissRecommendationResponse")
  794. proto.RegisterType((*DismissRecommendationResponse_DismissRecommendationResult)(nil), "google.ads.googleads.v0.services.DismissRecommendationResponse.DismissRecommendationResult")
  795. }
  796. // Reference imports to suppress errors if they are not otherwise used.
  797. var _ context.Context
  798. var _ grpc.ClientConn
  799. // This is a compile-time assertion to ensure that this generated file
  800. // is compatible with the grpc package it is being compiled against.
  801. const _ = grpc.SupportPackageIsVersion4
  802. // RecommendationServiceClient is the client API for RecommendationService service.
  803. //
  804. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  805. type RecommendationServiceClient interface {
  806. // Returns the requested recommendation in full detail.
  807. GetRecommendation(ctx context.Context, in *GetRecommendationRequest, opts ...grpc.CallOption) (*resources.Recommendation, error)
  808. // Applies given recommendations with corresponding apply parameters.
  809. ApplyRecommendation(ctx context.Context, in *ApplyRecommendationRequest, opts ...grpc.CallOption) (*ApplyRecommendationResponse, error)
  810. // Dismisses given recommendations.
  811. DismissRecommendation(ctx context.Context, in *DismissRecommendationRequest, opts ...grpc.CallOption) (*DismissRecommendationResponse, error)
  812. }
  813. type recommendationServiceClient struct {
  814. cc *grpc.ClientConn
  815. }
  816. func NewRecommendationServiceClient(cc *grpc.ClientConn) RecommendationServiceClient {
  817. return &recommendationServiceClient{cc}
  818. }
  819. func (c *recommendationServiceClient) GetRecommendation(ctx context.Context, in *GetRecommendationRequest, opts ...grpc.CallOption) (*resources.Recommendation, error) {
  820. out := new(resources.Recommendation)
  821. err := c.cc.Invoke(ctx, "/google.ads.googleads.v0.services.RecommendationService/GetRecommendation", in, out, opts...)
  822. if err != nil {
  823. return nil, err
  824. }
  825. return out, nil
  826. }
  827. func (c *recommendationServiceClient) ApplyRecommendation(ctx context.Context, in *ApplyRecommendationRequest, opts ...grpc.CallOption) (*ApplyRecommendationResponse, error) {
  828. out := new(ApplyRecommendationResponse)
  829. err := c.cc.Invoke(ctx, "/google.ads.googleads.v0.services.RecommendationService/ApplyRecommendation", in, out, opts...)
  830. if err != nil {
  831. return nil, err
  832. }
  833. return out, nil
  834. }
  835. func (c *recommendationServiceClient) DismissRecommendation(ctx context.Context, in *DismissRecommendationRequest, opts ...grpc.CallOption) (*DismissRecommendationResponse, error) {
  836. out := new(DismissRecommendationResponse)
  837. err := c.cc.Invoke(ctx, "/google.ads.googleads.v0.services.RecommendationService/DismissRecommendation", in, out, opts...)
  838. if err != nil {
  839. return nil, err
  840. }
  841. return out, nil
  842. }
  843. // RecommendationServiceServer is the server API for RecommendationService service.
  844. type RecommendationServiceServer interface {
  845. // Returns the requested recommendation in full detail.
  846. GetRecommendation(context.Context, *GetRecommendationRequest) (*resources.Recommendation, error)
  847. // Applies given recommendations with corresponding apply parameters.
  848. ApplyRecommendation(context.Context, *ApplyRecommendationRequest) (*ApplyRecommendationResponse, error)
  849. // Dismisses given recommendations.
  850. DismissRecommendation(context.Context, *DismissRecommendationRequest) (*DismissRecommendationResponse, error)
  851. }
  852. func RegisterRecommendationServiceServer(s *grpc.Server, srv RecommendationServiceServer) {
  853. s.RegisterService(&_RecommendationService_serviceDesc, srv)
  854. }
  855. func _RecommendationService_GetRecommendation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  856. in := new(GetRecommendationRequest)
  857. if err := dec(in); err != nil {
  858. return nil, err
  859. }
  860. if interceptor == nil {
  861. return srv.(RecommendationServiceServer).GetRecommendation(ctx, in)
  862. }
  863. info := &grpc.UnaryServerInfo{
  864. Server: srv,
  865. FullMethod: "/google.ads.googleads.v0.services.RecommendationService/GetRecommendation",
  866. }
  867. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  868. return srv.(RecommendationServiceServer).GetRecommendation(ctx, req.(*GetRecommendationRequest))
  869. }
  870. return interceptor(ctx, in, info, handler)
  871. }
  872. func _RecommendationService_ApplyRecommendation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  873. in := new(ApplyRecommendationRequest)
  874. if err := dec(in); err != nil {
  875. return nil, err
  876. }
  877. if interceptor == nil {
  878. return srv.(RecommendationServiceServer).ApplyRecommendation(ctx, in)
  879. }
  880. info := &grpc.UnaryServerInfo{
  881. Server: srv,
  882. FullMethod: "/google.ads.googleads.v0.services.RecommendationService/ApplyRecommendation",
  883. }
  884. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  885. return srv.(RecommendationServiceServer).ApplyRecommendation(ctx, req.(*ApplyRecommendationRequest))
  886. }
  887. return interceptor(ctx, in, info, handler)
  888. }
  889. func _RecommendationService_DismissRecommendation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  890. in := new(DismissRecommendationRequest)
  891. if err := dec(in); err != nil {
  892. return nil, err
  893. }
  894. if interceptor == nil {
  895. return srv.(RecommendationServiceServer).DismissRecommendation(ctx, in)
  896. }
  897. info := &grpc.UnaryServerInfo{
  898. Server: srv,
  899. FullMethod: "/google.ads.googleads.v0.services.RecommendationService/DismissRecommendation",
  900. }
  901. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  902. return srv.(RecommendationServiceServer).DismissRecommendation(ctx, req.(*DismissRecommendationRequest))
  903. }
  904. return interceptor(ctx, in, info, handler)
  905. }
  906. var _RecommendationService_serviceDesc = grpc.ServiceDesc{
  907. ServiceName: "google.ads.googleads.v0.services.RecommendationService",
  908. HandlerType: (*RecommendationServiceServer)(nil),
  909. Methods: []grpc.MethodDesc{
  910. {
  911. MethodName: "GetRecommendation",
  912. Handler: _RecommendationService_GetRecommendation_Handler,
  913. },
  914. {
  915. MethodName: "ApplyRecommendation",
  916. Handler: _RecommendationService_ApplyRecommendation_Handler,
  917. },
  918. {
  919. MethodName: "DismissRecommendation",
  920. Handler: _RecommendationService_DismissRecommendation_Handler,
  921. },
  922. },
  923. Streams: []grpc.StreamDesc{},
  924. Metadata: "google/ads/googleads/v0/services/recommendation_service.proto",
  925. }
  926. func init() {
  927. proto.RegisterFile("google/ads/googleads/v0/services/recommendation_service.proto", fileDescriptor_recommendation_service_49514a7817ff77b2)
  928. }
  929. var fileDescriptor_recommendation_service_49514a7817ff77b2 = []byte{
  930. // 1088 bytes of a gzipped FileDescriptorProto
  931. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xc1, 0x72, 0xdc, 0x44,
  932. 0x10, 0x45, 0x32, 0x89, 0xe3, 0x71, 0xb0, 0xe3, 0x49, 0xb9, 0x58, 0x64, 0x27, 0x2c, 0x4b, 0x28,
  933. 0x5c, 0x7b, 0x90, 0x9c, 0x35, 0x31, 0xa0, 0x60, 0x27, 0xda, 0xc4, 0x71, 0x5c, 0x54, 0xb0, 0x4b,
  934. 0x36, 0xa6, 0x0a, 0x0c, 0xaa, 0xb1, 0x66, 0x22, 0x04, 0x2b, 0x69, 0x98, 0x19, 0xd9, 0x71, 0xa5,
  935. 0x7c, 0x20, 0xc5, 0x85, 0x33, 0x7f, 0x90, 0x23, 0x07, 0xbe, 0x00, 0x38, 0x72, 0xc8, 0x11, 0x6e,
  936. 0x9c, 0x39, 0x71, 0xe6, 0x03, 0x28, 0x8d, 0x34, 0x1b, 0x6b, 0xbd, 0xf2, 0x2e, 0x36, 0xb9, 0xcd,
  937. 0x4e, 0x77, 0xbf, 0xee, 0xd7, 0xdd, 0xd3, 0xad, 0x05, 0x4b, 0x41, 0x92, 0x04, 0x1d, 0x62, 0x21,
  938. 0xcc, 0xad, 0xfc, 0x98, 0x9d, 0xf6, 0xe6, 0x2d, 0x4e, 0xd8, 0x5e, 0xe8, 0x13, 0x6e, 0x31, 0xe2,
  939. 0x27, 0x51, 0x44, 0x62, 0x8c, 0x44, 0x98, 0xc4, 0x5e, 0x71, 0x6f, 0x52, 0x96, 0x88, 0x04, 0xd6,
  940. 0x73, 0x1b, 0x13, 0x61, 0x6e, 0x76, 0xcd, 0xcd, 0xbd, 0x79, 0x53, 0x99, 0x1b, 0x8b, 0x55, 0x0e,
  941. 0x48, 0x9c, 0x46, 0xdc, 0xfa, 0x9a, 0x1c, 0xec, 0x27, 0x0c, 0x7b, 0x11, 0x12, 0xfe, 0x97, 0x9e,
  942. 0x38, 0xa0, 0x05, 0xb2, 0xd1, 0xac, 0xb2, 0x63, 0x84, 0x27, 0x29, 0xcb, 0x22, 0x43, 0xb8, 0xd0,
  943. 0x5d, 0x1c, 0xac, 0x5b, 0x66, 0x51, 0xd8, 0xcd, 0x2a, 0x3b, 0x1a, 0x5a, 0x28, 0x8e, 0x13, 0x21,
  944. 0x85, 0xbc, 0x90, 0x5e, 0x2d, 0xa4, 0xf2, 0xd7, 0x6e, 0xfa, 0xd0, 0xda, 0x67, 0x88, 0x52, 0xc2,
  945. 0x94, 0xfc, 0xd5, 0x42, 0xce, 0xa8, 0x6f, 0x71, 0x81, 0x44, 0x5a, 0x08, 0x1a, 0xb7, 0x40, 0x6d,
  946. 0x95, 0x08, 0xb7, 0xe4, 0xd1, 0x25, 0xdf, 0xa4, 0x84, 0x0b, 0xf8, 0x26, 0x78, 0x45, 0x05, 0xe5,
  947. 0xc5, 0x28, 0x22, 0x35, 0xad, 0xae, 0xcd, 0x8d, 0xb9, 0x17, 0xd5, 0xe5, 0x47, 0x28, 0x22, 0x8d,
  948. 0xdf, 0x34, 0x60, 0x38, 0x94, 0x76, 0x0e, 0xfa, 0x63, 0xbc, 0x0e, 0xc6, 0xfd, 0x94, 0x8b, 0x24,
  949. 0x22, 0xcc, 0x0b, 0x71, 0x81, 0x00, 0xd4, 0xd5, 0x1a, 0x86, 0x5f, 0x00, 0x90, 0x50, 0xc2, 0x72,
  950. 0x36, 0x35, 0xbd, 0x3e, 0x32, 0x37, 0xde, 0x5a, 0x36, 0x07, 0x95, 0xca, 0xec, 0xe3, 0x72, 0x5d,
  951. 0xc1, 0xb8, 0x47, 0x10, 0xe1, 0xdb, 0x60, 0x92, 0x22, 0x26, 0x42, 0xd4, 0xf1, 0x1e, 0xa2, 0xb0,
  952. 0x93, 0x32, 0x52, 0x1b, 0xa9, 0x6b, 0x73, 0x17, 0xdc, 0x89, 0xe2, 0xfa, 0x5e, 0x7e, 0xdb, 0xf8,
  953. 0x75, 0x0c, 0xcc, 0x9e, 0x84, 0x3a, 0x54, 0x3a, 0xe0, 0x13, 0x0d, 0x4c, 0xfa, 0x28, 0xa2, 0x28,
  954. 0x0c, 0x62, 0x6f, 0x37, 0xc5, 0x01, 0x11, 0x35, 0xbd, 0xae, 0xcd, 0x8d, 0xb7, 0x3e, 0x39, 0x1b,
  955. 0x29, 0xf3, 0x4e, 0x81, 0xda, 0x96, 0xa0, 0x1b, 0x88, 0xa1, 0x88, 0x08, 0xc2, 0xf8, 0xfd, 0x97,
  956. 0xdc, 0x09, 0xbf, 0x24, 0x83, 0x5f, 0x81, 0x51, 0x41, 0x1e, 0x09, 0x0f, 0x61, 0xc9, 0x75, 0xbc,
  957. 0xb5, 0x7e, 0x46, 0xdf, 0x5b, 0xe4, 0x91, 0x70, 0x70, 0xc9, 0xe7, 0x79, 0x21, 0xef, 0x60, 0x07,
  958. 0x8c, 0x16, 0xef, 0xa2, 0xf6, 0xb2, 0xf4, 0xb5, 0x71, 0x46, 0x5f, 0x1f, 0xe6, 0x68, 0x25, 0x67,
  959. 0xca, 0x05, 0xfc, 0x4e, 0x03, 0x53, 0x02, 0xb1, 0x80, 0x08, 0xcf, 0xa7, 0xc8, 0x4b, 0xa8, 0xf0,
  960. 0xc2, 0xb8, 0x76, 0xee, 0x7f, 0x49, 0xf0, 0x96, 0xc4, 0xbd, 0x43, 0xd1, 0x3a, 0x15, 0x6b, 0x71,
  961. 0x39, 0xc1, 0xa2, 0x24, 0x33, 0x28, 0xa8, 0x55, 0x95, 0x03, 0x6e, 0x81, 0x5a, 0x4c, 0xf6, 0x8b,
  962. 0xda, 0x7b, 0x28, 0x4a, 0xd2, 0x58, 0x78, 0x51, 0xe8, 0xb3, 0x84, 0xcb, 0x8e, 0x19, 0x6f, 0xcd,
  963. 0xa8, 0x40, 0xd5, 0x6b, 0x35, 0xd7, 0x62, 0xb1, 0xf8, 0xce, 0x36, 0xea, 0xa4, 0xc4, 0x9d, 0x8e,
  964. 0xc9, 0x7e, 0x8e, 0xe9, 0x48, 0xd3, 0x07, 0xd2, 0xd2, 0x58, 0x03, 0x97, 0x7a, 0x8b, 0x00, 0x6f,
  965. 0x00, 0x1d, 0xe1, 0x02, 0xf3, 0xad, 0x4a, 0xf2, 0xdd, 0xb9, 0x62, 0x3a, 0xd8, 0xd5, 0x11, 0x36,
  966. 0xfe, 0xd1, 0xc0, 0xd4, 0xb1, 0x24, 0xc3, 0x77, 0xc1, 0x05, 0x84, 0xbd, 0x80, 0x25, 0x29, 0x2d,
  967. 0x20, 0x67, 0x8f, 0x85, 0xb9, 0x29, 0x58, 0x18, 0x07, 0x79, 0x9c, 0xa3, 0x08, 0xaf, 0x66, 0xca,
  968. 0xd0, 0x07, 0xe0, 0xf9, 0x40, 0x94, 0xbd, 0x3e, 0xd1, 0xba, 0x5b, 0x19, 0x8d, 0x9c, 0xa4, 0xaa,
  969. 0xc6, 0x0f, 0x32, 0xbb, 0xad, 0x03, 0x4a, 0x56, 0xe2, 0x34, 0x3a, 0x76, 0xe9, 0x8e, 0x45, 0xea,
  970. 0x08, 0x1d, 0x30, 0xe1, 0x53, 0xdf, 0xdb, 0x0d, 0xb1, 0x4a, 0xe5, 0xc8, 0xe0, 0x54, 0x5e, 0xf4,
  971. 0xa9, 0xdf, 0x0e, 0x71, 0x91, 0xc1, 0x67, 0x1a, 0xa8, 0x55, 0x95, 0x18, 0xae, 0x96, 0xda, 0x6a,
  972. 0xf8, 0x6a, 0x4d, 0x76, 0x1b, 0x23, 0xf7, 0x02, 0x09, 0x78, 0x23, 0xab, 0x7e, 0xcf, 0x08, 0xe8,
  973. 0x69, 0x03, 0x7d, 0x30, 0xf0, 0x95, 0x98, 0xec, 0x97, 0x5b, 0xec, 0x68, 0x3b, 0xb4, 0x21, 0xb8,
  974. 0x84, 0xb2, 0x5e, 0xf6, 0x68, 0x97, 0x43, 0xe3, 0x67, 0x0d, 0xcc, 0xf4, 0x9d, 0xc4, 0x9c, 0x26,
  975. 0x31, 0x27, 0xf0, 0x63, 0x30, 0xca, 0x08, 0x4f, 0x3b, 0x22, 0x63, 0x96, 0x8d, 0xd9, 0x9b, 0xa7,
  976. 0x7a, 0x30, 0xae, 0xc4, 0x70, 0x15, 0x16, 0xbc, 0x07, 0xa6, 0x7b, 0x06, 0xac, 0x47, 0x18, 0x4b,
  977. 0x58, 0xc1, 0x12, 0x2a, 0x27, 0x8c, 0xfa, 0xe6, 0xa6, 0x5c, 0x3d, 0xee, 0xe5, 0xf2, 0xe8, 0x5d,
  978. 0xc9, 0xd4, 0x1b, 0xb7, 0xc1, 0x6b, 0x95, 0xde, 0x86, 0x5b, 0x45, 0x3f, 0xe9, 0x60, 0xf6, 0x6e,
  979. 0xc8, 0xa3, 0x90, 0xf3, 0x53, 0x2e, 0xa3, 0xc3, 0xd2, 0x32, 0x1a, 0x91, 0x59, 0xfa, 0x7c, 0x70,
  980. 0x96, 0x4e, 0x72, 0xda, 0x5f, 0x38, 0xf4, 0xae, 0xd2, 0xfb, 0xed, 0x2a, 0x63, 0x05, 0x5c, 0x3d,
  981. 0x19, 0x76, 0xb8, 0x84, 0x3d, 0xd5, 0xc1, 0x95, 0x8a, 0xd8, 0x8b, 0x9e, 0x49, 0x7b, 0x7b, 0xe6,
  982. 0xb3, 0x53, 0x67, 0x23, 0x47, 0xac, 0x94, 0xbe, 0x88, 0x9e, 0x32, 0xda, 0x60, 0xe6, 0x04, 0x7f,
  983. 0x43, 0x25, 0xa9, 0xf5, 0xfd, 0x39, 0x30, 0x5d, 0xb6, 0xde, 0xcc, 0x99, 0xc2, 0x5f, 0x34, 0x30,
  984. 0x75, 0xec, 0xe3, 0x09, 0xda, 0x83, 0x33, 0x54, 0xf5, 0xc5, 0x65, 0x5c, 0x1f, 0x62, 0x8a, 0x97,
  985. 0x2d, 0x1b, 0xef, 0x3f, 0xf9, 0xe3, 0xaf, 0x1f, 0xf4, 0x05, 0x78, 0x3d, 0xfb, 0x86, 0x7c, 0x5c,
  986. 0xa2, 0xb3, 0xa4, 0x3a, 0x9b, 0x5b, 0xcd, 0x9e, 0x8f, 0x4a, 0x6e, 0x35, 0x0f, 0xe1, 0xef, 0x1a,
  987. 0xb8, 0xdc, 0xe7, 0xc9, 0xc1, 0x0f, 0x4e, 0x39, 0x17, 0x72, 0x0e, 0x4b, 0xa7, 0x9d, 0x2a, 0xb2,
  988. 0x3f, 0x1a, 0xcb, 0x92, 0xcf, 0x7b, 0x8d, 0x85, 0x8c, 0xcf, 0x73, 0x02, 0x8f, 0x8f, 0x3c, 0xdc,
  989. 0xa5, 0xe6, 0x61, 0x2f, 0x1d, 0x5b, 0x4e, 0x43, 0x5b, 0x6b, 0xc2, 0x3f, 0x35, 0x30, 0xdd, 0xb7,
  990. 0xe6, 0x70, 0xf9, 0x6c, 0x0f, 0xd9, 0xb8, 0x75, 0xc6, 0xd6, 0x6f, 0xdc, 0x96, 0xd4, 0xec, 0xc6,
  991. 0x8d, 0xff, 0x46, 0x0d, 0xe7, 0xa0, 0xb6, 0xd6, 0x6c, 0x7f, 0xab, 0x83, 0x6b, 0x7e, 0x12, 0x0d,
  992. 0x0c, 0xa4, 0x6d, 0xf4, 0xed, 0xd8, 0x8d, 0x6c, 0xd1, 0x6c, 0x68, 0x9f, 0xde, 0x2f, 0xec, 0x83,
  993. 0xa4, 0x83, 0xe2, 0xc0, 0x4c, 0x58, 0x60, 0x05, 0x24, 0x96, 0x6b, 0x48, 0xfd, 0x27, 0xa1, 0x21,
  994. 0xaf, 0xfe, 0x9f, 0x75, 0x53, 0x1d, 0x9e, 0xea, 0x23, 0xab, 0x8e, 0xf3, 0xa3, 0x5e, 0x5f, 0xcd,
  995. 0x01, 0x1d, 0xcc, 0xcd, 0xfc, 0x98, 0x9d, 0xb6, 0xe7, 0xcd, 0xc2, 0x31, 0x7f, 0xa6, 0x54, 0x76,
  996. 0x1c, 0xcc, 0x77, 0xba, 0x2a, 0x3b, 0xdb, 0xf3, 0x3b, 0x4a, 0xe5, 0x6f, 0xfd, 0x5a, 0x7e, 0x6f,
  997. 0xdb, 0x0e, 0xe6, 0xb6, 0xdd, 0x55, 0xb2, 0xed, 0xed, 0x79, 0xdb, 0x56, 0x6a, 0xbb, 0xe7, 0x65,
  998. 0x9c, 0x0b, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x50, 0x57, 0x8d, 0x8c, 0x0e, 0x0e, 0x00, 0x00,
  999. }