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.
 
 
 

604 lines
25 KiB

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