blob: 294a48fcc93a61ed456e7f80a6910e3adfb9a8ad [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v1/services/customer_client_link_service.proto
package services
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
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 [CustomerClientLinkService.GetCustomerClientLink][google.ads.googleads.v1.services.CustomerClientLinkService.GetCustomerClientLink].
type GetCustomerClientLinkRequest struct {
// The resource name of the customer client link 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 *GetCustomerClientLinkRequest) Reset() { *m = GetCustomerClientLinkRequest{} }
func (m *GetCustomerClientLinkRequest) String() string { return proto.CompactTextString(m) }
func (*GetCustomerClientLinkRequest) ProtoMessage() {}
func (*GetCustomerClientLinkRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_e1d0479edf27af92, []int{0}
}
func (m *GetCustomerClientLinkRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetCustomerClientLinkRequest.Unmarshal(m, b)
}
func (m *GetCustomerClientLinkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetCustomerClientLinkRequest.Marshal(b, m, deterministic)
}
func (m *GetCustomerClientLinkRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetCustomerClientLinkRequest.Merge(m, src)
}
func (m *GetCustomerClientLinkRequest) XXX_Size() int {
return xxx_messageInfo_GetCustomerClientLinkRequest.Size(m)
}
func (m *GetCustomerClientLinkRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetCustomerClientLinkRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetCustomerClientLinkRequest proto.InternalMessageInfo
func (m *GetCustomerClientLinkRequest) GetResourceName() string {
if m != nil {
return m.ResourceName
}
return ""
}
// Request message for [CustomerClientLinkService.MutateCustomerClientLink][google.ads.googleads.v1.services.CustomerClientLinkService.MutateCustomerClientLink].
type MutateCustomerClientLinkRequest struct {
// The ID of the customer whose customer link are being modified.
CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
// The operation to perform on the individual CustomerClientLink.
Operation *CustomerClientLinkOperation `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MutateCustomerClientLinkRequest) Reset() { *m = MutateCustomerClientLinkRequest{} }
func (m *MutateCustomerClientLinkRequest) String() string { return proto.CompactTextString(m) }
func (*MutateCustomerClientLinkRequest) ProtoMessage() {}
func (*MutateCustomerClientLinkRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_e1d0479edf27af92, []int{1}
}
func (m *MutateCustomerClientLinkRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MutateCustomerClientLinkRequest.Unmarshal(m, b)
}
func (m *MutateCustomerClientLinkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MutateCustomerClientLinkRequest.Marshal(b, m, deterministic)
}
func (m *MutateCustomerClientLinkRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_MutateCustomerClientLinkRequest.Merge(m, src)
}
func (m *MutateCustomerClientLinkRequest) XXX_Size() int {
return xxx_messageInfo_MutateCustomerClientLinkRequest.Size(m)
}
func (m *MutateCustomerClientLinkRequest) XXX_DiscardUnknown() {
xxx_messageInfo_MutateCustomerClientLinkRequest.DiscardUnknown(m)
}
var xxx_messageInfo_MutateCustomerClientLinkRequest proto.InternalMessageInfo
func (m *MutateCustomerClientLinkRequest) GetCustomerId() string {
if m != nil {
return m.CustomerId
}
return ""
}
func (m *MutateCustomerClientLinkRequest) GetOperation() *CustomerClientLinkOperation {
if m != nil {
return m.Operation
}
return nil
}
// A single operation (create, update) on a CustomerClientLink.
type CustomerClientLinkOperation struct {
// FieldMask that determines which resource fields are modified in an update.
UpdateMask *field_mask.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// The mutate operation.
//
// Types that are valid to be assigned to Operation:
// *CustomerClientLinkOperation_Create
// *CustomerClientLinkOperation_Update
Operation isCustomerClientLinkOperation_Operation `protobuf_oneof:"operation"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CustomerClientLinkOperation) Reset() { *m = CustomerClientLinkOperation{} }
func (m *CustomerClientLinkOperation) String() string { return proto.CompactTextString(m) }
func (*CustomerClientLinkOperation) ProtoMessage() {}
func (*CustomerClientLinkOperation) Descriptor() ([]byte, []int) {
return fileDescriptor_e1d0479edf27af92, []int{2}
}
func (m *CustomerClientLinkOperation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CustomerClientLinkOperation.Unmarshal(m, b)
}
func (m *CustomerClientLinkOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CustomerClientLinkOperation.Marshal(b, m, deterministic)
}
func (m *CustomerClientLinkOperation) XXX_Merge(src proto.Message) {
xxx_messageInfo_CustomerClientLinkOperation.Merge(m, src)
}
func (m *CustomerClientLinkOperation) XXX_Size() int {
return xxx_messageInfo_CustomerClientLinkOperation.Size(m)
}
func (m *CustomerClientLinkOperation) XXX_DiscardUnknown() {
xxx_messageInfo_CustomerClientLinkOperation.DiscardUnknown(m)
}
var xxx_messageInfo_CustomerClientLinkOperation proto.InternalMessageInfo
func (m *CustomerClientLinkOperation) GetUpdateMask() *field_mask.FieldMask {
if m != nil {
return m.UpdateMask
}
return nil
}
type isCustomerClientLinkOperation_Operation interface {
isCustomerClientLinkOperation_Operation()
}
type CustomerClientLinkOperation_Create struct {
Create *resources.CustomerClientLink `protobuf:"bytes,1,opt,name=create,proto3,oneof"`
}
type CustomerClientLinkOperation_Update struct {
Update *resources.CustomerClientLink `protobuf:"bytes,2,opt,name=update,proto3,oneof"`
}
func (*CustomerClientLinkOperation_Create) isCustomerClientLinkOperation_Operation() {}
func (*CustomerClientLinkOperation_Update) isCustomerClientLinkOperation_Operation() {}
func (m *CustomerClientLinkOperation) GetOperation() isCustomerClientLinkOperation_Operation {
if m != nil {
return m.Operation
}
return nil
}
func (m *CustomerClientLinkOperation) GetCreate() *resources.CustomerClientLink {
if x, ok := m.GetOperation().(*CustomerClientLinkOperation_Create); ok {
return x.Create
}
return nil
}
func (m *CustomerClientLinkOperation) GetUpdate() *resources.CustomerClientLink {
if x, ok := m.GetOperation().(*CustomerClientLinkOperation_Update); ok {
return x.Update
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*CustomerClientLinkOperation) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*CustomerClientLinkOperation_Create)(nil),
(*CustomerClientLinkOperation_Update)(nil),
}
}
// Response message for a CustomerClientLink mutate.
type MutateCustomerClientLinkResponse struct {
// A result that identifies the resource affected by the mutate request.
Result *MutateCustomerClientLinkResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MutateCustomerClientLinkResponse) Reset() { *m = MutateCustomerClientLinkResponse{} }
func (m *MutateCustomerClientLinkResponse) String() string { return proto.CompactTextString(m) }
func (*MutateCustomerClientLinkResponse) ProtoMessage() {}
func (*MutateCustomerClientLinkResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_e1d0479edf27af92, []int{3}
}
func (m *MutateCustomerClientLinkResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MutateCustomerClientLinkResponse.Unmarshal(m, b)
}
func (m *MutateCustomerClientLinkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MutateCustomerClientLinkResponse.Marshal(b, m, deterministic)
}
func (m *MutateCustomerClientLinkResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MutateCustomerClientLinkResponse.Merge(m, src)
}
func (m *MutateCustomerClientLinkResponse) XXX_Size() int {
return xxx_messageInfo_MutateCustomerClientLinkResponse.Size(m)
}
func (m *MutateCustomerClientLinkResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MutateCustomerClientLinkResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MutateCustomerClientLinkResponse proto.InternalMessageInfo
func (m *MutateCustomerClientLinkResponse) GetResult() *MutateCustomerClientLinkResult {
if m != nil {
return m.Result
}
return nil
}
// The result for a single customer client link mutate.
type MutateCustomerClientLinkResult 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 *MutateCustomerClientLinkResult) Reset() { *m = MutateCustomerClientLinkResult{} }
func (m *MutateCustomerClientLinkResult) String() string { return proto.CompactTextString(m) }
func (*MutateCustomerClientLinkResult) ProtoMessage() {}
func (*MutateCustomerClientLinkResult) Descriptor() ([]byte, []int) {
return fileDescriptor_e1d0479edf27af92, []int{4}
}
func (m *MutateCustomerClientLinkResult) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MutateCustomerClientLinkResult.Unmarshal(m, b)
}
func (m *MutateCustomerClientLinkResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MutateCustomerClientLinkResult.Marshal(b, m, deterministic)
}
func (m *MutateCustomerClientLinkResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_MutateCustomerClientLinkResult.Merge(m, src)
}
func (m *MutateCustomerClientLinkResult) XXX_Size() int {
return xxx_messageInfo_MutateCustomerClientLinkResult.Size(m)
}
func (m *MutateCustomerClientLinkResult) XXX_DiscardUnknown() {
xxx_messageInfo_MutateCustomerClientLinkResult.DiscardUnknown(m)
}
var xxx_messageInfo_MutateCustomerClientLinkResult proto.InternalMessageInfo
func (m *MutateCustomerClientLinkResult) GetResourceName() string {
if m != nil {
return m.ResourceName
}
return ""
}
func init() {
proto.RegisterType((*GetCustomerClientLinkRequest)(nil), "google.ads.googleads.v1.services.GetCustomerClientLinkRequest")
proto.RegisterType((*MutateCustomerClientLinkRequest)(nil), "google.ads.googleads.v1.services.MutateCustomerClientLinkRequest")
proto.RegisterType((*CustomerClientLinkOperation)(nil), "google.ads.googleads.v1.services.CustomerClientLinkOperation")
proto.RegisterType((*MutateCustomerClientLinkResponse)(nil), "google.ads.googleads.v1.services.MutateCustomerClientLinkResponse")
proto.RegisterType((*MutateCustomerClientLinkResult)(nil), "google.ads.googleads.v1.services.MutateCustomerClientLinkResult")
}
func init() {
proto.RegisterFile("google/ads/googleads/v1/services/customer_client_link_service.proto", fileDescriptor_e1d0479edf27af92)
}
var fileDescriptor_e1d0479edf27af92 = []byte{
// 623 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x95, 0xc1, 0x6e, 0xd3, 0x4c,
0x10, 0xc7, 0x3f, 0xbb, 0x9f, 0x2a, 0x75, 0x03, 0x17, 0x4b, 0x88, 0x90, 0x56, 0x6d, 0x64, 0x7a,
0xa8, 0x72,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1e, 0x2a, 0x97, 0x5f, 0xfa, 0xb6, 0x38, 0xb7, 0x2c,
0xdb, 0x63, 0x96, 0x55, 0x3a, 0x59, 0xd6, 0xa0, 0x6d, 0x59, 0xca, 0xed, 0x64, 0xb5, 0xa8, 0xf3,
0xde, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x69, 0x24, 0xae, 0xc5, 0xba, 0x06, 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
// CustomerClientLinkServiceClient is the client API for CustomerClientLinkService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type CustomerClientLinkServiceClient interface {
// Returns the requested CustomerClientLink in full detail.
GetCustomerClientLink(ctx context.Context, in *GetCustomerClientLinkRequest, opts ...grpc.CallOption) (*resources.CustomerClientLink, error)
// Creates or updates a customer client link. Operation statuses are returned.
MutateCustomerClientLink(ctx context.Context, in *MutateCustomerClientLinkRequest, opts ...grpc.CallOption) (*MutateCustomerClientLinkResponse, error)
}
type customerClientLinkServiceClient struct {
cc grpc.ClientConnInterface
}
func NewCustomerClientLinkServiceClient(cc grpc.ClientConnInterface) CustomerClientLinkServiceClient {
return &customerClientLinkServiceClient{cc}
}
func (c *customerClientLinkServiceClient) GetCustomerClientLink(ctx context.Context, in *GetCustomerClientLinkRequest, opts ...grpc.CallOption) (*resources.CustomerClientLink, error) {
out := new(resources.CustomerClientLink)
err := c.cc.Invoke(ctx, "/google.ads.googleads.v1.services.CustomerClientLinkService/GetCustomerClientLink", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *customerClientLinkServiceClient) MutateCustomerClientLink(ctx context.Context, in *MutateCustomerClientLinkRequest, opts ...grpc.CallOption) (*MutateCustomerClientLinkResponse, error) {
out := new(MutateCustomerClientLinkResponse)
err := c.cc.Invoke(ctx, "/google.ads.googleads.v1.services.CustomerClientLinkService/MutateCustomerClientLink", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// CustomerClientLinkServiceServer is the server API for CustomerClientLinkService service.
type CustomerClientLinkServiceServer interface {
// Returns the requested CustomerClientLink in full detail.
GetCustomerClientLink(context.Context, *GetCustomerClientLinkRequest) (*resources.CustomerClientLink, error)
// Creates or updates a customer client link. Operation statuses are returned.
MutateCustomerClientLink(context.Context, *MutateCustomerClientLinkRequest) (*MutateCustomerClientLinkResponse, error)
}
// UnimplementedCustomerClientLinkServiceServer can be embedded to have forward compatible implementations.
type UnimplementedCustomerClientLinkServiceServer struct {
}
func (*UnimplementedCustomerClientLinkServiceServer) GetCustomerClientLink(ctx context.Context, req *GetCustomerClientLinkRequest) (*resources.CustomerClientLink, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetCustomerClientLink not implemented")
}
func (*UnimplementedCustomerClientLinkServiceServer) MutateCustomerClientLink(ctx context.Context, req *MutateCustomerClientLinkRequest) (*MutateCustomerClientLinkResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method MutateCustomerClientLink not implemented")
}
func RegisterCustomerClientLinkServiceServer(s *grpc.Server, srv CustomerClientLinkServiceServer) {
s.RegisterService(&_CustomerClientLinkService_serviceDesc, srv)
}
func _CustomerClientLinkService_GetCustomerClientLink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetCustomerClientLinkRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CustomerClientLinkServiceServer).GetCustomerClientLink(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.ads.googleads.v1.services.CustomerClientLinkService/GetCustomerClientLink",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CustomerClientLinkServiceServer).GetCustomerClientLink(ctx, req.(*GetCustomerClientLinkRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CustomerClientLinkService_MutateCustomerClientLink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MutateCustomerClientLinkRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CustomerClientLinkServiceServer).MutateCustomerClientLink(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.ads.googleads.v1.services.CustomerClientLinkService/MutateCustomerClientLink",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CustomerClientLinkServiceServer).MutateCustomerClientLink(ctx, req.(*MutateCustomerClientLinkRequest))
}
return interceptor(ctx, in, info, handler)
}
var _CustomerClientLinkService_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.ads.googleads.v1.services.CustomerClientLinkService",
HandlerType: (*CustomerClientLinkServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetCustomerClientLink",
Handler: _CustomerClientLinkService_GetCustomerClientLink_Handler,
},
{
MethodName: "MutateCustomerClientLink",
Handler: _CustomerClientLinkService_MutateCustomerClientLink_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/ads/googleads/v1/services/customer_client_link_service.proto",
}