blob: d4a92b69bac4dcbc09ecc2ba9bcedb146697f84c [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v1/services/customer_service.proto
package services
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
_ "github.com/golang/protobuf/ptypes/wrappers"
resources "google.golang.org/genproto/googleapis/ads/googleads/v1/resources"
_ "google.golang.org/genproto/googleapis/api/annotations"
field_mask "google.golang.org/genproto/protobuf/field_mask"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// Request message for [CustomerService.GetCustomer][google.ads.googleads.v1.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_35dc615eb25453ea, []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 (m *GetCustomerRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetCustomerRequest.Merge(m, 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.v1.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_35dc615eb25453ea, []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 (m *MutateCustomerRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_MutateCustomerRequest.Merge(m, 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.v1.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_35dc615eb25453ea, []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 (m *CreateCustomerClientRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateCustomerClientRequest.Merge(m, 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_35dc615eb25453ea, []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 (m *CustomerOperation) XXX_Merge(src proto.Message) {
xxx_messageInfo_CustomerOperation.Merge(m, 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_35dc615eb25453ea, []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 (m *CreateCustomerClientResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateCustomerClientResponse.Merge(m, 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_35dc615eb25453ea, []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 (m *MutateCustomerResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MutateCustomerResponse.Merge(m, 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_35dc615eb25453ea, []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 (m *MutateCustomerResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_MutateCustomerResult.Merge(m, 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.v1.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_35dc615eb25453ea, []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 (m *ListAccessibleCustomersRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListAccessibleCustomersRequest.Merge(m, 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.v1.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_35dc615eb25453ea, []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 (m *ListAccessibleCustomersResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListAccessibleCustomersResponse.Merge(m, 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.v1.services.GetCustomerRequest")
proto.RegisterType((*MutateCustomerRequest)(nil), "google.ads.googleads.v1.services.MutateCustomerRequest")
proto.RegisterType((*CreateCustomerClientRequest)(nil), "google.ads.googleads.v1.services.CreateCustomerClientRequest")
proto.RegisterType((*CustomerOperation)(nil), "google.ads.googleads.v1.services.CustomerOperation")
proto.RegisterType((*CreateCustomerClientResponse)(nil), "google.ads.googleads.v1.services.CreateCustomerClientResponse")
proto.RegisterType((*MutateCustomerResponse)(nil), "google.ads.googleads.v1.services.MutateCustomerResponse")
proto.RegisterType((*MutateCustomerResult)(nil), "google.ads.googleads.v1.services.MutateCustomerResult")
proto.RegisterType((*ListAccessibleCustomersRequest)(nil), "google.ads.googleads.v1.services.ListAccessibleCustomersRequest")
proto.RegisterType((*ListAccessibleCustomersResponse)(nil), "google.ads.googleads.v1.services.ListAccessibleCustomersResponse")
}
func init() {
proto.RegisterFile("google/ads/googleads/v1/services/customer_service.proto", fileDescriptor_35dc615eb25453ea)
}
var fileDescriptor_35dc615eb25453ea = []byte{
// 767 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xcd, 0x6e, 0xd3, 0x4a,
0x14, 0xd6, 0xa4, 0xf7, 0x46, 0xb7, 0x93, 0xfe, 0xe8, 0x8e, 0x0a, 0x8d, 0xd2, 0xaa, 0x0d, 0xa6,
0x55, 0x43, 0x10, 0x36, 0x69, 0x11, 0x05, 0x57, 0x41, 0xb8, 0x91, 0x68, 0x91, 0xe8, 0x0f, 0x06,
0x75, 0x81, 0x22, 0x45, 0xae, 0x3d, 0x0d, 0x56, 0x6d, 0x8f, 0xf1, 0xd8, 0x41, 0x55, 0xd5, 0x0d,
0xaf, 0x00, 0x2c, 0xd8, 0xb2, 0x42, 0xac, 0x58, 0xf0, 0x14, 0x95, 0x58, 0xc1, 0x23, 0xb0, 0xe2,
0x15, 0xd8, 0x20, 0xdb, 0x33, 0xce, 0xaf, 0x9b, 0xb6, 0xec, 0x4e, 0xc6, 0xe7, 0xfb, 0xce, 0x77,
0xce, 0x7c, 0x73, 0x14, 0xb8, 0xda, 0x24, 0xa4, 0x69, 0x61, 0x49, 0x33, 0xa8, 0x14, 0x87, 0x61,
0xd4, 0xaa, 0x48, 0x14, 0x7b, 0x2d, 0x53, 0xc7, 0x54, 0xd2, 0x03, 0xea, 0x13, 0x1b, 0x7b, 0x0d,
0x76,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, 0x27, 0x5a, 0x7c, 0x52, 0xbb,
0x56, 0xfa, 0xbf, 0x80, 0x35, 0x1e, 0x7c, 0xcc, 0x8c, 0x6c, 0x28, 0xca, 0xe7, 0x4c, 0x71, 0x23,
0x26, 0x54, 0x0c, 0x2a, 0xc6, 0x61, 0x18, 0xed, 0x55, 0x44, 0x56, 0x98, 0x9e, 0xf2, 0x94, 0xba,
0x62, 0xd0, 0x7a, 0x92, 0x52, 0xdf, 0xab, 0xd4, 0x79, 0xca, 0xaf, 0xcc, 0x42, 0x7c, 0x2e, 0xcb,
0x8a, 0x41, 0x65, 0x39, 0x49, 0x92, 0xe5, 0xbd, 0x8a, 0x2c, 0xf3, 0xb4, 0xfd, 0x6c, 0xa4, 0x73,
0xe5, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x86, 0x01, 0x28, 0x6d, 0xac, 0x08, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// 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.SupportPackageIsVersion6
// 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.ClientConnInterface
}
func NewCustomerServiceClient(cc grpc.ClientConnInterface) 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.v1.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.v1.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.v1.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.v1.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)
}
// UnimplementedCustomerServiceServer can be embedded to have forward compatible implementations.
type UnimplementedCustomerServiceServer struct {
}
func (*UnimplementedCustomerServiceServer) GetCustomer(ctx context.Context, req *GetCustomerRequest) (*resources.Customer, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetCustomer not implemented")
}
func (*UnimplementedCustomerServiceServer) MutateCustomer(ctx context.Context, req *MutateCustomerRequest) (*MutateCustomerResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method MutateCustomer not implemented")
}
func (*UnimplementedCustomerServiceServer) ListAccessibleCustomers(ctx context.Context, req *ListAccessibleCustomersRequest) (*ListAccessibleCustomersResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListAccessibleCustomers not implemented")
}
func (*UnimplementedCustomerServiceServer) CreateCustomerClient(ctx context.Context, req *CreateCustomerClientRequest) (*CreateCustomerClientResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateCustomerClient not implemented")
}
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.v1.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.v1.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.v1.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.v1.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.v1.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/v1/services/customer_service.proto",
}