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.
 
 
 

593 rivejä
25 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/ads/googleads/v0/services/campaign_feed_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 _ "github.com/golang/protobuf/ptypes/wrappers"
  8. import resources "google.golang.org/genproto/googleapis/ads/googleads/v0/resources"
  9. import _ "google.golang.org/genproto/googleapis/api/annotations"
  10. import status "google.golang.org/genproto/googleapis/rpc/status"
  11. import field_mask "google.golang.org/genproto/protobuf/field_mask"
  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. // [CampaignFeedService.GetCampaignFeed][google.ads.googleads.v0.services.CampaignFeedService.GetCampaignFeed].
  27. type GetCampaignFeedRequest struct {
  28. // The resource name of the campaign feed 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 *GetCampaignFeedRequest) Reset() { *m = GetCampaignFeedRequest{} }
  35. func (m *GetCampaignFeedRequest) String() string { return proto.CompactTextString(m) }
  36. func (*GetCampaignFeedRequest) ProtoMessage() {}
  37. func (*GetCampaignFeedRequest) Descriptor() ([]byte, []int) {
  38. return fileDescriptor_campaign_feed_service_a5d2ffb834d3ed7c, []int{0}
  39. }
  40. func (m *GetCampaignFeedRequest) XXX_Unmarshal(b []byte) error {
  41. return xxx_messageInfo_GetCampaignFeedRequest.Unmarshal(m, b)
  42. }
  43. func (m *GetCampaignFeedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  44. return xxx_messageInfo_GetCampaignFeedRequest.Marshal(b, m, deterministic)
  45. }
  46. func (dst *GetCampaignFeedRequest) XXX_Merge(src proto.Message) {
  47. xxx_messageInfo_GetCampaignFeedRequest.Merge(dst, src)
  48. }
  49. func (m *GetCampaignFeedRequest) XXX_Size() int {
  50. return xxx_messageInfo_GetCampaignFeedRequest.Size(m)
  51. }
  52. func (m *GetCampaignFeedRequest) XXX_DiscardUnknown() {
  53. xxx_messageInfo_GetCampaignFeedRequest.DiscardUnknown(m)
  54. }
  55. var xxx_messageInfo_GetCampaignFeedRequest proto.InternalMessageInfo
  56. func (m *GetCampaignFeedRequest) GetResourceName() string {
  57. if m != nil {
  58. return m.ResourceName
  59. }
  60. return ""
  61. }
  62. // Request message for
  63. // [CampaignFeedService.MutateCampaignFeeds][google.ads.googleads.v0.services.CampaignFeedService.MutateCampaignFeeds].
  64. type MutateCampaignFeedsRequest struct {
  65. // The ID of the customer whose campaign feeds are being modified.
  66. CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
  67. // The list of operations to perform on individual campaign feeds.
  68. Operations []*CampaignFeedOperation `protobuf:"bytes,2,rep,name=operations,proto3" json:"operations,omitempty"`
  69. // If true, successful operations will be carried out and invalid
  70. // operations will return errors. If false, all operations will be carried
  71. // out in one transaction if and only if they are all valid.
  72. // Default is false.
  73. PartialFailure bool `protobuf:"varint,3,opt,name=partial_failure,json=partialFailure,proto3" json:"partial_failure,omitempty"`
  74. // If true, the request is validated but not executed. Only errors are
  75. // returned, not results.
  76. ValidateOnly bool `protobuf:"varint,4,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
  77. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  78. XXX_unrecognized []byte `json:"-"`
  79. XXX_sizecache int32 `json:"-"`
  80. }
  81. func (m *MutateCampaignFeedsRequest) Reset() { *m = MutateCampaignFeedsRequest{} }
  82. func (m *MutateCampaignFeedsRequest) String() string { return proto.CompactTextString(m) }
  83. func (*MutateCampaignFeedsRequest) ProtoMessage() {}
  84. func (*MutateCampaignFeedsRequest) Descriptor() ([]byte, []int) {
  85. return fileDescriptor_campaign_feed_service_a5d2ffb834d3ed7c, []int{1}
  86. }
  87. func (m *MutateCampaignFeedsRequest) XXX_Unmarshal(b []byte) error {
  88. return xxx_messageInfo_MutateCampaignFeedsRequest.Unmarshal(m, b)
  89. }
  90. func (m *MutateCampaignFeedsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  91. return xxx_messageInfo_MutateCampaignFeedsRequest.Marshal(b, m, deterministic)
  92. }
  93. func (dst *MutateCampaignFeedsRequest) XXX_Merge(src proto.Message) {
  94. xxx_messageInfo_MutateCampaignFeedsRequest.Merge(dst, src)
  95. }
  96. func (m *MutateCampaignFeedsRequest) XXX_Size() int {
  97. return xxx_messageInfo_MutateCampaignFeedsRequest.Size(m)
  98. }
  99. func (m *MutateCampaignFeedsRequest) XXX_DiscardUnknown() {
  100. xxx_messageInfo_MutateCampaignFeedsRequest.DiscardUnknown(m)
  101. }
  102. var xxx_messageInfo_MutateCampaignFeedsRequest proto.InternalMessageInfo
  103. func (m *MutateCampaignFeedsRequest) GetCustomerId() string {
  104. if m != nil {
  105. return m.CustomerId
  106. }
  107. return ""
  108. }
  109. func (m *MutateCampaignFeedsRequest) GetOperations() []*CampaignFeedOperation {
  110. if m != nil {
  111. return m.Operations
  112. }
  113. return nil
  114. }
  115. func (m *MutateCampaignFeedsRequest) GetPartialFailure() bool {
  116. if m != nil {
  117. return m.PartialFailure
  118. }
  119. return false
  120. }
  121. func (m *MutateCampaignFeedsRequest) GetValidateOnly() bool {
  122. if m != nil {
  123. return m.ValidateOnly
  124. }
  125. return false
  126. }
  127. // A single operation (create, update, remove) on a campaign feed.
  128. type CampaignFeedOperation struct {
  129. // FieldMask that determines which resource fields are modified in an update.
  130. UpdateMask *field_mask.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
  131. // The mutate operation.
  132. //
  133. // Types that are valid to be assigned to Operation:
  134. // *CampaignFeedOperation_Create
  135. // *CampaignFeedOperation_Update
  136. // *CampaignFeedOperation_Remove
  137. Operation isCampaignFeedOperation_Operation `protobuf_oneof:"operation"`
  138. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  139. XXX_unrecognized []byte `json:"-"`
  140. XXX_sizecache int32 `json:"-"`
  141. }
  142. func (m *CampaignFeedOperation) Reset() { *m = CampaignFeedOperation{} }
  143. func (m *CampaignFeedOperation) String() string { return proto.CompactTextString(m) }
  144. func (*CampaignFeedOperation) ProtoMessage() {}
  145. func (*CampaignFeedOperation) Descriptor() ([]byte, []int) {
  146. return fileDescriptor_campaign_feed_service_a5d2ffb834d3ed7c, []int{2}
  147. }
  148. func (m *CampaignFeedOperation) XXX_Unmarshal(b []byte) error {
  149. return xxx_messageInfo_CampaignFeedOperation.Unmarshal(m, b)
  150. }
  151. func (m *CampaignFeedOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  152. return xxx_messageInfo_CampaignFeedOperation.Marshal(b, m, deterministic)
  153. }
  154. func (dst *CampaignFeedOperation) XXX_Merge(src proto.Message) {
  155. xxx_messageInfo_CampaignFeedOperation.Merge(dst, src)
  156. }
  157. func (m *CampaignFeedOperation) XXX_Size() int {
  158. return xxx_messageInfo_CampaignFeedOperation.Size(m)
  159. }
  160. func (m *CampaignFeedOperation) XXX_DiscardUnknown() {
  161. xxx_messageInfo_CampaignFeedOperation.DiscardUnknown(m)
  162. }
  163. var xxx_messageInfo_CampaignFeedOperation proto.InternalMessageInfo
  164. func (m *CampaignFeedOperation) GetUpdateMask() *field_mask.FieldMask {
  165. if m != nil {
  166. return m.UpdateMask
  167. }
  168. return nil
  169. }
  170. type isCampaignFeedOperation_Operation interface {
  171. isCampaignFeedOperation_Operation()
  172. }
  173. type CampaignFeedOperation_Create struct {
  174. Create *resources.CampaignFeed `protobuf:"bytes,1,opt,name=create,proto3,oneof"`
  175. }
  176. type CampaignFeedOperation_Update struct {
  177. Update *resources.CampaignFeed `protobuf:"bytes,2,opt,name=update,proto3,oneof"`
  178. }
  179. type CampaignFeedOperation_Remove struct {
  180. Remove string `protobuf:"bytes,3,opt,name=remove,proto3,oneof"`
  181. }
  182. func (*CampaignFeedOperation_Create) isCampaignFeedOperation_Operation() {}
  183. func (*CampaignFeedOperation_Update) isCampaignFeedOperation_Operation() {}
  184. func (*CampaignFeedOperation_Remove) isCampaignFeedOperation_Operation() {}
  185. func (m *CampaignFeedOperation) GetOperation() isCampaignFeedOperation_Operation {
  186. if m != nil {
  187. return m.Operation
  188. }
  189. return nil
  190. }
  191. func (m *CampaignFeedOperation) GetCreate() *resources.CampaignFeed {
  192. if x, ok := m.GetOperation().(*CampaignFeedOperation_Create); ok {
  193. return x.Create
  194. }
  195. return nil
  196. }
  197. func (m *CampaignFeedOperation) GetUpdate() *resources.CampaignFeed {
  198. if x, ok := m.GetOperation().(*CampaignFeedOperation_Update); ok {
  199. return x.Update
  200. }
  201. return nil
  202. }
  203. func (m *CampaignFeedOperation) GetRemove() string {
  204. if x, ok := m.GetOperation().(*CampaignFeedOperation_Remove); ok {
  205. return x.Remove
  206. }
  207. return ""
  208. }
  209. // XXX_OneofFuncs is for the internal use of the proto package.
  210. func (*CampaignFeedOperation) 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{}) {
  211. return _CampaignFeedOperation_OneofMarshaler, _CampaignFeedOperation_OneofUnmarshaler, _CampaignFeedOperation_OneofSizer, []interface{}{
  212. (*CampaignFeedOperation_Create)(nil),
  213. (*CampaignFeedOperation_Update)(nil),
  214. (*CampaignFeedOperation_Remove)(nil),
  215. }
  216. }
  217. func _CampaignFeedOperation_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  218. m := msg.(*CampaignFeedOperation)
  219. // operation
  220. switch x := m.Operation.(type) {
  221. case *CampaignFeedOperation_Create:
  222. b.EncodeVarint(1<<3 | proto.WireBytes)
  223. if err := b.EncodeMessage(x.Create); err != nil {
  224. return err
  225. }
  226. case *CampaignFeedOperation_Update:
  227. b.EncodeVarint(2<<3 | proto.WireBytes)
  228. if err := b.EncodeMessage(x.Update); err != nil {
  229. return err
  230. }
  231. case *CampaignFeedOperation_Remove:
  232. b.EncodeVarint(3<<3 | proto.WireBytes)
  233. b.EncodeStringBytes(x.Remove)
  234. case nil:
  235. default:
  236. return fmt.Errorf("CampaignFeedOperation.Operation has unexpected type %T", x)
  237. }
  238. return nil
  239. }
  240. func _CampaignFeedOperation_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  241. m := msg.(*CampaignFeedOperation)
  242. switch tag {
  243. case 1: // operation.create
  244. if wire != proto.WireBytes {
  245. return true, proto.ErrInternalBadWireType
  246. }
  247. msg := new(resources.CampaignFeed)
  248. err := b.DecodeMessage(msg)
  249. m.Operation = &CampaignFeedOperation_Create{msg}
  250. return true, err
  251. case 2: // operation.update
  252. if wire != proto.WireBytes {
  253. return true, proto.ErrInternalBadWireType
  254. }
  255. msg := new(resources.CampaignFeed)
  256. err := b.DecodeMessage(msg)
  257. m.Operation = &CampaignFeedOperation_Update{msg}
  258. return true, err
  259. case 3: // operation.remove
  260. if wire != proto.WireBytes {
  261. return true, proto.ErrInternalBadWireType
  262. }
  263. x, err := b.DecodeStringBytes()
  264. m.Operation = &CampaignFeedOperation_Remove{x}
  265. return true, err
  266. default:
  267. return false, nil
  268. }
  269. }
  270. func _CampaignFeedOperation_OneofSizer(msg proto.Message) (n int) {
  271. m := msg.(*CampaignFeedOperation)
  272. // operation
  273. switch x := m.Operation.(type) {
  274. case *CampaignFeedOperation_Create:
  275. s := proto.Size(x.Create)
  276. n += 1 // tag and wire
  277. n += proto.SizeVarint(uint64(s))
  278. n += s
  279. case *CampaignFeedOperation_Update:
  280. s := proto.Size(x.Update)
  281. n += 1 // tag and wire
  282. n += proto.SizeVarint(uint64(s))
  283. n += s
  284. case *CampaignFeedOperation_Remove:
  285. n += 1 // tag and wire
  286. n += proto.SizeVarint(uint64(len(x.Remove)))
  287. n += len(x.Remove)
  288. case nil:
  289. default:
  290. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  291. }
  292. return n
  293. }
  294. // Response message for a campaign feed mutate.
  295. type MutateCampaignFeedsResponse struct {
  296. // Errors that pertain to operation failures in the partial failure mode.
  297. // Returned only when partial_failure = true and all errors occur inside the
  298. // operations. If any errors occur outside the operations (e.g. auth errors),
  299. // we return an RPC level error.
  300. PartialFailureError *status.Status `protobuf:"bytes,3,opt,name=partial_failure_error,json=partialFailureError,proto3" json:"partial_failure_error,omitempty"`
  301. // All results for the mutate.
  302. Results []*MutateCampaignFeedResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"`
  303. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  304. XXX_unrecognized []byte `json:"-"`
  305. XXX_sizecache int32 `json:"-"`
  306. }
  307. func (m *MutateCampaignFeedsResponse) Reset() { *m = MutateCampaignFeedsResponse{} }
  308. func (m *MutateCampaignFeedsResponse) String() string { return proto.CompactTextString(m) }
  309. func (*MutateCampaignFeedsResponse) ProtoMessage() {}
  310. func (*MutateCampaignFeedsResponse) Descriptor() ([]byte, []int) {
  311. return fileDescriptor_campaign_feed_service_a5d2ffb834d3ed7c, []int{3}
  312. }
  313. func (m *MutateCampaignFeedsResponse) XXX_Unmarshal(b []byte) error {
  314. return xxx_messageInfo_MutateCampaignFeedsResponse.Unmarshal(m, b)
  315. }
  316. func (m *MutateCampaignFeedsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  317. return xxx_messageInfo_MutateCampaignFeedsResponse.Marshal(b, m, deterministic)
  318. }
  319. func (dst *MutateCampaignFeedsResponse) XXX_Merge(src proto.Message) {
  320. xxx_messageInfo_MutateCampaignFeedsResponse.Merge(dst, src)
  321. }
  322. func (m *MutateCampaignFeedsResponse) XXX_Size() int {
  323. return xxx_messageInfo_MutateCampaignFeedsResponse.Size(m)
  324. }
  325. func (m *MutateCampaignFeedsResponse) XXX_DiscardUnknown() {
  326. xxx_messageInfo_MutateCampaignFeedsResponse.DiscardUnknown(m)
  327. }
  328. var xxx_messageInfo_MutateCampaignFeedsResponse proto.InternalMessageInfo
  329. func (m *MutateCampaignFeedsResponse) GetPartialFailureError() *status.Status {
  330. if m != nil {
  331. return m.PartialFailureError
  332. }
  333. return nil
  334. }
  335. func (m *MutateCampaignFeedsResponse) GetResults() []*MutateCampaignFeedResult {
  336. if m != nil {
  337. return m.Results
  338. }
  339. return nil
  340. }
  341. // The result for the campaign feed mutate.
  342. type MutateCampaignFeedResult struct {
  343. // Returned for successful operations.
  344. ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
  345. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  346. XXX_unrecognized []byte `json:"-"`
  347. XXX_sizecache int32 `json:"-"`
  348. }
  349. func (m *MutateCampaignFeedResult) Reset() { *m = MutateCampaignFeedResult{} }
  350. func (m *MutateCampaignFeedResult) String() string { return proto.CompactTextString(m) }
  351. func (*MutateCampaignFeedResult) ProtoMessage() {}
  352. func (*MutateCampaignFeedResult) Descriptor() ([]byte, []int) {
  353. return fileDescriptor_campaign_feed_service_a5d2ffb834d3ed7c, []int{4}
  354. }
  355. func (m *MutateCampaignFeedResult) XXX_Unmarshal(b []byte) error {
  356. return xxx_messageInfo_MutateCampaignFeedResult.Unmarshal(m, b)
  357. }
  358. func (m *MutateCampaignFeedResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  359. return xxx_messageInfo_MutateCampaignFeedResult.Marshal(b, m, deterministic)
  360. }
  361. func (dst *MutateCampaignFeedResult) XXX_Merge(src proto.Message) {
  362. xxx_messageInfo_MutateCampaignFeedResult.Merge(dst, src)
  363. }
  364. func (m *MutateCampaignFeedResult) XXX_Size() int {
  365. return xxx_messageInfo_MutateCampaignFeedResult.Size(m)
  366. }
  367. func (m *MutateCampaignFeedResult) XXX_DiscardUnknown() {
  368. xxx_messageInfo_MutateCampaignFeedResult.DiscardUnknown(m)
  369. }
  370. var xxx_messageInfo_MutateCampaignFeedResult proto.InternalMessageInfo
  371. func (m *MutateCampaignFeedResult) GetResourceName() string {
  372. if m != nil {
  373. return m.ResourceName
  374. }
  375. return ""
  376. }
  377. func init() {
  378. proto.RegisterType((*GetCampaignFeedRequest)(nil), "google.ads.googleads.v0.services.GetCampaignFeedRequest")
  379. proto.RegisterType((*MutateCampaignFeedsRequest)(nil), "google.ads.googleads.v0.services.MutateCampaignFeedsRequest")
  380. proto.RegisterType((*CampaignFeedOperation)(nil), "google.ads.googleads.v0.services.CampaignFeedOperation")
  381. proto.RegisterType((*MutateCampaignFeedsResponse)(nil), "google.ads.googleads.v0.services.MutateCampaignFeedsResponse")
  382. proto.RegisterType((*MutateCampaignFeedResult)(nil), "google.ads.googleads.v0.services.MutateCampaignFeedResult")
  383. }
  384. // Reference imports to suppress errors if they are not otherwise used.
  385. var _ context.Context
  386. var _ grpc.ClientConn
  387. // This is a compile-time assertion to ensure that this generated file
  388. // is compatible with the grpc package it is being compiled against.
  389. const _ = grpc.SupportPackageIsVersion4
  390. // CampaignFeedServiceClient is the client API for CampaignFeedService service.
  391. //
  392. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  393. type CampaignFeedServiceClient interface {
  394. // Returns the requested campaign feed in full detail.
  395. GetCampaignFeed(ctx context.Context, in *GetCampaignFeedRequest, opts ...grpc.CallOption) (*resources.CampaignFeed, error)
  396. // Creates, updates, or removes campaign feeds. Operation statuses are
  397. // returned.
  398. MutateCampaignFeeds(ctx context.Context, in *MutateCampaignFeedsRequest, opts ...grpc.CallOption) (*MutateCampaignFeedsResponse, error)
  399. }
  400. type campaignFeedServiceClient struct {
  401. cc *grpc.ClientConn
  402. }
  403. func NewCampaignFeedServiceClient(cc *grpc.ClientConn) CampaignFeedServiceClient {
  404. return &campaignFeedServiceClient{cc}
  405. }
  406. func (c *campaignFeedServiceClient) GetCampaignFeed(ctx context.Context, in *GetCampaignFeedRequest, opts ...grpc.CallOption) (*resources.CampaignFeed, error) {
  407. out := new(resources.CampaignFeed)
  408. err := c.cc.Invoke(ctx, "/google.ads.googleads.v0.services.CampaignFeedService/GetCampaignFeed", in, out, opts...)
  409. if err != nil {
  410. return nil, err
  411. }
  412. return out, nil
  413. }
  414. func (c *campaignFeedServiceClient) MutateCampaignFeeds(ctx context.Context, in *MutateCampaignFeedsRequest, opts ...grpc.CallOption) (*MutateCampaignFeedsResponse, error) {
  415. out := new(MutateCampaignFeedsResponse)
  416. err := c.cc.Invoke(ctx, "/google.ads.googleads.v0.services.CampaignFeedService/MutateCampaignFeeds", in, out, opts...)
  417. if err != nil {
  418. return nil, err
  419. }
  420. return out, nil
  421. }
  422. // CampaignFeedServiceServer is the server API for CampaignFeedService service.
  423. type CampaignFeedServiceServer interface {
  424. // Returns the requested campaign feed in full detail.
  425. GetCampaignFeed(context.Context, *GetCampaignFeedRequest) (*resources.CampaignFeed, error)
  426. // Creates, updates, or removes campaign feeds. Operation statuses are
  427. // returned.
  428. MutateCampaignFeeds(context.Context, *MutateCampaignFeedsRequest) (*MutateCampaignFeedsResponse, error)
  429. }
  430. func RegisterCampaignFeedServiceServer(s *grpc.Server, srv CampaignFeedServiceServer) {
  431. s.RegisterService(&_CampaignFeedService_serviceDesc, srv)
  432. }
  433. func _CampaignFeedService_GetCampaignFeed_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  434. in := new(GetCampaignFeedRequest)
  435. if err := dec(in); err != nil {
  436. return nil, err
  437. }
  438. if interceptor == nil {
  439. return srv.(CampaignFeedServiceServer).GetCampaignFeed(ctx, in)
  440. }
  441. info := &grpc.UnaryServerInfo{
  442. Server: srv,
  443. FullMethod: "/google.ads.googleads.v0.services.CampaignFeedService/GetCampaignFeed",
  444. }
  445. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  446. return srv.(CampaignFeedServiceServer).GetCampaignFeed(ctx, req.(*GetCampaignFeedRequest))
  447. }
  448. return interceptor(ctx, in, info, handler)
  449. }
  450. func _CampaignFeedService_MutateCampaignFeeds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  451. in := new(MutateCampaignFeedsRequest)
  452. if err := dec(in); err != nil {
  453. return nil, err
  454. }
  455. if interceptor == nil {
  456. return srv.(CampaignFeedServiceServer).MutateCampaignFeeds(ctx, in)
  457. }
  458. info := &grpc.UnaryServerInfo{
  459. Server: srv,
  460. FullMethod: "/google.ads.googleads.v0.services.CampaignFeedService/MutateCampaignFeeds",
  461. }
  462. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  463. return srv.(CampaignFeedServiceServer).MutateCampaignFeeds(ctx, req.(*MutateCampaignFeedsRequest))
  464. }
  465. return interceptor(ctx, in, info, handler)
  466. }
  467. var _CampaignFeedService_serviceDesc = grpc.ServiceDesc{
  468. ServiceName: "google.ads.googleads.v0.services.CampaignFeedService",
  469. HandlerType: (*CampaignFeedServiceServer)(nil),
  470. Methods: []grpc.MethodDesc{
  471. {
  472. MethodName: "GetCampaignFeed",
  473. Handler: _CampaignFeedService_GetCampaignFeed_Handler,
  474. },
  475. {
  476. MethodName: "MutateCampaignFeeds",
  477. Handler: _CampaignFeedService_MutateCampaignFeeds_Handler,
  478. },
  479. },
  480. Streams: []grpc.StreamDesc{},
  481. Metadata: "google/ads/googleads/v0/services/campaign_feed_service.proto",
  482. }
  483. func init() {
  484. proto.RegisterFile("google/ads/googleads/v0/services/campaign_feed_service.proto", fileDescriptor_campaign_feed_service_a5d2ffb834d3ed7c)
  485. }
  486. var fileDescriptor_campaign_feed_service_a5d2ffb834d3ed7c = []byte{
  487. // 713 bytes of a gzipped FileDescriptorProto
  488. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0xc1, 0x6e, 0xd3, 0x40,
  489. 0x10, 0xc5, 0x0e, 0x2a, 0x74, 0x5d, 0xa8, 0xb4, 0x55, 0xc1, 0x0a, 0x08, 0x22, 0x53, 0x89, 0x2a,
  490. 0x07, 0x3b, 0x04, 0xa1, 0x22, 0xb7, 0x11, 0x4a, 0x11, 0x69, 0x7b, 0x28, 0xad, 0x5c, 0x54, 0x24,
  491. 0x14, 0xc9, 0xda, 0xda, 0x1b, 0xcb, 0xaa, 0xed, 0x35, 0xbb, 0xeb, 0xa0, 0xaa, 0xea, 0x85, 0x3f,
  492. 0x40, 0x7c, 0x01, 0x1c, 0xb9, 0x73, 0xe2, 0x0f, 0xb8, 0x21, 0x7e, 0xa1, 0x27, 0x7e, 0x02, 0x64,
  493. 0xaf, 0x37, 0x24, 0x6d, 0xa2, 0x40, 0x6e, 0xe3, 0xd9, 0x37, 0x6f, 0x66, 0xf6, 0xcd, 0x8e, 0xc1,
  494. 0x46, 0x40, 0x48, 0x10, 0x61, 0x0b, 0xf9, 0xcc, 0x12, 0x66, 0x6e, 0xf5, 0x1b, 0x16, 0xc3, 0xb4,
  495. 0x1f, 0x7a, 0x98, 0x59, 0x1e, 0x8a, 0x53, 0x14, 0x06, 0x89, 0xdb, 0xc3, 0xd8, 0x77, 0x4b, 0xb7,
  496. 0x99, 0x52, 0xc2, 0x09, 0xac, 0x89, 0x10, 0x13, 0xf9, 0xcc, 0x1c, 0x44, 0x9b, 0xfd, 0x86, 0x29,
  497. 0xa3, 0xab, 0x4f, 0x26, 0xf1, 0x53, 0xcc, 0x48, 0x46, 0x2f, 0x25, 0x10, 0xc4, 0xd5, 0xbb, 0x32,
  498. 0x2c, 0x0d, 0x2d, 0x94, 0x24, 0x84, 0x23, 0x1e, 0x92, 0x84, 0x95, 0xa7, 0x65, 0x5a, 0xab, 0xf8,
  499. 0x3a, 0xca, 0x7a, 0x56, 0x2f, 0xc4, 0x91, 0xef, 0xc6, 0x88, 0x1d, 0x97, 0x88, 0x7b, 0x17, 0x11,
  500. 0xef, 0x28, 0x4a, 0x53, 0x4c, 0x25, 0xc3, 0xed, 0xf2, 0x9c, 0xa6, 0x9e, 0xc5, 0x38, 0xe2, 0x59,
  501. 0x79, 0x60, 0xb4, 0xc0, 0xad, 0x2d, 0xcc, 0x9f, 0x97, 0x25, 0x75, 0x30, 0xf6, 0x1d, 0xfc, 0x36,
  502. 0xc3, 0x8c, 0xc3, 0x07, 0xe0, 0x86, 0xac, 0xd9, 0x4d, 0x50, 0x8c, 0x75, 0xa5, 0xa6, 0xac, 0xce,
  503. 0x3b, 0x0b, 0xd2, 0xf9, 0x12, 0xc5, 0xd8, 0x38, 0x57, 0x40, 0x75, 0x37, 0xe3, 0x88, 0xe3, 0x61,
  504. 0x0a, 0x26, 0x39, 0xee, 0x03, 0xcd, 0xcb, 0x18, 0x27, 0x31, 0xa6, 0x6e, 0xe8, 0x97, 0x0c, 0x40,
  505. 0xba, 0x76, 0x7c, 0xf8, 0x1a, 0x00, 0x92, 0x62, 0x2a, 0xba, 0xd5, 0xd5, 0x5a, 0x65, 0x55, 0x6b,
  506. 0xae, 0x99, 0xd3, 0x6e, 0xd9, 0x1c, 0x4e, 0xb6, 0x27, 0xe3, 0x9d, 0x21, 0x2a, 0xf8, 0x10, 0x2c,
  507. 0xa6, 0x88, 0xf2, 0x10, 0x45, 0x6e, 0x0f, 0x85, 0x51, 0x46, 0xb1, 0x5e, 0xa9, 0x29, 0xab, 0xd7,
  508. 0x9d, 0x9b, 0xa5, 0xbb, 0x23, 0xbc, 0x79, 0x9b, 0x7d, 0x14, 0x85, 0x3e, 0xe2, 0xd8, 0x25, 0x49,
  509. 0x74, 0xa2, 0x5f, 0x2d, 0x60, 0x0b, 0xd2, 0xb9, 0x97, 0x44, 0x27, 0xc6, 0x07, 0x15, 0x2c, 0x8f,
  510. 0xcd, 0x09, 0xd7, 0x81, 0x96, 0xa5, 0x45, 0x70, 0xae, 0x46, 0x11, 0xac, 0x35, 0xab, 0xb2, 0x03,
  511. 0x29, 0x87, 0xd9, 0xc9, 0x05, 0xdb, 0x45, 0xec, 0xd8, 0x01, 0x02, 0x9e, 0xdb, 0x70, 0x07, 0xcc,
  512. 0x79, 0x14, 0x23, 0x2e, 0xee, 0x56, 0x6b, 0x5a, 0x13, 0x3b, 0x1f, 0x4c, 0xcf, 0x48, 0xeb, 0xdb,
  513. 0x57, 0x9c, 0x92, 0x20, 0xa7, 0x12, 0xc4, 0xba, 0x3a, 0x33, 0x95, 0x20, 0x80, 0x3a, 0x98, 0xa3,
  514. 0x38, 0x26, 0x7d, 0x71, 0x63, 0xf3, 0xf9, 0x89, 0xf8, 0xde, 0xd4, 0xc0, 0xfc, 0xe0, 0x8a, 0x8d,
  515. 0x6f, 0x0a, 0xb8, 0x33, 0x56, 0x7a, 0x96, 0x92, 0x84, 0x61, 0xd8, 0x01, 0xcb, 0x17, 0x14, 0x70,
  516. 0x31, 0xa5, 0x84, 0x16, 0xac, 0x5a, 0x13, 0xca, 0x02, 0x69, 0xea, 0x99, 0x07, 0xc5, 0x48, 0x3a,
  517. 0x4b, 0xa3, 0xda, 0xbc, 0xc8, 0xe1, 0xf0, 0x15, 0xb8, 0x46, 0x31, 0xcb, 0x22, 0x2e, 0xe7, 0xc3,
  518. 0x9e, 0x3e, 0x1f, 0x97, 0xeb, 0x72, 0x0a, 0x0a, 0x47, 0x52, 0x19, 0xcf, 0x80, 0x3e, 0x09, 0xf4,
  519. 0x4f, 0x93, 0xdf, 0xfc, 0x54, 0x01, 0x4b, 0xc3, 0xb1, 0x07, 0x22, 0x37, 0xfc, 0xaa, 0x80, 0xc5,
  520. 0x0b, 0x2f, 0x0a, 0x3e, 0x9d, 0x5e, 0xf1, 0xf8, 0x47, 0x58, 0xfd, 0x5f, 0x19, 0x8d, 0xb5, 0xf7,
  521. 0x3f, 0xcf, 0x3f, 0xaa, 0x8f, 0xa0, 0x95, 0xef, 0x9c, 0xd3, 0x91, 0x36, 0x5a, 0xf2, 0xdd, 0x31,
  522. 0xab, 0x3e, 0x58, 0x42, 0x85, 0x66, 0x56, 0xfd, 0x0c, 0xfe, 0x50, 0xc0, 0xd2, 0x18, 0x39, 0xe1,
  523. 0xc6, 0x2c, 0xb7, 0x2d, 0x17, 0x40, 0xb5, 0x35, 0x63, 0xb4, 0x98, 0x21, 0xa3, 0x55, 0x74, 0xb3,
  524. 0x66, 0x34, 0xf3, 0x6e, 0xfe, 0x96, 0x7f, 0x3a, 0xb4, 0x54, 0x5a, 0xf5, 0xb3, 0xd1, 0x66, 0xec,
  525. 0xb8, 0x20, 0xb4, 0x95, 0xfa, 0xe6, 0x6f, 0x05, 0xac, 0x78, 0x24, 0x9e, 0x5a, 0xc3, 0xa6, 0x3e,
  526. 0x46, 0xc9, 0xfd, 0xfc, 0xed, 0xee, 0x2b, 0x6f, 0xb6, 0xcb, 0xe8, 0x80, 0x44, 0x28, 0x09, 0x4c,
  527. 0x42, 0x03, 0x2b, 0xc0, 0x49, 0xf1, 0xb2, 0xe5, 0x86, 0x4f, 0x43, 0x36, 0xf9, 0x87, 0xb2, 0x2e,
  528. 0x8d, 0xcf, 0x6a, 0x65, 0xab, 0xdd, 0xfe, 0xa2, 0xd6, 0xb6, 0x04, 0x61, 0xdb, 0x67, 0xa6, 0x30,
  529. 0x73, 0xeb, 0xb0, 0x61, 0x96, 0x89, 0xd9, 0x77, 0x09, 0xe9, 0xb6, 0x7d, 0xd6, 0x1d, 0x40, 0xba,
  530. 0x87, 0x8d, 0xae, 0x84, 0xfc, 0x52, 0x57, 0x84, 0xdf, 0xb6, 0xdb, 0x3e, 0xb3, 0xed, 0x01, 0xc8,
  531. 0xb6, 0x0f, 0x1b, 0xb6, 0x2d, 0x61, 0x47, 0x73, 0x45, 0x9d, 0x8f, 0xff, 0x04, 0x00, 0x00, 0xff,
  532. 0xff, 0x37, 0xcb, 0x9f, 0x04, 0xf7, 0x06, 0x00, 0x00,
  533. }