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.
 
 
 

672 lines
30 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/ads/googleads/v0/services/customer_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 field_mask "google.golang.org/genproto/protobuf/field_mask"
  11. import (
  12. context "golang.org/x/net/context"
  13. grpc "google.golang.org/grpc"
  14. )
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var _ = proto.Marshal
  17. var _ = fmt.Errorf
  18. var _ = math.Inf
  19. // This is a compile-time assertion to ensure that this generated file
  20. // is compatible with the proto package it is being compiled against.
  21. // A compilation error at this line likely means your copy of the
  22. // proto package needs to be updated.
  23. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  24. // Request message for
  25. // [CustomerService.GetCustomer][google.ads.googleads.v0.services.CustomerService.GetCustomer].
  26. type GetCustomerRequest struct {
  27. // The resource name of the customer to fetch.
  28. ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
  29. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  30. XXX_unrecognized []byte `json:"-"`
  31. XXX_sizecache int32 `json:"-"`
  32. }
  33. func (m *GetCustomerRequest) Reset() { *m = GetCustomerRequest{} }
  34. func (m *GetCustomerRequest) String() string { return proto.CompactTextString(m) }
  35. func (*GetCustomerRequest) ProtoMessage() {}
  36. func (*GetCustomerRequest) Descriptor() ([]byte, []int) {
  37. return fileDescriptor_customer_service_e2c9b50dc5d976a3, []int{0}
  38. }
  39. func (m *GetCustomerRequest) XXX_Unmarshal(b []byte) error {
  40. return xxx_messageInfo_GetCustomerRequest.Unmarshal(m, b)
  41. }
  42. func (m *GetCustomerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  43. return xxx_messageInfo_GetCustomerRequest.Marshal(b, m, deterministic)
  44. }
  45. func (dst *GetCustomerRequest) XXX_Merge(src proto.Message) {
  46. xxx_messageInfo_GetCustomerRequest.Merge(dst, src)
  47. }
  48. func (m *GetCustomerRequest) XXX_Size() int {
  49. return xxx_messageInfo_GetCustomerRequest.Size(m)
  50. }
  51. func (m *GetCustomerRequest) XXX_DiscardUnknown() {
  52. xxx_messageInfo_GetCustomerRequest.DiscardUnknown(m)
  53. }
  54. var xxx_messageInfo_GetCustomerRequest proto.InternalMessageInfo
  55. func (m *GetCustomerRequest) GetResourceName() string {
  56. if m != nil {
  57. return m.ResourceName
  58. }
  59. return ""
  60. }
  61. // Request message for
  62. // [CustomerService.MutateCustomer][google.ads.googleads.v0.services.CustomerService.MutateCustomer].
  63. type MutateCustomerRequest struct {
  64. // The ID of the customer being modified.
  65. CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
  66. // The operation to perform on the customer
  67. Operation *CustomerOperation `protobuf:"bytes,4,opt,name=operation,proto3" json:"operation,omitempty"`
  68. // If true, the request is validated but not executed. Only errors are
  69. // returned, not results.
  70. ValidateOnly bool `protobuf:"varint,5,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
  71. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  72. XXX_unrecognized []byte `json:"-"`
  73. XXX_sizecache int32 `json:"-"`
  74. }
  75. func (m *MutateCustomerRequest) Reset() { *m = MutateCustomerRequest{} }
  76. func (m *MutateCustomerRequest) String() string { return proto.CompactTextString(m) }
  77. func (*MutateCustomerRequest) ProtoMessage() {}
  78. func (*MutateCustomerRequest) Descriptor() ([]byte, []int) {
  79. return fileDescriptor_customer_service_e2c9b50dc5d976a3, []int{1}
  80. }
  81. func (m *MutateCustomerRequest) XXX_Unmarshal(b []byte) error {
  82. return xxx_messageInfo_MutateCustomerRequest.Unmarshal(m, b)
  83. }
  84. func (m *MutateCustomerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  85. return xxx_messageInfo_MutateCustomerRequest.Marshal(b, m, deterministic)
  86. }
  87. func (dst *MutateCustomerRequest) XXX_Merge(src proto.Message) {
  88. xxx_messageInfo_MutateCustomerRequest.Merge(dst, src)
  89. }
  90. func (m *MutateCustomerRequest) XXX_Size() int {
  91. return xxx_messageInfo_MutateCustomerRequest.Size(m)
  92. }
  93. func (m *MutateCustomerRequest) XXX_DiscardUnknown() {
  94. xxx_messageInfo_MutateCustomerRequest.DiscardUnknown(m)
  95. }
  96. var xxx_messageInfo_MutateCustomerRequest proto.InternalMessageInfo
  97. func (m *MutateCustomerRequest) GetCustomerId() string {
  98. if m != nil {
  99. return m.CustomerId
  100. }
  101. return ""
  102. }
  103. func (m *MutateCustomerRequest) GetOperation() *CustomerOperation {
  104. if m != nil {
  105. return m.Operation
  106. }
  107. return nil
  108. }
  109. func (m *MutateCustomerRequest) GetValidateOnly() bool {
  110. if m != nil {
  111. return m.ValidateOnly
  112. }
  113. return false
  114. }
  115. // Request message for
  116. // [CustomerService.CreateCustomerClient][google.ads.googleads.v0.services.CustomerService.CreateCustomerClient].
  117. type CreateCustomerClientRequest struct {
  118. // The ID of the Manager under whom client customer is being created.
  119. CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
  120. // The new client customer to create. The resource name on this customer
  121. // will be ignored.
  122. CustomerClient *resources.Customer `protobuf:"bytes,2,opt,name=customer_client,json=customerClient,proto3" json:"customer_client,omitempty"`
  123. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  124. XXX_unrecognized []byte `json:"-"`
  125. XXX_sizecache int32 `json:"-"`
  126. }
  127. func (m *CreateCustomerClientRequest) Reset() { *m = CreateCustomerClientRequest{} }
  128. func (m *CreateCustomerClientRequest) String() string { return proto.CompactTextString(m) }
  129. func (*CreateCustomerClientRequest) ProtoMessage() {}
  130. func (*CreateCustomerClientRequest) Descriptor() ([]byte, []int) {
  131. return fileDescriptor_customer_service_e2c9b50dc5d976a3, []int{2}
  132. }
  133. func (m *CreateCustomerClientRequest) XXX_Unmarshal(b []byte) error {
  134. return xxx_messageInfo_CreateCustomerClientRequest.Unmarshal(m, b)
  135. }
  136. func (m *CreateCustomerClientRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  137. return xxx_messageInfo_CreateCustomerClientRequest.Marshal(b, m, deterministic)
  138. }
  139. func (dst *CreateCustomerClientRequest) XXX_Merge(src proto.Message) {
  140. xxx_messageInfo_CreateCustomerClientRequest.Merge(dst, src)
  141. }
  142. func (m *CreateCustomerClientRequest) XXX_Size() int {
  143. return xxx_messageInfo_CreateCustomerClientRequest.Size(m)
  144. }
  145. func (m *CreateCustomerClientRequest) XXX_DiscardUnknown() {
  146. xxx_messageInfo_CreateCustomerClientRequest.DiscardUnknown(m)
  147. }
  148. var xxx_messageInfo_CreateCustomerClientRequest proto.InternalMessageInfo
  149. func (m *CreateCustomerClientRequest) GetCustomerId() string {
  150. if m != nil {
  151. return m.CustomerId
  152. }
  153. return ""
  154. }
  155. func (m *CreateCustomerClientRequest) GetCustomerClient() *resources.Customer {
  156. if m != nil {
  157. return m.CustomerClient
  158. }
  159. return nil
  160. }
  161. // A single update on a customer.
  162. type CustomerOperation struct {
  163. // Mutate operation. Only updates are supported for customer.
  164. Update *resources.Customer `protobuf:"bytes,1,opt,name=update,proto3" json:"update,omitempty"`
  165. // FieldMask that determines which resource fields are modified in an update.
  166. UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
  167. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  168. XXX_unrecognized []byte `json:"-"`
  169. XXX_sizecache int32 `json:"-"`
  170. }
  171. func (m *CustomerOperation) Reset() { *m = CustomerOperation{} }
  172. func (m *CustomerOperation) String() string { return proto.CompactTextString(m) }
  173. func (*CustomerOperation) ProtoMessage() {}
  174. func (*CustomerOperation) Descriptor() ([]byte, []int) {
  175. return fileDescriptor_customer_service_e2c9b50dc5d976a3, []int{3}
  176. }
  177. func (m *CustomerOperation) XXX_Unmarshal(b []byte) error {
  178. return xxx_messageInfo_CustomerOperation.Unmarshal(m, b)
  179. }
  180. func (m *CustomerOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  181. return xxx_messageInfo_CustomerOperation.Marshal(b, m, deterministic)
  182. }
  183. func (dst *CustomerOperation) XXX_Merge(src proto.Message) {
  184. xxx_messageInfo_CustomerOperation.Merge(dst, src)
  185. }
  186. func (m *CustomerOperation) XXX_Size() int {
  187. return xxx_messageInfo_CustomerOperation.Size(m)
  188. }
  189. func (m *CustomerOperation) XXX_DiscardUnknown() {
  190. xxx_messageInfo_CustomerOperation.DiscardUnknown(m)
  191. }
  192. var xxx_messageInfo_CustomerOperation proto.InternalMessageInfo
  193. func (m *CustomerOperation) GetUpdate() *resources.Customer {
  194. if m != nil {
  195. return m.Update
  196. }
  197. return nil
  198. }
  199. func (m *CustomerOperation) GetUpdateMask() *field_mask.FieldMask {
  200. if m != nil {
  201. return m.UpdateMask
  202. }
  203. return nil
  204. }
  205. // Response message for CreateCustomerClient mutate.
  206. type CreateCustomerClientResponse struct {
  207. // The resource name of the newly created customer client.
  208. ResourceName string `protobuf:"bytes,2,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
  209. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  210. XXX_unrecognized []byte `json:"-"`
  211. XXX_sizecache int32 `json:"-"`
  212. }
  213. func (m *CreateCustomerClientResponse) Reset() { *m = CreateCustomerClientResponse{} }
  214. func (m *CreateCustomerClientResponse) String() string { return proto.CompactTextString(m) }
  215. func (*CreateCustomerClientResponse) ProtoMessage() {}
  216. func (*CreateCustomerClientResponse) Descriptor() ([]byte, []int) {
  217. return fileDescriptor_customer_service_e2c9b50dc5d976a3, []int{4}
  218. }
  219. func (m *CreateCustomerClientResponse) XXX_Unmarshal(b []byte) error {
  220. return xxx_messageInfo_CreateCustomerClientResponse.Unmarshal(m, b)
  221. }
  222. func (m *CreateCustomerClientResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  223. return xxx_messageInfo_CreateCustomerClientResponse.Marshal(b, m, deterministic)
  224. }
  225. func (dst *CreateCustomerClientResponse) XXX_Merge(src proto.Message) {
  226. xxx_messageInfo_CreateCustomerClientResponse.Merge(dst, src)
  227. }
  228. func (m *CreateCustomerClientResponse) XXX_Size() int {
  229. return xxx_messageInfo_CreateCustomerClientResponse.Size(m)
  230. }
  231. func (m *CreateCustomerClientResponse) XXX_DiscardUnknown() {
  232. xxx_messageInfo_CreateCustomerClientResponse.DiscardUnknown(m)
  233. }
  234. var xxx_messageInfo_CreateCustomerClientResponse proto.InternalMessageInfo
  235. func (m *CreateCustomerClientResponse) GetResourceName() string {
  236. if m != nil {
  237. return m.ResourceName
  238. }
  239. return ""
  240. }
  241. // Response message for customer mutate.
  242. type MutateCustomerResponse struct {
  243. // Result for the mutate.
  244. Result *MutateCustomerResult `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
  245. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  246. XXX_unrecognized []byte `json:"-"`
  247. XXX_sizecache int32 `json:"-"`
  248. }
  249. func (m *MutateCustomerResponse) Reset() { *m = MutateCustomerResponse{} }
  250. func (m *MutateCustomerResponse) String() string { return proto.CompactTextString(m) }
  251. func (*MutateCustomerResponse) ProtoMessage() {}
  252. func (*MutateCustomerResponse) Descriptor() ([]byte, []int) {
  253. return fileDescriptor_customer_service_e2c9b50dc5d976a3, []int{5}
  254. }
  255. func (m *MutateCustomerResponse) XXX_Unmarshal(b []byte) error {
  256. return xxx_messageInfo_MutateCustomerResponse.Unmarshal(m, b)
  257. }
  258. func (m *MutateCustomerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  259. return xxx_messageInfo_MutateCustomerResponse.Marshal(b, m, deterministic)
  260. }
  261. func (dst *MutateCustomerResponse) XXX_Merge(src proto.Message) {
  262. xxx_messageInfo_MutateCustomerResponse.Merge(dst, src)
  263. }
  264. func (m *MutateCustomerResponse) XXX_Size() int {
  265. return xxx_messageInfo_MutateCustomerResponse.Size(m)
  266. }
  267. func (m *MutateCustomerResponse) XXX_DiscardUnknown() {
  268. xxx_messageInfo_MutateCustomerResponse.DiscardUnknown(m)
  269. }
  270. var xxx_messageInfo_MutateCustomerResponse proto.InternalMessageInfo
  271. func (m *MutateCustomerResponse) GetResult() *MutateCustomerResult {
  272. if m != nil {
  273. return m.Result
  274. }
  275. return nil
  276. }
  277. // The result for the customer mutate.
  278. type MutateCustomerResult struct {
  279. // Returned for successful operations.
  280. ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
  281. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  282. XXX_unrecognized []byte `json:"-"`
  283. XXX_sizecache int32 `json:"-"`
  284. }
  285. func (m *MutateCustomerResult) Reset() { *m = MutateCustomerResult{} }
  286. func (m *MutateCustomerResult) String() string { return proto.CompactTextString(m) }
  287. func (*MutateCustomerResult) ProtoMessage() {}
  288. func (*MutateCustomerResult) Descriptor() ([]byte, []int) {
  289. return fileDescriptor_customer_service_e2c9b50dc5d976a3, []int{6}
  290. }
  291. func (m *MutateCustomerResult) XXX_Unmarshal(b []byte) error {
  292. return xxx_messageInfo_MutateCustomerResult.Unmarshal(m, b)
  293. }
  294. func (m *MutateCustomerResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  295. return xxx_messageInfo_MutateCustomerResult.Marshal(b, m, deterministic)
  296. }
  297. func (dst *MutateCustomerResult) XXX_Merge(src proto.Message) {
  298. xxx_messageInfo_MutateCustomerResult.Merge(dst, src)
  299. }
  300. func (m *MutateCustomerResult) XXX_Size() int {
  301. return xxx_messageInfo_MutateCustomerResult.Size(m)
  302. }
  303. func (m *MutateCustomerResult) XXX_DiscardUnknown() {
  304. xxx_messageInfo_MutateCustomerResult.DiscardUnknown(m)
  305. }
  306. var xxx_messageInfo_MutateCustomerResult proto.InternalMessageInfo
  307. func (m *MutateCustomerResult) GetResourceName() string {
  308. if m != nil {
  309. return m.ResourceName
  310. }
  311. return ""
  312. }
  313. // Request message for
  314. // [CustomerService.ListAccessibleCustomers][google.ads.googleads.v0.services.CustomerService.ListAccessibleCustomers].
  315. type ListAccessibleCustomersRequest struct {
  316. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  317. XXX_unrecognized []byte `json:"-"`
  318. XXX_sizecache int32 `json:"-"`
  319. }
  320. func (m *ListAccessibleCustomersRequest) Reset() { *m = ListAccessibleCustomersRequest{} }
  321. func (m *ListAccessibleCustomersRequest) String() string { return proto.CompactTextString(m) }
  322. func (*ListAccessibleCustomersRequest) ProtoMessage() {}
  323. func (*ListAccessibleCustomersRequest) Descriptor() ([]byte, []int) {
  324. return fileDescriptor_customer_service_e2c9b50dc5d976a3, []int{7}
  325. }
  326. func (m *ListAccessibleCustomersRequest) XXX_Unmarshal(b []byte) error {
  327. return xxx_messageInfo_ListAccessibleCustomersRequest.Unmarshal(m, b)
  328. }
  329. func (m *ListAccessibleCustomersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  330. return xxx_messageInfo_ListAccessibleCustomersRequest.Marshal(b, m, deterministic)
  331. }
  332. func (dst *ListAccessibleCustomersRequest) XXX_Merge(src proto.Message) {
  333. xxx_messageInfo_ListAccessibleCustomersRequest.Merge(dst, src)
  334. }
  335. func (m *ListAccessibleCustomersRequest) XXX_Size() int {
  336. return xxx_messageInfo_ListAccessibleCustomersRequest.Size(m)
  337. }
  338. func (m *ListAccessibleCustomersRequest) XXX_DiscardUnknown() {
  339. xxx_messageInfo_ListAccessibleCustomersRequest.DiscardUnknown(m)
  340. }
  341. var xxx_messageInfo_ListAccessibleCustomersRequest proto.InternalMessageInfo
  342. // Response message for
  343. // [CustomerService.ListAccessibleCustomers][google.ads.googleads.v0.services.CustomerService.ListAccessibleCustomers].
  344. type ListAccessibleCustomersResponse struct {
  345. // Resource name of customers directly accessible by the
  346. // user authenticating the call.
  347. ResourceNames []string `protobuf:"bytes,1,rep,name=resource_names,json=resourceNames,proto3" json:"resource_names,omitempty"`
  348. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  349. XXX_unrecognized []byte `json:"-"`
  350. XXX_sizecache int32 `json:"-"`
  351. }
  352. func (m *ListAccessibleCustomersResponse) Reset() { *m = ListAccessibleCustomersResponse{} }
  353. func (m *ListAccessibleCustomersResponse) String() string { return proto.CompactTextString(m) }
  354. func (*ListAccessibleCustomersResponse) ProtoMessage() {}
  355. func (*ListAccessibleCustomersResponse) Descriptor() ([]byte, []int) {
  356. return fileDescriptor_customer_service_e2c9b50dc5d976a3, []int{8}
  357. }
  358. func (m *ListAccessibleCustomersResponse) XXX_Unmarshal(b []byte) error {
  359. return xxx_messageInfo_ListAccessibleCustomersResponse.Unmarshal(m, b)
  360. }
  361. func (m *ListAccessibleCustomersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  362. return xxx_messageInfo_ListAccessibleCustomersResponse.Marshal(b, m, deterministic)
  363. }
  364. func (dst *ListAccessibleCustomersResponse) XXX_Merge(src proto.Message) {
  365. xxx_messageInfo_ListAccessibleCustomersResponse.Merge(dst, src)
  366. }
  367. func (m *ListAccessibleCustomersResponse) XXX_Size() int {
  368. return xxx_messageInfo_ListAccessibleCustomersResponse.Size(m)
  369. }
  370. func (m *ListAccessibleCustomersResponse) XXX_DiscardUnknown() {
  371. xxx_messageInfo_ListAccessibleCustomersResponse.DiscardUnknown(m)
  372. }
  373. var xxx_messageInfo_ListAccessibleCustomersResponse proto.InternalMessageInfo
  374. func (m *ListAccessibleCustomersResponse) GetResourceNames() []string {
  375. if m != nil {
  376. return m.ResourceNames
  377. }
  378. return nil
  379. }
  380. func init() {
  381. proto.RegisterType((*GetCustomerRequest)(nil), "google.ads.googleads.v0.services.GetCustomerRequest")
  382. proto.RegisterType((*MutateCustomerRequest)(nil), "google.ads.googleads.v0.services.MutateCustomerRequest")
  383. proto.RegisterType((*CreateCustomerClientRequest)(nil), "google.ads.googleads.v0.services.CreateCustomerClientRequest")
  384. proto.RegisterType((*CustomerOperation)(nil), "google.ads.googleads.v0.services.CustomerOperation")
  385. proto.RegisterType((*CreateCustomerClientResponse)(nil), "google.ads.googleads.v0.services.CreateCustomerClientResponse")
  386. proto.RegisterType((*MutateCustomerResponse)(nil), "google.ads.googleads.v0.services.MutateCustomerResponse")
  387. proto.RegisterType((*MutateCustomerResult)(nil), "google.ads.googleads.v0.services.MutateCustomerResult")
  388. proto.RegisterType((*ListAccessibleCustomersRequest)(nil), "google.ads.googleads.v0.services.ListAccessibleCustomersRequest")
  389. proto.RegisterType((*ListAccessibleCustomersResponse)(nil), "google.ads.googleads.v0.services.ListAccessibleCustomersResponse")
  390. }
  391. // Reference imports to suppress errors if they are not otherwise used.
  392. var _ context.Context
  393. var _ grpc.ClientConn
  394. // This is a compile-time assertion to ensure that this generated file
  395. // is compatible with the grpc package it is being compiled against.
  396. const _ = grpc.SupportPackageIsVersion4
  397. // CustomerServiceClient is the client API for CustomerService service.
  398. //
  399. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  400. type CustomerServiceClient interface {
  401. // Returns the requested customer in full detail.
  402. GetCustomer(ctx context.Context, in *GetCustomerRequest, opts ...grpc.CallOption) (*resources.Customer, error)
  403. // Updates a customer. Operation statuses are returned.
  404. MutateCustomer(ctx context.Context, in *MutateCustomerRequest, opts ...grpc.CallOption) (*MutateCustomerResponse, error)
  405. // Returns resource names of customers directly accessible by the
  406. // user authenticating the call.
  407. ListAccessibleCustomers(ctx context.Context, in *ListAccessibleCustomersRequest, opts ...grpc.CallOption) (*ListAccessibleCustomersResponse, error)
  408. // Creates a new client under manager. The new client customer is returned.
  409. CreateCustomerClient(ctx context.Context, in *CreateCustomerClientRequest, opts ...grpc.CallOption) (*CreateCustomerClientResponse, error)
  410. }
  411. type customerServiceClient struct {
  412. cc *grpc.ClientConn
  413. }
  414. func NewCustomerServiceClient(cc *grpc.ClientConn) CustomerServiceClient {
  415. return &customerServiceClient{cc}
  416. }
  417. func (c *customerServiceClient) GetCustomer(ctx context.Context, in *GetCustomerRequest, opts ...grpc.CallOption) (*resources.Customer, error) {
  418. out := new(resources.Customer)
  419. err := c.cc.Invoke(ctx, "/google.ads.googleads.v0.services.CustomerService/GetCustomer", in, out, opts...)
  420. if err != nil {
  421. return nil, err
  422. }
  423. return out, nil
  424. }
  425. func (c *customerServiceClient) MutateCustomer(ctx context.Context, in *MutateCustomerRequest, opts ...grpc.CallOption) (*MutateCustomerResponse, error) {
  426. out := new(MutateCustomerResponse)
  427. err := c.cc.Invoke(ctx, "/google.ads.googleads.v0.services.CustomerService/MutateCustomer", in, out, opts...)
  428. if err != nil {
  429. return nil, err
  430. }
  431. return out, nil
  432. }
  433. func (c *customerServiceClient) ListAccessibleCustomers(ctx context.Context, in *ListAccessibleCustomersRequest, opts ...grpc.CallOption) (*ListAccessibleCustomersResponse, error) {
  434. out := new(ListAccessibleCustomersResponse)
  435. err := c.cc.Invoke(ctx, "/google.ads.googleads.v0.services.CustomerService/ListAccessibleCustomers", in, out, opts...)
  436. if err != nil {
  437. return nil, err
  438. }
  439. return out, nil
  440. }
  441. func (c *customerServiceClient) CreateCustomerClient(ctx context.Context, in *CreateCustomerClientRequest, opts ...grpc.CallOption) (*CreateCustomerClientResponse, error) {
  442. out := new(CreateCustomerClientResponse)
  443. err := c.cc.Invoke(ctx, "/google.ads.googleads.v0.services.CustomerService/CreateCustomerClient", in, out, opts...)
  444. if err != nil {
  445. return nil, err
  446. }
  447. return out, nil
  448. }
  449. // CustomerServiceServer is the server API for CustomerService service.
  450. type CustomerServiceServer interface {
  451. // Returns the requested customer in full detail.
  452. GetCustomer(context.Context, *GetCustomerRequest) (*resources.Customer, error)
  453. // Updates a customer. Operation statuses are returned.
  454. MutateCustomer(context.Context, *MutateCustomerRequest) (*MutateCustomerResponse, error)
  455. // Returns resource names of customers directly accessible by the
  456. // user authenticating the call.
  457. ListAccessibleCustomers(context.Context, *ListAccessibleCustomersRequest) (*ListAccessibleCustomersResponse, error)
  458. // Creates a new client under manager. The new client customer is returned.
  459. CreateCustomerClient(context.Context, *CreateCustomerClientRequest) (*CreateCustomerClientResponse, error)
  460. }
  461. func RegisterCustomerServiceServer(s *grpc.Server, srv CustomerServiceServer) {
  462. s.RegisterService(&_CustomerService_serviceDesc, srv)
  463. }
  464. func _CustomerService_GetCustomer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  465. in := new(GetCustomerRequest)
  466. if err := dec(in); err != nil {
  467. return nil, err
  468. }
  469. if interceptor == nil {
  470. return srv.(CustomerServiceServer).GetCustomer(ctx, in)
  471. }
  472. info := &grpc.UnaryServerInfo{
  473. Server: srv,
  474. FullMethod: "/google.ads.googleads.v0.services.CustomerService/GetCustomer",
  475. }
  476. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  477. return srv.(CustomerServiceServer).GetCustomer(ctx, req.(*GetCustomerRequest))
  478. }
  479. return interceptor(ctx, in, info, handler)
  480. }
  481. func _CustomerService_MutateCustomer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  482. in := new(MutateCustomerRequest)
  483. if err := dec(in); err != nil {
  484. return nil, err
  485. }
  486. if interceptor == nil {
  487. return srv.(CustomerServiceServer).MutateCustomer(ctx, in)
  488. }
  489. info := &grpc.UnaryServerInfo{
  490. Server: srv,
  491. FullMethod: "/google.ads.googleads.v0.services.CustomerService/MutateCustomer",
  492. }
  493. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  494. return srv.(CustomerServiceServer).MutateCustomer(ctx, req.(*MutateCustomerRequest))
  495. }
  496. return interceptor(ctx, in, info, handler)
  497. }
  498. func _CustomerService_ListAccessibleCustomers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  499. in := new(ListAccessibleCustomersRequest)
  500. if err := dec(in); err != nil {
  501. return nil, err
  502. }
  503. if interceptor == nil {
  504. return srv.(CustomerServiceServer).ListAccessibleCustomers(ctx, in)
  505. }
  506. info := &grpc.UnaryServerInfo{
  507. Server: srv,
  508. FullMethod: "/google.ads.googleads.v0.services.CustomerService/ListAccessibleCustomers",
  509. }
  510. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  511. return srv.(CustomerServiceServer).ListAccessibleCustomers(ctx, req.(*ListAccessibleCustomersRequest))
  512. }
  513. return interceptor(ctx, in, info, handler)
  514. }
  515. func _CustomerService_CreateCustomerClient_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  516. in := new(CreateCustomerClientRequest)
  517. if err := dec(in); err != nil {
  518. return nil, err
  519. }
  520. if interceptor == nil {
  521. return srv.(CustomerServiceServer).CreateCustomerClient(ctx, in)
  522. }
  523. info := &grpc.UnaryServerInfo{
  524. Server: srv,
  525. FullMethod: "/google.ads.googleads.v0.services.CustomerService/CreateCustomerClient",
  526. }
  527. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  528. return srv.(CustomerServiceServer).CreateCustomerClient(ctx, req.(*CreateCustomerClientRequest))
  529. }
  530. return interceptor(ctx, in, info, handler)
  531. }
  532. var _CustomerService_serviceDesc = grpc.ServiceDesc{
  533. ServiceName: "google.ads.googleads.v0.services.CustomerService",
  534. HandlerType: (*CustomerServiceServer)(nil),
  535. Methods: []grpc.MethodDesc{
  536. {
  537. MethodName: "GetCustomer",
  538. Handler: _CustomerService_GetCustomer_Handler,
  539. },
  540. {
  541. MethodName: "MutateCustomer",
  542. Handler: _CustomerService_MutateCustomer_Handler,
  543. },
  544. {
  545. MethodName: "ListAccessibleCustomers",
  546. Handler: _CustomerService_ListAccessibleCustomers_Handler,
  547. },
  548. {
  549. MethodName: "CreateCustomerClient",
  550. Handler: _CustomerService_CreateCustomerClient_Handler,
  551. },
  552. },
  553. Streams: []grpc.StreamDesc{},
  554. Metadata: "google/ads/googleads/v0/services/customer_service.proto",
  555. }
  556. func init() {
  557. proto.RegisterFile("google/ads/googleads/v0/services/customer_service.proto", fileDescriptor_customer_service_e2c9b50dc5d976a3)
  558. }
  559. var fileDescriptor_customer_service_e2c9b50dc5d976a3 = []byte{
  560. // 744 bytes of a gzipped FileDescriptorProto
  561. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0x4d, 0x6f, 0xd3, 0x40,
  562. 0x10, 0xd5, 0xa6, 0x10, 0xd1, 0x4d, 0x3f, 0xc4, 0xaa, 0x40, 0x14, 0xaa, 0x36, 0x98, 0x56, 0x0d,
  563. 0x41, 0xd8, 0x51, 0x8b, 0x28, 0xb8, 0x0a, 0xc2, 0x8d, 0x44, 0x8b, 0x44, 0x3f, 0x30, 0xa8, 0x07,
  564. 0x14, 0x29, 0x72, 0xed, 0x6d, 0xb0, 0xea, 0x78, 0x8d, 0xd7, 0x0e, 0xaa, 0xaa, 0x5e, 0xb8, 0x72,
  565. 0x04, 0x0e, 0x5c, 0x39, 0x72, 0xe2, 0xc0, 0xaf, 0x40, 0xe2, 0x04, 0x3f, 0x81, 0x13, 0x7f, 0x81,
  566. 0x0b, 0xf2, 0x7a, 0xd7, 0xcd, 0x97, 0x9b, 0xb6, 0xdc, 0x26, 0x9b, 0x79, 0x6f, 0xde, 0xcc, 0xbe,
  567. 0x1d, 0xc3, 0xe5, 0x26, 0x21, 0x4d, 0x07, 0x2b, 0x86, 0x45, 0x95, 0x38, 0x8c, 0xa2, 0x76, 0x45,
  568. 0xa1, 0xd8, 0x6f, 0xdb, 0x26, 0xa6, 0x8a, 0x19, 0xd2, 0x80, 0xb4, 0xb0, 0xdf, 0xe0, 0x27, 0xb2,
  569. 0xe7, 0x93, 0x80, 0xa0, 0x62, 0x9c, 0x2d, 0x1b, 0x16, 0x95, 0x13, 0xa0, 0xdc, 0xae, 0xc8, 0x02,
  570. 0x58, 0xa8, 0xa4, 0x51, 0xfb, 0x98, 0x92, 0xd0, 0xef, 0xe4, 0x8e, 0x39, 0x0b, 0xd3, 0x02, 0xe1,
  571. 0xd9, 0x8a, 0xe1, 0xba, 0x24, 0x30, 0x02, 0x9b, 0xb8, 0x94, 0xff, 0xcb, 0x2b, 0x2a, 0xec, 0xd7,
  572. 0x6e, 0xb8, 0xa7, 0xec, 0xd9, 0xd8, 0xb1, 0x1a, 0x2d, 0x83, 0xee, 0xf3, 0x8c, 0x99, 0xde, 0x8c,
  573. 0x37, 0xbe, 0xe1, 0x79, 0xd8, 0xe7, 0x0c, 0xd2, 0x03, 0x88, 0xd6, 0x70, 0x50, 0xe3, 0x45, 0x75,
  574. 0xfc, 0x3a, 0xc4, 0x34, 0x40, 0x37, 0xe1, 0xb8, 0x50, 0xd4, 0x70, 0x8d, 0x16, 0xce, 0x83, 0x22,
  575. 0x28, 0x8d, 0xea, 0x63, 0xe2, 0x70, 0xd3, 0x68, 0x61, 0xe9, 0x2b, 0x80, 0x57, 0x36, 0xc2, 0xc0,
  576. 0x08, 0x70, 0x2f, 0x7c, 0x16, 0xe6, 0x92, 0x11, 0xd9, 0x16, 0x07, 0x43, 0x71, 0xf4, 0xc4, 0x42,
  577. 0xcf, 0xe0, 0x28, 0xf1, 0xb0, 0xcf, 0x7a, 0xc9, 0x5f, 0x28, 0x82, 0x52, 0x6e, 0x71, 0x49, 0x1e,
  578. 0x36, 0x3d, 0x59, 0x94, 0xd9, 0x12, 0x50, 0xfd, 0x98, 0x25, 0x92, 0xdc, 0x36, 0x1c, 0xdb, 0x32,
  579. 0x02, 0xdc, 0x20, 0xae, 0x73, 0x90, 0xbf, 0x58, 0x04, 0xa5, 0x4b, 0xfa, 0x98, 0x38, 0xdc, 0x72,
  580. 0x9d, 0x03, 0xe9, 0x03, 0x80, 0xd7, 0x6b, 0x3e, 0xee, 0x90, 0x5c, 0x73, 0x6c, 0xec, 0x06, 0xa7,
  581. 0x16, 0xfe, 0x02, 0x4e, 0x26, 0x09, 0x26, 0x83, 0xe6, 0x33, 0x4c, 0xfe, 0xed, 0x54, 0xf9, 0xc9,
  582. 0xd5, 0x26, 0xfa, 0xf5, 0x09, 0xb3, 0xab, 0xba, 0xf4, 0x11, 0xc0, 0xcb, 0x7d, 0xcd, 0xa1, 0x1a,
  583. 0xcc, 0x86, 0x5e, 0x24, 0x9d, 0xe9, 0x38, 0x63, 0x09, 0x0e, 0x45, 0x2b, 0x30, 0x17, 0x47, 0xcc,
  584. 0x14, 0x5c, 0x6c, 0x41, 0x30, 0x09, 0x57, 0xc8, 0x8f, 0x23, 0xdf, 0x6c, 0x18, 0x74, 0x5f, 0x87,
  585. 0x71, 0x7a, 0x14, 0x4b, 0x35, 0x38, 0x3d, 0x78, 0x5a, 0xd4, 0x23, 0x2e, 0xc5, 0xfd, 0x36, 0xc9,
  586. 0x0c, 0xb0, 0xc9, 0x2b, 0x78, 0xb5, 0xd7, 0x25, 0x1c, 0xbe, 0x09, 0xb3, 0x3e, 0xa6, 0xa1, 0x23,
  587. 0x66, 0x78, 0x6f, 0xb8, 0x05, 0xfa, 0x98, 0x42, 0x27, 0xd0, 0x39, 0x8b, 0xb4, 0x02, 0xa7, 0x06,
  588. 0xfd, 0x7f, 0x3a, 0x37, 0x17, 0xe1, 0xcc, 0x53, 0x9b, 0x06, 0x9a, 0x69, 0x62, 0x4a, 0xed, 0x5d,
  589. 0x27, 0x21, 0xa1, 0xdc, 0x1c, 0xd2, 0x3a, 0x9c, 0x4d, 0xcd, 0xe0, 0x1d, 0xcd, 0xc3, 0x89, 0xae,
  590. 0x4a, 0x34, 0x0f, 0x8a, 0x23, 0xa5, 0x51, 0x7d, 0xbc, 0xb3, 0x14, 0x5d, 0x7c, 0x97, 0x85, 0x93,
  591. 0x02, 0xfc, 0x3c, 0x6e, 0x0d, 0x7d, 0x02, 0x30, 0xd7, 0xf1, 0x12, 0xd1, 0xdd, 0xe1, 0xc3, 0xe8,
  592. 0x7f, 0xb8, 0x85, 0xb3, 0x78, 0x44, 0x5a, 0x78, 0xfb, 0xf3, 0xf7, 0xfb, 0xcc, 0x0d, 0x34, 0x1b,
  593. 0x6d, 0xa0, 0xc3, 0x2e, 0xe1, 0x55, 0xe1, 0x50, 0xaa, 0x94, 0x8f, 0xd0, 0x37, 0x00, 0x27, 0xba,
  594. 0x27, 0x8b, 0x96, 0xcf, 0x7e, 0x57, 0xb1, 0xc2, 0xfb, 0xe7, 0xb8, 0x64, 0x36, 0x5c, 0x49, 0x61,
  595. 0x72, 0x6f, 0x49, 0x73, 0x91, 0xdc, 0x63, 0x7d, 0x87, 0x1d, 0x2f, 0xb6, 0x5a, 0x3e, 0x52, 0x5b,
  596. 0x0c, 0xad, 0x82, 0x32, 0xfa, 0x01, 0xe0, 0xb5, 0x94, 0x1b, 0x43, 0x8f, 0x86, 0xcb, 0x38, 0xd9,
  597. 0x0e, 0x05, 0xed, 0x3f, 0x18, 0x78, 0x47, 0x77, 0x58, 0x47, 0x0b, 0x68, 0xbe, 0xab, 0x23, 0xd5,
  598. 0x49, 0xd1, 0xfc, 0x0b, 0xc0, 0xa9, 0x41, 0xef, 0x11, 0x55, 0x4f, 0xb1, 0x3b, 0xd3, 0xb7, 0x5e,
  599. 0xe1, 0xe1, 0x79, 0xe1, 0xbc, 0x8d, 0x2a, 0x6b, 0x63, 0x59, 0x5a, 0x3c, 0xf9, 0x62, 0xcc, 0x01,
  600. 0x1c, 0x2a, 0x28, 0xaf, 0xfe, 0x05, 0x70, 0xce, 0x24, 0xad, 0xa1, 0x22, 0x56, 0xa7, 0x7a, 0xde,
  601. 0xcc, 0x76, 0xb4, 0xbd, 0xb6, 0xc1, 0xcb, 0x75, 0x8e, 0x6c, 0x12, 0xc7, 0x70, 0x9b, 0x32, 0xf1,
  602. 0x9b, 0x4a, 0x13, 0xbb, 0x6c, 0xb7, 0x89, 0xaf, 0xac, 0x67, 0xd3, 0xf4, 0xef, 0xf9, 0x8a, 0x08,
  603. 0x3e, 0x67, 0x46, 0xd6, 0x34, 0xed, 0x4b, 0xa6, 0xb8, 0x16, 0x13, 0x6a, 0x16, 0x95, 0xe3, 0x30,
  604. 0x8a, 0x76, 0x2a, 0x32, 0x2f, 0x4c, 0xbf, 0x8b, 0x94, 0xba, 0x66, 0xd1, 0x7a, 0x92, 0x52, 0xdf,
  605. 0xa9, 0xd4, 0x45, 0xca, 0x9f, 0xcc, 0x5c, 0x7c, 0xae, 0xaa, 0x9a, 0x45, 0x55, 0x35, 0x49, 0x52,
  606. 0xd5, 0x9d, 0x8a, 0xaa, 0x8a, 0xb4, 0xdd, 0x2c, 0xd3, 0xb9, 0xf4, 0x2f, 0x00, 0x00, 0xff, 0xff,
  607. 0xd6, 0x1c, 0x7d, 0xc4, 0x76, 0x08, 0x00, 0x00,
  608. }