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.
 
 
 

592 line
26 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/ads/googleads/v0/services/ad_group_criterion_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. // [AdGroupCriterionService.GetAdGroupCriterion][google.ads.googleads.v0.services.AdGroupCriterionService.GetAdGroupCriterion].
  27. type GetAdGroupCriterionRequest struct {
  28. // The resource name of the criterion 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 *GetAdGroupCriterionRequest) Reset() { *m = GetAdGroupCriterionRequest{} }
  35. func (m *GetAdGroupCriterionRequest) String() string { return proto.CompactTextString(m) }
  36. func (*GetAdGroupCriterionRequest) ProtoMessage() {}
  37. func (*GetAdGroupCriterionRequest) Descriptor() ([]byte, []int) {
  38. return fileDescriptor_ad_group_criterion_service_d5ce27efc431f72d, []int{0}
  39. }
  40. func (m *GetAdGroupCriterionRequest) XXX_Unmarshal(b []byte) error {
  41. return xxx_messageInfo_GetAdGroupCriterionRequest.Unmarshal(m, b)
  42. }
  43. func (m *GetAdGroupCriterionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  44. return xxx_messageInfo_GetAdGroupCriterionRequest.Marshal(b, m, deterministic)
  45. }
  46. func (dst *GetAdGroupCriterionRequest) XXX_Merge(src proto.Message) {
  47. xxx_messageInfo_GetAdGroupCriterionRequest.Merge(dst, src)
  48. }
  49. func (m *GetAdGroupCriterionRequest) XXX_Size() int {
  50. return xxx_messageInfo_GetAdGroupCriterionRequest.Size(m)
  51. }
  52. func (m *GetAdGroupCriterionRequest) XXX_DiscardUnknown() {
  53. xxx_messageInfo_GetAdGroupCriterionRequest.DiscardUnknown(m)
  54. }
  55. var xxx_messageInfo_GetAdGroupCriterionRequest proto.InternalMessageInfo
  56. func (m *GetAdGroupCriterionRequest) GetResourceName() string {
  57. if m != nil {
  58. return m.ResourceName
  59. }
  60. return ""
  61. }
  62. // Request message for
  63. // [AdGroupCriterionService.MutateAdGroupCriteria][google.ads.googleads.v0.services.AdGroupCriterionService.MutateAdGroupCriteria].
  64. type MutateAdGroupCriteriaRequest struct {
  65. // ID of the customer whose criteria 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 criteria.
  68. Operations []*AdGroupCriterionOperation `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 *MutateAdGroupCriteriaRequest) Reset() { *m = MutateAdGroupCriteriaRequest{} }
  82. func (m *MutateAdGroupCriteriaRequest) String() string { return proto.CompactTextString(m) }
  83. func (*MutateAdGroupCriteriaRequest) ProtoMessage() {}
  84. func (*MutateAdGroupCriteriaRequest) Descriptor() ([]byte, []int) {
  85. return fileDescriptor_ad_group_criterion_service_d5ce27efc431f72d, []int{1}
  86. }
  87. func (m *MutateAdGroupCriteriaRequest) XXX_Unmarshal(b []byte) error {
  88. return xxx_messageInfo_MutateAdGroupCriteriaRequest.Unmarshal(m, b)
  89. }
  90. func (m *MutateAdGroupCriteriaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  91. return xxx_messageInfo_MutateAdGroupCriteriaRequest.Marshal(b, m, deterministic)
  92. }
  93. func (dst *MutateAdGroupCriteriaRequest) XXX_Merge(src proto.Message) {
  94. xxx_messageInfo_MutateAdGroupCriteriaRequest.Merge(dst, src)
  95. }
  96. func (m *MutateAdGroupCriteriaRequest) XXX_Size() int {
  97. return xxx_messageInfo_MutateAdGroupCriteriaRequest.Size(m)
  98. }
  99. func (m *MutateAdGroupCriteriaRequest) XXX_DiscardUnknown() {
  100. xxx_messageInfo_MutateAdGroupCriteriaRequest.DiscardUnknown(m)
  101. }
  102. var xxx_messageInfo_MutateAdGroupCriteriaRequest proto.InternalMessageInfo
  103. func (m *MutateAdGroupCriteriaRequest) GetCustomerId() string {
  104. if m != nil {
  105. return m.CustomerId
  106. }
  107. return ""
  108. }
  109. func (m *MutateAdGroupCriteriaRequest) GetOperations() []*AdGroupCriterionOperation {
  110. if m != nil {
  111. return m.Operations
  112. }
  113. return nil
  114. }
  115. func (m *MutateAdGroupCriteriaRequest) GetPartialFailure() bool {
  116. if m != nil {
  117. return m.PartialFailure
  118. }
  119. return false
  120. }
  121. func (m *MutateAdGroupCriteriaRequest) GetValidateOnly() bool {
  122. if m != nil {
  123. return m.ValidateOnly
  124. }
  125. return false
  126. }
  127. // A single operation (create, remove, update) on an ad group criterion.
  128. type AdGroupCriterionOperation 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. // *AdGroupCriterionOperation_Create
  135. // *AdGroupCriterionOperation_Update
  136. // *AdGroupCriterionOperation_Remove
  137. Operation isAdGroupCriterionOperation_Operation `protobuf_oneof:"operation"`
  138. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  139. XXX_unrecognized []byte `json:"-"`
  140. XXX_sizecache int32 `json:"-"`
  141. }
  142. func (m *AdGroupCriterionOperation) Reset() { *m = AdGroupCriterionOperation{} }
  143. func (m *AdGroupCriterionOperation) String() string { return proto.CompactTextString(m) }
  144. func (*AdGroupCriterionOperation) ProtoMessage() {}
  145. func (*AdGroupCriterionOperation) Descriptor() ([]byte, []int) {
  146. return fileDescriptor_ad_group_criterion_service_d5ce27efc431f72d, []int{2}
  147. }
  148. func (m *AdGroupCriterionOperation) XXX_Unmarshal(b []byte) error {
  149. return xxx_messageInfo_AdGroupCriterionOperation.Unmarshal(m, b)
  150. }
  151. func (m *AdGroupCriterionOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  152. return xxx_messageInfo_AdGroupCriterionOperation.Marshal(b, m, deterministic)
  153. }
  154. func (dst *AdGroupCriterionOperation) XXX_Merge(src proto.Message) {
  155. xxx_messageInfo_AdGroupCriterionOperation.Merge(dst, src)
  156. }
  157. func (m *AdGroupCriterionOperation) XXX_Size() int {
  158. return xxx_messageInfo_AdGroupCriterionOperation.Size(m)
  159. }
  160. func (m *AdGroupCriterionOperation) XXX_DiscardUnknown() {
  161. xxx_messageInfo_AdGroupCriterionOperation.DiscardUnknown(m)
  162. }
  163. var xxx_messageInfo_AdGroupCriterionOperation proto.InternalMessageInfo
  164. func (m *AdGroupCriterionOperation) GetUpdateMask() *field_mask.FieldMask {
  165. if m != nil {
  166. return m.UpdateMask
  167. }
  168. return nil
  169. }
  170. type isAdGroupCriterionOperation_Operation interface {
  171. isAdGroupCriterionOperation_Operation()
  172. }
  173. type AdGroupCriterionOperation_Create struct {
  174. Create *resources.AdGroupCriterion `protobuf:"bytes,1,opt,name=create,proto3,oneof"`
  175. }
  176. type AdGroupCriterionOperation_Update struct {
  177. Update *resources.AdGroupCriterion `protobuf:"bytes,2,opt,name=update,proto3,oneof"`
  178. }
  179. type AdGroupCriterionOperation_Remove struct {
  180. Remove string `protobuf:"bytes,3,opt,name=remove,proto3,oneof"`
  181. }
  182. func (*AdGroupCriterionOperation_Create) isAdGroupCriterionOperation_Operation() {}
  183. func (*AdGroupCriterionOperation_Update) isAdGroupCriterionOperation_Operation() {}
  184. func (*AdGroupCriterionOperation_Remove) isAdGroupCriterionOperation_Operation() {}
  185. func (m *AdGroupCriterionOperation) GetOperation() isAdGroupCriterionOperation_Operation {
  186. if m != nil {
  187. return m.Operation
  188. }
  189. return nil
  190. }
  191. func (m *AdGroupCriterionOperation) GetCreate() *resources.AdGroupCriterion {
  192. if x, ok := m.GetOperation().(*AdGroupCriterionOperation_Create); ok {
  193. return x.Create
  194. }
  195. return nil
  196. }
  197. func (m *AdGroupCriterionOperation) GetUpdate() *resources.AdGroupCriterion {
  198. if x, ok := m.GetOperation().(*AdGroupCriterionOperation_Update); ok {
  199. return x.Update
  200. }
  201. return nil
  202. }
  203. func (m *AdGroupCriterionOperation) GetRemove() string {
  204. if x, ok := m.GetOperation().(*AdGroupCriterionOperation_Remove); ok {
  205. return x.Remove
  206. }
  207. return ""
  208. }
  209. // XXX_OneofFuncs is for the internal use of the proto package.
  210. func (*AdGroupCriterionOperation) 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 _AdGroupCriterionOperation_OneofMarshaler, _AdGroupCriterionOperation_OneofUnmarshaler, _AdGroupCriterionOperation_OneofSizer, []interface{}{
  212. (*AdGroupCriterionOperation_Create)(nil),
  213. (*AdGroupCriterionOperation_Update)(nil),
  214. (*AdGroupCriterionOperation_Remove)(nil),
  215. }
  216. }
  217. func _AdGroupCriterionOperation_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  218. m := msg.(*AdGroupCriterionOperation)
  219. // operation
  220. switch x := m.Operation.(type) {
  221. case *AdGroupCriterionOperation_Create:
  222. b.EncodeVarint(1<<3 | proto.WireBytes)
  223. if err := b.EncodeMessage(x.Create); err != nil {
  224. return err
  225. }
  226. case *AdGroupCriterionOperation_Update:
  227. b.EncodeVarint(2<<3 | proto.WireBytes)
  228. if err := b.EncodeMessage(x.Update); err != nil {
  229. return err
  230. }
  231. case *AdGroupCriterionOperation_Remove:
  232. b.EncodeVarint(3<<3 | proto.WireBytes)
  233. b.EncodeStringBytes(x.Remove)
  234. case nil:
  235. default:
  236. return fmt.Errorf("AdGroupCriterionOperation.Operation has unexpected type %T", x)
  237. }
  238. return nil
  239. }
  240. func _AdGroupCriterionOperation_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  241. m := msg.(*AdGroupCriterionOperation)
  242. switch tag {
  243. case 1: // operation.create
  244. if wire != proto.WireBytes {
  245. return true, proto.ErrInternalBadWireType
  246. }
  247. msg := new(resources.AdGroupCriterion)
  248. err := b.DecodeMessage(msg)
  249. m.Operation = &AdGroupCriterionOperation_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.AdGroupCriterion)
  256. err := b.DecodeMessage(msg)
  257. m.Operation = &AdGroupCriterionOperation_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 = &AdGroupCriterionOperation_Remove{x}
  265. return true, err
  266. default:
  267. return false, nil
  268. }
  269. }
  270. func _AdGroupCriterionOperation_OneofSizer(msg proto.Message) (n int) {
  271. m := msg.(*AdGroupCriterionOperation)
  272. // operation
  273. switch x := m.Operation.(type) {
  274. case *AdGroupCriterionOperation_Create:
  275. s := proto.Size(x.Create)
  276. n += 1 // tag and wire
  277. n += proto.SizeVarint(uint64(s))
  278. n += s
  279. case *AdGroupCriterionOperation_Update:
  280. s := proto.Size(x.Update)
  281. n += 1 // tag and wire
  282. n += proto.SizeVarint(uint64(s))
  283. n += s
  284. case *AdGroupCriterionOperation_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 an ad group criterion mutate.
  295. type MutateAdGroupCriteriaResponse 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 []*MutateAdGroupCriterionResult `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 *MutateAdGroupCriteriaResponse) Reset() { *m = MutateAdGroupCriteriaResponse{} }
  308. func (m *MutateAdGroupCriteriaResponse) String() string { return proto.CompactTextString(m) }
  309. func (*MutateAdGroupCriteriaResponse) ProtoMessage() {}
  310. func (*MutateAdGroupCriteriaResponse) Descriptor() ([]byte, []int) {
  311. return fileDescriptor_ad_group_criterion_service_d5ce27efc431f72d, []int{3}
  312. }
  313. func (m *MutateAdGroupCriteriaResponse) XXX_Unmarshal(b []byte) error {
  314. return xxx_messageInfo_MutateAdGroupCriteriaResponse.Unmarshal(m, b)
  315. }
  316. func (m *MutateAdGroupCriteriaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  317. return xxx_messageInfo_MutateAdGroupCriteriaResponse.Marshal(b, m, deterministic)
  318. }
  319. func (dst *MutateAdGroupCriteriaResponse) XXX_Merge(src proto.Message) {
  320. xxx_messageInfo_MutateAdGroupCriteriaResponse.Merge(dst, src)
  321. }
  322. func (m *MutateAdGroupCriteriaResponse) XXX_Size() int {
  323. return xxx_messageInfo_MutateAdGroupCriteriaResponse.Size(m)
  324. }
  325. func (m *MutateAdGroupCriteriaResponse) XXX_DiscardUnknown() {
  326. xxx_messageInfo_MutateAdGroupCriteriaResponse.DiscardUnknown(m)
  327. }
  328. var xxx_messageInfo_MutateAdGroupCriteriaResponse proto.InternalMessageInfo
  329. func (m *MutateAdGroupCriteriaResponse) GetPartialFailureError() *status.Status {
  330. if m != nil {
  331. return m.PartialFailureError
  332. }
  333. return nil
  334. }
  335. func (m *MutateAdGroupCriteriaResponse) GetResults() []*MutateAdGroupCriterionResult {
  336. if m != nil {
  337. return m.Results
  338. }
  339. return nil
  340. }
  341. // The result for the criterion mutate.
  342. type MutateAdGroupCriterionResult 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 *MutateAdGroupCriterionResult) Reset() { *m = MutateAdGroupCriterionResult{} }
  350. func (m *MutateAdGroupCriterionResult) String() string { return proto.CompactTextString(m) }
  351. func (*MutateAdGroupCriterionResult) ProtoMessage() {}
  352. func (*MutateAdGroupCriterionResult) Descriptor() ([]byte, []int) {
  353. return fileDescriptor_ad_group_criterion_service_d5ce27efc431f72d, []int{4}
  354. }
  355. func (m *MutateAdGroupCriterionResult) XXX_Unmarshal(b []byte) error {
  356. return xxx_messageInfo_MutateAdGroupCriterionResult.Unmarshal(m, b)
  357. }
  358. func (m *MutateAdGroupCriterionResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  359. return xxx_messageInfo_MutateAdGroupCriterionResult.Marshal(b, m, deterministic)
  360. }
  361. func (dst *MutateAdGroupCriterionResult) XXX_Merge(src proto.Message) {
  362. xxx_messageInfo_MutateAdGroupCriterionResult.Merge(dst, src)
  363. }
  364. func (m *MutateAdGroupCriterionResult) XXX_Size() int {
  365. return xxx_messageInfo_MutateAdGroupCriterionResult.Size(m)
  366. }
  367. func (m *MutateAdGroupCriterionResult) XXX_DiscardUnknown() {
  368. xxx_messageInfo_MutateAdGroupCriterionResult.DiscardUnknown(m)
  369. }
  370. var xxx_messageInfo_MutateAdGroupCriterionResult proto.InternalMessageInfo
  371. func (m *MutateAdGroupCriterionResult) GetResourceName() string {
  372. if m != nil {
  373. return m.ResourceName
  374. }
  375. return ""
  376. }
  377. func init() {
  378. proto.RegisterType((*GetAdGroupCriterionRequest)(nil), "google.ads.googleads.v0.services.GetAdGroupCriterionRequest")
  379. proto.RegisterType((*MutateAdGroupCriteriaRequest)(nil), "google.ads.googleads.v0.services.MutateAdGroupCriteriaRequest")
  380. proto.RegisterType((*AdGroupCriterionOperation)(nil), "google.ads.googleads.v0.services.AdGroupCriterionOperation")
  381. proto.RegisterType((*MutateAdGroupCriteriaResponse)(nil), "google.ads.googleads.v0.services.MutateAdGroupCriteriaResponse")
  382. proto.RegisterType((*MutateAdGroupCriterionResult)(nil), "google.ads.googleads.v0.services.MutateAdGroupCriterionResult")
  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. // AdGroupCriterionServiceClient is the client API for AdGroupCriterionService 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 AdGroupCriterionServiceClient interface {
  394. // Returns the requested criterion in full detail.
  395. GetAdGroupCriterion(ctx context.Context, in *GetAdGroupCriterionRequest, opts ...grpc.CallOption) (*resources.AdGroupCriterion, error)
  396. // Creates, updates, or removes criteria. Operation statuses are returned.
  397. MutateAdGroupCriteria(ctx context.Context, in *MutateAdGroupCriteriaRequest, opts ...grpc.CallOption) (*MutateAdGroupCriteriaResponse, error)
  398. }
  399. type adGroupCriterionServiceClient struct {
  400. cc *grpc.ClientConn
  401. }
  402. func NewAdGroupCriterionServiceClient(cc *grpc.ClientConn) AdGroupCriterionServiceClient {
  403. return &adGroupCriterionServiceClient{cc}
  404. }
  405. func (c *adGroupCriterionServiceClient) GetAdGroupCriterion(ctx context.Context, in *GetAdGroupCriterionRequest, opts ...grpc.CallOption) (*resources.AdGroupCriterion, error) {
  406. out := new(resources.AdGroupCriterion)
  407. err := c.cc.Invoke(ctx, "/google.ads.googleads.v0.services.AdGroupCriterionService/GetAdGroupCriterion", in, out, opts...)
  408. if err != nil {
  409. return nil, err
  410. }
  411. return out, nil
  412. }
  413. func (c *adGroupCriterionServiceClient) MutateAdGroupCriteria(ctx context.Context, in *MutateAdGroupCriteriaRequest, opts ...grpc.CallOption) (*MutateAdGroupCriteriaResponse, error) {
  414. out := new(MutateAdGroupCriteriaResponse)
  415. err := c.cc.Invoke(ctx, "/google.ads.googleads.v0.services.AdGroupCriterionService/MutateAdGroupCriteria", in, out, opts...)
  416. if err != nil {
  417. return nil, err
  418. }
  419. return out, nil
  420. }
  421. // AdGroupCriterionServiceServer is the server API for AdGroupCriterionService service.
  422. type AdGroupCriterionServiceServer interface {
  423. // Returns the requested criterion in full detail.
  424. GetAdGroupCriterion(context.Context, *GetAdGroupCriterionRequest) (*resources.AdGroupCriterion, error)
  425. // Creates, updates, or removes criteria. Operation statuses are returned.
  426. MutateAdGroupCriteria(context.Context, *MutateAdGroupCriteriaRequest) (*MutateAdGroupCriteriaResponse, error)
  427. }
  428. func RegisterAdGroupCriterionServiceServer(s *grpc.Server, srv AdGroupCriterionServiceServer) {
  429. s.RegisterService(&_AdGroupCriterionService_serviceDesc, srv)
  430. }
  431. func _AdGroupCriterionService_GetAdGroupCriterion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  432. in := new(GetAdGroupCriterionRequest)
  433. if err := dec(in); err != nil {
  434. return nil, err
  435. }
  436. if interceptor == nil {
  437. return srv.(AdGroupCriterionServiceServer).GetAdGroupCriterion(ctx, in)
  438. }
  439. info := &grpc.UnaryServerInfo{
  440. Server: srv,
  441. FullMethod: "/google.ads.googleads.v0.services.AdGroupCriterionService/GetAdGroupCriterion",
  442. }
  443. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  444. return srv.(AdGroupCriterionServiceServer).GetAdGroupCriterion(ctx, req.(*GetAdGroupCriterionRequest))
  445. }
  446. return interceptor(ctx, in, info, handler)
  447. }
  448. func _AdGroupCriterionService_MutateAdGroupCriteria_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  449. in := new(MutateAdGroupCriteriaRequest)
  450. if err := dec(in); err != nil {
  451. return nil, err
  452. }
  453. if interceptor == nil {
  454. return srv.(AdGroupCriterionServiceServer).MutateAdGroupCriteria(ctx, in)
  455. }
  456. info := &grpc.UnaryServerInfo{
  457. Server: srv,
  458. FullMethod: "/google.ads.googleads.v0.services.AdGroupCriterionService/MutateAdGroupCriteria",
  459. }
  460. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  461. return srv.(AdGroupCriterionServiceServer).MutateAdGroupCriteria(ctx, req.(*MutateAdGroupCriteriaRequest))
  462. }
  463. return interceptor(ctx, in, info, handler)
  464. }
  465. var _AdGroupCriterionService_serviceDesc = grpc.ServiceDesc{
  466. ServiceName: "google.ads.googleads.v0.services.AdGroupCriterionService",
  467. HandlerType: (*AdGroupCriterionServiceServer)(nil),
  468. Methods: []grpc.MethodDesc{
  469. {
  470. MethodName: "GetAdGroupCriterion",
  471. Handler: _AdGroupCriterionService_GetAdGroupCriterion_Handler,
  472. },
  473. {
  474. MethodName: "MutateAdGroupCriteria",
  475. Handler: _AdGroupCriterionService_MutateAdGroupCriteria_Handler,
  476. },
  477. },
  478. Streams: []grpc.StreamDesc{},
  479. Metadata: "google/ads/googleads/v0/services/ad_group_criterion_service.proto",
  480. }
  481. func init() {
  482. proto.RegisterFile("google/ads/googleads/v0/services/ad_group_criterion_service.proto", fileDescriptor_ad_group_criterion_service_d5ce27efc431f72d)
  483. }
  484. var fileDescriptor_ad_group_criterion_service_d5ce27efc431f72d = []byte{
  485. // 722 bytes of a gzipped FileDescriptorProto
  486. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x95, 0x4f, 0x4f, 0xd4, 0x4c,
  487. 0x1c, 0xc7, 0x9f, 0x76, 0x9f, 0xf0, 0x3c, 0xcc, 0xf2, 0x3c, 0x26, 0x43, 0x08, 0xeb, 0x06, 0x75,
  488. 0x53, 0x49, 0x24, 0x7b, 0x68, 0xd7, 0xc5, 0x0b, 0x45, 0x24, 0x85, 0xc8, 0xe2, 0x01, 0x21, 0x25,
  489. 0x21, 0x46, 0x37, 0x69, 0x86, 0x76, 0x68, 0x1a, 0xda, 0x4e, 0x9d, 0x99, 0xae, 0x21, 0x84, 0x8b,
  490. 0xbe, 0x04, 0xcf, 0x5e, 0x3c, 0xfa, 0x16, 0x3c, 0x19, 0x6f, 0x5e, 0x3d, 0x79, 0xf7, 0xc4, 0xab,
  491. 0x30, 0xd3, 0xe9, 0xac, 0xec, 0xba, 0xcd, 0x1a, 0xbc, 0xfd, 0xfa, 0x9b, 0xef, 0x7c, 0xe6, 0xf7,
  492. 0x6f, 0xa6, 0xc0, 0x09, 0x09, 0x09, 0x63, 0x6c, 0xa1, 0x80, 0x59, 0xd2, 0x14, 0xd6, 0xa0, 0x63,
  493. 0x31, 0x4c, 0x07, 0x91, 0x8f, 0x99, 0x85, 0x02, 0x2f, 0xa4, 0x24, 0xcf, 0x3c, 0x9f, 0x46, 0x1c,
  494. 0xd3, 0x88, 0xa4, 0x5e, 0xb9, 0x66, 0x66, 0x94, 0x70, 0x02, 0x5b, 0x72, 0x9f, 0x89, 0x02, 0x66,
  495. 0x0e, 0x11, 0xe6, 0xa0, 0x63, 0x2a, 0x44, 0xd3, 0xae, 0x3a, 0x84, 0x62, 0x46, 0x72, 0x3a, 0xf9,
  496. 0x14, 0x49, 0x6f, 0x2e, 0xa9, 0xbd, 0x59, 0x64, 0xa1, 0x34, 0x25, 0x1c, 0xf1, 0x88, 0xa4, 0xac,
  497. 0x5c, 0x2d, 0xcf, 0xb6, 0x8a, 0xaf, 0xe3, 0xfc, 0xc4, 0x3a, 0x89, 0x70, 0x1c, 0x78, 0x09, 0x62,
  498. 0xa7, 0xa5, 0xe2, 0xf6, 0xb8, 0xe2, 0x15, 0x45, 0x59, 0x86, 0xa9, 0x22, 0x2c, 0x96, 0xeb, 0x34,
  499. 0xf3, 0x2d, 0xc6, 0x11, 0xcf, 0xcb, 0x05, 0xc3, 0x01, 0xcd, 0x1e, 0xe6, 0x4e, 0xd0, 0x13, 0x61,
  500. 0x6d, 0xab, 0xa8, 0x5c, 0xfc, 0x32, 0xc7, 0x8c, 0xc3, 0xbb, 0xe0, 0x3f, 0x15, 0xbc, 0x97, 0xa2,
  501. 0x04, 0x37, 0xb4, 0x96, 0xb6, 0x32, 0xeb, 0xce, 0x29, 0xe7, 0x53, 0x94, 0x60, 0xe3, 0x52, 0x03,
  502. 0x4b, 0x7b, 0x39, 0x47, 0x1c, 0x8f, 0x62, 0x90, 0xa2, 0xdc, 0x01, 0x75, 0x3f, 0x67, 0x9c, 0x24,
  503. 0x98, 0x7a, 0x51, 0x50, 0x32, 0x80, 0x72, 0x3d, 0x09, 0xe0, 0x0b, 0x00, 0x48, 0x86, 0xa9, 0xcc,
  504. 0xb9, 0xa1, 0xb7, 0x6a, 0x2b, 0xf5, 0xee, 0xba, 0x39, 0xad, 0xe0, 0xe6, 0x78, 0xd4, 0xfb, 0x8a,
  505. 0xe1, 0x5e, 0xc1, 0xc1, 0x7b, 0xe0, 0x46, 0x86, 0x28, 0x8f, 0x50, 0xec, 0x9d, 0xa0, 0x28, 0xce,
  506. 0x29, 0x6e, 0xd4, 0x5a, 0xda, 0xca, 0xbf, 0xee, 0xff, 0xa5, 0x7b, 0x47, 0x7a, 0x45, 0xb2, 0x03,
  507. 0x14, 0x47, 0x01, 0xe2, 0xd8, 0x23, 0x69, 0x7c, 0xd6, 0xf8, 0xbb, 0x90, 0xcd, 0x29, 0xe7, 0x7e,
  508. 0x1a, 0x9f, 0x19, 0xef, 0x74, 0x70, 0xb3, 0xf2, 0x5c, 0xb8, 0x0e, 0xea, 0x79, 0x56, 0x00, 0x44,
  509. 0x6f, 0x0a, 0x40, 0xbd, 0xdb, 0x54, 0x99, 0xa8, 0xe6, 0x98, 0x3b, 0xa2, 0x7d, 0x7b, 0x88, 0x9d,
  510. 0xba, 0x40, 0xca, 0x85, 0x0d, 0xf7, 0xc0, 0x8c, 0x4f, 0x31, 0xe2, 0xb2, 0xca, 0xf5, 0xee, 0x6a,
  511. 0x65, 0x05, 0x86, 0x03, 0xf5, 0x4b, 0x09, 0x76, 0xff, 0x72, 0x4b, 0x88, 0xc0, 0x49, 0x78, 0x43,
  512. 0xff, 0x23, 0x9c, 0x84, 0xc0, 0x06, 0x98, 0xa1, 0x38, 0x21, 0x03, 0x59, 0xbd, 0x59, 0xb1, 0x22,
  513. 0xbf, 0xb7, 0xea, 0x60, 0x76, 0x58, 0x6e, 0xe3, 0x93, 0x06, 0x6e, 0x55, 0x0c, 0x03, 0xcb, 0x48,
  514. 0xca, 0x30, 0xdc, 0x01, 0x0b, 0x63, 0xfd, 0xf0, 0x30, 0xa5, 0x84, 0x16, 0xdc, 0x7a, 0x17, 0xaa,
  515. 0x30, 0x69, 0xe6, 0x9b, 0x87, 0xc5, 0xa8, 0xba, 0xf3, 0xa3, 0x9d, 0x7a, 0x2c, 0xe4, 0xf0, 0x19,
  516. 0xf8, 0x87, 0x62, 0x96, 0xc7, 0x5c, 0x4d, 0xcc, 0xa3, 0xe9, 0x13, 0x33, 0x29, 0x32, 0x31, 0xed,
  517. 0x02, 0xe3, 0x2a, 0x9c, 0xb1, 0x3d, 0x79, 0x9e, 0x95, 0xf0, 0xb7, 0x6e, 0x45, 0xf7, 0x63, 0x0d,
  518. 0x2c, 0x8e, 0xef, 0x3f, 0x94, 0x71, 0xc0, 0xcf, 0x1a, 0x98, 0x9f, 0x70, 0xeb, 0xe0, 0xc3, 0xe9,
  519. 0x19, 0x54, 0x5f, 0xd6, 0xe6, 0x75, 0x1a, 0x6c, 0xac, 0xbd, 0xfe, 0xfa, 0xfd, 0xad, 0xbe, 0x0a,
  520. 0xef, 0x8b, 0x87, 0xea, 0x7c, 0x24, 0xad, 0x0d, 0x75, 0x43, 0x99, 0xd5, 0xb6, 0xd0, 0x68, 0x37,
  521. 0xad, 0xf6, 0x05, 0xfc, 0xa6, 0x81, 0x85, 0x89, 0xad, 0x86, 0xd7, 0xec, 0x84, 0x7a, 0x30, 0x9a,
  522. 0x9b, 0xd7, 0xde, 0x2f, 0x67, 0xcc, 0xd8, 0x2c, 0xb2, 0x5a, 0x33, 0x1e, 0x88, 0xac, 0x7e, 0xa6,
  523. 0x71, 0x7e, 0xe5, 0x19, 0xda, 0x68, 0x5f, 0x8c, 0x27, 0x65, 0x27, 0x05, 0xd4, 0xd6, 0xda, 0x5b,
  524. 0x6f, 0x74, 0xb0, 0xec, 0x93, 0x64, 0x6a, 0x1c, 0x5b, 0x4b, 0x15, 0x3d, 0x3e, 0x10, 0x77, 0xfd,
  525. 0x40, 0x7b, 0xbe, 0x5b, 0x12, 0x42, 0x12, 0xa3, 0x34, 0x34, 0x09, 0x0d, 0xad, 0x10, 0xa7, 0xc5,
  526. 0x4b, 0xa0, 0x7e, 0x12, 0x59, 0xc4, 0xaa, 0x7f, 0x4c, 0xeb, 0xca, 0x78, 0xaf, 0xd7, 0x7a, 0x8e,
  527. 0xf3, 0x41, 0x6f, 0xf5, 0x24, 0xd0, 0x09, 0x98, 0x29, 0x4d, 0x61, 0x1d, 0x75, 0xcc, 0xf2, 0x60,
  528. 0xf6, 0x45, 0x49, 0xfa, 0x4e, 0xc0, 0xfa, 0x43, 0x49, 0xff, 0xa8, 0xd3, 0x57, 0x92, 0x4b, 0x7d,
  529. 0x59, 0xfa, 0x6d, 0xdb, 0x09, 0x98, 0x6d, 0x0f, 0x45, 0xb6, 0x7d, 0xd4, 0xb1, 0x6d, 0x25, 0x3b,
  530. 0x9e, 0x29, 0xe2, 0x5c, 0xfd, 0x11, 0x00, 0x00, 0xff, 0xff, 0xb6, 0xb7, 0x0b, 0x04, 0x3f, 0x07,
  531. 0x00, 0x00,
  532. }