|
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: google/ads/googleads/v0/services/customer_service.proto
-
- package services // import "google.golang.org/genproto/googleapis/ads/googleads/v0/services"
-
- import proto "github.com/golang/protobuf/proto"
- import fmt "fmt"
- import math "math"
- import _ "github.com/golang/protobuf/ptypes/wrappers"
- import resources "google.golang.org/genproto/googleapis/ads/googleads/v0/resources"
- import _ "google.golang.org/genproto/googleapis/api/annotations"
- import field_mask "google.golang.org/genproto/protobuf/field_mask"
-
- import (
- context "golang.org/x/net/context"
- grpc "google.golang.org/grpc"
- )
-
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
-
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
-
- // Request message for
- // [CustomerService.GetCustomer][google.ads.googleads.v0.services.CustomerService.GetCustomer].
- type GetCustomerRequest struct {
- // The resource name of the customer to fetch.
- ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
-
- func (m *GetCustomerRequest) Reset() { *m = GetCustomerRequest{} }
- func (m *GetCustomerRequest) String() string { return proto.CompactTextString(m) }
- func (*GetCustomerRequest) ProtoMessage() {}
- func (*GetCustomerRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_customer_service_e2c9b50dc5d976a3, []int{0}
- }
- func (m *GetCustomerRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_GetCustomerRequest.Unmarshal(m, b)
- }
- func (m *GetCustomerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_GetCustomerRequest.Marshal(b, m, deterministic)
- }
- func (dst *GetCustomerRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetCustomerRequest.Merge(dst, src)
- }
- func (m *GetCustomerRequest) XXX_Size() int {
- return xxx_messageInfo_GetCustomerRequest.Size(m)
- }
- func (m *GetCustomerRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_GetCustomerRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_GetCustomerRequest proto.InternalMessageInfo
-
- func (m *GetCustomerRequest) GetResourceName() string {
- if m != nil {
- return m.ResourceName
- }
- return ""
- }
-
- // Request message for
- // [CustomerService.MutateCustomer][google.ads.googleads.v0.services.CustomerService.MutateCustomer].
- type MutateCustomerRequest struct {
- // The ID of the customer being modified.
- CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
- // The operation to perform on the customer
- Operation *CustomerOperation `protobuf:"bytes,4,opt,name=operation,proto3" json:"operation,omitempty"`
- // If true, the request is validated but not executed. Only errors are
- // returned, not results.
- ValidateOnly bool `protobuf:"varint,5,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
-
- func (m *MutateCustomerRequest) Reset() { *m = MutateCustomerRequest{} }
- func (m *MutateCustomerRequest) String() string { return proto.CompactTextString(m) }
- func (*MutateCustomerRequest) ProtoMessage() {}
- func (*MutateCustomerRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_customer_service_e2c9b50dc5d976a3, []int{1}
- }
- func (m *MutateCustomerRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_MutateCustomerRequest.Unmarshal(m, b)
- }
- func (m *MutateCustomerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_MutateCustomerRequest.Marshal(b, m, deterministic)
- }
- func (dst *MutateCustomerRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_MutateCustomerRequest.Merge(dst, src)
- }
- func (m *MutateCustomerRequest) XXX_Size() int {
- return xxx_messageInfo_MutateCustomerRequest.Size(m)
- }
- func (m *MutateCustomerRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_MutateCustomerRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_MutateCustomerRequest proto.InternalMessageInfo
-
- func (m *MutateCustomerRequest) GetCustomerId() string {
- if m != nil {
- return m.CustomerId
- }
- return ""
- }
-
- func (m *MutateCustomerRequest) GetOperation() *CustomerOperation {
- if m != nil {
- return m.Operation
- }
- return nil
- }
-
- func (m *MutateCustomerRequest) GetValidateOnly() bool {
- if m != nil {
- return m.ValidateOnly
- }
- return false
- }
-
- // Request message for
- // [CustomerService.CreateCustomerClient][google.ads.googleads.v0.services.CustomerService.CreateCustomerClient].
- type CreateCustomerClientRequest struct {
- // The ID of the Manager under whom client customer is being created.
- CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
- // The new client customer to create. The resource name on this customer
- // will be ignored.
- CustomerClient *resources.Customer `protobuf:"bytes,2,opt,name=customer_client,json=customerClient,proto3" json:"customer_client,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
-
- func (m *CreateCustomerClientRequest) Reset() { *m = CreateCustomerClientRequest{} }
- func (m *CreateCustomerClientRequest) String() string { return proto.CompactTextString(m) }
- func (*CreateCustomerClientRequest) ProtoMessage() {}
- func (*CreateCustomerClientRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_customer_service_e2c9b50dc5d976a3, []int{2}
- }
- func (m *CreateCustomerClientRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_CreateCustomerClientRequest.Unmarshal(m, b)
- }
- func (m *CreateCustomerClientRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_CreateCustomerClientRequest.Marshal(b, m, deterministic)
- }
- func (dst *CreateCustomerClientRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_CreateCustomerClientRequest.Merge(dst, src)
- }
- func (m *CreateCustomerClientRequest) XXX_Size() int {
- return xxx_messageInfo_CreateCustomerClientRequest.Size(m)
- }
- func (m *CreateCustomerClientRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_CreateCustomerClientRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_CreateCustomerClientRequest proto.InternalMessageInfo
-
- func (m *CreateCustomerClientRequest) GetCustomerId() string {
- if m != nil {
- return m.CustomerId
- }
- return ""
- }
-
- func (m *CreateCustomerClientRequest) GetCustomerClient() *resources.Customer {
- if m != nil {
- return m.CustomerClient
- }
- return nil
- }
-
- // A single update on a customer.
- type CustomerOperation struct {
- // Mutate operation. Only updates are supported for customer.
- Update *resources.Customer `protobuf:"bytes,1,opt,name=update,proto3" json:"update,omitempty"`
- // FieldMask that determines which resource fields are modified in an update.
- UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
-
- func (m *CustomerOperation) Reset() { *m = CustomerOperation{} }
- func (m *CustomerOperation) String() string { return proto.CompactTextString(m) }
- func (*CustomerOperation) ProtoMessage() {}
- func (*CustomerOperation) Descriptor() ([]byte, []int) {
- return fileDescriptor_customer_service_e2c9b50dc5d976a3, []int{3}
- }
- func (m *CustomerOperation) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_CustomerOperation.Unmarshal(m, b)
- }
- func (m *CustomerOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_CustomerOperation.Marshal(b, m, deterministic)
- }
- func (dst *CustomerOperation) XXX_Merge(src proto.Message) {
- xxx_messageInfo_CustomerOperation.Merge(dst, src)
- }
- func (m *CustomerOperation) XXX_Size() int {
- return xxx_messageInfo_CustomerOperation.Size(m)
- }
- func (m *CustomerOperation) XXX_DiscardUnknown() {
- xxx_messageInfo_CustomerOperation.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_CustomerOperation proto.InternalMessageInfo
-
- func (m *CustomerOperation) GetUpdate() *resources.Customer {
- if m != nil {
- return m.Update
- }
- return nil
- }
-
- func (m *CustomerOperation) GetUpdateMask() *field_mask.FieldMask {
- if m != nil {
- return m.UpdateMask
- }
- return nil
- }
-
- // Response message for CreateCustomerClient mutate.
- type CreateCustomerClientResponse struct {
- // The resource name of the newly created customer client.
- ResourceName string `protobuf:"bytes,2,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
-
- func (m *CreateCustomerClientResponse) Reset() { *m = CreateCustomerClientResponse{} }
- func (m *CreateCustomerClientResponse) String() string { return proto.CompactTextString(m) }
- func (*CreateCustomerClientResponse) ProtoMessage() {}
- func (*CreateCustomerClientResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_customer_service_e2c9b50dc5d976a3, []int{4}
- }
- func (m *CreateCustomerClientResponse) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_CreateCustomerClientResponse.Unmarshal(m, b)
- }
- func (m *CreateCustomerClientResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_CreateCustomerClientResponse.Marshal(b, m, deterministic)
- }
- func (dst *CreateCustomerClientResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_CreateCustomerClientResponse.Merge(dst, src)
- }
- func (m *CreateCustomerClientResponse) XXX_Size() int {
- return xxx_messageInfo_CreateCustomerClientResponse.Size(m)
- }
- func (m *CreateCustomerClientResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_CreateCustomerClientResponse.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_CreateCustomerClientResponse proto.InternalMessageInfo
-
- func (m *CreateCustomerClientResponse) GetResourceName() string {
- if m != nil {
- return m.ResourceName
- }
- return ""
- }
-
- // Response message for customer mutate.
- type MutateCustomerResponse struct {
- // Result for the mutate.
- Result *MutateCustomerResult `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
-
- func (m *MutateCustomerResponse) Reset() { *m = MutateCustomerResponse{} }
- func (m *MutateCustomerResponse) String() string { return proto.CompactTextString(m) }
- func (*MutateCustomerResponse) ProtoMessage() {}
- func (*MutateCustomerResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_customer_service_e2c9b50dc5d976a3, []int{5}
- }
- func (m *MutateCustomerResponse) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_MutateCustomerResponse.Unmarshal(m, b)
- }
- func (m *MutateCustomerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_MutateCustomerResponse.Marshal(b, m, deterministic)
- }
- func (dst *MutateCustomerResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_MutateCustomerResponse.Merge(dst, src)
- }
- func (m *MutateCustomerResponse) XXX_Size() int {
- return xxx_messageInfo_MutateCustomerResponse.Size(m)
- }
- func (m *MutateCustomerResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_MutateCustomerResponse.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_MutateCustomerResponse proto.InternalMessageInfo
-
- func (m *MutateCustomerResponse) GetResult() *MutateCustomerResult {
- if m != nil {
- return m.Result
- }
- return nil
- }
-
- // The result for the customer mutate.
- type MutateCustomerResult struct {
- // Returned for successful operations.
- ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
-
- func (m *MutateCustomerResult) Reset() { *m = MutateCustomerResult{} }
- func (m *MutateCustomerResult) String() string { return proto.CompactTextString(m) }
- func (*MutateCustomerResult) ProtoMessage() {}
- func (*MutateCustomerResult) Descriptor() ([]byte, []int) {
- return fileDescriptor_customer_service_e2c9b50dc5d976a3, []int{6}
- }
- func (m *MutateCustomerResult) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_MutateCustomerResult.Unmarshal(m, b)
- }
- func (m *MutateCustomerResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_MutateCustomerResult.Marshal(b, m, deterministic)
- }
- func (dst *MutateCustomerResult) XXX_Merge(src proto.Message) {
- xxx_messageInfo_MutateCustomerResult.Merge(dst, src)
- }
- func (m *MutateCustomerResult) XXX_Size() int {
- return xxx_messageInfo_MutateCustomerResult.Size(m)
- }
- func (m *MutateCustomerResult) XXX_DiscardUnknown() {
- xxx_messageInfo_MutateCustomerResult.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_MutateCustomerResult proto.InternalMessageInfo
-
- func (m *MutateCustomerResult) GetResourceName() string {
- if m != nil {
- return m.ResourceName
- }
- return ""
- }
-
- // Request message for
- // [CustomerService.ListAccessibleCustomers][google.ads.googleads.v0.services.CustomerService.ListAccessibleCustomers].
- type ListAccessibleCustomersRequest struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
-
- func (m *ListAccessibleCustomersRequest) Reset() { *m = ListAccessibleCustomersRequest{} }
- func (m *ListAccessibleCustomersRequest) String() string { return proto.CompactTextString(m) }
- func (*ListAccessibleCustomersRequest) ProtoMessage() {}
- func (*ListAccessibleCustomersRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_customer_service_e2c9b50dc5d976a3, []int{7}
- }
- func (m *ListAccessibleCustomersRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_ListAccessibleCustomersRequest.Unmarshal(m, b)
- }
- func (m *ListAccessibleCustomersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_ListAccessibleCustomersRequest.Marshal(b, m, deterministic)
- }
- func (dst *ListAccessibleCustomersRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_ListAccessibleCustomersRequest.Merge(dst, src)
- }
- func (m *ListAccessibleCustomersRequest) XXX_Size() int {
- return xxx_messageInfo_ListAccessibleCustomersRequest.Size(m)
- }
- func (m *ListAccessibleCustomersRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_ListAccessibleCustomersRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_ListAccessibleCustomersRequest proto.InternalMessageInfo
-
- // Response message for
- // [CustomerService.ListAccessibleCustomers][google.ads.googleads.v0.services.CustomerService.ListAccessibleCustomers].
- type ListAccessibleCustomersResponse struct {
- // Resource name of customers directly accessible by the
- // user authenticating the call.
- ResourceNames []string `protobuf:"bytes,1,rep,name=resource_names,json=resourceNames,proto3" json:"resource_names,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
-
- func (m *ListAccessibleCustomersResponse) Reset() { *m = ListAccessibleCustomersResponse{} }
- func (m *ListAccessibleCustomersResponse) String() string { return proto.CompactTextString(m) }
- func (*ListAccessibleCustomersResponse) ProtoMessage() {}
- func (*ListAccessibleCustomersResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_customer_service_e2c9b50dc5d976a3, []int{8}
- }
- func (m *ListAccessibleCustomersResponse) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_ListAccessibleCustomersResponse.Unmarshal(m, b)
- }
- func (m *ListAccessibleCustomersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_ListAccessibleCustomersResponse.Marshal(b, m, deterministic)
- }
- func (dst *ListAccessibleCustomersResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_ListAccessibleCustomersResponse.Merge(dst, src)
- }
- func (m *ListAccessibleCustomersResponse) XXX_Size() int {
- return xxx_messageInfo_ListAccessibleCustomersResponse.Size(m)
- }
- func (m *ListAccessibleCustomersResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_ListAccessibleCustomersResponse.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_ListAccessibleCustomersResponse proto.InternalMessageInfo
-
- func (m *ListAccessibleCustomersResponse) GetResourceNames() []string {
- if m != nil {
- return m.ResourceNames
- }
- return nil
- }
-
- func init() {
- proto.RegisterType((*GetCustomerRequest)(nil), "google.ads.googleads.v0.services.GetCustomerRequest")
- proto.RegisterType((*MutateCustomerRequest)(nil), "google.ads.googleads.v0.services.MutateCustomerRequest")
- proto.RegisterType((*CreateCustomerClientRequest)(nil), "google.ads.googleads.v0.services.CreateCustomerClientRequest")
- proto.RegisterType((*CustomerOperation)(nil), "google.ads.googleads.v0.services.CustomerOperation")
- proto.RegisterType((*CreateCustomerClientResponse)(nil), "google.ads.googleads.v0.services.CreateCustomerClientResponse")
- proto.RegisterType((*MutateCustomerResponse)(nil), "google.ads.googleads.v0.services.MutateCustomerResponse")
- proto.RegisterType((*MutateCustomerResult)(nil), "google.ads.googleads.v0.services.MutateCustomerResult")
- proto.RegisterType((*ListAccessibleCustomersRequest)(nil), "google.ads.googleads.v0.services.ListAccessibleCustomersRequest")
- proto.RegisterType((*ListAccessibleCustomersResponse)(nil), "google.ads.googleads.v0.services.ListAccessibleCustomersResponse")
- }
-
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConn
-
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- const _ = grpc.SupportPackageIsVersion4
-
- // CustomerServiceClient is the client API for CustomerService service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type CustomerServiceClient interface {
- // Returns the requested customer in full detail.
- GetCustomer(ctx context.Context, in *GetCustomerRequest, opts ...grpc.CallOption) (*resources.Customer, error)
- // Updates a customer. Operation statuses are returned.
- MutateCustomer(ctx context.Context, in *MutateCustomerRequest, opts ...grpc.CallOption) (*MutateCustomerResponse, error)
- // Returns resource names of customers directly accessible by the
- // user authenticating the call.
- ListAccessibleCustomers(ctx context.Context, in *ListAccessibleCustomersRequest, opts ...grpc.CallOption) (*ListAccessibleCustomersResponse, error)
- // Creates a new client under manager. The new client customer is returned.
- CreateCustomerClient(ctx context.Context, in *CreateCustomerClientRequest, opts ...grpc.CallOption) (*CreateCustomerClientResponse, error)
- }
-
- type customerServiceClient struct {
- cc *grpc.ClientConn
- }
-
- func NewCustomerServiceClient(cc *grpc.ClientConn) CustomerServiceClient {
- return &customerServiceClient{cc}
- }
-
- func (c *customerServiceClient) GetCustomer(ctx context.Context, in *GetCustomerRequest, opts ...grpc.CallOption) (*resources.Customer, error) {
- out := new(resources.Customer)
- err := c.cc.Invoke(ctx, "/google.ads.googleads.v0.services.CustomerService/GetCustomer", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- func (c *customerServiceClient) MutateCustomer(ctx context.Context, in *MutateCustomerRequest, opts ...grpc.CallOption) (*MutateCustomerResponse, error) {
- out := new(MutateCustomerResponse)
- err := c.cc.Invoke(ctx, "/google.ads.googleads.v0.services.CustomerService/MutateCustomer", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- func (c *customerServiceClient) ListAccessibleCustomers(ctx context.Context, in *ListAccessibleCustomersRequest, opts ...grpc.CallOption) (*ListAccessibleCustomersResponse, error) {
- out := new(ListAccessibleCustomersResponse)
- err := c.cc.Invoke(ctx, "/google.ads.googleads.v0.services.CustomerService/ListAccessibleCustomers", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- func (c *customerServiceClient) CreateCustomerClient(ctx context.Context, in *CreateCustomerClientRequest, opts ...grpc.CallOption) (*CreateCustomerClientResponse, error) {
- out := new(CreateCustomerClientResponse)
- err := c.cc.Invoke(ctx, "/google.ads.googleads.v0.services.CustomerService/CreateCustomerClient", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- // CustomerServiceServer is the server API for CustomerService service.
- type CustomerServiceServer interface {
- // Returns the requested customer in full detail.
- GetCustomer(context.Context, *GetCustomerRequest) (*resources.Customer, error)
- // Updates a customer. Operation statuses are returned.
- MutateCustomer(context.Context, *MutateCustomerRequest) (*MutateCustomerResponse, error)
- // Returns resource names of customers directly accessible by the
- // user authenticating the call.
- ListAccessibleCustomers(context.Context, *ListAccessibleCustomersRequest) (*ListAccessibleCustomersResponse, error)
- // Creates a new client under manager. The new client customer is returned.
- CreateCustomerClient(context.Context, *CreateCustomerClientRequest) (*CreateCustomerClientResponse, error)
- }
-
- func RegisterCustomerServiceServer(s *grpc.Server, srv CustomerServiceServer) {
- s.RegisterService(&_CustomerService_serviceDesc, srv)
- }
-
- func _CustomerService_GetCustomer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetCustomerRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CustomerServiceServer).GetCustomer(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/google.ads.googleads.v0.services.CustomerService/GetCustomer",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CustomerServiceServer).GetCustomer(ctx, req.(*GetCustomerRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- func _CustomerService_MutateCustomer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(MutateCustomerRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CustomerServiceServer).MutateCustomer(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/google.ads.googleads.v0.services.CustomerService/MutateCustomer",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CustomerServiceServer).MutateCustomer(ctx, req.(*MutateCustomerRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- func _CustomerService_ListAccessibleCustomers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ListAccessibleCustomersRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CustomerServiceServer).ListAccessibleCustomers(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/google.ads.googleads.v0.services.CustomerService/ListAccessibleCustomers",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CustomerServiceServer).ListAccessibleCustomers(ctx, req.(*ListAccessibleCustomersRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- func _CustomerService_CreateCustomerClient_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CreateCustomerClientRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CustomerServiceServer).CreateCustomerClient(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/google.ads.googleads.v0.services.CustomerService/CreateCustomerClient",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CustomerServiceServer).CreateCustomerClient(ctx, req.(*CreateCustomerClientRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- var _CustomerService_serviceDesc = grpc.ServiceDesc{
- ServiceName: "google.ads.googleads.v0.services.CustomerService",
- HandlerType: (*CustomerServiceServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "GetCustomer",
- Handler: _CustomerService_GetCustomer_Handler,
- },
- {
- MethodName: "MutateCustomer",
- Handler: _CustomerService_MutateCustomer_Handler,
- },
- {
- MethodName: "ListAccessibleCustomers",
- Handler: _CustomerService_ListAccessibleCustomers_Handler,
- },
- {
- MethodName: "CreateCustomerClient",
- Handler: _CustomerService_CreateCustomerClient_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "google/ads/googleads/v0/services/customer_service.proto",
- }
-
- func init() {
- proto.RegisterFile("google/ads/googleads/v0/services/customer_service.proto", fileDescriptor_customer_service_e2c9b50dc5d976a3)
- }
-
- var fileDescriptor_customer_service_e2c9b50dc5d976a3 = []byte{
- // 744 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0x4d, 0x6f, 0xd3, 0x40,
- 0x10, 0xd5, 0xa6, 0x10, 0xd1, 0x4d, 0x3f, 0xc4, 0xaa, 0x40, 0x14, 0xaa, 0x36, 0x98, 0x56, 0x0d,
- 0x41, 0xd8, 0x51, 0x8b, 0x28, 0xb8, 0x0a, 0xc2, 0x8d, 0x44, 0x8b, 0x44, 0x3f, 0x30, 0xa8, 0x07,
- 0x14, 0x29, 0x72, 0xed, 0x6d, 0xb0, 0xea, 0x78, 0x8d, 0xd7, 0x0e, 0xaa, 0xaa, 0x5e, 0xb8, 0x72,
- 0x04, 0x0e, 0x5c, 0x39, 0x72, 0xe2, 0xc0, 0xaf, 0x40, 0xe2, 0x04, 0x3f, 0x81, 0x13, 0x7f, 0x81,
- 0x0b, 0xf2, 0x7a, 0xd7, 0xcd, 0x97, 0x9b, 0xb6, 0xdc, 0x26, 0x9b, 0x79, 0x6f, 0xde, 0xcc, 0xbe,
- 0x1d, 0xc3, 0xe5, 0x26, 0x21, 0x4d, 0x07, 0x2b, 0x86, 0x45, 0x95, 0x38, 0x8c, 0xa2, 0x76, 0x45,
- 0xa1, 0xd8, 0x6f, 0xdb, 0x26, 0xa6, 0x8a, 0x19, 0xd2, 0x80, 0xb4, 0xb0, 0xdf, 0xe0, 0x27, 0xb2,
- 0xe7, 0x93, 0x80, 0xa0, 0x62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